@delon/abc 16.4.3 → 17.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (213) hide show
  1. package/avatar-list/style/index.less +3 -1
  2. package/cell/cell-host.directive.d.ts +1 -1
  3. package/cell/cell.component.d.ts +1 -1
  4. package/cell/cell.module.d.ts +12 -12
  5. package/cell/index.d.ts +1 -0
  6. package/cell/provide.d.ts +10 -0
  7. package/cell/style/index.less +1 -1
  8. package/down-file/style/index.less +1 -0
  9. package/ellipsis/style/index.less +2 -2
  10. package/error-collect/style/index.less +1 -1
  11. package/error-collect/style/rtl.less +2 -1
  12. package/esm2022/auto-focus/auto-focus.directive.mjs +5 -5
  13. package/esm2022/auto-focus/auto-focus.module.mjs +5 -5
  14. package/esm2022/avatar-list/avatar-list-item.component.mjs +4 -4
  15. package/esm2022/avatar-list/avatar-list.component.mjs +7 -7
  16. package/esm2022/avatar-list/avatar-list.module.mjs +5 -5
  17. package/esm2022/cell/cell-host.directive.mjs +7 -6
  18. package/esm2022/cell/cell.component.mjs +163 -126
  19. package/esm2022/cell/cell.module.mjs +10 -9
  20. package/esm2022/cell/cell.service.mjs +5 -5
  21. package/esm2022/cell/index.mjs +2 -1
  22. package/esm2022/cell/provide.mjs +18 -0
  23. package/esm2022/count-down/count-down.component.mjs +10 -7
  24. package/esm2022/count-down/count-down.module.mjs +5 -5
  25. package/esm2022/date-picker/date-picker.module.mjs +5 -5
  26. package/esm2022/date-picker/range-shortcut.component.mjs +11 -17
  27. package/esm2022/date-picker/range.directive.mjs +9 -7
  28. package/esm2022/down-file/down-file.directive.mjs +5 -5
  29. package/esm2022/down-file/down-file.module.mjs +5 -5
  30. package/esm2022/ellipsis/ellipsis.component.mjs +7 -7
  31. package/esm2022/ellipsis/ellipsis.module.mjs +5 -5
  32. package/esm2022/error-collect/error-collect.component.mjs +6 -6
  33. package/esm2022/error-collect/error-collect.module.mjs +5 -5
  34. package/esm2022/exception/exception.component.mjs +12 -13
  35. package/esm2022/exception/exception.module.mjs +5 -5
  36. package/esm2022/footer-toolbar/footer-toolbar.component.mjs +9 -10
  37. package/esm2022/footer-toolbar/footer-toolbar.module.mjs +5 -5
  38. package/esm2022/full-content/full-content-toggle.directive.mjs +5 -5
  39. package/esm2022/full-content/full-content.component.mjs +6 -6
  40. package/esm2022/full-content/full-content.module.mjs +5 -5
  41. package/esm2022/full-content/full-content.service.mjs +4 -4
  42. package/esm2022/global-footer/global-footer-item.component.mjs +4 -4
  43. package/esm2022/global-footer/global-footer.component.mjs +7 -7
  44. package/esm2022/global-footer/global-footer.module.mjs +5 -5
  45. package/esm2022/hotkey/hotkey.directive.mjs +6 -6
  46. package/esm2022/hotkey/hotkey.module.mjs +6 -6
  47. package/esm2022/let/let.directive.mjs +7 -7
  48. package/esm2022/let/let.module.mjs +6 -6
  49. package/esm2022/loading/loading.component.mjs +5 -5
  50. package/esm2022/loading/loading.module.mjs +5 -5
  51. package/esm2022/loading/loading.service.mjs +6 -6
  52. package/esm2022/lodop/lodop.module.mjs +5 -5
  53. package/esm2022/lodop/lodop.service.mjs +5 -5
  54. package/esm2022/media/media.component.mjs +5 -5
  55. package/esm2022/media/media.module.mjs +5 -5
  56. package/esm2022/media/media.service.mjs +5 -5
  57. package/esm2022/notice-icon/notice-icon-tab.component.mjs +5 -5
  58. package/esm2022/notice-icon/notice-icon.component.mjs +6 -6
  59. package/esm2022/notice-icon/notice-icon.module.mjs +5 -5
  60. package/esm2022/observers/observer-size.mjs +15 -14
  61. package/esm2022/onboarding/onboarding.component.mjs +12 -13
  62. package/esm2022/onboarding/onboarding.module.mjs +5 -5
  63. package/esm2022/onboarding/onboarding.service.mjs +6 -6
  64. package/esm2022/page-header/page-header.component.mjs +7 -7
  65. package/esm2022/page-header/page-header.module.mjs +5 -5
  66. package/esm2022/pdf/pdf.component.mjs +14 -11
  67. package/esm2022/pdf/pdf.module.mjs +5 -5
  68. package/esm2022/qr/qr.component.mjs +10 -7
  69. package/esm2022/qr/qr.module.mjs +5 -5
  70. package/esm2022/quick-menu/quick-menu.component.mjs +5 -5
  71. package/esm2022/quick-menu/quick-menu.module.mjs +5 -5
  72. package/esm2022/result/result.component.mjs +9 -10
  73. package/esm2022/result/result.module.mjs +5 -5
  74. package/esm2022/reuse-tab/provide.mjs +73 -0
  75. package/esm2022/reuse-tab/public_api.mjs +2 -1
  76. package/esm2022/reuse-tab/reuse-tab-context-menu.component.mjs +8 -8
  77. package/esm2022/reuse-tab/reuse-tab-context.component.mjs +7 -6
  78. package/esm2022/reuse-tab/reuse-tab-context.directive.mjs +7 -6
  79. package/esm2022/reuse-tab/reuse-tab-context.service.mjs +5 -5
  80. package/esm2022/reuse-tab/reuse-tab.component.mjs +22 -13
  81. package/esm2022/reuse-tab/reuse-tab.module.mjs +29 -8
  82. package/esm2022/reuse-tab/reuse-tab.service.mjs +6 -6
  83. package/esm2022/se/se-container.component.mjs +22 -19
  84. package/esm2022/se/se.component.mjs +7 -7
  85. package/esm2022/se/se.module.mjs +5 -5
  86. package/esm2022/sg/sg-container.component.mjs +5 -5
  87. package/esm2022/sg/sg.component.mjs +6 -6
  88. package/esm2022/sg/sg.module.mjs +5 -5
  89. package/esm2022/st/provide.mjs +18 -0
  90. package/esm2022/st/public_api.mjs +2 -1
  91. package/esm2022/st/st-column-source.mjs +6 -6
  92. package/esm2022/st/st-data-source.mjs +6 -6
  93. package/esm2022/st/st-export.mjs +6 -6
  94. package/esm2022/st/st-filter.component.mjs +184 -162
  95. package/esm2022/st/st-row.directive.mjs +9 -9
  96. package/esm2022/st/st-widget-host.directive.mjs +5 -5
  97. package/esm2022/st/st-widget.mjs +4 -4
  98. package/esm2022/st/st.component.mjs +13 -13
  99. package/esm2022/st/st.module.mjs +5 -5
  100. package/esm2022/sv/sv-container.component.mjs +21 -17
  101. package/esm2022/sv/sv-value.component.mjs +18 -11
  102. package/esm2022/sv/sv.component.mjs +11 -12
  103. package/esm2022/sv/sv.module.mjs +5 -5
  104. package/esm2022/tag-select/tag-select.component.mjs +8 -9
  105. package/esm2022/tag-select/tag-select.module.mjs +5 -5
  106. package/esm2022/xlsx/xlsx.directive.mjs +7 -6
  107. package/esm2022/xlsx/xlsx.module.mjs +6 -8
  108. package/esm2022/xlsx/xlsx.service.mjs +5 -5
  109. package/esm2022/zip/public_api.mjs +1 -2
  110. package/esm2022/zip/zip.service.mjs +5 -5
  111. package/exception/style/index.less +6 -6
  112. package/fesm2022/auto-focus.mjs +8 -8
  113. package/fesm2022/auto-focus.mjs.map +1 -1
  114. package/fesm2022/avatar-list.mjs +13 -13
  115. package/fesm2022/avatar-list.mjs.map +1 -1
  116. package/fesm2022/cell.mjs +201 -154
  117. package/fesm2022/cell.mjs.map +1 -1
  118. package/fesm2022/chart-observer-size.mjs +14 -13
  119. package/fesm2022/chart-observer-size.mjs.map +1 -1
  120. package/fesm2022/count-down.mjs +14 -11
  121. package/fesm2022/count-down.mjs.map +1 -1
  122. package/fesm2022/date-picker.mjs +22 -26
  123. package/fesm2022/date-picker.mjs.map +1 -1
  124. package/fesm2022/down-file.mjs +8 -8
  125. package/fesm2022/down-file.mjs.map +1 -1
  126. package/fesm2022/ellipsis.mjs +10 -10
  127. package/fesm2022/ellipsis.mjs.map +1 -1
  128. package/fesm2022/error-collect.mjs +10 -10
  129. package/fesm2022/error-collect.mjs.map +1 -1
  130. package/fesm2022/exception.mjs +17 -18
  131. package/fesm2022/exception.mjs.map +1 -1
  132. package/fesm2022/footer-toolbar.mjs +12 -13
  133. package/fesm2022/footer-toolbar.mjs.map +1 -1
  134. package/fesm2022/full-content.mjs +18 -18
  135. package/fesm2022/full-content.mjs.map +1 -1
  136. package/fesm2022/global-footer.mjs +13 -13
  137. package/fesm2022/global-footer.mjs.map +1 -1
  138. package/fesm2022/hotkey.mjs +10 -10
  139. package/fesm2022/hotkey.mjs.map +1 -1
  140. package/fesm2022/let.mjs +11 -11
  141. package/fesm2022/let.mjs.map +1 -1
  142. package/fesm2022/loading.mjs +14 -14
  143. package/fesm2022/loading.mjs.map +1 -1
  144. package/fesm2022/lodop.mjs +8 -8
  145. package/fesm2022/lodop.mjs.map +1 -1
  146. package/fesm2022/media.mjs +13 -13
  147. package/fesm2022/media.mjs.map +1 -1
  148. package/fesm2022/notice-icon.mjs +16 -16
  149. package/fesm2022/notice-icon.mjs.map +1 -1
  150. package/fesm2022/onboarding.mjs +20 -21
  151. package/fesm2022/onboarding.mjs.map +1 -1
  152. package/fesm2022/page-header.mjs +10 -10
  153. package/fesm2022/page-header.mjs.map +1 -1
  154. package/fesm2022/pdf.mjs +19 -16
  155. package/fesm2022/pdf.mjs.map +1 -1
  156. package/fesm2022/qr.mjs +13 -10
  157. package/fesm2022/qr.mjs.map +1 -1
  158. package/fesm2022/quick-menu.mjs +8 -8
  159. package/fesm2022/quick-menu.mjs.map +1 -1
  160. package/fesm2022/result.mjs +13 -14
  161. package/fesm2022/result.mjs.map +1 -1
  162. package/fesm2022/reuse-tab.mjs +148 -52
  163. package/fesm2022/reuse-tab.mjs.map +1 -1
  164. package/fesm2022/se.mjs +36 -32
  165. package/fesm2022/se.mjs.map +1 -1
  166. package/fesm2022/sg.mjs +13 -13
  167. package/fesm2022/sg.mjs.map +1 -1
  168. package/fesm2022/st.mjs +248 -210
  169. package/fesm2022/st.mjs.map +1 -1
  170. package/fesm2022/sv.mjs +50 -38
  171. package/fesm2022/sv.mjs.map +1 -1
  172. package/fesm2022/tag-select.mjs +13 -14
  173. package/fesm2022/tag-select.mjs.map +1 -1
  174. package/fesm2022/xlsx.mjs +15 -16
  175. package/fesm2022/xlsx.mjs.map +1 -1
  176. package/fesm2022/zip.mjs +6 -19
  177. package/fesm2022/zip.mjs.map +1 -1
  178. package/footer-toolbar/style/index.less +1 -1
  179. package/full-content/style/index.less +1 -1
  180. package/global-footer/style/index.less +1 -1
  181. package/hotkey/hotkey.directive.d.ts +1 -1
  182. package/hotkey/hotkey.module.d.ts +1 -1
  183. package/let/let.directive.d.ts +1 -1
  184. package/let/let.module.d.ts +1 -1
  185. package/loading/style/index.less +3 -3
  186. package/notice-icon/style/index.less +7 -7
  187. package/observers/observer-size.d.ts +2 -2
  188. package/onboarding/style/index.less +3 -3
  189. package/package.json +6 -6
  190. package/page-header/style/index.less +4 -4
  191. package/pdf/style/index.less +1 -1
  192. package/quick-menu/style/index.less +2 -2
  193. package/result/style/index.less +7 -7
  194. package/reuse-tab/provide.d.ts +28 -0
  195. package/reuse-tab/public_api.d.ts +1 -0
  196. package/reuse-tab/reuse-tab-context-menu.component.d.ts +1 -1
  197. package/reuse-tab/reuse-tab-context.component.d.ts +1 -1
  198. package/reuse-tab/reuse-tab-context.directive.d.ts +1 -1
  199. package/reuse-tab/reuse-tab.component.d.ts +1 -1
  200. package/reuse-tab/reuse-tab.module.d.ts +12 -12
  201. package/reuse-tab/style/index.less +4 -4
  202. package/se/style/index.less +5 -5
  203. package/st/provide.d.ts +10 -0
  204. package/st/public_api.d.ts +1 -0
  205. package/st/style/index.less +4 -4
  206. package/sv/style/index.less +11 -11
  207. package/tag-select/style/index.less +2 -2
  208. package/tag-select/style/rtl.less +2 -1
  209. package/xlsx/xlsx.directive.d.ts +1 -1
  210. package/xlsx/xlsx.module.d.ts +1 -2
  211. package/zip/public_api.d.ts +0 -1
  212. package/esm2022/zip/zip.module.mjs +0 -15
  213. package/zip/zip.module.d.ts +0 -7
