袁野 1 year ago
parent e28bff230f
commit 1613c5ea2b
  1. 2
      .angular/cache/17.0.7/high-web/.tsbuildinfo
  2. 48
      .angular/cache/17.0.7/vite/deps/@angular_animations.js
  3. 7
      .angular/cache/17.0.7/vite/deps/@angular_animations.js.map
  4. 4
      .angular/cache/17.0.7/vite/deps/@angular_platform-browser_animations.js
  5. 5588
      .angular/cache/17.0.7/vite/deps/@angular_router.js
  6. 8
      .angular/cache/17.0.7/vite/deps/@angular_router.js.map
  7. 202
      .angular/cache/17.0.7/vite/deps/_metadata.json
  8. 720
      .angular/cache/17.0.7/vite/deps/chunk-2CQTWQUI.js
  9. 7
      .angular/cache/17.0.7/vite/deps/chunk-2CQTWQUI.js.map
  10. 116
      .angular/cache/17.0.7/vite/deps/chunk-55A2ZGND.js
  11. 7
      .angular/cache/17.0.7/vite/deps/chunk-55A2ZGND.js.map
  12. 400
      .angular/cache/17.0.7/vite/deps/chunk-5MZJ5XYV.js
  13. 7
      .angular/cache/17.0.7/vite/deps/chunk-5MZJ5XYV.js.map
  14. 185
      .angular/cache/17.0.7/vite/deps/chunk-6NZ2BEBG.js
  15. 7
      .angular/cache/17.0.7/vite/deps/chunk-6NZ2BEBG.js.map
  16. 309
      .angular/cache/17.0.7/vite/deps/chunk-6RXUTAFR.js
  17. 7
      .angular/cache/17.0.7/vite/deps/chunk-6RXUTAFR.js.map
  18. 2891
      .angular/cache/17.0.7/vite/deps/chunk-6U656R5M.js
  19. 7
      .angular/cache/17.0.7/vite/deps/chunk-6U656R5M.js.map
  20. 7
      .angular/cache/17.0.7/vite/deps/chunk-BXV7YWBX.js.map
  21. 5588
      .angular/cache/17.0.7/vite/deps/chunk-CZEXXPIB.js
  22. 7
      .angular/cache/17.0.7/vite/deps/chunk-CZEXXPIB.js.map
  23. 18
      .angular/cache/17.0.7/vite/deps/chunk-D5ODNR6D.js
  24. 2
      .angular/cache/17.0.7/vite/deps/chunk-D5ODNR6D.js.map
  25. 373
      .angular/cache/17.0.7/vite/deps/chunk-E6XJDY45.js
  26. 2
      .angular/cache/17.0.7/vite/deps/chunk-E6XJDY45.js.map
  27. 4
      .angular/cache/17.0.7/vite/deps/chunk-ECVKT3ZH.js
  28. 0
      .angular/cache/17.0.7/vite/deps/chunk-ECVKT3ZH.js.map
  29. 4
      .angular/cache/17.0.7/vite/deps/chunk-FGZVIKKA.js
  30. 0
      .angular/cache/17.0.7/vite/deps/chunk-FGZVIKKA.js.map
  31. 173
      .angular/cache/17.0.7/vite/deps/chunk-IAC53GOD.js
  32. 6
      .angular/cache/17.0.7/vite/deps/chunk-IAC53GOD.js.map
  33. 24
      .angular/cache/17.0.7/vite/deps/chunk-JGP5BR6B.js
  34. 2
      .angular/cache/17.0.7/vite/deps/chunk-JGP5BR6B.js.map
  35. 55
      .angular/cache/17.0.7/vite/deps/chunk-KI2JSLP6.js
  36. 4
      .angular/cache/17.0.7/vite/deps/chunk-KI2JSLP6.js.map
  37. 760
      .angular/cache/17.0.7/vite/deps/chunk-KMGBCF4T.js
  38. 7
      .angular/cache/17.0.7/vite/deps/chunk-KMGBCF4T.js.map
  39. 79
      .angular/cache/17.0.7/vite/deps/chunk-M5GY4FCO.js
  40. 6
      .angular/cache/17.0.7/vite/deps/chunk-M5GY4FCO.js.map
  41. 7
      .angular/cache/17.0.7/vite/deps/chunk-QI6CCAQD.js.map
  42. 14
      .angular/cache/17.0.7/vite/deps/chunk-QP2OUFNR.js
  43. 2
      .angular/cache/17.0.7/vite/deps/chunk-QP2OUFNR.js.map
  44. 4
      .angular/cache/17.0.7/vite/deps/chunk-T745QDCV.js
  45. 0
      .angular/cache/17.0.7/vite/deps/chunk-T745QDCV.js.map
  46. 15
      .angular/cache/17.0.7/vite/deps/chunk-VWMHIMW7.js
  47. 0
      .angular/cache/17.0.7/vite/deps/chunk-VWMHIMW7.js.map
  48. 6
      .angular/cache/17.0.7/vite/deps/chunk-WB57DPWD.js
  49. 0
      .angular/cache/17.0.7/vite/deps/chunk-WB57DPWD.js.map
  50. 1928
      .angular/cache/17.0.7/vite/deps/chunk-WKTPWT5U.js
  51. 7
      .angular/cache/17.0.7/vite/deps/chunk-WKTPWT5U.js.map
  52. 213
      .angular/cache/17.0.7/vite/deps/chunk-XAGDQPFO.js
  53. 7
      .angular/cache/17.0.7/vite/deps/chunk-XAGDQPFO.js.map
  54. 4
      .angular/cache/17.0.7/vite/deps/chunk-ZHMJ6SNN.js
  55. 0
      .angular/cache/17.0.7/vite/deps/chunk-ZHMJ6SNN.js.map
  56. 505
      .angular/cache/17.0.7/vite/deps/ng-zorro-antd_breadcrumb.js
  57. 7
      .angular/cache/17.0.7/vite/deps/ng-zorro-antd_breadcrumb.js.map
  58. 765
      .angular/cache/17.0.7/vite/deps/ng-zorro-antd_button.js
  59. 6
      .angular/cache/17.0.7/vite/deps/ng-zorro-antd_button.js.map
  60. 16
      .angular/cache/17.0.7/vite/deps/ng-zorro-antd_carousel.js
  61. 2
      .angular/cache/17.0.7/vite/deps/ng-zorro-antd_carousel.js.map
  62. 27
      .angular/cache/17.0.7/vite/deps/ng-zorro-antd_checkbox.js
  63. 2
      .angular/cache/17.0.7/vite/deps/ng-zorro-antd_checkbox.js.map
  64. 1073
      .angular/cache/17.0.7/vite/deps/ng-zorro-antd_drawer.js
  65. 7
      .angular/cache/17.0.7/vite/deps/ng-zorro-antd_drawer.js.map
  66. 56
      .angular/cache/17.0.7/vite/deps/ng-zorro-antd_form.js
  67. 2
      .angular/cache/17.0.7/vite/deps/ng-zorro-antd_form.js.map
  68. 11
      .angular/cache/17.0.7/vite/deps/ng-zorro-antd_grid.js
  69. 4
      .angular/cache/17.0.7/vite/deps/ng-zorro-antd_i18n.js
  70. 31
      .angular/cache/17.0.7/vite/deps/ng-zorro-antd_icon.js
  71. 7
      .angular/cache/17.0.7/vite/deps/ng-zorro-antd_icon.js.map
  72. 38
      .angular/cache/17.0.7/vite/deps/ng-zorro-antd_input.js
  73. 2
      .angular/cache/17.0.7/vite/deps/ng-zorro-antd_input.js.map
  74. 785
      .angular/cache/17.0.7/vite/deps/ng-zorro-antd_layout.js
  75. 7
      .angular/cache/17.0.7/vite/deps/ng-zorro-antd_layout.js.map
  76. 58
      .angular/cache/17.0.7/vite/deps/ng-zorro-antd_menu.js
  77. 7
      .angular/cache/17.0.7/vite/deps/ng-zorro-antd_menu.js.map
  78. 31
      .angular/cache/17.0.7/vite/deps/ng-zorro-antd_message.js
  79. 2
      .angular/cache/17.0.7/vite/deps/ng-zorro-antd_message.js.map
  80. 33
      .angular/cache/17.0.7/vite/deps/ng-zorro-antd_slider.js
  81. 2
      .angular/cache/17.0.7/vite/deps/ng-zorro-antd_slider.js.map
  82. 2858
      .angular/cache/17.0.7/vite/deps/ng-zorro-antd_tabs.js
  83. 7
      .angular/cache/17.0.7/vite/deps/ng-zorro-antd_tabs.js.map
  84. 14
      src/app/app.config.ts
  85. 15
      src/app/app.routes.ts
  86. 5
      src/app/data/login/localStorage.namespace.ts
  87. 9
      src/app/data/menu/menu.namespace.ts
  88. 10
      src/app/pages/body/body.module.ts
  89. 80
      src/app/pages/body/index/index.component.html
  90. 84
      src/app/pages/body/index/index.component.less
  91. 78
      src/app/pages/body/index/index.component.ts
  92. 7
      src/app/pages/body/tab/tab.component.html
  93. 30
      src/app/pages/body/tab/tab.component.less
  94. 20
      src/app/pages/body/tab/tab.component.ts
  95. 10
      src/app/pages/index/index.module.ts
  96. 6
      src/app/pages/index/index.routes.ts
  97. 1
      src/app/pages/index/index/index.component.html
  98. 0
      src/app/pages/index/index/index.component.less
  99. 18
      src/app/pages/index/index/index.component.ts
  100. 2
      src/app/pages/login/login/login.component.html
  101. Some files were not shown because too many files have changed in this diff Show More

File diff suppressed because one or more lines are too long

@ -0,0 +1,48 @@
import {
AUTO_STYLE,
AnimationBuilder,
AnimationFactory,
AnimationGroupPlayer,
BrowserAnimationBuilder,
NoopAnimationPlayer,
animate,
animateChild,
animation,
group,
keyframes,
query,
sequence,
stagger,
state,
style,
transition,
trigger,
useAnimation,
ɵPRE_STYLE
} from "./chunk-KI2JSLP6.js";
import "./chunk-OSQBUYO6.js";
import "./chunk-FGESKT7O.js";
import "./chunk-HSNDBVJ3.js";
export {
AUTO_STYLE,
AnimationBuilder,
AnimationFactory,
NoopAnimationPlayer,
animate,
animateChild,
animation,
group,
keyframes,
query,
sequence,
stagger,
state,
style,
transition,
trigger,
useAnimation,
AnimationGroupPlayer as ɵAnimationGroupPlayer,
BrowserAnimationBuilder as ɵBrowserAnimationBuilder,
ɵPRE_STYLE
};
//# sourceMappingURL=@angular_animations.js.map

@ -0,0 +1,7 @@
{
"version": 3,
"sources": [],
"sourcesContent": [],
"mappings": "",
"names": []
}

@ -4,8 +4,8 @@ import {
NoopAnimationsModule,
provideAnimations,
provideNoopAnimations
} from "./chunk-FILHFU6K.js";
import "./chunk-BNCUYWOH.js";
} from "./chunk-ECVKT3ZH.js";
import "./chunk-KI2JSLP6.js";
import "./chunk-Y4CEYMY2.js";
import "./chunk-X7WBA24Z.js";
import "./chunk-OSQBUYO6.js";

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

@ -1,162 +1,228 @@
{
"hash": "cc225bbb",
"browserHash": "dbe8d3c7",
"hash": "f2c549cf",
"browserHash": "6460fb2f",
"optimized": {
"@angular/common": {
"src": "../../../../../node_modules/@angular/common/fesm2022/common.mjs",
"file": "@angular_common.js",
"fileHash": "d661ed7d",
"fileHash": "59595a21",
"needsInterop": false
},
"@angular/common/http": {
"src": "../../../../../node_modules/@angular/common/fesm2022/http.mjs",
"file": "@angular_common_http.js",
"fileHash": "5b740f7b",
"fileHash": "2c57824c",
"needsInterop": false
},
"@angular/common/locales/zh": {
"src": "../../../../../node_modules/@angular/common/locales/zh.mjs",
"file": "@angular_common_locales_zh.js",
"fileHash": "7c33e27f",
"fileHash": "bb85227d",
"needsInterop": false
},
"@angular/core": {
"src": "../../../../../node_modules/@angular/core/fesm2022/core.mjs",
"file": "@angular_core.js",
"fileHash": "f0838544",
"fileHash": "f3b036a6",
"needsInterop": false
},
"@angular/forms": {
"src": "../../../../../node_modules/@angular/forms/fesm2022/forms.mjs",
"file": "@angular_forms.js",
"fileHash": "ae0cc6b3",
"fileHash": "895ea0a9",
"needsInterop": false
},
"@angular/platform-browser": {
"src": "../../../../../node_modules/@angular/platform-browser/fesm2022/platform-browser.mjs",
"file": "@angular_platform-browser.js",
"fileHash": "93683fb3",
"fileHash": "3477a2a2",
"needsInterop": false
},
"@angular/platform-browser/animations": {
"src": "../../../../../node_modules/@angular/platform-browser/fesm2022/animations.mjs",
"file": "@angular_platform-browser_animations.js",
"fileHash": "b6899561",
"fileHash": "37b95759",
"needsInterop": false
},
"@angular/router": {
"src": "../../../../../node_modules/@angular/router/fesm2022/router.mjs",
"file": "@angular_router.js",
"fileHash": "e640f2a0",
"fileHash": "03f6ea04",
"needsInterop": false
},
"ng-zorro-antd/button": {
"src": "../../../../../node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-button.mjs",
"file": "ng-zorro-antd_button.js",
"fileHash": "10e41c15",
"needsInterop": false
},
"ng-zorro-antd/carousel": {
"src": "../../../../../node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-carousel.mjs",
"file": "ng-zorro-antd_carousel.js",
"fileHash": "c48acf28",
"fileHash": "e182053d",
"needsInterop": false
},
"ng-zorro-antd/i18n": {
"src": "../../../../../node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-i18n.mjs",
"file": "ng-zorro-antd_i18n.js",
"fileHash": "5e035d5e",
"ng-zorro-antd/checkbox": {
"src": "../../../../../node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-checkbox.mjs",
"file": "ng-zorro-antd_checkbox.js",
"fileHash": "4236d5cd",
"needsInterop": false
},
"ng-zorro-antd/form": {
"src": "../../../../../node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-form.mjs",
"file": "ng-zorro-antd_form.js",
"fileHash": "51dcbecb",
"needsInterop": false
},
"ng-zorro-antd/input": {
"src": "../../../../../node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-input.mjs",
"file": "ng-zorro-antd_input.js",
"fileHash": "c5664a3f",
"fileHash": "e14855e4",
"needsInterop": false
},
"ng-zorro-antd/grid": {
"src": "../../../../../node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-grid.mjs",
"file": "ng-zorro-antd_grid.js",
"fileHash": "37ac34ea",
"fileHash": "3f1a0f26",
"needsInterop": false
},
"ng-zorro-antd/button": {
"src": "../../../../../node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-button.mjs",
"file": "ng-zorro-antd_button.js",
"fileHash": "2e1315f7",
"ng-zorro-antd/i18n": {
"src": "../../../../../node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-i18n.mjs",
"file": "ng-zorro-antd_i18n.js",
"fileHash": "f58def7c",
"needsInterop": false
},
"ng-zorro-antd/checkbox": {
"src": "../../../../../node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-checkbox.mjs",
"file": "ng-zorro-antd_checkbox.js",
"fileHash": "398f6684",
"ng-zorro-antd/input": {
"src": "../../../../../node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-input.mjs",
"file": "ng-zorro-antd_input.js",
"fileHash": "039d5013",
"needsInterop": false
},
"ng-zorro-antd/message": {
"src": "../../../../../node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-message.mjs",
"file": "ng-zorro-antd_message.js",
"fileHash": "ce0966f1",
"needsInterop": false
},
"ng-zorro-antd/slider": {
"src": "../../../../../node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-slider.mjs",
"file": "ng-zorro-antd_slider.js",
"fileHash": "8c8d415d",
"fileHash": "d5dd996a",
"needsInterop": false
},
"ng-zorro-antd/message": {
"src": "../../../../../node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-message.mjs",
"file": "ng-zorro-antd_message.js",
"fileHash": "b9a4f3d4",
"ng-zorro-antd/layout": {
"src": "../../../../../node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-layout.mjs",
"file": "ng-zorro-antd_layout.js",
"fileHash": "5184b024",
"needsInterop": false
},
"ng-zorro-antd/breadcrumb": {
"src": "../../../../../node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-breadcrumb.mjs",
"file": "ng-zorro-antd_breadcrumb.js",
"fileHash": "a30d135a",
"needsInterop": false
},
"ng-zorro-antd/menu": {
"src": "../../../../../node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-menu.mjs",
"file": "ng-zorro-antd_menu.js",
"fileHash": "8c79e727",
"needsInterop": false
},
"@angular/animations": {
"src": "../../../../../node_modules/@angular/animations/fesm2022/animations.mjs",
"file": "@angular_animations.js",
"fileHash": "4591f2a0",
"needsInterop": false
},
"ng-zorro-antd/icon": {
"src": "../../../../../node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-icon.mjs",
"file": "ng-zorro-antd_icon.js",
"fileHash": "106b5b91",
"needsInterop": false
},
"ng-zorro-antd/tabs": {
"src": "../../../../../node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-tabs.mjs",
"file": "ng-zorro-antd_tabs.js",
"fileHash": "bb33851d",
"needsInterop": false
},
"ng-zorro-antd/drawer": {
"src": "../../../../../node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-drawer.mjs",
"file": "ng-zorro-antd_drawer.js",
"fileHash": "b3ae3835",
"needsInterop": false
}
},
"chunks": {
"chunk-5W7CSQ4E": {
"file": "chunk-5W7CSQ4E.js"
"chunk-2CQTWQUI": {
"file": "chunk-2CQTWQUI.js"
},
"chunk-YSQE3J2Q": {
"file": "chunk-YSQE3J2Q.js"
"chunk-WKTPWT5U": {
"file": "chunk-WKTPWT5U.js"
},
"chunk-C2DNBB57": {
"file": "chunk-C2DNBB57.js"
"chunk-CZEXXPIB": {
"file": "chunk-CZEXXPIB.js"
},
"chunk-W2UE3A2Q": {
"file": "chunk-W2UE3A2Q.js"
"chunk-5MZJ5XYV": {
"file": "chunk-5MZJ5XYV.js"
},
"chunk-BXV7YWBX": {
"file": "chunk-BXV7YWBX.js"
"chunk-6RXUTAFR": {
"file": "chunk-6RXUTAFR.js"
},
"chunk-S7G3TSRW": {
"file": "chunk-S7G3TSRW.js"
"chunk-QP2OUFNR": {
"file": "chunk-QP2OUFNR.js"
},
"chunk-QI6CCAQD": {
"file": "chunk-QI6CCAQD.js"
"chunk-FGZVIKKA": {
"file": "chunk-FGZVIKKA.js"
},
"chunk-VOD2PKZN": {
"file": "chunk-VOD2PKZN.js"
"chunk-T745QDCV": {
"file": "chunk-T745QDCV.js"
},
"chunk-W3IYJMS2": {
"file": "chunk-W3IYJMS2.js"
"chunk-XAGDQPFO": {
"file": "chunk-XAGDQPFO.js"
},
"chunk-UMSNQQWJ": {
"file": "chunk-UMSNQQWJ.js"
"chunk-D5ODNR6D": {
"file": "chunk-D5ODNR6D.js"
},
"chunk-5OJ3CSUZ": {
"file": "chunk-5OJ3CSUZ.js"
"chunk-55A2ZGND": {
"file": "chunk-55A2ZGND.js"
},
"chunk-NOIPAY33": {
"file": "chunk-NOIPAY33.js"
"chunk-E6XJDY45": {
"file": "chunk-E6XJDY45.js"
},
"chunk-UPQZZZIG": {
"file": "chunk-UPQZZZIG.js"
"chunk-6U656R5M": {
"file": "chunk-6U656R5M.js"
},
"chunk-7XTJNSRU": {
"file": "chunk-7XTJNSRU.js"
"chunk-VOD2PKZN": {
"file": "chunk-VOD2PKZN.js"
},
"chunk-FILHFU6K": {
"file": "chunk-FILHFU6K.js"
"chunk-JGP5BR6B": {
"file": "chunk-JGP5BR6B.js"
},
"chunk-BNCUYWOH": {
"file": "chunk-BNCUYWOH.js"
"chunk-WB57DPWD": {
"file": "chunk-WB57DPWD.js"
},
"chunk-D4IIJHV7": {
"file": "chunk-D4IIJHV7.js"
},
"chunk-KMGBCF4T": {
"file": "chunk-KMGBCF4T.js"
},
"chunk-VWMHIMW7": {
"file": "chunk-VWMHIMW7.js"
},
"chunk-ZHMJ6SNN": {
"file": "chunk-ZHMJ6SNN.js"
},
"chunk-6NZ2BEBG": {
"file": "chunk-6NZ2BEBG.js"
},
"chunk-IAC53GOD": {
"file": "chunk-IAC53GOD.js"
},
"chunk-M5GY4FCO": {
"file": "chunk-M5GY4FCO.js"
},
"chunk-ECVKT3ZH": {
"file": "chunk-ECVKT3ZH.js"
},
"chunk-KI2JSLP6": {
"file": "chunk-KI2JSLP6.js"
},
"chunk-Y4CEYMY2": {
"file": "chunk-Y4CEYMY2.js"
},

@ -0,0 +1,720 @@
import {
MenuService,
NzIsMenuInsideDropDownToken,
NzMenuModule
} from "./chunk-WKTPWT5U.js";
import {
POSITION_MAP
} from "./chunk-6RXUTAFR.js";
import {
slideMotion
} from "./chunk-XAGDQPFO.js";
import {
NzNoAnimationDirective
} from "./chunk-55A2ZGND.js";
import {
ConnectionPositionPair,
Overlay,
TemplatePortal
} from "./chunk-6U656R5M.js";
import {
ESCAPE,
hasModifierKey
} from "./chunk-JGP5BR6B.js";
import {
NzButtonGroupComponent
} from "./chunk-KMGBCF4T.js";
import {
NzConfigService,
WithConfig
} from "./chunk-ZHMJ6SNN.js";
import {
Directionality
} from "./chunk-6NZ2BEBG.js";
import {
Platform
} from "./chunk-IAC53GOD.js";
import {
InputBoolean
} from "./chunk-M5GY4FCO.js";
import {
NgClass,
NgStyle
} from "./chunk-OSQBUYO6.js";
import {
BehaviorSubject,
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
Directive,
EMPTY,
ElementRef,
EventEmitter,
Host,
Injectable,
Input,
NgModule,
NgZone,
Optional,
Output,
Renderer2,
Subject,
Subscription,
TemplateRef,
ViewChild,
ViewContainerRef,
ViewEncapsulation$1,
__decorate,
auditTime,
combineLatest,
distinctUntilChanged,
filter,
first,
fromEvent,
map,
mapTo,
merge,
setClassMetadata,
switchMap,
takeUntil,
ɵɵNgOnChangesFeature,
ɵɵProvidersFeature,
ɵɵStandaloneFeature,
ɵɵclassProp,
ɵɵdefineComponent,
ɵɵdefineDirective,
ɵɵdefineInjectable,
ɵɵdefineInjector,
ɵɵdefineNgModule,
ɵɵdirectiveInject,
ɵɵelementEnd,
ɵɵelementStart,
ɵɵgetCurrentView,
ɵɵinject,
ɵɵlistener,
ɵɵloadQuery,
ɵɵnextContext,
ɵɵprojection,
ɵɵprojectionDef,
ɵɵproperty,
ɵɵqueryRefresh,
ɵɵresetView,
ɵɵrestoreView,
ɵɵtemplate,
ɵɵviewQuery
} from "./chunk-FGESKT7O.js";
// node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-dropdown.mjs
function NzDropdownMenuComponent_ng_template_0_Template(rf, ctx) {
if (rf & 1) {
const _r2 = ɵɵgetCurrentView();
ɵɵelementStart(0, "div", 0);
ɵɵlistener("@slideMotion.done", function NzDropdownMenuComponent_ng_template_0_Template_div_animation_slideMotion_done_0_listener($event) {
ɵɵrestoreView(_r2);
const ctx_r1 = ɵɵnextContext();
return ɵɵresetView(ctx_r1.onAnimationEvent($event));
})("mouseenter", function NzDropdownMenuComponent_ng_template_0_Template_div_mouseenter_0_listener() {
ɵɵrestoreView(_r2);
const ctx_r3 = ɵɵnextContext();
return ɵɵresetView(ctx_r3.setMouseState(true));
})("mouseleave", function NzDropdownMenuComponent_ng_template_0_Template_div_mouseleave_0_listener() {
ɵɵrestoreView(_r2);
const ctx_r4 = ɵɵnextContext();
return ɵɵresetView(ctx_r4.setMouseState(false));
});
ɵɵprojection(1);
ɵɵelementEnd();
}
if (rf & 2) {
const ctx_r0 = ɵɵnextContext();
ɵɵclassProp("ant-dropdown-rtl", ctx_r0.dir === "rtl");
ɵɵproperty("ngClass", ctx_r0.nzOverlayClassName)("ngStyle", ctx_r0.nzOverlayStyle)("@slideMotion", void 0)("@.disabled", !!(ctx_r0.noAnimation == null ? null : ctx_r0.noAnimation.nzNoAnimation))("nzNoAnimation", ctx_r0.noAnimation == null ? null : ctx_r0.noAnimation.nzNoAnimation);
}
}
var _c0 = ["*"];
var NZ_CONFIG_MODULE_NAME = "dropDown";
var listOfPositions = [POSITION_MAP.bottomLeft, POSITION_MAP.bottomRight, POSITION_MAP.topRight, POSITION_MAP.topLeft];
var _NzDropDownDirective = class _NzDropDownDirective {
setDropdownMenuValue(key, value) {
if (this.nzDropdownMenu) {
this.nzDropdownMenu.setValue(key, value);
}
}
constructor(nzConfigService, elementRef, overlay, renderer, viewContainerRef, platform) {
this.nzConfigService = nzConfigService;
this.elementRef = elementRef;
this.overlay = overlay;
this.renderer = renderer;
this.viewContainerRef = viewContainerRef;
this.platform = platform;
this._nzModuleName = NZ_CONFIG_MODULE_NAME;
this.overlayRef = null;
this.destroy$ = new Subject();
this.positionStrategy = this.overlay.position().flexibleConnectedTo(this.elementRef.nativeElement).withLockedPosition().withTransformOriginOn(".ant-dropdown");
this.inputVisible$ = new BehaviorSubject(false);
this.nzTrigger$ = new BehaviorSubject("hover");
this.overlayClose$ = new Subject();
this.nzDropdownMenu = null;
this.nzTrigger = "hover";
this.nzMatchWidthElement = null;
this.nzBackdrop = false;
this.nzClickHide = true;
this.nzDisabled = false;
this.nzVisible = false;
this.nzOverlayClassName = "";
this.nzOverlayStyle = {};
this.nzPlacement = "bottomLeft";
this.nzVisibleChange = new EventEmitter();
}
ngAfterViewInit() {
if (this.nzDropdownMenu) {
const nativeElement = this.elementRef.nativeElement;
const hostMouseState$ = merge(fromEvent(nativeElement, "mouseenter").pipe(mapTo(true)), fromEvent(nativeElement, "mouseleave").pipe(mapTo(false)));
const menuMouseState$ = this.nzDropdownMenu.mouseState$;
const mergedMouseState$ = merge(menuMouseState$, hostMouseState$);
const hostClickState$ = fromEvent(nativeElement, "click").pipe(map(() => !this.nzVisible));
const visibleStateByTrigger$ = this.nzTrigger$.pipe(switchMap((trigger) => {
if (trigger === "hover") {
return mergedMouseState$;
} else if (trigger === "click") {
return hostClickState$;
} else {
return EMPTY;
}
}));
const descendantMenuItemClick$ = this.nzDropdownMenu.descendantMenuItemClick$.pipe(filter(() => this.nzClickHide), mapTo(false));
const domTriggerVisible$ = merge(visibleStateByTrigger$, descendantMenuItemClick$, this.overlayClose$).pipe(filter(() => !this.nzDisabled));
const visible$ = merge(this.inputVisible$, domTriggerVisible$);
combineLatest([visible$, this.nzDropdownMenu.isChildSubMenuOpen$]).pipe(map(([visible, sub]) => visible || sub), auditTime(150), distinctUntilChanged(), filter(() => this.platform.isBrowser), takeUntil(this.destroy$)).subscribe((visible) => {
const element = this.nzMatchWidthElement ? this.nzMatchWidthElement.nativeElement : nativeElement;
const triggerWidth = element.getBoundingClientRect().width;
if (this.nzVisible !== visible) {
this.nzVisibleChange.emit(visible);
}
this.nzVisible = visible;
if (visible) {
if (!this.overlayRef) {
this.overlayRef = this.overlay.create({
positionStrategy: this.positionStrategy,
minWidth: triggerWidth,
disposeOnNavigation: true,
hasBackdrop: this.nzBackdrop && this.nzTrigger === "click",
scrollStrategy: this.overlay.scrollStrategies.reposition()
});
merge(this.overlayRef.backdropClick(), this.overlayRef.detachments(), this.overlayRef.outsidePointerEvents().pipe(filter((e) => !this.elementRef.nativeElement.contains(e.target))), this.overlayRef.keydownEvents().pipe(filter((e) => e.keyCode === ESCAPE && !hasModifierKey(e)))).pipe(takeUntil(this.destroy$)).subscribe(() => {
this.overlayClose$.next(false);
});
} else {
const overlayConfig = this.overlayRef.getConfig();
overlayConfig.minWidth = triggerWidth;
}
this.positionStrategy.withPositions([POSITION_MAP[this.nzPlacement], ...listOfPositions]);
if (!this.portal || this.portal.templateRef !== this.nzDropdownMenu.templateRef) {
this.portal = new TemplatePortal(this.nzDropdownMenu.templateRef, this.viewContainerRef);
}
this.overlayRef.attach(this.portal);
} else {
if (this.overlayRef) {
this.overlayRef.detach();
}
}
});
this.nzDropdownMenu.animationStateChange$.pipe(takeUntil(this.destroy$)).subscribe((event) => {
if (event.toState === "void") {
if (this.overlayRef) {
this.overlayRef.dispose();
}
this.overlayRef = null;
}
});
}
}
ngOnDestroy() {
this.destroy$.next(true);
this.destroy$.complete();
if (this.overlayRef) {
this.overlayRef.dispose();
this.overlayRef = null;
}
}
ngOnChanges(changes) {
const {
nzVisible,
nzDisabled,
nzOverlayClassName,
nzOverlayStyle,
nzTrigger
} = changes;
if (nzTrigger) {
this.nzTrigger$.next(this.nzTrigger);
}
if (nzVisible) {
this.inputVisible$.next(this.nzVisible);
}
if (nzDisabled) {
const nativeElement = this.elementRef.nativeElement;
if (this.nzDisabled) {
this.renderer.setAttribute(nativeElement, "disabled", "");
this.inputVisible$.next(false);
} else {
this.renderer.removeAttribute(nativeElement, "disabled");
}
}
if (nzOverlayClassName) {
this.setDropdownMenuValue("nzOverlayClassName", this.nzOverlayClassName);
}
if (nzOverlayStyle) {
this.setDropdownMenuValue("nzOverlayStyle", this.nzOverlayStyle);
}
}
};
_NzDropDownDirective.ɵfac = function NzDropDownDirective_Factory(t) {
return new (t || _NzDropDownDirective)(ɵɵdirectiveInject(NzConfigService), ɵɵdirectiveInject(ElementRef), ɵɵdirectiveInject(Overlay), ɵɵdirectiveInject(Renderer2), ɵɵdirectiveInject(ViewContainerRef), ɵɵdirectiveInject(Platform));
};
_NzDropDownDirective.ɵdir = ɵɵdefineDirective({
type: _NzDropDownDirective,
selectors: [["", "nz-dropdown", ""]],
hostAttrs: [1, "ant-dropdown-trigger"],
inputs: {
nzDropdownMenu: "nzDropdownMenu",
nzTrigger: "nzTrigger",
nzMatchWidthElement: "nzMatchWidthElement",
nzBackdrop: "nzBackdrop",
nzClickHide: "nzClickHide",
nzDisabled: "nzDisabled",
nzVisible: "nzVisible",
nzOverlayClassName: "nzOverlayClassName",
nzOverlayStyle: "nzOverlayStyle",
nzPlacement: "nzPlacement"
},
outputs: {
nzVisibleChange: "nzVisibleChange"
},
exportAs: ["nzDropdown"],
standalone: true,
features: [ɵɵNgOnChangesFeature]
});
var NzDropDownDirective = _NzDropDownDirective;
__decorate([WithConfig(), InputBoolean()], NzDropDownDirective.prototype, "nzBackdrop", void 0);
__decorate([InputBoolean()], NzDropDownDirective.prototype, "nzClickHide", void 0);
__decorate([InputBoolean()], NzDropDownDirective.prototype, "nzDisabled", void 0);
__decorate([InputBoolean()], NzDropDownDirective.prototype, "nzVisible", void 0);
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NzDropDownDirective, [{
type: Directive,
args: [{
selector: "[nz-dropdown]",
exportAs: "nzDropdown",
host: {
class: "ant-dropdown-trigger"
},
standalone: true
}]
}], () => [{
type: NzConfigService
}, {
type: ElementRef
}, {
type: Overlay
}, {
type: Renderer2
}, {
type: ViewContainerRef
}, {
type: Platform
}], {
nzDropdownMenu: [{
type: Input
}],
nzTrigger: [{
type: Input
}],
nzMatchWidthElement: [{
type: Input
}],
nzBackdrop: [{
type: Input
}],
nzClickHide: [{
type: Input
}],
nzDisabled: [{
type: Input
}],
nzVisible: [{
type: Input
}],
nzOverlayClassName: [{
type: Input
}],
nzOverlayStyle: [{
type: Input
}],
nzPlacement: [{
type: Input
}],
nzVisibleChange: [{
type: Output
}]
});
})();
var _NzContextMenuServiceModule = class _NzContextMenuServiceModule {
};
_NzContextMenuServiceModule.ɵfac = function NzContextMenuServiceModule_Factory(t) {
return new (t || _NzContextMenuServiceModule)();
};
_NzContextMenuServiceModule.ɵmod = ɵɵdefineNgModule({
type: _NzContextMenuServiceModule
});
_NzContextMenuServiceModule.ɵinj = ɵɵdefineInjector({});
var NzContextMenuServiceModule = _NzContextMenuServiceModule;
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NzContextMenuServiceModule, [{
type: NgModule
}], null, null);
})();
var _NzDropDownADirective = class _NzDropDownADirective {
constructor() {
}
};
_NzDropDownADirective.ɵfac = function NzDropDownADirective_Factory(t) {
return new (t || _NzDropDownADirective)();
};
_NzDropDownADirective.ɵdir = ɵɵdefineDirective({
type: _NzDropDownADirective,
selectors: [["a", "nz-dropdown", ""]],
hostAttrs: [1, "ant-dropdown-link"],
standalone: true
});
var NzDropDownADirective = _NzDropDownADirective;
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NzDropDownADirective, [{
type: Directive,
args: [{
selector: "a[nz-dropdown]",
host: {
class: "ant-dropdown-link"
},
standalone: true
}]
}], () => [], null);
})();
var _NzDropdownButtonDirective = class _NzDropdownButtonDirective {
constructor(renderer, nzButtonGroupComponent, elementRef) {
this.renderer = renderer;
this.nzButtonGroupComponent = nzButtonGroupComponent;
this.elementRef = elementRef;
}
ngAfterViewInit() {
const parentElement = this.renderer.parentNode(this.elementRef.nativeElement);
if (this.nzButtonGroupComponent && parentElement) {
this.renderer.addClass(parentElement, "ant-dropdown-button");
}
}
};
_NzDropdownButtonDirective.ɵfac = function NzDropdownButtonDirective_Factory(t) {
return new (t || _NzDropdownButtonDirective)(ɵɵdirectiveInject(Renderer2), ɵɵdirectiveInject(NzButtonGroupComponent, 9), ɵɵdirectiveInject(ElementRef));
};
_NzDropdownButtonDirective.ɵdir = ɵɵdefineDirective({
type: _NzDropdownButtonDirective,
selectors: [["", "nz-button", "", "nz-dropdown", ""]],
standalone: true
});
var NzDropdownButtonDirective = _NzDropdownButtonDirective;
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NzDropdownButtonDirective, [{
type: Directive,
args: [{
selector: "[nz-button][nz-dropdown]",
standalone: true
}]
}], () => [{
type: Renderer2
}, {
type: NzButtonGroupComponent,
decorators: [{
type: Host
}, {
type: Optional
}]
}, {
type: ElementRef
}], null);
})();
var _NzDropdownMenuComponent = class _NzDropdownMenuComponent {
onAnimationEvent(event) {
this.animationStateChange$.emit(event);
}
setMouseState(visible) {
this.mouseState$.next(visible);
}
setValue(key, value) {
this[key] = value;
this.cdr.markForCheck();
}
constructor(cdr, elementRef, renderer, viewContainerRef, nzMenuService, directionality, noAnimation) {
this.cdr = cdr;
this.elementRef = elementRef;
this.renderer = renderer;
this.viewContainerRef = viewContainerRef;
this.nzMenuService = nzMenuService;
this.directionality = directionality;
this.noAnimation = noAnimation;
this.mouseState$ = new BehaviorSubject(false);
this.isChildSubMenuOpen$ = this.nzMenuService.isChildSubMenuOpen$;
this.descendantMenuItemClick$ = this.nzMenuService.descendantMenuItemClick$;
this.animationStateChange$ = new EventEmitter();
this.nzOverlayClassName = "";
this.nzOverlayStyle = {};
this.dir = "ltr";
this.destroy$ = new Subject();
}
ngOnInit() {
this.directionality.change?.pipe(takeUntil(this.destroy$)).subscribe((direction) => {
this.dir = direction;
this.cdr.detectChanges();
});
this.dir = this.directionality.value;
}
ngAfterContentInit() {
this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement), this.elementRef.nativeElement);
}
ngOnDestroy() {
this.destroy$.next();
this.destroy$.complete();
}
};
_NzDropdownMenuComponent.ɵfac = function NzDropdownMenuComponent_Factory(t) {
return new (t || _NzDropdownMenuComponent)(ɵɵdirectiveInject(ChangeDetectorRef), ɵɵdirectiveInject(ElementRef), ɵɵdirectiveInject(Renderer2), ɵɵdirectiveInject(ViewContainerRef), ɵɵdirectiveInject(MenuService), ɵɵdirectiveInject(Directionality, 8), ɵɵdirectiveInject(NzNoAnimationDirective, 9));
};
_NzDropdownMenuComponent.ɵcmp = ɵɵdefineComponent({
type: _NzDropdownMenuComponent,
selectors: [["nz-dropdown-menu"]],
viewQuery: function NzDropdownMenuComponent_Query(rf, ctx) {
if (rf & 1) {
ɵɵviewQuery(TemplateRef, 7);
}
if (rf & 2) {
let _t;
ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx.templateRef = _t.first);
}
},
exportAs: ["nzDropdownMenu"],
standalone: true,
features: [ɵɵProvidersFeature([
MenuService,
/** menu is inside dropdown-menu component **/
{
provide: NzIsMenuInsideDropDownToken,
useValue: true
}
]), ɵɵStandaloneFeature],
ngContentSelectors: _c0,
decls: 1,
vars: 0,
consts: [[1, "ant-dropdown", 3, "ngClass", "ngStyle", "nzNoAnimation", "mouseenter", "mouseleave"]],
template: function NzDropdownMenuComponent_Template(rf, ctx) {
if (rf & 1) {
ɵɵprojectionDef();
ɵɵtemplate(0, NzDropdownMenuComponent_ng_template_0_Template, 2, 7, "ng-template");
}
},
dependencies: [NgClass, NgStyle, NzNoAnimationDirective],
encapsulation: 2,
data: {
animation: [slideMotion]
},
changeDetection: 0
});
var NzDropdownMenuComponent = _NzDropdownMenuComponent;
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NzDropdownMenuComponent, [{
type: Component,
args: [{
selector: `nz-dropdown-menu`,
exportAs: `nzDropdownMenu`,
animations: [slideMotion],
providers: [
MenuService,
/** menu is inside dropdown-menu component **/
{
provide: NzIsMenuInsideDropDownToken,
useValue: true
}
],
template: `
<ng-template>
<div
class="ant-dropdown"
[class.ant-dropdown-rtl]="dir === 'rtl'"
[ngClass]="nzOverlayClassName"
[ngStyle]="nzOverlayStyle"
@slideMotion
(@slideMotion.done)="onAnimationEvent($event)"
[@.disabled]="!!noAnimation?.nzNoAnimation"
[nzNoAnimation]="noAnimation?.nzNoAnimation"
(mouseenter)="setMouseState(true)"
(mouseleave)="setMouseState(false)"
>
<ng-content></ng-content>
</div>
</ng-template>
`,
preserveWhitespaces: false,
encapsulation: ViewEncapsulation$1.None,
changeDetection: ChangeDetectionStrategy.OnPush,
imports: [NgClass, NgStyle, NzNoAnimationDirective],
standalone: true
}]
}], () => [{
type: ChangeDetectorRef
}, {
type: ElementRef
}, {
type: Renderer2
}, {
type: ViewContainerRef
}, {
type: MenuService
}, {
type: Directionality,
decorators: [{
type: Optional
}]
}, {
type: NzNoAnimationDirective,
decorators: [{
type: Host
}, {
type: Optional
}]
}], {
templateRef: [{
type: ViewChild,
args: [TemplateRef, {
static: true
}]
}]
});
})();
var _NzDropDownModule = class _NzDropDownModule {
};
_NzDropDownModule.ɵfac = function NzDropDownModule_Factory(t) {
return new (t || _NzDropDownModule)();
};
_NzDropDownModule.ɵmod = ɵɵdefineNgModule({
type: _NzDropDownModule,
imports: [NzDropDownDirective, NzDropDownADirective, NzDropdownMenuComponent, NzDropdownButtonDirective, NzContextMenuServiceModule],
exports: [NzMenuModule, NzDropDownDirective, NzDropDownADirective, NzDropdownMenuComponent, NzDropdownButtonDirective]
});
_NzDropDownModule.ɵinj = ɵɵdefineInjector({
imports: [NzContextMenuServiceModule, NzMenuModule]
});
var NzDropDownModule = _NzDropDownModule;
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NzDropDownModule, [{
type: NgModule,
args: [{
imports: [NzDropDownDirective, NzDropDownADirective, NzDropdownMenuComponent, NzDropdownButtonDirective, NzContextMenuServiceModule],
exports: [NzMenuModule, NzDropDownDirective, NzDropDownADirective, NzDropdownMenuComponent, NzDropdownButtonDirective]
}]
}], null, null);
})();
var LIST_OF_POSITIONS = [new ConnectionPositionPair({
originX: "start",
originY: "top"
}, {
overlayX: "start",
overlayY: "top"
}), new ConnectionPositionPair({
originX: "start",
originY: "top"
}, {
overlayX: "start",
overlayY: "bottom"
}), new ConnectionPositionPair({
originX: "start",
originY: "top"
}, {
overlayX: "end",
overlayY: "bottom"
}), new ConnectionPositionPair({
originX: "start",
originY: "top"
}, {
overlayX: "end",
overlayY: "top"
})];
var _NzContextMenuService = class _NzContextMenuService {
constructor(ngZone, overlay) {
this.ngZone = ngZone;
this.overlay = overlay;
this.overlayRef = null;
this.closeSubscription = Subscription.EMPTY;
}
create($event, nzDropdownMenuComponent) {
this.close(true);
const {
x,
y
} = $event;
if ($event instanceof MouseEvent) {
$event.preventDefault();
}
const positionStrategy = this.overlay.position().flexibleConnectedTo({
x,
y
}).withPositions(LIST_OF_POSITIONS).withTransformOriginOn(".ant-dropdown");
this.overlayRef = this.overlay.create({
positionStrategy,
disposeOnNavigation: true,
scrollStrategy: this.overlay.scrollStrategies.close()
});
this.closeSubscription = new Subscription();
this.closeSubscription.add(nzDropdownMenuComponent.descendantMenuItemClick$.subscribe(() => this.close()));
this.closeSubscription.add(this.ngZone.runOutsideAngular(() => merge(fromEvent(document, "click").pipe(
filter((event) => !!this.overlayRef && !this.overlayRef.overlayElement.contains(event.target)),
/** handle firefox contextmenu event **/
filter((event) => event.button !== 2)
), fromEvent(document, "keydown").pipe(filter((event) => event.key === "Escape"))).pipe(first()).subscribe(() => this.ngZone.run(() => this.close()))));
return this.overlayRef.attach(new TemplatePortal(nzDropdownMenuComponent.templateRef, nzDropdownMenuComponent.viewContainerRef));
}
close(clear = false) {
if (this.overlayRef) {
this.overlayRef.detach();
if (clear) {
this.overlayRef.dispose();
}
this.overlayRef = null;
this.closeSubscription.unsubscribe();
}
}
};
_NzContextMenuService.ɵfac = function NzContextMenuService_Factory(t) {
return new (t || _NzContextMenuService)(ɵɵinject(NgZone), ɵɵinject(Overlay));
};
_NzContextMenuService.ɵprov = ɵɵdefineInjectable({
token: _NzContextMenuService,
factory: _NzContextMenuService.ɵfac,
providedIn: NzContextMenuServiceModule
});
var NzContextMenuService = _NzContextMenuService;
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NzContextMenuService, [{
type: Injectable,
args: [{
providedIn: NzContextMenuServiceModule
}]
}], () => [{
type: NgZone
}, {
type: Overlay
}], null);
})();
export {
NzDropDownDirective,
NzDropdownMenuComponent,
NzDropDownModule
};
//# sourceMappingURL=chunk-2CQTWQUI.js.map

