@delon/abc 16.4.3 → 17.0.1

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
package/fesm2022/cell.mjs CHANGED
@@ -1,36 +1,35 @@
1
1
  import { __decorate } from 'tslib';
2
+ import { NgTemplateOutlet, CommonModule } from '@angular/common';
2
3
  import * as i0 from '@angular/core';
3
- import { Injectable, Directive, Input, EventEmitter, Component, ChangeDetectionStrategy, ViewEncapsulation, Inject, Output, NgModule } from '@angular/core';
4
+ import { Injectable, Directive, Input, EventEmitter, Component, ChangeDetectionStrategy, ViewEncapsulation, Inject, Output, NgModule, ENVIRONMENT_INITIALIZER, inject, makeEnvironmentProviders } from '@angular/core';
5
+ import * as i4$1 from '@angular/forms';
6
+ import { FormsModule } from '@angular/forms';
4
7
  import { updateHostClass } from '@delon/util/browser';
5
8
  import { InputBoolean } from '@delon/util/decorator';
6
9
  import { WINDOW } from '@delon/util/token';
7
- import { of, map } from 'rxjs';
10
+ import * as i9 from 'ng-zorro-antd/badge';
11
+ import { NzBadgeModule } from 'ng-zorro-antd/badge';
12
+ import * as i5 from 'ng-zorro-antd/checkbox';
13
+ import { NzCheckboxModule } from 'ng-zorro-antd/checkbox';
14
+ import * as i7 from 'ng-zorro-antd/icon';
15
+ import { NzIconModule } from 'ng-zorro-antd/icon';
16
+ import * as i6 from 'ng-zorro-antd/radio';
17
+ import { NzRadioModule } from 'ng-zorro-antd/radio';
18
+ import * as i8 from 'ng-zorro-antd/tag';
19
+ import { NzTagModule } from 'ng-zorro-antd/tag';
20
+ import * as i10 from 'ng-zorro-antd/tooltip';
21
+ import { NzToolTipModule } from 'ng-zorro-antd/tooltip';
22
+ import { deepMerge, warn } from '@delon/util/other';
23
+ import { map, of } from 'rxjs';
8
24
  import { yn } from '@delon/theme';
9
25
  import { formatDate } from '@delon/util/date-time';
10
26
  import * as i3 from '@delon/util/format';
11
27
  import { formatMask } from '@delon/util/format';
12
- import { deepMerge, warn } from '@delon/util/other';
13
28
  import * as i1 from '@delon/util/config';
14
29
  import * as i2 from 'ng-zorro-antd/i18n';
15
30
  import * as i4 from '@angular/platform-browser';
16
31
  import * as i2$1 from '@angular/router';
17
32
  import * as i3$1 from 'ng-zorro-antd/image';
18
- import * as i4$1 from '@angular/common';
19
- import { CommonModule } from '@angular/common';
20
- import * as i5 from '@angular/forms';
21
- import { FormsModule } from '@angular/forms';
22
- import * as i6 from 'ng-zorro-antd/checkbox';
23
- import { NzCheckboxModule } from 'ng-zorro-antd/checkbox';
24
- import * as i7 from 'ng-zorro-antd/radio';
25
- import { NzRadioModule } from 'ng-zorro-antd/radio';
26
- import * as i8 from 'ng-zorro-antd/badge';
27
- import { NzBadgeModule } from 'ng-zorro-antd/badge';
28
- import * as i9 from 'ng-zorro-antd/tag';
29
- import { NzTagModule } from 'ng-zorro-antd/tag';
30
- import * as i10 from 'ng-zorro-antd/tooltip';
31
- import { NzToolTipModule } from 'ng-zorro-antd/tooltip';
32
- import * as i11 from 'ng-zorro-antd/icon';
33
- import { NzIconModule } from 'ng-zorro-antd/icon';
34
33
  import { NzImageModule } from 'ng-zorro-antd/experimental/image';
35
34
 
36
35
  class CellService {
@@ -182,13 +181,13 @@ class CellService {
182
181
  return res;
183
182
  }));
184
183
  }
185
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CellService, deps: [{ token: i1.AlainConfigService }, { token: i2.NzI18nService }, { token: i3.CurrencyService }, { token: i4.DomSanitizer }], target: i0.ɵɵFactoryTarget.Injectable }); }
186
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CellService, providedIn: 'root' }); }
184
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: CellService, deps: [{ token: i1.AlainConfigService }, { token: i2.NzI18nService }, { token: i3.CurrencyService }, { token: i4.DomSanitizer }], target: i0.ɵɵFactoryTarget.Injectable }); }
185
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: CellService, providedIn: 'root' }); }
187
186
  }
