@delon/abc 19.0.1 → 19.2.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 (73) hide show
  1. package/auto-focus/auto-focus.directive.d.ts +6 -8
  2. package/cell/cell-host.directive.d.ts +4 -5
  3. package/cell/cell.component.d.ts +13 -22
  4. package/cell/style/index.less +1 -1
  5. package/error-collect/error-collect.component.d.ts +6 -12
  6. package/fesm2022/auto-focus.mjs +22 -22
  7. package/fesm2022/auto-focus.mjs.map +1 -1
  8. package/fesm2022/avatar-list.mjs +10 -10
  9. package/fesm2022/cell.mjs +95 -110
  10. package/fesm2022/cell.mjs.map +1 -1
  11. package/fesm2022/chart-observer-size.mjs +10 -10
  12. package/fesm2022/count-down.mjs +7 -7
  13. package/fesm2022/date-picker.mjs +11 -10
  14. package/fesm2022/date-picker.mjs.map +1 -1
  15. package/fesm2022/down-file.mjs +7 -7
  16. package/fesm2022/ellipsis.mjs +7 -7
  17. package/fesm2022/error-collect.mjs +29 -46
  18. package/fesm2022/error-collect.mjs.map +1 -1
  19. package/fesm2022/exception.mjs +7 -7
  20. package/fesm2022/exception.mjs.map +1 -1
  21. package/fesm2022/footer-toolbar.mjs +7 -7
  22. package/fesm2022/full-content.mjs +14 -14
  23. package/fesm2022/full-content.mjs.map +1 -1
  24. package/fesm2022/global-footer.mjs +10 -10
  25. package/fesm2022/hotkey.mjs +7 -7
  26. package/fesm2022/loading.mjs +10 -10
  27. package/fesm2022/loading.mjs.map +1 -1
  28. package/fesm2022/lodop.mjs +8 -8
  29. package/fesm2022/lodop.mjs.map +1 -1
  30. package/fesm2022/media.mjs +10 -10
  31. package/fesm2022/notice-icon.mjs +16 -22
  32. package/fesm2022/notice-icon.mjs.map +1 -1
  33. package/fesm2022/onboarding.mjs +11 -11
  34. package/fesm2022/onboarding.mjs.map +1 -1
  35. package/fesm2022/page-header.mjs +7 -7
  36. package/fesm2022/pdf.mjs +7 -7
  37. package/fesm2022/quick-menu.mjs +7 -7
  38. package/fesm2022/quick-menu.mjs.map +1 -1
  39. package/fesm2022/result.mjs +7 -7
  40. package/fesm2022/reuse-tab.mjs +22 -22
  41. package/fesm2022/reuse-tab.mjs.map +1 -1
  42. package/fesm2022/se.mjs +15 -15
  43. package/fesm2022/se.mjs.map +1 -1
  44. package/fesm2022/sg.mjs +10 -10
  45. package/fesm2022/st.mjs +52 -43
  46. package/fesm2022/st.mjs.map +1 -1
  47. package/fesm2022/sv.mjs +16 -16
  48. package/fesm2022/sv.mjs.map +1 -1
  49. package/fesm2022/tag-select.mjs +7 -7
  50. package/fesm2022/xlsx.mjs +10 -10
  51. package/fesm2022/xlsx.mjs.map +1 -1
  52. package/fesm2022/zip.mjs +3 -3
  53. package/fesm2022/zip.mjs.map +1 -1
  54. package/footer-toolbar/style/index.less +1 -1
  55. package/loading/loading.types.d.ts +1 -3
  56. package/notice-icon/notice-icon.component.d.ts +6 -11
  57. package/notice-icon/style/index.less +6 -2
  58. package/package.json +4 -4
  59. package/page-header/style/index.less +1 -1
  60. package/quick-menu/quick-menu.component.d.ts +1 -3
  61. package/quick-menu/style/index.less +2 -2
  62. package/result/style/index.less +1 -1
  63. package/reuse-tab/reuse-tab.cache.d.ts +4 -12
  64. package/reuse-tab/reuse-tab.component.d.ts +1 -3
  65. package/se/se.types.d.ts +1 -3
  66. package/st/st.component.d.ts +1 -1
  67. package/st/st.interfaces.d.ts +15 -15
  68. package/st/st.types.d.ts +1 -3
  69. package/st/style/index.less +1 -1
  70. package/sv/style/index.less +1 -1
  71. package/sv/sv-container.component.d.ts +1 -3
  72. package/xlsx/xlsx.service.d.ts +1 -3
  73. package/xlsx/xlsx.types.d.ts +1 -3