File diff suppressed because one or more lines are too long

@ -0,0 +1,116 @@
import {
InputBoolean,
coerceElement
} from "./chunk-M5GY4FCO.js";
import {
ANIMATION_MODULE_TYPE,
Directive,
ElementRef,
Inject,
Input,
NgModule,
Optional,
Renderer2,
__decorate,
setClassMetadata,
ɵɵNgOnChangesFeature,
ɵɵdefineDirective,
ɵɵdefineInjector,
ɵɵdefineNgModule,
ɵɵdirectiveInject
} from "./chunk-FGESKT7O.js";
// node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-core-no-animation.mjs
var DISABLED_CLASSNAME = "nz-animate-disabled";
var _NzNoAnimationDirective = class _NzNoAnimationDirective {
constructor(element, renderer, animationType) {
this.element = element;
this.renderer = renderer;
this.animationType = animationType;
this.nzNoAnimation = false;
}
ngOnChanges() {
this.updateClass();
}
ngAfterViewInit() {
this.updateClass();
}
updateClass() {
const element = coerceElement(this.element);
if (!element) {
return;
}
if (this.nzNoAnimation || this.animationType === "NoopAnimations") {
this.renderer.addClass(element, DISABLED_CLASSNAME);
} else {
this.renderer.removeClass(element, DISABLED_CLASSNAME);
}
}
};
_NzNoAnimationDirective.ɵfac = function NzNoAnimationDirective_Factory(t) {
return new (t || _NzNoAnimationDirective)(ɵɵdirectiveInject(ElementRef), ɵɵdirectiveInject(Renderer2), ɵɵdirectiveInject(ANIMATION_MODULE_TYPE, 8));
};
_NzNoAnimationDirective.ɵdir = ɵɵdefineDirective({
type: _NzNoAnimationDirective,
selectors: [["", "nzNoAnimation", ""]],
inputs: {
nzNoAnimation: "nzNoAnimation"
},
exportAs: ["nzNoAnimation"],
standalone: true,
features: [ɵɵNgOnChangesFeature]
});
var NzNoAnimationDirective = _NzNoAnimationDirective;
__decorate([InputBoolean()], NzNoAnimationDirective.prototype, "nzNoAnimation", void 0);
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NzNoAnimationDirective, [{
type: Directive,
args: [{
selector: "[nzNoAnimation]",
exportAs: "nzNoAnimation",
standalone: true
}]
}], () => [{
type: ElementRef
}, {
type: Renderer2
}, {
type: void 0,
decorators: [{
type: Optional
}, {
type: Inject,
args: [ANIMATION_MODULE_TYPE]
}]
}], {
nzNoAnimation: [{
type: Input
}]
});
})();
var _NzNoAnimationModule = class _NzNoAnimationModule {
};
_NzNoAnimationModule.ɵfac = function NzNoAnimationModule_Factory(t) {
return new (t || _NzNoAnimationModule)();
};
_NzNoAnimationModule.ɵmod = ɵɵdefineNgModule({
type: _NzNoAnimationModule,
imports: [NzNoAnimationDirective],
exports: [NzNoAnimationDirective]
});
_NzNoAnimationModule.ɵinj = ɵɵdefineInjector({});
var NzNoAnimationModule = _NzNoAnimationModule;
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NzNoAnimationModule, [{
type: NgModule,
args: [{
imports: [NzNoAnimationDirective],
exports: [NzNoAnimationDirective]
}]
}], null, null);
})();
export {
NzNoAnimationDirective
};
//# sourceMappingURL=chunk-55A2ZGND.js.map

@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../../../../node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-core-no-animation.mjs"],
"sourcesContent": ["import * as i0 from '@angular/core';\nimport { Directive, Optional, Inject, Input, NgModule } from '@angular/core';\nimport { __decorate } from 'tslib';\nimport { coerceElement } from '@angular/cdk/coercion';\nimport { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';\nimport { InputBoolean } from 'ng-zorro-antd/core/util';\nconst DISABLED_CLASSNAME = 'nz-animate-disabled';\nclass NzNoAnimationDirective {\n constructor(element, renderer, animationType) {\n this.element = element;\n this.renderer = renderer;\n this.animationType = animationType;\n this.nzNoAnimation = false;\n }\n ngOnChanges() {\n this.updateClass();\n }\n ngAfterViewInit() {\n this.updateClass();\n }\n updateClass() {\n const element = coerceElement(this.element);\n if (!element) {\n return;\n }\n if (this.nzNoAnimation || this.animationType === 'NoopAnimations') {\n this.renderer.addClass(element, DISABLED_CLASSNAME);\n } else {\n this.renderer.removeClass(element, DISABLED_CLASSNAME);\n }\n }\n static {\n this.ɵfac = function NzNoAnimationDirective_Factory(t) {\n return new (t || NzNoAnimationDirective)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(ANIMATION_MODULE_TYPE, 8));\n };\n }\n static {\n this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: NzNoAnimationDirective,\n selectors: [[\"\", \"nzNoAnimation\", \"\"]],\n inputs: {\n nzNoAnimation: \"nzNoAnimation\"\n },\n exportAs: [\"nzNoAnimation\"],\n standalone: true,\n features: [i0.ɵɵNgOnChangesFeature]\n });\n }\n}\n__decorate([InputBoolean()], NzNoAnimationDirective.prototype, \"nzNoAnimation\", void 0);\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(NzNoAnimationDirective, [{\n type: Directive,\n args: [{\n selector: '[nzNoAnimation]',\n exportAs: 'nzNoAnimation',\n standalone: true\n }]\n }], () => [{\n type: i0.ElementRef\n }, {\n type: i0.Renderer2\n }, {\n type: undefined,\n decorators: [{\n type: Optional\n }, {\n type: Inject,\n args: [ANIMATION_MODULE_TYPE]\n }]\n }], {\n nzNoAnimation: [{\n type: Input\n }]\n });\n})();\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\nclass NzNoAnimationModule {\n static {\n this.ɵfac = function NzNoAnimationModule_Factory(t) {\n return new (t || NzNoAnimationModule)();\n };\n }\n static {\n this.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: NzNoAnimationModule,\n imports: [NzNoAnimationDirective],\n exports: [NzNoAnimationDirective]\n });\n }\n static {\n this.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({});\n }\n}\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(NzNoAnimationModule, [{\n type: NgModule,\n args: [{\n imports: [NzNoAnimationDirective],\n exports: [NzNoAnimationDirective]\n }]\n }], null, null);\n})();\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { NzNoAnimationDirective, NzNoAnimationModule };\n"],
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAMA,IAAM,qBAAqB;AAC3B,IAAM,0BAAN,MAAM,wBAAuB;AAAA,EAC3B,YAAY,SAAS,UAAU,eAAe;AAC5C,SAAK,UAAU;AACf,SAAK,WAAW;AAChB,SAAK,gBAAgB;AACrB,SAAK,gBAAgB;AAAA,EACvB;AAAA,EACA,cAAc;AACZ,SAAK,YAAY;AAAA,EACnB;AAAA,EACA,kBAAkB;AAChB,SAAK,YAAY;AAAA,EACnB;AAAA,EACA,cAAc;AACZ,UAAM,UAAU,cAAc,KAAK,OAAO;AAC1C,QAAI,CAAC,SAAS;AACZ;AAAA,IACF;AACA,QAAI,KAAK,iBAAiB,KAAK,kBAAkB,kBAAkB;AACjE,WAAK,SAAS,SAAS,SAAS,kBAAkB;AAAA,IACpD,OAAO;AACL,WAAK,SAAS,YAAY,SAAS,kBAAkB;AAAA,IACvD;AAAA,EACF;AAkBF;AAhBI,wBAAK,OAAO,SAAS,+BAA+B,GAAG;AACrD,SAAO,KAAK,KAAK,yBAA2B,kBAAqB,UAAU,GAAM,kBAAqB,SAAS,GAAM,kBAAkB,uBAAuB,CAAC,CAAC;AAClK;AAGA,wBAAK,OAAyB,kBAAkB;AAAA,EAC9C,MAAM;AAAA,EACN,WAAW,CAAC,CAAC,IAAI,iBAAiB,EAAE,CAAC;AAAA,EACrC,QAAQ;AAAA,IACN,eAAe;AAAA,EACjB;AAAA,EACA,UAAU,CAAC,eAAe;AAAA,EAC1B,YAAY;AAAA,EACZ,UAAU,CAAI,oBAAoB;AACpC,CAAC;AAvCL,IAAM,yBAAN;AA0CA,WAAW,CAAC,aAAa,CAAC,GAAG,uBAAuB,WAAW,iBAAiB,MAAM;AAAA,CACrF,MAAM;AACL,GAAC,OAAO,cAAc,eAAe,cAAiB,iBAAkB,wBAAwB,CAAC;AAAA,IAC/F,MAAM;AAAA,IACN,MAAM,CAAC;AAAA,MACL,UAAU;AAAA,MACV,UAAU;AAAA,MACV,YAAY;AAAA,IACd,CAAC;AAAA,EACH,CAAC,GAAG,MAAM,CAAC;AAAA,IACT,MAAS;AAAA,EACX,GAAG;AAAA,IACD,MAAS;AAAA,EACX,GAAG;AAAA,IACD,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,MACX,MAAM;AAAA,IACR,GAAG;AAAA,MACD,MAAM;AAAA,MACN,MAAM,CAAC,qBAAqB;AAAA,IAC9B,CAAC;AAAA,EACH,CAAC,GAAG;AAAA,IACF,eAAe,CAAC;AAAA,MACd,MAAM;AAAA,IACR,CAAC;AAAA,EACH,CAAC;AACH,GAAG;AAMH,IAAM,uBAAN,MAAM,qBAAoB;AAgB1B;AAdI,qBAAK,OAAO,SAAS,4BAA4B,GAAG;AAClD,SAAO,KAAK,KAAK,sBAAqB;AACxC;AAGA,qBAAK,OAAyB,iBAAiB;AAAA,EAC7C,MAAM;AAAA,EACN,SAAS,CAAC,sBAAsB;AAAA,EAChC,SAAS,CAAC,sBAAsB;AAClC,CAAC;AAGD,qBAAK,OAAyB,iBAAiB,CAAC,CAAC;AAdrD,IAAM,sBAAN;AAAA,CAiBC,MAAM;AACL,GAAC,OAAO,cAAc,eAAe,cAAiB,iBAAkB,qBAAqB,CAAC;AAAA,IAC5F,MAAM;AAAA,IACN,MAAM,CAAC;AAAA,MACL,SAAS,CAAC,sBAAsB;AAAA,MAChC,SAAS,CAAC,sBAAsB;AAAA,IAClC,CAAC;AAAA,EACH,CAAC,GAAG,MAAM,IAAI;AAChB,GAAG;",
"names": []
}

