@delon/abc 13.4.2 → 13.5.2
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/esm2020/auto-focus/auto-focus.directive.mjs +4 -4
- package/esm2020/auto-focus/auto-focus.module.mjs +5 -5
- package/esm2020/avatar-list/avatar-list-item.component.mjs +4 -4
- package/esm2020/avatar-list/avatar-list.component.mjs +5 -6
- package/esm2020/avatar-list/avatar-list.module.mjs +5 -5
- package/esm2020/count-down/count-down.component.mjs +4 -4
- package/esm2020/count-down/count-down.module.mjs +5 -5
- package/esm2020/date-picker/date-picker.module.mjs +5 -5
- package/esm2020/date-picker/range-shortcut.component.mjs +4 -4
- package/esm2020/date-picker/range.directive.mjs +4 -4
- package/esm2020/down-file/down-file.directive.mjs +5 -5
- package/esm2020/down-file/down-file.module.mjs +5 -5
- package/esm2020/ellipsis/ellipsis.component.mjs +5 -5
- package/esm2020/ellipsis/ellipsis.module.mjs +5 -5
- package/esm2020/error-collect/error-collect.component.mjs +5 -6
- package/esm2020/error-collect/error-collect.module.mjs +5 -5
- package/esm2020/exception/exception.component.mjs +5 -6
- package/esm2020/exception/exception.module.mjs +5 -5
- package/esm2020/footer-toolbar/footer-toolbar.component.mjs +4 -4
- package/esm2020/footer-toolbar/footer-toolbar.module.mjs +5 -5
- package/esm2020/full-content/full-content-toggle.directive.mjs +4 -4
- package/esm2020/full-content/full-content.component.mjs +5 -6
- package/esm2020/full-content/full-content.module.mjs +5 -5
- package/esm2020/full-content/full-content.service.mjs +5 -6
- package/esm2020/global-footer/global-footer-item.component.mjs +4 -4
- package/esm2020/global-footer/global-footer.component.mjs +5 -6
- package/esm2020/global-footer/global-footer.module.mjs +5 -5
- package/esm2020/image/image.directive.mjs +5 -6
- package/esm2020/image/image.module.mjs +5 -5
- package/esm2020/let/let.directive.mjs +4 -4
- package/esm2020/let/let.module.mjs +5 -5
- package/esm2020/loading/loading.component.mjs +4 -4
- package/esm2020/loading/loading.module.mjs +5 -5
- package/esm2020/loading/loading.service.mjs +5 -6
- package/esm2020/lodop/lodop.module.mjs +5 -5
- package/esm2020/lodop/lodop.service.mjs +4 -4
- package/esm2020/media/media.component.mjs +5 -6
- package/esm2020/media/media.module.mjs +5 -5
- package/esm2020/media/media.service.mjs +5 -6
- package/esm2020/notice-icon/notice-icon-tab.component.mjs +4 -4
- package/esm2020/notice-icon/notice-icon.component.mjs +4 -4
- package/esm2020/notice-icon/notice-icon.module.mjs +5 -5
- package/esm2020/onboarding/onboarding.component.mjs +4 -4
- package/esm2020/onboarding/onboarding.module.mjs +5 -5
- package/esm2020/onboarding/onboarding.service.mjs +5 -6
- package/esm2020/page-header/page-header.component.mjs +5 -6
- package/esm2020/page-header/page-header.module.mjs +5 -5
- package/esm2020/pdf/pdf.component.mjs +5 -6
- package/esm2020/pdf/pdf.module.mjs +5 -5
- package/esm2020/qr/qr.component.mjs +6 -6
- package/esm2020/qr/qr.module.mjs +5 -5
- package/esm2020/quick-menu/quick-menu.component.mjs +4 -4
- package/esm2020/quick-menu/quick-menu.module.mjs +5 -5
- package/esm2020/result/result.component.mjs +5 -6
- package/esm2020/result/result.module.mjs +5 -5
- package/esm2020/reuse-tab/reuse-tab-context-menu.component.mjs +4 -4
- package/esm2020/reuse-tab/reuse-tab-context.component.mjs +4 -4
- package/esm2020/reuse-tab/reuse-tab-context.directive.mjs +4 -4
- package/esm2020/reuse-tab/reuse-tab-context.service.mjs +4 -4
- package/esm2020/reuse-tab/reuse-tab.component.mjs +24 -14
- package/esm2020/reuse-tab/reuse-tab.module.mjs +5 -5
- package/esm2020/reuse-tab/reuse-tab.service.mjs +4 -4
- package/esm2020/se/se-container.component.mjs +8 -9
- package/esm2020/se/se.component.mjs +5 -6
- package/esm2020/se/se.module.mjs +5 -5
- package/esm2020/sg/sg-container.component.mjs +4 -4
- package/esm2020/sg/sg.component.mjs +4 -4
- package/esm2020/sg/sg.module.mjs +5 -5
- package/esm2020/st/st-column-source.mjs +10 -13
- package/esm2020/st/st-data-source.mjs +27 -11
- package/esm2020/st/st-export.mjs +4 -4
- package/esm2020/st/st-filter.component.mjs +5 -5
- package/esm2020/st/st-row.directive.mjs +7 -7
- package/esm2020/st/st-widget-host.directive.mjs +4 -4
- package/esm2020/st/st-widget.mjs +4 -4
- package/esm2020/st/st.component.mjs +10 -10
- package/esm2020/st/st.config.mjs +5 -1
- package/esm2020/st/st.interfaces.mjs +1 -1
- package/esm2020/st/st.module.mjs +5 -5
- package/esm2020/st/st.types.mjs +1 -1
- package/esm2020/sv/sv-container.component.mjs +7 -7
- package/esm2020/sv/sv-value.component.mjs +4 -4
- package/esm2020/sv/sv.component.mjs +4 -4
- package/esm2020/sv/sv.module.mjs +5 -5
- package/esm2020/tag-select/tag-select.component.mjs +5 -6
- package/esm2020/tag-select/tag-select.module.mjs +5 -5
- package/esm2020/xlsx/xlsx.directive.mjs +4 -4
- package/esm2020/xlsx/xlsx.module.mjs +5 -5
- package/esm2020/xlsx/xlsx.service.mjs +4 -4
- package/esm2020/zip/zip.module.mjs +5 -5
- package/esm2020/zip/zip.service.mjs +4 -4
- package/fesm2015/auto-focus.mjs +7 -7
- package/fesm2015/auto-focus.mjs.map +1 -1
- package/fesm2015/avatar-list.mjs +11 -12
- package/fesm2015/avatar-list.mjs.map +1 -1
- package/fesm2015/count-down.mjs +7 -7
- package/fesm2015/count-down.mjs.map +1 -1
- package/fesm2015/date-picker.mjs +10 -10
- package/fesm2015/date-picker.mjs.map +1 -1
- package/fesm2015/down-file.mjs +8 -8
- package/fesm2015/down-file.mjs.map +1 -1
- package/fesm2015/ellipsis.mjs +8 -8
- package/fesm2015/ellipsis.mjs.map +1 -1
- package/fesm2015/error-collect.mjs +8 -9
- package/fesm2015/error-collect.mjs.map +1 -1
- package/fesm2015/exception.mjs +8 -9
- package/fesm2015/exception.mjs.map +1 -1
- package/fesm2015/footer-toolbar.mjs +7 -7
- package/fesm2015/footer-toolbar.mjs.map +1 -1
- package/fesm2015/full-content.mjs +14 -15
- package/fesm2015/full-content.mjs.map +1 -1
- package/fesm2015/global-footer.mjs +11 -12
- package/fesm2015/global-footer.mjs.map +1 -1
- package/fesm2015/image.mjs +8 -9
- package/fesm2015/image.mjs.map +1 -1
- package/fesm2015/let.mjs +7 -7
- package/fesm2015/let.mjs.map +1 -1
- package/fesm2015/loading.mjs +11 -12
- package/fesm2015/loading.mjs.map +1 -1
- package/fesm2015/lodop.mjs +7 -7
- package/fesm2015/lodop.mjs.map +1 -1
- package/fesm2015/media.mjs +11 -12
- package/fesm2015/media.mjs.map +1 -1
- package/fesm2015/notice-icon.mjs +10 -10
- package/fesm2015/notice-icon.mjs.map +1 -1
- package/fesm2015/onboarding.mjs +11 -12
- package/fesm2015/onboarding.mjs.map +1 -1
- package/fesm2015/page-header.mjs +8 -9
- package/fesm2015/page-header.mjs.map +1 -1
- package/fesm2015/pdf.mjs +8 -9
- package/fesm2015/pdf.mjs.map +1 -1
- package/fesm2015/qr.mjs +9 -9
- package/fesm2015/qr.mjs.map +1 -1
- package/fesm2015/quick-menu.mjs +7 -7
- package/fesm2015/quick-menu.mjs.map +1 -1
- package/fesm2015/result.mjs +8 -9
- package/fesm2015/result.mjs.map +1 -1
- package/fesm2015/reuse-tab.mjs +41 -30
- package/fesm2015/reuse-tab.mjs.map +1 -1
- package/fesm2015/se.mjs +14 -15
- package/fesm2015/se.mjs.map +1 -1
- package/fesm2015/sg.mjs +10 -10
- package/fesm2015/sg.mjs.map +1 -1
- package/fesm2015/st.mjs +70 -52
- package/fesm2015/st.mjs.map +1 -1
- package/fesm2015/sv.mjs +16 -16
- package/fesm2015/sv.mjs.map +1 -1
- package/fesm2015/tag-select.mjs +8 -9
- package/fesm2015/tag-select.mjs.map +1 -1
- package/fesm2015/xlsx.mjs +10 -10
- package/fesm2015/xlsx.mjs.map +1 -1
- package/fesm2015/zip.mjs +7 -7
- package/fesm2015/zip.mjs.map +1 -1
- package/fesm2020/auto-focus.mjs +7 -7
- package/fesm2020/auto-focus.mjs.map +1 -1
- package/fesm2020/avatar-list.mjs +11 -12
- package/fesm2020/avatar-list.mjs.map +1 -1
- package/fesm2020/count-down.mjs +7 -7
- package/fesm2020/count-down.mjs.map +1 -1
- package/fesm2020/date-picker.mjs +10 -10
- package/fesm2020/date-picker.mjs.map +1 -1
- package/fesm2020/down-file.mjs +8 -8
- package/fesm2020/down-file.mjs.map +1 -1
- package/fesm2020/ellipsis.mjs +8 -8
- package/fesm2020/ellipsis.mjs.map +1 -1
- package/fesm2020/error-collect.mjs +8 -9
- package/fesm2020/error-collect.mjs.map +1 -1
- package/fesm2020/exception.mjs +8 -9
- package/fesm2020/exception.mjs.map +1 -1
- package/fesm2020/footer-toolbar.mjs +7 -7
- package/fesm2020/footer-toolbar.mjs.map +1 -1
- package/fesm2020/full-content.mjs +14 -15
- package/fesm2020/full-content.mjs.map +1 -1
- package/fesm2020/global-footer.mjs +11 -12
- package/fesm2020/global-footer.mjs.map +1 -1
- package/fesm2020/image.mjs +8 -9
- package/fesm2020/image.mjs.map +1 -1
- package/fesm2020/let.mjs +7 -7
- package/fesm2020/let.mjs.map +1 -1
- package/fesm2020/loading.mjs +11 -12
- package/fesm2020/loading.mjs.map +1 -1
- package/fesm2020/lodop.mjs +7 -7
- package/fesm2020/lodop.mjs.map +1 -1
- package/fesm2020/media.mjs +11 -12
- package/fesm2020/media.mjs.map +1 -1
- package/fesm2020/notice-icon.mjs +10 -10
- package/fesm2020/notice-icon.mjs.map +1 -1
- package/fesm2020/onboarding.mjs +11 -12
- package/fesm2020/onboarding.mjs.map +1 -1
- package/fesm2020/page-header.mjs +8 -9
- package/fesm2020/page-header.mjs.map +1 -1
- package/fesm2020/pdf.mjs +8 -9
- package/fesm2020/pdf.mjs.map +1 -1
- package/fesm2020/qr.mjs +9 -9
- package/fesm2020/qr.mjs.map +1 -1
- package/fesm2020/quick-menu.mjs +7 -7
- package/fesm2020/quick-menu.mjs.map +1 -1
- package/fesm2020/result.mjs +8 -9
- package/fesm2020/result.mjs.map +1 -1
- package/fesm2020/reuse-tab.mjs +40 -30
- package/fesm2020/reuse-tab.mjs.map +1 -1
- package/fesm2020/se.mjs +14 -15
- package/fesm2020/se.mjs.map +1 -1
- package/fesm2020/sg.mjs +10 -10
- package/fesm2020/sg.mjs.map +1 -1
- package/fesm2020/st.mjs +70 -52
- package/fesm2020/st.mjs.map +1 -1
- package/fesm2020/sv.mjs +16 -16
- package/fesm2020/sv.mjs.map +1 -1
- package/fesm2020/tag-select.mjs +8 -9
- package/fesm2020/tag-select.mjs.map +1 -1
- package/fesm2020/xlsx.mjs +10 -10
- package/fesm2020/xlsx.mjs.map +1 -1
- package/fesm2020/zip.mjs +7 -7
- package/fesm2020/zip.mjs.map +1 -1
- package/package.json +5 -4
- package/reuse-tab/reuse-tab.component.d.ts +5 -2
- package/reuse-tab/style/index.less +2 -0
- package/reuse-tab/style/rtl.less +3 -0
- package/st/st-data-source.d.ts +4 -0
- package/st/st.interfaces.d.ts +18 -0
- package/st/st.types.d.ts +18 -0
package/fesm2015/reuse-tab.mjs
CHANGED
|
@@ -4,22 +4,22 @@ import * as i1 from '@delon/theme';
|
|
|
4
4
|
import { ALAIN_I18N_TOKEN, DelonLocaleModule } from '@delon/theme';
|
|
5
5
|
import * as i2 from 'ng-zorro-antd/menu';
|
|
6
6
|
import { NzMenuModule } from 'ng-zorro-antd/menu';
|
|
7
|
-
import * as
|
|
7
|
+
import * as i7 from '@angular/common';
|
|
8
8
|
import { DOCUMENT, CommonModule } from '@angular/common';
|
|
9
|
-
import { Subject, Subscription, BehaviorSubject, timer } from 'rxjs';
|
|
9
|
+
import { Subject, Subscription, BehaviorSubject, timer, takeUntil, filter, debounceTime } from 'rxjs';
|
|
10
10
|
import * as i1$1 from '@angular/cdk/overlay';
|
|
11
11
|
import { ConnectionPositionPair, OverlayModule } from '@angular/cdk/overlay';
|
|
12
12
|
import { ComponentPortal } from '@angular/cdk/portal';
|
|
13
13
|
import { __decorate } from 'tslib';
|
|
14
|
-
import { takeUntil, filter, debounceTime } from 'rxjs/operators';
|
|
15
14
|
import { InputBoolean, InputNumber } from '@delon/util/decorator';
|
|
16
15
|
import * as i2$1 from '@angular/router';
|
|
17
16
|
import { ActivatedRoute, Router, ROUTER_CONFIGURATION, NavigationStart, NavigationEnd, RouterModule } from '@angular/router';
|
|
18
17
|
import { ScrollService } from '@delon/util/browser';
|
|
19
18
|
import * as i3 from '@angular/cdk/platform';
|
|
20
|
-
import * as i4 from '
|
|
19
|
+
import * as i4 from '@angular/cdk/bidi';
|
|
20
|
+
import * as i5 from 'ng-zorro-antd/tabs';
|
|
21
21
|
import { NzTabsModule } from 'ng-zorro-antd/tabs';
|
|
22
|
-
import * as
|
|
22
|
+
import * as i9 from 'ng-zorro-antd/icon';
|
|
23
23
|
import { NzIconModule } from 'ng-zorro-antd/icon';
|
|
24
24
|
|
|
25
25
|
class ReuseTabContextMenuComponent {
|
|
@@ -70,9 +70,9 @@ class ReuseTabContextMenuComponent {
|
|
|
70
70
|
this.notify(null);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
ReuseTabContextMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
74
|
-
ReuseTabContextMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.
|
|
75
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
73
|
+
ReuseTabContextMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ReuseTabContextMenuComponent, deps: [{ token: i1.DelonLocaleService }], target: i0.ɵɵFactoryTarget.Component });
|
|
74
|
+
ReuseTabContextMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", 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", directives: [{ type: i2.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NzMenuItemDirective, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { type: i2.NzMenuDividerDirective, selector: "[nz-menu-divider]", exportAs: ["nzMenuDivider"] }, { type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
75
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ReuseTabContextMenuComponent, decorators: [{
|
|
76
76
|
type: Component,
|
|
77
77
|
args: [{ selector: 'reuse-tab-context-menu', host: {
|
|
78
78
|
'(document:click)': 'closeMenu($event)',
|
|
@@ -132,9 +132,9 @@ class ReuseTabContextService {
|
|
|
132
132
|
comp.onDestroy(() => sub$.unsubscribe());
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
|
-
ReuseTabContextService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
136
|
-
ReuseTabContextService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.
|
|
137
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
135
|
+
ReuseTabContextService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ReuseTabContextService, deps: [{ token: i1$1.Overlay }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
136
|
+
ReuseTabContextService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ReuseTabContextService });
|
|
137
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ReuseTabContextService, decorators: [{
|
|
138
138
|
type: Injectable
|
|
139
139
|
}], ctorParameters: function () { return [{ type: i1$1.Overlay }]; } });
|
|
140
140
|
|
|
@@ -153,9 +153,9 @@ class ReuseTabContextComponent {
|
|
|
153
153
|
this.sub$.unsubscribe();
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
-
ReuseTabContextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
157
|
-
ReuseTabContextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.
|
|
158
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
156
|
+
ReuseTabContextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ReuseTabContextComponent, deps: [{ token: ReuseTabContextService }], target: i0.ɵɵFactoryTarget.Component });
|
|
157
|
+
ReuseTabContextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ReuseTabContextComponent, selector: "reuse-tab-context", inputs: { i18n: "i18n" }, outputs: { change: "change" }, ngImport: i0, template: ``, isInline: true });
|
|
158
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ReuseTabContextComponent, decorators: [{
|
|
159
159
|
type: Component,
|
|
160
160
|
args: [{
|
|
161
161
|
selector: 'reuse-tab-context',
|
|
@@ -181,9 +181,9 @@ class ReuseTabContextDirective {
|
|
|
181
181
|
event.stopPropagation();
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
ReuseTabContextDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
185
|
-
ReuseTabContextDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.
|
|
186
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
184
|
+
ReuseTabContextDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ReuseTabContextDirective, deps: [{ token: ReuseTabContextService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
185
|
+
ReuseTabContextDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", 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 });
|
|
186
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ReuseTabContextDirective, decorators: [{
|
|
187
187
|
type: Directive,
|
|
188
188
|
args: [{
|
|
189
189
|
selector: '[reuse-tab-context-menu]',
|
|
@@ -752,16 +752,16 @@ class ReuseTabService {
|
|
|
752
752
|
}
|
|
753
753
|
}
|
|
754
754
|
}
|
|
755
|
-
ReuseTabService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
756
|
-
ReuseTabService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.
|
|
757
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
755
|
+
ReuseTabService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ReuseTabService, deps: [{ token: i0.Injector }, { token: i1.MenuService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
756
|
+
ReuseTabService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ReuseTabService, providedIn: 'root' });
|
|
757
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ReuseTabService, decorators: [{
|
|
758
758
|
type: Injectable,
|
|
759
759
|
args: [{ providedIn: 'root' }]
|
|
760
760
|
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i1.MenuService }]; } });
|
|
761
761
|
|
|
762
762
|
class ReuseTabComponent {
|
|
763
763
|
// #endregion
|
|
764
|
-
constructor(srv, cdr, router, route, i18nSrv, doc, platform) {
|
|
764
|
+
constructor(srv, cdr, router, route, i18nSrv, doc, platform, directionality) {
|
|
765
765
|
this.srv = srv;
|
|
766
766
|
this.cdr = cdr;
|
|
767
767
|
this.router = router;
|
|
@@ -769,9 +769,11 @@ class ReuseTabComponent {
|
|
|
769
769
|
this.i18nSrv = i18nSrv;
|
|
770
770
|
this.doc = doc;
|
|
771
771
|
this.platform = platform;
|
|
772
|
+
this.directionality = directionality;
|
|
772
773
|
this.destroy$ = new Subject();
|
|
773
774
|
this.list = [];
|
|
774
775
|
this.pos = 0;
|
|
776
|
+
this.dir = 'ltr';
|
|
775
777
|
// #region fields
|
|
776
778
|
this.mode = ReuseTabMatchMode.Menu;
|
|
777
779
|
this.debug = false;
|
|
@@ -933,6 +935,12 @@ class ReuseTabComponent {
|
|
|
933
935
|
}
|
|
934
936
|
// #endregion
|
|
935
937
|
ngOnInit() {
|
|
938
|
+
var _a;
|
|
939
|
+
this.dir = this.directionality.value;
|
|
940
|
+
(_a = this.directionality.change) === null || _a === void 0 ? void 0 : _a.pipe(takeUntil(this.destroy$)).subscribe((direction) => {
|
|
941
|
+
this.dir = direction;
|
|
942
|
+
this.cdr.detectChanges();
|
|
943
|
+
});
|
|
936
944
|
if (!this.platform.isBrowser) {
|
|
937
945
|
return;
|
|
938
946
|
}
|
|
@@ -981,8 +989,8 @@ class ReuseTabComponent {
|
|
|
981
989
|
destroy$.complete();
|
|
982
990
|
}
|
|
983
991
|
}
|
|
984
|
-
ReuseTabComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
985
|
-
ReuseTabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.
|
|
992
|
+
ReuseTabComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ReuseTabComponent, deps: [{ token: ReuseTabService }, { token: i0.ChangeDetectorRef }, { token: i2$1.Router }, { token: i2$1.ActivatedRoute }, { token: ALAIN_I18N_TOKEN, optional: true }, { token: DOCUMENT }, { token: i3.Platform }, { token: i4.Directionality, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
993
|
+
ReuseTabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ReuseTabComponent, selector: "reuse-tab, [reuse-tab]", inputs: { mode: "mode", i18n: "i18n", debug: "debug", max: "max", tabMaxWidth: "tabMaxWidth", excludes: "excludes", allowClose: "allowClose", keepingScroll: "keepingScroll", keepingScrollContainer: "keepingScrollContainer", customContextMenu: "customContextMenu", tabBarExtraContent: "tabBarExtraContent", tabBarGutter: "tabBarGutter", tabBarStyle: "tabBarStyle", tabType: "tabType", routeParamMatchMode: "routeParamMatchMode", disabled: "disabled", titleRender: "titleRender" }, 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", components: [{ type: i5.NzTabSetComponent, selector: "nz-tabset", inputs: ["nzSelectedIndex", "nzTabPosition", "nzTabBarExtraContent", "nzCanDeactivate", "nzAddIcon", "nzTabBarStyle", "nzType", "nzSize", "nzAnimated", "nzTabBarGutter", "nzHideAdd", "nzCentered", "nzHideAll", "nzLinkRouter", "nzLinkExact"], outputs: ["nzSelectChange", "nzSelectedIndexChange", "nzTabListScroll", "nzClose", "nzAdd"], exportAs: ["nzTabset"] }, { type: i5.NzTabComponent, selector: "nz-tab", inputs: ["nzTitle", "nzClosable", "nzCloseIcon", "nzDisabled", "nzForceRender"], outputs: ["nzSelect", "nzDeselect", "nzClick", "nzContextmenu"], exportAs: ["nzTab"] }, { type: ReuseTabContextComponent, selector: "reuse-tab-context", inputs: ["i18n"], outputs: ["change"] }], directives: [{ type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: ReuseTabContextDirective, selector: "[reuse-tab-context-menu]", inputs: ["reuse-tab-context-menu", "customContextMenu"], exportAs: ["reuseTabContextMenu"] }, { type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i7.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i9.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
986
994
|
__decorate([
|
|
987
995
|
InputBoolean()
|
|
988
996
|
], ReuseTabComponent.prototype, "debug", void 0);
|
|
@@ -1001,13 +1009,14 @@ __decorate([
|
|
|
1001
1009
|
__decorate([
|
|
1002
1010
|
InputBoolean()
|
|
1003
1011
|
], ReuseTabComponent.prototype, "disabled", void 0);
|
|
1004
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
1012
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ReuseTabComponent, decorators: [{
|
|
1005
1013
|
type: Component,
|
|
1006
1014
|
args: [{ selector: 'reuse-tab, [reuse-tab]', exportAs: 'reuseTab', host: {
|
|
1007
1015
|
'[class.reuse-tab]': 'true',
|
|
1008
1016
|
'[class.reuse-tab__line]': `tabType === 'line'`,
|
|
1009
1017
|
'[class.reuse-tab__card]': `tabType === 'card'`,
|
|
1010
|
-
'[class.reuse-tab__disabled]': `disabled
|
|
1018
|
+
'[class.reuse-tab__disabled]': `disabled`,
|
|
1019
|
+
'[class.reuse-tab-rtl]': `dir === 'rtl'`
|
|
1011
1020
|
}, providers: [ReuseTabContextService], preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<nz-tabset\n #tabset\n [nzSelectedIndex]=\"pos\"\n [nzAnimated]=\"false\"\n [nzType]=\"tabType\"\n [nzTabBarExtraContent]=\"tabBarExtraContent\"\n [nzTabBarGutter]=\"tabBarGutter\"\n [nzTabBarStyle]=\"tabBarStyle\"\n>\n <nz-tab *ngFor=\"let i of list; let index = index\" [nzTitle]=\"titleTemplate\" (nzClick)=\"_to(index)\">\n <ng-template #titleTemplate>\n <div\n [reuse-tab-context-menu]=\"i\"\n [customContextMenu]=\"customContextMenu\"\n class=\"reuse-tab__name\"\n [attr.title]=\"i.title\"\n >\n <span [class.reuse-tab__name-width]=\"tabMaxWidth\" [style.max-width.px]=\"tabMaxWidth\">\n <ng-container\n *ngIf=\"titleRender; else defaultTitle\"\n [ngTemplateOutlet]=\"titleRender\"\n [ngTemplateOutletContext]=\"{ $implicit: i }\"\n ></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" }]
|
|
1012
1021
|
}], ctorParameters: function () {
|
|
1013
1022
|
return [{ type: ReuseTabService }, { type: i0.ChangeDetectorRef }, { type: i2$1.Router }, { type: i2$1.ActivatedRoute }, { type: undefined, decorators: [{
|
|
@@ -1018,7 +1027,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImpor
|
|
|
1018
1027
|
}] }, { type: undefined, decorators: [{
|
|
1019
1028
|
type: Inject,
|
|
1020
1029
|
args: [DOCUMENT]
|
|
1021
|
-
}] }, { type: i3.Platform }
|
|
1030
|
+
}] }, { type: i3.Platform }, { type: i4.Directionality, decorators: [{
|
|
1031
|
+
type: Optional
|
|
1032
|
+
}] }];
|
|
1022
1033
|
}, propDecorators: { tabset: [{
|
|
1023
1034
|
type: ViewChild,
|
|
1024
1035
|
args: ['tabset']
|
|
@@ -1087,10 +1098,10 @@ const COMPONENTS = [ReuseTabComponent];
|
|
|
1087
1098
|
const NOEXPORTS = [ReuseTabContextMenuComponent, ReuseTabContextComponent, ReuseTabContextDirective];
|
|
1088
1099
|
class ReuseTabModule {
|
|
1089
1100
|
}
|
|
1090
|
-
ReuseTabModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
1091
|
-
ReuseTabModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.
|
|
1092
|
-
ReuseTabModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.
|
|
1093
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
1101
|
+
ReuseTabModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ReuseTabModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1102
|
+
ReuseTabModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ReuseTabModule, declarations: [ReuseTabComponent, ReuseTabContextMenuComponent, ReuseTabContextComponent, ReuseTabContextDirective], imports: [CommonModule, RouterModule, DelonLocaleModule, NzMenuModule, NzTabsModule, NzIconModule, OverlayModule], exports: [ReuseTabComponent] });
|
|
1103
|
+
ReuseTabModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ReuseTabModule, imports: [[CommonModule, RouterModule, DelonLocaleModule, NzMenuModule, NzTabsModule, NzIconModule, OverlayModule]] });
|
|
1104
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ReuseTabModule, decorators: [{
|
|
1094
1105
|
type: NgModule,
|
|
1095
1106
|
args: [{
|
|
1096
1107
|
imports: [CommonModule, RouterModule, DelonLocaleModule, NzMenuModule, NzTabsModule, NzIconModule, OverlayModule],
|