@@ -1,27 +1,26 @@
1
1
  import * as i0 from '@angular/core';
2
- import { EventEmitter, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, Output, Injectable, Directive, InjectionToken, Optional, Inject, inject, DestroyRef, ViewChild, NgModule } from '@angular/core';
2
+ import { EventEmitter, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, Output, Injectable, Directive, InjectionToken, Optional, Inject, DestroyRef, inject, ViewChild, NgModule, ENVIRONMENT_INITIALIZER, makeEnvironmentProviders } from '@angular/core';
3
+ import * as i2 from 'ng-zorro-antd/menu';
4
+ import { NzMenuModule } from 'ng-zorro-antd/menu';
3
5
  import * as i1 from '@delon/theme';
4
6
  import { ALAIN_I18N_TOKEN, DelonLocaleModule } from '@delon/theme';
5
- import * as i5 from '@angular/common';
6
- import { DOCUMENT, CommonModule } from '@angular/common';
7
- import * as i3 from 'ng-zorro-antd/menu';
8
- import { NzMenuModule } from 'ng-zorro-antd/menu';
9
- import { Subject, Subscription, BehaviorSubject, timer, of, filter, debounceTime } from 'rxjs';
7
+ import { Subject, Subscription, BehaviorSubject, timer, filter, of, debounceTime } from 'rxjs';
10
8
  import * as i1$1 from '@angular/cdk/overlay';