@ -1,36 +1,41 @@
import {
CdkConnectedOverlay,
CdkOverlayOrigin,
ConnectionPositionPair,
OverlayModule,
DEFAULT_TOOLTIP_POSITIONS,
NzConnectedOverlayDirective,
NzOverlayModule,
POSITION_MAP,
getPlacementName
} from "./chunk-6RXUTAFR.js";
import {
zoomBigMotion
} from "./chunk-QI6CCAQD.js";
} from "./chunk-XAGDQPFO.js";
import {
NzNoAnimationDirective
} from "./chunk-55A2ZGND.js";
import {
CdkConnectedOverlay,
OverlayModule
} from "./chunk-6U656R5M.js";
import {
NzOutletModule,
NzStringTemplateOutletDirective
} from "./chunk-VOD2PKZN.js";
import {
NzDestroyService
} from "./chunk-W3IYJMS2.js";
import {
NzConfigService,
isPresetColor
} from "./chunk-NOIPAY33.js";
} from "./chunk-ZHMJ6SNN.js";
import {
Directionality
} from "./chunk-UPQZZZIG.js";
} from "./chunk-6NZ2BEBG.js";
import {
InputBoolean,
coerceElement,
isNotNil,
toBoolean
} from "./chunk-7XTJNSRU.js";
} from "./chunk-M5GY4FCO.js";
import {
NgClass,
NgStyle
} from "./chunk-OSQBUYO6.js";
import {
ANIMATION_MODULE_TYPE,
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
@ -38,7 +43,6 @@ import {
ElementRef,
EventEmitter,
Host,
Inject,
Input,
NgModule,
Optional,
@ -58,7 +62,6 @@ import {
takeUntil,
ɵɵInheritDefinitionFeature,
ɵɵNgOnChangesFeature,
ɵɵProvidersFeature,
ɵɵStandaloneFeature,
ɵɵadvance,
ɵɵclassProp,
@ -88,371 +91,6 @@ import {
__spreadValues
} from "./chunk-HSNDBVJ3.js";
// node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-core-no-animation.mjs
var DISABLED_CLASSNAME = "nz-animate-disabled";
var _NzNoAnimationDirective = class _NzNoAnimationDirective {
constructor(element, renderer, animationType) {
this.element = element;
this.renderer = renderer;
this.animationType = animationType;
this.nzNoAnimation = false;
}
ngOnChanges() {
this.updateClass();
}
ngAfterViewInit() {
this.updateClass();
}
updateClass() {
const element = coerceElement(this.element);
if (!element) {
return;
}
if (this.nzNoAnimation || this.animationType === "NoopAnimations") {
this.renderer.addClass(element, DISABLED_CLASSNAME);
} else {
this.renderer.removeClass(element, DISABLED_CLASSNAME);
}
}
};
_NzNoAnimationDirective.ɵfac = function NzNoAnimationDirective_Factory(t) {
return new (t || _NzNoAnimationDirective)(ɵɵdirectiveInject(ElementRef), ɵɵdirectiveInject(Renderer2), ɵɵdirectiveInject(ANIMATION_MODULE_TYPE, 8));
};
_NzNoAnimationDirective.ɵdir = ɵɵdefineDirective({
type: _NzNoAnimationDirective,
selectors: [["", "nzNoAnimation", ""]],
inputs: {
nzNoAnimation: "nzNoAnimation"
},
exportAs: ["nzNoAnimation"],
standalone: true,
features: [ɵɵNgOnChangesFeature]
});
var NzNoAnimationDirective = _NzNoAnimationDirective;
__decorate([InputBoolean()], NzNoAnimationDirective.prototype, "nzNoAnimation", void 0);
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NzNoAnimationDirective, [{
type: Directive,
args: [{
selector: "[nzNoAnimation]",
exportAs: "nzNoAnimation",
standalone: true
}]
}], () => [{
type: ElementRef
}, {
type: Renderer2
}, {
type: void 0,
decorators: [{
type: Optional
}, {
type: Inject,
args: [ANIMATION_MODULE_TYPE]
}]
}], {
nzNoAnimation: [{
type: Input
}]
});
})();
var _NzNoAnimationModule = class _NzNoAnimationModule {
};
_NzNoAnimationModule.ɵfac = function NzNoAnimationModule_Factory(t) {
return new (t || _NzNoAnimationModule)();
};
_NzNoAnimationModule.ɵmod = ɵɵdefineNgModule({
type: _NzNoAnimationModule,
imports: [NzNoAnimationDirective],
exports: [NzNoAnimationDirective]
});
_NzNoAnimationModule.ɵinj = ɵɵdefineInjector({});
var NzNoAnimationModule = _NzNoAnimationModule;
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NzNoAnimationModule, [{
type: NgModule,
args: [{
imports: [NzNoAnimationDirective],
exports: [NzNoAnimationDirective]
}]
}], null, null);
})();
// node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-core-overlay.mjs
var POSITION_MAP = {
top: new ConnectionPositionPair({
originX: "center",
originY: "top"
}, {
overlayX: "center",
overlayY: "bottom"
}),
topCenter: new ConnectionPositionPair({
originX: "center",
originY: "top"
}, {
overlayX: "center",
overlayY: "bottom"
}),
topLeft: new ConnectionPositionPair({
originX: "start",
originY: "top"
}, {
overlayX: "start",
overlayY: "bottom"
}),
topRight: new ConnectionPositionPair({
originX: "end",
originY: "top"
}, {
overlayX: "end",
overlayY: "bottom"
}),
right: new ConnectionPositionPair({
originX: "end",
originY: "center"
}, {
overlayX: "start",
overlayY: "center"
}),
rightTop: new ConnectionPositionPair({
originX: "end",
originY: "top"
}, {
overlayX: "start",
overlayY: "top"
}),
rightBottom: new ConnectionPositionPair({
originX: "end",
originY: "bottom"
}, {
overlayX: "start",
overlayY: "bottom"
}),
bottom: new ConnectionPositionPair({
originX: "center",
originY: "bottom"
}, {
overlayX: "center",
overlayY: "top"
}),
bottomCenter: new ConnectionPositionPair({
originX: "center",
originY: "bottom"
}, {
overlayX: "center",
overlayY: "top"
}),
bottomLeft: new ConnectionPositionPair({
originX: "start",
originY: "bottom"
}, {
overlayX: "start",
overlayY: "top"
}),
bottomRight: new ConnectionPositionPair({
originX: "end",
originY: "bottom"
}, {
overlayX: "end",
overlayY: "top"
}),
left: new ConnectionPositionPair({
originX: "start",
originY: "center"
}, {
overlayX: "end",
overlayY: "center"
}),
leftTop: new ConnectionPositionPair({
originX: "start",
originY: "top"
}, {
overlayX: "end",
overlayY: "top"
}),
leftBottom: new ConnectionPositionPair({
originX: "start",
originY: "bottom"
}, {
overlayX: "end",
overlayY: "bottom"
})
};
var DEFAULT_TOOLTIP_POSITIONS = [POSITION_MAP.top, POSITION_MAP.right, POSITION_MAP.bottom, POSITION_MAP.left];
var DEFAULT_CASCADER_POSITIONS = [POSITION_MAP.bottomLeft, POSITION_MAP.bottomRight, POSITION_MAP.topLeft, POSITION_MAP.topRight, POSITION_MAP.topCenter, POSITION_MAP.bottomCenter];
var DEFAULT_MENTION_TOP_POSITIONS = [new ConnectionPositionPair({
originX: "start",
originY: "bottom"
}, {
overlayX: "start",
overlayY: "bottom"
}), new ConnectionPositionPair({
originX: "start",
originY: "bottom"
}, {
overlayX: "end",
overlayY: "bottom"
})];
var DEFAULT_MENTION_BOTTOM_POSITIONS = [POSITION_MAP.bottomLeft, new ConnectionPositionPair({
originX: "start",
originY: "bottom"
}, {
overlayX: "end",
overlayY: "top"
})];
function getPlacementName(position) {
for (const placement in POSITION_MAP) {
if (position.connectionPair.originX === POSITION_MAP[placement].originX && position.connectionPair.originY === POSITION_MAP[placement].originY && position.connectionPair.overlayX === POSITION_MAP[placement].overlayX && position.connectionPair.overlayY === POSITION_MAP[placement].overlayY) {
return placement;
}
}
return void 0;
}
var DATE_PICKER_POSITION_MAP = {
bottomLeft: new ConnectionPositionPair({
originX: "start",
originY: "bottom"
}, {
overlayX: "start",
overlayY: "top"
}, void 0, 2),
topLeft: new ConnectionPositionPair({
originX: "start",
originY: "top"
}, {
overlayX: "start",
overlayY: "bottom"
}, void 0, -2),
bottomRight: new ConnectionPositionPair({
originX: "end",
originY: "bottom"
}, {
overlayX: "end",
overlayY: "top"
}, void 0, 2),
topRight: new ConnectionPositionPair({
originX: "end",
originY: "top"
}, {
overlayX: "end",
overlayY: "bottom"
}, void 0, -2)
};
var DEFAULT_DATE_PICKER_POSITIONS = [DATE_PICKER_POSITION_MAP.bottomLeft, DATE_PICKER_POSITION_MAP.topLeft, DATE_PICKER_POSITION_MAP.bottomRight, DATE_PICKER_POSITION_MAP.topRight];
var _NzConnectedOverlayDirective = class _NzConnectedOverlayDirective {
constructor(cdkConnectedOverlay, nzDestroyService) {
this.cdkConnectedOverlay = cdkConnectedOverlay;
this.nzDestroyService = nzDestroyService;
this.nzArrowPointAtCenter = false;
this.cdkConnectedOverlay.backdropClass = "nz-overlay-transparent-backdrop";
this.cdkConnectedOverlay.positionChange.pipe(takeUntil(this.nzDestroyService)).subscribe((position) => {
if (this.nzArrowPointAtCenter) {
this.updateArrowPosition(position);
}
});
}
updateArrowPosition(position) {
const originRect = this.getOriginRect();
const placement = getPlacementName(position);
let offsetX = 0;
let offsetY = 0;
if (placement === "topLeft" || placement === "bottomLeft") {
offsetX = originRect.width / 2 - 14;
} else if (placement === "topRight" || placement === "bottomRight") {
offsetX = -(originRect.width / 2 - 14);
} else if (placement === "leftTop" || placement === "rightTop") {
offsetY = originRect.height / 2 - 10;
} else if (placement === "leftBottom" || placement === "rightBottom") {
offsetY = -(originRect.height / 2 - 10);
}
if (this.cdkConnectedOverlay.offsetX !== offsetX || this.cdkConnectedOverlay.offsetY !== offsetY) {
this.cdkConnectedOverlay.offsetY = offsetY;
this.cdkConnectedOverlay.offsetX = offsetX;
this.cdkConnectedOverlay.overlayRef.updatePosition();
}
}
getFlexibleConnectedPositionStrategyOrigin() {
if (this.cdkConnectedOverlay.origin instanceof CdkOverlayOrigin) {
return this.cdkConnectedOverlay.origin.elementRef;
} else {
return this.cdkConnectedOverlay.origin;
}
}
getOriginRect() {
const origin = this.getFlexibleConnectedPositionStrategyOrigin();
if (origin instanceof ElementRef) {
return origin.nativeElement.getBoundingClientRect();
}
if (origin instanceof Element) {
return origin.getBoundingClientRect();
}
const width = origin.width || 0;
const height = origin.height || 0;
return {
top: origin.y,
bottom: origin.y + height,
left: origin.x,
right: origin.x + width,
height,
width
};
}
};
_NzConnectedOverlayDirective.ɵfac = function NzConnectedOverlayDirective_Factory(t) {
return new (t || _NzConnectedOverlayDirective)(ɵɵdirectiveInject(CdkConnectedOverlay), ɵɵdirectiveInject(NzDestroyService));
};
_NzConnectedOverlayDirective.ɵdir = ɵɵdefineDirective({
type: _NzConnectedOverlayDirective,
selectors: [["", "cdkConnectedOverlay", "", "nzConnectedOverlay", ""]],
inputs: {
nzArrowPointAtCenter: "nzArrowPointAtCenter"
},
exportAs: ["nzConnectedOverlay"],
features: [ɵɵProvidersFeature([NzDestroyService])]
});
var NzConnectedOverlayDirective = _NzConnectedOverlayDirective;
__decorate([InputBoolean()], NzConnectedOverlayDirective.prototype, "nzArrowPointAtCenter", void 0);
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NzConnectedOverlayDirective, [{
type: Directive,
args: [{
selector: "[cdkConnectedOverlay][nzConnectedOverlay]",
exportAs: "nzConnectedOverlay",
providers: [NzDestroyService]
}]
}], () => [{
type: CdkConnectedOverlay
}, {
type: NzDestroyService
}], {
nzArrowPointAtCenter: [{
type: Input
}]
});
})();
var _NzOverlayModule = class _NzOverlayModule {
};
_NzOverlayModule.ɵfac = function NzOverlayModule_Factory(t) {
return new (t || _NzOverlayModule)();
};
_NzOverlayModule.ɵmod = ɵɵdefineNgModule({
type: _NzOverlayModule,
declarations: [NzConnectedOverlayDirective],
exports: [NzConnectedOverlayDirective]
});
_NzOverlayModule.ɵinj = ɵɵdefineInjector({});
var NzOverlayModule = _NzOverlayModule;
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NzOverlayModule, [{
type: NgModule,
args: [{
declarations: [NzConnectedOverlayDirective],
exports: [NzConnectedOverlayDirective]
}]
}], null, null);
})();
// node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-tooltip.mjs
var _c0 = ["overlay"];
function NzToolTipComponent_ng_template_0_ng_container_5_Template(rf, ctx) {
@ -1150,4 +788,4 @@ export {
NzTooltipDirective,
NzToolTipModule
};
//# sourceMappingURL=chunk-BXV7YWBX.js.map
//# sourceMappingURL=chunk-5MZJ5XYV.js.map

File diff suppressed because one or more lines are too long

@ -0,0 +1,185 @@
import {
DOCUMENT
} from "./chunk-OSQBUYO6.js";
import {
Directive,
EventEmitter,
Inject,
Injectable,
InjectionToken,
Input,
NgModule,
Optional,
Output,
inject,
setClassMetadata,
ɵɵProvidersFeature,
ɵɵattribute,
ɵɵdefineDirective,
ɵɵdefineInjectable,
ɵɵdefineInjector,
ɵɵdefineNgModule,
ɵɵinject
} from "./chunk-FGESKT7O.js";
// node_modules/@angular/cdk/fesm2022/bidi.mjs
var DIR_DOCUMENT = new InjectionToken("cdk-dir-doc", {
providedIn: "root",
factory: DIR_DOCUMENT_FACTORY
});
function DIR_DOCUMENT_FACTORY() {
return inject(DOCUMENT);
}
var RTL_LOCALE_PATTERN = /^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;
function _resolveDirectionality(rawValue) {
const value = rawValue?.toLowerCase() || "";
if (value === "auto" && typeof navigator !== "undefined" && navigator?.language) {
return RTL_LOCALE_PATTERN.test(navigator.language) ? "rtl" : "ltr";
}
return value === "rtl" ? "rtl" : "ltr";
}
var _Directionality = class _Directionality {
constructor(_document) {
this.value = "ltr";
this.change = new EventEmitter();
if (_document) {
const bodyDir = _document.body ? _document.body.dir : null;
const htmlDir = _document.documentElement ? _document.documentElement.dir : null;
this.value = _resolveDirectionality(bodyDir || htmlDir || "ltr");
}
}
ngOnDestroy() {
this.change.complete();
}
};
_Directionality.ɵfac = function Directionality_Factory(t) {
return new (t || _Directionality)(ɵɵinject(DIR_DOCUMENT, 8));
};
_Directionality.ɵprov = ɵɵdefineInjectable({
token: _Directionality,
factory: _Directionality.ɵfac,
providedIn: "root"
});
var Directionality = _Directionality;
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(Directionality, [{
type: Injectable,
args: [{
providedIn: "root"
}]
}], () => [{
type: void 0,
decorators: [{
type: Optional
}, {
type: Inject,
args: [DIR_DOCUMENT]
}]
}], null);
})();
var _Dir = class _Dir {
constructor() {
this._dir = "ltr";
this._isInitialized = false;
this.change = new EventEmitter();
}
/** @docs-private */
get dir() {
return this._dir;
}
set dir(value) {
const previousValue = this._dir;
this._dir = _resolveDirectionality(value);
this._rawDir = value;
if (previousValue !== this._dir && this._isInitialized) {
this.change.emit(this._dir);
}
}
/** Current layout direction of the element. */
get value() {
return this.dir;
}
/** Initialize once default value has been set. */
ngAfterContentInit() {
this._isInitialized = true;
}
ngOnDestroy() {
this.change.complete();
}
};
_Dir.ɵfac = function Dir_Factory(t) {
return new (t || _Dir)();
};
_Dir.ɵdir = ɵɵdefineDirective({
type: _Dir,
selectors: [["", "dir", ""]],
hostVars: 1,
hostBindings: function Dir_HostBindings(rf, ctx) {
if (rf & 2) {
ɵɵattribute("dir", ctx._rawDir);
}
},
inputs: {
dir: "dir"
},
outputs: {
change: "dirChange"
},
exportAs: ["dir"],
features: [ɵɵProvidersFeature([{
provide: Directionality,
useExisting: _Dir
}])]
});
var Dir = _Dir;
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(Dir, [{
type: Directive,
args: [{
selector: "[dir]",
providers: [{
provide: Directionality,
useExisting: Dir
}],
host: {
"[attr.dir]": "_rawDir"
},
exportAs: "dir"
}]
}], null, {
change: [{
type: Output,
args: ["dirChange"]
}],
dir: [{
type: Input
}]
});
})();
var _BidiModule = class _BidiModule {
};
_BidiModule.ɵfac = function BidiModule_Factory(t) {
return new (t || _BidiModule)();
};
_BidiModule.ɵmod = ɵɵdefineNgModule({
type: _BidiModule,
declarations: [Dir],
exports: [Dir]
});
_BidiModule.ɵinj = ɵɵdefineInjector({});
var BidiModule = _BidiModule;
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(BidiModule, [{
type: NgModule,
args: [{
exports: [Dir],
declarations: [Dir]
}]
}], null, null);
})();
export {
Directionality,
BidiModule
};
//# sourceMappingURL=chunk-6NZ2BEBG.js.map

File diff suppressed because one or more lines are too long

@ -0,0 +1,309 @@
import {
NzDestroyService
} from "./chunk-D5ODNR6D.js";
import {
CdkConnectedOverlay,
CdkOverlayOrigin,
ConnectionPositionPair
} from "./chunk-6U656R5M.js";
import {
InputBoolean
} from "./chunk-M5GY4FCO.js";
import {
Directive,
ElementRef,
Input,
NgModule,
__decorate,
setClassMetadata,
takeUntil,
ɵɵProvidersFeature,
ɵɵdefineDirective,
ɵɵdefineInjector,
ɵɵdefineNgModule,
ɵɵdirectiveInject
} from "./chunk-FGESKT7O.js";
// node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-core-overlay.mjs
var POSITION_MAP = {
top: new ConnectionPositionPair({
originX: "center",
originY: "top"
}, {
overlayX: "center",
overlayY: "bottom"
}),
topCenter: new ConnectionPositionPair({
originX: "center",
originY: "top"
}, {
overlayX: "center",
overlayY: "bottom"
}),
topLeft: new ConnectionPositionPair({
originX: "start",
originY: "top"
}, {
overlayX: "start",
overlayY: "bottom"
}),
topRight: new ConnectionPositionPair({
originX: "end",
originY: "top"
}, {
overlayX: "end",
overlayY: "bottom"
}),
right: new ConnectionPositionPair({
originX: "end",
originY: "center"
}, {
overlayX: "start",
overlayY: "center"
}),
rightTop: new ConnectionPositionPair({
originX: "end",
originY: "top"
}, {
overlayX: "start",
overlayY: "top"
}),
rightBottom: new ConnectionPositionPair({
originX: "end",
originY: "bottom"
}, {
overlayX: "start",
overlayY: "bottom"
}),
bottom: new ConnectionPositionPair({
originX: "center",
originY: "bottom"
}, {
overlayX: "center",
overlayY: "top"
}),
bottomCenter: new ConnectionPositionPair({
originX: "center",
originY: "bottom"
}, {
overlayX: "center",
overlayY: "top"
}),
bottomLeft: new ConnectionPositionPair({
originX: "start",
originY: "bottom"
}, {
overlayX: "start",
overlayY: "top"
}),
bottomRight: new ConnectionPositionPair({
originX: "end",
originY: "bottom"
}, {
overlayX: "end",
overlayY: "top"
}),
left: new ConnectionPositionPair({
originX: "start",
originY: "center"
}, {
overlayX: "end",
overlayY: "center"
}),
leftTop: new ConnectionPositionPair({
originX: "start",
originY: "top"
}, {
overlayX: "end",
overlayY: "top"
}),
leftBottom: new ConnectionPositionPair({
originX: "start",
originY: "bottom"
}, {
overlayX: "end",
overlayY: "bottom"
})
};
var DEFAULT_TOOLTIP_POSITIONS = [POSITION_MAP.top, POSITION_MAP.right, POSITION_MAP.bottom, POSITION_MAP.left];
var DEFAULT_CASCADER_POSITIONS = [POSITION_MAP.bottomLeft, POSITION_MAP.bottomRight, POSITION_MAP.topLeft, POSITION_MAP.topRight, POSITION_MAP.topCenter, POSITION_MAP.bottomCenter];
var DEFAULT_MENTION_TOP_POSITIONS = [new ConnectionPositionPair({
originX: "start",
originY: "bottom"
}, {
overlayX: "start",
overlayY: "bottom"
}), new ConnectionPositionPair({
originX: "start",
originY: "bottom"
}, {
overlayX: "end",
overlayY: "bottom"
})];
var DEFAULT_MENTION_BOTTOM_POSITIONS = [POSITION_MAP.bottomLeft, new ConnectionPositionPair({
originX: "start",
originY: "bottom"
}, {
overlayX: "end",
overlayY: "top"
})];
function getPlacementName(position) {
for (const placement in POSITION_MAP) {
if (position.connectionPair.originX === POSITION_MAP[placement].originX && position.connectionPair.originY === POSITION_MAP[placement].originY && position.connectionPair.overlayX === POSITION_MAP[placement].overlayX && position.connectionPair.overlayY === POSITION_MAP[placement].overlayY) {
return placement;
}
}
return void 0;
}
var DATE_PICKER_POSITION_MAP = {
bottomLeft: new ConnectionPositionPair({
originX: "start",
originY: "bottom"
}, {
overlayX: "start",
overlayY: "top"
}, void 0, 2),
topLeft: new ConnectionPositionPair({
originX: "start",
originY: "top"
}, {
overlayX: "start",
overlayY: "bottom"
}, void 0, -2),
bottomRight: new ConnectionPositionPair({
originX: "end",
originY: "bottom"
}, {
overlayX: "end",
overlayY: "top"
}, void 0, 2),
topRight: new ConnectionPositionPair({
originX: "end",
originY: "top"
}, {
overlayX: "end",
overlayY: "bottom"
}, void 0, -2)
};
var DEFAULT_DATE_PICKER_POSITIONS = [DATE_PICKER_POSITION_MAP.bottomLeft, DATE_PICKER_POSITION_MAP.topLeft, DATE_PICKER_POSITION_MAP.bottomRight, DATE_PICKER_POSITION_MAP.topRight];
var _NzConnectedOverlayDirective = class _NzConnectedOverlayDirective {
constructor(cdkConnectedOverlay, nzDestroyService) {
this.cdkConnectedOverlay = cdkConnectedOverlay;
this.nzDestroyService = nzDestroyService;
this.nzArrowPointAtCenter = false;
this.cdkConnectedOverlay.backdropClass = "nz-overlay-transparent-backdrop";
this.cdkConnectedOverlay.positionChange.pipe(takeUntil(this.nzDestroyService)).subscribe((position) => {
if (this.nzArrowPointAtCenter) {
this.updateArrowPosition(position);
}
});
}
updateArrowPosition(position) {
const originRect = this.getOriginRect();
const placement = getPlacementName(position);
let offsetX = 0;
let offsetY = 0;
if (placement === "topLeft" || placement === "bottomLeft") {
offsetX = originRect.width / 2 - 14;
} else if (placement === "topRight" || placement === "bottomRight") {
offsetX = -(originRect.width / 2 - 14);
} else if (placement === "leftTop" || placement === "rightTop") {
offsetY = originRect.height / 2 - 10;
} else if (placement === "leftBottom" || placement === "rightBottom") {
offsetY = -(originRect.height / 2 - 10);
}
if (this.cdkConnectedOverlay.offsetX !== offsetX || this.cdkConnectedOverlay.offsetY !== offsetY) {
this.cdkConnectedOverlay.offsetY = offsetY;
this.cdkConnectedOverlay.offsetX = offsetX;
this.cdkConnectedOverlay.overlayRef.updatePosition();
}
}
getFlexibleConnectedPositionStrategyOrigin() {
if (this.cdkConnectedOverlay.origin instanceof CdkOverlayOrigin) {
return this.cdkConnectedOverlay.origin.elementRef;
} else {
return this.cdkConnectedOverlay.origin;
}
}
getOriginRect() {
const origin = this.getFlexibleConnectedPositionStrategyOrigin();
if (origin instanceof ElementRef) {
return origin.nativeElement.getBoundingClientRect();
}
if (origin instanceof Element) {
return origin.getBoundingClientRect();
}
const width = origin.width || 0;
const height = origin.height || 0;
return {
top: origin.y,
bottom: origin.y + height,
left: origin.x,
right: origin.x + width,
height,
width
};
}
};
_NzConnectedOverlayDirective.ɵfac = function NzConnectedOverlayDirective_Factory(t) {
return new (t || _NzConnectedOverlayDirective)(ɵɵdirectiveInject(CdkConnectedOverlay), ɵɵdirectiveInject(NzDestroyService));
};
_NzConnectedOverlayDirective.ɵdir = ɵɵdefineDirective({
type: _NzConnectedOverlayDirective,
selectors: [["", "cdkConnectedOverlay", "", "nzConnectedOverlay", ""]],
inputs: {
nzArrowPointAtCenter: "nzArrowPointAtCenter"
},
exportAs: ["nzConnectedOverlay"],
features: [ɵɵProvidersFeature([NzDestroyService])]
});
var NzConnectedOverlayDirective = _NzConnectedOverlayDirective;
__decorate([InputBoolean()], NzConnectedOverlayDirective.prototype, "nzArrowPointAtCenter", void 0);
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NzConnectedOverlayDirective, [{
type: Directive,
args: [{
selector: "[cdkConnectedOverlay][nzConnectedOverlay]",
exportAs: "nzConnectedOverlay",
providers: [NzDestroyService]
}]
}], () => [{
type: CdkConnectedOverlay
}, {
type: NzDestroyService
}], {
nzArrowPointAtCenter: [{
type: Input
}]
});
})();
var _NzOverlayModule = class _NzOverlayModule {
};
_NzOverlayModule.ɵfac = function NzOverlayModule_Factory(t) {
return new (t || _NzOverlayModule)();
};
_NzOverlayModule.ɵmod = ɵɵdefineNgModule({
type: _NzOverlayModule,
declarations: [NzConnectedOverlayDirective],
exports: [NzConnectedOverlayDirective]
});
_NzOverlayModule.ɵinj = ɵɵdefineInjector({});
var NzOverlayModule = _NzOverlayModule;
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NzOverlayModule, [{
type: NgModule,
args: [{
declarations: [NzConnectedOverlayDirective],
exports: [NzConnectedOverlayDirective]
}]
}], null, null);
})();
export {
POSITION_MAP,
DEFAULT_TOOLTIP_POSITIONS,
getPlacementName,
NzConnectedOverlayDirective,
NzOverlayModule
};
//# sourceMappingURL=chunk-6RXUTAFR.js.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

@ -1,14 +1,14 @@
import {
MediaMatcher
} from "./chunk-5OJ3CSUZ.js";
} from "./chunk-WB57DPWD.js";
import {
Platform
} from "./chunk-UPQZZZIG.js";
} from "./chunk-IAC53GOD.js";
import {
environment,
getEventPosition,
isTouchEvent
} from "./chunk-7XTJNSRU.js";
} from "./chunk-M5GY4FCO.js";
import {
DOCUMENT
} from "./chunk-OSQBUYO6.js";
@ -395,6 +395,14 @@ var gridResponsiveMap = {
xl: "(min-width: 1200px)",
xxl: "(min-width: 1600px)"
};
var siderResponsiveMap = {
xs: "(max-width: 479.98px)",
sm: "(max-width: 575.98px)",
md: "(max-width: 767.98px)",
lg: "(max-width: 991.98px)",
xl: "(max-width: 1199.98px)",
xxl: "(max-width: 1599.98px)"
};
var _NzBreakpointService = class _NzBreakpointService {
constructor(resizeService, mediaMatcher) {
this.resizeService = resizeService;
@ -554,11 +562,13 @@ var ImagePreloadService = _ImagePreloadService;
})();
export {
reqAnimFrame,
NzResizeService,
NzSingletonService,
NzDragService,
gridResponsiveMap,
siderResponsiveMap,
NzBreakpointService,
NzDestroyService
};
//# sourceMappingURL=chunk-W3IYJMS2.js.map
//# sourceMappingURL=chunk-D5ODNR6D.js.map

@ -1,24 +1,38 @@
import {
A,
ALT,
CONTROL,
DOWN_ARROW,
END,
HOME,
LEFT_ARROW,
MAC_META,
META,
SHIFT
} from "./chunk-UMSNQQWJ.js";
NINE,
PAGE_DOWN,
PAGE_UP,
RIGHT_ARROW,
SHIFT,
TAB,
UP_ARROW,
Z,
ZERO,
hasModifierKey
} from "./chunk-JGP5BR6B.js";
import {
BreakpointObserver
} from "./chunk-5OJ3CSUZ.js";
} from "./chunk-WB57DPWD.js";
import {
Platform,
_getEventTarget,
_getFocusedElementPierceShadowDom,
_getShadowRoot,
normalizePassiveListenerOptions
} from "./chunk-UPQZZZIG.js";
} from "./chunk-IAC53GOD.js";
import {
coerceElement,
coerceNumberProperty
} from "./chunk-7XTJNSRU.js";
} from "./chunk-M5GY4FCO.js";
import {
DOCUMENT
} from "./chunk-OSQBUYO6.js";
@ -37,16 +51,21 @@ import {
Observable,
Optional,
Output,
QueryList,
Subject,
Subscription,
booleanAttribute,
debounceTime,
distinctUntilChanged,
filter,
inject,
map,
of,
setClassMetadata,
skip,
take,
takeUntil,
tap,
ɵɵInputTransformsFeature,
ɵɵNgOnChangesFeature,
ɵɵdefineDirective,
@ -499,6 +518,342 @@ function setMessageId(element, serviceId) {
element.id = `${CDK_DESCRIBEDBY_ID_PREFIX}-${serviceId}-${nextId++}`;
}
}
var ListKeyManager = class {
constructor(_items) {
this._items = _items;
this._activeItemIndex = -1;
this._activeItem = null;
this._wrap = false;
this._letterKeyStream = new Subject();
this._typeaheadSubscription = Subscription.EMPTY;
this._vertical = true;
this._allowedModifierKeys = [];
this._homeAndEnd = false;
this._pageUpAndDown = {
enabled: false,
delta: 10
};
this._skipPredicateFn = (item) => item.disabled;
this._pressedLetters = [];
this.tabOut = new Subject();
this.change = new Subject();
if (_items instanceof QueryList) {
this._itemChangesSubscription = _items.changes.subscribe((newItems) => {
if (this._activeItem) {
const itemArray = newItems.toArray();
const newIndex = itemArray.indexOf(this._activeItem);
if (newIndex > -1 && newIndex !== this._activeItemIndex) {
this._activeItemIndex = newIndex;
}
}
});
}
}
/**
* Sets the predicate function that determines which items should be skipped by the
* list key manager.
* @param predicate Function that determines whether the given item should be skipped.
*/
skipPredicate(predicate) {
this._skipPredicateFn = predicate;
return this;
}
/**
* Configures wrapping mode, which determines whether the active item will wrap to
* the other end of list when there are no more items in the given direction.
* @param shouldWrap Whether the list should wrap when reaching the end.
*/
withWrap(shouldWrap = true) {
this._wrap = shouldWrap;
return this;
}
/**
* Configures whether the key manager should be able to move the selection vertically.
* @param enabled Whether vertical selection should be enabled.
*/
withVerticalOrientation(enabled = true) {
this._vertical = enabled;
return this;
}
/**
* Configures the key manager to move the selection horizontally.
* Passing in `null` will disable horizontal movement.
* @param direction Direction in which the selection can be moved.
*/
withHorizontalOrientation(direction) {
this._horizontal = direction;
return this;
}
/**
* Modifier keys which are allowed to be held down and whose default actions will be prevented
* as the user is pressing the arrow keys. Defaults to not allowing any modifier keys.
*/
withAllowedModifierKeys(keys) {
this._allowedModifierKeys = keys;
return this;
}
/**
* Turns on typeahead mode which allows users to set the active item by typing.
* @param debounceInterval Time to wait after the last keystroke before setting the active item.
*/
withTypeAhead(debounceInterval = 200) {
if ((typeof ngDevMode === "undefined" || ngDevMode) && this._items.length && this._items.some((item) => typeof item.getLabel !== "function")) {
throw Error("ListKeyManager items in typeahead mode must implement the `getLabel` method.");
}
this._typeaheadSubscription.unsubscribe();
this._typeaheadSubscription = this._letterKeyStream.pipe(tap((letter) => this._pressedLetters.push(letter)), debounceTime(debounceInterval), filter(() => this._pressedLetters.length > 0), map(() => this._pressedLetters.join(""))).subscribe((inputString) => {
const items = this._getItemsArray();
for (let i = 1; i < items.length + 1; i++) {
const index = (this._activeItemIndex + i) % items.length;
const item = items[index];
if (!this._skipPredicateFn(item) && item.getLabel().toUpperCase().trim().indexOf(inputString) === 0) {
this.setActiveItem(index);
break;
}
}
this._pressedLetters = [];
});
return this;
}
/** Cancels the current typeahead sequence. */
cancelTypeahead() {
this._pressedLetters = [];
return this;
}
/**
* Configures the key manager to activate the first and last items
* respectively when the Home or End key is pressed.
* @param enabled Whether pressing the Home or End key activates the first/last item.
*/
withHomeAndEnd(enabled = true) {
this._homeAndEnd = enabled;
return this;
}
/**
* Configures the key manager to activate every 10th, configured or first/last element in up/down direction
* respectively when the Page-Up or Page-Down key is pressed.
* @param enabled Whether pressing the Page-Up or Page-Down key activates the first/last item.
* @param delta Whether pressing the Home or End key activates the first/last item.
*/
withPageUpDown(enabled = true, delta = 10) {
this._pageUpAndDown = {
enabled,
delta
};
return this;
}
setActiveItem(item) {
const previousActiveItem = this._activeItem;
this.updateActiveItem(item);
if (this._activeItem !== previousActiveItem) {
this.change.next(this._activeItemIndex);
}
}
/**
* Sets the active item depending on the key event passed in.
* @param event Keyboard event to be used for determining which element should be active.
*/
onKeydown(event) {
const keyCode = event.keyCode;
const modifiers = ["altKey", "ctrlKey", "metaKey", "shiftKey"];
const isModifierAllowed = modifiers.every((modifier) => {
return !event[modifier] || this._allowedModifierKeys.indexOf(modifier) > -1;
});
switch (keyCode) {
case TAB:
this.tabOut.next();
return;
case DOWN_ARROW:
if (this._vertical && isModifierAllowed) {
this.setNextItemActive();
break;
} else {
return;
}
case UP_ARROW:
if (this._vertical && isModifierAllowed) {
this.setPreviousItemActive();
break;
} else {
return;
}
case RIGHT_ARROW:
if (this._horizontal && isModifierAllowed) {
this._horizontal === "rtl" ? this.setPreviousItemActive() : this.setNextItemActive();
break;
} else {
return;
}
case LEFT_ARROW:
if (this._horizontal && isModifierAllowed) {
this._horizontal === "rtl" ? this.setNextItemActive() : this.setPreviousItemActive();
break;
} else {
return;
}
case HOME:
if (this._homeAndEnd && isModifierAllowed) {
this.setFirstItemActive();
break;
} else {
return;
}
case END:
if (this._homeAndEnd && isModifierAllowed) {
this.setLastItemActive();
break;
} else {
return;
}
case PAGE_UP:
if (this._pageUpAndDown.enabled && isModifierAllowed) {
const targetIndex = this._activeItemIndex - this._pageUpAndDown.delta;
this._setActiveItemByIndex(targetIndex > 0 ? targetIndex : 0, 1);
break;
} else {
return;
}
case PAGE_DOWN:
if (this._pageUpAndDown.enabled && isModifierAllowed) {
const targetIndex = this._activeItemIndex + this._pageUpAndDown.delta;
const itemsLength = this._getItemsArray().length;
this._setActiveItemByIndex(targetIndex < itemsLength ? targetIndex : itemsLength - 1, -1);
break;
} else {
return;
}
default:
if (isModifierAllowed || hasModifierKey(event, "shiftKey")) {
if (event.key && event.key.length === 1) {
this._letterKeyStream.next(event.key.toLocaleUpperCase());
} else if (keyCode >= A && keyCode <= Z || keyCode >= ZERO && keyCode <= NINE) {
this._letterKeyStream.next(String.fromCharCode(keyCode));
}
}
return;
}
this._pressedLetters = [];
event.preventDefault();
}
/** Index of the currently active item. */
get activeItemIndex() {
return this._activeItemIndex;
}
/** The active item. */
get activeItem() {
return this._activeItem;
}
/** Gets whether the user is currently typing into the manager using the typeahead feature. */
isTyping() {
return this._pressedLetters.length > 0;
}
/** Sets the active item to the first enabled item in the list. */
setFirstItemActive() {
this._setActiveItemByIndex(0, 1);
}
/** Sets the active item to the last enabled item in the list. */
setLastItemActive() {
this._setActiveItemByIndex(this._items.length - 1, -1);
}
/** Sets the active item to the next enabled item in the list. */
setNextItemActive() {
this._activeItemIndex < 0 ? this.setFirstItemActive() : this._setActiveItemByDelta(1);
}
/** Sets the active item to a previous enabled item in the list. */
setPreviousItemActive() {
this._activeItemIndex < 0 && this._wrap ? this.setLastItemActive() : this._setActiveItemByDelta(-1);
}
updateActiveItem(item) {
const itemArray = this._getItemsArray();
const index = typeof item === "number" ? item : itemArray.indexOf(item);
const activeItem = itemArray[index];
this._activeItem = activeItem == null ? null : activeItem;
this._activeItemIndex = index;
}
/** Cleans up the key manager. */
destroy() {
this._typeaheadSubscription.unsubscribe();
this._itemChangesSubscription?.unsubscribe();
this._letterKeyStream.complete();
this.tabOut.complete();
this.change.complete();
this._pressedLetters = [];
}
/**
* This method sets the active item, given a list of items and the delta between the
* currently active item and the new active item. It will calculate differently
* depending on whether wrap mode is turned on.
*/
_setActiveItemByDelta(delta) {
this._wrap ? this._setActiveInWrapMode(delta) : this._setActiveInDefaultMode(delta);
}
/**
* Sets the active item properly given "wrap" mode. In other words, it will continue to move
* down the list until it finds an item that is not disabled, and it will wrap if it
* encounters either end of the list.
*/
_setActiveInWrapMode(delta) {
const items = this._getItemsArray();
for (let i = 1; i <= items.length; i++) {
const index = (this._activeItemIndex + delta * i + items.length) % items.length;
const item = items[index];
if (!this._skipPredicateFn(item)) {
this.setActiveItem(index);
return;
}
}
}
/**
* Sets the active item properly given the default mode. In other words, it will
* continue to move down the list until it finds an item that is not disabled. If
* it encounters either end of the list, it will stop and not wrap.
*/
_setActiveInDefaultMode(delta) {
this._setActiveItemByIndex(this._activeItemIndex + delta, delta);
}
/**
* Sets the active item to the first enabled item starting at the index specified. If the
* item is disabled, it will move in the fallbackDelta direction until it either
* finds an enabled item or encounters the end of the list.
*/
_setActiveItemByIndex(index, fallbackDelta) {
const items = this._getItemsArray();
if (!items[index]) {
return;
}
while (this._skipPredicateFn(items[index])) {
index += fallbackDelta;
if (!items[index]) {
return;
}
}
this.setActiveItem(index);
}
/** Returns the items as an array. */
_getItemsArray() {
return this._items instanceof QueryList ? this._items.toArray() : this._items;
}
};
var FocusKeyManager = class extends ListKeyManager {
constructor() {
super(...arguments);
this._origin = "program";
}
/**
* Sets the focus origin that will be passed in to the items for any subsequent `focus` calls.
* @param origin Focus origin to be used when focusing items.
*/
setFocusOrigin(origin) {
this._origin = origin;
return this;
}
setActiveItem(item) {
super.setActiveItem(item);
if (this.activeItem) {
this.activeItem.focus(this._origin);
}
}
};
var _InteractivityChecker = class _InteractivityChecker {
constructor(_platform) {
this._platform = _platform;
@ -2009,6 +2364,10 @@ var A11yModule = _A11yModule;
})();
export {
FocusMonitor
FocusKeyManager,
FocusTrapFactory,
FocusMonitor,
CdkMonitorFocus,
A11yModule
};
//# sourceMappingURL=chunk-C2DNBB57.js.map
//# sourceMappingURL=chunk-E6XJDY45.js.map

