@delon/abc 16.1.0 → 16.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.
- package/esm2022/auto-focus/auto-focus.directive.mjs +5 -6
- package/esm2022/auto-focus/auto-focus.module.mjs +6 -7
- package/esm2022/avatar-list/avatar-list-item.component.mjs +5 -6
- package/esm2022/avatar-list/avatar-list.component.mjs +5 -6
- package/esm2022/avatar-list/avatar-list.module.mjs +6 -7
- package/esm2022/count-down/count-down.component.mjs +5 -6
- package/esm2022/count-down/count-down.module.mjs +6 -7
- package/esm2022/date-picker/date-picker.module.mjs +6 -7
- package/esm2022/date-picker/range-shortcut.component.mjs +5 -6
- package/esm2022/date-picker/range.directive.mjs +5 -6
- package/esm2022/down-file/down-file.directive.mjs +5 -6
- package/esm2022/down-file/down-file.module.mjs +6 -7
- package/esm2022/ellipsis/ellipsis.component.mjs +5 -6
- package/esm2022/ellipsis/ellipsis.module.mjs +6 -7
- package/esm2022/error-collect/error-collect.component.mjs +5 -6
- package/esm2022/error-collect/error-collect.module.mjs +6 -7
- package/esm2022/exception/exception.component.mjs +5 -6
- package/esm2022/exception/exception.module.mjs +6 -7
- package/esm2022/footer-toolbar/footer-toolbar.component.mjs +5 -6
- package/esm2022/footer-toolbar/footer-toolbar.module.mjs +6 -7
- package/esm2022/full-content/full-content-toggle.directive.mjs +5 -6
- package/esm2022/full-content/full-content.component.mjs +5 -6
- package/esm2022/full-content/full-content.module.mjs +6 -7
- package/esm2022/full-content/full-content.service.mjs +5 -6
- package/esm2022/global-footer/global-footer-item.component.mjs +5 -6
- package/esm2022/global-footer/global-footer.component.mjs +5 -6
- package/esm2022/global-footer/global-footer.module.mjs +6 -7
- package/esm2022/hotkey/hotkey.directive.mjs +5 -6
- package/esm2022/hotkey/hotkey.module.mjs +6 -7
- package/esm2022/let/let.directive.mjs +5 -6
- package/esm2022/let/let.module.mjs +6 -7
- package/esm2022/loading/loading.component.mjs +5 -6
- package/esm2022/loading/loading.module.mjs +6 -7
- package/esm2022/loading/loading.service.mjs +5 -6
- package/esm2022/lodop/lodop.module.mjs +6 -7
- package/esm2022/lodop/lodop.service.mjs +5 -6
- package/esm2022/media/media.component.mjs +5 -6
- package/esm2022/media/media.module.mjs +6 -7
- package/esm2022/media/media.service.mjs +5 -6
- package/esm2022/notice-icon/notice-icon-tab.component.mjs +5 -6
- package/esm2022/notice-icon/notice-icon.component.mjs +5 -6
- package/esm2022/notice-icon/notice-icon.module.mjs +6 -7
- package/esm2022/observers/observer-size.mjs +14 -17
- package/esm2022/onboarding/onboarding.component.mjs +5 -6
- package/esm2022/onboarding/onboarding.module.mjs +6 -7
- package/esm2022/onboarding/onboarding.service.mjs +12 -14
- package/esm2022/page-header/page-header.component.mjs +5 -6
- package/esm2022/page-header/page-header.module.mjs +6 -7
- package/esm2022/pdf/pdf.component.mjs +5 -6
- package/esm2022/pdf/pdf.module.mjs +6 -7
- package/esm2022/qr/qr.component.mjs +5 -6
- package/esm2022/qr/qr.module.mjs +6 -7
- package/esm2022/quick-menu/quick-menu.component.mjs +5 -6
- package/esm2022/quick-menu/quick-menu.module.mjs +6 -7
- package/esm2022/result/result.component.mjs +5 -6
- package/esm2022/result/result.module.mjs +6 -7
- package/esm2022/reuse-tab/reuse-tab-context-menu.component.mjs +5 -6
- package/esm2022/reuse-tab/reuse-tab-context.component.mjs +5 -6
- package/esm2022/reuse-tab/reuse-tab-context.directive.mjs +5 -6
- package/esm2022/reuse-tab/reuse-tab-context.service.mjs +5 -6
- package/esm2022/reuse-tab/reuse-tab.component.mjs +5 -6
- package/esm2022/reuse-tab/reuse-tab.module.mjs +6 -7
- package/esm2022/reuse-tab/reuse-tab.service.mjs +8 -8
- package/esm2022/se/se-container.component.mjs +9 -11
- package/esm2022/se/se.component.mjs +7 -7
- package/esm2022/se/se.module.mjs +6 -7
- package/esm2022/sg/sg-container.component.mjs +5 -6
- package/esm2022/sg/sg.component.mjs +7 -7
- package/esm2022/sg/sg.module.mjs +6 -7
- package/esm2022/st/st-column-source.mjs +6 -7
- package/esm2022/st/st-data-source.mjs +19 -8
- package/esm2022/st/st-export.mjs +5 -6
- package/esm2022/st/st-filter.component.mjs +5 -6
- package/esm2022/st/st-row.directive.mjs +9 -11
- package/esm2022/st/st-widget-host.directive.mjs +5 -6
- package/esm2022/st/st-widget.mjs +5 -6
- package/esm2022/st/st.component.mjs +26 -19
- package/esm2022/st/st.interfaces.mjs +1 -1
- package/esm2022/st/st.module.mjs +6 -7
- package/esm2022/st/st.types.mjs +1 -1
- package/esm2022/sv/sv-container.component.mjs +19 -15
- package/esm2022/sv/sv-value.component.mjs +5 -6
- package/esm2022/sv/sv.component.mjs +7 -7
- package/esm2022/sv/sv.module.mjs +6 -7
- package/esm2022/tag-select/tag-select.component.mjs +5 -6
- package/esm2022/tag-select/tag-select.module.mjs +6 -7
- package/esm2022/xlsx/xlsx.directive.mjs +5 -6
- package/esm2022/xlsx/xlsx.module.mjs +6 -7
- package/esm2022/xlsx/xlsx.service.mjs +5 -6
- package/esm2022/zip/zip.module.mjs +6 -7
- package/esm2022/zip/zip.service.mjs +5 -6
- package/fesm2022/auto-focus.mjs +7 -7
- package/fesm2022/auto-focus.mjs.map +1 -1
- package/fesm2022/avatar-list.mjs +10 -10
- package/fesm2022/avatar-list.mjs.map +1 -1
- package/fesm2022/chart-observer-size.mjs +10 -10
- package/fesm2022/chart-observer-size.mjs.map +1 -1
- package/fesm2022/count-down.mjs +7 -7
- package/fesm2022/count-down.mjs.map +1 -1
- package/fesm2022/date-picker.mjs +10 -10
- package/fesm2022/date-picker.mjs.map +1 -1
- package/fesm2022/down-file.mjs +7 -7
- package/fesm2022/down-file.mjs.map +1 -1
- package/fesm2022/ellipsis.mjs +7 -7
- package/fesm2022/ellipsis.mjs.map +1 -1
- package/fesm2022/error-collect.mjs +7 -7
- package/fesm2022/error-collect.mjs.map +1 -1
- package/fesm2022/exception.mjs +7 -7
- package/fesm2022/exception.mjs.map +1 -1
- package/fesm2022/footer-toolbar.mjs +7 -7
- package/fesm2022/footer-toolbar.mjs.map +1 -1
- package/fesm2022/full-content.mjs +13 -13
- package/fesm2022/full-content.mjs.map +1 -1
- package/fesm2022/global-footer.mjs +10 -10
- package/fesm2022/global-footer.mjs.map +1 -1
- package/fesm2022/hotkey.mjs +7 -7
- package/fesm2022/hotkey.mjs.map +1 -1
- package/fesm2022/let.mjs +7 -7
- package/fesm2022/let.mjs.map +1 -1
- package/fesm2022/loading.mjs +10 -10
- package/fesm2022/loading.mjs.map +1 -1
- package/fesm2022/lodop.mjs +7 -7
- package/fesm2022/lodop.mjs.map +1 -1
- package/fesm2022/media.mjs +10 -10
- package/fesm2022/media.mjs.map +1 -1
- package/fesm2022/notice-icon.mjs +10 -10
- package/fesm2022/notice-icon.mjs.map +1 -1
- package/fesm2022/onboarding.mjs +17 -18
- package/fesm2022/onboarding.mjs.map +1 -1
- package/fesm2022/page-header.mjs +7 -7
- package/fesm2022/page-header.mjs.map +1 -1
- package/fesm2022/pdf.mjs +7 -7
- package/fesm2022/pdf.mjs.map +1 -1
- package/fesm2022/qr.mjs +7 -7
- package/fesm2022/qr.mjs.map +1 -1
- package/fesm2022/quick-menu.mjs +7 -7
- package/fesm2022/quick-menu.mjs.map +1 -1
- package/fesm2022/result.mjs +7 -7
- package/fesm2022/result.mjs.map +1 -1
- package/fesm2022/reuse-tab.mjs +25 -24
- package/fesm2022/reuse-tab.mjs.map +1 -1
- package/fesm2022/se.mjs +15 -14
- package/fesm2022/se.mjs.map +1 -1
- package/fesm2022/sg.mjs +12 -11
- package/fesm2022/sg.mjs.map +1 -1
- package/fesm2022/st.mjs +66 -45
- package/fesm2022/st.mjs.map +1 -1
- package/fesm2022/sv.mjs +28 -21
- package/fesm2022/sv.mjs.map +1 -1
- package/fesm2022/tag-select.mjs +7 -7
- package/fesm2022/tag-select.mjs.map +1 -1
- package/fesm2022/xlsx.mjs +10 -10
- package/fesm2022/xlsx.mjs.map +1 -1
- package/fesm2022/zip.mjs +7 -7
- package/fesm2022/zip.mjs.map +1 -1
- package/onboarding/onboarding.service.d.ts +3 -5
- package/package.json +5 -5
- package/sg/sg-container.component.d.ts +1 -1
- package/st/st-data-source.d.ts +2 -1
- package/st/st.interfaces.d.ts +11 -4
- package/st/st.types.d.ts +8 -1
- package/sv/sv-container.component.d.ts +6 -3
package/fesm2022/reuse-tab.mjs
CHANGED
|
@@ -72,10 +72,10 @@ class ReuseTabContextMenuComponent {
|
|
|
72
72
|
return;
|
|
73
73
|
this.notify(null);
|
|
74
74
|
}
|
|
75
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
76
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.
|
|
75
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: ReuseTabContextMenuComponent, deps: [{ token: i1.DelonLocaleService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
76
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.6", type: ReuseTabContextMenuComponent, selector: "reuse-tab-context-menu", inputs: { i18n: "i18n", item: "item", event: "event", customContextMenu: "customContextMenu" }, outputs: { close: "close" }, host: { listeners: { "document:click": "closeMenu($event)", "document:contextmenu": "closeMenu($event)" } }, ngImport: i0, template: "<ul nz-menu>\n <li\n *ngIf=\"item.active\"\n nz-menu-item\n (click)=\"click($event, 'refresh')\"\n data-type=\"refresh\"\n [innerHTML]=\"i18n.refresh\"\n ></li>\n <li\n nz-menu-item\n (click)=\"click($event, 'close')\"\n data-type=\"close\"\n [nzDisabled]=\"!item.closable\"\n [innerHTML]=\"i18n.close\"\n ></li>\n <li nz-menu-item (click)=\"click($event, 'closeOther')\" data-type=\"closeOther\" [innerHTML]=\"i18n.closeOther\"></li>\n <li\n nz-menu-item\n (click)=\"click($event, 'closeRight')\"\n data-type=\"closeRight\"\n [nzDisabled]=\"item.last\"\n [innerHTML]=\"i18n.closeRight\"\n ></li>\n <ng-container *ngIf=\"customContextMenu!.length > 0\">\n <li nz-menu-divider></li>\n <li\n *ngFor=\"let i of customContextMenu\"\n nz-menu-item\n [attr.data-type]=\"i.id\"\n [nzDisabled]=\"isDisabled(i)\"\n (click)=\"click($event, 'custom', i)\"\n [innerHTML]=\"i.title\"\n ></li>\n </ng-container>\n</ul>\n", dependencies: [{ kind: "directive", type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "directive", type: i3.NzMenuItemDirective, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "directive", type: i3.NzMenuDividerDirective, selector: "[nz-menu-divider]", exportAs: ["nzMenuDivider"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
77
77
|
}
|
|
78
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
78
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: ReuseTabContextMenuComponent, decorators: [{
|
|
79
79
|
type: Component,
|
|
80
80
|
args: [{ selector: 'reuse-tab-context-menu', host: {
|
|
81
81
|
'(document:click)': 'closeMenu($event)',
|
|
@@ -134,10 +134,10 @@ class ReuseTabContextService {
|
|
|
134
134
|
}));
|
|
135
135
|
comp.onDestroy(() => sub$.unsubscribe());
|
|
136
136
|
}
|
|
137
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
138
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
137
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: ReuseTabContextService, deps: [{ token: i1$1.Overlay }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
138
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: ReuseTabContextService }); }
|
|
139
139
|
}
|
|
140
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
140
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: ReuseTabContextService, decorators: [{
|
|
141
141
|
type: Injectable
|
|
142
142
|
}], ctorParameters: function () { return [{ type: i1$1.Overlay }]; } });
|
|
143
143
|
|
|
@@ -155,10 +155,10 @@ class ReuseTabContextComponent {
|
|
|
155
155
|
ngOnDestroy() {
|
|
156
156
|
this.sub$.unsubscribe();
|
|
157
157
|
}
|
|
158
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
159
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.
|
|
158
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: ReuseTabContextComponent, deps: [{ token: ReuseTabContextService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
159
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.6", type: ReuseTabContextComponent, selector: "reuse-tab-context", inputs: { i18n: "i18n" }, outputs: { change: "change" }, ngImport: i0, template: ``, isInline: true }); }
|
|
160
160
|
}
|
|
161
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
161
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: ReuseTabContextComponent, decorators: [{
|
|
162
162
|
type: Component,
|
|
163
163
|
args: [{
|
|
164
164
|
selector: 'reuse-tab-context',
|
|
@@ -183,10 +183,10 @@ class ReuseTabContextDirective {
|
|
|
183
183
|
event.preventDefault();
|
|
184
184
|
event.stopPropagation();
|
|
185
185
|
}
|
|
186
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
187
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
|
186
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: ReuseTabContextDirective, deps: [{ token: ReuseTabContextService }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
187
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.6", type: ReuseTabContextDirective, selector: "[reuse-tab-context-menu]", inputs: { item: ["reuse-tab-context-menu", "item"], customContextMenu: "customContextMenu" }, host: { listeners: { "contextmenu": "_onContextMenu($event)" } }, exportAs: ["reuseTabContextMenu"], ngImport: i0 }); }
|
|
188
188
|
}
|
|
189
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
189
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: ReuseTabContextDirective, decorators: [{
|
|
190
190
|
type: Directive,
|
|
191
191
|
args: [{
|
|
192
192
|
selector: '[reuse-tab-context-menu]',
|
|
@@ -313,8 +313,6 @@ class ReuseTabService {
|
|
|
313
313
|
}
|
|
314
314
|
/** 自定义当前标题 */
|
|
315
315
|
set title(value) {
|
|
316
|
-
if (this.cached == null)
|
|
317
|
-
return;
|
|
318
316
|
const url = this.curUrl;
|
|
319
317
|
if (typeof value === 'string')
|
|
320
318
|
value = { text: value };
|
|
@@ -590,6 +588,9 @@ class ReuseTabService {
|
|
|
590
588
|
/** 排除规则,限 `mode=URL` */
|
|
591
589
|
this.excludes = [];
|
|
592
590
|
this.storageState = false;
|
|
591
|
+
if (this.cached == null) {
|
|
592
|
+
this.cached = { list: [], title: {}, closable: {} };
|
|
593
|
+
}
|
|
593
594
|
}
|
|
594
595
|
init() {
|
|
595
596
|
this.initScroll();
|
|
@@ -794,10 +795,10 @@ class ReuseTabService {
|
|
|
794
795
|
_router$.unsubscribe();
|
|
795
796
|
}
|
|
796
797
|
}
|
|
797
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
798
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
798
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: ReuseTabService, deps: [{ token: i0.Injector }, { token: i1.MenuService }, { token: REUSE_TAB_CACHED_MANAGER, optional: true }, { token: REUSE_TAB_STORAGE_KEY, optional: true }, { token: REUSE_TAB_STORAGE_STATE, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
799
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: ReuseTabService, providedIn: 'root' }); }
|
|
799
800
|
}
|
|
800
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
801
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: ReuseTabService, decorators: [{
|
|
801
802
|
type: Injectable,
|
|
802
803
|
args: [{ providedIn: 'root' }]
|
|
803
804
|
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i1.MenuService }, { type: undefined, decorators: [{
|
|
@@ -1065,8 +1066,8 @@ class ReuseTabComponent {
|
|
|
1065
1066
|
destroy$.next();
|
|
1066
1067
|
destroy$.complete();
|
|
1067
1068
|
}
|
|
1068
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
1069
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.
|
|
1069
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: ReuseTabComponent, deps: [{ token: ReuseTabService }, { token: i0.ChangeDetectorRef }, { token: i2.Router }, { token: i2.ActivatedRoute }, { token: ALAIN_I18N_TOKEN, optional: true }, { token: DOCUMENT }, { token: i3$1.Platform }, { token: i4.Directionality, optional: true }, { token: REUSE_TAB_STORAGE_KEY, optional: true }, { token: REUSE_TAB_STORAGE_STATE, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1070
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.6", type: ReuseTabComponent, selector: "reuse-tab, [reuse-tab]", inputs: { mode: "mode", i18n: "i18n", debug: "debug", max: "max", tabMaxWidth: "tabMaxWidth", excludes: "excludes", allowClose: "allowClose", keepingScroll: "keepingScroll", storageState: "storageState", keepingScrollContainer: "keepingScrollContainer", customContextMenu: "customContextMenu", tabBarExtraContent: "tabBarExtraContent", tabBarGutter: "tabBarGutter", tabBarStyle: "tabBarStyle", tabType: "tabType", routeParamMatchMode: "routeParamMatchMode", disabled: "disabled", titleRender: "titleRender", canClose: "canClose" }, outputs: { change: "change", close: "close" }, host: { properties: { "class.reuse-tab": "true", "class.reuse-tab__line": "tabType === 'line'", "class.reuse-tab__card": "tabType === 'card'", "class.reuse-tab__disabled": "disabled", "class.reuse-tab-rtl": "dir === 'rtl'" } }, providers: [ReuseTabContextService], viewQueries: [{ propertyName: "tabset", first: true, predicate: ["tabset"], descendants: true }], exportAs: ["reuseTab"], usesOnChanges: true, ngImport: i0, template: "<nz-tabset\n #tabset\n [nzSelectedIndex]=\"pos\"\n [nzAnimated]=\"false\"\n [nzType]=\"tabType\"\n [nzTabBarExtraContent]=\"tabBarExtraContent\"\n [nzTabBarGutter]=\"tabBarGutter\"\n [nzTabBarStyle]=\"tabBarStyle\"\n>\n <nz-tab *ngFor=\"let i of list; let index = index\" [nzTitle]=\"titleTemplate\" (nzClick)=\"_to(index)\">\n <ng-template #titleTemplate>\n <div\n [reuse-tab-context-menu]=\"i\"\n [customContextMenu]=\"customContextMenu\"\n class=\"reuse-tab__name\"\n [attr.title]=\"i.title\"\n >\n <span [class.reuse-tab__name-width]=\"tabMaxWidth\" [style.max-width.px]=\"tabMaxWidth\">\n <ng-container\n *ngIf=\"titleRender; else defaultTitle\"\n [ngTemplateOutlet]=\"titleRender\"\n [ngTemplateOutletContext]=\"{ $implicit: i }\"\n ></ng-container>\n <ng-template #defaultTitle>{{ i.title }}</ng-template>\n </span>\n </div>\n <i *ngIf=\"i.closable\" nz-icon nzType=\"close\" class=\"reuse-tab__op\" (click)=\"_close($event, index, false)\"></i>\n </ng-template>\n </nz-tab>\n</nz-tabset>\n<reuse-tab-context [i18n]=\"i18n\" (change)=\"contextMenuChange($event)\"></reuse-tab-context>\n", dependencies: [{ kind: "directive", type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i5.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i6.NzTabSetComponent, selector: "nz-tabset", inputs: ["nzSelectedIndex", "nzTabPosition", "nzTabBarExtraContent", "nzCanDeactivate", "nzAddIcon", "nzTabBarStyle", "nzType", "nzSize", "nzAnimated", "nzTabBarGutter", "nzHideAdd", "nzCentered", "nzHideAll", "nzLinkRouter", "nzLinkExact"], outputs: ["nzSelectChange", "nzSelectedIndexChange", "nzTabListScroll", "nzClose", "nzAdd"], exportAs: ["nzTabset"] }, { kind: "component", type: i6.NzTabComponent, selector: "nz-tab", inputs: ["nzTitle", "nzClosable", "nzCloseIcon", "nzDisabled", "nzForceRender"], outputs: ["nzSelect", "nzDeselect", "nzClick", "nzContextmenu"], exportAs: ["nzTab"] }, { kind: "directive", type: i7.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "component", type: ReuseTabContextComponent, selector: "reuse-tab-context", inputs: ["i18n"], outputs: ["change"] }, { kind: "directive", type: ReuseTabContextDirective, selector: "[reuse-tab-context-menu]", inputs: ["reuse-tab-context-menu", "customContextMenu"], exportAs: ["reuseTabContextMenu"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
1070
1071
|
}
|
|
1071
1072
|
__decorate([
|
|
1072
1073
|
InputBoolean()
|
|
@@ -1089,7 +1090,7 @@ __decorate([
|
|
|
1089
1090
|
__decorate([
|
|
1090
1091
|
InputBoolean()
|
|
1091
1092
|
], ReuseTabComponent.prototype, "disabled", void 0);
|
|
1092
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
1093
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: ReuseTabComponent, decorators: [{
|
|
1093
1094
|
type: Component,
|
|
1094
1095
|
args: [{ selector: 'reuse-tab, [reuse-tab]', exportAs: 'reuseTab', host: {
|
|
1095
1096
|
'[class.reuse-tab]': 'true',
|
|
@@ -1189,9 +1190,9 @@ class ReuseTabStrategy {
|
|
|
1189
1190
|
const COMPONENTS = [ReuseTabComponent];
|
|
1190
1191
|
const NOEXPORTS = [ReuseTabContextMenuComponent, ReuseTabContextComponent, ReuseTabContextDirective];
|
|
1191
1192
|
class ReuseTabModule {
|
|
1192
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
1193
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.
|
|
1194
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.
|
|
1193
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: ReuseTabModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1194
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.6", ngImport: i0, type: ReuseTabModule, declarations: [ReuseTabComponent, ReuseTabContextMenuComponent, ReuseTabContextComponent, ReuseTabContextDirective], imports: [CommonModule, RouterModule, DelonLocaleModule, NzMenuModule, NzTabsModule, NzIconModule, OverlayModule], exports: [ReuseTabComponent] }); }
|
|
1195
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: ReuseTabModule, providers: [
|
|
1195
1196
|
{
|
|
1196
1197
|
provide: REUSE_TAB_STORAGE_KEY,
|
|
1197
1198
|
useValue: '_reuse-tab-state'
|
|
@@ -1206,7 +1207,7 @@ class ReuseTabModule {
|
|
|
1206
1207
|
}
|
|
1207
1208
|
], imports: [CommonModule, RouterModule, DelonLocaleModule, NzMenuModule, NzTabsModule, NzIconModule, OverlayModule] }); }
|
|
1208
1209
|
}
|
|
1209
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
1210
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: ReuseTabModule, decorators: [{
|
|
1210
1211
|
type: NgModule,
|
|
1211
1212
|
args: [{
|
|
1212
1213
|
imports: [CommonModule, RouterModule, DelonLocaleModule, NzMenuModule, NzTabsModule, NzIconModule, OverlayModule],
|