11
9
  import { ConnectionPositionPair, OverlayModule } from '@angular/cdk/overlay';
12
10
  import { ComponentPortal } from '@angular/cdk/portal';
13
11
  import { __decorate } from 'tslib';
12
+ import { DOCUMENT, NgTemplateOutlet, CommonModule } from '@angular/common';
14
13
  import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
15
14
  import { InputBoolean, InputNumber } from '@delon/util/decorator';
16
- import * as i2 from '@angular/router';
17
- import { ActivatedRoute, Router, ROUTER_CONFIGURATION, NavigationStart, NavigationEnd, RouterModule } from '@angular/router';
15
+ import * as i6 from 'ng-zorro-antd/icon';
16
+ import { NzIconModule } from 'ng-zorro-antd/icon';
17
+ import * as i5 from 'ng-zorro-antd/tabs';
18
+ import { NzTabsModule } from 'ng-zorro-antd/tabs';
19
+ import * as i2$1 from '@angular/router';
20
+ import { ActivatedRoute, Router, ROUTER_CONFIGURATION, NavigationStart, NavigationEnd, RouterModule, RouteReuseStrategy } from '@angular/router';
18
21
  import { ScrollService } from '@delon/util/browser';
19
- import * as i3$1 from '@angular/cdk/platform';
22
+ import * as i3 from '@angular/cdk/platform';
20
23
  import * as i4 from '@angular/cdk/bidi';
21
- import * as i6 from 'ng-zorro-antd/tabs';
22
- import { NzTabsModule } from 'ng-zorro-antd/tabs';
23
- import * as i7 from 'ng-zorro-antd/icon';
24
- import { NzIconModule } from 'ng-zorro-antd/icon';
25
24
 