@ -5,7 +5,7 @@ import {
sequence,
style,
ɵPRE_STYLE
} from "./chunk-BNCUYWOH.js";
} from "./chunk-KI2JSLP6.js";
import {
BrowserModule,
DomRendererFactory2
@ -4186,4 +4186,4 @@ export {
* License: MIT
*)
*/
//# sourceMappingURL=chunk-FILHFU6K.js.map
//# sourceMappingURL=chunk-ECVKT3ZH.js.map

@ -1,7 +1,7 @@
import {
NzIconDirective,
NzIconModule
} from "./chunk-S7G3TSRW.js";
} from "./chunk-VWMHIMW7.js";
import {
CommonModule,
NgIf
@ -188,4 +188,4 @@ export {
NzFormItemFeedbackIconComponent,
NzFormPatchModule
};
//# sourceMappingURL=chunk-W2UE3A2Q.js.map
//# sourceMappingURL=chunk-FGZVIKKA.js.map

@ -1,23 +1,12 @@
import {
DOCUMENT,
isPlatformBrowser
} from "./chunk-OSQBUYO6.js";
import {
Directive,
EventEmitter,
Inject,
Injectable,
InjectionToken,
Input,
NgModule,
Optional,
Output,
PLATFORM_ID,
inject,
setClassMetadata,
ɵɵProvidersFeature,
ɵɵattribute,
ɵɵdefineDirective,
ɵɵdefineInjectable,
ɵɵdefineInjector,
ɵɵdefineNgModule,
@ -191,162 +180,6 @@ function _isTestEnvironment() {
);
}
// node_modules/@angular/cdk/fesm2022/bidi.mjs
var DIR_DOCUMENT = new InjectionToken("cdk-dir-doc", {
providedIn: "root",
factory: DIR_DOCUMENT_FACTORY
});
function DIR_DOCUMENT_FACTORY() {
return inject(DOCUMENT);
}
var RTL_LOCALE_PATTERN = /^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;
function _resolveDirectionality(rawValue) {
const value = rawValue?.toLowerCase() || "";
if (value === "auto" && typeof navigator !== "undefined" && navigator?.language) {
return RTL_LOCALE_PATTERN.test(navigator.language) ? "rtl" : "ltr";
}
return value === "rtl" ? "rtl" : "ltr";
}
var _Directionality = class _Directionality {
constructor(_document) {
this.value = "ltr";
this.change = new EventEmitter();
if (_document) {
const bodyDir = _document.body ? _document.body.dir : null;
const htmlDir = _document.documentElement ? _document.documentElement.dir : null;
this.value = _resolveDirectionality(bodyDir || htmlDir || "ltr");
}
}
ngOnDestroy() {
this.change.complete();
}
};
_Directionality.ɵfac = function Directionality_Factory(t) {
return new (t || _Directionality)(ɵɵinject(DIR_DOCUMENT, 8));
};
_Directionality.ɵprov = ɵɵdefineInjectable({
token: _Directionality,
factory: _Directionality.ɵfac,
providedIn: "root"
});
var Directionality = _Directionality;
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(Directionality, [{
type: Injectable,
args: [{
providedIn: "root"
}]
}], () => [{
type: void 0,
decorators: [{
type: Optional
}, {
type: Inject,
args: [DIR_DOCUMENT]
}]
}], null);
})();
var _Dir = class _Dir {
constructor() {
this._dir = "ltr";
this._isInitialized = false;
this.change = new EventEmitter();
}
/** @docs-private */
get dir() {
return this._dir;
}
set dir(value) {
const previousValue = this._dir;
this._dir = _resolveDirectionality(value);
this._rawDir = value;
if (previousValue !== this._dir && this._isInitialized) {
this.change.emit(this._dir);
}
}
/** Current layout direction of the element. */
get value() {
return this.dir;
}
/** Initialize once default value has been set. */
ngAfterContentInit() {
this._isInitialized = true;
}
ngOnDestroy() {
this.change.complete();
}
};
_Dir.ɵfac = function Dir_Factory(t) {
return new (t || _Dir)();
};
_Dir.ɵdir = ɵɵdefineDirective({
type: _Dir,
selectors: [["", "dir", ""]],
hostVars: 1,
hostBindings: function Dir_HostBindings(rf, ctx) {
if (rf & 2) {
ɵɵattribute("dir", ctx._rawDir);
}
},
inputs: {
dir: "dir"
},
outputs: {
change: "dirChange"
},
exportAs: ["dir"],
features: [ɵɵProvidersFeature([{
provide: Directionality,
useExisting: _Dir
}])]
});
var Dir = _Dir;
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(Dir, [{
type: Directive,
args: [{
selector: "[dir]",
providers: [{
provide: Directionality,
useExisting: Dir
}],
host: {
"[attr.dir]": "_rawDir"
},
exportAs: "dir"
}]
}], null, {
change: [{
type: Output,
args: ["dirChange"]
}],
dir: [{
type: Input
}]
});
})();
var _BidiModule = class _BidiModule {
};
_BidiModule.ɵfac = function BidiModule_Factory(t) {
return new (t || _BidiModule)();
};
_BidiModule.ɵmod = ɵɵdefineNgModule({
type: _BidiModule,
declarations: [Dir],
exports: [Dir]
});
_BidiModule.ɵinj = ɵɵdefineInjector({});
var BidiModule = _BidiModule;
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(BidiModule, [{
type: NgModule,
args: [{
exports: [Dir],
declarations: [Dir]
}]
}], null, null);
})();
export {
Platform,
normalizePassiveListenerOptions,
@ -355,8 +188,6 @@ export {
_getShadowRoot,
_getFocusedElementPierceShadowDom,
_getEventTarget,
_isTestEnvironment,
Directionality,
BidiModule
_isTestEnvironment
};
//# sourceMappingURL=chunk-UPQZZZIG.js.map
//# sourceMappingURL=chunk-IAC53GOD.js.map

@ -1,12 +1,23 @@
// node_modules/@angular/cdk/fesm2022/keycodes.mjs
var TAB = 9;
var ENTER = 13;
var SHIFT = 16;
var CONTROL = 17;
var ALT = 18;
var ESCAPE = 27;
var SPACE = 32;
var PAGE_UP = 33;
var PAGE_DOWN = 34;
var END = 35;
var HOME = 36;
var LEFT_ARROW = 37;
var UP_ARROW = 38;
var RIGHT_ARROW = 39;
var DOWN_ARROW = 40;
var ZERO = 48;
var NINE = 57;
var A = 65;
var Z = 90;
var META = 91;
var MAC_META = 224;
function hasModifierKey(event, ...modifiers) {
@ -17,16 +28,27 @@ function hasModifierKey(event, ...modifiers) {
}
export {
TAB,
ENTER,
SHIFT,
CONTROL,
ALT,
ESCAPE,
SPACE,
PAGE_UP,
PAGE_DOWN,
END,
HOME,
LEFT_ARROW,
UP_ARROW,
RIGHT_ARROW,
DOWN_ARROW,
ZERO,
NINE,
A,
Z,
META,
MAC_META,
hasModifierKey
};
//# sourceMappingURL=chunk-UMSNQQWJ.js.map
//# sourceMappingURL=chunk-JGP5BR6B.js.map

@ -2,6 +2,6 @@
"version": 3,
"sources": ["../../../../../node_modules/@angular/cdk/fesm2022/keycodes.mjs"],
"sourcesContent": ["const MAC_ENTER = 3;\nconst BACKSPACE = 8;\nconst TAB = 9;\nconst NUM_CENTER = 12;\nconst ENTER = 13;\nconst SHIFT = 16;\nconst CONTROL = 17;\nconst ALT = 18;\nconst PAUSE = 19;\nconst CAPS_LOCK = 20;\nconst ESCAPE = 27;\nconst SPACE = 32;\nconst PAGE_UP = 33;\nconst PAGE_DOWN = 34;\nconst END = 35;\nconst HOME = 36;\nconst LEFT_ARROW = 37;\nconst UP_ARROW = 38;\nconst RIGHT_ARROW = 39;\nconst DOWN_ARROW = 40;\nconst PLUS_SIGN = 43;\nconst PRINT_SCREEN = 44;\nconst INSERT = 45;\nconst DELETE = 46;\nconst ZERO = 48;\nconst ONE = 49;\nconst TWO = 50;\nconst THREE = 51;\nconst FOUR = 52;\nconst FIVE = 53;\nconst SIX = 54;\nconst SEVEN = 55;\nconst EIGHT = 56;\nconst NINE = 57;\nconst FF_SEMICOLON = 59; // Firefox (Gecko) fires this for semicolon instead of 186\nconst FF_EQUALS = 61; // Firefox (Gecko) fires this for equals instead of 187\nconst QUESTION_MARK = 63;\nconst AT_SIGN = 64;\nconst A = 65;\nconst B = 66;\nconst C = 67;\nconst D = 68;\nconst E = 69;\nconst F = 70;\nconst G = 71;\nconst H = 72;\nconst I = 73;\nconst J = 74;\nconst K = 75;\nconst L = 76;\nconst M = 77;\nconst N = 78;\nconst O = 79;\nconst P = 80;\nconst Q = 81;\nconst R = 82;\nconst S = 83;\nconst T = 84;\nconst U = 85;\nconst V = 86;\nconst W = 87;\nconst X = 88;\nconst Y = 89;\nconst Z = 90;\nconst META = 91; // WIN_KEY_LEFT\nconst MAC_WK_CMD_LEFT = 91;\nconst MAC_WK_CMD_RIGHT = 93;\nconst CONTEXT_MENU = 93;\nconst NUMPAD_ZERO = 96;\nconst NUMPAD_ONE = 97;\nconst NUMPAD_TWO = 98;\nconst NUMPAD_THREE = 99;\nconst NUMPAD_FOUR = 100;\nconst NUMPAD_FIVE = 101;\nconst NUMPAD_SIX = 102;\nconst NUMPAD_SEVEN = 103;\nconst NUMPAD_EIGHT = 104;\nconst NUMPAD_NINE = 105;\nconst NUMPAD_MULTIPLY = 106;\nconst NUMPAD_PLUS = 107;\nconst NUMPAD_MINUS = 109;\nconst NUMPAD_PERIOD = 110;\nconst NUMPAD_DIVIDE = 111;\nconst F1 = 112;\nconst F2 = 113;\nconst F3 = 114;\nconst F4 = 115;\nconst F5 = 116;\nconst F6 = 117;\nconst F7 = 118;\nconst F8 = 119;\nconst F9 = 120;\nconst F10 = 121;\nconst F11 = 122;\nconst F12 = 123;\nconst NUM_LOCK = 144;\nconst SCROLL_LOCK = 145;\nconst FIRST_MEDIA = 166;\nconst FF_MINUS = 173;\nconst MUTE = 173; // Firefox (Gecko) fires 181 for MUTE\nconst VOLUME_DOWN = 174; // Firefox (Gecko) fires 182 for VOLUME_DOWN\nconst VOLUME_UP = 175; // Firefox (Gecko) fires 183 for VOLUME_UP\nconst FF_MUTE = 181;\nconst FF_VOLUME_DOWN = 182;\nconst LAST_MEDIA = 183;\nconst FF_VOLUME_UP = 183;\nconst SEMICOLON = 186; // Firefox (Gecko) fires 59 for SEMICOLON\nconst EQUALS = 187; // Firefox (Gecko) fires 61 for EQUALS\nconst COMMA = 188;\nconst DASH = 189; // Firefox (Gecko) fires 173 for DASH/MINUS\nconst PERIOD = 190;\nconst SLASH = 191;\nconst APOSTROPHE = 192;\nconst TILDE = 192;\nconst OPEN_SQUARE_BRACKET = 219;\nconst BACKSLASH = 220;\nconst CLOSE_SQUARE_BRACKET = 221;\nconst SINGLE_QUOTE = 222;\nconst MAC_META = 224;\n\n/**\n * Checks whether a modifier key is pressed.\n * @param event Event to be checked.\n */\nfunction hasModifierKey(event, ...modifiers) {\n if (modifiers.length) {\n return modifiers.some(modifier => event[modifier]);\n }\n return event.altKey || event.shiftKey || event.ctrlKey || event.metaKey;\n}\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { A, ALT, APOSTROPHE, AT_SIGN, B, BACKSLASH, BACKSPACE, C, CAPS_LOCK, CLOSE_SQUARE_BRACKET, COMMA, CONTEXT_MENU, CONTROL, D, DASH, DELETE, DOWN_ARROW, E, EIGHT, END, ENTER, EQUALS, ESCAPE, F, F1, F10, F11, F12, F2, F3, F4, F5, F6, F7, F8, F9, FF_EQUALS, FF_MINUS, FF_MUTE, FF_SEMICOLON, FF_VOLUME_DOWN, FF_VOLUME_UP, FIRST_MEDIA, FIVE, FOUR, G, H, HOME, I, INSERT, J, K, L, LAST_MEDIA, LEFT_ARROW, M, MAC_ENTER, MAC_META, MAC_WK_CMD_LEFT, MAC_WK_CMD_RIGHT, META, MUTE, N, NINE, NUMPAD_DIVIDE, NUMPAD_EIGHT, NUMPAD_FIVE, NUMPAD_FOUR, NUMPAD_MINUS, NUMPAD_MULTIPLY, NUMPAD_NINE, NUMPAD_ONE, NUMPAD_PERIOD, NUMPAD_PLUS, NUMPAD_SEVEN, NUMPAD_SIX, NUMPAD_THREE, NUMPAD_TWO, NUMPAD_ZERO, NUM_CENTER, NUM_LOCK, O, ONE, OPEN_SQUARE_BRACKET, P, PAGE_DOWN, PAGE_UP, PAUSE, PERIOD, PLUS_SIGN, PRINT_SCREEN, Q, QUESTION_MARK, R, RIGHT_ARROW, S, SCROLL_LOCK, SEMICOLON, SEVEN, SHIFT, SINGLE_QUOTE, SIX, SLASH, SPACE, T, TAB, THREE, TILDE, TWO, U, UP_ARROW, V, VOLUME_DOWN, VOLUME_UP, W, X, Y, Z, ZERO, hasModifierKey };\n\n"],
"mappings": ";AAKA,IAAM,QAAQ;AACd,IAAM,UAAU;AAChB,IAAM,MAAM;AAGZ,IAAM,SAAS;AAMf,IAAM,aAAa;AACnB,IAAM,WAAW;AACjB,IAAM,cAAc;AACpB,IAAM,aAAa;AA6CnB,IAAM,OAAO;AAsDb,IAAM,WAAW;AAMjB,SAAS,eAAe,UAAU,WAAW;AACzC,MAAI,UAAU,QAAQ;AAClB,WAAO,UAAU,KAAK,cAAY,MAAM,QAAQ,CAAC;AAAA,EACrD;AACA,SAAO,MAAM,UAAU,MAAM,YAAY,MAAM,WAAW,MAAM;AACpE;",
"mappings": ";AAEA,IAAM,MAAM;AAEZ,IAAM,QAAQ;AACd,IAAM,QAAQ;AACd,IAAM,UAAU;AAChB,IAAM,MAAM;AAGZ,IAAM,SAAS;AACf,IAAM,QAAQ;AACd,IAAM,UAAU;AAChB,IAAM,YAAY;AAClB,IAAM,MAAM;AACZ,IAAM,OAAO;AACb,IAAM,aAAa;AACnB,IAAM,WAAW;AACjB,IAAM,cAAc;AACpB,IAAM,aAAa;AAKnB,IAAM,OAAO;AASb,IAAM,OAAO;AAKb,IAAM,IAAI;AAyBV,IAAM,IAAI;AACV,IAAM,OAAO;AAsDb,IAAM,WAAW;AAMjB,SAAS,eAAe,UAAU,WAAW;AACzC,MAAI,UAAU,QAAQ;AAClB,WAAO,UAAU,KAAK,cAAY,MAAM,QAAQ,CAAC;AAAA,EACrD;AACA,SAAO,MAAM,UAAU,MAAM,YAAY,MAAM,WAAW,MAAM;AACpE;",
"names": []
}

@ -31,6 +31,13 @@ function animate(timings, styles = null) {
timings
};
}
function group(steps, options = null) {
return {
type: 3,
steps,
options
};
}
function sequence(steps, options = null) {
return {
type: 2,
@ -53,6 +60,12 @@ function state(name, styles, options) {
options
};
}
function keyframes(steps) {
return {
type: 5,
steps
};
}
function transition(stateChangeExpr, steps, options = null) {
return {
type: 1,
@ -61,19 +74,39 @@ function transition(stateChangeExpr, steps, options = null) {
options
};
}
function query(selector, animation, options = null) {
function animation(steps, options = null) {
return {
type: 8,
animation: steps,
options
};
}
function animateChild(options = null) {
return {
type: 9,
options
};
}
function useAnimation(animation2, options = null) {
return {
type: 10,
animation: animation2,
options
};
}
function query(selector, animation2, options = null) {
return {
type: 11,
selector,
animation,
animation: animation2,
options
};
}
function stagger(timings, animation) {
function stagger(timings, animation2) {
return {
type: 12,
timings,
animation
animation: animation2
};
}
var _AnimationBuilder = class _AnimationBuilder {
@ -118,10 +151,10 @@ var _BrowserAnimationBuilder = class _BrowserAnimationBuilder extends AnimationB
throw new RuntimeError(3600, (typeof ngDevMode === "undefined" || ngDevMode) && "Angular detected that the `AnimationBuilder` was injected, but animation support was not enabled. Please make sure that you enable animations in your application by calling `provideAnimations()` or `provideAnimationsAsync()` function.");
}
}
build(animation) {
build(animation2) {
const id = this._nextAnimationId;
this._nextAnimationId++;
const entry = Array.isArray(animation) ? sequence(animation) : animation;
const entry = Array.isArray(animation2) ? sequence(animation2) : animation2;
issueAnimationCommand(this._renderer, null, id, "register", [entry]);
return new BrowserAnimationFactory(id, this._renderer);
}
@ -460,12 +493,20 @@ export {
AUTO_STYLE,
trigger,
animate,
group,
sequence,
style,
state,
keyframes,
transition,
animation,
animateChild,
useAnimation,
query,
stagger,
AnimationBuilder,
AnimationFactory,
BrowserAnimationBuilder,
NoopAnimationPlayer,
AnimationGroupPlayer,
ɵPRE_STYLE
@ -479,4 +520,4 @@ export {
* License: MIT
*)
*/
//# sourceMappingURL=chunk-BNCUYWOH.js.map
//# sourceMappingURL=chunk-KI2JSLP6.js.map

@ -0,0 +1,760 @@
import {
NzIconDirective,
NzIconModule
} from "./chunk-VWMHIMW7.js";
import {
NzConfigService,
WithConfig
} from "./chunk-ZHMJ6SNN.js";
import {
Directionality
} from "./chunk-6NZ2BEBG.js";
import {
Platform
} from "./chunk-IAC53GOD.js";
import {
InputBoolean
} from "./chunk-M5GY4FCO.js";
import {
NgIf
} from "./chunk-OSQBUYO6.js";
import {
ANIMATION_MODULE_TYPE,
CSP_NONCE,
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
ContentChild,
Directive,
ElementRef,
Inject,
InjectionToken,
Input,
NgModule,
NgZone,
Optional,
PLATFORM_ID,
Renderer2,
Subject,
ViewEncapsulation$1,
__decorate,
filter,
fromEvent,
makeEnvironmentProviders,
setClassMetadata,
startWith,
takeUntil,
ɵɵNgOnChangesFeature,
ɵɵStandaloneFeature,
ɵɵattribute,
ɵɵclassProp,
ɵɵcontentQuery,
ɵɵdefineComponent,
ɵɵdefineDirective,
ɵɵdefineInjector,
ɵɵdefineNgModule,
ɵɵdirectiveInject,
ɵɵelement,
ɵɵloadQuery,
ɵɵprojection,
ɵɵprojectionDef,
ɵɵproperty,
ɵɵqueryRefresh,
ɵɵtemplate
} from "./chunk-FGESKT7O.js";
// node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-core-transition-patch.mjs
var _NzTransitionPatchDirective = class _NzTransitionPatchDirective {
setHiddenAttribute() {
if (this.hidden) {
if (typeof this.hidden === "string") {
this.renderer.setAttribute(this.elementRef.nativeElement, "hidden", this.hidden);
} else {
this.renderer.setAttribute(this.elementRef.nativeElement, "hidden", "");
}
} else {
this.renderer.removeAttribute(this.elementRef.nativeElement, "hidden");
}
}
constructor(elementRef, renderer) {
this.elementRef = elementRef;
this.renderer = renderer;
this.hidden = null;
this.renderer.setAttribute(this.elementRef.nativeElement, "hidden", "");
}
ngOnChanges() {
this.setHiddenAttribute();
}
ngAfterViewInit() {
this.setHiddenAttribute();
}
};
_NzTransitionPatchDirective.ɵfac = function NzTransitionPatchDirective_Factory(t) {
return new (t || _NzTransitionPatchDirective)(ɵɵdirectiveInject(ElementRef), ɵɵdirectiveInject(Renderer2));
};
_NzTransitionPatchDirective.ɵdir = ɵɵdefineDirective({
type: _NzTransitionPatchDirective,
selectors: [["", "nz-button", ""], ["nz-button-group"], ["", "nz-icon", ""], ["", "nz-menu-item", ""], ["", "nz-submenu", ""], ["nz-select-top-control"], ["nz-select-placeholder"], ["nz-input-group"]],
inputs: {
hidden: "hidden"
},
standalone: true,
features: [ɵɵNgOnChangesFeature]
});
var NzTransitionPatchDirective = _NzTransitionPatchDirective;
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NzTransitionPatchDirective, [{
type: Directive,
args: [{
selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group",
standalone: true
}]
}], () => [{
type: ElementRef
}, {
type: Renderer2
}], {
hidden: [{
type: Input
}]
});
})();
var _NzTransitionPatchModule = class _NzTransitionPatchModule {
};
_NzTransitionPatchModule.ɵfac = function NzTransitionPatchModule_Factory(t) {
return new (t || _NzTransitionPatchModule)();
};
_NzTransitionPatchModule.ɵmod = ɵɵdefineNgModule({
type: _NzTransitionPatchModule,
imports: [NzTransitionPatchDirective],
exports: [NzTransitionPatchDirective]
});
_NzTransitionPatchModule.ɵinj = ɵɵdefineInjector({});
var NzTransitionPatchModule = _NzTransitionPatchModule;
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NzTransitionPatchModule, [{
type: NgModule,
args: [{
imports: [NzTransitionPatchDirective],
exports: [NzTransitionPatchDirective]
}]
}], null, null);
})();
// node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-core-wave.mjs
var NzWaveRenderer = class {
get waveAttributeName() {
return this.insertExtraNode ? "ant-click-animating" : "ant-click-animating-without-extra-node";
}
constructor(triggerElement, ngZone, insertExtraNode, platformId, cspNonce) {
this.triggerElement = triggerElement;
this.ngZone = ngZone;
this.insertExtraNode = insertExtraNode;
this.platformId = platformId;
this.cspNonce = cspNonce;
this.waveTransitionDuration = 400;
this.styleForPseudo = null;
this.extraNode = null;
this.lastTime = 0;
this.onClick = (event) => {
if (!this.triggerElement || !this.triggerElement.getAttribute || this.triggerElement.getAttribute("disabled") || event.target.tagName === "INPUT" || this.triggerElement.className.indexOf("disabled") >= 0) {
return;
}
this.fadeOutWave();
};
this.platform = new Platform(this.platformId);
this.clickHandler = this.onClick.bind(this);
this.bindTriggerEvent();
}
bindTriggerEvent() {
if (this.platform.isBrowser) {
this.ngZone.runOutsideAngular(() => {
this.removeTriggerEvent();
if (this.triggerElement) {
this.triggerElement.addEventListener("click", this.clickHandler, true);
}
});
}
}
removeTriggerEvent() {
if (this.triggerElement) {
this.triggerElement.removeEventListener("click", this.clickHandler, true);
}
}
removeStyleAndExtraNode() {
if (this.styleForPseudo && document.body.contains(this.styleForPseudo)) {
document.body.removeChild(this.styleForPseudo);
this.styleForPseudo = null;
}
if (this.insertExtraNode && this.triggerElement.contains(this.extraNode)) {
this.triggerElement.removeChild(this.extraNode);
}
}
destroy() {
this.removeTriggerEvent();
this.removeStyleAndExtraNode();
}
fadeOutWave() {
const node = this.triggerElement;
const waveColor = this.getWaveColor(node);
node.setAttribute(this.waveAttributeName, "true");
if (Date.now() < this.lastTime + this.waveTransitionDuration) {
return;
}
if (this.isValidColor(waveColor)) {
if (!this.styleForPseudo) {
this.styleForPseudo = document.createElement("style");
if (this.cspNonce) {
this.styleForPseudo.nonce = this.cspNonce;
}
}
this.styleForPseudo.innerHTML = `
[ant-click-animating-without-extra-node='true']::after, .ant-click-animating-node {
--antd-wave-shadow-color: ${waveColor};
}`;
document.body.appendChild(this.styleForPseudo);
}
if (this.insertExtraNode) {
if (!this.extraNode) {
this.extraNode = document.createElement("div");
}
this.extraNode.className = "ant-click-animating-node";
node.appendChild(this.extraNode);
}
this.lastTime = Date.now();
this.runTimeoutOutsideZone(() => {
node.removeAttribute(this.waveAttributeName);
this.removeStyleAndExtraNode();
}, this.waveTransitionDuration);
}
isValidColor(color) {
return !!color && color !== "#ffffff" && color !== "rgb(255, 255, 255)" && this.isNotGrey(color) && !/rgba\(\d*, \d*, \d*, 0\)/.test(color) && color !== "transparent";
}
isNotGrey(color) {
const match = color.match(/rgba?\((\d*), (\d*), (\d*)(, [\.\d]*)?\)/);
if (match && match[1] && match[2] && match[3]) {
return !(match[1] === match[2] && match[2] === match[3]);
}
return true;
}
getWaveColor(node) {
const nodeStyle = getComputedStyle(node);
return nodeStyle.getPropertyValue("border-top-color") || // Firefox Compatible
nodeStyle.getPropertyValue("border-color") || nodeStyle.getPropertyValue("background-color");
}
runTimeoutOutsideZone(fn, delay) {
this.ngZone.runOutsideAngular(() => setTimeout(fn, delay));
}
};
var NZ_WAVE_GLOBAL_DEFAULT_CONFIG = {
disabled: false
};
var NZ_WAVE_GLOBAL_CONFIG = new InjectionToken("nz-wave-global-options");
function provideNzWave(config) {
return makeEnvironmentProviders([{
provide: NZ_WAVE_GLOBAL_CONFIG,
useValue: config
}]);
}
var _NzWaveDirective = class _NzWaveDirective {
get disabled() {
return this.waveDisabled;
}
get rendererRef() {
return this.waveRenderer;
}
constructor(ngZone, elementRef, config, animationType, platformId, cspNonce) {
this.ngZone = ngZone;
this.elementRef = elementRef;
this.config = config;
this.animationType = animationType;
this.platformId = platformId;
this.cspNonce = cspNonce;
this.nzWaveExtraNode = false;
this.waveDisabled = false;
this.waveDisabled = this.isConfigDisabled();
}
isConfigDisabled() {
let disabled = false;
if (this.config && typeof this.config.disabled === "boolean") {
disabled = this.config.disabled;
}
if (this.animationType === "NoopAnimations") {
disabled = true;
}
return disabled;
}
ngOnDestroy() {
if (this.waveRenderer) {
this.waveRenderer.destroy();
}
}
ngOnInit() {
this.renderWaveIfEnabled();
}
renderWaveIfEnabled() {
if (!this.waveDisabled && this.elementRef.nativeElement) {
this.waveRenderer = new NzWaveRenderer(this.elementRef.nativeElement, this.ngZone, this.nzWaveExtraNode, this.platformId, this.cspNonce);
}
}
disable() {
this.waveDisabled = true;
if (this.waveRenderer) {
this.waveRenderer.removeTriggerEvent();
this.waveRenderer.removeStyleAndExtraNode();
}
}
enable() {
this.waveDisabled = this.isConfigDisabled() || false;
if (this.waveRenderer) {
this.waveRenderer.bindTriggerEvent();
}
}
};
_NzWaveDirective.ɵfac = function NzWaveDirective_Factory(t) {
return new (t || _NzWaveDirective)(ɵɵdirectiveInject(NgZone), ɵɵdirectiveInject(ElementRef), ɵɵdirectiveInject(NZ_WAVE_GLOBAL_CONFIG, 8), ɵɵdirectiveInject(ANIMATION_MODULE_TYPE, 8), ɵɵdirectiveInject(PLATFORM_ID), ɵɵdirectiveInject(CSP_NONCE, 8));
};
_NzWaveDirective.ɵdir = ɵɵdefineDirective({
type: _NzWaveDirective,
selectors: [["", "nz-wave", ""], ["button", "nz-button", "", 3, "nzType", "link", 3, "nzType", "text"]],
inputs: {
nzWaveExtraNode: "nzWaveExtraNode"
},
exportAs: ["nzWave"],
standalone: true
});
var NzWaveDirective = _NzWaveDirective;
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NzWaveDirective, [{
type: Directive,
args: [{
selector: '[nz-wave],button[nz-button]:not([nzType="link"]):not([nzType="text"])',
exportAs: "nzWave",
standalone: true
}]
}], () => [{
type: NgZone
}, {
type: ElementRef
}, {
type: void 0,
decorators: [{
type: Optional
}, {
type: Inject,
args: [NZ_WAVE_GLOBAL_CONFIG]
}]
}, {
type: void 0,
decorators: [{
type: Optional
}, {
type: Inject,
args: [ANIMATION_MODULE_TYPE]
}]
}, {
type: void 0,
decorators: [{
type: Inject,
args: [PLATFORM_ID]
}]
}, {
type: void 0,
decorators: [{
type: Optional
}, {
type: Inject,
args: [CSP_NONCE]
}]
}], {
nzWaveExtraNode: [{
type: Input
}]
});
})();
var _NzWaveModule = class _NzWaveModule {
};
_NzWaveModule.ɵfac = function NzWaveModule_Factory(t) {
return new (t || _NzWaveModule)();
};
_NzWaveModule.ɵmod = ɵɵdefineNgModule({
type: _NzWaveModule,
imports: [NzWaveDirective],
exports: [NzWaveDirective]
});
_NzWaveModule.ɵinj = ɵɵdefineInjector({
providers: [provideNzWave(NZ_WAVE_GLOBAL_DEFAULT_CONFIG)]
});
var NzWaveModule = _NzWaveModule;
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NzWaveModule, [{
type: NgModule,
args: [{
imports: [NzWaveDirective],
exports: [NzWaveDirective],
providers: [provideNzWave(NZ_WAVE_GLOBAL_DEFAULT_CONFIG)]
}]
}], null, null);
})();
// node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-button.mjs
var _c0 = ["nz-button", ""];
function NzButtonComponent_span_0_Template(rf, ctx) {
if (rf & 1) {
ɵɵelement(0, "span", 1);
}
}
var _c1 = ["*"];
var NZ_CONFIG_MODULE_NAME = "button";
var _NzButtonComponent = class _NzButtonComponent {
insertSpan(nodes, renderer) {
nodes.forEach((node) => {
if (node.nodeName === "#text") {
const span = renderer.createElement("span");
const parent = renderer.parentNode(node);
renderer.insertBefore(parent, span, node);
renderer.appendChild(span, node);
}
});
}
get iconOnly() {
const listOfNode = Array.from(this.elementRef?.nativeElement?.childNodes || []);
const noText = listOfNode.every((node) => node.nodeName !== "#text");
const noSpan = listOfNode.filter((node) => {
return !(node.nodeName === "#comment" || !!node?.attributes?.getNamedItem("nz-icon"));
}).length == 0;
const isIconOnly = !!this.nzIconDirectiveElement && noSpan && noText;
return isIconOnly;
}
constructor(ngZone, elementRef, cdr, renderer, nzConfigService, directionality) {
this.ngZone = ngZone;
this.elementRef = elementRef;
this.cdr = cdr;
this.renderer = renderer;
this.nzConfigService = nzConfigService;
this.directionality = directionality;
this._nzModuleName = NZ_CONFIG_MODULE_NAME;
this.nzBlock = false;
this.nzGhost = false;
this.nzSearch = false;
this.nzLoading = false;
this.nzDanger = false;
this.disabled = false;
this.tabIndex = null;
this.nzType = null;
this.nzShape = null;
this.nzSize = "default";
this.dir = "ltr";
this.destroy$ = new Subject();
this.loading$ = new Subject();
this.nzConfigService.getConfigChangeEventForComponent(NZ_CONFIG_MODULE_NAME).pipe(takeUntil(this.destroy$)).subscribe(() => {
this.cdr.markForCheck();
});
}
ngOnInit() {
this.directionality.change?.pipe(takeUntil(this.destroy$)).subscribe((direction) => {
this.dir = direction;
this.cdr.detectChanges();
});
this.dir = this.directionality.value;
this.ngZone.runOutsideAngular(() => {
fromEvent(this.elementRef.nativeElement, "click", {
capture: true
}).pipe(takeUntil(this.destroy$)).subscribe((event) => {
if (this.disabled && event.target?.tagName === "A" || this.nzLoading) {
event.preventDefault();
event.stopImmediatePropagation();
}
});
});
}
ngOnChanges(changes) {
const {
nzLoading
} = changes;
if (nzLoading) {
this.loading$.next(this.nzLoading);
}
}
ngAfterViewInit() {
this.insertSpan(this.elementRef.nativeElement.childNodes, this.renderer);
}
ngAfterContentInit() {
this.loading$.pipe(startWith(this.nzLoading), filter(() => !!this.nzIconDirectiveElement), takeUntil(this.destroy$)).subscribe((loading) => {
const nativeElement = this.nzIconDirectiveElement.nativeElement;
if (loading) {
this.renderer.setStyle(nativeElement, "display", "none");
} else {
this.renderer.removeStyle(nativeElement, "display");
}
});
}
ngOnDestroy() {
this.destroy$.next();
this.destroy$.complete();
}
};
_NzButtonComponent.ɵfac = function NzButtonComponent_Factory(t) {
return new (t || _NzButtonComponent)(ɵɵdirectiveInject(NgZone), ɵɵdirectiveInject(ElementRef), ɵɵdirectiveInject(ChangeDetectorRef), ɵɵdirectiveInject(Renderer2), ɵɵdirectiveInject(NzConfigService), ɵɵdirectiveInject(Directionality, 8));
};
_NzButtonComponent.ɵcmp = ɵɵdefineComponent({
type: _NzButtonComponent,
selectors: [["button", "nz-button", ""], ["a", "nz-button", ""]],
contentQueries: function NzButtonComponent_ContentQueries(rf, ctx, dirIndex) {
if (rf & 1) {
ɵɵcontentQuery(dirIndex, NzIconDirective, 5, ElementRef);
}
if (rf & 2) {
let _t;
ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx.nzIconDirectiveElement = _t.first);
}
},
hostAttrs: [1, "ant-btn"],
hostVars: 32,
hostBindings: function NzButtonComponent_HostBindings(rf, ctx) {
if (rf & 2) {
ɵɵattribute("tabindex", ctx.disabled ? -1 : ctx.tabIndex === null ? null : ctx.tabIndex)("disabled", ctx.disabled || null);
ɵɵclassProp("ant-btn-primary", ctx.nzType === "primary")("ant-btn-dashed", ctx.nzType === "dashed")("ant-btn-link", ctx.nzType === "link")("ant-btn-text", ctx.nzType === "text")("ant-btn-circle", ctx.nzShape === "circle")("ant-btn-round", ctx.nzShape === "round")("ant-btn-lg", ctx.nzSize === "large")("ant-btn-sm", ctx.nzSize === "small")("ant-btn-dangerous", ctx.nzDanger)("ant-btn-loading", ctx.nzLoading)("ant-btn-background-ghost", ctx.nzGhost)("ant-btn-block", ctx.nzBlock)("ant-input-search-button", ctx.nzSearch)("ant-btn-rtl", ctx.dir === "rtl")("ant-btn-icon-only", ctx.iconOnly);
}
},
inputs: {
nzBlock: "nzBlock",
nzGhost: "nzGhost",
nzSearch: "nzSearch",
nzLoading: "nzLoading",
nzDanger: "nzDanger",
disabled: "disabled",
tabIndex: "tabIndex",
nzType: "nzType",
nzShape: "nzShape",
nzSize: "nzSize"
},
exportAs: ["nzButton"],
standalone: true,
features: [ɵɵNgOnChangesFeature, ɵɵStandaloneFeature],
attrs: _c0,
ngContentSelectors: _c1,
decls: 2,
vars: 1,
consts: [["nz-icon", "", "nzType", "loading", 4, "ngIf"], ["nz-icon", "", "nzType", "loading"]],
template: function NzButtonComponent_Template(rf, ctx) {
if (rf & 1) {
ɵɵprojectionDef();
ɵɵtemplate(0, NzButtonComponent_span_0_Template, 1, 0, "span", 0);
ɵɵprojection(1);
}
if (rf & 2) {
ɵɵproperty("ngIf", ctx.nzLoading);
}
},
dependencies: [NzIconModule, NzIconDirective, NgIf],
encapsulation: 2,
changeDetection: 0
});
var NzButtonComponent = _NzButtonComponent;
__decorate([InputBoolean()], NzButtonComponent.prototype, "nzBlock", void 0);
__decorate([InputBoolean()], NzButtonComponent.prototype, "nzGhost", void 0);
__decorate([InputBoolean()], NzButtonComponent.prototype, "nzSearch", void 0);
__decorate([InputBoolean()], NzButtonComponent.prototype, "nzLoading", void 0);
__decorate([InputBoolean()], NzButtonComponent.prototype, "nzDanger", void 0);
__decorate([InputBoolean()], NzButtonComponent.prototype, "disabled", void 0);
__decorate([WithConfig()], NzButtonComponent.prototype, "nzSize", void 0);
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NzButtonComponent, [{
type: Component,
args: [{
selector: "button[nz-button], a[nz-button]",
exportAs: "nzButton",
preserveWhitespaces: false,
changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation$1.None,
template: `
<span nz-icon nzType="loading" *ngIf="nzLoading"></span>
<ng-content></ng-content>
`,
host: {
class: "ant-btn",
"[class.ant-btn-primary]": `nzType === 'primary'`,
"[class.ant-btn-dashed]": `nzType === 'dashed'`,
"[class.ant-btn-link]": `nzType === 'link'`,
"[class.ant-btn-text]": `nzType === 'text'`,
"[class.ant-btn-circle]": `nzShape === 'circle'`,
"[class.ant-btn-round]": `nzShape === 'round'`,
"[class.ant-btn-lg]": `nzSize === 'large'`,
"[class.ant-btn-sm]": `nzSize === 'small'`,
"[class.ant-btn-dangerous]": `nzDanger`,
"[class.ant-btn-loading]": `nzLoading`,
"[class.ant-btn-background-ghost]": `nzGhost`,
"[class.ant-btn-block]": `nzBlock`,
"[class.ant-input-search-button]": `nzSearch`,
"[class.ant-btn-rtl]": `dir === 'rtl'`,
"[class.ant-btn-icon-only]": `iconOnly`,
"[attr.tabindex]": "disabled ? -1 : (tabIndex === null ? null : tabIndex)",
"[attr.disabled]": "disabled || null"
},
imports: [NzIconModule, NgIf],
standalone: true
}]
}], () => [{
type: NgZone
}, {
type: ElementRef
}, {
type: ChangeDetectorRef
}, {
type: Renderer2
}, {
type: NzConfigService
}, {
type: Directionality,
decorators: [{
type: Optional
}]
}], {
nzIconDirectiveElement: [{
type: ContentChild,
args: [NzIconDirective, {
read: ElementRef
}]
}],
nzBlock: [{
type: Input
}],
nzGhost: [{
type: Input
}],
nzSearch: [{
type: Input
}],
nzLoading: [{
type: Input
}],
nzDanger: [{
type: Input
}],
disabled: [{
type: Input
}],
tabIndex: [{
type: Input
}],
nzType: [{
type: Input
}],
nzShape: [{
type: Input
}],
nzSize: [{
type: Input
}]
});
})();
var _NzButtonGroupComponent = class _NzButtonGroupComponent {
constructor(directionality) {
this.directionality = directionality;
this.nzSize = "default";
this.dir = "ltr";
this.destroy$ = new Subject();
}
ngOnInit() {
this.dir = this.directionality.value;
this.directionality.change?.pipe(takeUntil(this.destroy$)).subscribe((direction) => {
this.dir = direction;
});
}
ngOnDestroy() {
this.destroy$.next();
this.destroy$.complete();
}
};
_NzButtonGroupComponent.ɵfac = function NzButtonGroupComponent_Factory(t) {
return new (t || _NzButtonGroupComponent)(ɵɵdirectiveInject(Directionality, 8));
};
_NzButtonGroupComponent.ɵcmp = ɵɵdefineComponent({
type: _NzButtonGroupComponent,
selectors: [["nz-button-group"]],
hostAttrs: [1, "ant-btn-group"],
hostVars: 6,
hostBindings: function NzButtonGroupComponent_HostBindings(rf, ctx) {
if (rf & 2) {
ɵɵclassProp("ant-btn-group-lg", ctx.nzSize === "large")("ant-btn-group-sm", ctx.nzSize === "small")("ant-btn-group-rtl", ctx.dir === "rtl");
}
},
inputs: {
nzSize: "nzSize"
},
exportAs: ["nzButtonGroup"],
standalone: true,
features: [ɵɵStandaloneFeature],
ngContentSelectors: _c1,
decls: 1,
vars: 0,
template: function NzButtonGroupComponent_Template(rf, ctx) {
if (rf & 1) {
ɵɵprojectionDef();
ɵɵprojection(0);
}
},
encapsulation: 2,
changeDetection: 0
});
var NzButtonGroupComponent = _NzButtonGroupComponent;
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NzButtonGroupComponent, [{
type: Component,
args: [{
selector: "nz-button-group",
exportAs: "nzButtonGroup",
changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation$1.None,
host: {
class: "ant-btn-group",
"[class.ant-btn-group-lg]": `nzSize === 'large'`,
"[class.ant-btn-group-sm]": `nzSize === 'small'`,
"[class.ant-btn-group-rtl]": `dir === 'rtl'`
},
preserveWhitespaces: false,
template: ` <ng-content></ng-content> `,
standalone: true
}]
}], () => [{
type: Directionality,
decorators: [{
type: Optional
}]
}], {
nzSize: [{
type: Input
}]
});
})();
var _NzButtonModule = class _NzButtonModule {
};
_NzButtonModule.ɵfac = function NzButtonModule_Factory(t) {
return new (t || _NzButtonModule)();
};
_NzButtonModule.ɵmod = ɵɵdefineNgModule({
type: _NzButtonModule,
imports: [NzButtonComponent, NzButtonGroupComponent],
exports: [NzButtonComponent, NzButtonGroupComponent, NzTransitionPatchModule, NzWaveModule]
});
_NzButtonModule.ɵinj = ɵɵdefineInjector({
imports: [NzButtonComponent, NzTransitionPatchModule, NzWaveModule]
});
var NzButtonModule = _NzButtonModule;
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NzButtonModule, [{
type: NgModule,
args: [{
imports: [NzButtonComponent, NzButtonGroupComponent],
exports: [NzButtonComponent, NzButtonGroupComponent, NzTransitionPatchModule, NzWaveModule]
}]
}], null, null);
})();
export {
NzButtonComponent,
NzButtonGroupComponent,
NzButtonModule
};
//# sourceMappingURL=chunk-KMGBCF4T.js.map