188
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CellService, decorators: [{
187
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: CellService, decorators: [{
189
188
  type: Injectable,
190
189
  args: [{ providedIn: 'root' }]
191
- }], ctorParameters: function () { return [{ type: i1.AlainConfigService }, { type: i2.NzI18nService }, { type: i3.CurrencyService }, { type: i4.DomSanitizer }]; } });
190
+ }], ctorParameters: () => [{ type: i1.AlainConfigService }, { type: i2.NzI18nService }, { type: i3.CurrencyService }, { type: i4.DomSanitizer }] });
192
191
 
193
192
  class CellHostDirective {
194
193
  constructor(srv, viewContainerRef) {
@@ -208,15 +207,16 @@ class CellHostDirective {
208
207
  const componentRef = this.viewContainerRef.createComponent(componentType);
209
208
  componentRef.instance.data = this.data;
210
209
  }
211
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CellHostDirective, deps: [{ token: CellService }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
212
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: CellHostDirective, selector: "[cell-widget-host]", inputs: { data: "data" }, ngImport: i0 }); }
210
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: CellHostDirective, deps: [{ token: CellService }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
211
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.4", type: CellHostDirective, isStandalone: true, selector: "[cell-widget-host]", inputs: { data: "data" }, ngImport: i0 }); }
213
212
  }
214
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CellHostDirective, decorators: [{
213
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: CellHostDirective, decorators: [{
215
214
  type: Directive,
216
215
  args: [{
217
- selector: '[cell-widget-host]'
216
+ selector: '[cell-widget-host]',
217
+ standalone: true
218
218
  }]
219
- }], ctorParameters: function () { return [{ type: CellService }, { type: i0.ViewContainerRef }]; }, propDecorators: { data: [{
219
+ }], ctorParameters: () => [{ type: CellService }, { type: i0.ViewContainerRef }], propDecorators: { data: [{
220
220
  type: Input
221
221
  }] } });
222
222
 
@@ -261,7 +261,7 @@ class CellComponent {
261
261
  }
262
262
  setClass() {
263
263
  const { el, renderer } = this;
264
- const { renderType, size } = this.safeOpt;
264
+ const { renderType, size, type } = this.safeOpt;
265
265
  updateHostClass(el.nativeElement, renderer, {
266
266
  [`cell`]: true,
267
267
  [`cell__${renderType}`]: renderType != null,
@@ -270,7 +270,7 @@ class CellComponent {
270
270
  [`cell__has-default`]: this.showDefault,
271
271
  [`cell__disabled`]: this.disabled
272
272
  });
273
- el.nativeElement.dataset.type = this.safeOpt.type;
273
+ el.nativeElement.setAttribute('data-type', `${type}`);
274
274
  }
275
275
  ngOnChanges(changes) {
276
276
  // Do not call updateValue when only updating loading, disabled
@@ -318,68 +318,77 @@ class CellComponent {
318
318
  ngOnDestroy() {
319
319
  this.destroy$?.unsubscribe();
320
320
  }
321
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CellComponent, deps: [{ token: CellService }, { token: i2$1.Router }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i3$1.NzImageService }, { token: WINDOW }], target: i0.ɵɵFactoryTarget.Component }); }
322
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: CellComponent, selector: "cell, [cell]", inputs: { value: "value", options: "options", loading: "loading", disabled: "disabled" }, outputs: { valueChange: "valueChange" }, exportAs: ["cell"], usesOnChanges: true, ngImport: i0, template: `
321
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: CellComponent, deps: [{ token: CellService }, { token: i2$1.Router }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i3$1.NzImageService }, { token: WINDOW }], target: i0.ɵɵFactoryTarget.Component }); }
322
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.4", type: CellComponent, isStandalone: true, selector: "cell, [cell]", inputs: { value: "value", options: "options", loading: "loading", disabled: "disabled" }, outputs: { valueChange: "valueChange" }, exportAs: ["cell"], usesOnChanges: true, ngImport: i0, template: `
323
323
  <ng-template #text>