26
25
  class ReuseTabContextMenuComponent {
27
26
  set i18n(value) {
@@ -73,16 +72,16 @@ class ReuseTabContextMenuComponent {
73
72
  return;
74
73
  this.notify(null);
75
74
  }
76
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ReuseTabContextMenuComponent, deps: [{ token: i1.DelonLocaleService }], target: i0.ɵɵFactoryTarget.Component }); }
77
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ReuseTabContextMenuComponent, selector: "reuse-tab-context-menu", inputs: { i18n: "i18n", item: "item", event: "event", customContextMenu: "customContextMenu" }, outputs: { close: "close" }, host: { listeners: { "document:click": "closeMenu($event)", "document:contextmenu": "closeMenu($event)" } }, ngImport: i0, template: "<ul nz-menu>\n <li\n *ngIf=\"item.active\"\n nz-menu-item\n (click)=\"click($event, 'refresh')\"\n data-type=\"refresh\"\n [innerHTML]=\"i18n.refresh\"\n ></li>\n <li\n nz-menu-item\n (click)=\"click($event, 'close')\"\n data-type=\"close\"\n [nzDisabled]=\"!item.closable\"\n [innerHTML]=\"i18n.close\"\n ></li>\n <li nz-menu-item (click)=\"click($event, 'closeOther')\" data-type=\"closeOther\" [innerHTML]=\"i18n.closeOther\"></li>\n <li\n nz-menu-item\n (click)=\"click($event, 'closeRight')\"\n data-type=\"closeRight\"\n [nzDisabled]=\"item.last\"\n [innerHTML]=\"i18n.closeRight\"\n ></li>\n <ng-container *ngIf=\"customContextMenu!.length > 0\">\n <li nz-menu-divider></li>\n <li\n *ngFor=\"let i of customContextMenu\"\n nz-menu-item\n [attr.data-type]=\"i.id\"\n [nzDisabled]=\"isDisabled(i)\"\n (click)=\"click($event, 'custom', i)\"\n [innerHTML]=\"i.title\"\n ></li>\n </ng-container>\n</ul>\n", dependencies: [{ kind: "directive", type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "component", type: i3.NzMenuItemComponent, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "directive", type: i3.NzMenuDividerDirective, selector: "[nz-menu-divider]", exportAs: ["nzMenuDivider"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
75
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ReuseTabContextMenuComponent, deps: [{ token: i1.DelonLocaleService }], target: i0.ɵɵFactoryTarget.Component }); }
76
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.4", type: ReuseTabContextMenuComponent, isStandalone: true, selector: "reuse-tab-context-menu", inputs: { i18n: "i18n", item: "item", event: "event", customContextMenu: "customContextMenu" }, outputs: { close: "close" }, host: { listeners: { "document:click": "closeMenu($event)", "document:contextmenu": "closeMenu($event)" } }, ngImport: i0, template: "<ul nz-menu>\n @if (item.active) {\n <li nz-menu-item (click)=\"click($event, 'refresh')\" data-type=\"refresh\" [innerHTML]=\"i18n.refresh\"></li>\n }\n <li\n nz-menu-item\n (click)=\"click($event, 'close')\"\n data-type=\"close\"\n [nzDisabled]=\"!item.closable\"\n [innerHTML]=\"i18n.close\"\n ></li>\n <li nz-menu-item (click)=\"click($event, 'closeOther')\" data-type=\"closeOther\" [innerHTML]=\"i18n.closeOther\"></li>\n <li\n nz-menu-item\n (click)=\"click($event, 'closeRight')\"\n data-type=\"closeRight\"\n [nzDisabled]=\"item.last\"\n [innerHTML]=\"i18n.closeRight\"\n ></li>\n @if (customContextMenu!.length > 0) {\n <li nz-menu-divider></li>\n @for (i of customContextMenu; track $index) {\n <li\n nz-menu-item\n [attr.data-type]=\"i.id\"\n [nzDisabled]=\"isDisabled(i)\"\n (click)=\"click($event, 'custom', i)\"\n [innerHTML]=\"i.title\"\n ></li>\n }\n }\n</ul>\n", dependencies: [{ kind: "ngmodule", type: NzMenuModule }, { kind: "directive", type: i2.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "component", type: i2.NzMenuItemComponent, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "directive", type: i2.NzMenuDividerDirective, selector: "[nz-menu-divider]", exportAs: ["nzMenuDivider"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
78
77
  }
79
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ReuseTabContextMenuComponent, decorators: [{
78
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ReuseTabContextMenuComponent, decorators: [{
80
79
  type: Component,
81
80
  args: [{ selector: 'reuse-tab-context-menu', host: {
82
81
  '(document:click)': 'closeMenu($event)',
83
82
  '(document:contextmenu)': 'closeMenu($event)'
84
- }, preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ul nz-menu>\n <li\n *ngIf=\"item.active\"\n nz-menu-item\n (click)=\"click($event, 'refresh')\"\n data-type=\"refresh\"\n [innerHTML]=\"i18n.refresh\"\n ></li>\n <li\n nz-menu-item\n (click)=\"click($event, 'close')\"\n data-type=\"close\"\n [nzDisabled]=\"!item.closable\"\n [innerHTML]=\"i18n.close\"\n ></li>\n <li nz-menu-item (click)=\"click($event, 'closeOther')\" data-type=\"closeOther\" [innerHTML]=\"i18n.closeOther\"></li>\n <li\n nz-menu-item\n (click)=\"click($event, 'closeRight')\"\n data-type=\"closeRight\"\n [nzDisabled]=\"item.last\"\n [innerHTML]=\"i18n.closeRight\"\n ></li>\n <ng-container *ngIf=\"customContextMenu!.length > 0\">\n <li nz-menu-divider></li>\n <li\n *ngFor=\"let i of customContextMenu\"\n nz-menu-item\n [attr.data-type]=\"i.id\"\n [nzDisabled]=\"isDisabled(i)\"\n (click)=\"click($event, 'custom', i)\"\n [innerHTML]=\"i.title\"\n ></li>\n </ng-container>\n</ul>\n" }]
85
- }], ctorParameters: function () { return [{ type: i1.DelonLocaleService }]; }, propDecorators: { i18n: [{
83
+ }, preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: true, imports: [NzMenuModule], template: "<ul nz-menu>\n @if (item.active) {\n <li nz-menu-item (click)=\"click($event, 'refresh')\" data-type=\"refresh\" [innerHTML]=\"i18n.refresh\"></li>\n }\n <li\n nz-menu-item\n (click)=\"click($event, 'close')\"\n data-type=\"close\"\n [nzDisabled]=\"!item.closable\"\n [innerHTML]=\"i18n.close\"\n ></li>\n <li nz-menu-item (click)=\"click($event, 'closeOther')\" data-type=\"closeOther\" [innerHTML]=\"i18n.closeOther\"></li>\n <li\n nz-menu-item\n (click)=\"click($event, 'closeRight')\"\n data-type=\"closeRight\"\n [nzDisabled]=\"item.last\"\n [innerHTML]=\"i18n.closeRight\"\n ></li>\n @if (customContextMenu!.length > 0) {\n <li nz-menu-divider></li>\n @for (i of customContextMenu; track $index) {\n <li\n nz-menu-item\n [attr.data-type]=\"i.id\"\n [nzDisabled]=\"isDisabled(i)\"\n (click)=\"click($event, 'custom', i)\"\n [innerHTML]=\"i.title\"\n ></li>\n }\n }\n</ul>\n" }]
84
+ }], ctorParameters: () => [{ type: i1.DelonLocaleService }], propDecorators: { i18n: [{
86
85
  type: Input
87
86
  }], item: [{
88
87
  type: Input
@@ -135,12 +134,12 @@ class ReuseTabContextService {
135
134
  }));
136
135
  comp.onDestroy(() => sub$.unsubscribe());
137
136
  }
138
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ReuseTabContextService, deps: [{ token: i1$1.Overlay }], target: i0.ɵɵFactoryTarget.Injectable }); }
139
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ReuseTabContextService }); }
137
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ReuseTabContextService, deps: [{ token: i1$1.Overlay }], target: i0.ɵɵFactoryTarget.Injectable }); }
138
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ReuseTabContextService }); }
140
139
  }
141
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ReuseTabContextService, decorators: [{
140
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ReuseTabContextService, decorators: [{
142
141
  type: Injectable
143
- }], ctorParameters: function () { return [{ type: i1$1.Overlay }]; } });
142
+ }], ctorParameters: () => [{ type: i1$1.Overlay }] });
144
143
 
145
144
  class ReuseTabContextComponent {
146
145
  set i18n(value) {
@@ -156,16 +155,17 @@ class ReuseTabContextComponent {
156
155
  ngOnDestroy() {
157
156
  this.sub$.unsubscribe();
158
157
  }
159
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ReuseTabContextComponent, deps: [{ token: ReuseTabContextService }], target: i0.ɵɵFactoryTarget.Component }); }
160
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ReuseTabContextComponent, selector: "reuse-tab-context", inputs: { i18n: "i18n" }, outputs: { change: "change" }, ngImport: i0, template: ``, isInline: true }); }
158
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ReuseTabContextComponent, deps: [{ token: ReuseTabContextService }], target: i0.ɵɵFactoryTarget.Component }); }
159
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.4", type: ReuseTabContextComponent, isStandalone: true, selector: "reuse-tab-context", inputs: { i18n: "i18n" }, outputs: { change: "change" }, ngImport: i0, template: ``, isInline: true }); }
161
160
  }