File diff suppressed because one or more lines are too long

@ -1,8 +1,36 @@
import {
ElementRef,
isDevMode
Subject,
from,
isDevMode,
isObservable,
of,
take
} from "./chunk-FGESKT7O.js";
// node_modules/@angular/cdk/fesm2022/coercion.mjs
function coerceBooleanProperty(value) {
return value != null && `${value}` !== "false";
}
function coerceNumberProperty(value, fallbackValue = 0) {
return _isNumberValue(value) ? Number(value) : fallbackValue;
}
function _isNumberValue(value) {
return !isNaN(parseFloat(value)) && !isNaN(Number(value));
}
function coerceArray(value) {
return Array.isArray(value) ? value : [value];
}
function coerceCssPixelValue(value) {
if (value == null) {
return "";
}
return typeof value === "string" ? value : `${value}px`;
}
function coerceElement(elementOrRef) {
return elementOrRef instanceof ElementRef ? elementOrRef.nativeElement : elementOrRef;
}
// node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-core-environments.mjs
var environment = {
isTestMode: false
@ -27,29 +55,6 @@ function consoleCommonBehavior(consoleFunc, ...args) {
}
var warn = (...args) => consoleCommonBehavior((...arg) => console.warn(PREFIX, ...arg), ...args);
// node_modules/@angular/cdk/fesm2022/coercion.mjs
function coerceBooleanProperty(value) {
return value != null && `${value}` !== "false";
}
function coerceNumberProperty(value, fallbackValue = 0) {
return _isNumberValue(value) ? Number(value) : fallbackValue;
}
function _isNumberValue(value) {
return !isNaN(parseFloat(value)) && !isNaN(Number(value));
}
function coerceArray(value) {
return Array.isArray(value) ? value : [value];
}
function coerceCssPixelValue(value) {
if (value == null) {
return "";
}
return typeof value === "string" ? value : `${value}px`;
}
function coerceElement(elementOrRef) {
return elementOrRef instanceof ElementRef ? elementOrRef.nativeElement : elementOrRef;
}
// node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-core-util.mjs
function arraysEqual(array1, array2) {
if (!array1 || !array2 || array1.length !== array2.length) {
@ -129,6 +134,9 @@ function isTouchEvent(event) {
function getEventPosition(event) {
return isTouchEvent(event) ? event.touches[0] || event.changedTouches[0] : event;
}
function isPromise(obj) {
return !!obj && typeof obj.then === "function" && typeof obj.catch === "function";
}
function getPercent(min, max, value) {
return (value - min) / (max - min) * 100;
}
@ -148,6 +156,20 @@ function ensureNumberInRange(num, min, max) {
}
var isBrowser = typeof window !== "undefined";
var isFirefox = isBrowser && window.mozInnerScreenX != null;
function inNextTick() {
const timer = new Subject();
Promise.resolve().then(() => timer.next());
return timer.pipe(take(1));
}
function wrapIntoObservable(value) {
if (isObservable(value)) {
return value;
}
if (isPromise(value)) {
return from(Promise.resolve(value));
}
return of(value);
}
function canUseDom() {
return !!(typeof window !== "undefined" && window.document && window.document.createElement);
}
@ -223,12 +245,13 @@ function getStatusClassNames(prefixCls, status, hasFeedback) {
}
export {
environment,
warn,
coerceNumberProperty,
coerceArray,
coerceCssPixelValue,
coerceElement,
environment,
PREFIX,
warn,
arraysEqual,
isNotNil,
isNil,
@ -243,8 +266,10 @@ export {
getPercent,
getPrecision,
ensureNumberInRange,
inNextTick,
wrapIntoObservable,
canUseDom,
updateCSS,
getStatusClassNames
};
//# sourceMappingURL=chunk-7XTJNSRU.js.map
//# sourceMappingURL=chunk-M5GY4FCO.js.map

File diff suppressed because one or more lines are too long

@ -1,17 +1,19 @@
import {
NzBreakpointService,
gridResponsiveMap
} from "./chunk-W3IYJMS2.js";
} from "./chunk-D5ODNR6D.js";
import {
MediaMatcher
} from "./chunk-5OJ3CSUZ.js";
} from "./chunk-WB57DPWD.js";
import {
Directionality
} from "./chunk-6NZ2BEBG.js";
import {
Directionality,
Platform
} from "./chunk-UPQZZZIG.js";
} from "./chunk-IAC53GOD.js";
import {
isNotNil
} from "./chunk-7XTJNSRU.js";
} from "./chunk-M5GY4FCO.js";
import {
Directive,
ElementRef,
@ -425,4 +427,4 @@ export {
NzColDirective,
NzGridModule
};
//# sourceMappingURL=chunk-YSQE3J2Q.js.map
//# sourceMappingURL=chunk-QP2OUFNR.js.map

@ -1,7 +1,7 @@
import {
isNotNil,
warn
} from "./chunk-7XTJNSRU.js";
} from "./chunk-M5GY4FCO.js";
import {
FormStyle,
TranslationWidth,
@ -14663,4 +14663,4 @@ export {
zh_HK,
zh_TW
};
//# sourceMappingURL=chunk-5W7CSQ4E.js.map
//# sourceMappingURL=chunk-T745QDCV.js.map

@ -3,14 +3,14 @@ import {
inputToRGB,
rgbToHex,
rgbToHsv
} from "./chunk-NOIPAY33.js";
} from "./chunk-ZHMJ6SNN.js";
import {
Platform
} from "./chunk-UPQZZZIG.js";
} from "./chunk-IAC53GOD.js";
import {
InputBoolean,
warn
} from "./chunk-7XTJNSRU.js";
} from "./chunk-M5GY4FCO.js";
import {
DomSanitizer
} from "./chunk-Y4CEYMY2.js";
@ -1363,7 +1363,14 @@ var NzIconModule = _NzIconModule;
})();
export {
NZ_ICONS_USED_BY_ZORRO,
NZ_ICONS,
NZ_ICON_DEFAULT_TWOTONE_COLOR,
DEFAULT_TWOTONE_COLOR,
NzIconService,
NZ_ICONS_PATCH,
NzIconPatchService,
NzIconDirective,
NzIconModule
};
//# sourceMappingURL=chunk-S7G3TSRW.js.map
//# sourceMappingURL=chunk-VWMHIMW7.js.map