324
- <ng-container [ngSwitch]="safeOpt.type">
325
- <label
326
- *ngSwitchCase="'checkbox'"
327
- nz-checkbox
328
- [nzDisabled]="disabled"
329
- [ngModel]="value"
330
- (ngModelChange)="change($event)"
331
- >
332
- {{ safeOpt.checkbox?.label }}
333
- </label>
334
- <label
335
- *ngSwitchCase="'radio'"
336
- nz-radio
337
- [nzDisabled]="disabled"
338
- [ngModel]="value"
339
- (ngModelChange)="change($event)"
340
- >
341
- {{ safeOpt.radio?.label }}
342
- </label>
343
- <a
344
- *ngSwitchCase="'link'"
345
- (click)="_link($event)"
346
- [attr.target]="safeOpt.link?.target"
347
- [attr.title]="value"
348
- [innerHTML]="_text"
349
- ></a>
350
- <nz-tag *ngSwitchCase="'tag'" [nzColor]="res?.result?.color">
351
- <span [innerHTML]="_text"></span>
352
- </nz-tag>
353
- <nz-badge *ngSwitchCase="'badge'" [nzStatus]="res?.result?.color" nzText="{{ _text }}" />
354
- <ng-template *ngSwitchCase="'widget'" cell-widget-host [data]="hostData" />
355
- <ng-container *ngSwitchCase="'img'">
356
- <img
357
- *ngFor="let i of $any(_text)"
358
- [attr.src]="i"
359
- [attr.height]="safeOpt.img?.size"
360
- [attr.width]="safeOpt.img?.size"
361
- (click)="_showImg(i)"
362
- class="img"
363
- [class.point]="safeOpt.img?.big"
364
- />
365
- </ng-container>
366
- <ng-container *ngSwitchDefault>
367
- <span *ngIf="!isText" [innerHTML]="_text" [attr.title]="value"></span>
368
- <span *ngIf="isText" [innerText]="_text" [attr.title]="value"></span>
369
- <span *ngIf="_unit" class="unit">{{ _unit }}</span>
370
- </ng-container>
371
- </ng-container>
324
+ @switch (safeOpt.type) {
325
+ @case ('checkbox') {
326
+ <label nz-checkbox [nzDisabled]="disabled" [ngModel]="value" (ngModelChange)="change($event)">
327
+ {{ safeOpt.checkbox?.label }}
328
+ </label>
329
+ }
330
+ @case ('radio') {
331
+ <label nz-radio [nzDisabled]="disabled" [ngModel]="value" (ngModelChange)="change($event)">
332
+ {{ safeOpt.radio?.label }}
333
+ </label>
334
+ }
335
+ @case ('link') {
336
+ <a (click)="_link($event)" [attr.target]="safeOpt.link?.target" [attr.title]="value" [innerHTML]="_text"></a>
337
+ }
338
+ @case ('tag') {
339
+ <nz-tag [nzColor]="res?.result?.color">
340
+ <span [innerHTML]="_text"></span>
341
+ </nz-tag>
342
+ }
343
+ @case ('badge') {
344
+ <nz-badge [nzStatus]="res?.result?.color" nzText="{{ _text }}" />
345
+ }
346
+ @case ('widget') {
347
+ <ng-template cell-widget-host [data]="hostData" />
348
+ }
349
+ @case ('img') {
350
+ @for (i of $any(_text); track $index) {
351
+ <img
352
+ [attr.src]="i"
353
+ [attr.height]="safeOpt.img?.size"
354
+ [attr.width]="safeOpt.img?.size"
355
+ (click)="_showImg(i)"
356
+ class="img"
357
+ [class.point]="safeOpt.img?.big"
358
+ />
359
+ }
360
+ }
361
+ @default {
362
+ @if (isText) {
363
+ <span [innerText]="_text" [attr.title]="value"></span>
364
+ } @else {
365
+ <span [innerHTML]="_text" [attr.title]="value"></span>
366
+ }
367
+ @if (_unit) {
368
+ <span class="unit">{{ _unit }}</span>
369
+ }
370
+ }
371
+ }
372
372
  </ng-template>
373
373
  <ng-template #textWrap>
374
- <ng-container *ngIf="showDefault">{{ safeOpt.default?.text }}</ng-container>
375
- <ng-container *ngIf="!showDefault">
376
- <span *ngIf="safeOpt.tooltip; else text" [nz-tooltip]="safeOpt.tooltip">
374
+ @if (showDefault) {
375
+ {{ safeOpt.default?.text }}
376
+ } @else {
377
+ @if (safeOpt.tooltip) {
378
+ <span [nz-tooltip]="safeOpt.tooltip">
379
+ <ng-template [ngTemplateOutlet]="text" />
380
+ </span>
381
+ } @else {
377
382
  <ng-template [ngTemplateOutlet]="text" />
378
- </span>
379
- </ng-container>
383
+ }
384
+ }
380
385
  </ng-template>