162
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ReuseTabContextComponent, decorators: [{
161
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ReuseTabContextComponent, decorators: [{
163
162
  type: Component,
164
163
  args: [{
165
164
  selector: 'reuse-tab-context',
166
- template: ``
165
+ template: ``,
166
+ standalone: true
167
167
  }]
168
- }], ctorParameters: function () { return [{ type: ReuseTabContextService }]; }, propDecorators: { i18n: [{
168
+ }], ctorParameters: () => [{ type: ReuseTabContextService }], propDecorators: { i18n: [{
169
169
  type: Input
170
170
  }], change: [{
171
171
  type: Output
@@ -184,19 +184,20 @@ class ReuseTabContextDirective {
184
184
  event.preventDefault();
185
185
  event.stopPropagation();
186
186
  }
187
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ReuseTabContextDirective, deps: [{ token: ReuseTabContextService }], target: i0.ɵɵFactoryTarget.Directive }); }
188
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: ReuseTabContextDirective, selector: "[reuse-tab-context-menu]", inputs: { item: ["reuse-tab-context-menu", "item"], customContextMenu: "customContextMenu" }, host: { listeners: { "contextmenu": "_onContextMenu($event)" } }, exportAs: ["reuseTabContextMenu"], ngImport: i0 }); }
187
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ReuseTabContextDirective, deps: [{ token: ReuseTabContextService }], target: i0.ɵɵFactoryTarget.Directive }); }
188
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.4", type: ReuseTabContextDirective, isStandalone: true, selector: "[reuse-tab-context-menu]", inputs: { item: ["reuse-tab-context-menu", "item"], customContextMenu: "customContextMenu" }, host: { listeners: { "contextmenu": "_onContextMenu($event)" } }, exportAs: ["reuseTabContextMenu"], ngImport: i0 }); }
189
189
  }
190
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ReuseTabContextDirective, decorators: [{
190
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ReuseTabContextDirective, decorators: [{
191
191
  type: Directive,
192
192
  args: [{
193
193
  selector: '[reuse-tab-context-menu]',
194
194
  exportAs: 'reuseTabContextMenu',
195
195
  host: {
196
196
  '(contextmenu)': '_onContextMenu($event)'
197
- }
197
+ },
198
+ standalone: true
198
199
  }]
199
- }], ctorParameters: function () { return [{ type: ReuseTabContextService }]; }, propDecorators: { item: [{
200
+ }], ctorParameters: () => [{ type: ReuseTabContextService }], propDecorators: { item: [{
200
201
  type: Input,
201
202
  args: ['reuse-tab-context-menu']
202
203
  }], customContextMenu: [{
@@ -796,13 +797,13 @@ class ReuseTabService {
796
797
  _router$.unsubscribe();
797
798
  }
798
799
  }
799
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ReuseTabService, deps: [{ token: i0.Injector }, { token: i1.MenuService }, { token: REUSE_TAB_CACHED_MANAGER, optional: true }, { token: REUSE_TAB_STORAGE_KEY, optional: true }, { token: REUSE_TAB_STORAGE_STATE, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
800
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ReuseTabService, providedIn: 'root' }); }
800
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ReuseTabService, deps: [{ token: i0.Injector }, { token: i1.MenuService }, { token: REUSE_TAB_CACHED_MANAGER, optional: true }, { token: REUSE_TAB_STORAGE_KEY, optional: true }, { token: REUSE_TAB_STORAGE_STATE, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
801
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ReuseTabService, providedIn: 'root' }); }
801
802
  }
802
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ReuseTabService, decorators: [{
803
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ReuseTabService, decorators: [{
803
804
  type: Injectable,
804
805
  args: [{ providedIn: 'root' }]
805
- }], ctorParameters: function () { return [{ type: i0.Injector }, { type: i1.MenuService }, { type: undefined, decorators: [{
806
+ }], ctorParameters: () => [{ type: i0.Injector }, { type: i1.MenuService }, { type: undefined, decorators: [{
806
807
  type: Optional
807
808
  }, {
808
809
  type: Inject,
@@ -817,7 +818,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
817
818
  }, {
818
819
  type: Inject,
819
820
  args: [REUSE_TAB_STORAGE_STATE]
820
- }] }]; } });
821
+ }] }] });
821
822
 