@ -1,9 +1,9 @@
import {
Platform
} from "./chunk-UPQZZZIG.js";
} from "./chunk-IAC53GOD.js";
import {
coerceArray
} from "./chunk-7XTJNSRU.js";
} from "./chunk-M5GY4FCO.js";
import {
CSP_NONCE,
Inject,
@ -230,4 +230,4 @@ export {
MediaMatcher,
BreakpointObserver
};
//# sourceMappingURL=chunk-5OJ3CSUZ.js.map
//# sourceMappingURL=chunk-WB57DPWD.js.map

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

@ -0,0 +1,213 @@
import {
animate,
query,
stagger,
state,
style,
transition,
trigger
} from "./chunk-KI2JSLP6.js";
// node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-core-animation.mjs
var _AnimationDuration = class _AnimationDuration {
// Tooltip
};
_AnimationDuration.SLOW = "0.3s";
_AnimationDuration.BASE = "0.2s";
_AnimationDuration.FAST = "0.1s";
var AnimationDuration = _AnimationDuration;
var _AnimationCurves = class _AnimationCurves {
};
_AnimationCurves.EASE_BASE_OUT = "cubic-bezier(0.7, 0.3, 0.1, 1)";
_AnimationCurves.EASE_BASE_IN = "cubic-bezier(0.9, 0, 0.3, 0.7)";
_AnimationCurves.EASE_OUT = "cubic-bezier(0.215, 0.61, 0.355, 1)";
_AnimationCurves.EASE_IN = "cubic-bezier(0.55, 0.055, 0.675, 0.19)";
_AnimationCurves.EASE_IN_OUT = "cubic-bezier(0.645, 0.045, 0.355, 1)";
_AnimationCurves.EASE_OUT_BACK = "cubic-bezier(0.12, 0.4, 0.29, 1.46)";
_AnimationCurves.EASE_IN_BACK = "cubic-bezier(0.71, -0.46, 0.88, 0.6)";
_AnimationCurves.EASE_IN_OUT_BACK = "cubic-bezier(0.71, -0.46, 0.29, 1.46)";
_AnimationCurves.EASE_OUT_CIRC = "cubic-bezier(0.08, 0.82, 0.17, 1)";
_AnimationCurves.EASE_IN_CIRC = "cubic-bezier(0.6, 0.04, 0.98, 0.34)";
_AnimationCurves.EASE_IN_OUT_CIRC = "cubic-bezier(0.78, 0.14, 0.15, 0.86)";
_AnimationCurves.EASE_OUT_QUINT = "cubic-bezier(0.23, 1, 0.32, 1)";
_AnimationCurves.EASE_IN_QUINT = "cubic-bezier(0.755, 0.05, 0.855, 0.06)";
_AnimationCurves.EASE_IN_OUT_QUINT = "cubic-bezier(0.86, 0, 0.07, 1)";
var AnimationCurves = _AnimationCurves;
var collapseMotion = trigger("collapseMotion", [
state("expanded", style({ height: "*" })),
state("collapsed", style({ height: 0, overflow: "hidden" })),
state("hidden", style({ height: 0, overflow: "hidden", borderTopWidth: "0" })),
transition("expanded => collapsed", animate(`150ms ${AnimationCurves.EASE_IN_OUT}`)),
transition("expanded => hidden", animate(`150ms ${AnimationCurves.EASE_IN_OUT}`)),
transition("collapsed => expanded", animate(`150ms ${AnimationCurves.EASE_IN_OUT}`)),
transition("hidden => expanded", animate(`150ms ${AnimationCurves.EASE_IN_OUT}`))
]);
var treeCollapseMotion = trigger("treeCollapseMotion", [
transition("* => *", [
query("nz-tree-node:leave,nz-tree-builtin-node:leave", [
style({ overflow: "hidden" }),
stagger(0, [
animate(`150ms ${AnimationCurves.EASE_IN_OUT}`, style({ height: 0, opacity: 0, "padding-bottom": 0 }))
])
], {
optional: true
}),
query("nz-tree-node:enter,nz-tree-builtin-node:enter", [
style({ overflow: "hidden", height: 0, opacity: 0, "padding-bottom": 0 }),
stagger(0, [
animate(`150ms ${AnimationCurves.EASE_IN_OUT}`, style({ overflow: "hidden", height: "*", opacity: "*", "padding-bottom": "*" }))
])
], {
optional: true
})
])
]);
var fadeMotion = trigger("fadeMotion", [
transition(":enter", [style({ opacity: 0 }), animate(`${AnimationDuration.BASE}`, style({ opacity: 1 }))]),
transition(":leave", [style({ opacity: 1 }), animate(`${AnimationDuration.BASE}`, style({ opacity: 0 }))])
]);
var helpMotion = trigger("helpMotion", [
transition(":enter", [
style({
opacity: 0,
transform: "translateY(-5px)"
}),
animate(`${AnimationDuration.SLOW} ${AnimationCurves.EASE_IN_OUT}`, style({
opacity: 1,
transform: "translateY(0)"
}))
]),
transition(":leave", [
style({
opacity: 1,
transform: "translateY(0)"
}),
animate(`${AnimationDuration.SLOW} ${AnimationCurves.EASE_IN_OUT}`, style({
opacity: 0,
transform: "translateY(-5px)"
}))
])
]);
var moveUpMotion = trigger("moveUpMotion", [
transition("* => enter", [
style({
transformOrigin: "0 0",
transform: "translateY(-100%)",
opacity: 0
}),
animate(`${AnimationDuration.BASE}`, style({
transformOrigin: "0 0",
transform: "translateY(0%)",
opacity: 1
}))
]),
transition("* => leave", [
style({
transformOrigin: "0 0",
transform: "translateY(0%)",
opacity: 1
}),
animate(`${AnimationDuration.BASE}`, style({
transformOrigin: "0 0",
transform: "translateY(-100%)",
opacity: 0
}))
])
]);
var notificationMotion = trigger("notificationMotion", [
state("enterRight", style({ opacity: 1, transform: "translateX(0)" })),
transition("* => enterRight", [style({ opacity: 0, transform: "translateX(5%)" }), animate("100ms linear")]),
state("enterLeft", style({ opacity: 1, transform: "translateX(0)" })),
transition("* => enterLeft", [style({ opacity: 0, transform: "translateX(-5%)" }), animate("100ms linear")]),
state("enterTop", style({ opacity: 1, transform: "translateY(0)" })),
transition("* => enterTop", [style({ opacity: 0, transform: "translateY(-5%)" }), animate("100ms linear")]),
state("enterBottom", style({ opacity: 1, transform: "translateY(0)" })),
transition("* => enterBottom", [style({ opacity: 0, transform: "translateY(5%)" }), animate("100ms linear")]),
state("leave", style({
opacity: 0,
transform: "scaleY(0.8)",
transformOrigin: "0% 0%"
})),
transition("* => leave", [
style({
opacity: 1,
transform: "scaleY(1)",
transformOrigin: "0% 0%"
}),
animate("100ms linear")
])
]);
var ANIMATION_TRANSITION_IN = `${AnimationDuration.BASE} ${AnimationCurves.EASE_OUT_QUINT}`;
var ANIMATION_TRANSITION_OUT = `${AnimationDuration.BASE} ${AnimationCurves.EASE_IN_QUINT}`;
var slideMotion = trigger("slideMotion", [
state("void", style({
opacity: 0,
transform: "scaleY(0.8)"
})),
state("enter", style({
opacity: 1,
transform: "scaleY(1)"
})),
transition("void => *", [animate(ANIMATION_TRANSITION_IN)]),
transition("* => void", [animate(ANIMATION_TRANSITION_OUT)])
]);
var slideAlertMotion = trigger("slideAlertMotion", [
transition(":leave", [
style({ opacity: 1, transform: "scaleY(1)", transformOrigin: "0% 0%" }),
animate(`${AnimationDuration.SLOW} ${AnimationCurves.EASE_IN_OUT_CIRC}`, style({
opacity: 0,
transform: "scaleY(0)",
transformOrigin: "0% 0%"
}))
])
]);
var zoomBigMotion = trigger("zoomBigMotion", [
transition("void => active", [
style({ opacity: 0, transform: "scale(0.8)" }),
animate(`${AnimationDuration.BASE} ${AnimationCurves.EASE_OUT_CIRC}`, style({
opacity: 1,
transform: "scale(1)"
}))
]),
transition("active => void", [
style({ opacity: 1, transform: "scale(1)" }),
animate(`${AnimationDuration.BASE} ${AnimationCurves.EASE_IN_OUT_CIRC}`, style({
opacity: 0,
transform: "scale(0.8)"
}))
])
]);
var zoomBadgeMotion = trigger("zoomBadgeMotion", [
transition(":enter", [
style({ opacity: 0, transform: "scale(0) translate(50%, -50%)" }),
animate(`${AnimationDuration.SLOW} ${AnimationCurves.EASE_OUT_BACK}`, style({
opacity: 1,
transform: "scale(1) translate(50%, -50%)"
}))
]),
transition(":leave", [
style({ opacity: 1, transform: "scale(1) translate(50%, -50%)" }),
animate(`${AnimationDuration.SLOW} ${AnimationCurves.EASE_IN_BACK}`, style({
opacity: 0,
transform: "scale(0) translate(50%, -50%)"
}))
])
]);
var thumbMotion = trigger("thumbMotion", [
state("from", style({ transform: "translateX({{ transform }}px)", width: "{{ width }}px" }), {
params: { transform: 0, width: 0 }
}),
state("to", style({ transform: "translateX({{ transform }}px)", width: "{{ width }}px" }), {
params: { transform: 100, width: 0 }
}),
transition("from => to", animate(`300ms ${AnimationCurves.EASE_IN_OUT}`))
]);
export {
collapseMotion,
helpMotion,
moveUpMotion,
slideMotion,
zoomBigMotion
};
//# sourceMappingURL=chunk-XAGDQPFO.js.map

File diff suppressed because one or more lines are too long

@ -2,7 +2,7 @@ import {
canUseDom,
updateCSS,
warn
} from "./chunk-7XTJNSRU.js";
} from "./chunk-M5GY4FCO.js";
import {
CSP_NONCE,
Inject,
@ -1222,4 +1222,4 @@ export {
NzConfigService,
WithConfig
};
//# sourceMappingURL=chunk-NOIPAY33.js.map
//# sourceMappingURL=chunk-ZHMJ6SNN.js.map

@ -0,0 +1,505 @@
import {
NzDropDownDirective,
NzDropDownModule
} from "./chunk-2CQTWQUI.js";
import "./chunk-WKTPWT5U.js";
import {
ActivatedRoute,
NavigationEnd,
PRIMARY_OUTLET,
Router
} from "./chunk-CZEXXPIB.js";
import "./chunk-6RXUTAFR.js";
import "./chunk-XAGDQPFO.js";
import "./chunk-D5ODNR6D.js";
import "./chunk-55A2ZGND.js";
import "./chunk-6U656R5M.js";
import {
NzOutletModule,
NzStringTemplateOutletDirective
} from "./chunk-VOD2PKZN.js";
import "./chunk-JGP5BR6B.js";
import "./chunk-WB57DPWD.js";
import "./chunk-KMGBCF4T.js";
import {
NzIconDirective,
NzIconModule
} from "./chunk-VWMHIMW7.js";
import "./chunk-ZHMJ6SNN.js";
import {
Directionality
} from "./chunk-6NZ2BEBG.js";
import "./chunk-IAC53GOD.js";
import {
InputBoolean,
PREFIX
} from "./chunk-M5GY4FCO.js";
import "./chunk-ECVKT3ZH.js";
import "./chunk-KI2JSLP6.js";
import "./chunk-Y4CEYMY2.js";
import "./chunk-X7WBA24Z.js";
import {
NgForOf,
NgIf,
NgTemplateOutlet
} from "./chunk-OSQBUYO6.js";
import {
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
ElementRef,
Injector,
Input,
NgModule,
Optional,
Renderer2,
Subject,
ViewEncapsulation$1,
__decorate,
filter,
setClassMetadata,
startWith,
takeUntil,
ɵɵProvidersFeature,
ɵɵStandaloneFeature,
ɵɵadvance,
ɵɵattribute,
ɵɵdefineComponent,
ɵɵdefineInjector,
ɵɵdefineNgModule,
ɵɵdirectiveInject,
ɵɵelement,
ɵɵelementContainerEnd,
ɵɵelementContainerStart,
ɵɵelementEnd,
ɵɵelementStart,
ɵɵgetCurrentView,
ɵɵlistener,
ɵɵnextContext,
ɵɵprojection,
ɵɵprojectionDef,
ɵɵproperty,
ɵɵreference,
ɵɵresetView,
ɵɵrestoreView,
ɵɵsanitizeUrl,
ɵɵtemplate,
ɵɵtemplateRefExtractor,
ɵɵtext,
ɵɵtextInterpolate,
ɵɵtextInterpolate1
} from "./chunk-FGESKT7O.js";
import "./chunk-HSNDBVJ3.js";
// node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-breadcrumb.mjs
var _c0 = ["*"];
function NzBreadCrumbItemComponent_ng_container_0_ng_template_2_Template(rf, ctx) {
}
function NzBreadCrumbItemComponent_ng_container_0_Template(rf, ctx) {
if (rf & 1) {
ɵɵelementContainerStart(0);
ɵɵelementStart(1, "span", 3);
ɵɵtemplate(2, NzBreadCrumbItemComponent_ng_container_0_ng_template_2_Template, 0, 0, "ng-template", 4);
ɵɵelement(3, "span", 5);
ɵɵelementEnd();
ɵɵelementContainerEnd();
}
if (rf & 2) {
const ctx_r0 = ɵɵnextContext();
const _r2 = ɵɵreference(2);
ɵɵadvance(1);
ɵɵproperty("nzDropdownMenu", ctx_r0.nzOverlay);
ɵɵadvance(1);
ɵɵproperty("ngTemplateOutlet", _r2);
}
}
function NzBreadCrumbItemComponent_ng_template_1_Template(rf, ctx) {
if (rf & 1) {
ɵɵelementStart(0, "span", 6);
ɵɵprojection(1);
ɵɵelementEnd();
}
}
function NzBreadCrumbItemComponent_nz_breadcrumb_separator_3_ng_container_1_Template(rf, ctx) {
if (rf & 1) {
ɵɵelementContainerStart(0);
ɵɵtext(1);
ɵɵelementContainerEnd();
}
if (rf & 2) {
const ctx_r5 = ɵɵnextContext(2);
ɵɵadvance(1);
ɵɵtextInterpolate1(" ", ctx_r5.nzBreadCrumbComponent.nzSeparator, " ");
}
}
function NzBreadCrumbItemComponent_nz_breadcrumb_separator_3_Template(rf, ctx) {
if (rf & 1) {
ɵɵelementStart(0, "nz-breadcrumb-separator");
ɵɵtemplate(1, NzBreadCrumbItemComponent_nz_breadcrumb_separator_3_ng_container_1_Template, 2, 1, "ng-container", 7);
ɵɵelementEnd();
}
if (rf & 2) {
const ctx_r3 = ɵɵnextContext();
ɵɵadvance(1);
ɵɵproperty("nzStringTemplateOutlet", ctx_r3.nzBreadCrumbComponent.nzSeparator);
}
}
function NzBreadCrumbComponent_ng_container_1_nz_breadcrumb_item_1_Template(rf, ctx) {
if (rf & 1) {
const _r4 = ɵɵgetCurrentView();
ɵɵelementStart(0, "nz-breadcrumb-item")(1, "a", 2);
ɵɵlistener("click", function NzBreadCrumbComponent_ng_container_1_nz_breadcrumb_item_1_Template_a_click_1_listener($event) {
const restoredCtx = ɵɵrestoreView(_r4);
const breadcrumb_r2 = restoredCtx.$implicit;
const ctx_r3 = ɵɵnextContext(2);
return ɵɵresetView(ctx_r3.navigate(breadcrumb_r2.url, $event));
});
ɵɵtext(2);
ɵɵelementEnd()();
}
if (rf & 2) {
const breadcrumb_r2 = ctx.$implicit;
ɵɵadvance(1);
ɵɵattribute("href", breadcrumb_r2.url, ɵɵsanitizeUrl);
ɵɵadvance(1);
ɵɵtextInterpolate(breadcrumb_r2.label);
}
}
function NzBreadCrumbComponent_ng_container_1_Template(rf, ctx) {
if (rf & 1) {
ɵɵelementContainerStart(0);
ɵɵtemplate(1, NzBreadCrumbComponent_ng_container_1_nz_breadcrumb_item_1_Template, 3, 2, "nz-breadcrumb-item", 1);
ɵɵelementContainerEnd();
}
if (rf & 2) {
const ctx_r0 = ɵɵnextContext();
ɵɵadvance(1);
ɵɵproperty("ngForOf", ctx_r0.breadcrumbs);
}
}
var _NzBreadCrumbSeparatorComponent = class _NzBreadCrumbSeparatorComponent {
};
_NzBreadCrumbSeparatorComponent.ɵfac = function NzBreadCrumbSeparatorComponent_Factory(t) {
return new (t || _NzBreadCrumbSeparatorComponent)();
};
_NzBreadCrumbSeparatorComponent.ɵcmp = ɵɵdefineComponent({
type: _NzBreadCrumbSeparatorComponent,
selectors: [["nz-breadcrumb-separator"]],
hostAttrs: [1, "ant-breadcrumb-separator"],
exportAs: ["nzBreadcrumbSeparator"],
standalone: true,
features: [ɵɵStandaloneFeature],
ngContentSelectors: _c0,
decls: 1,
vars: 0,
template: function NzBreadCrumbSeparatorComponent_Template(rf, ctx) {
if (rf & 1) {
ɵɵprojectionDef();
ɵɵprojection(0);
}
},
encapsulation: 2
});
var NzBreadCrumbSeparatorComponent = _NzBreadCrumbSeparatorComponent;
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NzBreadCrumbSeparatorComponent, [{
type: Component,
args: [{
selector: "nz-breadcrumb-separator",
exportAs: "nzBreadcrumbSeparator",
standalone: true,
template: `<ng-content></ng-content>`,
host: {
class: "ant-breadcrumb-separator"
}
}]
}], null, null);
})();
var NzBreadcrumb = class {
};
var _NzBreadCrumbItemComponent = class _NzBreadCrumbItemComponent {
constructor(nzBreadCrumbComponent) {
this.nzBreadCrumbComponent = nzBreadCrumbComponent;
}
};
_NzBreadCrumbItemComponent.ɵfac = function NzBreadCrumbItemComponent_Factory(t) {
return new (t || _NzBreadCrumbItemComponent)(ɵɵdirectiveInject(NzBreadcrumb));
};
_NzBreadCrumbItemComponent.ɵcmp = ɵɵdefineComponent({
type: _NzBreadCrumbItemComponent,
selectors: [["nz-breadcrumb-item"]],
inputs: {
nzOverlay: "nzOverlay"
},
exportAs: ["nzBreadcrumbItem"],
standalone: true,
features: [ɵɵStandaloneFeature],
ngContentSelectors: _c0,
decls: 4,
vars: 3,
consts: [[4, "ngIf", "ngIfElse"], ["noMenuTpl", ""], [4, "ngIf"], ["nz-dropdown", "", 1, "ant-breadcrumb-overlay-link", 3, "nzDropdownMenu"], [3, "ngTemplateOutlet"], ["nz-icon", "", "nzType", "down"], [1, "ant-breadcrumb-link"], [4, "nzStringTemplateOutlet"]],
template: function NzBreadCrumbItemComponent_Template(rf, ctx) {
if (rf & 1) {
ɵɵprojectionDef();
ɵɵtemplate(0, NzBreadCrumbItemComponent_ng_container_0_Template, 4, 2, "ng-container", 0)(1, NzBreadCrumbItemComponent_ng_template_1_Template, 2, 0, "ng-template", null, 1, ɵɵtemplateRefExtractor)(3, NzBreadCrumbItemComponent_nz_breadcrumb_separator_3_Template, 2, 1, "nz-breadcrumb-separator", 2);
}
if (rf & 2) {
const _r2 = ɵɵreference(2);
ɵɵproperty("ngIf", !!ctx.nzOverlay)("ngIfElse", _r2);
ɵɵadvance(3);
ɵɵproperty("ngIf", ctx.nzBreadCrumbComponent.nzSeparator);
}
},
dependencies: [NgIf, NgTemplateOutlet, NzBreadCrumbSeparatorComponent, NzDropDownModule, NzDropDownDirective, NzIconModule, NzIconDirective, NzOutletModule, NzStringTemplateOutletDirective],
encapsulation: 2,
changeDetection: 0
});
var NzBreadCrumbItemComponent = _NzBreadCrumbItemComponent;
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NzBreadCrumbItemComponent, [{
type: Component,
args: [{
changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation$1.None,
selector: "nz-breadcrumb-item",
exportAs: "nzBreadcrumbItem",
preserveWhitespaces: false,
standalone: true,
imports: [NgIf, NgTemplateOutlet, NzBreadCrumbSeparatorComponent, NzDropDownModule, NzIconModule, NzOutletModule],
template: `
<ng-container *ngIf="!!nzOverlay; else noMenuTpl">
<span class="ant-breadcrumb-overlay-link" nz-dropdown [nzDropdownMenu]="nzOverlay">
<ng-template [ngTemplateOutlet]="noMenuTpl"></ng-template>
<span nz-icon nzType="down"></span>
</span>
</ng-container>
<ng-template #noMenuTpl>
<span class="ant-breadcrumb-link">
<ng-content></ng-content>
</span>
</ng-template>
<nz-breadcrumb-separator *ngIf="nzBreadCrumbComponent.nzSeparator">
<ng-container *nzStringTemplateOutlet="nzBreadCrumbComponent.nzSeparator">
{{ nzBreadCrumbComponent.nzSeparator }}
</ng-container>
</nz-breadcrumb-separator>
`
}]
}], () => [{
type: NzBreadcrumb
}], {
nzOverlay: [{
type: Input
}]
});
})();
var _NzBreadCrumbComponent = class _NzBreadCrumbComponent {
constructor(injector, cdr, elementRef, renderer, directionality) {
this.injector = injector;
this.cdr = cdr;
this.elementRef = elementRef;
this.renderer = renderer;
this.directionality = directionality;
this.nzAutoGenerate = false;
this.nzSeparator = "/";
this.nzRouteLabel = "breadcrumb";
this.nzRouteLabelFn = (label) => label;
this.breadcrumbs = [];
this.dir = "ltr";
this.destroy$ = new Subject();
}
ngOnInit() {
if (this.nzAutoGenerate) {
this.registerRouterChange();
}
this.directionality.change?.pipe(takeUntil(this.destroy$)).subscribe((direction) => {
this.dir = direction;
this.prepareComponentForRtl();
this.cdr.detectChanges();
});
this.dir = this.directionality.value;
this.prepareComponentForRtl();
}
ngOnDestroy() {
this.destroy$.next();
this.destroy$.complete();
}
navigate(url, e) {
e.preventDefault();
this.injector.get(Router).navigateByUrl(url);
}
registerRouterChange() {
try {
const router = this.injector.get(Router);
const activatedRoute = this.injector.get(ActivatedRoute);
router.events.pipe(
filter((e) => e instanceof NavigationEnd),
takeUntil(this.destroy$),
startWith(true)
// trigger initial render
).subscribe(() => {
this.breadcrumbs = this.getBreadcrumbs(activatedRoute.root);
this.cdr.markForCheck();
});
} catch (e) {
throw new Error(`${PREFIX} You should import RouterModule if you want to use 'NzAutoGenerate'.`);
}
}
getBreadcrumbs(route, url = "", breadcrumbs = []) {
const children = route.children;
if (children.length === 0) {
return breadcrumbs;
}
for (const child of children) {
if (child.outlet === PRIMARY_OUTLET) {
const routeUrl = child.snapshot.url.map((segment) => segment.path).filter((path) => path).join("/");
const nextUrl = routeUrl ? `${url}/${routeUrl}` : url;
const breadcrumbLabel = this.nzRouteLabelFn(child.snapshot.data[this.nzRouteLabel]);
if (routeUrl && breadcrumbLabel) {
const breadcrumb = {
label: breadcrumbLabel,
params: child.snapshot.params,
url: nextUrl
};
breadcrumbs.push(breadcrumb);
}
return this.getBreadcrumbs(child, nextUrl, breadcrumbs);
}
}
return breadcrumbs;
}
prepareComponentForRtl() {
if (this.dir === "rtl") {
this.renderer.addClass(this.elementRef.nativeElement, "ant-breadcrumb-rtl");
} else {
this.renderer.removeClass(this.elementRef.nativeElement, "ant-breadcrumb-rtl");
}
}
};
_NzBreadCrumbComponent.ɵfac = function NzBreadCrumbComponent_Factory(t) {
return new (t || _NzBreadCrumbComponent)(ɵɵdirectiveInject(Injector), ɵɵdirectiveInject(ChangeDetectorRef), ɵɵdirectiveInject(ElementRef), ɵɵdirectiveInject(Renderer2), ɵɵdirectiveInject(Directionality, 8));
};
_NzBreadCrumbComponent.ɵcmp = ɵɵdefineComponent({
type: _NzBreadCrumbComponent,
selectors: [["nz-breadcrumb"]],
hostAttrs: [1, "ant-breadcrumb"],
inputs: {
nzAutoGenerate: "nzAutoGenerate",
nzSeparator: "nzSeparator",
nzRouteLabel: "nzRouteLabel",
nzRouteLabelFn: "nzRouteLabelFn"
},
exportAs: ["nzBreadcrumb"],
standalone: true,
features: [ɵɵProvidersFeature([{
provide: NzBreadcrumb,
useExisting: _NzBreadCrumbComponent
}]), ɵɵStandaloneFeature],
ngContentSelectors: _c0,
decls: 2,
vars: 1,
consts: [[4, "ngIf"], [4, "ngFor", "ngForOf"], [3, "click"]],
template: function NzBreadCrumbComponent_Template(rf, ctx) {
if (rf & 1) {
ɵɵprojectionDef();
ɵɵprojection(0);
ɵɵtemplate(1, NzBreadCrumbComponent_ng_container_1_Template, 2, 1, "ng-container", 0);
}
if (rf & 2) {
ɵɵadvance(1);
ɵɵproperty("ngIf", ctx.nzAutoGenerate && ctx.breadcrumbs.length);
}
},
dependencies: [NgForOf, NgIf, NzBreadCrumbItemComponent],
encapsulation: 2,
changeDetection: 0
});
var NzBreadCrumbComponent = _NzBreadCrumbComponent;
__decorate([InputBoolean()], NzBreadCrumbComponent.prototype, "nzAutoGenerate", void 0);
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NzBreadCrumbComponent, [{
type: Component,
args: [{
changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation$1.None,
selector: "nz-breadcrumb",
exportAs: "nzBreadcrumb",
preserveWhitespaces: false,
providers: [{
provide: NzBreadcrumb,
useExisting: NzBreadCrumbComponent
}],
standalone: true,
imports: [NgForOf, NgIf, NzBreadCrumbItemComponent],
template: `
<ng-content></ng-content>
<ng-container *ngIf="nzAutoGenerate && breadcrumbs.length">
<nz-breadcrumb-item *ngFor="let breadcrumb of breadcrumbs">
<a [attr.href]="breadcrumb.url" (click)="navigate(breadcrumb.url, $event)">{{ breadcrumb.label }}</a>
</nz-breadcrumb-item>
</ng-container>
`,
host: {
class: "ant-breadcrumb"
}
}]
}], () => [{
type: Injector
}, {
type: ChangeDetectorRef
}, {
type: ElementRef
}, {
type: Renderer2
}, {
type: Directionality,
decorators: [{
type: Optional
}]
}], {
nzAutoGenerate: [{
type: Input
}],
nzSeparator: [{
type: Input
}],
nzRouteLabel: [{
type: Input
}],
nzRouteLabelFn: [{
type: Input
}]
});
})();
var _NzBreadCrumbModule = class _NzBreadCrumbModule {
};
_NzBreadCrumbModule.ɵfac = function NzBreadCrumbModule_Factory(t) {
return new (t || _NzBreadCrumbModule)();
};
_NzBreadCrumbModule.ɵmod = ɵɵdefineNgModule({
type: _NzBreadCrumbModule,
imports: [NzBreadCrumbComponent, NzBreadCrumbItemComponent, NzBreadCrumbSeparatorComponent],
exports: [NzBreadCrumbComponent, NzBreadCrumbItemComponent, NzBreadCrumbSeparatorComponent]
});
_NzBreadCrumbModule.ɵinj = ɵɵdefineInjector({
imports: [NzBreadCrumbComponent, NzBreadCrumbItemComponent]
});
var NzBreadCrumbModule = _NzBreadCrumbModule;
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NzBreadCrumbModule, [{
type: NgModule,
args: [{
imports: [NzBreadCrumbComponent, NzBreadCrumbItemComponent, NzBreadCrumbSeparatorComponent],
exports: [NzBreadCrumbComponent, NzBreadCrumbItemComponent, NzBreadCrumbSeparatorComponent]
}]
}], null, null);
})();
export {
NzBreadCrumbComponent,
NzBreadCrumbItemComponent,
NzBreadCrumbModule,
NzBreadCrumbSeparatorComponent
};
//# sourceMappingURL=ng-zorro-antd_breadcrumb.js.map

File diff suppressed because one or more lines are too long

@ -1,759 +1,20 @@
import {
NzIconDirective,
NzIconModule
} from "./chunk-S7G3TSRW.js";
import {
NzConfigService,
WithConfig
} from "./chunk-NOIPAY33.js";
import {
Directionality,
Platform
} from "./chunk-UPQZZZIG.js";
import {
InputBoolean
} from "./chunk-7XTJNSRU.js";
import "./chunk-FILHFU6K.js";
import "./chunk-BNCUYWOH.js";
NzButtonComponent,
NzButtonGroupComponent,
NzButtonModule
} from "./chunk-KMGBCF4T.js";
import "./chunk-VWMHIMW7.js";
import "./chunk-ZHMJ6SNN.js";
import "./chunk-6NZ2BEBG.js";
import "./chunk-IAC53GOD.js";
import "./chunk-M5GY4FCO.js";
import "./chunk-ECVKT3ZH.js";
import "./chunk-KI2JSLP6.js";
import "./chunk-Y4CEYMY2.js";
import "./chunk-X7WBA24Z.js";
import {
NgIf
} from "./chunk-OSQBUYO6.js";
import {
ANIMATION_MODULE_TYPE,
CSP_NONCE,
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
ContentChild,
Directive,
ElementRef,
Inject,
InjectionToken,
Input,
NgModule,
NgZone,
Optional,
PLATFORM_ID,
Renderer2,
Subject,
ViewEncapsulation$1,
__decorate,
filter,
fromEvent,
makeEnvironmentProviders,
setClassMetadata,
startWith,
takeUntil,
ɵɵNgOnChangesFeature,
ɵɵStandaloneFeature,
ɵɵattribute,
ɵɵclassProp,
ɵɵcontentQuery,
ɵɵdefineComponent,
ɵɵdefineDirective,
ɵɵdefineInjector,
ɵɵdefineNgModule,
ɵɵdirectiveInject,
ɵɵelement,
ɵɵloadQuery,
ɵɵprojection,
ɵɵprojectionDef,
ɵɵproperty,
ɵɵqueryRefresh,
ɵɵtemplate
} from "./chunk-FGESKT7O.js";
import "./chunk-OSQBUYO6.js";
import "./chunk-FGESKT7O.js";
import "./chunk-HSNDBVJ3.js";
// node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-core-transition-patch.mjs
var _NzTransitionPatchDirective = class _NzTransitionPatchDirective {
setHiddenAttribute() {
if (this.hidden) {
if (typeof this.hidden === "string") {
this.renderer.setAttribute(this.elementRef.nativeElement, "hidden", this.hidden);
} else {
this.renderer.setAttribute(this.elementRef.nativeElement, "hidden", "");
}
} else {
this.renderer.removeAttribute(this.elementRef.nativeElement, "hidden");
}
}
constructor(elementRef, renderer) {
this.elementRef = elementRef;
this.renderer = renderer;
this.hidden = null;
this.renderer.setAttribute(this.elementRef.nativeElement, "hidden", "");
}
ngOnChanges() {
this.setHiddenAttribute();
}
ngAfterViewInit() {
this.setHiddenAttribute();
}
};
_NzTransitionPatchDirective.ɵfac = function NzTransitionPatchDirective_Factory(t) {
return new (t || _NzTransitionPatchDirective)(ɵɵdirectiveInject(ElementRef), ɵɵdirectiveInject(Renderer2));
};
_NzTransitionPatchDirective.ɵdir = ɵɵdefineDirective({
type: _NzTransitionPatchDirective,
selectors: [["", "nz-button", ""], ["nz-button-group"], ["", "nz-icon", ""], ["", "nz-menu-item", ""], ["", "nz-submenu", ""], ["nz-select-top-control"], ["nz-select-placeholder"], ["nz-input-group"]],
inputs: {
hidden: "hidden"
},
standalone: true,
features: [ɵɵNgOnChangesFeature]
});
var NzTransitionPatchDirective = _NzTransitionPatchDirective;
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NzTransitionPatchDirective, [{
type: Directive,
args: [{
selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group",
standalone: true
}]
}], () => [{
type: ElementRef
}, {
type: Renderer2
}], {
hidden: [{
type: Input
}]
});
})();
var _NzTransitionPatchModule = class _NzTransitionPatchModule {
};
_NzTransitionPatchModule.ɵfac = function NzTransitionPatchModule_Factory(t) {
return new (t || _NzTransitionPatchModule)();
};
_NzTransitionPatchModule.ɵmod = ɵɵdefineNgModule({
type: _NzTransitionPatchModule,
imports: [NzTransitionPatchDirective],
exports: [NzTransitionPatchDirective]
});
_NzTransitionPatchModule.ɵinj = ɵɵdefineInjector({});
var NzTransitionPatchModule = _NzTransitionPatchModule;
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NzTransitionPatchModule, [{
type: NgModule,
args: [{
imports: [NzTransitionPatchDirective],
exports: [NzTransitionPatchDirective]
}]
}], null, null);
})();
// node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-core-wave.mjs
var NzWaveRenderer = class {
get waveAttributeName() {
return this.insertExtraNode ? "ant-click-animating" : "ant-click-animating-without-extra-node";
}
constructor(triggerElement, ngZone, insertExtraNode, platformId, cspNonce) {
this.triggerElement = triggerElement;
this.ngZone = ngZone;
this.insertExtraNode = insertExtraNode;
this.platformId = platformId;
this.cspNonce = cspNonce;
this.waveTransitionDuration = 400;
this.styleForPseudo = null;
this.extraNode = null;
this.lastTime = 0;
this.onClick = (event) => {
if (!this.triggerElement || !this.triggerElement.getAttribute || this.triggerElement.getAttribute("disabled") || event.target.tagName === "INPUT" || this.triggerElement.className.indexOf("disabled") >= 0) {
return;
}
this.fadeOutWave();
};
this.platform = new Platform(this.platformId);
this.clickHandler = this.onClick.bind(this);
this.bindTriggerEvent();
}
bindTriggerEvent() {
if (this.platform.isBrowser) {
this.ngZone.runOutsideAngular(() => {
this.removeTriggerEvent();
if (this.triggerElement) {
this.triggerElement.addEventListener("click", this.clickHandler, true);
}
});
}
}
removeTriggerEvent() {
if (this.triggerElement) {
this.triggerElement.removeEventListener("click", this.clickHandler, true);
}
}
removeStyleAndExtraNode() {
if (this.styleForPseudo && document.body.contains(this.styleForPseudo)) {
document.body.removeChild(this.styleForPseudo);
this.styleForPseudo = null;
}
if (this.insertExtraNode && this.triggerElement.contains(this.extraNode)) {
this.triggerElement.removeChild(this.extraNode);
}
}
destroy() {
this.removeTriggerEvent();
this.removeStyleAndExtraNode();
}
fadeOutWave() {
const node = this.triggerElement;
const waveColor = this.getWaveColor(node);
node.setAttribute(this.waveAttributeName, "true");
if (Date.now() < this.lastTime + this.waveTransitionDuration) {
return;
}
if (this.isValidColor(waveColor)) {
if (!this.styleForPseudo) {
this.styleForPseudo = document.createElement("style");
if (this.cspNonce) {
this.styleForPseudo.nonce = this.cspNonce;
}
}
this.styleForPseudo.innerHTML = `
[ant-click-animating-without-extra-node='true']::after, .ant-click-animating-node {
--antd-wave-shadow-color: ${waveColor};
}`;
document.body.appendChild(this.styleForPseudo);
}
if (this.insertExtraNode) {
if (!this.extraNode) {
this.extraNode = document.createElement("div");
}
this.extraNode.className = "ant-click-animating-node";
node.appendChild(this.extraNode);
}
this.lastTime = Date.now();
this.runTimeoutOutsideZone(() => {
node.removeAttribute(this.waveAttributeName);
this.removeStyleAndExtraNode();
}, this.waveTransitionDuration);
}
isValidColor(color) {
return !!color && color !== "#ffffff" && color !== "rgb(255, 255, 255)" && this.isNotGrey(color) && !/rgba\(\d*, \d*, \d*, 0\)/.test(color) && color !== "transparent";
}
isNotGrey(color) {
const match = color.match(/rgba?\((\d*), (\d*), (\d*)(, [\.\d]*)?\)/);
if (match && match[1] && match[2] && match[3]) {
return !(match[1] === match[2] && match[2] === match[3]);
}
return true;
}
getWaveColor(node) {
const nodeStyle = getComputedStyle(node);
return nodeStyle.getPropertyValue("border-top-color") || // Firefox Compatible
nodeStyle.getPropertyValue("border-color") || nodeStyle.getPropertyValue("background-color");
}
runTimeoutOutsideZone(fn, delay) {
this.ngZone.runOutsideAngular(() => setTimeout(fn, delay));
}
};
var NZ_WAVE_GLOBAL_DEFAULT_CONFIG = {
disabled: false
};
var NZ_WAVE_GLOBAL_CONFIG = new InjectionToken("nz-wave-global-options");
function provideNzWave(config) {
return makeEnvironmentProviders([{
provide: NZ_WAVE_GLOBAL_CONFIG,
useValue: config
}]);
}
var _NzWaveDirective = class _NzWaveDirective {
get disabled() {
return this.waveDisabled;
}
get rendererRef() {
return this.waveRenderer;
}
constructor(ngZone, elementRef, config, animationType, platformId, cspNonce) {
this.ngZone = ngZone;
this.elementRef = elementRef;
this.config = config;
this.animationType = animationType;
this.platformId = platformId;
this.cspNonce = cspNonce;
this.nzWaveExtraNode = false;
this.waveDisabled = false;
this.waveDisabled = this.isConfigDisabled();
}
isConfigDisabled() {
let disabled = false;
if (this.config && typeof this.config.disabled === "boolean") {
disabled = this.config.disabled;
}
if (this.animationType === "NoopAnimations") {
disabled = true;
}
return disabled;
}
ngOnDestroy() {
if (this.waveRenderer) {
this.waveRenderer.destroy();
}
}
ngOnInit() {
this.renderWaveIfEnabled();
}
renderWaveIfEnabled() {
if (!this.waveDisabled && this.elementRef.nativeElement) {
this.waveRenderer = new NzWaveRenderer(this.elementRef.nativeElement, this.ngZone, this.nzWaveExtraNode, this.platformId, this.cspNonce);
}
}
disable() {
this.waveDisabled = true;
if (this.waveRenderer) {
this.waveRenderer.removeTriggerEvent();
this.waveRenderer.removeStyleAndExtraNode();
}
}
enable() {
this.waveDisabled = this.isConfigDisabled() || false;
if (this.waveRenderer) {
this.waveRenderer.bindTriggerEvent();
}
}
};
_NzWaveDirective.ɵfac = function NzWaveDirective_Factory(t) {
return new (t || _NzWaveDirective)(ɵɵdirectiveInject(NgZone), ɵɵdirectiveInject(ElementRef), ɵɵdirectiveInject(NZ_WAVE_GLOBAL_CONFIG, 8), ɵɵdirectiveInject(ANIMATION_MODULE_TYPE, 8), ɵɵdirectiveInject(PLATFORM_ID), ɵɵdirectiveInject(CSP_NONCE, 8));
};
_NzWaveDirective.ɵdir = ɵɵdefineDirective({
type: _NzWaveDirective,
selectors: [["", "nz-wave", ""], ["button", "nz-button", "", 3, "nzType", "link", 3, "nzType", "text"]],
inputs: {
nzWaveExtraNode: "nzWaveExtraNode"
},
exportAs: ["nzWave"],
standalone: true
});
var NzWaveDirective = _NzWaveDirective;
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NzWaveDirective, [{
type: Directive,
args: [{
selector: '[nz-wave],button[nz-button]:not([nzType="link"]):not([nzType="text"])',
exportAs: "nzWave",
standalone: true
}]
}], () => [{
type: NgZone
}, {
type: ElementRef
}, {
type: void 0,
decorators: [{
type: Optional
}, {
type: Inject,
args: [NZ_WAVE_GLOBAL_CONFIG]
}]
}, {
type: void 0,
decorators: [{
type: Optional
}, {
type: Inject,
args: [ANIMATION_MODULE_TYPE]
}]
}, {
type: void 0,
decorators: [{
type: Inject,
args: [PLATFORM_ID]
}]
}, {
type: void 0,
decorators: [{
type: Optional
}, {
type: Inject,
args: [CSP_NONCE]
}]
}], {
nzWaveExtraNode: [{
type: Input
}]
});
})();
var _NzWaveModule = class _NzWaveModule {
};
_NzWaveModule.ɵfac = function NzWaveModule_Factory(t) {
return new (t || _NzWaveModule)();
};
_NzWaveModule.ɵmod = ɵɵdefineNgModule({
type: _NzWaveModule,
imports: [NzWaveDirective],
exports: [NzWaveDirective]
});
_NzWaveModule.ɵinj = ɵɵdefineInjector({
providers: [provideNzWave(NZ_WAVE_GLOBAL_DEFAULT_CONFIG)]
});
var NzWaveModule = _NzWaveModule;
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NzWaveModule, [{
type: NgModule,
args: [{
imports: [NzWaveDirective],
exports: [NzWaveDirective],
providers: [provideNzWave(NZ_WAVE_GLOBAL_DEFAULT_CONFIG)]
}]
}], null, null);
})();
// node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-button.mjs
var _c0 = ["nz-button", ""];
function NzButtonComponent_span_0_Template(rf, ctx) {
if (rf & 1) {
ɵɵelement(0, "span", 1);
}
}
var _c1 = ["*"];
var NZ_CONFIG_MODULE_NAME = "button";
var _NzButtonComponent = class _NzButtonComponent {
insertSpan(nodes, renderer) {
nodes.forEach((node) => {
if (node.nodeName === "#text") {
const span = renderer.createElement("span");
const parent = renderer.parentNode(node);
renderer.insertBefore(parent, span, node);
renderer.appendChild(span, node);
}
});
}
get iconOnly() {
const listOfNode = Array.from(this.elementRef?.nativeElement?.childNodes || []);
const noText = listOfNode.every((node) => node.nodeName !== "#text");
const noSpan = listOfNode.filter((node) => {
return !(node.nodeName === "#comment" || !!node?.attributes?.getNamedItem("nz-icon"));
}).length == 0;
const isIconOnly = !!this.nzIconDirectiveElement && noSpan && noText;
return isIconOnly;
}
constructor(ngZone, elementRef, cdr, renderer, nzConfigService, directionality) {
this.ngZone = ngZone;
this.elementRef = elementRef;
this.cdr = cdr;
this.renderer = renderer;
this.nzConfigService = nzConfigService;
this.directionality = directionality;
this._nzModuleName = NZ_CONFIG_MODULE_NAME;
this.nzBlock = false;
this.nzGhost = false;
this.nzSearch = false;
this.nzLoading = false;
this.nzDanger = false;
this.disabled = false;
this.tabIndex = null;
this.nzType = null;
this.nzShape = null;
this.nzSize = "default";
this.dir = "ltr";
this.destroy$ = new Subject();
this.loading$ = new Subject();
this.nzConfigService.getConfigChangeEventForComponent(NZ_CONFIG_MODULE_NAME).pipe(takeUntil(this.destroy$)).subscribe(() => {
this.cdr.markForCheck();
});
}
ngOnInit() {
this.directionality.change?.pipe(takeUntil(this.destroy$)).subscribe((direction) => {
this.dir = direction;
this.cdr.detectChanges();
});
this.dir = this.directionality.value;
this.ngZone.runOutsideAngular(() => {
fromEvent(this.elementRef.nativeElement, "click", {
capture: true
}).pipe(takeUntil(this.destroy$)).subscribe((event) => {
if (this.disabled && event.target?.tagName === "A" || this.nzLoading) {
event.preventDefault();
event.stopImmediatePropagation();
}
});
});
}
ngOnChanges(changes) {
const {
nzLoading
} = changes;
if (nzLoading) {
this.loading$.next(this.nzLoading);
}
}
ngAfterViewInit() {
this.insertSpan(this.elementRef.nativeElement.childNodes, this.renderer);
}
ngAfterContentInit() {
this.loading$.pipe(startWith(this.nzLoading), filter(() => !!this.nzIconDirectiveElement), takeUntil(this.destroy$)).subscribe((loading) => {
const nativeElement = this.nzIconDirectiveElement.nativeElement;
if (loading) {
this.renderer.setStyle(nativeElement, "display", "none");
} else {
this.renderer.removeStyle(nativeElement, "display");
}
});
}
ngOnDestroy() {
this.destroy$.next();
this.destroy$.complete();
}
};
_NzButtonComponent.ɵfac = function NzButtonComponent_Factory(t) {
return new (t || _NzButtonComponent)(ɵɵdirectiveInject(NgZone), ɵɵdirectiveInject(ElementRef), ɵɵdirectiveInject(ChangeDetectorRef), ɵɵdirectiveInject(Renderer2), ɵɵdirectiveInject(NzConfigService), ɵɵdirectiveInject(Directionality, 8));
};
_NzButtonComponent.ɵcmp = ɵɵdefineComponent({
type: _NzButtonComponent,
selectors: [["button", "nz-button", ""], ["a", "nz-button", ""]],
contentQueries: function NzButtonComponent_ContentQueries(rf, ctx, dirIndex) {
if (rf & 1) {
ɵɵcontentQuery(dirIndex, NzIconDirective, 5, ElementRef);
}
if (rf & 2) {
let _t;
ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx.nzIconDirectiveElement = _t.first);
}
},
hostAttrs: [1, "ant-btn"],
hostVars: 32,
hostBindings: function NzButtonComponent_HostBindings(rf, ctx) {
if (rf & 2) {
ɵɵattribute("tabindex", ctx.disabled ? -1 : ctx.tabIndex === null ? null : ctx.tabIndex)("disabled", ctx.disabled || null);
ɵɵclassProp("ant-btn-primary", ctx.nzType === "primary")("ant-btn-dashed", ctx.nzType === "dashed")("ant-btn-link", ctx.nzType === "link")("ant-btn-text", ctx.nzType === "text")("ant-btn-circle", ctx.nzShape === "circle")("ant-btn-round", ctx.nzShape === "round")("ant-btn-lg", ctx.nzSize === "large")("ant-btn-sm", ctx.nzSize === "small")("ant-btn-dangerous", ctx.nzDanger)("ant-btn-loading", ctx.nzLoading)("ant-btn-background-ghost", ctx.nzGhost)("ant-btn-block", ctx.nzBlock)("ant-input-search-button", ctx.nzSearch)("ant-btn-rtl", ctx.dir === "rtl")("ant-btn-icon-only", ctx.iconOnly);
}
},
inputs: {
nzBlock: "nzBlock",
nzGhost: "nzGhost",
nzSearch: "nzSearch",
nzLoading: "nzLoading",
nzDanger: "nzDanger",
disabled: "disabled",
tabIndex: "tabIndex",
nzType: "nzType",
nzShape: "nzShape",
nzSize: "nzSize"
},
exportAs: ["nzButton"],
standalone: true,
features: [ɵɵNgOnChangesFeature, ɵɵStandaloneFeature],
attrs: _c0,
ngContentSelectors: _c1,
decls: 2,
vars: 1,
consts: [["nz-icon", "", "nzType", "loading", 4, "ngIf"], ["nz-icon", "", "nzType", "loading"]],
template: function NzButtonComponent_Template(rf, ctx) {
if (rf & 1) {
ɵɵprojectionDef();
ɵɵtemplate(0, NzButtonComponent_span_0_Template, 1, 0, "span", 0);
ɵɵprojection(1);
}
if (rf & 2) {
ɵɵproperty("ngIf", ctx.nzLoading);
}
},
dependencies: [NzIconModule, NzIconDirective, NgIf],
encapsulation: 2,
changeDetection: 0
});
var NzButtonComponent = _NzButtonComponent;
__decorate([InputBoolean()], NzButtonComponent.prototype, "nzBlock", void 0);
__decorate([InputBoolean()], NzButtonComponent.prototype, "nzGhost", void 0);
__decorate([InputBoolean()], NzButtonComponent.prototype, "nzSearch", void 0);
__decorate([InputBoolean()], NzButtonComponent.prototype, "nzLoading", void 0);
__decorate([InputBoolean()], NzButtonComponent.prototype, "nzDanger", void 0);
__decorate([InputBoolean()], NzButtonComponent.prototype, "disabled", void 0);
__decorate([WithConfig()], NzButtonComponent.prototype, "nzSize", void 0);
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NzButtonComponent, [{
type: Component,
args: [{
selector: "button[nz-button], a[nz-button]",
exportAs: "nzButton",
preserveWhitespaces: false,
changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation$1.None,
template: `
<span nz-icon nzType="loading" *ngIf="nzLoading"></span>
<ng-content></ng-content>
`,
host: {
class: "ant-btn",
"[class.ant-btn-primary]": `nzType === 'primary'`,
"[class.ant-btn-dashed]": `nzType === 'dashed'`,
"[class.ant-btn-link]": `nzType === 'link'`,
"[class.ant-btn-text]": `nzType === 'text'`,
"[class.ant-btn-circle]": `nzShape === 'circle'`,
"[class.ant-btn-round]": `nzShape === 'round'`,
"[class.ant-btn-lg]": `nzSize === 'large'`,
"[class.ant-btn-sm]": `nzSize === 'small'`,
"[class.ant-btn-dangerous]": `nzDanger`,
"[class.ant-btn-loading]": `nzLoading`,
"[class.ant-btn-background-ghost]": `nzGhost`,
"[class.ant-btn-block]": `nzBlock`,
"[class.ant-input-search-button]": `nzSearch`,
"[class.ant-btn-rtl]": `dir === 'rtl'`,
"[class.ant-btn-icon-only]": `iconOnly`,
"[attr.tabindex]": "disabled ? -1 : (tabIndex === null ? null : tabIndex)",
"[attr.disabled]": "disabled || null"
},
imports: [NzIconModule, NgIf],
standalone: true
}]
}], () => [{
type: NgZone
}, {
type: ElementRef
}, {
type: ChangeDetectorRef
}, {
type: Renderer2
}, {
type: NzConfigService
}, {
type: Directionality,
decorators: [{
type: Optional
}]
}], {
nzIconDirectiveElement: [{
type: ContentChild,
args: [NzIconDirective, {
read: ElementRef
}]
}],
nzBlock: [{
type: Input
}],
nzGhost: [{
type: Input
}],
nzSearch: [{
type: Input
}],
nzLoading: [{
type: Input
}],
nzDanger: [{
type: Input
}],
disabled: [{
type: Input
}],
tabIndex: [{
type: Input
}],
nzType: [{
type: Input
}],
nzShape: [{
type: Input
}],
nzSize: [{
type: Input
}]
});
})();
var _NzButtonGroupComponent = class _NzButtonGroupComponent {
constructor(directionality) {
this.directionality = directionality;
this.nzSize = "default";
this.dir = "ltr";
this.destroy$ = new Subject();
}
ngOnInit() {
this.dir = this.directionality.value;
this.directionality.change?.pipe(takeUntil(this.destroy$)).subscribe((direction) => {
this.dir = direction;
});
}
ngOnDestroy() {
this.destroy$.next();
this.destroy$.complete();
}
};
_NzButtonGroupComponent.ɵfac = function NzButtonGroupComponent_Factory(t) {
return new (t || _NzButtonGroupComponent)(ɵɵdirectiveInject(Directionality, 8));
};
_NzButtonGroupComponent.ɵcmp = ɵɵdefineComponent({
type: _NzButtonGroupComponent,
selectors: [["nz-button-group"]],
hostAttrs: [1, "ant-btn-group"],
hostVars: 6,
hostBindings: function NzButtonGroupComponent_HostBindings(rf, ctx) {
if (rf & 2) {
ɵɵclassProp("ant-btn-group-lg", ctx.nzSize === "large")("ant-btn-group-sm", ctx.nzSize === "small")("ant-btn-group-rtl", ctx.dir === "rtl");
}
},
inputs: {
nzSize: "nzSize"
},
exportAs: ["nzButtonGroup"],
standalone: true,
features: [ɵɵStandaloneFeature],
ngContentSelectors: _c1,
decls: 1,
vars: 0,
template: function NzButtonGroupComponent_Template(rf, ctx) {
if (rf & 1) {
ɵɵprojectionDef();
ɵɵprojection(0);
}
},
encapsulation: 2,
changeDetection: 0
});
var NzButtonGroupComponent = _NzButtonGroupComponent;
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NzButtonGroupComponent, [{
type: Component,
args: [{
selector: "nz-button-group",
exportAs: "nzButtonGroup",
changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation$1.None,
host: {
class: "ant-btn-group",
"[class.ant-btn-group-lg]": `nzSize === 'large'`,
"[class.ant-btn-group-sm]": `nzSize === 'small'`,
"[class.ant-btn-group-rtl]": `dir === 'rtl'`
},
preserveWhitespaces: false,
template: ` <ng-content></ng-content> `,
standalone: true
}]
}], () => [{
type: Directionality,
decorators: [{
type: Optional
}]
}], {
nzSize: [{
type: Input
}]
});
})();
var _NzButtonModule = class _NzButtonModule {
};
_NzButtonModule.ɵfac = function NzButtonModule_Factory(t) {
return new (t || _NzButtonModule)();
};
_NzButtonModule.ɵmod = ɵɵdefineNgModule({
type: _NzButtonModule,
imports: [NzButtonComponent, NzButtonGroupComponent],
exports: [NzButtonComponent, NzButtonGroupComponent, NzTransitionPatchModule, NzWaveModule]
});
_NzButtonModule.ɵinj = ɵɵdefineInjector({
imports: [NzButtonComponent, NzTransitionPatchModule, NzWaveModule]
});
var NzButtonModule = _NzButtonModule;
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NzButtonModule, [{
type: NgModule,
args: [{
imports: [NzButtonComponent, NzButtonGroupComponent],
exports: [NzButtonComponent, NzButtonGroupComponent, NzTransitionPatchModule, NzWaveModule]
}]
}], null, null);
})();
export {
NzButtonComponent,
NzButtonGroupComponent,

File diff suppressed because one or more lines are too long

@ -1,24 +1,26 @@
import {
NzDragService,
NzResizeService
} from "./chunk-W3IYJMS2.js";
} from "./chunk-D5ODNR6D.js";
import {
LEFT_ARROW,
RIGHT_ARROW
} from "./chunk-UMSNQQWJ.js";
import "./chunk-5OJ3CSUZ.js";
} from "./chunk-JGP5BR6B.js";
import "./chunk-WB57DPWD.js";
import {
NzConfigService,
WithConfig
} from "./chunk-NOIPAY33.js";
} from "./chunk-ZHMJ6SNN.js";
import {
Directionality
} from "./chunk-6NZ2BEBG.js";
import {
Directionality,
Platform
} from "./chunk-UPQZZZIG.js";
} from "./chunk-IAC53GOD.js";
import {
InputBoolean,
InputNumber
} from "./chunk-7XTJNSRU.js";
} from "./chunk-M5GY4FCO.js";
import {
NgForOf,
NgIf,

File diff suppressed because one or more lines are too long

@ -1,19 +1,11 @@
import {
FocusMonitor
} from "./chunk-C2DNBB57.js";
import {
NzFormStatusService
} from "./chunk-W2UE3A2Q.js";
import "./chunk-S7G3TSRW.js";
import "./chunk-UMSNQQWJ.js";
import "./chunk-5OJ3CSUZ.js";
import "./chunk-NOIPAY33.js";
} from "./chunk-FGZVIKKA.js";
import {
Directionality
} from "./chunk-UPQZZZIG.js";
import {
InputBoolean
} from "./chunk-7XTJNSRU.js";
FocusMonitor
} from "./chunk-E6XJDY45.js";
import "./chunk-JGP5BR6B.js";
import "./chunk-WB57DPWD.js";
import {
CheckboxControlValueAccessor,
FormsModule,
@ -21,6 +13,15 @@ import {
NgControlStatus,
NgModel
} from "./chunk-D4IIJHV7.js";
import "./chunk-VWMHIMW7.js";
import "./chunk-ZHMJ6SNN.js";
import {
Directionality
} from "./chunk-6NZ2BEBG.js";
import "./chunk-IAC53GOD.js";
import {
InputBoolean
} from "./chunk-M5GY4FCO.js";
import "./chunk-Y4CEYMY2.js";
import "./chunk-X7WBA24Z.js";
import {

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

@ -1,49 +1,53 @@
import {
NzI18nService
} from "./chunk-5W7CSQ4E.js";
NzTooltipDirective
} from "./chunk-5MZJ5XYV.js";
import "./chunk-6RXUTAFR.js";
import {
NzGridModule
} from "./chunk-YSQE3J2Q.js";
} from "./chunk-QP2OUFNR.js";
import {
NzFormStatusService
} from "./chunk-W2UE3A2Q.js";
import {
NzTooltipDirective
} from "./chunk-BXV7YWBX.js";
} from "./chunk-FGZVIKKA.js";
import {
NzIconDirective,
NzIconModule
} from "./chunk-S7G3TSRW.js";
NzI18nService
} from "./chunk-T745QDCV.js";
import {
helpMotion
} from "./chunk-QI6CCAQD.js";
} from "./chunk-XAGDQPFO.js";
import "./chunk-D5ODNR6D.js";
import "./chunk-55A2ZGND.js";
import "./chunk-6U656R5M.js";
import {
NzOutletModule,
NzStringTemplateOutletDirective
} from "./chunk-VOD2PKZN.js";
import "./chunk-W3IYJMS2.js";
import "./chunk-UMSNQQWJ.js";
import "./chunk-5OJ3CSUZ.js";
import "./chunk-JGP5BR6B.js";
import "./chunk-WB57DPWD.js";
import {
AbstractControl,
FormControlDirective,
FormControlName,
NgControl,
NgModel
} from "./chunk-D4IIJHV7.js";
import {
NzIconDirective,
NzIconModule
} from "./chunk-VWMHIMW7.js";
import {
NzConfigService,
WithConfig
} from "./chunk-NOIPAY33.js";
} from "./chunk-ZHMJ6SNN.js";
import {
Directionality
} from "./chunk-UPQZZZIG.js";
} from "./chunk-6NZ2BEBG.js";
import "./chunk-IAC53GOD.js";
import {
InputBoolean,
toBoolean
} from "./chunk-7XTJNSRU.js";
import "./chunk-FILHFU6K.js";
import "./chunk-BNCUYWOH.js";
import {
AbstractControl,
FormControlDirective,
FormControlName,
NgControl,
NgModel
} from "./chunk-D4IIJHV7.js";
} from "./chunk-M5GY4FCO.js";
import "./chunk-ECVKT3ZH.js";
import "./chunk-KI2JSLP6.js";
import "./chunk-Y4CEYMY2.js";
import "./chunk-X7WBA24Z.js";
import {

File diff suppressed because one or more lines are too long

@ -2,11 +2,12 @@ import {
NzColDirective,
NzGridModule,
NzRowDirective
} from "./chunk-YSQE3J2Q.js";
import "./chunk-W3IYJMS2.js";
import "./chunk-5OJ3CSUZ.js";
import "./chunk-UPQZZZIG.js";
import "./chunk-7XTJNSRU.js";
} from "./chunk-QP2OUFNR.js";
import "./chunk-D5ODNR6D.js";
import "./chunk-WB57DPWD.js";
import "./chunk-6NZ2BEBG.js";
import "./chunk-IAC53GOD.js";
import "./chunk-M5GY4FCO.js";
import "./chunk-OSQBUYO6.js";
import "./chunk-FGESKT7O.js";
import "./chunk-HSNDBVJ3.js";