381
- <span *ngIf="loading; else textWrap" nz-icon nzType="loading"></span>
382
- `, isInline: true, dependencies: [{ kind: "directive", type: i4$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i4$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i4$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i4$1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "directive", type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i6.NzCheckboxComponent, selector: "[nz-checkbox]", inputs: ["nzValue", "nzAutoFocus", "nzDisabled", "nzIndeterminate", "nzChecked", "nzId"], outputs: ["nzCheckedChange"], exportAs: ["nzCheckbox"] }, { kind: "component", type: i7.NzRadioComponent, selector: "[nz-radio],[nz-radio-button]", inputs: ["nzValue", "nzDisabled", "nzAutoFocus"], exportAs: ["nzRadio"] }, { kind: "component", type: i8.NzBadgeComponent, selector: "nz-badge", inputs: ["nzShowZero", "nzShowDot", "nzStandalone", "nzDot", "nzOverflowCount", "nzColor", "nzStyle", "nzText", "nzTitle", "nzStatus", "nzCount", "nzOffset", "nzSize"], exportAs: ["nzBadge"] }, { kind: "component", type: i9.NzTagComponent, selector: "nz-tag", inputs: ["nzMode", "nzColor", "nzChecked"], outputs: ["nzOnClose", "nzCheckedChange"], exportAs: ["nzTag"] }, { kind: "directive", type: i10.NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }, { kind: "directive", type: i11.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: CellHostDirective, selector: "[cell-widget-host]", inputs: ["data"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
386
+ @if (loading) {
387
+ <span nz-icon nzType="loading"></span>
388
+ } @else {
389
+ <ng-template [ngTemplateOutlet]="textWrap" />
390
+ }
391
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i4$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: NzCheckboxModule }, { kind: "component", type: i5.NzCheckboxComponent, selector: "[nz-checkbox]", inputs: ["nzValue", "nzAutoFocus", "nzDisabled", "nzIndeterminate", "nzChecked", "nzId"], outputs: ["nzCheckedChange"], exportAs: ["nzCheckbox"] }, { kind: "ngmodule", type: NzRadioModule }, { kind: "component", type: i6.NzRadioComponent, selector: "[nz-radio],[nz-radio-button]", inputs: ["nzValue", "nzDisabled", "nzAutoFocus"], exportAs: ["nzRadio"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i7.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzTagModule }, { kind: "component", type: i8.NzTagComponent, selector: "nz-tag", inputs: ["nzMode", "nzColor", "nzChecked"], outputs: ["nzOnClose", "nzCheckedChange"], exportAs: ["nzTag"] }, { kind: "ngmodule", type: NzBadgeModule }, { kind: "component", type: i9.NzBadgeComponent, selector: "nz-badge", inputs: ["nzShowZero", "nzShowDot", "nzStandalone", "nzDot", "nzOverflowCount", "nzColor", "nzStyle", "nzText", "nzTitle", "nzStatus", "nzCount", "nzOffset", "nzSize"], exportAs: ["nzBadge"] }, { kind: "ngmodule", type: NzToolTipModule }, { kind: "directive", type: i10.NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "cdkConnectedOverlayPush", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }, { kind: "directive", type: CellHostDirective, selector: "[cell-widget-host]", inputs: ["data"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
383
392
  }
384
393
  __decorate([
385
394
  InputBoolean()
@@ -387,80 +396,101 @@ __decorate([
387
396
  __decorate([
388
397
  InputBoolean()
389
398
  ], CellComponent.prototype, "disabled", void 0);
390
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CellComponent, decorators: [{
399
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: CellComponent, decorators: [{
391
400
  type: Component,
392
401
  args: [{
393
402
  selector: 'cell, [cell]',
394
403
  template: `
395
404
  <ng-template #text>