@@ -1,12 +1,10 @@
1
- import { AfterViewInit } from '@angular/core';
2
1
  import * as i0 from "@angular/core";
3
- export declare class AutoFocusDirective implements AfterViewInit {
2
+ export declare class AutoFocusDirective {
4
3
  private readonly el;
5
- private readonly platform;
6
- private readonly destroy$;
7
- enabled: import("@angular/core").InputSignalWithTransform<boolean, string | boolean | null | undefined>;
8
- delay: import("@angular/core").InputSignalWithTransform<number, string | number | null | undefined>;
9
- ngAfterViewInit(): void;
4
+ enabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
5
+ delay: import("@angular/core").InputSignalWithTransform<number, unknown>;
6
+ readonly focus: import("@angular/core").OutputEmitterRef<void>;
7
+ constructor();
10
8
  static ɵfac: i0.ɵɵFactoryDeclaration<AutoFocusDirective, never>;
11
- static ɵdir: i0.ɵɵDirectiveDeclaration<AutoFocusDirective, "[auto-focus], input[autofocus=\"autofocus\"], textarea[autofocus=\"autofocus\"]", ["autoFocus"], { "enabled": { "alias": "enabled"; "required": false; "isSignal": true; }; "delay": { "alias": "delay"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
9
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AutoFocusDirective, "[auto-focus], input[autofocus=\"autofocus\"], textarea[autofocus=\"autofocus\"]", ["autoFocus"], { "enabled": { "alias": "enabled"; "required": false; "isSignal": true; }; "delay": { "alias": "delay"; "required": false; "isSignal": true; }; }, { "focus": "focus"; }, never, never, true, never>;
12
10
  }
@@ -1,11 +1,10 @@
1
- import { OnChanges } from '@angular/core';
2
1
  import { CellTextResult } from './cell.types';
3
2
  import * as i0 from "@angular/core";
4
- export declare class CellHostDirective implements OnChanges {
3
+ export declare class CellHostDirective {
5
4
  private readonly srv;
6
5
  private readonly vcr;
7
- data: CellTextResult;
8
- ngOnChanges(): void;
6
+ data: import("@angular/core").InputSignal<CellTextResult>;
7
+ constructor();
9
8
  static ɵfac: i0.ɵɵFactoryDeclaration<CellHostDirective, never>;
10
- static ɵdir: i0.ɵɵDirectiveDeclaration<CellHostDirective, "[cell-widget-host]", never, { "data": { "alias": "data"; "required": false; }; }, {}, never, never, true, never>;
9
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CellHostDirective, "[cell-widget-host]", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
11
10
  }
@@ -1,39 +1,30 @@
1
- import { EventEmitter, OnChanges, OnDestroy, SimpleChange } from '@angular/core';
1
+ import { OnDestroy } from '@angular/core';
2
2
  import type { SafeValue } from '@angular/platform-browser';
3
- import type { NzSafeAny } from 'ng-zorro-antd/core/types';
4
3
  import type { CellOptions, CellTextResult, CellValue } from './cell.types';
5
4
  import * as i0 from "@angular/core";
6
- export declare class CellComponent implements OnChanges, OnDestroy {
5
+ export declare class CellComponent implements OnDestroy {
7
6
  private readonly srv;
8
7
  private readonly router;
9
- private readonly cdr;
10
8
  private readonly renderer;
11
9
  private readonly imgSrv;
12
10
  private readonly win;
13
11
  private readonly el;
14
12
  private destroy$?;
15
- _text: string | SafeValue | string[] | number;
16
- _unit?: string;
17
- res?: CellTextResult;
18
- showDefault: boolean;
19
- value?: CellValue;
20
- readonly valueChange: EventEmitter<any>;
21
- options?: CellOptions;
22
- loading: boolean;
23
- disabled: boolean;
13
+ _text: import("@angular/core").WritableSignal<string | number | SafeValue | string[]>;
14
+ _unit: import("@angular/core").WritableSignal<string | undefined>;
15
+ _res: import("@angular/core").WritableSignal<CellTextResult | undefined>;
16
+ showDefault: import("@angular/core").Signal<boolean>;
17
+ value: import("@angular/core").ModelSignal<CellValue>;
18
+ options: import("@angular/core").InputSignal<CellOptions | undefined>;
19
+ loading: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
20
+ disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
24
21
  get safeOpt(): CellOptions;
25
- get isText(): boolean;
26
- private updateValue;
22
+ isText: import("@angular/core").Signal<boolean>;
23
+ constructor();
27
24
  private setClass;
28
- ngOnChanges(changes: {
29
- [p in keyof CellComponent]?: SimpleChange;
30
- }): void;
31
- change(value: NzSafeAny): void;
32
25
  _link(e: Event): void;
33
26
  _showImg(img: string): void;
34
27
  ngOnDestroy(): void;
35
28
  static ɵfac: i0.ɵɵFactoryDeclaration<CellComponent, never>;
36
- static ɵcmp: i0.ɵɵComponentDeclaration<CellComponent, "cell, [cell]", ["cell"], { "value": { "alias": "value"; "required": false; }; "options": { "alias": "options"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
37
- static ngAcceptInputType_loading: unknown;
38
- static ngAcceptInputType_disabled: unknown;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<CellComponent, "cell, [cell]", ["cell"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
39
30
  }
@@ -40,8 +40,8 @@
40
40
  }
41
41
 
42
42
  .img {
43
- vertical-align: middle;
44
43
  border-radius: 4px;
44
+ vertical-align: middle;
45
45
  }
46
46
 
47
47
  .unit {
@@ -1,29 +1,23 @@
1
- import { Direction } from '@angular/cdk/bidi';
2
1
  import { OnInit } from '@angular/core';
3
2
  import { AlainConfigService } from '@delon/util/config';
4
3
  import * as i0 from "@angular/core";
5
4
  export declare class ErrorCollectComponent implements OnInit {
6
5
  private readonly el;
7
- private readonly cdr;
8
6
  private readonly doc;
9
- private readonly directionality;
10
7
  private readonly platform;
11
8
  private readonly destroy$;
12
9
  private formEl;
13
- _hiden: boolean;
14
- count: number;
15
- dir?: Direction;
16
- freq: number;
17
- offsetTop: number;
10
+ _hiden: import("@angular/core").WritableSignal<boolean>;
11
+ count: import("@angular/core").WritableSignal<number>;
12
+ dir: import("@angular/core").Signal<import("@angular/cdk/bidi-module.d-dc5464ba").a | undefined>;
13
+ readonly freq: import("@angular/core").InputSignalWithTransform<number, unknown>;
14
+ readonly offsetTop: import("@angular/core").InputSignalWithTransform<number, unknown>;
18
15
  constructor(configSrv: AlainConfigService);
19
16
  private get errEls();
20
17
  private update;
21
18
  _click(): boolean;
22
- private install;
23
19
  private findParent;
24
20
  ngOnInit(): void;
25
21
  static ɵfac: i0.ɵɵFactoryDeclaration<ErrorCollectComponent, never>;
26
- static ɵcmp: i0.ɵɵComponentDeclaration<ErrorCollectComponent, "error-collect, [error-collect]", ["errorCollect"], { "freq": { "alias": "freq"; "required": false; }; "offsetTop": { "alias": "offsetTop"; "required": false; }; }, {}, never, never, true, never>;
27
- static ngAcceptInputType_freq: unknown;
28
- static ngAcceptInputType_offsetTop: unknown;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<ErrorCollectComponent, "error-collect, [error-collect]", ["errorCollect"], { "freq": { "alias": "freq"; "required": false; "isSignal": true; }; "offsetTop": { "alias": "offsetTop"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
29
23
  }
@@ -1,42 +1,42 @@
1
- import { Platform } from '@angular/cdk/platform';
2
1
  import * as i0 from '@angular/core';
3
- import { inject, ElementRef, DestroyRef, input, booleanAttribute, numberAttribute, Directive, NgModule } from '@angular/core';
4
- import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
2
+ import { inject, ElementRef, input, booleanAttribute, numberAttribute, output, afterNextRender, Directive, NgModule } from '@angular/core';
5
3
  import { timer, take } from 'rxjs';
6
4
 
7
5
  class AutoFocusDirective {
8
6
  el = inject(ElementRef).nativeElement;
9
- platform = inject(Platform);
10
- destroy$ = inject(DestroyRef);
11
7
  enabled = input(true, { transform: booleanAttribute });
12
- delay = input(300, { transform: numberAttribute });
13
- ngAfterViewInit() {
14
- const el = this.el;
15
- if (!this.platform.isBrowser || !(el instanceof HTMLElement) || !this.enabled()) {
16
- return;
17
- }
18
- timer(this.delay())
19
- .pipe(takeUntilDestroyed(this.destroy$), take(1))
20
- .subscribe(() => el.focus({ preventScroll: false }));
8
+ delay = input(25, { transform: numberAttribute });
9
+ focus = output();
10
+ constructor() {
11
+ afterNextRender(() => {
12
+ if (this.enabled()) {
13
+ timer(this.delay())
14
+ .pipe(take(1))
15
+ .subscribe(() => {
16
+ this.el.focus({ preventScroll: false });
17
+ this.focus.emit();
18
+ });
19
+ }
20
+ });
21
21
  }
22
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: AutoFocusDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
23
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.1.1", type: AutoFocusDirective, isStandalone: true, selector: "[auto-focus], input[autofocus=\"autofocus\"], textarea[autofocus=\"autofocus\"]", inputs: { enabled: { classPropertyName: "enabled", publicName: "enabled", isSignal: true, isRequired: false, transformFunction: null }, delay: { classPropertyName: "delay", publicName: "delay", isSignal: true, isRequired: false, transformFunction: null } }, exportAs: ["autoFocus"], ngImport: i0 });
22
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: AutoFocusDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
23
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.6", type: AutoFocusDirective, isStandalone: true, selector: "[auto-focus], input[autofocus=\"autofocus\"], textarea[autofocus=\"autofocus\"]", inputs: { enabled: { classPropertyName: "enabled", publicName: "enabled", isSignal: true, isRequired: false, transformFunction: null }, delay: { classPropertyName: "delay", publicName: "delay", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { focus: "focus" }, exportAs: ["autoFocus"], ngImport: i0 });
24
24
  }
25
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: AutoFocusDirective, decorators: [{
25
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: AutoFocusDirective, decorators: [{
26
26
  type: Directive,
27
27
  args: [{
28
28
  selector: '[auto-focus], input[autofocus="autofocus"], textarea[autofocus="autofocus"]',
29
29
  exportAs: 'autoFocus'
30
30
  }]
31
- }] });
31
+ }], ctorParameters: () => [] });
32
32
 
33
33
  const COMPONENTS = [AutoFocusDirective];
34
34
  class AutoFocusModule {
35
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: AutoFocusModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
36
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.1", ngImport: i0, type: AutoFocusModule, imports: [AutoFocusDirective], exports: [AutoFocusDirective] });
37
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: AutoFocusModule });
35
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: AutoFocusModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
36
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.6", ngImport: i0, type: AutoFocusModule, imports: [AutoFocusDirective], exports: [AutoFocusDirective] });
37
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: AutoFocusModule });
38
38
  }
39
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: AutoFocusModule, decorators: [{
39
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: AutoFocusModule, decorators: [{
40
40
  type: NgModule,
41
41
  args: [{
42
42
  imports: COMPONENTS,
@@ -1 +1 @@
1
- {"version":3,"file":"auto-focus.mjs","sources":["../../../../packages/abc/auto-focus/auto-focus.directive.ts","../../../../packages/abc/auto-focus/auto-focus.module.ts","../../../../packages/abc/auto-focus/auto-focus.ts"],"sourcesContent":["import { Platform } from '@angular/cdk/platform';\nimport {\n AfterViewInit,\n DestroyRef,\n Directive,\n ElementRef,\n booleanAttribute,\n inject,\n input,\n numberAttribute\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { take, timer } from 'rxjs';\n\n@Directive({\n selector: '[auto-focus], input[autofocus=\"autofocus\"], textarea[autofocus=\"autofocus\"]',\n exportAs: 'autoFocus'\n})\nexport class AutoFocusDirective implements AfterViewInit {\n private readonly el: HTMLElement = inject(ElementRef).nativeElement;\n private readonly platform = inject(Platform);\n private readonly destroy$ = inject(DestroyRef);\n\n enabled = input<boolean, boolean | string | null | undefined>(true, { transform: booleanAttribute });\n delay = input<number, number | string | null | undefined>(300, { transform: numberAttribute });\n\n ngAfterViewInit(): void {\n const el = this.el;\n if (!this.platform.isBrowser || !(el instanceof HTMLElement) || !this.enabled()) {\n return;\n }\n timer(this.delay())\n .pipe(takeUntilDestroyed(this.destroy$), take(1))\n .subscribe(() => el.focus({ preventScroll: false }));\n }\n}\n","import { NgModule } from '@angular/core';\n\nimport { AutoFocusDirective } from './auto-focus.directive';\n\nconst COMPONENTS = [AutoFocusDirective];\n\n@NgModule({\n imports: COMPONENTS,\n exports: COMPONENTS\n})\nexport class AutoFocusModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAkBa,kBAAkB,CAAA;AACZ,IAAA,EAAE,GAAgB,MAAM,CAAC,UAAU,CAAC,CAAC,aAAa;AAClD,IAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC3B,IAAA,QAAQ,GAAG,MAAM,CAAC,UAAU,CAAC;IAE9C,OAAO,GAAG,KAAK,CAA+C,IAAI,EAAE,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC;IACpG,KAAK,GAAG,KAAK,CAA6C,GAAG,EAAE,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;IAE9F,eAAe,GAAA;AACb,QAAA,MAAM,EAAE,GAAG,IAAI,CAAC,EAAE;QAClB,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,IAAI,EAAE,EAAE,YAAY,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE;YAC/E;;AAEF,QAAA,KAAK,CAA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Af,eAAe,EAAA,UAAA,EAAA,CAAA;kBAJ3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,UAAU;AACnB,oBAAA,OAAO,EAAE;AACV,iBAAA;;;ACTD;;AAEG;;;;"}
1
+ {"version":3,"file":"auto-focus.mjs","sources":["../../../../packages/abc/auto-focus/auto-focus.directive.ts","../../../../packages/abc/auto-focus/auto-focus.module.ts","../../../../packages/abc/auto-focus/auto-focus.ts"],"sourcesContent":["import {\n Directive,\n ElementRef,\n afterNextRender,\n booleanAttribute,\n inject,\n input,\n numberAttribute,\n output\n} from '@angular/core';\nimport { take, timer } from 'rxjs';\n\n@Directive({\n selector: '[auto-focus], input[autofocus=\"autofocus\"], textarea[autofocus=\"autofocus\"]',\n exportAs: 'autoFocus'\n})\nexport class AutoFocusDirective {\n private readonly el = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n enabled = input(true, { transform: booleanAttribute });\n delay = input(25, { transform: numberAttribute });\n readonly focus = output();\n\n constructor() {\n afterNextRender(() => {\n if (this.enabled()) {\n timer(this.delay())\n .pipe(take(1))\n .subscribe(() => {\n this.el.focus({ preventScroll: false });\n this.focus.emit();\n });\n }\n });\n }\n}\n","import { NgModule } from '@angular/core';\n\nimport { AutoFocusDirective } from './auto-focus.directive';\n\nconst COMPONENTS = [AutoFocusDirective];\n\n@NgModule({\n imports: COMPONENTS,\n exports: COMPONENTS\n})\nexport class AutoFocusModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAgBa,kBAAkB,CAAA;AACZ,IAAA,EAAE,GAAG,MAAM,CAA0B,UAAU,CAAC,CAAC,aAAa;IAC/E,OAAO,GAAG,KAAK,CAAC,IAAI,EAAE,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC;IACtD,KAAK,GAAG,KAAK,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;IACxC,KAAK,G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;uGAAf,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;wGAAf,eAAe,EAAA,OAAA,EAAA,CANR,kBAAkB,CAAA,EAAA,OAAA,EAAA,CAAlB,kBAAkB,CAAA,EAAA,CAAA;wGAMzB,eAAe,EAAA,CAAA;;2FAAf,eAAe,EAAA,UAAA,EAAA,CAAA;kBAJ3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,UAAU;AACnB,oBAAA,OAAO,EAAE;AACV,iBAAA;;;ACTD;;AAEG;;;;"}
@@ -11,10 +11,10 @@ class AvatarListItemComponent {
11
11
  text;
12
12
  icon;
13
13
  tips;
14
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: AvatarListItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
15
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.1", type: AvatarListItemComponent, isStandalone: true, selector: "avatar-list-item, [avatar-list-item]", inputs: { src: "src", text: "text", icon: "icon", tips: "tips" }, exportAs: ["avatarListItem"], ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
14
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: AvatarListItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
15
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: AvatarListItemComponent, isStandalone: true, selector: "avatar-list-item, [avatar-list-item]", inputs: { src: "src", text: "text", icon: "icon", tips: "tips" }, exportAs: ["avatarListItem"], ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
16
16
  }
17
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: AvatarListItemComponent, decorators: [{
17
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: AvatarListItemComponent, decorators: [{
18
18
  type: Component,
19
19
  args: [{
20
20
  selector: 'avatar-list-item, [avatar-list-item]',
@@ -86,10 +86,10 @@ class AvatarListComponent {
86
86
  this.gen();
87
87
  }
88
88
  }
89
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: AvatarListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
90
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.1", type: AvatarListComponent, isStandalone: true, selector: "avatar-list", inputs: { size: "size", maxLength: ["maxLength", "maxLength", numberAttribute], excessItemsStyle: "excessItemsStyle" }, host: { properties: { "class.avatar-list": "true", "class.avatar-list-rtl": "dir === 'rtl'" } }, queries: [{ propertyName: "_items", predicate: AvatarListItemComponent }], exportAs: ["avatarList"], usesOnChanges: true, ngImport: i0, template: "<ul class=\"avatar-list__wrap\">\n @for (i of items; track $index) {\n <li [class]=\"cls\">\n @if (i.tips) {\n <nz-avatar\n nz-tooltip\n [nzTooltipTitle]=\"i.tips\"\n [nzSrc]=\"i.src\"\n [nzText]=\"i.text\"\n [nzIcon]=\"i.icon\"\n [nzSize]=\"avatarSize\"\n />\n } @else {\n <nz-avatar [nzSrc]=\"i.src\" [nzText]=\"i.text\" [nzIcon]=\"i.icon\" [nzSize]=\"avatarSize\" />\n }\n </li>\n }\n @if (exceedCount > 0) {\n <li [class]=\"cls\">\n <nz-avatar [nzSize]=\"avatarSize\" style=\"cursor: auto\" [style]=\"excessItemsStyle\" [nzText]=\"'+' + exceedCount\" />\n </li>\n }\n</ul>\n", dependencies: [{ kind: "component", type: NzAvatarComponent, selector: "nz-avatar", inputs: ["nzShape", "nzSize", "nzGap", "nzText", "nzSrc", "nzSrcSet", "nzAlt", "nzIcon"], outputs: ["nzError"], exportAs: ["nzAvatar"] }, { kind: "directive", type: NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "cdkConnectedOverlayPush", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
89
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: AvatarListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
90
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.6", type: AvatarListComponent, isStandalone: true, selector: "avatar-list", inputs: { size: "size", maxLength: ["maxLength", "maxLength", numberAttribute], excessItemsStyle: "excessItemsStyle" }, host: { properties: { "class.avatar-list": "true", "class.avatar-list-rtl": "dir === 'rtl'" } }, queries: [{ propertyName: "_items", predicate: AvatarListItemComponent }], exportAs: ["avatarList"], usesOnChanges: true, ngImport: i0, template: "<ul class=\"avatar-list__wrap\">\n @for (i of items; track $index) {\n <li [class]=\"cls\">\n @if (i.tips) {\n <nz-avatar\n nz-tooltip\n [nzTooltipTitle]=\"i.tips\"\n [nzSrc]=\"i.src\"\n [nzText]=\"i.text\"\n [nzIcon]=\"i.icon\"\n [nzSize]=\"avatarSize\"\n />\n } @else {\n <nz-avatar [nzSrc]=\"i.src\" [nzText]=\"i.text\" [nzIcon]=\"i.icon\" [nzSize]=\"avatarSize\" />\n }\n </li>\n }\n @if (exceedCount > 0) {\n <li [class]=\"cls\">\n <nz-avatar [nzSize]=\"avatarSize\" style=\"cursor: auto\" [style]=\"excessItemsStyle\" [nzText]=\"'+' + exceedCount\" />\n </li>\n }\n</ul>\n", dependencies: [{ kind: "component", type: NzAvatarComponent, selector: "nz-avatar", inputs: ["nzShape", "nzSize", "nzGap", "nzText", "nzSrc", "nzSrcSet", "nzAlt", "nzIcon"], outputs: ["nzError"], exportAs: ["nzAvatar"] }, { kind: "directive", type: NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "cdkConnectedOverlayPush", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
91
91
  }
92
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: AvatarListComponent, decorators: [{
92
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: AvatarListComponent, decorators: [{
93
93
  type: Component,
94
94
  args: [{ selector: 'avatar-list', exportAs: 'avatarList', host: {
95
95
  '[class.avatar-list]': 'true',
@@ -112,11 +112,11 @@ const COMPONENTS = [AvatarListComponent, AvatarListItemComponent];
112
112
  * @deprecated Will be removed in v20, Please use `nz-avatar-group` instead.
113
113
  */
114
114
  class AvatarListModule {
115
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: AvatarListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
116
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.1", ngImport: i0, type: AvatarListModule, imports: [CommonModule, NzAvatarModule, NzToolTipModule, AvatarListComponent, AvatarListItemComponent], exports: [AvatarListComponent, AvatarListItemComponent] });
117
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: AvatarListModule, imports: [CommonModule, NzAvatarModule, NzToolTipModule, AvatarListComponent] });
115
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: AvatarListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
116
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.6", ngImport: i0, type: AvatarListModule, imports: [CommonModule, NzAvatarModule, NzToolTipModule, AvatarListComponent, AvatarListItemComponent], exports: [AvatarListComponent, AvatarListItemComponent] });
117
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: AvatarListModule, imports: [CommonModule, NzAvatarModule, NzToolTipModule, AvatarListComponent] });
118
118
  }
119
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: AvatarListModule, decorators: [{
119
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: AvatarListModule, decorators: [{
120
120
  type: NgModule,
121
121
  args: [{
122
122
  imports: [CommonModule, NzAvatarModule, NzToolTipModule, ...COMPONENTS],