@ -77,8 +77,8 @@ import {
zh_CN,
zh_HK,
zh_TW
} from "./chunk-5W7CSQ4E.js";
import "./chunk-7XTJNSRU.js";
} from "./chunk-T745QDCV.js";
import "./chunk-M5GY4FCO.js";
import "./chunk-OSQBUYO6.js";
import "./chunk-FGESKT7O.js";
import "./chunk-HSNDBVJ3.js";

@ -0,0 +1,31 @@
import {
DEFAULT_TWOTONE_COLOR,
NZ_ICONS,
NZ_ICONS_PATCH,
NZ_ICONS_USED_BY_ZORRO,
NZ_ICON_DEFAULT_TWOTONE_COLOR,
NzIconDirective,
NzIconModule,
NzIconPatchService,
NzIconService
} from "./chunk-VWMHIMW7.js";
import "./chunk-ZHMJ6SNN.js";
import "./chunk-IAC53GOD.js";
import "./chunk-M5GY4FCO.js";
import "./chunk-Y4CEYMY2.js";
import "./chunk-X7WBA24Z.js";
import "./chunk-OSQBUYO6.js";
import "./chunk-FGESKT7O.js";
import "./chunk-HSNDBVJ3.js";
export {
DEFAULT_TWOTONE_COLOR,
NZ_ICONS,
NZ_ICONS_PATCH,
NZ_ICONS_USED_BY_ZORRO,
NZ_ICON_DEFAULT_TWOTONE_COLOR,
NzIconDirective,
NzIconModule,
NzIconPatchService,
NzIconService
};
//# sourceMappingURL=ng-zorro-antd_icon.js.map

@ -0,0 +1,7 @@
{
"version": 3,
"sources": [],
"sourcesContent": [],
"mappings": "",
"names": []
}