396
- <ng-container [ngSwitch]="safeOpt.type">
397
- <label
398
- *ngSwitchCase="'checkbox'"
399
- nz-checkbox
400
- [nzDisabled]="disabled"
401
- [ngModel]="value"
402
- (ngModelChange)="change($event)"
403
- >
404
- {{ safeOpt.checkbox?.label }}
405
- </label>
406
- <label
407
- *ngSwitchCase="'radio'"
408
- nz-radio
409
- [nzDisabled]="disabled"
410
- [ngModel]="value"
411
- (ngModelChange)="change($event)"
412
- >
413
- {{ safeOpt.radio?.label }}
414
- </label>
415
- <a
416
- *ngSwitchCase="'link'"
417
- (click)="_link($event)"
418
- [attr.target]="safeOpt.link?.target"
419
- [attr.title]="value"
420
- [innerHTML]="_text"
421
- ></a>
422
- <nz-tag *ngSwitchCase="'tag'" [nzColor]="res?.result?.color">
423
- <span [innerHTML]="_text"></span>
424
- </nz-tag>
425
- <nz-badge *ngSwitchCase="'badge'" [nzStatus]="res?.result?.color" nzText="{{ _text }}" />
426
- <ng-template *ngSwitchCase="'widget'" cell-widget-host [data]="hostData" />
427
- <ng-container *ngSwitchCase="'img'">
428
- <img
429
- *ngFor="let i of $any(_text)"
430
- [attr.src]="i"
431
- [attr.height]="safeOpt.img?.size"
432
- [attr.width]="safeOpt.img?.size"
433
- (click)="_showImg(i)"
434
- class="img"
435
- [class.point]="safeOpt.img?.big"
436
- />
437
- </ng-container>
438
- <ng-container *ngSwitchDefault>
439
- <span *ngIf="!isText" [innerHTML]="_text" [attr.title]="value"></span>
440
- <span *ngIf="isText" [innerText]="_text" [attr.title]="value"></span>
441
- <span *ngIf="_unit" class="unit">{{ _unit }}</span>
442
- </ng-container>
443
- </ng-container>
405
+ @switch (safeOpt.type) {
406
+ @case ('checkbox') {
407
+ <label nz-checkbox [nzDisabled]="disabled" [ngModel]="value" (ngModelChange)="change($event)">
408
+ {{ safeOpt.checkbox?.label }}
409
+ </label>
410
+ }
411
+ @case ('radio') {
412
+ <label nz-radio [nzDisabled]="disabled" [ngModel]="value" (ngModelChange)="change($event)">
413
+ {{ safeOpt.radio?.label }}
414
+ </label>
415
+ }
416
+ @case ('link') {
417
+ <a (click)="_link($event)" [attr.target]="safeOpt.link?.target" [attr.title]="value" [innerHTML]="_text"></a>
418
+ }
419
+ @case ('tag') {
420
+ <nz-tag [nzColor]="res?.result?.color">
421
+ <span [innerHTML]="_text"></span>
422
+ </nz-tag>
423
+ }
424
+ @case ('badge') {
425
+ <nz-badge [nzStatus]="res?.result?.color" nzText="{{ _text }}" />
426
+ }
427
+ @case ('widget') {
428
+ <ng-template cell-widget-host [data]="hostData" />
429
+ }
430
+ @case ('img') {
431
+ @for (i of $any(_text); track $index) {
432
+ <img
433
+ [attr.src]="i"
434
+ [attr.height]="safeOpt.img?.size"
435
+ [attr.width]="safeOpt.img?.size"
436
+ (click)="_showImg(i)"
437
+ class="img"
438
+ [class.point]="safeOpt.img?.big"
439
+ />
440
+ }
441
+ }
442
+ @default {
443
+ @if (isText) {
444
+ <span [innerText]="_text" [attr.title]="value"></span>
445
+ } @else {
446
+ <span [innerHTML]="_text" [attr.title]="value"></span>
447
+ }
448
+ @if (_unit) {
449
+ <span class="unit">{{ _unit }}</span>
450
+ }
451
+ }
452
+ }
444
453
  </ng-template>
445
454
  <ng-template #textWrap>
446
- <ng-container *ngIf="showDefault">{{ safeOpt.default?.text }}</ng-container>
447
- <ng-container *ngIf="!showDefault">
448
- <span *ngIf="safeOpt.tooltip; else text" [nz-tooltip]="safeOpt.tooltip">
455
+ @if (showDefault) {
456
+ {{ safeOpt.default?.text }}
457
+ } @else {
458
+ @if (safeOpt.tooltip) {
459
+ <span [nz-tooltip]="safeOpt.tooltip">
460
+ <ng-template [ngTemplateOutlet]="text" />
461
+ </span>
462
+ } @else {
449
463
  <ng-template [ngTemplateOutlet]="text" />
450
- </span>
451
- </ng-container>
464
+ }
465
+ }
452
466
  </ng-template>