822
823
  class ReuseTabComponent {
823
824
  set keepingScrollContainer(value) {
@@ -1062,8 +1063,8 @@ class ReuseTabComponent {
1062
1063
  this.srv.debug = this.debug;
1063
1064
  this.cdr.detectChanges();
1064
1065
  }
1065
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ReuseTabComponent, deps: [{ token: ReuseTabService }, { token: i0.ChangeDetectorRef }, { token: i2.Router }, { token: i2.ActivatedRoute }, { token: ALAIN_I18N_TOKEN, optional: true }, { token: DOCUMENT }, { token: i3$1.Platform }, { token: i4.Directionality, optional: true }, { token: REUSE_TAB_STORAGE_KEY, optional: true }, { token: REUSE_TAB_STORAGE_STATE, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
1066
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ReuseTabComponent, selector: "reuse-tab, [reuse-tab]", inputs: { mode: "mode", i18n: "i18n", debug: "debug", max: "max", tabMaxWidth: "tabMaxWidth", excludes: "excludes", allowClose: "allowClose", keepingScroll: "keepingScroll", storageState: "storageState", keepingScrollContainer: "keepingScrollContainer", customContextMenu: "customContextMenu", tabBarExtraContent: "tabBarExtraContent", tabBarGutter: "tabBarGutter", tabBarStyle: "tabBarStyle", tabType: "tabType", routeParamMatchMode: "routeParamMatchMode", disabled: "disabled", titleRender: "titleRender", canClose: "canClose" }, outputs: { change: "change", close: "close" }, host: { properties: { "class.reuse-tab": "true", "class.reuse-tab__line": "tabType === 'line'", "class.reuse-tab__card": "tabType === 'card'", "class.reuse-tab__disabled": "disabled", "class.reuse-tab-rtl": "dir === 'rtl'" } }, providers: [ReuseTabContextService], viewQueries: [{ propertyName: "tabset", first: true, predicate: ["tabset"], descendants: true }], exportAs: ["reuseTab"], usesOnChanges: true, ngImport: i0, template: "<nz-tabset\n #tabset\n [nzSelectedIndex]=\"pos\"\n [nzAnimated]=\"false\"\n [nzType]=\"tabType\"\n [nzTabBarExtraContent]=\"tabBarExtraContent\"\n [nzTabBarGutter]=\"tabBarGutter\"\n [nzTabBarStyle]=\"tabBarStyle\"\n>\n <nz-tab *ngFor=\"let i of list; let index = index\" [nzTitle]=\"titleTemplate\" (nzClick)=\"_to(index)\">\n <ng-template #titleTemplate>\n <div\n [reuse-tab-context-menu]=\"i\"\n [customContextMenu]=\"customContextMenu\"\n class=\"reuse-tab__name\"\n [attr.title]=\"i.title\"\n >\n <span [class.reuse-tab__name-width]=\"tabMaxWidth\" [style.max-width.px]=\"tabMaxWidth\">\n <ng-container\n *ngIf=\"titleRender; else defaultTitle\"\n [ngTemplateOutlet]=\"titleRender\"\n [ngTemplateOutletContext]=\"{ $implicit: i }\"\n />\n <ng-template #defaultTitle>{{ i.title }}</ng-template>\n </span>\n </div>\n <i *ngIf=\"i.closable\" nz-icon nzType=\"close\" class=\"reuse-tab__op\" (click)=\"_close($event, index, false)\"></i>\n </ng-template>\n </nz-tab>\n</nz-tabset>\n<reuse-tab-context [i18n]=\"i18n\" (change)=\"contextMenuChange($event)\" />\n", dependencies: [{ kind: "directive", type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i5.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i6.NzTabSetComponent, selector: "nz-tabset", inputs: ["nzSelectedIndex", "nzTabPosition", "nzTabBarExtraContent", "nzCanDeactivate", "nzAddIcon", "nzTabBarStyle", "nzType", "nzSize", "nzAnimated", "nzTabBarGutter", "nzHideAdd", "nzCentered", "nzHideAll", "nzLinkRouter", "nzLinkExact"], outputs: ["nzSelectChange", "nzSelectedIndexChange", "nzTabListScroll", "nzClose", "nzAdd"], exportAs: ["nzTabset"] }, { kind: "component", type: i6.NzTabComponent, selector: "nz-tab", inputs: ["nzTitle", "nzClosable", "nzCloseIcon", "nzDisabled", "nzForceRender"], outputs: ["nzSelect", "nzDeselect", "nzClick", "nzContextmenu"], exportAs: ["nzTab"] }, { kind: "directive", type: i7.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "component", type: ReuseTabContextComponent, selector: "reuse-tab-context", inputs: ["i18n"], outputs: ["change"] }, { kind: "directive", type: ReuseTabContextDirective, selector: "[reuse-tab-context-menu]", inputs: ["reuse-tab-context-menu", "customContextMenu"], exportAs: ["reuseTabContextMenu"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
1066
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ReuseTabComponent, deps: [{ token: ReuseTabService }, { token: i0.ChangeDetectorRef }, { token: i2$1.Router }, { token: i2$1.ActivatedRoute }, { token: ALAIN_I18N_TOKEN, optional: true }, { token: DOCUMENT }, { token: i3.Platform }, { token: i4.Directionality, optional: true }, { token: REUSE_TAB_STORAGE_KEY, optional: true }, { token: REUSE_TAB_STORAGE_STATE, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
1067
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.4", type: ReuseTabComponent, isStandalone: true, selector: "reuse-tab, [reuse-tab]", inputs: { mode: "mode", i18n: "i18n", debug: "debug", max: "max", tabMaxWidth: "tabMaxWidth", excludes: "excludes", allowClose: "allowClose", keepingScroll: "keepingScroll", storageState: "storageState", keepingScrollContainer: "keepingScrollContainer", customContextMenu: "customContextMenu", tabBarExtraContent: "tabBarExtraContent", tabBarGutter: "tabBarGutter", tabBarStyle: "tabBarStyle", tabType: "tabType", routeParamMatchMode: "routeParamMatchMode", disabled: "disabled", titleRender: "titleRender", canClose: "canClose" }, outputs: { change: "change", close: "close" }, host: { properties: { "class.reuse-tab": "true", "class.reuse-tab__line": "tabType === 'line'", "class.reuse-tab__card": "tabType === 'card'", "class.reuse-tab__disabled": "disabled", "class.reuse-tab-rtl": "dir === 'rtl'" } }, providers: [ReuseTabContextService], viewQueries: [{ propertyName: "tabset", first: true, predicate: ["tabset"], descendants: true }], exportAs: ["reuseTab"], usesOnChanges: true, ngImport: i0, template: "<nz-tabset\n #tabset\n [nzSelectedIndex]=\"pos\"\n [nzAnimated]=\"false\"\n [nzType]=\"tabType\"\n [nzTabBarExtraContent]=\"tabBarExtraContent\"\n [nzTabBarGutter]=\"tabBarGutter\"\n [nzTabBarStyle]=\"tabBarStyle\"\n>\n @for (i of list; track $index) {\n <nz-tab [nzTitle]=\"titleTemplate\" (nzClick)=\"_to($index)\">\n <ng-template #titleTemplate>\n <div\n [reuse-tab-context-menu]=\"i\"\n [customContextMenu]=\"customContextMenu\"\n class=\"reuse-tab__name\"\n [attr.title]=\"i.title\"\n >\n <span [class.reuse-tab__name-width]=\"tabMaxWidth\" [style.max-width.px]=\"tabMaxWidth\">\n @if (titleRender) {\n <ng-template [ngTemplateOutlet]=\"titleRender\" [ngTemplateOutletContext]=\"{ $implicit: i }\" />\n } @else {\n {{ i.title }}\n }\n </span>\n </div>\n @if (i.closable) {\n <i nz-icon nzType=\"close\" class=\"reuse-tab__op\" (click)=\"_close($event, $index, false)\"></i>\n }\n </ng-template>\n </nz-tab>\n }\n</nz-tabset>\n<reuse-tab-context [i18n]=\"i18n\" (change)=\"contextMenuChange($event)\" />\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: NzTabsModule }, { kind: "component", type: i5.NzTabSetComponent, selector: "nz-tabset", inputs: ["nzSelectedIndex", "nzTabPosition", "nzTabBarExtraContent", "nzCanDeactivate", "nzAddIcon", "nzTabBarStyle", "nzType", "nzSize", "nzAnimated", "nzTabBarGutter", "nzHideAdd", "nzCentered", "nzHideAll", "nzLinkRouter", "nzLinkExact"], outputs: ["nzSelectChange", "nzSelectedIndexChange", "nzTabListScroll", "nzClose", "nzAdd"], exportAs: ["nzTabset"] }, { kind: "component", type: i5.NzTabComponent, selector: "nz-tab", inputs: ["nzTitle", "nzClosable", "nzCloseIcon", "nzDisabled", "nzForceRender"], outputs: ["nzSelect", "nzDeselect", "nzClick", "nzContextmenu"], exportAs: ["nzTab"] }, { kind: "directive", type: ReuseTabContextDirective, selector: "[reuse-tab-context-menu]", inputs: ["reuse-tab-context-menu", "customContextMenu"], exportAs: ["reuseTabContextMenu"] }, { kind: "component", type: ReuseTabContextComponent, selector: "reuse-tab-context", inputs: ["i18n"], outputs: ["change"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i6.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
1067
1068
  }
1068
1069
  __decorate([
1069
1070
  InputBoolean()
@@ -1086,7 +1087,7 @@ __decorate([
1086
1087
  __decorate([
1087
1088
  InputBoolean()
1088
1089
  ], ReuseTabComponent.prototype, "disabled", void 0);
1089
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ReuseTabComponent, decorators: [{
1090
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ReuseTabComponent, decorators: [{
1090
1091
  type: Component,
1091
1092
  args: [{ selector: 'reuse-tab, [reuse-tab]', exportAs: 'reuseTab', host: {
1092
1093
  '[class.reuse-tab]': 'true',
@@ -1094,8 +1095,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
1094
1095
  '[class.reuse-tab__card]': `tabType === 'card'`,
1095
1096
  '[class.reuse-tab__disabled]': `disabled`,
1096
1097
  '[class.reuse-tab-rtl]': `dir === 'rtl'`
1097
- }, providers: [ReuseTabContextService], preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<nz-tabset\n #tabset\n [nzSelectedIndex]=\"pos\"\n [nzAnimated]=\"false\"\n [nzType]=\"tabType\"\n [nzTabBarExtraContent]=\"tabBarExtraContent\"\n [nzTabBarGutter]=\"tabBarGutter\"\n [nzTabBarStyle]=\"tabBarStyle\"\n>\n <nz-tab *ngFor=\"let i of list; let index = index\" [nzTitle]=\"titleTemplate\" (nzClick)=\"_to(index)\">\n <ng-template #titleTemplate>\n <div\n [reuse-tab-context-menu]=\"i\"\n [customContextMenu]=\"customContextMenu\"\n class=\"reuse-tab__name\"\n [attr.title]=\"i.title\"\n >\n <span [class.reuse-tab__name-width]=\"tabMaxWidth\" [style.max-width.px]=\"tabMaxWidth\">\n <ng-container\n *ngIf=\"titleRender; else defaultTitle\"\n [ngTemplateOutlet]=\"titleRender\"\n [ngTemplateOutletContext]=\"{ $implicit: i }\"\n />\n <ng-template #defaultTitle>{{ i.title }}</ng-template>\n </span>\n </div>\n <i *ngIf=\"i.closable\" nz-icon nzType=\"close\" class=\"reuse-tab__op\" (click)=\"_close($event, index, false)\"></i>\n </ng-template>\n </nz-tab>\n</nz-tabset>\n<reuse-tab-context [i18n]=\"i18n\" (change)=\"contextMenuChange($event)\" />\n" }]
1098
- }], ctorParameters: function () { return [{ type: ReuseTabService }, { type: i0.ChangeDetectorRef }, { type: i2.Router }, { type: i2.ActivatedRoute }, { type: undefined, decorators: [{
1098
+ }, providers: [ReuseTabContextService], preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: true, imports: [
1099
+ NgTemplateOutlet,
1100
+ NzTabsModule,
1101
+ ReuseTabContextMenuComponent,
1102
+ ReuseTabContextDirective,
1103
+ ReuseTabContextComponent,
1104
+ NzIconModule
1105
+ ], template: "<nz-tabset\n #tabset\n [nzSelectedIndex]=\"pos\"\n [nzAnimated]=\"false\"\n [nzType]=\"tabType\"\n [nzTabBarExtraContent]=\"tabBarExtraContent\"\n [nzTabBarGutter]=\"tabBarGutter\"\n [nzTabBarStyle]=\"tabBarStyle\"\n>\n @for (i of list; track $index) {\n <nz-tab [nzTitle]=\"titleTemplate\" (nzClick)=\"_to($index)\">\n <ng-template #titleTemplate>\n <div\n [reuse-tab-context-menu]=\"i\"\n [customContextMenu]=\"customContextMenu\"\n class=\"reuse-tab__name\"\n [attr.title]=\"i.title\"\n >\n <span [class.reuse-tab__name-width]=\"tabMaxWidth\" [style.max-width.px]=\"tabMaxWidth\">\n @if (titleRender) {\n <ng-template [ngTemplateOutlet]=\"titleRender\" [ngTemplateOutletContext]=\"{ $implicit: i }\" />\n } @else {\n {{ i.title }}\n }\n </span>\n </div>\n @if (i.closable) {\n <i nz-icon nzType=\"close\" class=\"reuse-tab__op\" (click)=\"_close($event, $index, false)\"></i>\n }\n </ng-template>\n </nz-tab>\n }\n</nz-tabset>\n<reuse-tab-context [i18n]=\"i18n\" (change)=\"contextMenuChange($event)\" />\n" }]
1106
+ }], ctorParameters: () => [{ type: ReuseTabService }, { type: i0.ChangeDetectorRef }, { type: i2$1.Router }, { type: i2$1.ActivatedRoute }, { type: undefined, decorators: [{
1099
1107
  type: Optional
1100
1108
  }, {
1101
1109
  type: Inject,
@@ -1103,7 +1111,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
1103
1111
  }] }, { type: undefined, decorators: [{
1104
1112
  type: Inject,
1105
1113
  args: [DOCUMENT]
1106
- }] }, { type: i3$1.Platform }, { type: i4.Directionality, decorators: [{
1114
+ }] }, { type: i3.Platform }, { type: i4.Directionality, decorators: [{
1107
1115
  type: Optional
1108
1116
  }] }, { type: undefined, decorators: [{
1109
1117
  type: Optional
@@ -1115,7 +1123,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
1115
1123
  }, {
1116
1124
  type: Inject,
1117
1125
  args: [REUSE_TAB_STORAGE_STATE]
1118
- }] }]; }, propDecorators: { tabset: [{
1126
+ }] }], propDecorators: { tabset: [{
1119
1127
  type: ViewChild,
1120
1128
  args: ['tabset']
1121
1129
  }], mode: [{
@@ -1186,9 +1194,15 @@ class ReuseTabStrategy {
1186
1194
  const COMPONENTS = [ReuseTabComponent];
1187
1195
  const NOEXPORTS = [ReuseTabContextMenuComponent, ReuseTabContextComponent, ReuseTabContextDirective];
1188
1196
  class ReuseTabModule {
1189
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ReuseTabModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1190
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: ReuseTabModule, declarations: [ReuseTabComponent, ReuseTabContextMenuComponent, ReuseTabContextComponent, ReuseTabContextDirective], imports: [CommonModule, RouterModule, DelonLocaleModule, NzMenuModule, NzTabsModule, NzIconModule, OverlayModule], exports: [ReuseTabComponent] }); }
1191
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ReuseTabModule, providers: [
1197
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ReuseTabModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1198
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.4", ngImport: i0, type: ReuseTabModule, imports: [CommonModule,
1199
+ RouterModule,
1200
+ DelonLocaleModule,
1201
+ NzMenuModule,
1202
+ NzTabsModule,
1203
+ NzIconModule,
1204
+ OverlayModule, ReuseTabComponent, ReuseTabContextMenuComponent, ReuseTabContextComponent, ReuseTabContextDirective], exports: [ReuseTabComponent] }); }
1205
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ReuseTabModule, providers: [
1192
1206
  {
1193
1207
  provide: REUSE_TAB_STORAGE_KEY,
1194
1208
  useValue: '_reuse-tab-state'
@@ -1201,13 +1215,28 @@ class ReuseTabModule {
1201
1215
  provide: REUSE_TAB_CACHED_MANAGER,
1202
1216
  useFactory: () => new ReuseTabCachedManagerFactory()
1203
1217
  }
1204
- ], imports: [CommonModule, RouterModule, DelonLocaleModule, NzMenuModule, NzTabsModule, NzIconModule, OverlayModule] }); }
1218
+ ], imports: [CommonModule,
1219
+ RouterModule,
1220
+ DelonLocaleModule,
1221
+ NzMenuModule,
1222
+ NzTabsModule,
1223
+ NzIconModule,
1224
+ OverlayModule, COMPONENTS, ReuseTabContextMenuComponent] }); }
1205
1225
  }
1206
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ReuseTabModule, decorators: [{
1226
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ReuseTabModule, decorators: [{
1207
1227
  type: NgModule,
1208
1228
  args: [{
1209
- imports: [CommonModule, RouterModule, DelonLocaleModule, NzMenuModule, NzTabsModule, NzIconModule, OverlayModule],
1210
- declarations: [...COMPONENTS, ...NOEXPORTS],
1229
+ imports: [
1230
+ CommonModule,
1231
+ RouterModule,
1232
+ DelonLocaleModule,
1233
+ NzMenuModule,
1234
+ NzTabsModule,
1235
+ NzIconModule,
1236
+ OverlayModule,
1237
+ ...COMPONENTS,
1238
+ ...NOEXPORTS
1239
+ ],
1211
1240
  providers: [
1212
1241
  {
1213
1242
  provide: REUSE_TAB_STORAGE_KEY,
@@ -1226,9 +1255,76 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
1226
1255
  }]
1227
1256
  }] });
1228
1257
 
1258
+ var ReuseTabFeatureKind;
1259
+ (function (ReuseTabFeatureKind) {
1260
+ ReuseTabFeatureKind[ReuseTabFeatureKind["CacheManager"] = 0] = "CacheManager";
1261
+ ReuseTabFeatureKind[ReuseTabFeatureKind["Store"] = 1] = "Store";
1262
+ })(ReuseTabFeatureKind || (ReuseTabFeatureKind = {}));
1263
+ function makeFeature(kind, providers) {
1264
+ return {
1265
+ ɵkind: kind,
1266
+ ɵproviders: providers
1267
+ };
1268
+ }
1269
+ /**
1270
+ * Configures reuse-tab to be available for injection.
1271
+ *
1272
+ * @see {@link withLocalStorage}
1273
+ * @see {@link withCacheManager}
1274
+ */
1275
+ function provideReuseTabConfig(options) {
1276
+ const providers = [
1277
+ {
1278
+ provide: REUSE_TAB_STORAGE_KEY,
1279
+ useValue: options?.storeKey ?? '_reuse-tab-state'
1280
+ },
1281
+ (options?.cacheManager ?? withCacheManager()).ɵproviders,
1282
+ (options?.store ?? withLocalStorage()).ɵproviders,
1283
+ {
1284
+ provide: RouteReuseStrategy,
1285
+ useClass: ReuseTabStrategy,
1286
+ deps: [ReuseTabService]
1287
+ },
1288
+ {
1289
+ provide: ENVIRONMENT_INITIALIZER,
1290
+ multi: true,
1291
+ useValue: () => {
1292
+ const srv = inject(ReuseTabService);
1293
+ if (options?.debug)
1294
+ srv.debug = options.debug;
1295
+ if (options?.mode)
1296
+ srv.mode = options.mode;
1297
+ if (options?.routeParamMatchMode)
1298
+ srv.routeParamMatchMode = options.routeParamMatchMode;
1299
+ if (options?.max)
1300
+ srv.max = options.max;
1301
+ if (options?.excludes)
1302
+ srv.excludes = options.excludes;
1303
+ }
1304
+ }
1305
+ ];
1306
+ return makeEnvironmentProviders(providers);
1307
+ }
1308
+ function withCacheManager() {
1309
+ return makeFeature(ReuseTabFeatureKind.CacheManager, [
1310
+ {
1311
+ provide: REUSE_TAB_CACHED_MANAGER,
1312
+ useFactory: () => new ReuseTabCachedManagerFactory()
1313
+ }
1314
+ ]);
1315
+ }
1316
+ function withLocalStorage() {
1317
+ return makeFeature(ReuseTabFeatureKind.Store, [
1318
+ {
1319
+ provide: REUSE_TAB_STORAGE_STATE,
1320
+ useFactory: () => new ReuseTabLocalStorageState()
1321
+ }
1322
+ ]);
1323
+ }
1324
+
1229
1325
  /**
1230
1326
  * Generated bundle index. Do not edit.
1231
1327
  */
1232
1328
 
1233
- export { REUSE_TAB_CACHED_MANAGER, REUSE_TAB_STORAGE_KEY, REUSE_TAB_STORAGE_STATE, ReuseTabComponent, ReuseTabContextComponent, ReuseTabContextDirective, ReuseTabContextMenuComponent, ReuseTabContextService, ReuseTabLocalStorageState, ReuseTabMatchMode, ReuseTabModule, ReuseTabService, ReuseTabStrategy };
1329
+ export { REUSE_TAB_CACHED_MANAGER, REUSE_TAB_STORAGE_KEY, REUSE_TAB_STORAGE_STATE, ReuseTabComponent, ReuseTabContextComponent, ReuseTabContextDirective, ReuseTabContextMenuComponent, ReuseTabContextService, ReuseTabFeatureKind, ReuseTabLocalStorageState, ReuseTabMatchMode, ReuseTabModule, ReuseTabService, ReuseTabStrategy, provideReuseTabConfig, withCacheManager, withLocalStorage };
1234
1330
  //# sourceMappingURL=reuse-tab.mjs.map