@ -1,38 +1,40 @@
import {
FocusMonitor
} from "./chunk-C2DNBB57.js";
import {
NzFormItemFeedbackIconComponent,
NzFormNoStatusService,
NzFormPatchModule,
NzFormStatusService
} from "./chunk-W2UE3A2Q.js";
} from "./chunk-FGZVIKKA.js";
import {
NzIconDirective,
NzIconModule
} from "./chunk-S7G3TSRW.js";
NzResizeService
} from "./chunk-D5ODNR6D.js";
import {
FocusMonitor
} from "./chunk-E6XJDY45.js";
import {
NzOutletModule,
NzStringTemplateOutletDirective
} from "./chunk-VOD2PKZN.js";
import "./chunk-JGP5BR6B.js";
import "./chunk-WB57DPWD.js";
import {
NzResizeService
} from "./chunk-W3IYJMS2.js";
import "./chunk-UMSNQQWJ.js";
import "./chunk-5OJ3CSUZ.js";
import "./chunk-NOIPAY33.js";
NgControl
} from "./chunk-D4IIJHV7.js";
import {
NzIconDirective,
NzIconModule
} from "./chunk-VWMHIMW7.js";
import "./chunk-ZHMJ6SNN.js";
import {
Directionality
} from "./chunk-6NZ2BEBG.js";
import {
Directionality,
Platform
} from "./chunk-UPQZZZIG.js";
} from "./chunk-IAC53GOD.js";
import {
InputBoolean,
getStatusClassNames,
isNotNil
} from "./chunk-7XTJNSRU.js";
import {
NgControl
} from "./chunk-D4IIJHV7.js";
} from "./chunk-M5GY4FCO.js";
import "./chunk-Y4CEYMY2.js";
import "./chunk-X7WBA24Z.js";
import {

File diff suppressed because one or more lines are too long

@ -0,0 +1,785 @@
import {
NzMenuDirective
} from "./chunk-WKTPWT5U.js";
import "./chunk-CZEXXPIB.js";
import "./chunk-6RXUTAFR.js";
import "./chunk-XAGDQPFO.js";
import {
NzBreakpointService,
siderResponsiveMap
} from "./chunk-D5ODNR6D.js";
import "./chunk-55A2ZGND.js";
import "./chunk-6U656R5M.js";
import "./chunk-VOD2PKZN.js";
import "./chunk-JGP5BR6B.js";
import "./chunk-WB57DPWD.js";
import {
NzIconDirective,
NzIconModule
} from "./chunk-VWMHIMW7.js";
import "./chunk-ZHMJ6SNN.js";
import {
Directionality
} from "./chunk-6NZ2BEBG.js";
import {
Platform
} from "./chunk-IAC53GOD.js";
import {
InputBoolean,
inNextTick,
toCssPixel
} from "./chunk-M5GY4FCO.js";
import "./chunk-ECVKT3ZH.js";
import "./chunk-KI2JSLP6.js";
import "./chunk-Y4CEYMY2.js";
import "./chunk-X7WBA24Z.js";
import {
NgIf,
NgTemplateOutlet
} from "./chunk-OSQBUYO6.js";
import {
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
ContentChild,
ContentChildren,
ElementRef,
EventEmitter,
Input,
NgModule,
Optional,
Output,
Renderer2,
Subject,
ViewEncapsulation$1,
__decorate,
setClassMetadata,
takeUntil,
ɵɵNgOnChangesFeature,
ɵɵStandaloneFeature,
ɵɵadvance,
ɵɵclassProp,
ɵɵcontentQuery,
ɵɵdefineComponent,
ɵɵdefineInjector,
ɵɵdefineNgModule,
ɵɵdirectiveInject,
ɵɵelement,
ɵɵelementContainerEnd,
ɵɵelementContainerStart,
ɵɵelementEnd,
ɵɵelementStart,
ɵɵgetCurrentView,
ɵɵlistener,
ɵɵloadQuery,
ɵɵnextContext,
ɵɵprojection,
ɵɵprojectionDef,
ɵɵproperty,
ɵɵqueryRefresh,
ɵɵreference,
ɵɵresetView,
ɵɵrestoreView,
ɵɵstyleProp,
ɵɵtemplate,
ɵɵtemplateRefExtractor
} from "./chunk-FGESKT7O.js";
import "./chunk-HSNDBVJ3.js";
// node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-layout.mjs
var _c0 = ["*"];
var _c1 = ["nz-sider-trigger", ""];
function NzSiderTriggerComponent_ng_container_0_ng_template_1_Template(rf, ctx) {
}
function NzSiderTriggerComponent_ng_container_0_Template(rf, ctx) {
if (rf & 1) {
ɵɵelementContainerStart(0);
ɵɵtemplate(1, NzSiderTriggerComponent_ng_container_0_ng_template_1_Template, 0, 0, "ng-template", 3);
ɵɵelementContainerEnd();
}
if (rf & 2) {
const ctx_r0 = ɵɵnextContext();
const _r5 = ɵɵreference(5);
ɵɵadvance(1);
ɵɵproperty("ngTemplateOutlet", ctx_r0.nzZeroTrigger || _r5);
}
}
function NzSiderTriggerComponent_ng_container_1_ng_template_1_Template(rf, ctx) {
}
function NzSiderTriggerComponent_ng_container_1_Template(rf, ctx) {
if (rf & 1) {
ɵɵelementContainerStart(0);
ɵɵtemplate(1, NzSiderTriggerComponent_ng_container_1_ng_template_1_Template, 0, 0, "ng-template", 3);
ɵɵelementContainerEnd();
}
if (rf & 2) {
const ctx_r1 = ɵɵnextContext();
const _r3 = ɵɵreference(3);
ɵɵadvance(1);
ɵɵproperty("ngTemplateOutlet", ctx_r1.nzTrigger || _r3);
}
}
function NzSiderTriggerComponent_ng_template_2_span_0_Template(rf, ctx) {
if (rf & 1) {
ɵɵelement(0, "span", 5);
}
if (rf & 2) {
const ctx_r8 = ɵɵnextContext(2);
ɵɵproperty("nzType", ctx_r8.nzCollapsed ? "right" : "left");
}
}
function NzSiderTriggerComponent_ng_template_2_span_1_Template(rf, ctx) {
if (rf & 1) {
ɵɵelement(0, "span", 5);
}
if (rf & 2) {
const ctx_r9 = ɵɵnextContext(2);
ɵɵproperty("nzType", ctx_r9.nzCollapsed ? "left" : "right");
}
}
function NzSiderTriggerComponent_ng_template_2_Template(rf, ctx) {
if (rf & 1) {
ɵɵtemplate(0, NzSiderTriggerComponent_ng_template_2_span_0_Template, 1, 1, "span", 4)(1, NzSiderTriggerComponent_ng_template_2_span_1_Template, 1, 1, "span", 4);
}
if (rf & 2) {
const ctx_r2 = ɵɵnextContext();
ɵɵproperty("ngIf", !ctx_r2.nzReverseArrow);
ɵɵadvance(1);
ɵɵproperty("ngIf", ctx_r2.nzReverseArrow);
}
}
function NzSiderTriggerComponent_ng_template_4_Template(rf, ctx) {
if (rf & 1) {
ɵɵelement(0, "span", 6);
}
}
function NzSiderComponent_div_2_Template(rf, ctx) {
if (rf & 1) {
const _r2 = ɵɵgetCurrentView();
ɵɵelementStart(0, "div", 2);
ɵɵlistener("click", function NzSiderComponent_div_2_Template_div_click_0_listener() {
ɵɵrestoreView(_r2);
const ctx_r1 = ɵɵnextContext();
return ɵɵresetView(ctx_r1.setCollapsed(!ctx_r1.nzCollapsed));
});
ɵɵelementEnd();
}
if (rf & 2) {
const ctx_r0 = ɵɵnextContext();
ɵɵproperty("matchBreakPoint", ctx_r0.matchBreakPoint)("nzCollapsedWidth", ctx_r0.nzCollapsedWidth)("nzCollapsed", ctx_r0.nzCollapsed)("nzBreakpoint", ctx_r0.nzBreakpoint)("nzReverseArrow", ctx_r0.nzReverseArrow)("nzTrigger", ctx_r0.nzTrigger)("nzZeroTrigger", ctx_r0.nzZeroTrigger)("siderWidth", ctx_r0.widthSetting);
}
}
var _NzContentComponent = class _NzContentComponent {
constructor(elementRef, renderer) {
this.elementRef = elementRef;
this.renderer = renderer;
this.renderer.addClass(this.elementRef.nativeElement, "ant-layout-content");
}
};
_NzContentComponent.ɵfac = function NzContentComponent_Factory(t) {
return new (t || _NzContentComponent)(ɵɵdirectiveInject(ElementRef), ɵɵdirectiveInject(Renderer2));
};
_NzContentComponent.ɵcmp = ɵɵdefineComponent({
type: _NzContentComponent,
selectors: [["nz-content"]],
exportAs: ["nzContent"],
standalone: true,
features: [ɵɵStandaloneFeature],
ngContentSelectors: _c0,
decls: 1,
vars: 0,
template: function NzContentComponent_Template(rf, ctx) {
if (rf & 1) {
ɵɵprojectionDef();
ɵɵprojection(0);
}
},
encapsulation: 2,
changeDetection: 0
});
var NzContentComponent = _NzContentComponent;
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NzContentComponent, [{
type: Component,
args: [{
selector: "nz-content",
exportAs: "nzContent",
preserveWhitespaces: false,
changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation$1.None,
template: ` <ng-content></ng-content> `,
standalone: true
}]
}], () => [{
type: ElementRef
}, {
type: Renderer2
}], null);
})();
var _NzFooterComponent = class _NzFooterComponent {
constructor(elementRef, renderer) {
this.elementRef = elementRef;
this.renderer = renderer;
this.renderer.addClass(this.elementRef.nativeElement, "ant-layout-footer");
}
};
_NzFooterComponent.ɵfac = function NzFooterComponent_Factory(t) {
return new (t || _NzFooterComponent)(ɵɵdirectiveInject(ElementRef), ɵɵdirectiveInject(Renderer2));
};
_NzFooterComponent.ɵcmp = ɵɵdefineComponent({
type: _NzFooterComponent,
selectors: [["nz-footer"]],
exportAs: ["nzFooter"],
standalone: true,
features: [ɵɵStandaloneFeature],
ngContentSelectors: _c0,
decls: 1,
vars: 0,
template: function NzFooterComponent_Template(rf, ctx) {
if (rf & 1) {
ɵɵprojectionDef();
ɵɵprojection(0);
}
},
encapsulation: 2,
changeDetection: 0
});
var NzFooterComponent = _NzFooterComponent;
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NzFooterComponent, [{
type: Component,
args: [{
selector: "nz-footer",
exportAs: "nzFooter",
preserveWhitespaces: false,
encapsulation: ViewEncapsulation$1.None,
changeDetection: ChangeDetectionStrategy.OnPush,
template: ` <ng-content></ng-content> `,
standalone: true
}]
}], () => [{
type: ElementRef
}, {
type: Renderer2
}], null);
})();
var _NzHeaderComponent = class _NzHeaderComponent {
constructor(elementRef, renderer) {
this.elementRef = elementRef;
this.renderer = renderer;
this.renderer.addClass(this.elementRef.nativeElement, "ant-layout-header");
}
};
_NzHeaderComponent.ɵfac = function NzHeaderComponent_Factory(t) {
return new (t || _NzHeaderComponent)(ɵɵdirectiveInject(ElementRef), ɵɵdirectiveInject(Renderer2));
};
_NzHeaderComponent.ɵcmp = ɵɵdefineComponent({
type: _NzHeaderComponent,
selectors: [["nz-header"]],
exportAs: ["nzHeader"],
standalone: true,
features: [ɵɵStandaloneFeature],
ngContentSelectors: _c0,
decls: 1,
vars: 0,
template: function NzHeaderComponent_Template(rf, ctx) {
if (rf & 1) {
ɵɵprojectionDef();
ɵɵprojection(0);
}
},
encapsulation: 2,
changeDetection: 0
});
var NzHeaderComponent = _NzHeaderComponent;
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NzHeaderComponent, [{
type: Component,
args: [{
selector: "nz-header",
exportAs: "nzHeader",
changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation$1.None,
preserveWhitespaces: false,
template: ` <ng-content></ng-content> `,
standalone: true
}]
}], () => [{
type: ElementRef
}, {
type: Renderer2
}], null);
})();
var _NzSiderTriggerComponent = class _NzSiderTriggerComponent {
constructor() {
this.nzCollapsed = false;
this.nzReverseArrow = false;
this.nzZeroTrigger = null;
this.nzTrigger = void 0;
this.matchBreakPoint = false;
this.nzCollapsedWidth = null;
this.siderWidth = null;
this.nzBreakpoint = null;
this.isZeroTrigger = false;
this.isNormalTrigger = false;
}
updateTriggerType() {
this.isZeroTrigger = this.nzCollapsedWidth === 0 && (this.nzBreakpoint && this.matchBreakPoint || !this.nzBreakpoint);
this.isNormalTrigger = this.nzCollapsedWidth !== 0;
}
ngOnInit() {
this.updateTriggerType();
}
ngOnChanges() {
this.updateTriggerType();
}
};
_NzSiderTriggerComponent.ɵfac = function NzSiderTriggerComponent_Factory(t) {
return new (t || _NzSiderTriggerComponent)();
};
_NzSiderTriggerComponent.ɵcmp = ɵɵdefineComponent({
type: _NzSiderTriggerComponent,
selectors: [["", "nz-sider-trigger", ""]],
hostVars: 10,
hostBindings: function NzSiderTriggerComponent_HostBindings(rf, ctx) {
if (rf & 2) {
ɵɵstyleProp("width", ctx.isNormalTrigger ? ctx.siderWidth : null);
ɵɵclassProp("ant-layout-sider-trigger", ctx.isNormalTrigger)("ant-layout-sider-zero-width-trigger", ctx.isZeroTrigger)("ant-layout-sider-zero-width-trigger-right", ctx.isZeroTrigger && ctx.nzReverseArrow)("ant-layout-sider-zero-width-trigger-left", ctx.isZeroTrigger && !ctx.nzReverseArrow);
}
},
inputs: {
nzCollapsed: "nzCollapsed",
nzReverseArrow: "nzReverseArrow",
nzZeroTrigger: "nzZeroTrigger",
nzTrigger: "nzTrigger",
matchBreakPoint: "matchBreakPoint",
nzCollapsedWidth: "nzCollapsedWidth",
siderWidth: "siderWidth",
nzBreakpoint: "nzBreakpoint"
},
exportAs: ["nzSiderTrigger"],
standalone: true,
features: [ɵɵNgOnChangesFeature, ɵɵStandaloneFeature],
attrs: _c1,
decls: 6,
vars: 2,
consts: [[4, "ngIf"], ["defaultTrigger", ""], ["defaultZeroTrigger", ""], [3, "ngTemplateOutlet"], ["nz-icon", "", 3, "nzType", 4, "ngIf"], ["nz-icon", "", 3, "nzType"], ["nz-icon", "", "nzType", "bars"]],
template: function NzSiderTriggerComponent_Template(rf, ctx) {
if (rf & 1) {
ɵɵtemplate(0, NzSiderTriggerComponent_ng_container_0_Template, 2, 1, "ng-container", 0)(1, NzSiderTriggerComponent_ng_container_1_Template, 2, 1, "ng-container", 0)(2, NzSiderTriggerComponent_ng_template_2_Template, 2, 2, "ng-template", null, 1, ɵɵtemplateRefExtractor)(4, NzSiderTriggerComponent_ng_template_4_Template, 1, 0, "ng-template", null, 2, ɵɵtemplateRefExtractor);
}
if (rf & 2) {
ɵɵproperty("ngIf", ctx.isZeroTrigger);
ɵɵadvance(1);
ɵɵproperty("ngIf", ctx.isNormalTrigger);
}
},
dependencies: [NgIf, NgTemplateOutlet, NzIconModule, NzIconDirective],
encapsulation: 2,
changeDetection: 0
});
var NzSiderTriggerComponent = _NzSiderTriggerComponent;
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NzSiderTriggerComponent, [{
type: Component,
args: [{
selector: "[nz-sider-trigger]",
exportAs: "nzSiderTrigger",
preserveWhitespaces: false,
encapsulation: ViewEncapsulation$1.None,
changeDetection: ChangeDetectionStrategy.OnPush,
template: `
<ng-container *ngIf="isZeroTrigger">
<ng-template [ngTemplateOutlet]="nzZeroTrigger || defaultZeroTrigger"></ng-template>
</ng-container>
<ng-container *ngIf="isNormalTrigger">
<ng-template [ngTemplateOutlet]="nzTrigger || defaultTrigger"></ng-template>
</ng-container>
<ng-template #defaultTrigger>
<span nz-icon [nzType]="nzCollapsed ? 'right' : 'left'" *ngIf="!nzReverseArrow"></span>
<span nz-icon [nzType]="nzCollapsed ? 'left' : 'right'" *ngIf="nzReverseArrow"></span>
</ng-template>
<ng-template #defaultZeroTrigger>
<span nz-icon nzType="bars"></span>
</ng-template>
`,
host: {
"[class.ant-layout-sider-trigger]": "isNormalTrigger",
"[style.width]": "isNormalTrigger ? siderWidth : null",
"[class.ant-layout-sider-zero-width-trigger]": "isZeroTrigger",
"[class.ant-layout-sider-zero-width-trigger-right]": "isZeroTrigger && nzReverseArrow",
"[class.ant-layout-sider-zero-width-trigger-left]": "isZeroTrigger && !nzReverseArrow"
},
imports: [NgIf, NgTemplateOutlet, NzIconModule],
standalone: true
}]
}], null, {
nzCollapsed: [{
type: Input
}],
nzReverseArrow: [{
type: Input
}],
nzZeroTrigger: [{
type: Input
}],
nzTrigger: [{
type: Input
}],
matchBreakPoint: [{
type: Input
}],
nzCollapsedWidth: [{
type: Input
}],
siderWidth: [{
type: Input
}],
nzBreakpoint: [{
type: Input
}]
});
})();
var _NzSiderComponent = class _NzSiderComponent {
updateStyleMap() {
this.widthSetting = this.nzCollapsed ? `${this.nzCollapsedWidth}px` : toCssPixel(this.nzWidth);
this.flexSetting = `0 0 ${this.widthSetting}`;
this.cdr.markForCheck();
}
updateMenuInlineCollapsed() {
if (this.nzMenuDirective && this.nzMenuDirective.nzMode === "inline" && this.nzCollapsedWidth !== 0) {
this.nzMenuDirective.setInlineCollapsed(this.nzCollapsed);
}
}
setCollapsed(collapsed) {
if (collapsed !== this.nzCollapsed) {
this.nzCollapsed = collapsed;
this.nzCollapsedChange.emit(collapsed);
this.updateMenuInlineCollapsed();
this.updateStyleMap();
this.cdr.markForCheck();
}
}
constructor(platform, cdr, breakpointService) {
this.platform = platform;
this.cdr = cdr;
this.breakpointService = breakpointService;
this.destroy$ = new Subject();
this.nzMenuDirective = null;
this.nzCollapsedChange = new EventEmitter();
this.nzWidth = 200;
this.nzTheme = "dark";
this.nzCollapsedWidth = 80;
this.nzBreakpoint = null;
this.nzZeroTrigger = null;
this.nzTrigger = void 0;
this.nzReverseArrow = false;
this.nzCollapsible = false;
this.nzCollapsed = false;
this.matchBreakPoint = false;
this.flexSetting = null;
this.widthSetting = null;
}
ngOnInit() {
this.updateStyleMap();
if (this.platform.isBrowser) {
this.breakpointService.subscribe(siderResponsiveMap, true).pipe(takeUntil(this.destroy$)).subscribe((map) => {
const breakpoint = this.nzBreakpoint;
if (breakpoint) {
inNextTick().subscribe(() => {
this.matchBreakPoint = !map[breakpoint];
this.setCollapsed(this.matchBreakPoint);
this.cdr.markForCheck();
});
}
});
}
}
ngOnChanges(changes) {
const {
nzCollapsed,
nzCollapsedWidth,
nzWidth
} = changes;
if (nzCollapsed || nzCollapsedWidth || nzWidth) {
this.updateStyleMap();
}
if (nzCollapsed) {
this.updateMenuInlineCollapsed();
}
}
ngAfterContentInit() {
this.updateMenuInlineCollapsed();
}
ngOnDestroy() {
this.destroy$.next(true);
this.destroy$.complete();
}
};
_NzSiderComponent.ɵfac = function NzSiderComponent_Factory(t) {
return new (t || _NzSiderComponent)(ɵɵdirectiveInject(Platform), ɵɵdirectiveInject(ChangeDetectorRef), ɵɵdirectiveInject(NzBreakpointService));
};
_NzSiderComponent.ɵcmp = ɵɵdefineComponent({
type: _NzSiderComponent,
selectors: [["nz-sider"]],
contentQueries: function NzSiderComponent_ContentQueries(rf, ctx, dirIndex) {
if (rf & 1) {
ɵɵcontentQuery(dirIndex, NzMenuDirective, 5);
}
if (rf & 2) {
let _t;
ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx.nzMenuDirective = _t.first);
}
},
hostAttrs: [1, "ant-layout-sider"],
hostVars: 18,
hostBindings: function NzSiderComponent_HostBindings(rf, ctx) {
if (rf & 2) {
ɵɵstyleProp("flex", ctx.flexSetting)("max-width", ctx.widthSetting)("min-width", ctx.widthSetting)("width", ctx.widthSetting);
ɵɵclassProp("ant-layout-sider-zero-width", ctx.nzCollapsed && ctx.nzCollapsedWidth === 0)("ant-layout-sider-light", ctx.nzTheme === "light")("ant-layout-sider-dark", ctx.nzTheme === "dark")("ant-layout-sider-collapsed", ctx.nzCollapsed)("ant-layout-sider-has-trigger", ctx.nzCollapsible && ctx.nzTrigger !== null);
}
},
inputs: {
nzWidth: "nzWidth",
nzTheme: "nzTheme",
nzCollapsedWidth: "nzCollapsedWidth",
nzBreakpoint: "nzBreakpoint",
nzZeroTrigger: "nzZeroTrigger",
nzTrigger: "nzTrigger",
nzReverseArrow: "nzReverseArrow",
nzCollapsible: "nzCollapsible",
nzCollapsed: "nzCollapsed"
},
outputs: {
nzCollapsedChange: "nzCollapsedChange"
},
exportAs: ["nzSider"],
standalone: true,
features: [ɵɵNgOnChangesFeature, ɵɵStandaloneFeature],
ngContentSelectors: _c0,
decls: 3,
vars: 1,
consts: [[1, "ant-layout-sider-children"], ["nz-sider-trigger", "", 3, "matchBreakPoint", "nzCollapsedWidth", "nzCollapsed", "nzBreakpoint", "nzReverseArrow", "nzTrigger", "nzZeroTrigger", "siderWidth", "click", 4, "ngIf"], ["nz-sider-trigger", "", 3, "matchBreakPoint", "nzCollapsedWidth", "nzCollapsed", "nzBreakpoint", "nzReverseArrow", "nzTrigger", "nzZeroTrigger", "siderWidth", "click"]],
template: function NzSiderComponent_Template(rf, ctx) {
if (rf & 1) {
ɵɵprojectionDef();
ɵɵelementStart(0, "div", 0);
ɵɵprojection(1);
ɵɵelementEnd();
ɵɵtemplate(2, NzSiderComponent_div_2_Template, 1, 8, "div", 1);
}
if (rf & 2) {
ɵɵadvance(2);
ɵɵproperty("ngIf", ctx.nzCollapsible && ctx.nzTrigger !== null);
}
},
dependencies: [NgIf, NzSiderTriggerComponent],
encapsulation: 2,
changeDetection: 0
});
var NzSiderComponent = _NzSiderComponent;
__decorate([InputBoolean()], NzSiderComponent.prototype, "nzReverseArrow", void 0);
__decorate([InputBoolean()], NzSiderComponent.prototype, "nzCollapsible", void 0);
__decorate([InputBoolean()], NzSiderComponent.prototype, "nzCollapsed", void 0);
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NzSiderComponent, [{
type: Component,
args: [{
selector: "nz-sider",
exportAs: "nzSider",
preserveWhitespaces: false,
encapsulation: ViewEncapsulation$1.None,
changeDetection: ChangeDetectionStrategy.OnPush,
template: `
<div class="ant-layout-sider-children">
<ng-content></ng-content>
</div>
<div
*ngIf="nzCollapsible && nzTrigger !== null"
nz-sider-trigger
[matchBreakPoint]="matchBreakPoint"
[nzCollapsedWidth]="nzCollapsedWidth"
[nzCollapsed]="nzCollapsed"
[nzBreakpoint]="nzBreakpoint"
[nzReverseArrow]="nzReverseArrow"
[nzTrigger]="nzTrigger"
[nzZeroTrigger]="nzZeroTrigger"
[siderWidth]="widthSetting"
(click)="setCollapsed(!nzCollapsed)"
></div>
`,
host: {
class: "ant-layout-sider",
"[class.ant-layout-sider-zero-width]": `nzCollapsed && nzCollapsedWidth === 0`,
"[class.ant-layout-sider-light]": `nzTheme === 'light'`,
"[class.ant-layout-sider-dark]": `nzTheme === 'dark'`,
"[class.ant-layout-sider-collapsed]": `nzCollapsed`,
"[class.ant-layout-sider-has-trigger]": `nzCollapsible && nzTrigger !== null`,
"[style.flex]": "flexSetting",
"[style.maxWidth]": "widthSetting",
"[style.minWidth]": "widthSetting",
"[style.width]": "widthSetting"
},
imports: [NgIf, NzSiderTriggerComponent],
standalone: true
}]
}], () => [{
type: Platform
}, {
type: ChangeDetectorRef
}, {
type: NzBreakpointService
}], {
nzMenuDirective: [{
type: ContentChild,
args: [NzMenuDirective]
}],
nzCollapsedChange: [{
type: Output
}],
nzWidth: [{
type: Input
}],
nzTheme: [{
type: Input
}],
nzCollapsedWidth: [{
type: Input
}],
nzBreakpoint: [{
type: Input
}],
nzZeroTrigger: [{
type: Input
}],
nzTrigger: [{
type: Input
}],
nzReverseArrow: [{
type: Input
}],
nzCollapsible: [{
type: Input
}],
nzCollapsed: [{
type: Input
}]
});
})();
var _NzLayoutComponent = class _NzLayoutComponent {
constructor(directionality) {
this.directionality = directionality;
this.dir = "ltr";
this.destroy$ = new Subject();
}
ngOnInit() {
this.dir = this.directionality.value;
this.directionality.change?.pipe(takeUntil(this.destroy$)).subscribe((direction) => {
this.dir = direction;
});
}
ngOnDestroy() {
this.destroy$.next();
this.destroy$.complete();
}
};
_NzLayoutComponent.ɵfac = function NzLayoutComponent_Factory(t) {
return new (t || _NzLayoutComponent)(ɵɵdirectiveInject(Directionality, 8));
};
_NzLayoutComponent.ɵcmp = ɵɵdefineComponent({
type: _NzLayoutComponent,
selectors: [["nz-layout"]],
contentQueries: function NzLayoutComponent_ContentQueries(rf, ctx, dirIndex) {
if (rf & 1) {
ɵɵcontentQuery(dirIndex, NzSiderComponent, 4);
}
if (rf & 2) {
let _t;
ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx.listOfNzSiderComponent = _t);
}
},
hostAttrs: [1, "ant-layout"],
hostVars: 4,
hostBindings: function NzLayoutComponent_HostBindings(rf, ctx) {
if (rf & 2) {
ɵɵclassProp("ant-layout-rtl", ctx.dir === "rtl")("ant-layout-has-sider", ctx.listOfNzSiderComponent.length > 0);
}
},
exportAs: ["nzLayout"],
standalone: true,
features: [ɵɵStandaloneFeature],
ngContentSelectors: _c0,
decls: 1,
vars: 0,
template: function NzLayoutComponent_Template(rf, ctx) {
if (rf & 1) {
ɵɵprojectionDef();
ɵɵprojection(0);
}
},
encapsulation: 2,
changeDetection: 0
});
var NzLayoutComponent = _NzLayoutComponent;
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NzLayoutComponent, [{
type: Component,
args: [{
selector: "nz-layout",
exportAs: "nzLayout",
encapsulation: ViewEncapsulation$1.None,
changeDetection: ChangeDetectionStrategy.OnPush,
preserveWhitespaces: false,
template: ` <ng-content></ng-content> `,
host: {
class: "ant-layout",
"[class.ant-layout-rtl]": `dir === 'rtl'`,
"[class.ant-layout-has-sider]": "listOfNzSiderComponent.length > 0"
},
standalone: true
}]
}], () => [{
type: Directionality,
decorators: [{
type: Optional
}]
}], {
listOfNzSiderComponent: [{
type: ContentChildren,
args: [NzSiderComponent]
}]
});
})();
var _NzLayoutModule = class _NzLayoutModule {
};
_NzLayoutModule.ɵfac = function NzLayoutModule_Factory(t) {
return new (t || _NzLayoutModule)();
};
_NzLayoutModule.ɵmod = ɵɵdefineNgModule({
type: _NzLayoutModule,
imports: [NzLayoutComponent, NzHeaderComponent, NzContentComponent, NzFooterComponent, NzSiderComponent, NzSiderTriggerComponent],
exports: [NzLayoutComponent, NzHeaderComponent, NzContentComponent, NzFooterComponent, NzSiderComponent]
});
_NzLayoutModule.ɵinj = ɵɵdefineInjector({
imports: [NzSiderComponent, NzSiderTriggerComponent]
});
var NzLayoutModule = _NzLayoutModule;
(() => {
(typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(NzLayoutModule, [{
type: NgModule,
args: [{
imports: [NzLayoutComponent, NzHeaderComponent, NzContentComponent, NzFooterComponent, NzSiderComponent, NzSiderTriggerComponent],
exports: [NzLayoutComponent, NzHeaderComponent, NzContentComponent, NzFooterComponent, NzSiderComponent]
}]
}], null, null);
})();
export {
NzContentComponent,
NzFooterComponent,
NzHeaderComponent,
NzLayoutComponent,
NzLayoutModule,
NzSiderComponent,
NzSiderTriggerComponent as ɵNzSiderTriggerComponent
};
//# sourceMappingURL=ng-zorro-antd_layout.js.map

File diff suppressed because one or more lines are too long

@ -0,0 +1,58 @@
import {
MenuDropDownTokenFactory,
MenuGroupFactory,
MenuService,
MenuServiceFactory,
NzIsMenuInsideDropDownToken,
NzMenuDirective,
NzMenuDividerDirective,
NzMenuGroupComponent,
NzMenuItemComponent,
NzMenuModule,
NzMenuServiceLocalToken,
NzSubMenuComponent,
NzSubMenuTitleComponent,
NzSubmenuInlineChildComponent,
NzSubmenuNoneInlineChildComponent,
NzSubmenuService
} from "./chunk-WKTPWT5U.js";
import "./chunk-CZEXXPIB.js";
import "./chunk-6RXUTAFR.js";
import "./chunk-XAGDQPFO.js";
import "./chunk-D5ODNR6D.js";
import "./chunk-55A2ZGND.js";
import "./chunk-6U656R5M.js";
import "./chunk-VOD2PKZN.js";
import "./chunk-JGP5BR6B.js";
import "./chunk-WB57DPWD.js";
import "./chunk-VWMHIMW7.js";
import "./chunk-ZHMJ6SNN.js";
import "./chunk-6NZ2BEBG.js";
import "./chunk-IAC53GOD.js";
import "./chunk-M5GY4FCO.js";
import "./chunk-ECVKT3ZH.js";
import "./chunk-KI2JSLP6.js";
import "./chunk-Y4CEYMY2.js";
import "./chunk-X7WBA24Z.js";
import "./chunk-OSQBUYO6.js";
import "./chunk-FGESKT7O.js";
import "./chunk-HSNDBVJ3.js";
export {
MenuDropDownTokenFactory,
MenuGroupFactory,
MenuService,
MenuServiceFactory,
NzIsMenuInsideDropDownToken,
NzMenuDirective,
NzMenuDividerDirective,
NzMenuGroupComponent,
NzMenuItemComponent,
NzMenuModule,
NzMenuServiceLocalToken,
NzSubMenuComponent,
NzSubMenuTitleComponent,
NzSubmenuInlineChildComponent,
NzSubmenuNoneInlineChildComponent,
NzSubmenuService
};
//# sourceMappingURL=ng-zorro-antd_menu.js.map

@ -0,0 +1,7 @@
{
"version": 3,
"sources": [],
"sourcesContent": [],
"mappings": "",
"names": []
}

@ -1,29 +1,32 @@
import {
NzIconDirective,
NzIconModule
} from "./chunk-S7G3TSRW.js";
moveUpMotion
} from "./chunk-XAGDQPFO.js";
import {
NzSingletonService
} from "./chunk-D5ODNR6D.js";
import {
ComponentPortal,
Overlay,
moveUpMotion
} from "./chunk-QI6CCAQD.js";
Overlay
} from "./chunk-6U656R5M.js";
import {
NzOutletModule,
NzStringTemplateOutletDirective
} from "./chunk-VOD2PKZN.js";
import "./chunk-JGP5BR6B.js";
import "./chunk-WB57DPWD.js";
import {
NzSingletonService
} from "./chunk-W3IYJMS2.js";
import "./chunk-UMSNQQWJ.js";
import "./chunk-5OJ3CSUZ.js";
NzIconDirective,
NzIconModule
} from "./chunk-VWMHIMW7.js";
import {
NzConfigService
} from "./chunk-NOIPAY33.js";
import "./chunk-UPQZZZIG.js";
} from "./chunk-ZHMJ6SNN.js";
import "./chunk-6NZ2BEBG.js";
import "./chunk-IAC53GOD.js";
import {
toCssPixel
} from "./chunk-7XTJNSRU.js";
import "./chunk-BNCUYWOH.js";
} from "./chunk-M5GY4FCO.js";
import "./chunk-KI2JSLP6.js";
import "./chunk-Y4CEYMY2.js";
import "./chunk-X7WBA24Z.js";
import {

File diff suppressed because one or more lines are too long

@ -1,22 +1,30 @@
import {
NzToolTipModule,
NzTooltipDirective
} from "./chunk-BXV7YWBX.js";
import "./chunk-QI6CCAQD.js";
} from "./chunk-5MZJ5XYV.js";
import "./chunk-6RXUTAFR.js";
import "./chunk-XAGDQPFO.js";
import "./chunk-D5ODNR6D.js";
import "./chunk-55A2ZGND.js";
import "./chunk-6U656R5M.js";
import "./chunk-VOD2PKZN.js";
import "./chunk-W3IYJMS2.js";
import {
DOWN_ARROW,
LEFT_ARROW,
RIGHT_ARROW,
UP_ARROW
} from "./chunk-UMSNQQWJ.js";
import "./chunk-5OJ3CSUZ.js";
import "./chunk-NOIPAY33.js";
} from "./chunk-JGP5BR6B.js";
import "./chunk-WB57DPWD.js";
import {
NG_VALUE_ACCESSOR
} from "./chunk-D4IIJHV7.js";
import "./chunk-ZHMJ6SNN.js";
import {
Directionality
} from "./chunk-6NZ2BEBG.js";
import {
Directionality,
Platform
} from "./chunk-UPQZZZIG.js";
} from "./chunk-IAC53GOD.js";
import {
InputBoolean,
InputNumber,
@ -27,12 +35,9 @@ import {
getPrecision,
isNil,
silentEvent
} from "./chunk-7XTJNSRU.js";
import "./chunk-FILHFU6K.js";
import "./chunk-BNCUYWOH.js";
import {
NG_VALUE_ACCESSOR
} from "./chunk-D4IIJHV7.js";
} from "./chunk-M5GY4FCO.js";
import "./chunk-ECVKT3ZH.js";
import "./chunk-KI2JSLP6.js";
import "./chunk-Y4CEYMY2.js";
import "./chunk-X7WBA24Z.js";
import {

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

@ -8,10 +8,20 @@ import { registerLocaleData } from '@angular/common';
import zh from '@angular/common/locales/zh';
import { FormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { provideAnimations } from '@angular/platform-browser/animations';
import {BrowserAnimationsModule, provideAnimations} from '@angular/platform-browser/animations';
import {InitGuardService} from "./utils/initGuard.service";
registerLocaleData(zh);
export const appConfig: ApplicationConfig = {
providers: [provideRouter(routes), provideClientHydration(), provideNzI18n(zh_CN), importProvidersFrom(FormsModule), importProvidersFrom(HttpClientModule), provideAnimations()]
providers: [
provideRouter(routes),
provideClientHydration(),
provideNzI18n(zh_CN),
importProvidersFrom(FormsModule),
importProvidersFrom(HttpClientModule),
provideAnimations(),
BrowserAnimationsModule,
InitGuardService, // 校验登录
]
};

@ -1,8 +1,21 @@
import { Routes } from '@angular/router';
import {IndexComponent} from "./pages/body/index/index.component";
import {InitGuardService} from "./utils/initGuard.service";
export const routes: Routes = [
{path: '', pathMatch: 'full', redirectTo: 'login'},
{
path: 'login',
loadChildren: () => import('./pages/login/login.routes').then(m => m.LOGIN_ROUTES)
loadChildren: () => import('./pages/login/login.routes').then(m => m.LOGIN_ROUTES),
canActivate: [InitGuardService]
},
{
path: 'admin', component: IndexComponent,
children: [
{
path: 'index',
loadChildren: () => import('./pages/index/index.routes').then(m => m.INDEX_ROUTES),
canActivate: [InitGuardService]
},
]
}
];

@ -0,0 +1,5 @@
export const USER_TOKEN = 'userToken';
export const INIT_FLAG = 'initFlag';
export const DATA = 'DATA';
export const LOGIN_DATA = 'loginData';

@ -0,0 +1,9 @@
export const menuData = [
{title: "首页" , selected: true} ,
{title: "商户管理" , selected: false} ,
{title: "数据交易" , selected: false} ,
{title: "产品中心" , selected: false} ,
{title: "账号管理" , selected: false} ,
{title: "营销工具" , selected: false}
];

@ -0,0 +1,10 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
@NgModule({
declarations: [],
imports: [
CommonModule
]
})
export class BodyModule { }

@ -0,0 +1,80 @@
<nz-layout>
<nz-header>
<div nz-row>
<!-- logo-->
<div class="logo" nz-col nzSpan="4">
<h2>普惠GO管理平台</h2>
</div>
<!-- 一级菜单-->
<div class="menu" nz-col nzSpan="16">
<ul>
<li *ngFor="let item of firstMenuData" [ngClass]="{'li-selected' : item.selected}" (click)="isSelected(item)">{{item.title}}</li>
</ul>
</div>
<div nz-col nzSpan="4">col-8</div>
</div>
</nz-header>
<nz-content class="inner-content">
<!-- 侧边导航栏-->
<div [@openClose]="isCollapse ? 'open' : 'closed'" class="side_menu">
<div class="side_menu_top" (click)="isCollapse = false">
<div class="side_menu_top_icon">
<span nz-icon nzType="menu-fold" nzTheme="outline"></span>
</div>
<span style="font-size: 14px;">收起</span>
</div>
<!-- 菜单内容-->
<div class="side_menu_content">
<ul nz-menu nzMode="inline">
<li nz-submenu nzTitle="Navigation One" nzIcon="mail" nzOpen>
<ul>
<li nz-menu-group nzTitle="Item 1">
<ul>
<li nz-menu-item nzSelected>Option 1</li>
<li nz-menu-item>Option 2</li>
</ul>
</li>
<li nz-menu-group nzTitle="Item 2">
<ul>
<li nz-menu-item>Option 3</li>
<li nz-menu-item>Option 4</li>
</ul>
</li>
</ul>
</li>
<li nz-submenu nzTitle="Navigation Two" nzIcon="appstore">
<ul>
<li nz-menu-item>Option 5</li>
<li nz-menu-item>Option 6</li>
<li nz-submenu nzTitle="Submenu">
<ul>
<li nz-menu-item>Option 7</li>
<li nz-menu-item>Option 8</li>
<li nz-submenu nzTitle="Submenu">
<ul>
<li nz-menu-item>Option 9</li>
<li nz-menu-item>Option 10</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li nz-submenu nzTitle="Navigation Three" nzIcon="setting">
<ul>
<li nz-menu-item>Option 11</li>
<li nz-menu-item>Option 12</li>
<li nz-menu-item>Option 13</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- 主体内容-->
<div class="content" [ngClass]="{'content-width' : isCollapse}">
<app-tab></app-tab>
</div>
</nz-content>
</nz-layout>

@ -0,0 +1,84 @@
nz-header {
background: #181f47;
padding: 0 26px;
.logo {
h2 {
color: white;
}
}
.menu {
width: 52%;
display: flex;
justify-content: center;
ul {
li {
height: 56px;
float: left;
color: #fff;
opacity: .65;
font-size: 14px;
padding: 0 20px;
cursor: pointer;
}
.li-selected {
opacity: 1;
border-bottom: 2px solid #1890ff;
}
li:hover {
opacity: 1;
border-bottom: 2px solid #1890ff;
}
list-style-type: none; /* 移除列表的标记,如果需要的话 */
padding: 0; /* 移除padding,如果需要的话 */
}
}
}
nz-breadcrumb {
margin: 16px 0;
}
nz-footer {
text-align: center;
}
.inner-content {
div {
float: left;
}
.side_menu {
height: 100%;
color: #595959;
box-shadow: 2px 0 8px rgba(0,0,0,.15);
.side_menu_top {
width: 100%;
margin-top: 8px;
font-size: 18px;
height: 26px;
line-height: 23px;
margin-left: 14px;
.side_menu_top_icon {
height: 26px;
line-height: 26px;
}
span {
margin-left: 6px;
}
}
.side_menu_content {
margin-top: 10px;
width: 100%;
height: 100%;
}
}
height: calc(100vh - 64px);
}
.content {
width:100vw;
}
.content-width {
width: calc(100vw - 280px);
}

@ -0,0 +1,78 @@
import { Component } from '@angular/core';
import {RouterLink, RouterOutlet} from "@angular/router";
import {NzContentComponent, NzFooterComponent, NzHeaderComponent, NzLayoutComponent} from "ng-zorro-antd/layout";
import {NzBreadCrumbComponent, NzBreadCrumbItemComponent} from "ng-zorro-antd/breadcrumb";
import {NzColDirective, NzRowDirective} from "ng-zorro-antd/grid";
import {NzMenuDirective, NzMenuItemComponent, NzSubMenuComponent} from "ng-zorro-antd/menu";
import {menuData} from "../../../data/menu/menu.namespace";
import {NgClass, NgForOf} from "@angular/common";
import {animate, state, style, transition, trigger} from "@angular/animations";
import {NzIconDirective} from "ng-zorro-antd/icon";
import {NzTabComponent, NzTabSetComponent} from "ng-zorro-antd/tabs";
import {TabComponent} from "../tab/tab.component";
@Component({
selector: 'app-index',
standalone: true,
imports: [
RouterOutlet,
NzLayoutComponent,
NzHeaderComponent,
NzBreadCrumbComponent,
NzBreadCrumbItemComponent,
NzContentComponent,
NzFooterComponent,
NzRowDirective,
NzColDirective,
NzMenuItemComponent,
NzMenuDirective,
RouterLink,
NzSubMenuComponent,
NgForOf,
NgClass,
NzIconDirective,
NzTabComponent,
NzTabSetComponent,
TabComponent
],
templateUrl: './index.component.html',
styleUrl: './index.component.less',
animations: [
// animation triggers go here
trigger('openClose', [
state('open', style({
width: '280px',
backgroundColor: 'white'
})),
state('closed', style({
overflow: 'hidden',
width: '0',
})),
transition('open => closed', [
animate('0.1s')
]),
transition('closed => open', [
animate('0.1s')
]),
]),
]
})
export class IndexComponent {
// 首次导航数据
firstMenuData = menuData;
// 侧边菜单展示开关
isCollapse = false;
tabs = ['首页' , '商户管理'];
constructor(
) {}
// 选择操作
isSelected(item: any) {
this.isCollapse = true;
this.firstMenuData.map(data => {
data.selected = data.title === item.title;
});
}
}

@ -0,0 +1,7 @@
<div class="card-container" style="width: 100%;height: 100%">
<nz-tabset nzType="card">
<nz-tab *ngFor="let tab of tabs" [nzTitle]="'Tab Title ' + tab">
<router-outlet></router-outlet>
</nz-tab>
</nz-tabset>
</div>

@ -0,0 +1,30 @@
:host {
background: white;
overflow: hidden;
display: block;
height: 100%;
}
.card-container ::ng-deep p {
margin: 0;
}
.card-container ::ng-deep > .ant-tabs-card .ant-tabs-content {
margin-top: -16px;
}
.card-container ::ng-deep > .ant-tabs-card .ant-tabs-content > .ant-tabs-tabpane {
background: #f5f5f5;
padding: 16px;
}
.card-container ::ng-deep > .ant-tabs-card > .ant-tabs-nav::before {
display: none;
}
.card-container ::ng-deep > .ant-tabs-card .ant-tabs-tab {
border-color: transparent;
background: transparent;
}
.card-container ::ng-deep > .ant-tabs-card .ant-tabs-tab-active {
border-color: #f5f5f5;
background: #f5f5f5;
}

@ -0,0 +1,20 @@
import { Component } from '@angular/core';
import {NgForOf} from "@angular/common";
import {NzTabComponent, NzTabSetComponent} from "ng-zorro-antd/tabs";
import {RouterOutlet} from "@angular/router";
@Component({
selector: 'app-tab',
standalone: true,
imports: [
NgForOf,
NzTabComponent,
NzTabSetComponent,
RouterOutlet
],
templateUrl: './tab.component.html',
styleUrl: './tab.component.less'
})
export class TabComponent {
tabs = ['首页' , '商户管理'];
}

@ -0,0 +1,10 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
@NgModule({
declarations: [],
imports: [
CommonModule
]
})
export class IndexModule { }

@ -0,0 +1,6 @@
import { Routes } from '@angular/router';
import {IndexComponent} from "./index/index.component";
export const INDEX_ROUTES: Routes = [
{ path: '', component: IndexComponent}
];

@ -0,0 +1 @@
<div style="width: 100%; height: calc(100vh - 134px); background: red"></div>

@ -0,0 +1,18 @@
import { Component } from '@angular/core';
import {NzTabComponent, NzTabSetComponent} from "ng-zorro-antd/tabs";
import {NgForOf} from "@angular/common";
@Component({
selector: 'app-index',
standalone: true,
imports: [
NzTabSetComponent,
NzTabComponent,
NgForOf
],
templateUrl: './index.component.html',
styleUrl: './index.component.less'
})
export class IndexComponent {
}

@ -17,7 +17,7 @@
<nz-form-item>
<nz-form-control nzErrorTip="请输入您的用户名!">
<nz-input-group nzPrefixIcon="user">
<input type="text" nz-input formControlName="userName" nzSize="large" placeholder="用户名" />
<input type="text" nz-input formControlName="loginName" nzSize="large" placeholder="用户名" />
</nz-input-group>
</nz-form-control>
</nz-form-item>

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save