453
- <span *ngIf="loading; else textWrap" nz-icon nzType="loading"></span>
467
+ @if (loading) {
468
+ <span nz-icon nzType="loading"></span>
469
+ } @else {
470
+ <ng-template [ngTemplateOutlet]="textWrap" />
471
+ }
454
472
  `,
455
473
  exportAs: 'cell',
456
474
  preserveWhitespaces: false,
457
475
  changeDetection: ChangeDetectionStrategy.OnPush,
458
- encapsulation: ViewEncapsulation.None
476
+ encapsulation: ViewEncapsulation.None,
477
+ standalone: true,
478
+ imports: [
479
+ FormsModule,
480
+ NgTemplateOutlet,
481
+ NzCheckboxModule,
482
+ NzRadioModule,
483
+ NzIconModule,
484
+ NzTagModule,
485
+ NzBadgeModule,
486
+ NzToolTipModule,
487
+ CellHostDirective
488
+ ]
459
489
  }]
460
- }], ctorParameters: function () { return [{ type: CellService }, { type: i2$1.Router }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i3$1.NzImageService }, { type: undefined, decorators: [{
490
+ }], ctorParameters: () => [{ type: CellService }, { type: i2$1.Router }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i3$1.NzImageService }, { type: undefined, decorators: [{
461
491
  type: Inject,
462
492
  args: [WINDOW]
463
- }] }]; }, propDecorators: { value: [{
493
+ }] }], propDecorators: { value: [{
464
494
  type: Input
465
495
  }], valueChange: [{
466
496
  type: Output
@@ -474,8 +504,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
474
504
 
475
505
  const COMPS = [CellComponent];
476
506
  class CellModule {
477
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CellModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
478
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: CellModule, declarations: [CellComponent, CellHostDirective], imports: [CommonModule,
507
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: CellModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
508
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.4", ngImport: i0, type: CellModule, imports: [CommonModule,
479
509
  FormsModule,
480
510
  NzCheckboxModule,
481
511
  NzRadioModule,
@@ -483,8 +513,8 @@ class CellModule {
483
513
  NzTagModule,
484
514
  NzToolTipModule,
485
515
  NzIconModule,
486
- NzImageModule], exports: [CellComponent] }); }
487
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CellModule, imports: [CommonModule,
516
+ NzImageModule, CellComponent, CellHostDirective], exports: [CellComponent] }); }
517
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: CellModule, imports: [CommonModule,
488
518
  FormsModule,
489
519
  NzCheckboxModule,
490
520
  NzRadioModule,
@@ -492,9 +522,9 @@ class CellModule {
492
522
  NzTagModule,
493
523
  NzToolTipModule,
494
524
  NzIconModule,
495
- NzImageModule] }); }
525
+ NzImageModule, COMPS] }); }
496
526
  }
497
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CellModule, decorators: [{
527
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: CellModule, decorators: [{
498
528
  type: NgModule,
499
529
  args: [{
500
530
  imports: [
@@ -506,16 +536,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
506
536
  NzTagModule,
507
537
  NzToolTipModule,
508
538
  NzIconModule,
509
- NzImageModule
539
+ NzImageModule,
540
+ ...COMPS,
541
+ CellHostDirective
510
542
  ],
511
- declarations: [...COMPS, CellHostDirective],
512
543
  exports: COMPS
513
544
  }]
514
545
  }] });
515
546
 
547
+ /**
548
+ * Just only using Standalone widgets
549
+ */
550
+ function provideCellWidgets(...widgets) {
551
+ return makeEnvironmentProviders([
552
+ {
553
+ provide: ENVIRONMENT_INITIALIZER,
554
+ multi: true,
555
+ useValue: () => {
556
+ const srv = inject(CellService);
557
+ widgets.forEach(widget => srv.registerWidget(widget.KEY, widget.type));
558
+ }
559
+ }
560
+ ]);
561
+ }
562
+
516
563
  /**
517
564
  * Generated bundle index. Do not edit.
518
565
  */
519
566
 
520
- export { CellComponent, CellHostDirective, CellModule, CellService };
567
+ export { CellComponent, CellHostDirective, CellModule, CellService, provideCellWidgets };
521
568
  //# sourceMappingURL=cell.mjs.map