@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.
- package/avatar-list/style/index.less +3 -1
- package/cell/cell-host.directive.d.ts +1 -1
- package/cell/cell.component.d.ts +1 -1
- package/cell/cell.module.d.ts +12 -12
- package/cell/index.d.ts +1 -0
- package/cell/provide.d.ts +10 -0
- package/cell/style/index.less +1 -1
- package/down-file/style/index.less +1 -0
- package/ellipsis/style/index.less +2 -2
- package/error-collect/style/index.less +1 -1
- package/error-collect/style/rtl.less +2 -1
- package/esm2022/auto-focus/auto-focus.directive.mjs +5 -5
- package/esm2022/auto-focus/auto-focus.module.mjs +5 -5
- package/esm2022/avatar-list/avatar-list-item.component.mjs +4 -4
- package/esm2022/avatar-list/avatar-list.component.mjs +7 -7
- package/esm2022/avatar-list/avatar-list.module.mjs +5 -5
- package/esm2022/cell/cell-host.directive.mjs +7 -6
- package/esm2022/cell/cell.component.mjs +163 -126
- package/esm2022/cell/cell.module.mjs +10 -9
- package/esm2022/cell/cell.service.mjs +5 -5
- package/esm2022/cell/index.mjs +2 -1
- package/esm2022/cell/provide.mjs +18 -0
- package/esm2022/count-down/count-down.component.mjs +10 -7
- package/esm2022/count-down/count-down.module.mjs +5 -5
- package/esm2022/date-picker/date-picker.module.mjs +5 -5
- package/esm2022/date-picker/range-shortcut.component.mjs +11 -17
- package/esm2022/date-picker/range.directive.mjs +9 -7
- package/esm2022/down-file/down-file.directive.mjs +5 -5
- package/esm2022/down-file/down-file.module.mjs +5 -5
- package/esm2022/ellipsis/ellipsis.component.mjs +7 -7
- package/esm2022/ellipsis/ellipsis.module.mjs +5 -5
- package/esm2022/error-collect/error-collect.component.mjs +6 -6
- package/esm2022/error-collect/error-collect.module.mjs +5 -5
- package/esm2022/exception/exception.component.mjs +12 -13
- package/esm2022/exception/exception.module.mjs +5 -5
- package/esm2022/footer-toolbar/footer-toolbar.component.mjs +9 -10
- package/esm2022/footer-toolbar/footer-toolbar.module.mjs +5 -5
- package/esm2022/full-content/full-content-toggle.directive.mjs +5 -5
- package/esm2022/full-content/full-content.component.mjs +6 -6
- package/esm2022/full-content/full-content.module.mjs +5 -5
- package/esm2022/full-content/full-content.service.mjs +4 -4
- package/esm2022/global-footer/global-footer-item.component.mjs +4 -4
- package/esm2022/global-footer/global-footer.component.mjs +7 -7
- package/esm2022/global-footer/global-footer.module.mjs +5 -5
- package/esm2022/hotkey/hotkey.directive.mjs +6 -6
- package/esm2022/hotkey/hotkey.module.mjs +6 -6
- package/esm2022/let/let.directive.mjs +7 -7
- package/esm2022/let/let.module.mjs +6 -6
- package/esm2022/loading/loading.component.mjs +5 -5
- package/esm2022/loading/loading.module.mjs +5 -5
- package/esm2022/loading/loading.service.mjs +6 -6
- package/esm2022/lodop/lodop.module.mjs +5 -5
- package/esm2022/lodop/lodop.service.mjs +5 -5
- package/esm2022/media/media.component.mjs +5 -5
- package/esm2022/media/media.module.mjs +5 -5
- package/esm2022/media/media.service.mjs +5 -5
- package/esm2022/notice-icon/notice-icon-tab.component.mjs +5 -5
- package/esm2022/notice-icon/notice-icon.component.mjs +6 -6
- package/esm2022/notice-icon/notice-icon.module.mjs +5 -5
- package/esm2022/observers/observer-size.mjs +15 -14
- package/esm2022/onboarding/onboarding.component.mjs +12 -13
- package/esm2022/onboarding/onboarding.module.mjs +5 -5
- package/esm2022/onboarding/onboarding.service.mjs +6 -6
- package/esm2022/page-header/page-header.component.mjs +7 -7
- package/esm2022/page-header/page-header.module.mjs +5 -5
- package/esm2022/pdf/pdf.component.mjs +14 -11
- package/esm2022/pdf/pdf.module.mjs +5 -5
- package/esm2022/qr/qr.component.mjs +10 -7
- package/esm2022/qr/qr.module.mjs +5 -5
- package/esm2022/quick-menu/quick-menu.component.mjs +5 -5
- package/esm2022/quick-menu/quick-menu.module.mjs +5 -5
- package/esm2022/result/result.component.mjs +9 -10
- package/esm2022/result/result.module.mjs +5 -5
- package/esm2022/reuse-tab/provide.mjs +73 -0
- package/esm2022/reuse-tab/public_api.mjs +2 -1
- package/esm2022/reuse-tab/reuse-tab-context-menu.component.mjs +8 -8
- package/esm2022/reuse-tab/reuse-tab-context.component.mjs +7 -6
- package/esm2022/reuse-tab/reuse-tab-context.directive.mjs +7 -6
- package/esm2022/reuse-tab/reuse-tab-context.service.mjs +5 -5
- package/esm2022/reuse-tab/reuse-tab.component.mjs +22 -13
- package/esm2022/reuse-tab/reuse-tab.module.mjs +29 -8
- package/esm2022/reuse-tab/reuse-tab.service.mjs +6 -6
- package/esm2022/se/se-container.component.mjs +22 -19
- package/esm2022/se/se.component.mjs +7 -7
- package/esm2022/se/se.module.mjs +5 -5
- package/esm2022/sg/sg-container.component.mjs +5 -5
- package/esm2022/sg/sg.component.mjs +6 -6
- package/esm2022/sg/sg.module.mjs +5 -5
- package/esm2022/st/provide.mjs +18 -0
- package/esm2022/st/public_api.mjs +2 -1
- package/esm2022/st/st-column-source.mjs +6 -6
- package/esm2022/st/st-data-source.mjs +6 -6
- package/esm2022/st/st-export.mjs +6 -6
- package/esm2022/st/st-filter.component.mjs +184 -162
- package/esm2022/st/st-row.directive.mjs +9 -9
- package/esm2022/st/st-widget-host.directive.mjs +5 -5
- package/esm2022/st/st-widget.mjs +4 -4
- package/esm2022/st/st.component.mjs +13 -13
- package/esm2022/st/st.module.mjs +5 -5
- package/esm2022/sv/sv-container.component.mjs +21 -17
- package/esm2022/sv/sv-value.component.mjs +18 -11
- package/esm2022/sv/sv.component.mjs +11 -12
- package/esm2022/sv/sv.module.mjs +5 -5
- package/esm2022/tag-select/tag-select.component.mjs +8 -9
- package/esm2022/tag-select/tag-select.module.mjs +5 -5
- package/esm2022/xlsx/xlsx.directive.mjs +7 -6
- package/esm2022/xlsx/xlsx.module.mjs +6 -8
- package/esm2022/xlsx/xlsx.service.mjs +5 -5
- package/esm2022/zip/public_api.mjs +1 -2
- package/esm2022/zip/zip.service.mjs +5 -5
- package/exception/style/index.less +6 -6
- package/fesm2022/auto-focus.mjs +8 -8
- package/fesm2022/auto-focus.mjs.map +1 -1
- package/fesm2022/avatar-list.mjs +13 -13
- package/fesm2022/avatar-list.mjs.map +1 -1
- package/fesm2022/cell.mjs +201 -154
- package/fesm2022/cell.mjs.map +1 -1
- package/fesm2022/chart-observer-size.mjs +14 -13
- package/fesm2022/chart-observer-size.mjs.map +1 -1
- package/fesm2022/count-down.mjs +14 -11
- package/fesm2022/count-down.mjs.map +1 -1
- package/fesm2022/date-picker.mjs +22 -26
- package/fesm2022/date-picker.mjs.map +1 -1
- package/fesm2022/down-file.mjs +8 -8
- package/fesm2022/down-file.mjs.map +1 -1
- package/fesm2022/ellipsis.mjs +10 -10
- package/fesm2022/ellipsis.mjs.map +1 -1
- package/fesm2022/error-collect.mjs +10 -10
- package/fesm2022/error-collect.mjs.map +1 -1
- package/fesm2022/exception.mjs +17 -18
- package/fesm2022/exception.mjs.map +1 -1
- package/fesm2022/footer-toolbar.mjs +12 -13
- package/fesm2022/footer-toolbar.mjs.map +1 -1
- package/fesm2022/full-content.mjs +18 -18
- package/fesm2022/full-content.mjs.map +1 -1
- package/fesm2022/global-footer.mjs +13 -13
- package/fesm2022/global-footer.mjs.map +1 -1
- package/fesm2022/hotkey.mjs +10 -10
- package/fesm2022/hotkey.mjs.map +1 -1
- package/fesm2022/let.mjs +11 -11
- package/fesm2022/let.mjs.map +1 -1
- package/fesm2022/loading.mjs +14 -14
- package/fesm2022/loading.mjs.map +1 -1
- package/fesm2022/lodop.mjs +8 -8
- package/fesm2022/lodop.mjs.map +1 -1
- package/fesm2022/media.mjs +13 -13
- package/fesm2022/media.mjs.map +1 -1
- package/fesm2022/notice-icon.mjs +16 -16
- package/fesm2022/notice-icon.mjs.map +1 -1
- package/fesm2022/onboarding.mjs +20 -21
- package/fesm2022/onboarding.mjs.map +1 -1
- package/fesm2022/page-header.mjs +10 -10
- package/fesm2022/page-header.mjs.map +1 -1
- package/fesm2022/pdf.mjs +19 -16
- package/fesm2022/pdf.mjs.map +1 -1
- package/fesm2022/qr.mjs +13 -10
- package/fesm2022/qr.mjs.map +1 -1
- package/fesm2022/quick-menu.mjs +8 -8
- package/fesm2022/quick-menu.mjs.map +1 -1
- package/fesm2022/result.mjs +13 -14
- package/fesm2022/result.mjs.map +1 -1
- package/fesm2022/reuse-tab.mjs +148 -52
- package/fesm2022/reuse-tab.mjs.map +1 -1
- package/fesm2022/se.mjs +36 -32
- package/fesm2022/se.mjs.map +1 -1
- package/fesm2022/sg.mjs +13 -13
- package/fesm2022/sg.mjs.map +1 -1
- package/fesm2022/st.mjs +248 -210
- package/fesm2022/st.mjs.map +1 -1
- package/fesm2022/sv.mjs +50 -38
- package/fesm2022/sv.mjs.map +1 -1
- package/fesm2022/tag-select.mjs +13 -14
- package/fesm2022/tag-select.mjs.map +1 -1
- package/fesm2022/xlsx.mjs +15 -16
- package/fesm2022/xlsx.mjs.map +1 -1
- package/fesm2022/zip.mjs +6 -19
- package/fesm2022/zip.mjs.map +1 -1
- package/footer-toolbar/style/index.less +1 -1
- package/full-content/style/index.less +1 -1
- package/global-footer/style/index.less +1 -1
- package/hotkey/hotkey.directive.d.ts +1 -1
- package/hotkey/hotkey.module.d.ts +1 -1
- package/let/let.directive.d.ts +1 -1
- package/let/let.module.d.ts +1 -1
- package/loading/style/index.less +3 -3
- package/notice-icon/style/index.less +7 -7
- package/observers/observer-size.d.ts +2 -2
- package/onboarding/style/index.less +3 -3
- package/package.json +6 -6
- package/page-header/style/index.less +4 -4
- package/pdf/style/index.less +1 -1
- package/quick-menu/style/index.less +2 -2
- package/result/style/index.less +7 -7
- package/reuse-tab/provide.d.ts +28 -0
- package/reuse-tab/public_api.d.ts +1 -0
- package/reuse-tab/reuse-tab-context-menu.component.d.ts +1 -1
- package/reuse-tab/reuse-tab-context.component.d.ts +1 -1
- package/reuse-tab/reuse-tab-context.directive.d.ts +1 -1
- package/reuse-tab/reuse-tab.component.d.ts +1 -1
- package/reuse-tab/reuse-tab.module.d.ts +12 -12
- package/reuse-tab/style/index.less +4 -4
- package/se/style/index.less +5 -5
- package/st/provide.d.ts +10 -0
- package/st/public_api.d.ts +1 -0
- package/st/style/index.less +4 -4
- package/sv/style/index.less +11 -11
- package/tag-select/style/index.less +2 -2
- package/tag-select/style/rtl.less +2 -1
- package/xlsx/xlsx.directive.d.ts +1 -1
- package/xlsx/xlsx.module.d.ts +1 -2
- package/zip/public_api.d.ts +0 -1
- package/esm2022/zip/zip.module.mjs +0 -15
- 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
|
|
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: "
|
|
186
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
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: "
|
|
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:
|
|
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: "
|
|
212
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
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: "
|
|
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:
|
|
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.
|
|
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: "
|
|
322
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
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
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
[
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
[
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
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
|
-
|
|
375
|
-
|
|
376
|
-
|
|
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
|
-
|
|
379
|
-
|
|
383
|
+
}
|
|
384
|
+
}
|
|
380
385
|
</ng-template>
|
|
381
|
-
|
|
382
|
-
|
|
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: "
|
|
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
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
[
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
[
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
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
|
-
|
|
447
|
-
|
|
448
|
-
|
|
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
|
-
|
|
451
|
-
|
|
464
|
+
}
|
|
465
|
+
}
|
|
452
466
|
</ng-template>
|
|
453
|
-
|
|
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:
|
|
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
|
-
}] }]
|
|
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: "
|
|
478
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
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: "
|
|
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: "
|
|
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
|