@delon/abc 13.5.0 → 14.0.0-beta.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/auto-focus/auto-focus.directive.d.ts +1 -1
- package/avatar-list/avatar-list-item.component.d.ts +1 -1
- package/avatar-list/avatar-list.component.d.ts +1 -1
- package/avatar-list/{avatar-list.d.ts → index.d.ts} +0 -0
- package/count-down/count-down.component.d.ts +1 -1
- package/count-down/{count-down.d.ts → index.d.ts} +0 -0
- package/date-picker/{date-picker.d.ts → index.d.ts} +0 -0
- package/date-picker/range-shortcut.component.d.ts +1 -1
- package/date-picker/range.directive.d.ts +5 -6
- package/down-file/down-file.directive.d.ts +1 -1
- package/down-file/{down-file.d.ts → index.d.ts} +0 -0
- package/ellipsis/ellipsis.component.d.ts +1 -1
- package/ellipsis/{ellipsis.d.ts → index.d.ts} +0 -0
- package/error-collect/error-collect.component.d.ts +1 -1
- package/error-collect/{error-collect.d.ts → index.d.ts} +0 -0
- package/esm2020/auto-focus/auto-focus.directive.mjs +4 -4
- package/esm2020/auto-focus/auto-focus.module.mjs +4 -4
- package/esm2020/avatar-list/avatar-list-item.component.mjs +3 -3
- package/esm2020/avatar-list/avatar-list.component.mjs +7 -8
- package/esm2020/avatar-list/avatar-list.module.mjs +5 -5
- package/esm2020/count-down/count-down.component.mjs +5 -5
- 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 +8 -10
- 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 +7 -7
- package/esm2020/ellipsis/ellipsis.module.mjs +5 -5
- package/esm2020/error-collect/error-collect.component.mjs +6 -7
- package/esm2020/error-collect/error-collect.module.mjs +5 -5
- package/esm2020/exception/exception.component.mjs +9 -10
- package/esm2020/exception/exception.module.mjs +5 -5
- package/esm2020/footer-toolbar/footer-toolbar.component.mjs +7 -7
- package/esm2020/footer-toolbar/footer-toolbar.module.mjs +5 -5
- package/esm2020/full-content/full-content-toggle.directive.mjs +3 -3
- 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/let/let.directive.mjs +3 -3
- package/esm2020/let/let.module.mjs +4 -4
- package/esm2020/loading/loading.component.mjs +6 -6
- package/esm2020/loading/loading.module.mjs +5 -5
- package/esm2020/loading/loading.service.mjs +9 -7
- package/esm2020/lodop/lodop.module.mjs +4 -4
- package/esm2020/lodop/lodop.service.mjs +3 -3
- 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 +6 -6
- package/esm2020/notice-icon/notice-icon.component.mjs +11 -11
- package/esm2020/notice-icon/notice-icon.module.mjs +14 -16
- package/esm2020/observers/chart-observer-size.mjs +5 -0
- package/esm2020/observers/observer-size.mjs +116 -0
- package/esm2020/observers/public-api.mjs +2 -0
- package/esm2020/onboarding/onboarding.component.mjs +9 -9
- package/esm2020/onboarding/onboarding.module.mjs +7 -5
- package/esm2020/onboarding/onboarding.service.mjs +9 -9
- package/esm2020/page-header/page-header.component.mjs +10 -11
- package/esm2020/page-header/page-header.module.mjs +5 -5
- package/esm2020/pdf/pdf.component.mjs +18 -16
- package/esm2020/pdf/pdf.module.mjs +5 -5
- package/esm2020/pdf/pdf.types.mjs +1 -1
- package/esm2020/qr/qr.component.mjs +6 -6
- package/esm2020/qr/qr.module.mjs +5 -5
- package/esm2020/quick-menu/quick-menu.component.mjs +6 -6
- package/esm2020/quick-menu/quick-menu.module.mjs +5 -5
- package/esm2020/result/result.component.mjs +8 -9
- package/esm2020/result/result.module.mjs +5 -5
- package/esm2020/reuse-tab/public_api.mjs +2 -1
- package/esm2020/reuse-tab/reuse-tab-context-menu.component.mjs +5 -5
- package/esm2020/reuse-tab/reuse-tab-context.component.mjs +3 -3
- package/esm2020/reuse-tab/reuse-tab-context.directive.mjs +3 -3
- package/esm2020/reuse-tab/reuse-tab-context.service.mjs +3 -3
- package/esm2020/reuse-tab/reuse-tab.component.mjs +46 -15
- package/esm2020/reuse-tab/reuse-tab.interfaces.mjs +1 -1
- package/esm2020/reuse-tab/reuse-tab.module.mjs +25 -5
- package/esm2020/reuse-tab/reuse-tab.service.mjs +33 -8
- package/esm2020/reuse-tab/reuse-tab.state.mjs +16 -0
- package/esm2020/se/se-container.component.mjs +9 -10
- package/esm2020/se/se.component.mjs +15 -12
- 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 +3 -3
- package/esm2020/st/st-data-source.mjs +27 -13
- package/esm2020/st/st-export.mjs +3 -3
- package/esm2020/st/st-filter.component.mjs +12 -12
- package/esm2020/st/st-row.directive.mjs +6 -6
- package/esm2020/st/st-widget-host.directive.mjs +3 -3
- package/esm2020/st/st-widget.mjs +3 -3
- package/esm2020/st/st.component.mjs +29 -28
- package/esm2020/st/st.config.mjs +2 -1
- package/esm2020/st/st.interfaces.mjs +1 -1
- package/esm2020/st/st.module.mjs +23 -25
- package/esm2020/sv/sv-container.component.mjs +8 -8
- package/esm2020/sv/sv-value.component.mjs +4 -4
- package/esm2020/sv/sv.component.mjs +7 -7
- 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 +3 -3
- 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 +14 -12
- package/esm2020/zip/zip.types.mjs +1 -1
- package/exception/exception.component.d.ts +1 -1
- package/exception/{exception.d.ts → index.d.ts} +0 -0
- package/fesm2015/auto-focus.mjs +7 -7
- package/fesm2015/auto-focus.mjs.map +1 -1
- package/fesm2015/avatar-list.mjs +14 -15
- package/fesm2015/avatar-list.mjs.map +1 -1
- package/fesm2015/chart-observer-size.mjs +124 -0
- package/fesm2015/chart-observer-size.mjs.map +1 -0
- package/fesm2015/count-down.mjs +10 -10
- package/fesm2015/count-down.mjs.map +1 -1
- package/fesm2015/date-picker.mjs +15 -17
- 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 +10 -10
- package/fesm2015/ellipsis.mjs.map +1 -1
- package/fesm2015/error-collect.mjs +9 -10
- package/fesm2015/error-collect.mjs.map +1 -1
- package/fesm2015/exception.mjs +15 -16
- package/fesm2015/exception.mjs.map +1 -1
- package/fesm2015/footer-toolbar.mjs +10 -10
- 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/let.mjs +7 -7
- package/fesm2015/loading.mjs +19 -17
- package/fesm2015/loading.mjs.map +1 -1
- package/fesm2015/lodop.mjs +7 -7
- package/fesm2015/media.mjs +11 -12
- package/fesm2015/media.mjs.map +1 -1
- package/fesm2015/notice-icon.mjs +31 -33
- package/fesm2015/notice-icon.mjs.map +1 -1
- package/fesm2015/onboarding.mjs +24 -23
- package/fesm2015/onboarding.mjs.map +1 -1
- package/fesm2015/page-header.mjs +15 -16
- package/fesm2015/page-header.mjs.map +1 -1
- package/fesm2015/pdf.mjs +21 -19
- 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 +10 -10
- package/fesm2015/quick-menu.mjs.map +1 -1
- package/fesm2015/result.mjs +12 -13
- package/fesm2015/result.mjs.map +1 -1
- package/fesm2015/reuse-tab.mjs +133 -42
- package/fesm2015/reuse-tab.mjs.map +1 -1
- package/fesm2015/se.mjs +25 -22
- package/fesm2015/se.mjs.map +1 -1
- package/fesm2015/sg.mjs +10 -10
- package/fesm2015/sg.mjs.map +1 -1
- package/fesm2015/st.mjs +113 -98
- package/fesm2015/st.mjs.map +1 -1
- package/fesm2015/sv.mjs +20 -20
- 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 +17 -15
- 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 +14 -15
- package/fesm2020/avatar-list.mjs.map +1 -1
- package/fesm2020/chart-observer-size.mjs +123 -0
- package/fesm2020/chart-observer-size.mjs.map +1 -0
- package/fesm2020/count-down.mjs +10 -10
- package/fesm2020/count-down.mjs.map +1 -1
- package/fesm2020/date-picker.mjs +15 -17
- 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 +10 -10
- package/fesm2020/ellipsis.mjs.map +1 -1
- package/fesm2020/error-collect.mjs +9 -10
- package/fesm2020/error-collect.mjs.map +1 -1
- package/fesm2020/exception.mjs +15 -16
- package/fesm2020/exception.mjs.map +1 -1
- package/fesm2020/footer-toolbar.mjs +10 -10
- 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/let.mjs +7 -7
- package/fesm2020/loading.mjs +19 -17
- package/fesm2020/loading.mjs.map +1 -1
- package/fesm2020/lodop.mjs +7 -7
- package/fesm2020/media.mjs +11 -12
- package/fesm2020/media.mjs.map +1 -1
- package/fesm2020/notice-icon.mjs +31 -33
- package/fesm2020/notice-icon.mjs.map +1 -1
- package/fesm2020/onboarding.mjs +24 -23
- package/fesm2020/onboarding.mjs.map +1 -1
- package/fesm2020/page-header.mjs +15 -16
- package/fesm2020/page-header.mjs.map +1 -1
- package/fesm2020/pdf.mjs +21 -19
- 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 +10 -10
- package/fesm2020/quick-menu.mjs.map +1 -1
- package/fesm2020/result.mjs +12 -13
- package/fesm2020/result.mjs.map +1 -1
- package/fesm2020/reuse-tab.mjs +130 -42
- package/fesm2020/reuse-tab.mjs.map +1 -1
- package/fesm2020/se.mjs +25 -22
- package/fesm2020/se.mjs.map +1 -1
- package/fesm2020/sg.mjs +10 -10
- package/fesm2020/sg.mjs.map +1 -1
- package/fesm2020/st.mjs +113 -98
- package/fesm2020/st.mjs.map +1 -1
- package/fesm2020/sv.mjs +20 -20
- 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 +17 -15
- package/fesm2020/zip.mjs.map +1 -1
- package/footer-toolbar/footer-toolbar.component.d.ts +1 -1
- package/footer-toolbar/{footer-toolbar.d.ts → index.d.ts} +0 -0
- package/full-content/full-content-toggle.directive.d.ts +1 -1
- package/full-content/full-content.component.d.ts +1 -1
- package/full-content/{full-content.d.ts → index.d.ts} +0 -0
- package/global-footer/global-footer-item.component.d.ts +1 -1
- package/global-footer/global-footer.component.d.ts +1 -1
- package/global-footer/{global-footer.d.ts → index.d.ts} +0 -0
- package/{abc.d.ts → index.d.ts} +0 -0
- package/let/let.directive.d.ts +1 -1
- package/loading/{loading.d.ts → index.d.ts} +0 -0
- package/loading/loading.component.d.ts +1 -1
- package/lodop/{lodop.d.ts → index.d.ts} +0 -0
- package/media/{media.d.ts → index.d.ts} +0 -0
- package/media/media.component.d.ts +1 -1
- package/notice-icon/{notice-icon.d.ts → index.d.ts} +0 -0
- package/notice-icon/notice-icon-tab.component.d.ts +1 -1
- package/notice-icon/notice-icon.component.d.ts +1 -1
- package/observers/index.d.ts +5 -0
- package/observers/observer-size.d.ts +32 -0
- package/observers/public-api.d.ts +1 -0
- package/onboarding/{onboarding.d.ts → index.d.ts} +0 -0
- package/onboarding/onboarding.component.d.ts +1 -1
- package/package.json +49 -48
- package/page-header/{page-header.d.ts → index.d.ts} +0 -0
- package/page-header/page-header.component.d.ts +1 -1
- package/page-header/style/index.less +3 -2
- package/pdf/{pdf.d.ts → index.d.ts} +0 -0
- package/pdf/pdf.component.d.ts +20 -13
- package/pdf/pdf.types.d.ts +2 -1
- package/qr/{qr.d.ts → index.d.ts} +0 -0
- package/qr/qr.component.d.ts +1 -1
- package/quick-menu/{quick-menu.d.ts → index.d.ts} +0 -0
- package/quick-menu/quick-menu.component.d.ts +1 -1
- package/result/{result.d.ts → index.d.ts} +0 -0
- package/result/result.component.d.ts +1 -1
- package/reuse-tab/{reuse-tab.d.ts → index.d.ts} +0 -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 +11 -4
- package/reuse-tab/reuse-tab.interfaces.d.ts +10 -3
- package/reuse-tab/reuse-tab.service.d.ts +7 -2
- package/reuse-tab/reuse-tab.state.d.ts +14 -0
- package/se/{se.d.ts → index.d.ts} +0 -0
- package/se/se-container.component.d.ts +2 -2
- package/se/se.component.d.ts +5 -3
- package/sg/{sg.d.ts → index.d.ts} +0 -0
- package/sg/sg-container.component.d.ts +1 -1
- package/sg/sg.component.d.ts +1 -1
- package/st/{st.d.ts → index.d.ts} +0 -0
- package/st/st-filter.component.d.ts +1 -1
- package/st/st-row.directive.d.ts +1 -1
- package/st/st-widget-host.directive.d.ts +1 -1
- package/st/st.component.d.ts +2 -2
- package/st/st.interfaces.d.ts +14 -1
- package/sv/{sv.d.ts → index.d.ts} +0 -0
- package/sv/sv-container.component.d.ts +2 -2
- package/sv/sv-value.component.d.ts +1 -1
- package/sv/sv.component.d.ts +1 -1
- package/tag-select/{tag-select.d.ts → index.d.ts} +0 -0
- package/tag-select/tag-select.component.d.ts +1 -1
- package/xlsx/{xlsx.d.ts → index.d.ts} +0 -0
- package/xlsx/xlsx.directive.d.ts +1 -1
- package/zip/{zip.d.ts → index.d.ts} +0 -0
- package/zip/zip.service.d.ts +5 -5
- package/zip/zip.types.d.ts +4 -4
- package/auto-focus/auto-focus.d.ts +0 -5
- package/auto-focus/package.json +0 -10
- package/avatar-list/package.json +0 -10
- package/count-down/package.json +0 -10
- package/date-picker/package.json +0 -10
- package/down-file/package.json +0 -10
- package/ellipsis/package.json +0 -10
- package/error-collect/package.json +0 -10
- package/esm2020/image/image.directive.mjs +0 -146
- package/esm2020/image/image.mjs +0 -5
- package/esm2020/image/image.module.mjs +0 -20
- package/esm2020/image/public_api.mjs +0 -3
- package/exception/package.json +0 -10
- package/fesm2015/image.mjs +0 -165
- package/fesm2015/image.mjs.map +0 -1
- package/fesm2020/image.mjs +0 -170
- package/fesm2020/image.mjs.map +0 -1
- package/footer-toolbar/package.json +0 -10
- package/full-content/package.json +0 -10
- package/global-footer/package.json +0 -10
- package/image/image.d.ts +0 -5
- package/image/image.directive.d.ts +0 -40
- package/image/image.module.d.ts +0 -9
- package/image/package.json +0 -10
- package/image/public_api.d.ts +0 -2
- package/let/let.d.ts +0 -5
- package/let/package.json +0 -10
- package/loading/package.json +0 -10
- package/lodop/package.json +0 -10
- package/media/package.json +0 -10
- package/notice-icon/package.json +0 -10
- package/onboarding/package.json +0 -10
- package/page-header/package.json +0 -10
- package/pdf/package.json +0 -10
- package/qr/package.json +0 -10
- package/quick-menu/package.json +0 -10
- package/result/package.json +0 -10
- package/reuse-tab/package.json +0 -10
- package/se/package.json +0 -10
- package/sg/package.json +0 -10
- package/st/package.json +0 -10
- package/sv/package.json +0 -10
- package/tag-select/package.json +0 -10
- package/xlsx/package.json +0 -10
- package/zip/package.json +0 -10
|
@@ -19,5 +19,5 @@ export declare class ReuseTabContextMenuComponent implements OnInit {
|
|
|
19
19
|
isDisabled(custom: ReuseCustomContextMenu): boolean;
|
|
20
20
|
closeMenu(event: MouseEvent): void;
|
|
21
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<ReuseTabContextMenuComponent, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ReuseTabContextMenuComponent, "reuse-tab-context-menu", never, { "i18n": "i18n"; "item": "item"; "event": "event"; "customContextMenu": "customContextMenu"; }, { "close": "close"; }, never, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ReuseTabContextMenuComponent, "reuse-tab-context-menu", never, { "i18n": "i18n"; "item": "item"; "event": "event"; "customContextMenu": "customContextMenu"; }, { "close": "close"; }, never, never, false>;
|
|
23
23
|
}
|
|
@@ -10,5 +10,5 @@ export declare class ReuseTabContextComponent implements OnDestroy {
|
|
|
10
10
|
constructor(srv: ReuseTabContextService);
|
|
11
11
|
ngOnDestroy(): void;
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<ReuseTabContextComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ReuseTabContextComponent, "reuse-tab-context", never, { "i18n": "i18n"; }, { "change": "change"; }, never, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ReuseTabContextComponent, "reuse-tab-context", never, { "i18n": "i18n"; }, { "change": "change"; }, never, never, false>;
|
|
14
14
|
}
|
|
@@ -8,5 +8,5 @@ export declare class ReuseTabContextDirective {
|
|
|
8
8
|
constructor(srv: ReuseTabContextService);
|
|
9
9
|
_onContextMenu(event: MouseEvent): void;
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<ReuseTabContextDirective, never>;
|
|
11
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ReuseTabContextDirective, "[reuse-tab-context-menu]", ["reuseTabContextMenu"], { "item": "reuse-tab-context-menu"; "customContextMenu": "customContextMenu"; }, {}, never>;
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ReuseTabContextDirective, "[reuse-tab-context-menu]", ["reuseTabContextMenu"], { "item": "reuse-tab-context-menu"; "customContextMenu": "customContextMenu"; }, {}, never, never, false>;
|
|
12
12
|
}
|
|
@@ -5,8 +5,9 @@ import { ActivatedRoute, Router } from '@angular/router';
|
|
|
5
5
|
import { AlainI18NService } from '@delon/theme';
|
|
6
6
|
import { BooleanInput, NumberInput } from '@delon/util/decorator';
|
|
7
7
|
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
8
|
-
import { ReuseContextCloseEvent, ReuseContextI18n, ReuseCustomContextMenu, ReuseItem, ReuseTabMatchMode, ReuseTabRouteParamMatchMode } from './reuse-tab.interfaces';
|
|
8
|
+
import { ReuseCanClose, ReuseContextCloseEvent, ReuseContextI18n, ReuseCustomContextMenu, ReuseItem, ReuseTabMatchMode, ReuseTabRouteParamMatchMode } from './reuse-tab.interfaces';
|
|
9
9
|
import { ReuseTabService } from './reuse-tab.service';
|
|
10
|
+
import { ReuseTabStorageState } from './reuse-tab.state';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
export declare class ReuseTabComponent implements OnInit, OnChanges, OnDestroy {
|
|
12
13
|
private srv;
|
|
@@ -17,12 +18,15 @@ export declare class ReuseTabComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
17
18
|
private doc;
|
|
18
19
|
private platform;
|
|
19
20
|
private directionality;
|
|
21
|
+
private stateKey;
|
|
22
|
+
private stateSrv;
|
|
20
23
|
static ngAcceptInputType_debug: BooleanInput;
|
|
21
24
|
static ngAcceptInputType_max: NumberInput;
|
|
22
25
|
static ngAcceptInputType_tabMaxWidth: NumberInput;
|
|
23
26
|
static ngAcceptInputType_allowClose: BooleanInput;
|
|
24
27
|
static ngAcceptInputType_keepingScroll: BooleanInput;
|
|
25
28
|
static ngAcceptInputType_disabled: BooleanInput;
|
|
29
|
+
static ngAcceptInputType_storageState: BooleanInput;
|
|
26
30
|
private tabset;
|
|
27
31
|
private destroy$;
|
|
28
32
|
private _keepingScrollContainer?;
|
|
@@ -38,6 +42,7 @@ export declare class ReuseTabComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
38
42
|
excludes?: RegExp[];
|
|
39
43
|
allowClose: boolean;
|
|
40
44
|
keepingScroll: boolean;
|
|
45
|
+
storageState: boolean;
|
|
41
46
|
set keepingScrollContainer(value: string | Element);
|
|
42
47
|
customContextMenu: ReuseCustomContextMenu[];
|
|
43
48
|
tabBarExtraContent?: TemplateRef<void>;
|
|
@@ -51,15 +56,17 @@ export declare class ReuseTabComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
51
56
|
titleRender?: TemplateRef<{
|
|
52
57
|
$implicit: ReuseItem;
|
|
53
58
|
}>;
|
|
59
|
+
canClose?: ReuseCanClose;
|
|
54
60
|
readonly change: EventEmitter<ReuseItem>;
|
|
55
61
|
readonly close: EventEmitter<ReuseItem | null>;
|
|
56
|
-
constructor(srv: ReuseTabService, cdr: ChangeDetectorRef, router: Router, route: ActivatedRoute, i18nSrv: AlainI18NService, doc: NzSafeAny, platform: Platform, directionality: Directionality);
|
|
62
|
+
constructor(srv: ReuseTabService, cdr: ChangeDetectorRef, router: Router, route: ActivatedRoute, i18nSrv: AlainI18NService, doc: NzSafeAny, platform: Platform, directionality: Directionality, stateKey: string, stateSrv: ReuseTabStorageState);
|
|
57
63
|
private genTit;
|
|
58
64
|
private get curUrl();
|
|
59
65
|
private genCurItem;
|
|
60
66
|
private genList;
|
|
61
67
|
private updateTitle;
|
|
62
68
|
private refresh;
|
|
69
|
+
private saveState;
|
|
63
70
|
contextMenuChange(res: ReuseContextCloseEvent): void;
|
|
64
71
|
_to(index: number, cb?: () => void): void;
|
|
65
72
|
_close(e: Event | null, idx: number, includeNonCloseable: boolean): boolean;
|
|
@@ -70,6 +77,6 @@ export declare class ReuseTabComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
70
77
|
[P in keyof this]?: SimpleChange;
|
|
71
78
|
} & SimpleChanges): void;
|
|
72
79
|
ngOnDestroy(): void;
|
|
73
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ReuseTabComponent, [null, null, null, null, { optional: true; }, null, null, { optional: true; }]>;
|
|
74
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ReuseTabComponent, "reuse-tab, [reuse-tab]", ["reuseTab"], { "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"; }, { "change": "change"; "close": "close"; }, never, never>;
|
|
80
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ReuseTabComponent, [null, null, null, null, { optional: true; }, null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
81
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ReuseTabComponent, "reuse-tab, [reuse-tab]", ["reuseTab"], { "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"; }, { "change": "change"; "close": "close"; }, never, never, false>;
|
|
75
82
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ActivatedRouteSnapshot } from '@angular/router';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
2
3
|
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
3
4
|
import { ReuseTabContextComponent } from './reuse-tab-context.component';
|
|
4
5
|
/**
|
|
@@ -44,12 +45,12 @@ export interface ReuseTabCached {
|
|
|
44
45
|
closable?: boolean;
|
|
45
46
|
/** 当前滚动条位置 */
|
|
46
47
|
position?: [number, number] | null;
|
|
47
|
-
_snapshot
|
|
48
|
-
_handle
|
|
48
|
+
_snapshot?: ActivatedRouteSnapshot;
|
|
49
|
+
_handle?: ReuseComponentHandle;
|
|
49
50
|
}
|
|
50
51
|
export interface ReuseTabNotify {
|
|
51
52
|
/** 事件类型 */
|
|
52
|
-
active: 'add' | 'override' | 'title' | 'clear' | 'closable' | 'close' | 'closeRight' | 'move' | 'refresh';
|
|
53
|
+
active: 'add' | 'override' | 'title' | 'clear' | 'closable' | 'close' | 'closeRight' | 'move' | 'refresh' | 'loadState';
|
|
53
54
|
url?: string;
|
|
54
55
|
title?: ReuseTitle;
|
|
55
56
|
item?: ReuseTabCached;
|
|
@@ -63,6 +64,8 @@ export interface ReuseItem {
|
|
|
63
64
|
index: number;
|
|
64
65
|
active: boolean;
|
|
65
66
|
last: boolean;
|
|
67
|
+
/** 当前滚动条位置 */
|
|
68
|
+
position?: [number, number] | null;
|
|
66
69
|
}
|
|
67
70
|
export interface ReuseContextEvent {
|
|
68
71
|
event: MouseEvent;
|
|
@@ -101,3 +104,7 @@ export interface ReuseComponentInstance {
|
|
|
101
104
|
_onReuseDestroy: () => void;
|
|
102
105
|
destroy: () => void;
|
|
103
106
|
}
|
|
107
|
+
export declare type ReuseCanClose = (options: {
|
|
108
|
+
item: ReuseItem;
|
|
109
|
+
includeNonCloseable: boolean;
|
|
110
|
+
}) => Observable<boolean>;
|
|
@@ -4,10 +4,13 @@ import { Observable } from 'rxjs';
|
|
|
4
4
|
import { MenuService } from '@delon/theme';
|
|
5
5
|
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
6
6
|
import { ReuseComponentRef, ReuseHookOnReuseInitType, ReuseHookTypes, ReuseTabCached, ReuseTabMatchMode, ReuseTabNotify, ReuseTabRouteParamMatchMode, ReuseTitle } from './reuse-tab.interfaces';
|
|
7
|
+
import { ReuseTabStorageState } from './reuse-tab.state';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class ReuseTabService implements OnDestroy {
|
|
9
10
|
private injector;
|
|
10
11
|
private menuService;
|
|
12
|
+
private stateKey;
|
|
13
|
+
private stateSrv;
|
|
11
14
|
private _inited;
|
|
12
15
|
private _max;
|
|
13
16
|
private _keepingScroll;
|
|
@@ -24,6 +27,7 @@ export declare class ReuseTabService implements OnDestroy {
|
|
|
24
27
|
mode: ReuseTabMatchMode;
|
|
25
28
|
/** 排除规则,限 `mode=URL` */
|
|
26
29
|
excludes: RegExp[];
|
|
30
|
+
storageState: boolean;
|
|
27
31
|
private get snapshot();
|
|
28
32
|
/**
|
|
29
33
|
* Get init status
|
|
@@ -148,8 +152,9 @@ export declare class ReuseTabService implements OnDestroy {
|
|
|
148
152
|
refresh(data?: NzSafeAny): void;
|
|
149
153
|
private destroy;
|
|
150
154
|
private di;
|
|
151
|
-
constructor(injector: Injector, menuService: MenuService);
|
|
155
|
+
constructor(injector: Injector, menuService: MenuService, stateKey: string, stateSrv: ReuseTabStorageState);
|
|
152
156
|
init(): void;
|
|
157
|
+
private loadState;
|
|
153
158
|
private getMenu;
|
|
154
159
|
runHook(method: ReuseHookTypes, comp: ReuseComponentRef | number | undefined, type?: ReuseHookOnReuseInitType): void;
|
|
155
160
|
private hasInValidRoute;
|
|
@@ -185,6 +190,6 @@ export declare class ReuseTabService implements OnDestroy {
|
|
|
185
190
|
private get ss();
|
|
186
191
|
private initScroll;
|
|
187
192
|
ngOnDestroy(): void;
|
|
188
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ReuseTabService,
|
|
193
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ReuseTabService, [null, null, { optional: true; }, { optional: true; }]>;
|
|
189
194
|
static ɵprov: i0.ɵɵInjectableDeclaration<ReuseTabService>;
|
|
190
195
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import type { ReuseItem } from './reuse-tab.interfaces';
|
|
3
|
+
export declare const REUSE_TAB_STORAGE_KEY: InjectionToken<string>;
|
|
4
|
+
export declare const REUSE_TAB_STORAGE_STATE: InjectionToken<ReuseTabStorageState>;
|
|
5
|
+
export interface ReuseTabStorageState {
|
|
6
|
+
get(key: string): ReuseItem[];
|
|
7
|
+
update(key: string, value: ReuseItem[]): boolean;
|
|
8
|
+
remove(key: string): void;
|
|
9
|
+
}
|
|
10
|
+
export declare class ReuseTabLocalStorageState implements ReuseTabStorageState {
|
|
11
|
+
get(key: string): ReuseItem[];
|
|
12
|
+
update(key: string, value: ReuseItem[]): boolean;
|
|
13
|
+
remove(key: string): void;
|
|
14
|
+
}
|
|
File without changes
|
|
@@ -36,7 +36,7 @@ export declare class SEContainerComponent {
|
|
|
36
36
|
constructor(configSrv: AlainConfigService);
|
|
37
37
|
setErrors(errors: SEErrorRefresh[]): void;
|
|
38
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<SEContainerComponent, never>;
|
|
39
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SEContainerComponent, "se-container, [se-container]", ["seContainer"], { "colInCon": "se-container"; "col": "col"; "labelWidth": "labelWidth"; "noColon": "noColon"; "title": "title"; "gutter": "gutter"; "nzLayout": "nzLayout"; "size": "size"; "firstVisual": "firstVisual"; "ingoreDirty": "ingoreDirty"; "line": "line"; "errors": "errors"; }, {}, never, ["*"]>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SEContainerComponent, "se-container, [se-container]", ["seContainer"], { "colInCon": "se-container"; "col": "col"; "labelWidth": "labelWidth"; "noColon": "noColon"; "title": "title"; "gutter": "gutter"; "nzLayout": "nzLayout"; "size": "size"; "firstVisual": "firstVisual"; "ingoreDirty": "ingoreDirty"; "line": "line"; "errors": "errors"; }, {}, never, ["*"], false>;
|
|
40
40
|
}
|
|
41
41
|
export declare class SETitleComponent implements OnInit {
|
|
42
42
|
private parent;
|
|
@@ -46,5 +46,5 @@ export declare class SETitleComponent implements OnInit {
|
|
|
46
46
|
private setClass;
|
|
47
47
|
ngOnInit(): void;
|
|
48
48
|
static ɵfac: i0.ɵɵFactoryDeclaration<SETitleComponent, [{ optional: true; host: true; }, null, null]>;
|
|
49
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SETitleComponent, "se-title, [se-title]", ["seTitle"], {}, {}, never, ["*"]>;
|
|
49
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SETitleComponent, "se-title, [se-title]", ["seTitle"], {}, {}, never, ["*"], false>;
|
|
50
50
|
}
|
package/se/se.component.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, OnChanges, OnDestroy, Renderer2, TemplateRef } from '@angular/core';
|
|
2
2
|
import { ResponsiveService } from '@delon/theme';
|
|
3
3
|
import { BooleanInput, NumberInput } from '@delon/util/decorator';
|
|
4
|
+
import { NzFormStatusService } from 'ng-zorro-antd/core/form';
|
|
4
5
|
import { SEContainerComponent } from './se-container.component';
|
|
5
6
|
import { SEErrorType } from './se.types';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class SEComponent implements OnChanges, AfterContentInit, AfterViewInit, OnDestroy {
|
|
8
9
|
private parent;
|
|
10
|
+
private statusSrv;
|
|
9
11
|
private rep;
|
|
10
12
|
private ren;
|
|
11
13
|
private cdr;
|
|
@@ -49,7 +51,7 @@ export declare class SEComponent implements OnChanges, AfterContentInit, AfterVi
|
|
|
49
51
|
get showErr(): boolean;
|
|
50
52
|
get compact(): boolean;
|
|
51
53
|
private get ngControl();
|
|
52
|
-
constructor(el: ElementRef, parent: SEContainerComponent, rep: ResponsiveService, ren: Renderer2, cdr: ChangeDetectorRef);
|
|
54
|
+
constructor(el: ElementRef, parent: SEContainerComponent, statusSrv: NzFormStatusService, rep: ResponsiveService, ren: Renderer2, cdr: ChangeDetectorRef);
|
|
53
55
|
private setClass;
|
|
54
56
|
private bindModel;
|
|
55
57
|
private updateStatus;
|
|
@@ -58,6 +60,6 @@ export declare class SEComponent implements OnChanges, AfterContentInit, AfterVi
|
|
|
58
60
|
ngOnChanges(): void;
|
|
59
61
|
ngAfterViewInit(): void;
|
|
60
62
|
ngOnDestroy(): void;
|
|
61
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SEComponent, [null, { optional: true; host: true; }, null, null, null]>;
|
|
62
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SEComponent, "se", ["se"], { "optional": "optional"; "optionalHelp": "optionalHelp"; "optionalHelpColor": "optionalHelpColor"; "error": "error"; "extra": "extra"; "label": "label"; "col": "col"; "required": "required"; "controlClass": "controlClass"; "line": "line"; "labelWidth": "labelWidth"; "noColon": "noColon"; "hideLabel": "hideLabel"; "id": "id"; }, {}, ["ngModel", "formControlName"], ["*"]>;
|
|
63
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SEComponent, [null, { optional: true; host: true; }, null, null, null, null]>;
|
|
64
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SEComponent, "se", ["se"], { "optional": "optional"; "optionalHelp": "optionalHelp"; "optionalHelpColor": "optionalHelpColor"; "error": "error"; "extra": "extra"; "label": "label"; "col": "col"; "required": "required"; "controlClass": "controlClass"; "line": "line"; "labelWidth": "labelWidth"; "noColon": "noColon"; "hideLabel": "hideLabel"; "id": "id"; }, {}, ["ngModel", "formControlName"], ["*"], false>;
|
|
63
65
|
}
|
|
File without changes
|
|
@@ -12,5 +12,5 @@ export declare class SGContainerComponent {
|
|
|
12
12
|
get marginValue(): number;
|
|
13
13
|
constructor(configSrv: AlainConfigService);
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<SGContainerComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SGContainerComponent, "sg-container, [sg-container]", ["sgContainer"], { "gutter": "gutter"; "colInCon": "sg-container"; "col": "col"; }, {}, never, ["*"]>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SGContainerComponent, "sg-container, [sg-container]", ["sgContainer"], { "gutter": "gutter"; "colInCon": "sg-container"; "col": "col"; }, {}, never, ["*"], false>;
|
|
16
16
|
}
|
package/sg/sg.component.d.ts
CHANGED
|
@@ -18,5 +18,5 @@ export declare class SGComponent implements OnChanges, AfterViewInit {
|
|
|
18
18
|
ngOnChanges(): void;
|
|
19
19
|
ngAfterViewInit(): void;
|
|
20
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<SGComponent, [null, null, { optional: true; host: true; }, null]>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SGComponent, "sg", ["sg"], { "col": "col"; }, {}, never, ["*"]>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SGComponent, "sg", ["sg"], { "col": "col"; }, {}, never, ["*"], false>;
|
|
22
22
|
}
|
|
File without changes
|
|
@@ -17,5 +17,5 @@ export declare class STFilterComponent {
|
|
|
17
17
|
confirm(): void;
|
|
18
18
|
reset(): void;
|
|
19
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<STFilterComponent, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<STFilterComponent, "st-filter", never, { "col": "col"; "locale": "locale"; "f": "f"; }, { "n": "n"; "handle": "handle"; }, never, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<STFilterComponent, "st-filter", never, { "col": "col"; "locale": "locale"; "f": "f"; }, { "n": "n"; "handle": "handle"; }, never, never, false>;
|
|
21
21
|
}
|
package/st/st-row.directive.d.ts
CHANGED
|
@@ -17,5 +17,5 @@ export declare class STRowDirective implements OnInit {
|
|
|
17
17
|
constructor(ref: TemplateRef<void>, source: STRowSource);
|
|
18
18
|
ngOnInit(): void;
|
|
19
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<STRowDirective, [null, { host: true; }]>;
|
|
20
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<STRowDirective, "[st-row]", never, { "id": "st-row"; "type": "type"; }, {}, never>;
|
|
20
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<STRowDirective, "[st-row]", never, { "id": "st-row"; "type": "type"; }, {}, never, never, false>;
|
|
21
21
|
}
|
|
@@ -10,5 +10,5 @@ export declare class STWidgetHostDirective implements OnInit {
|
|
|
10
10
|
constructor(stWidgetRegistry: STWidgetRegistry, viewContainerRef: ViewContainerRef);
|
|
11
11
|
ngOnInit(): void;
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<STWidgetHostDirective, never>;
|
|
13
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<STWidgetHostDirective, "[st-widget-host]", never, { "record": "record"; "column": "column"; }, {}, never>;
|
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<STWidgetHostDirective, "[st-widget-host]", never, { "record": "record"; "column": "column"; }, {}, never, never, false>;
|
|
14
14
|
}
|
package/st/st.component.d.ts
CHANGED
|
@@ -253,7 +253,7 @@ export declare class STComponent implements AfterViewInit, OnChanges, OnDestroy
|
|
|
253
253
|
} & SimpleChanges): void;
|
|
254
254
|
ngOnDestroy(): void;
|
|
255
255
|
static ɵfac: i0.ɵɵFactoryDeclaration<STComponent, [{ optional: true; }, null, null, null, null, null, null, null, null, null]>;
|
|
256
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<STComponent, "st", ["st"], { "req": "req"; "res": "res"; "page": "page"; "data": "data"; "columns": "columns"; "contextmenu": "contextmenu"; "ps": "ps"; "pi": "pi"; "total": "total"; "loading": "loading"; "loadingDelay": "loadingDelay"; "loadingIndicator": "loadingIndicator"; "bordered": "bordered"; "size": "size"; "scroll": "scroll"; "singleSort": "singleSort"; "multiSort": "multiSort"; "rowClassName": "rowClassName"; "clickRowClassName": "clickRowClassName"; "widthMode": "widthMode"; "widthConfig": "widthConfig"; "resizable": "resizable"; "header": "header"; "showHeader": "showHeader"; "footer": "footer"; "bodyHeader": "bodyHeader"; "body": "body"; "expandRowByClick": "expandRowByClick"; "expandAccordion": "expandAccordion"; "expand": "expand"; "noResult": "noResult"; "responsive": "responsive"; "responsiveHideHeaderFooter": "responsiveHideHeaderFooter"; "virtualScroll": "virtualScroll"; "virtualItemSize": "virtualItemSize"; "virtualMaxBufferPx": "virtualMaxBufferPx"; "virtualMinBufferPx": "virtualMinBufferPx"; "customRequest": "customRequest"; "virtualForTrackBy": "virtualForTrackBy"; }, { "error": "error"; "change": "change"; }, never, never>;
|
|
256
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<STComponent, "st", ["st"], { "req": "req"; "res": "res"; "page": "page"; "data": "data"; "columns": "columns"; "contextmenu": "contextmenu"; "ps": "ps"; "pi": "pi"; "total": "total"; "loading": "loading"; "loadingDelay": "loadingDelay"; "loadingIndicator": "loadingIndicator"; "bordered": "bordered"; "size": "size"; "scroll": "scroll"; "singleSort": "singleSort"; "multiSort": "multiSort"; "rowClassName": "rowClassName"; "clickRowClassName": "clickRowClassName"; "widthMode": "widthMode"; "widthConfig": "widthConfig"; "resizable": "resizable"; "header": "header"; "showHeader": "showHeader"; "footer": "footer"; "bodyHeader": "bodyHeader"; "body": "body"; "expandRowByClick": "expandRowByClick"; "expandAccordion": "expandAccordion"; "expand": "expand"; "noResult": "noResult"; "responsive": "responsive"; "responsiveHideHeaderFooter": "responsiveHideHeaderFooter"; "virtualScroll": "virtualScroll"; "virtualItemSize": "virtualItemSize"; "virtualMaxBufferPx": "virtualMaxBufferPx"; "virtualMinBufferPx": "virtualMinBufferPx"; "customRequest": "customRequest"; "virtualForTrackBy": "virtualForTrackBy"; }, { "error": "error"; "change": "change"; }, never, never, false>;
|
|
257
257
|
}
|
|
258
258
|
export declare class STTdComponent {
|
|
259
259
|
private stComp;
|
|
@@ -276,5 +276,5 @@ export declare class STTdComponent {
|
|
|
276
276
|
_btn(btn: STColumnButton, ev?: Event): void;
|
|
277
277
|
private btnCallback;
|
|
278
278
|
static ɵfac: i0.ɵɵFactoryDeclaration<STTdComponent, [{ host: true; }, null, null, null]>;
|
|
279
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<STTdComponent, "st-td", never, { "c": "c"; "cIdx": "cIdx"; "data": "data"; "i": "i"; "index": "index"; }, { "n": "n"; }, never, never>;
|
|
279
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<STTdComponent, "st-td", never, { "c": "c"; "cIdx": "cIdx"; "data": "data"; "i": "i"; "index": "index"; }, { "n": "n"; }, never, never, false>;
|
|
280
280
|
}
|
package/st/st.interfaces.d.ts
CHANGED
|
@@ -52,6 +52,12 @@ export interface STReq {
|
|
|
52
52
|
* - `{ status: 'new' }` => `url?pi=1&ps=10&status=new`
|
|
53
53
|
*/
|
|
54
54
|
params?: any;
|
|
55
|
+
/**
|
|
56
|
+
* Whether to ignore `null` or `unfind` values in parameters
|
|
57
|
+
*
|
|
58
|
+
* 是否忽略参数中 `null` 或 `undefind` 值
|
|
59
|
+
*/
|
|
60
|
+
ignoreParamNull?: Boolean;
|
|
55
61
|
/** 请求方法,默认:`GET` */
|
|
56
62
|
method?: string;
|
|
57
63
|
/** 请求体 `body` */
|
|
@@ -100,7 +106,14 @@ export interface STRes<T extends STData = any> {
|
|
|
100
106
|
* 重命名返回参数 `total`、`list`
|
|
101
107
|
* - `{ total: 'Total' }` => Total 会被当作 `total`
|
|
102
108
|
*/
|
|
103
|
-
reName?: STResReNameType
|
|
109
|
+
reName?: STResReNameType | ((result: any, options: {
|
|
110
|
+
pi: number;
|
|
111
|
+
ps: number;
|
|
112
|
+
total: number;
|
|
113
|
+
}) => {
|
|
114
|
+
total: number;
|
|
115
|
+
list: T[];
|
|
116
|
+
});
|
|
104
117
|
/**
|
|
105
118
|
* 数据预处理
|
|
106
119
|
*/
|
|
File without changes
|
|
@@ -20,7 +20,7 @@ export declare class SVContainerComponent {
|
|
|
20
20
|
noColon: boolean;
|
|
21
21
|
constructor(configSrv: AlainConfigService);
|
|
22
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<SVContainerComponent, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SVContainerComponent, "sv-container, [sv-container]", ["svContainer"], { "title": "title"; "size": "size"; "gutter": "gutter"; "layout": "layout"; "labelWidth": "labelWidth"; "col": "col"; "default": "default"; "noColon": "noColon"; }, {}, never, ["*"]>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SVContainerComponent, "sv-container, [sv-container]", ["svContainer"], { "title": "title"; "size": "size"; "gutter": "gutter"; "layout": "layout"; "labelWidth": "labelWidth"; "col": "col"; "default": "default"; "noColon": "noColon"; }, {}, never, ["*"], false>;
|
|
24
24
|
}
|
|
25
25
|
export declare class SVTitleComponent implements OnInit {
|
|
26
26
|
private parent;
|
|
@@ -30,5 +30,5 @@ export declare class SVTitleComponent implements OnInit {
|
|
|
30
30
|
private setClass;
|
|
31
31
|
ngOnInit(): void;
|
|
32
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<SVTitleComponent, [null, { optional: true; host: true; }, null]>;
|
|
33
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SVTitleComponent, "sv-title, [sv-title]", ["svTitle"], {}, {}, never, ["*"]>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SVTitleComponent, "sv-title, [sv-title]", ["svTitle"], {}, {}, never, ["*"], false>;
|
|
34
34
|
}
|
|
@@ -6,5 +6,5 @@ export declare class SVValueComponent {
|
|
|
6
6
|
tooltip?: NzTSType | null;
|
|
7
7
|
size: 'large' | 'small' | 'default';
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<SVValueComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SVValueComponent, "sv-value, [sv-value]", ["svValue"], { "prefix": "prefix"; "unit": "unit"; "tooltip": "tooltip"; "size": "size"; }, {}, never, ["*"]>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SVValueComponent, "sv-value, [sv-value]", ["svValue"], { "prefix": "prefix"; "unit": "unit"; "tooltip": "tooltip"; "size": "size"; }, {}, never, ["*"], false>;
|
|
10
10
|
}
|
package/sv/sv.component.d.ts
CHANGED
|
@@ -31,5 +31,5 @@ export declare class SVComponent implements AfterViewInit, OnChanges {
|
|
|
31
31
|
ngOnChanges(): void;
|
|
32
32
|
checkContent(): void;
|
|
33
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<SVComponent, [null, { optional: true; host: true; }, null, null]>;
|
|
34
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SVComponent, "sv, [sv]", ["sv"], { "optional": "optional"; "optionalHelp": "optionalHelp"; "optionalHelpColor": "optionalHelpColor"; "label": "label"; "unit": "unit"; "col": "col"; "default": "default"; "type": "type"; "noColon": "noColon"; }, {}, never, ["*"]>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SVComponent, "sv, [sv]", ["sv"], { "optional": "optional"; "optionalHelp": "optionalHelp"; "optionalHelpColor": "optionalHelpColor"; "label": "label"; "unit": "unit"; "col": "col"; "default": "default"; "type": "type"; "noColon": "noColon"; }, {}, never, ["*"], false>;
|
|
35
35
|
}
|
|
File without changes
|
|
@@ -20,5 +20,5 @@ export declare class TagSelectComponent implements OnInit, OnDestroy {
|
|
|
20
20
|
trigger(): void;
|
|
21
21
|
ngOnDestroy(): void;
|
|
22
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<TagSelectComponent, [null, { optional: true; }, null]>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TagSelectComponent, "tag-select", ["tagSelect"], { "expandable": "expandable"; }, { "change": "change"; }, never, ["*"]>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TagSelectComponent, "tag-select", ["tagSelect"], { "expandable": "expandable"; }, { "change": "change"; }, never, ["*"], false>;
|
|
24
24
|
}
|
|
File without changes
|
package/xlsx/xlsx.directive.d.ts
CHANGED
|
@@ -7,5 +7,5 @@ export declare class XlsxDirective {
|
|
|
7
7
|
constructor(srv: XlsxService);
|
|
8
8
|
_click(): void;
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<XlsxDirective, never>;
|
|
10
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<XlsxDirective, "[xlsx]", ["xlsx"], { "data": "xlsx"; }, {}, never>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<XlsxDirective, "[xlsx]", ["xlsx"], { "data": "xlsx"; }, {}, never, never, false>;
|
|
11
11
|
}
|
|
File without changes
|
package/zip/zip.service.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { NgZone } from '@angular/core';
|
|
3
|
+
import type jsZipType from 'jszip';
|
|
3
4
|
import { AlainConfigService } from '@delon/util/config';
|
|
4
5
|
import { LazyService } from '@delon/util/other';
|
|
5
|
-
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
6
6
|
import { ZipSaveOptions } from './zip.types';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class ZipService {
|
|
@@ -14,9 +14,9 @@ export declare class ZipService {
|
|
|
14
14
|
private init;
|
|
15
15
|
private check;
|
|
16
16
|
/** 解压 */
|
|
17
|
-
read(fileOrUrl: File | string, options?:
|
|
17
|
+
read(fileOrUrl: File | string, options?: jsZipType.JSZipLoadOptions): Promise<jsZipType>;
|
|
18
18
|
/** 创建 Zip 实例,用于创建压缩文件 */
|
|
19
|
-
create(): Promise<
|
|
19
|
+
create(): Promise<jsZipType | null>;
|
|
20
20
|
/**
|
|
21
21
|
* 下载URL资源并写入 zip
|
|
22
22
|
*
|
|
@@ -24,14 +24,14 @@ export declare class ZipService {
|
|
|
24
24
|
* @param path Zip 路径,例如: `text.txt`、`txt/hi.txt`
|
|
25
25
|
* @param url URL 地址
|
|
26
26
|
*/
|
|
27
|
-
pushUrl(zip:
|
|
27
|
+
pushUrl(zip: jsZipType | null, path: string, url: string): Promise<void>;
|
|
28
28
|
/**
|
|
29
29
|
* 保存Zip并执行打开保存对话框
|
|
30
30
|
*
|
|
31
31
|
* @param zip zip 对象,务必通过 `create()` 构建
|
|
32
32
|
* @param options 额外参数,
|
|
33
33
|
*/
|
|
34
|
-
save(zip:
|
|
34
|
+
save(zip: jsZipType | null, options?: ZipSaveOptions): Promise<void>;
|
|
35
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<ZipService, never>;
|
|
36
36
|
static ɵprov: i0.ɵɵInjectableDeclaration<ZipService>;
|
|
37
37
|
}
|
package/zip/zip.types.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type jsZipType from 'jszip';
|
|
2
2
|
export interface ZipWriteOptions {
|
|
3
3
|
/** save file name, default: `download.zip` */
|
|
4
4
|
filename?: string;
|
|
5
|
-
options?:
|
|
5
|
+
options?: jsZipType.JSZipGeneratorOptions;
|
|
6
6
|
/** The optional function called on each internal update with the metadata. */
|
|
7
|
-
update?: (
|
|
7
|
+
update?: (percent: number, currentFile: string) => void;
|
|
8
8
|
/** triggers when saveas */
|
|
9
9
|
callback?: () => void;
|
|
10
10
|
}
|
|
@@ -16,7 +16,7 @@ export interface ZipSaveOptions {
|
|
|
16
16
|
/**
|
|
17
17
|
* JSZip [generateAsync](https://stuk.github.io/jszip/documentation/api_jszip/generate_async.html) 方法的 `options` 选项
|
|
18
18
|
*/
|
|
19
|
-
options?:
|
|
19
|
+
options?: jsZipType.JSZipGeneratorOptions;
|
|
20
20
|
/**
|
|
21
21
|
* JSZip [generateAsync](https://stuk.github.io/jszip/documentation/api_jszip/generate_async.html) 方法的 `onUpdate` 回调
|
|
22
22
|
*/
|
package/auto-focus/package.json
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"module": "../fesm2015/auto-focus.mjs",
|
|
3
|
-
"es2020": "../fesm2020/auto-focus.mjs",
|
|
4
|
-
"esm2020": "../esm2020/auto-focus/auto-focus.mjs",
|
|
5
|
-
"fesm2020": "../fesm2020/auto-focus.mjs",
|
|
6
|
-
"fesm2015": "../fesm2015/auto-focus.mjs",
|
|
7
|
-
"typings": "auto-focus.d.ts",
|
|
8
|
-
"sideEffects": false,
|
|
9
|
-
"name": "@delon/abc/auto-focus"
|
|
10
|
-
}
|
package/avatar-list/package.json
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"module": "../fesm2015/avatar-list.mjs",
|
|
3
|
-
"es2020": "../fesm2020/avatar-list.mjs",
|
|
4
|
-
"esm2020": "../esm2020/avatar-list/avatar-list.mjs",
|
|
5
|
-
"fesm2020": "../fesm2020/avatar-list.mjs",
|
|
6
|
-
"fesm2015": "../fesm2015/avatar-list.mjs",
|
|
7
|
-
"typings": "avatar-list.d.ts",
|
|
8
|
-
"sideEffects": false,
|
|
9
|
-
"name": "@delon/abc/avatar-list"
|
|
10
|
-
}
|
package/count-down/package.json
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"module": "../fesm2015/count-down.mjs",
|
|
3
|
-
"es2020": "../fesm2020/count-down.mjs",
|
|
4
|
-
"esm2020": "../esm2020/count-down/count-down.mjs",
|
|
5
|
-
"fesm2020": "../fesm2020/count-down.mjs",
|
|
6
|
-
"fesm2015": "../fesm2015/count-down.mjs",
|
|
7
|
-
"typings": "count-down.d.ts",
|
|
8
|
-
"sideEffects": false,
|
|
9
|
-
"name": "@delon/abc/count-down"
|
|
10
|
-
}
|
package/date-picker/package.json
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"module": "../fesm2015/date-picker.mjs",
|
|
3
|
-
"es2020": "../fesm2020/date-picker.mjs",
|
|
4
|
-
"esm2020": "../esm2020/date-picker/date-picker.mjs",
|
|
5
|
-
"fesm2020": "../fesm2020/date-picker.mjs",
|
|
6
|
-
"fesm2015": "../fesm2015/date-picker.mjs",
|
|
7
|
-
"typings": "date-picker.d.ts",
|
|
8
|
-
"sideEffects": false,
|
|
9
|
-
"name": "@delon/abc/date-picker"
|
|
10
|
-
}
|
package/down-file/package.json
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"module": "../fesm2015/down-file.mjs",
|
|
3
|
-
"es2020": "../fesm2020/down-file.mjs",
|
|
4
|
-
"esm2020": "../esm2020/down-file/down-file.mjs",
|
|
5
|
-
"fesm2020": "../fesm2020/down-file.mjs",
|
|
6
|
-
"fesm2015": "../fesm2015/down-file.mjs",
|
|
7
|
-
"typings": "down-file.d.ts",
|
|
8
|
-
"sideEffects": false,
|
|
9
|
-
"name": "@delon/abc/down-file"
|
|
10
|
-
}
|
package/ellipsis/package.json
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"module": "../fesm2015/ellipsis.mjs",
|
|
3
|
-
"es2020": "../fesm2020/ellipsis.mjs",
|
|
4
|
-
"esm2020": "../esm2020/ellipsis/ellipsis.mjs",
|
|
5
|
-
"fesm2020": "../fesm2020/ellipsis.mjs",
|
|
6
|
-
"fesm2015": "../fesm2015/ellipsis.mjs",
|
|
7
|
-
"typings": "ellipsis.d.ts",
|
|
8
|
-
"sideEffects": false,
|
|
9
|
-
"name": "@delon/abc/ellipsis"
|
|
10
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"module": "../fesm2015/error-collect.mjs",
|
|
3
|
-
"es2020": "../fesm2020/error-collect.mjs",
|
|
4
|
-
"esm2020": "../esm2020/error-collect/error-collect.mjs",
|
|
5
|
-
"fesm2020": "../fesm2020/error-collect.mjs",
|
|
6
|
-
"fesm2015": "../fesm2015/error-collect.mjs",
|
|
7
|
-
"typings": "error-collect.d.ts",
|
|
8
|
-
"sideEffects": false,
|
|
9
|
-
"name": "@delon/abc/error-collect"
|
|
10
|
-
}
|