@delon/abc 12.4.1 → 13.0.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/abc.d.ts +1 -0
- package/auto-focus/{autoFocus.d.ts → auto-focus.d.ts} +1 -0
- package/auto-focus/auto-focus.directive.d.ts +7 -2
- package/auto-focus/auto-focus.module.d.ts +5 -0
- package/auto-focus/package.json +6 -7
- package/avatar-list/avatar-list-item.component.d.ts +7 -4
- package/avatar-list/avatar-list.component.d.ts +4 -1
- package/avatar-list/avatar-list.d.ts +5 -0
- package/avatar-list/avatar-list.module.d.ts +9 -0
- package/avatar-list/package.json +6 -7
- package/avatar-list/style/index.less +6 -0
- package/count-down/count-down.component.d.ts +4 -1
- package/count-down/count-down.d.ts +1 -0
- package/count-down/count-down.module.d.ts +7 -0
- package/count-down/package.json +5 -6
- package/date-picker/date-picker.d.ts +5 -0
- package/date-picker/date-picker.module.d.ts +9 -0
- package/date-picker/package.json +6 -7
- package/date-picker/public_api.d.ts +1 -0
- package/date-picker/range-shortcut.component.d.ts +3 -0
- package/date-picker/range.directive.d.ts +3 -0
- package/down-file/down-file.d.ts +5 -0
- package/down-file/down-file.directive.d.ts +5 -2
- package/down-file/down-file.module.d.ts +7 -0
- package/down-file/package.json +6 -7
- package/ellipsis/ellipsis.component.d.ts +5 -2
- package/ellipsis/ellipsis.d.ts +1 -0
- package/ellipsis/ellipsis.module.d.ts +8 -0
- package/ellipsis/package.json +5 -6
- package/ellipsis/style/index.less +4 -0
- package/error-collect/error-collect.component.d.ts +3 -0
- package/error-collect/error-collect.d.ts +5 -0
- package/error-collect/error-collect.module.d.ts +7 -0
- package/error-collect/package.json +6 -7
- package/error-collect/style/index.less +1 -0
- package/{esm2015/abc.js → esm2020/abc.mjs} +0 -0
- package/esm2020/auto-focus/auto-focus.directive.mjs +48 -0
- package/esm2020/auto-focus/auto-focus.mjs +5 -0
- package/esm2020/auto-focus/auto-focus.module.mjs +17 -0
- package/{esm2015/auto-focus/index.js → esm2020/auto-focus/index.mjs} +0 -0
- package/esm2020/avatar-list/avatar-list-item.component.mjs +26 -0
- package/esm2020/avatar-list/avatar-list.component.mjs +89 -0
- package/esm2020/avatar-list/avatar-list.mjs +5 -0
- package/esm2020/avatar-list/avatar-list.module.mjs +22 -0
- package/{esm2015/avatar-list/public_api.js → esm2020/avatar-list/public_api.mjs} +0 -0
- package/esm2020/count-down/count-down.component.mjs +45 -0
- package/{esm2015/count-down/count-down.js → esm2020/count-down/count-down.mjs} +0 -0
- package/esm2020/count-down/count-down.module.mjs +20 -0
- package/{esm2015/count-down/public_api.js → esm2020/count-down/public_api.mjs} +0 -0
- package/esm2020/date-picker/date-picker.mjs +5 -0
- package/esm2020/date-picker/date-picker.module.mjs +22 -0
- package/{esm2015/date-picker/public_api.js → esm2020/date-picker/public_api.mjs} +2 -1
- package/esm2020/date-picker/range-shortcut.component.mjs +40 -0
- package/esm2020/date-picker/range.directive.mjs +174 -0
- package/esm2020/down-file/down-file.directive.mjs +114 -0
- package/esm2020/down-file/down-file.mjs +5 -0
- package/esm2020/down-file/down-file.module.mjs +20 -0
- package/{esm2015/down-file/public_api.js → esm2020/down-file/public_api.mjs} +0 -0
- package/esm2020/ellipsis/ellipsis.component.mjs +229 -0
- package/{esm2015/ellipsis/ellipsis.js → esm2020/ellipsis/ellipsis.mjs} +0 -0
- package/esm2020/ellipsis/ellipsis.module.mjs +21 -0
- package/{esm2015/ellipsis/public_api.js → esm2020/ellipsis/public_api.mjs} +0 -0
- package/esm2020/error-collect/error-collect.component.mjs +118 -0
- package/esm2020/error-collect/error-collect.mjs +5 -0
- package/esm2020/error-collect/error-collect.module.mjs +20 -0
- package/{esm2015/error-collect/public_api.js → esm2020/error-collect/public_api.mjs} +0 -0
- package/esm2020/exception/exception.component.mjs +105 -0
- package/{esm2015/exception/exception.js → esm2020/exception/exception.mjs} +0 -0
- package/esm2020/exception/exception.module.mjs +23 -0
- package/{esm2015/exception/public_api.js → esm2020/exception/public_api.mjs} +0 -0
- package/esm2020/footer-toolbar/footer-toolbar.component.mjs +44 -0
- package/esm2020/footer-toolbar/footer-toolbar.mjs +5 -0
- package/esm2020/footer-toolbar/footer-toolbar.module.mjs +21 -0
- package/{esm2015/footer-toolbar/public_api.js → esm2020/footer-toolbar/public_api.mjs} +0 -0
- package/esm2020/full-content/full-content-toggle.directive.mjs +24 -0
- package/esm2020/full-content/full-content.component.mjs +138 -0
- package/esm2020/full-content/full-content.mjs +5 -0
- package/esm2020/full-content/full-content.module.mjs +20 -0
- package/esm2020/full-content/full-content.service.mjs +23 -0
- package/{esm2015/full-content/public_api.js → esm2020/full-content/public_api.mjs} +0 -0
- package/esm2020/global-footer/global-footer-item.component.mjs +30 -0
- package/esm2020/global-footer/global-footer.component.mjs +73 -0
- package/esm2020/global-footer/global-footer.mjs +5 -0
- package/esm2020/global-footer/global-footer.module.mjs +21 -0
- package/{esm2015/global-footer/global-footer.types.js → esm2020/global-footer/global-footer.types.mjs} +0 -0
- package/{esm2015/global-footer/public_api.js → esm2020/global-footer/public_api.mjs} +0 -0
- package/esm2020/image/image.directive.mjs +146 -0
- package/{esm2015/image/image.js → esm2020/image/image.mjs} +0 -0
- package/esm2020/image/image.module.mjs +20 -0
- package/{esm2015/image/public_api.js → esm2020/image/public_api.mjs} +0 -0
- package/{esm2015/let/index.js → esm2020/let/index.mjs} +0 -0
- package/esm2020/let/let.directive.mjs +36 -0
- package/{esm2015/let/let.js → esm2020/let/let.mjs} +0 -0
- package/esm2020/let/let.module.mjs +17 -0
- package/esm2020/loading/loading.component.mjs +26 -0
- package/{esm2015/loading/loading.js → esm2020/loading/loading.mjs} +0 -0
- package/esm2020/loading/loading.module.mjs +24 -0
- package/esm2020/loading/loading.service.mjs +88 -0
- package/{esm2015/loading/loading.types.js → esm2020/loading/loading.types.mjs} +0 -0
- package/{esm2015/loading/public_api.js → esm2020/loading/public_api.mjs} +0 -0
- package/{esm2015/lodop/lodop.js → esm2020/lodop/lodop.mjs} +0 -0
- package/esm2020/lodop/lodop.module.mjs +12 -0
- package/esm2020/lodop/lodop.service.mjs +222 -0
- package/esm2020/lodop/lodop.types.mjs +2 -0
- package/{esm2015/lodop/public_api.js → esm2020/lodop/public_api.mjs} +0 -0
- package/esm2020/media/media.component.mjs +106 -0
- package/{esm2015/media/media.js → esm2020/media/media.mjs} +0 -0
- package/esm2020/media/media.module.mjs +19 -0
- package/esm2020/media/media.service.mjs +46 -0
- package/{esm2015/media/plyr.types.js → esm2020/media/plyr.types.mjs} +0 -0
- package/{esm2015/media/public_api.js → esm2020/media/public_api.mjs} +0 -0
- package/esm2020/notice-icon/notice-icon-tab.component.mjs +34 -0
- package/esm2020/notice-icon/notice-icon.component.mjs +80 -0
- package/esm2020/notice-icon/notice-icon.mjs +5 -0
- package/esm2020/notice-icon/notice-icon.module.mjs +60 -0
- package/{esm2015/notice-icon/notice-icon.types.js → esm2020/notice-icon/notice-icon.types.mjs} +0 -0
- package/{esm2015/notice-icon/public_api.js → esm2020/notice-icon/public_api.mjs} +0 -0
- package/esm2020/onboarding/onboarding.component.mjs +134 -0
- package/{esm2015/onboarding/onboarding.js → esm2020/onboarding/onboarding.mjs} +0 -0
- package/esm2020/onboarding/onboarding.module.mjs +25 -0
- package/esm2020/onboarding/onboarding.service.mjs +185 -0
- package/{esm2015/onboarding/onboarding.types.js → esm2020/onboarding/onboarding.types.mjs} +0 -0
- package/{esm2015/onboarding/public_api.js → esm2020/onboarding/public_api.mjs} +0 -0
- package/esm2020/page-header/page-header.component.mjs +247 -0
- package/esm2020/page-header/page-header.mjs +5 -0
- package/esm2020/page-header/page-header.module.mjs +24 -0
- package/{esm2015/page-header/public_api.js → esm2020/page-header/public_api.mjs} +0 -0
- package/esm2020/pdf/pdf.component.mjs +460 -0
- package/{esm2015/pdf/pdf.config.js → esm2020/pdf/pdf.config.mjs} +2 -2
- package/{esm2015/pdf/pdf.js → esm2020/pdf/pdf.mjs} +0 -0
- package/esm2020/pdf/pdf.module.mjs +20 -0
- package/{esm2015/pdf/pdf.types.js → esm2020/pdf/pdf.types.mjs} +0 -0
- package/{esm2015/pdf/public_api.js → esm2020/pdf/public_api.mjs} +0 -0
- package/{esm2015/public_api.js → esm2020/public_api.mjs} +0 -0
- package/{esm2015/qr/public_api.js → esm2020/qr/public_api.mjs} +0 -0
- package/esm2020/qr/qr.component.mjs +136 -0
- package/{esm2015/qr/qr.config.js → esm2020/qr/qr.config.mjs} +2 -2
- package/{esm2015/qr/qr.js → esm2020/qr/qr.mjs} +0 -0
- package/esm2020/qr/qr.module.mjs +19 -0
- package/{esm2015/qr/qr.types.js → esm2020/qr/qr.types.mjs} +0 -0
- package/{esm2015/quick-menu/public_api.js → esm2020/quick-menu/public_api.mjs} +0 -0
- package/esm2020/quick-menu/quick-menu.component.mjs +89 -0
- package/esm2020/quick-menu/quick-menu.mjs +5 -0
- package/esm2020/quick-menu/quick-menu.module.mjs +21 -0
- package/{esm2015/result/public_api.js → esm2020/result/public_api.mjs} +0 -0
- package/esm2020/result/result.component.mjs +61 -0
- package/{esm2015/result/result.js → esm2020/result/result.mjs} +0 -0
- package/esm2020/result/result.module.mjs +21 -0
- package/{esm2015/reuse-tab/lifecycle_hooks.js → esm2020/reuse-tab/lifecycle_hooks.mjs} +0 -0
- package/{esm2015/reuse-tab/public_api.js → esm2020/reuse-tab/public_api.mjs} +0 -0
- package/esm2020/reuse-tab/reuse-tab-context-menu.component.mjs +76 -0
- package/esm2020/reuse-tab/reuse-tab-context.component.mjs +33 -0
- package/esm2020/reuse-tab/reuse-tab-context.directive.mjs +35 -0
- package/esm2020/reuse-tab/reuse-tab-context.service.mjs +55 -0
- package/esm2020/reuse-tab/reuse-tab.component.mjs +318 -0
- package/{esm2015/reuse-tab/reuse-tab.interfaces.js → esm2020/reuse-tab/reuse-tab.interfaces.mjs} +0 -0
- package/esm2020/reuse-tab/reuse-tab.mjs +5 -0
- package/esm2020/reuse-tab/reuse-tab.module.mjs +29 -0
- package/esm2020/reuse-tab/reuse-tab.service.mjs +533 -0
- package/{esm2015/reuse-tab/reuse-tab.strategy.js → esm2020/reuse-tab/reuse-tab.strategy.mjs} +0 -0
- package/esm2020/se/public_api.mjs +5 -0
- package/esm2020/se/se-container.component.mjs +173 -0
- package/esm2020/se/se.component.mjs +233 -0
- package/esm2020/se/se.mjs +5 -0
- package/esm2020/se/se.module.mjs +23 -0
- package/{esm2015/se/se.types.js → esm2020/se/se.types.mjs} +0 -0
- package/{esm2015/sg/public_api.js → esm2020/sg/public_api.mjs} +0 -0
- package/esm2020/sg/sg-container.component.mjs +52 -0
- package/esm2020/sg/sg.component.mjs +67 -0
- package/esm2020/sg/sg.mjs +5 -0
- package/esm2020/sg/sg.module.mjs +20 -0
- package/{esm2015/st/public_api.js → esm2020/st/public_api.mjs} +0 -0
- package/esm2020/st/st-column-source.mjs +470 -0
- package/esm2020/st/st-data-source.mjs +448 -0
- package/esm2020/st/st-export.mjs +89 -0
- package/esm2020/st/st-filter.component.mjs +262 -0
- package/esm2020/st/st-row.directive.mjs +45 -0
- package/esm2020/st/st-widget-host.directive.mjs +31 -0
- package/esm2020/st/st-widget.mjs +26 -0
- package/esm2020/st/st.component.mjs +969 -0
- package/{esm2015/st/st.config.js → esm2020/st/st.config.mjs} +0 -0
- package/esm2020/st/st.interfaces.mjs +2 -0
- package/esm2020/st/st.mjs +5 -0
- package/esm2020/st/st.module.mjs +98 -0
- package/{esm2015/st/st.types.js → esm2020/st/st.types.mjs} +0 -0
- package/esm2020/sv/public_api.mjs +5 -0
- package/esm2020/sv/sv-container.component.mjs +125 -0
- package/esm2020/sv/sv-value.component.mjs +44 -0
- package/esm2020/sv/sv.component.mjs +113 -0
- package/esm2020/sv/sv.mjs +5 -0
- package/esm2020/sv/sv.module.mjs +25 -0
- package/{esm2015/tag-select/public_api.js → esm2020/tag-select/public_api.mjs} +0 -0
- package/esm2020/tag-select/tag-select.component.mjs +64 -0
- package/esm2020/tag-select/tag-select.mjs +5 -0
- package/esm2020/tag-select/tag-select.module.mjs +21 -0
- package/{esm2015/xlsx/public_api.js → esm2020/xlsx/public_api.mjs} +0 -0
- package/esm2020/xlsx/xlsx.directive.mjs +27 -0
- package/{esm2015/xlsx/xlsx.js → esm2020/xlsx/xlsx.mjs} +0 -0
- package/esm2020/xlsx/xlsx.module.mjs +19 -0
- package/esm2020/xlsx/xlsx.service.mjs +128 -0
- package/{esm2015/xlsx/xlsx.types.js → esm2020/xlsx/xlsx.types.mjs} +0 -0
- package/{esm2015/zip/public_api.js → esm2020/zip/public_api.mjs} +0 -0
- package/{esm2015/zip/zip.js → esm2020/zip/zip.mjs} +0 -0
- package/esm2020/zip/zip.module.mjs +15 -0
- package/esm2020/zip/zip.service.mjs +114 -0
- package/{esm2015/zip/zip.types.js → esm2020/zip/zip.types.mjs} +0 -0
- package/exception/exception.component.d.ts +3 -0
- package/exception/exception.d.ts +1 -0
- package/exception/exception.module.d.ts +10 -0
- package/exception/package.json +5 -6
- package/exception/style/index.less +9 -0
- package/fesm2015/{abc.js → abc.mjs} +1 -1
- package/fesm2015/abc.mjs.map +1 -0
- package/fesm2015/auto-focus.mjs +69 -0
- package/fesm2015/auto-focus.mjs.map +1 -0
- package/fesm2015/avatar-list.mjs +140 -0
- package/fesm2015/avatar-list.mjs.map +1 -0
- package/fesm2015/count-down.mjs +69 -0
- package/fesm2015/count-down.mjs.map +1 -0
- package/fesm2015/{datePicker.js → date-picker.mjs} +63 -40
- package/fesm2015/date-picker.mjs.map +1 -0
- package/fesm2015/down-file.mjs +141 -0
- package/fesm2015/down-file.mjs.map +1 -0
- package/fesm2015/ellipsis.mjs +255 -0
- package/fesm2015/ellipsis.mjs.map +1 -0
- package/fesm2015/error-collect.mjs +144 -0
- package/fesm2015/error-collect.mjs.map +1 -0
- package/fesm2015/exception.mjs +135 -0
- package/fesm2015/exception.mjs.map +1 -0
- package/fesm2015/footer-toolbar.mjs +70 -0
- package/fesm2015/footer-toolbar.mjs.map +1 -0
- package/fesm2015/full-content.mjs +202 -0
- package/fesm2015/full-content.mjs.map +1 -0
- package/fesm2015/global-footer.mjs +127 -0
- package/fesm2015/global-footer.mjs.map +1 -0
- package/fesm2015/image.mjs +165 -0
- package/fesm2015/image.mjs.map +1 -0
- package/fesm2015/let.mjs +59 -0
- package/fesm2015/let.mjs.map +1 -0
- package/fesm2015/loading.mjs +140 -0
- package/fesm2015/loading.mjs.map +1 -0
- package/fesm2015/{lodop.js → lodop.mjs} +15 -15
- package/fesm2015/lodop.mjs.map +1 -0
- package/fesm2015/media.mjs +170 -0
- package/fesm2015/media.mjs.map +1 -0
- package/fesm2015/notice-icon.mjs +173 -0
- package/fesm2015/notice-icon.mjs.map +1 -0
- package/fesm2015/onboarding.mjs +335 -0
- package/fesm2015/onboarding.mjs.map +1 -0
- package/fesm2015/page-header.mjs +277 -0
- package/fesm2015/page-header.mjs.map +1 -0
- package/fesm2015/{pdf.js → pdf.mjs} +81 -54
- package/fesm2015/pdf.mjs.map +1 -0
- package/fesm2015/qr.mjs +171 -0
- package/fesm2015/qr.mjs.map +1 -0
- package/fesm2015/quick-menu.mjs +114 -0
- package/fesm2015/quick-menu.mjs.map +1 -0
- package/fesm2015/result.mjs +89 -0
- package/fesm2015/result.mjs.map +1 -0
- package/fesm2015/{reuseTab.js → reuse-tab.mjs} +183 -160
- package/fesm2015/reuse-tab.mjs.map +1 -0
- package/fesm2015/se.mjs +443 -0
- package/fesm2015/se.mjs.map +1 -0
- package/fesm2015/sg.mjs +139 -0
- package/fesm2015/sg.mjs.map +1 -0
- package/fesm2015/{table.js → st.mjs} +610 -492
- package/fesm2015/st.mjs.map +1 -0
- package/fesm2015/sv.mjs +302 -0
- package/fesm2015/sv.mjs.map +1 -0
- package/fesm2015/tag-select.mjs +92 -0
- package/fesm2015/tag-select.mjs.map +1 -0
- package/fesm2015/{xlsx.js → xlsx.mjs} +42 -42
- package/fesm2015/xlsx.mjs.map +1 -0
- package/fesm2015/{zip.js → zip.mjs} +35 -32
- package/fesm2015/zip.mjs.map +1 -0
- package/fesm2020/abc.mjs +7 -0
- package/fesm2020/abc.mjs.map +1 -0
- package/fesm2020/auto-focus.mjs +69 -0
- package/fesm2020/auto-focus.mjs.map +1 -0
- package/fesm2020/avatar-list.mjs +137 -0
- package/fesm2020/avatar-list.mjs.map +1 -0
- package/fesm2020/count-down.mjs +69 -0
- package/fesm2020/count-down.mjs.map +1 -0
- package/fesm2020/date-picker.mjs +236 -0
- package/fesm2020/date-picker.mjs.map +1 -0
- package/fesm2020/down-file.mjs +138 -0
- package/fesm2020/down-file.mjs.map +1 -0
- package/fesm2020/ellipsis.mjs +253 -0
- package/fesm2020/ellipsis.mjs.map +1 -0
- package/fesm2020/error-collect.mjs +141 -0
- package/fesm2020/error-collect.mjs.map +1 -0
- package/fesm2020/exception.mjs +132 -0
- package/fesm2020/exception.mjs.map +1 -0
- package/fesm2020/footer-toolbar.mjs +68 -0
- package/fesm2020/footer-toolbar.mjs.map +1 -0
- package/fesm2020/full-content.mjs +199 -0
- package/fesm2020/full-content.mjs.map +1 -0
- package/fesm2020/global-footer.mjs +124 -0
- package/fesm2020/global-footer.mjs.map +1 -0
- package/fesm2020/image.mjs +170 -0
- package/fesm2020/image.mjs.map +1 -0
- package/fesm2020/let.mjs +57 -0
- package/fesm2020/let.mjs.map +1 -0
- package/fesm2020/loading.mjs +138 -0
- package/fesm2020/loading.mjs.map +1 -0
- package/fesm2020/lodop.mjs +239 -0
- package/fesm2020/lodop.mjs.map +1 -0
- package/fesm2020/media.mjs +172 -0
- package/fesm2020/media.mjs.map +1 -0
- package/fesm2020/notice-icon.mjs +173 -0
- package/fesm2020/notice-icon.mjs.map +1 -0
- package/fesm2020/onboarding.mjs +343 -0
- package/fesm2020/onboarding.mjs.map +1 -0
- package/fesm2020/page-header.mjs +274 -0
- package/fesm2020/page-header.mjs.map +1 -0
- package/fesm2020/pdf.mjs +506 -0
- package/fesm2020/pdf.mjs.map +1 -0
- package/fesm2020/qr.mjs +171 -0
- package/fesm2020/qr.mjs.map +1 -0
- package/fesm2020/quick-menu.mjs +114 -0
- package/fesm2020/quick-menu.mjs.map +1 -0
- package/fesm2020/result.mjs +86 -0
- package/fesm2020/result.mjs.map +1 -0
- package/fesm2020/reuse-tab.mjs +1106 -0
- package/fesm2020/reuse-tab.mjs.map +1 -0
- package/fesm2020/se.mjs +436 -0
- package/fesm2020/se.mjs.map +1 -0
- package/fesm2020/sg.mjs +137 -0
- package/fesm2020/sg.mjs.map +1 -0
- package/fesm2020/st.mjs +2469 -0
- package/fesm2020/st.mjs.map +1 -0
- package/fesm2020/sv.mjs +298 -0
- package/fesm2020/sv.mjs.map +1 -0
- package/fesm2020/tag-select.mjs +89 -0
- package/fesm2020/tag-select.mjs.map +1 -0
- package/fesm2020/xlsx.mjs +175 -0
- package/fesm2020/xlsx.mjs.map +1 -0
- package/fesm2020/zip.mjs +134 -0
- package/fesm2020/zip.mjs.map +1 -0
- package/footer-toolbar/footer-toolbar.component.d.ts +4 -1
- package/footer-toolbar/footer-toolbar.d.ts +5 -0
- package/footer-toolbar/footer-toolbar.module.d.ts +8 -0
- package/footer-toolbar/package.json +6 -7
- package/footer-toolbar/style/index.less +1 -0
- package/full-content/full-content-toggle.directive.d.ts +3 -0
- package/full-content/full-content.component.d.ts +6 -3
- package/full-content/full-content.d.ts +5 -0
- package/full-content/full-content.module.d.ts +7 -0
- package/full-content/full-content.service.d.ts +3 -0
- package/full-content/package.json +6 -7
- package/full-content/style/index.less +1 -0
- package/global-footer/global-footer-item.component.d.ts +5 -2
- package/global-footer/global-footer.component.d.ts +3 -0
- package/global-footer/global-footer.d.ts +5 -0
- package/global-footer/global-footer.module.d.ts +8 -0
- package/global-footer/package.json +6 -7
- package/global-footer/style/index.less +5 -0
- package/image/image.d.ts +1 -0
- package/image/image.directive.d.ts +4 -1
- package/image/image.module.d.ts +7 -0
- package/image/package.json +5 -6
- package/let/let.d.ts +1 -0
- package/let/let.directive.d.ts +3 -0
- package/let/let.module.d.ts +5 -0
- package/let/package.json +5 -6
- package/loading/loading.component.d.ts +3 -0
- package/loading/loading.d.ts +1 -0
- package/loading/loading.module.d.ts +10 -0
- package/loading/loading.service.d.ts +4 -1
- package/loading/package.json +5 -6
- package/loading/style/index.less +3 -0
- package/lodop/lodop.d.ts +1 -0
- package/lodop/lodop.module.d.ts +4 -0
- package/lodop/lodop.service.d.ts +3 -0
- package/lodop/lodop.types.d.ts +4 -0
- package/lodop/package.json +5 -6
- package/media/media.component.d.ts +4 -1
- package/media/media.d.ts +1 -0
- package/media/media.module.d.ts +6 -0
- package/media/media.service.d.ts +3 -0
- package/media/package.json +5 -6
- package/notice-icon/notice-icon-tab.component.d.ts +3 -0
- package/notice-icon/notice-icon.component.d.ts +4 -1
- package/notice-icon/notice-icon.d.ts +5 -0
- package/notice-icon/notice-icon.module.d.ts +16 -0
- package/notice-icon/package.json +6 -7
- package/notice-icon/style/index.less +17 -0
- package/onboarding/onboarding.component.d.ts +4 -1
- package/onboarding/onboarding.d.ts +1 -0
- package/onboarding/onboarding.module.d.ts +11 -0
- package/onboarding/onboarding.service.d.ts +3 -0
- package/onboarding/package.json +5 -6
- package/onboarding/schema.json +1 -1
- package/onboarding/style/index.less +6 -0
- package/package.json +274 -14
- package/page-header/package.json +6 -7
- package/page-header/page-header.component.d.ts +4 -1
- package/page-header/page-header.d.ts +5 -0
- package/page-header/page-header.module.d.ts +11 -0
- package/page-header/style/index.less +10 -0
- package/page-header/style/rtl.less +3 -0
- package/pdf/package.json +5 -6
- package/pdf/pdf.component.d.ts +5 -2
- package/pdf/pdf.d.ts +1 -0
- package/pdf/pdf.module.d.ts +7 -0
- package/qr/package.json +5 -6
- package/qr/qr.component.d.ts +13 -10
- package/qr/qr.d.ts +1 -0
- package/qr/qr.module.d.ts +6 -0
- package/quick-menu/package.json +6 -7
- package/quick-menu/quick-menu.component.d.ts +6 -3
- package/quick-menu/quick-menu.d.ts +5 -0
- package/quick-menu/quick-menu.module.d.ts +8 -0
- package/quick-menu/style/index.less +2 -0
- package/result/package.json +5 -6
- package/result/result.component.d.ts +6 -3
- package/result/result.d.ts +1 -0
- package/result/result.module.d.ts +8 -0
- package/result/style/index.less +7 -0
- package/reuse-tab/package.json +6 -7
- package/reuse-tab/reuse-tab-context-menu.component.d.ts +3 -0
- package/reuse-tab/reuse-tab-context.component.d.ts +4 -1
- package/reuse-tab/reuse-tab-context.directive.d.ts +3 -0
- package/reuse-tab/reuse-tab-context.service.d.ts +4 -1
- package/reuse-tab/reuse-tab.component.d.ts +13 -10
- package/reuse-tab/reuse-tab.d.ts +5 -0
- package/reuse-tab/reuse-tab.module.d.ts +15 -0
- package/reuse-tab/reuse-tab.service.d.ts +7 -4
- package/reuse-tab/style/index.less +4 -0
- package/se/package.json +6 -7
- package/se/public_api.d.ts +0 -1
- package/se/se-container.component.d.ts +18 -4
- package/se/se.component.d.ts +13 -8
- package/{footer-toolbar/footerToolbar.d.ts → se/se.d.ts} +1 -0
- package/se/se.module.d.ts +10 -0
- package/se/style/index.less +2 -0
- package/sg/package.json +6 -7
- package/sg/sg-container.component.d.ts +4 -1
- package/sg/sg.component.d.ts +4 -1
- package/{error-collect/errorCollect.d.ts → sg/sg.d.ts} +1 -0
- package/sg/sg.module.d.ts +7 -0
- package/st/package.json +6 -7
- package/st/st-column-source.d.ts +4 -1
- package/st/st-data-source.d.ts +3 -0
- package/st/st-export.d.ts +3 -0
- package/st/st-filter.component.d.ts +3 -0
- package/st/st-row.directive.d.ts +7 -2
- package/st/st-widget-host.directive.d.ts +5 -3
- package/st/st-widget.d.ts +3 -0
- package/st/st.component.d.ts +40 -12
- package/{down-file/downFile.d.ts → st/st.d.ts} +1 -0
- package/st/st.interfaces.d.ts +2 -2
- package/st/st.module.d.ts +27 -0
- package/st/style/index.less +8 -0
- package/sv/package.json +6 -7
- package/sv/public_api.d.ts +0 -1
- package/sv/style/index.less +8 -0
- package/sv/sv-container.component.d.ts +16 -3
- package/sv/sv-value.component.d.ts +3 -0
- package/sv/sv.component.d.ts +13 -10
- package/{avatar-list/avatarList.d.ts → sv/sv.d.ts} +1 -0
- package/sv/sv.module.d.ts +12 -0
- package/tag-select/package.json +6 -7
- package/tag-select/style/index.less +4 -0
- package/tag-select/style/rtl.less +3 -0
- package/tag-select/tag-select.component.d.ts +3 -0
- package/tag-select/tag-select.d.ts +5 -0
- package/tag-select/tag-select.module.d.ts +8 -0
- package/xlsx/package.json +5 -6
- package/xlsx/xlsx.d.ts +1 -0
- package/xlsx/xlsx.directive.d.ts +3 -0
- package/xlsx/xlsx.module.d.ts +6 -0
- package/xlsx/xlsx.service.d.ts +3 -0
- package/zip/package.json +5 -6
- package/zip/zip.d.ts +1 -0
- package/zip/zip.module.d.ts +5 -0
- package/zip/zip.service.d.ts +3 -0
- package/abc.metadata.json +0 -1
- package/auto-focus/autoFocus.metadata.json +0 -1
- package/avatar-list/avatarList.metadata.json +0 -1
- package/bundles/abc.umd.js +0 -19
- package/bundles/abc.umd.js.map +0 -1
- package/bundles/autoFocus.umd.js +0 -394
- package/bundles/autoFocus.umd.js.map +0 -1
- package/bundles/avatarList.umd.js +0 -465
- package/bundles/avatarList.umd.js.map +0 -1
- package/bundles/count-down.umd.js +0 -75
- package/bundles/count-down.umd.js.map +0 -1
- package/bundles/datePicker.umd.js +0 -552
- package/bundles/datePicker.umd.js.map +0 -1
- package/bundles/downFile.umd.js +0 -474
- package/bundles/downFile.umd.js.map +0 -1
- package/bundles/edit.umd.js +0 -776
- package/bundles/edit.umd.js.map +0 -1
- package/bundles/ellipsis.umd.js +0 -578
- package/bundles/ellipsis.umd.js.map +0 -1
- package/bundles/errorCollect.umd.js +0 -461
- package/bundles/errorCollect.umd.js.map +0 -1
- package/bundles/exception.umd.js +0 -150
- package/bundles/exception.umd.js.map +0 -1
- package/bundles/footerToolbar.umd.js +0 -401
- package/bundles/footerToolbar.umd.js.map +0 -1
- package/bundles/fullContent.umd.js +0 -550
- package/bundles/fullContent.umd.js.map +0 -1
- package/bundles/globalFooter.umd.js +0 -455
- package/bundles/globalFooter.umd.js.map +0 -1
- package/bundles/grid.umd.js +0 -470
- package/bundles/grid.umd.js.map +0 -1
- package/bundles/image.umd.js +0 -482
- package/bundles/image.umd.js.map +0 -1
- package/bundles/let.umd.js +0 -76
- package/bundles/let.umd.js.map +0 -1
- package/bundles/loading.umd.js +0 -181
- package/bundles/loading.umd.js.map +0 -1
- package/bundles/lodop.umd.js +0 -605
- package/bundles/lodop.umd.js.map +0 -1
- package/bundles/media.umd.js +0 -536
- package/bundles/media.umd.js.map +0 -1
- package/bundles/noticeIcon.umd.js +0 -468
- package/bundles/noticeIcon.umd.js.map +0 -1
- package/bundles/onboarding.umd.js +0 -370
- package/bundles/onboarding.umd.js.map +0 -1
- package/bundles/pageHeader.umd.js +0 -570
- package/bundles/pageHeader.umd.js.map +0 -1
- package/bundles/pdf.umd.js +0 -863
- package/bundles/pdf.umd.js.map +0 -1
- package/bundles/qr.umd.js +0 -491
- package/bundles/qr.umd.js.map +0 -1
- package/bundles/quickMenu.umd.js +0 -442
- package/bundles/quickMenu.umd.js.map +0 -1
- package/bundles/result.umd.js +0 -100
- package/bundles/result.umd.js.map +0 -1
- package/bundles/reuseTab.umd.js +0 -1522
- package/bundles/reuseTab.umd.js.map +0 -1
- package/bundles/table.umd.js +0 -2586
- package/bundles/table.umd.js.map +0 -1
- package/bundles/tagSelect.umd.js +0 -419
- package/bundles/tagSelect.umd.js.map +0 -1
- package/bundles/view.umd.js +0 -592
- package/bundles/view.umd.js.map +0 -1
- package/bundles/xlsx.umd.js +0 -529
- package/bundles/xlsx.umd.js.map +0 -1
- package/bundles/zip.umd.js +0 -482
- package/bundles/zip.umd.js.map +0 -1
- package/count-down/count-down.metadata.json +0 -1
- package/date-picker/datePicker.d.ts +0 -5
- package/date-picker/datePicker.metadata.json +0 -1
- package/down-file/downFile.metadata.json +0 -1
- package/ellipsis/ellipsis.metadata.json +0 -1
- package/error-collect/errorCollect.metadata.json +0 -1
- package/esm2015/auto-focus/auto-focus.directive.js +0 -42
- package/esm2015/auto-focus/auto-focus.module.js +0 -12
- package/esm2015/auto-focus/autoFocus.js +0 -5
- package/esm2015/avatar-list/avatar-list-item.component.js +0 -20
- package/esm2015/avatar-list/avatar-list.component.js +0 -89
- package/esm2015/avatar-list/avatar-list.module.js +0 -17
- package/esm2015/avatar-list/avatarList.js +0 -5
- package/esm2015/count-down/count-down.component.js +0 -36
- package/esm2015/count-down/count-down.module.js +0 -15
- package/esm2015/date-picker/date-picker.module.js +0 -17
- package/esm2015/date-picker/datePicker.js +0 -6
- package/esm2015/date-picker/range-shortcut.component.js +0 -26
- package/esm2015/date-picker/range.directive.js +0 -171
- package/esm2015/down-file/down-file.directive.js +0 -103
- package/esm2015/down-file/down-file.module.js +0 -15
- package/esm2015/down-file/downFile.js +0 -5
- package/esm2015/ellipsis/ellipsis.component.js +0 -224
- package/esm2015/ellipsis/ellipsis.module.js +0 -16
- package/esm2015/error-collect/error-collect.component.js +0 -112
- package/esm2015/error-collect/error-collect.module.js +0 -15
- package/esm2015/error-collect/errorCollect.js +0 -5
- package/esm2015/exception/exception.component.js +0 -103
- package/esm2015/exception/exception.module.js +0 -18
- package/esm2015/footer-toolbar/footer-toolbar.component.js +0 -46
- package/esm2015/footer-toolbar/footer-toolbar.module.js +0 -16
- package/esm2015/footer-toolbar/footerToolbar.js +0 -5
- package/esm2015/full-content/full-content-toggle.directive.js +0 -23
- package/esm2015/full-content/full-content.component.js +0 -135
- package/esm2015/full-content/full-content.module.js +0 -15
- package/esm2015/full-content/full-content.service.js +0 -21
- package/esm2015/full-content/fullContent.js +0 -5
- package/esm2015/global-footer/global-footer-item.component.js +0 -24
- package/esm2015/global-footer/global-footer.component.js +0 -77
- package/esm2015/global-footer/global-footer.module.js +0 -16
- package/esm2015/global-footer/globalFooter.js +0 -5
- package/esm2015/image/image.directive.js +0 -133
- package/esm2015/image/image.module.js +0 -15
- package/esm2015/let/let.directive.js +0 -31
- package/esm2015/let/let.module.js +0 -12
- package/esm2015/loading/loading.component.js +0 -26
- package/esm2015/loading/loading.module.js +0 -19
- package/esm2015/loading/loading.service.js +0 -92
- package/esm2015/lodop/lodop.module.js +0 -7
- package/esm2015/lodop/lodop.service.js +0 -219
- package/esm2015/lodop/lodop.types.js +0 -2
- package/esm2015/media/media.component.js +0 -104
- package/esm2015/media/media.module.js +0 -14
- package/esm2015/media/media.service.js +0 -53
- package/esm2015/notice-icon/notice-icon-tab.component.js +0 -30
- package/esm2015/notice-icon/notice-icon.component.js +0 -74
- package/esm2015/notice-icon/notice-icon.module.js +0 -35
- package/esm2015/notice-icon/noticeIcon.js +0 -5
- package/esm2015/onboarding/onboarding.component.js +0 -130
- package/esm2015/onboarding/onboarding.module.js +0 -20
- package/esm2015/onboarding/onboarding.service.js +0 -178
- package/esm2015/page-header/page-header.component.js +0 -216
- package/esm2015/page-header/page-header.module.js +0 -19
- package/esm2015/page-header/pageHeader.js +0 -5
- package/esm2015/pdf/pdf.component.js +0 -433
- package/esm2015/pdf/pdf.module.js +0 -15
- package/esm2015/qr/qr.component.js +0 -128
- package/esm2015/qr/qr.module.js +0 -14
- package/esm2015/quick-menu/quick-menu.component.js +0 -90
- package/esm2015/quick-menu/quick-menu.module.js +0 -16
- package/esm2015/quick-menu/quickMenu.js +0 -5
- package/esm2015/result/result.component.js +0 -62
- package/esm2015/result/result.module.js +0 -16
- package/esm2015/reuse-tab/reuse-tab-context-menu.component.js +0 -74
- package/esm2015/reuse-tab/reuse-tab-context.component.js +0 -32
- package/esm2015/reuse-tab/reuse-tab-context.directive.js +0 -33
- package/esm2015/reuse-tab/reuse-tab-context.service.js +0 -53
- package/esm2015/reuse-tab/reuse-tab.component.js +0 -300
- package/esm2015/reuse-tab/reuse-tab.module.js +0 -24
- package/esm2015/reuse-tab/reuse-tab.service.js +0 -534
- package/esm2015/reuse-tab/reuseTab.js +0 -5
- package/esm2015/se/edit.js +0 -5
- package/esm2015/se/public_api.js +0 -6
- package/esm2015/se/se-container.component.js +0 -115
- package/esm2015/se/se-title.component.js +0 -40
- package/esm2015/se/se.component.js +0 -214
- package/esm2015/se/se.module.js +0 -19
- package/esm2015/sg/grid.js +0 -5
- package/esm2015/sg/sg-container.component.js +0 -49
- package/esm2015/sg/sg.component.js +0 -65
- package/esm2015/sg/sg.module.js +0 -15
- package/esm2015/st/index.js +0 -2
- package/esm2015/st/st-column-source.js +0 -428
- package/esm2015/st/st-data-source.js +0 -429
- package/esm2015/st/st-export.js +0 -90
- package/esm2015/st/st-filter.component.js +0 -149
- package/esm2015/st/st-row.directive.js +0 -40
- package/esm2015/st/st-td.component.js +0 -232
- package/esm2015/st/st-widget-host.directive.js +0 -34
- package/esm2015/st/st-widget.js +0 -24
- package/esm2015/st/st.component.js +0 -784
- package/esm2015/st/st.interfaces.js +0 -2
- package/esm2015/st/st.module.js +0 -56
- package/esm2015/st/table.js +0 -8
- package/esm2015/sv/public_api.js +0 -6
- package/esm2015/sv/sv-container.component.js +0 -63
- package/esm2015/sv/sv-title.component.js +0 -40
- package/esm2015/sv/sv-value.component.js +0 -32
- package/esm2015/sv/sv.component.js +0 -105
- package/esm2015/sv/sv.module.js +0 -21
- package/esm2015/sv/view.js +0 -5
- package/esm2015/tag-select/tag-select.component.js +0 -70
- package/esm2015/tag-select/tag-select.module.js +0 -16
- package/esm2015/tag-select/tagSelect.js +0 -5
- package/esm2015/xlsx/xlsx.directive.js +0 -26
- package/esm2015/xlsx/xlsx.module.js +0 -14
- package/esm2015/xlsx/xlsx.service.js +0 -129
- package/esm2015/zip/zip.module.js +0 -10
- package/esm2015/zip/zip.service.js +0 -115
- package/exception/exception.metadata.json +0 -1
- package/fesm2015/abc.js.map +0 -1
- package/fesm2015/autoFocus.js +0 -59
- package/fesm2015/autoFocus.js.map +0 -1
- package/fesm2015/avatarList.js +0 -128
- package/fesm2015/avatarList.js.map +0 -1
- package/fesm2015/count-down.js +0 -56
- package/fesm2015/count-down.js.map +0 -1
- package/fesm2015/datePicker.js.map +0 -1
- package/fesm2015/downFile.js +0 -122
- package/fesm2015/downFile.js.map +0 -1
- package/fesm2015/edit.js +0 -396
- package/fesm2015/edit.js.map +0 -1
- package/fesm2015/ellipsis.js +0 -244
- package/fesm2015/ellipsis.js.map +0 -1
- package/fesm2015/errorCollect.js +0 -131
- package/fesm2015/errorCollect.js.map +0 -1
- package/fesm2015/exception.js +0 -125
- package/fesm2015/exception.js.map +0 -1
- package/fesm2015/footerToolbar.js +0 -66
- package/fesm2015/footerToolbar.js.map +0 -1
- package/fesm2015/fullContent.js +0 -191
- package/fesm2015/fullContent.js.map +0 -1
- package/fesm2015/globalFooter.js +0 -118
- package/fesm2015/globalFooter.js.map +0 -1
- package/fesm2015/grid.js +0 -129
- package/fesm2015/grid.js.map +0 -1
- package/fesm2015/image.js +0 -152
- package/fesm2015/image.js.map +0 -1
- package/fesm2015/let.js +0 -48
- package/fesm2015/let.js.map +0 -1
- package/fesm2015/loading.js +0 -138
- package/fesm2015/loading.js.map +0 -1
- package/fesm2015/lodop.js.map +0 -1
- package/fesm2015/media.js +0 -174
- package/fesm2015/media.js.map +0 -1
- package/fesm2015/noticeIcon.js +0 -141
- package/fesm2015/noticeIcon.js.map +0 -1
- package/fesm2015/onboarding.js +0 -328
- package/fesm2015/onboarding.js.map +0 -1
- package/fesm2015/pageHeader.js +0 -239
- package/fesm2015/pageHeader.js.map +0 -1
- package/fesm2015/pdf.js.map +0 -1
- package/fesm2015/qr.js +0 -159
- package/fesm2015/qr.js.map +0 -1
- package/fesm2015/quickMenu.js +0 -111
- package/fesm2015/quickMenu.js.map +0 -1
- package/fesm2015/result.js +0 -83
- package/fesm2015/result.js.map +0 -1
- package/fesm2015/reuseTab.js.map +0 -1
- package/fesm2015/table.js.map +0 -1
- package/fesm2015/tagSelect.js +0 -90
- package/fesm2015/tagSelect.js.map +0 -1
- package/fesm2015/view.js +0 -256
- package/fesm2015/view.js.map +0 -1
- package/fesm2015/xlsx.js.map +0 -1
- package/fesm2015/zip.js.map +0 -1
- package/footer-toolbar/footerToolbar.metadata.json +0 -1
- package/full-content/fullContent.d.ts +0 -4
- package/full-content/fullContent.metadata.json +0 -1
- package/global-footer/globalFooter.d.ts +0 -4
- package/global-footer/globalFooter.metadata.json +0 -1
- package/image/image.metadata.json +0 -1
- package/let/let.metadata.json +0 -1
- package/loading/loading.metadata.json +0 -1
- package/lodop/lodop.metadata.json +0 -1
- package/media/media.metadata.json +0 -1
- package/notice-icon/noticeIcon.d.ts +0 -4
- package/notice-icon/noticeIcon.metadata.json +0 -1
- package/onboarding/onboarding.metadata.json +0 -1
- package/page-header/pageHeader.d.ts +0 -4
- package/page-header/pageHeader.metadata.json +0 -1
- package/pdf/pdf.metadata.json +0 -1
- package/qr/qr.metadata.json +0 -1
- package/quick-menu/quickMenu.d.ts +0 -4
- package/quick-menu/quickMenu.metadata.json +0 -1
- package/result/result.metadata.json +0 -1
- package/reuse-tab/reuseTab.d.ts +0 -4
- package/reuse-tab/reuseTab.metadata.json +0 -1
- package/se/edit.d.ts +0 -4
- package/se/edit.metadata.json +0 -1
- package/se/se-title.component.d.ts +0 -10
- package/sg/grid.d.ts +0 -4
- package/sg/grid.metadata.json +0 -1
- package/st/index.d.ts +0 -1
- package/st/st-td.component.d.ts +0 -27
- package/st/table.d.ts +0 -7
- package/st/table.metadata.json +0 -1
- package/sv/sv-title.component.d.ts +0 -10
- package/sv/view.d.ts +0 -4
- package/sv/view.metadata.json +0 -1
- package/tag-select/tagSelect.d.ts +0 -4
- package/tag-select/tagSelect.metadata.json +0 -1
- package/xlsx/xlsx.metadata.json +0 -1
- package/zip/zip.metadata.json +0 -1
|
@@ -1,36 +1,56 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, Directive,
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { ALAIN_I18N_TOKEN, _HttpClient, DatePipe, YNPipe, DelonLocaleService, ModalHelper, DrawerHelper } from '@delon/theme';
|
|
2
|
+
import { Injectable, Directive, Host, Input, Optional, Inject, EventEmitter, Component, ChangeDetectionStrategy, ViewEncapsulation, Output, ViewChild, NgModule } from '@angular/core';
|
|
3
|
+
import * as i1$1 from '@delon/theme';
|
|
4
|
+
import { ALAIN_I18N_TOKEN, DatePipe, YNPipe } from '@delon/theme';
|
|
6
5
|
import { warn, deepCopy, deepGet, deepMergeKey } from '@delon/util/other';
|
|
7
|
-
import
|
|
6
|
+
import * as i1 from '@angular/platform-browser';
|
|
7
|
+
import * as i3 from '@delon/acl';
|
|
8
|
+
import { DelonACLModule } from '@delon/acl';
|
|
8
9
|
import { HttpParams } from '@angular/common/http';
|
|
9
10
|
import { of, Subject, from, isObservable } from 'rxjs';
|
|
10
11
|
import { map, takeUntil, filter } from 'rxjs/operators';
|
|
11
|
-
import
|
|
12
|
+
import * as i12 from '@angular/common';
|
|
13
|
+
import { DOCUMENT, DecimalPipe, CommonModule } from '@angular/common';
|
|
14
|
+
import * as i3$1 from '@delon/util/format';
|
|
12
15
|
import { __awaiter, __decorate } from 'tslib';
|
|
13
|
-
import
|
|
14
|
-
import { AlainConfigService } from '@delon/util/config';
|
|
16
|
+
import * as i1$2 from '@delon/abc/xlsx';
|
|
15
17
|
import { toBoolean, InputNumber, InputBoolean } from '@delon/util/decorator';
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import {
|
|
19
|
-
import
|
|
18
|
+
import * as i5$1 from '@delon/util/config';
|
|
19
|
+
import * as i6 from 'ng-zorro-antd/dropdown';
|
|
20
|
+
import { NzDropDownModule } from 'ng-zorro-antd/dropdown';
|
|
21
|
+
import * as i7 from 'ng-zorro-antd/checkbox';
|
|
20
22
|
import { NzCheckboxModule } from 'ng-zorro-antd/checkbox';
|
|
23
|
+
import * as i8$1 from 'ng-zorro-antd/table';
|
|
24
|
+
import { NzTableModule } from 'ng-zorro-antd/table';
|
|
25
|
+
import * as i9 from 'ng-zorro-antd/resizable';
|
|
26
|
+
import { NzResizableModule } from 'ng-zorro-antd/resizable';
|
|
27
|
+
import * as i2 from 'ng-zorro-antd/input-number';
|
|
28
|
+
import { NzInputNumberModule } from 'ng-zorro-antd/input-number';
|
|
29
|
+
import * as i3$2 from 'ng-zorro-antd/date-picker';
|
|
21
30
|
import { NzDatePickerModule } from 'ng-zorro-antd/date-picker';
|
|
22
|
-
import
|
|
31
|
+
import * as i5 from 'ng-zorro-antd/radio';
|
|
32
|
+
import { NzRadioModule } from 'ng-zorro-antd/radio';
|
|
33
|
+
import * as i14 from 'ng-zorro-antd/icon';
|
|
23
34
|
import { NzIconModule } from 'ng-zorro-antd/icon';
|
|
35
|
+
import * as i8 from 'ng-zorro-antd/input';
|
|
24
36
|
import { NzInputModule } from 'ng-zorro-antd/input';
|
|
25
|
-
import
|
|
37
|
+
import * as i15 from '@angular/forms';
|
|
38
|
+
import { FormsModule } from '@angular/forms';
|
|
39
|
+
import * as i11 from 'ng-zorro-antd/menu';
|
|
26
40
|
import { NzMenuModule } from 'ng-zorro-antd/menu';
|
|
27
|
-
import
|
|
28
|
-
import { NzRadioModule } from 'ng-zorro-antd/radio';
|
|
29
|
-
import { NzResizableModule } from 'ng-zorro-antd/resizable';
|
|
30
|
-
import { NzTableModule } from 'ng-zorro-antd/table';
|
|
31
|
-
import { NzTagModule } from 'ng-zorro-antd/tag';
|
|
41
|
+
import * as i13 from 'ng-zorro-antd/tooltip';
|
|
32
42
|
import { NzToolTipModule } from 'ng-zorro-antd/tooltip';
|
|
33
|
-
import
|
|
43
|
+
import * as i16 from '@delon/abc/let';
|
|
44
|
+
import { LetModule } from '@delon/abc/let';
|
|
45
|
+
import * as i17 from '@angular/router';
|
|
46
|
+
import * as i19 from 'ng-zorro-antd/tag';
|
|
47
|
+
import { NzTagModule } from 'ng-zorro-antd/tag';
|
|
48
|
+
import * as i20 from 'ng-zorro-antd/badge';
|
|
49
|
+
import { NzBadgeModule } from 'ng-zorro-antd/badge';
|
|
50
|
+
import * as i21 from 'ng-zorro-antd/divider';
|
|
51
|
+
import { NzDividerModule } from 'ng-zorro-antd/divider';
|
|
52
|
+
import * as i22 from 'ng-zorro-antd/popconfirm';
|
|
53
|
+
import { NzPopconfirmModule } from 'ng-zorro-antd/popconfirm';
|
|
34
54
|
|
|
35
55
|
class STRowSource {
|
|
36
56
|
constructor() {
|
|
@@ -47,9 +67,11 @@ class STRowSource {
|
|
|
47
67
|
return this.rows[path];
|
|
48
68
|
}
|
|
49
69
|
}
|
|
50
|
-
STRowSource
|
|
51
|
-
|
|
52
|
-
|
|
70
|
+
STRowSource.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: STRowSource, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
71
|
+
STRowSource.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: STRowSource });
|
|
72
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: STRowSource, decorators: [{
|
|
73
|
+
type: Injectable
|
|
74
|
+
}] });
|
|
53
75
|
class STRowDirective {
|
|
54
76
|
constructor(ref, source) {
|
|
55
77
|
this.ref = ref;
|
|
@@ -59,17 +81,21 @@ class STRowDirective {
|
|
|
59
81
|
this.source.add(this.type, this.id, this.ref);
|
|
60
82
|
}
|
|
61
83
|
}
|
|
62
|
-
STRowDirective
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
84
|
+
STRowDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: STRowDirective, deps: [{ token: i0.TemplateRef }, { token: STRowSource, host: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
85
|
+
STRowDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: STRowDirective, selector: "[st-row]", inputs: { id: ["st-row", "id"], type: "type" }, ngImport: i0 });
|
|
86
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: STRowDirective, decorators: [{
|
|
87
|
+
type: Directive,
|
|
88
|
+
args: [{ selector: '[st-row]' }]
|
|
89
|
+
}], ctorParameters: function () {
|
|
90
|
+
return [{ type: i0.TemplateRef }, { type: STRowSource, decorators: [{
|
|
91
|
+
type: Host
|
|
92
|
+
}] }];
|
|
93
|
+
}, propDecorators: { id: [{
|
|
94
|
+
type: Input,
|
|
95
|
+
args: ['st-row']
|
|
96
|
+
}], type: [{
|
|
97
|
+
type: Input
|
|
98
|
+
}] } });
|
|
73
99
|
|
|
74
100
|
class STWidgetRegistry {
|
|
75
101
|
constructor() {
|
|
@@ -88,10 +114,12 @@ class STWidgetRegistry {
|
|
|
88
114
|
return this._widgets[type];
|
|
89
115
|
}
|
|
90
116
|
}
|
|
91
|
-
STWidgetRegistry.ɵ
|
|
92
|
-
STWidgetRegistry
|
|
93
|
-
|
|
94
|
-
|
|
117
|
+
STWidgetRegistry.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: STWidgetRegistry, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
118
|
+
STWidgetRegistry.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: STWidgetRegistry, providedIn: 'root' });
|
|
119
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: STWidgetRegistry, decorators: [{
|
|
120
|
+
type: Injectable,
|
|
121
|
+
args: [{ providedIn: 'root' }]
|
|
122
|
+
}] });
|
|
95
123
|
|
|
96
124
|
class STColumnSource {
|
|
97
125
|
constructor(dom, rowSource, acl, i18nSrv, stWidgetRegistry) {
|
|
@@ -132,7 +160,9 @@ class STColumnSource {
|
|
|
132
160
|
}
|
|
133
161
|
if (item.type === 'modal' || item.type === 'static') {
|
|
134
162
|
if (item.modal == null || item.modal.component == null) {
|
|
135
|
-
|
|
163
|
+
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
164
|
+
console.warn(`[st] Should specify modal parameter when type is modal or static`);
|
|
165
|
+
}
|
|
136
166
|
item.type = 'none';
|
|
137
167
|
}
|
|
138
168
|
else {
|
|
@@ -141,7 +171,9 @@ class STColumnSource {
|
|
|
141
171
|
}
|
|
142
172
|
if (item.type === 'drawer') {
|
|
143
173
|
if (item.drawer == null || item.drawer.component == null) {
|
|
144
|
-
|
|
174
|
+
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
175
|
+
console.warn(`[st] Should specify drawer parameter when type is drawer`);
|
|
176
|
+
}
|
|
145
177
|
item.type = 'none';
|
|
146
178
|
}
|
|
147
179
|
else {
|
|
@@ -293,7 +325,9 @@ class STColumnSource {
|
|
|
293
325
|
return;
|
|
294
326
|
if (item.widget == null || !this.stWidgetRegistry.has(item.widget.type)) {
|
|
295
327
|
delete item.type;
|
|
296
|
-
|
|
328
|
+
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
329
|
+
warn(`st: No widget for type "${(_a = item.widget) === null || _a === void 0 ? void 0 : _a.type}"`);
|
|
330
|
+
}
|
|
297
331
|
}
|
|
298
332
|
}
|
|
299
333
|
genHeaders(rootColumns) {
|
|
@@ -503,16 +537,22 @@ class STColumnSource {
|
|
|
503
537
|
return this;
|
|
504
538
|
}
|
|
505
539
|
}
|
|
506
|
-
STColumnSource
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
]
|
|
540
|
+
STColumnSource.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: STColumnSource, deps: [{ token: i1.DomSanitizer }, { token: STRowSource, host: true }, { token: i3.ACLService, optional: true }, { token: ALAIN_I18N_TOKEN, optional: true }, { token: STWidgetRegistry }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
541
|
+
STColumnSource.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: STColumnSource });
|
|
542
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: STColumnSource, decorators: [{
|
|
543
|
+
type: Injectable
|
|
544
|
+
}], ctorParameters: function () {
|
|
545
|
+
return [{ type: i1.DomSanitizer }, { type: STRowSource, decorators: [{
|
|
546
|
+
type: Host
|
|
547
|
+
}] }, { type: i3.ACLService, decorators: [{
|
|
548
|
+
type: Optional
|
|
549
|
+
}] }, { type: undefined, decorators: [{
|
|
550
|
+
type: Optional
|
|
551
|
+
}, {
|
|
552
|
+
type: Inject,
|
|
553
|
+
args: [ALAIN_I18N_TOKEN]
|
|
554
|
+
}] }, { type: STWidgetRegistry }];
|
|
555
|
+
} });
|
|
516
556
|
|
|
517
557
|
class STDataSource {
|
|
518
558
|
constructor(http, datePipe, ynPipe, numberPipe, currencySrv, dom) {
|
|
@@ -588,7 +628,9 @@ class STDataSource {
|
|
|
588
628
|
return;
|
|
589
629
|
const onFilter = filter.fn;
|
|
590
630
|
if (typeof onFilter !== 'function') {
|
|
591
|
-
|
|
631
|
+
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
632
|
+
console.warn(`[st] Muse provide the fn function in filter`);
|
|
633
|
+
}
|
|
592
634
|
return;
|
|
593
635
|
}
|
|
594
636
|
result = result.filter(record => values.some(v => onFilter(v, record)));
|
|
@@ -795,7 +837,9 @@ class STDataSource {
|
|
|
795
837
|
return;
|
|
796
838
|
}
|
|
797
839
|
if (typeof sortItem.compare !== 'function') {
|
|
798
|
-
|
|
840
|
+
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
841
|
+
console.warn(`[st] Muse provide the compare function in sort`);
|
|
842
|
+
}
|
|
799
843
|
return;
|
|
800
844
|
}
|
|
801
845
|
return (a, b) => {
|
|
@@ -922,17 +966,19 @@ class STDataSource {
|
|
|
922
966
|
return this.getValues(index, list).reduce((p, i) => (p += parseFloat(String(i))), 0);
|
|
923
967
|
}
|
|
924
968
|
}
|
|
925
|
-
STDataSource
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
969
|
+
STDataSource.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: STDataSource, deps: [{ token: i1$1._HttpClient }, { token: i1$1.DatePipe, host: true }, { token: i1$1.YNPipe, host: true }, { token: i12.DecimalPipe, host: true }, { token: i3$1.CurrencyService }, { token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
970
|
+
STDataSource.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: STDataSource });
|
|
971
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: STDataSource, decorators: [{
|
|
972
|
+
type: Injectable
|
|
973
|
+
}], ctorParameters: function () {
|
|
974
|
+
return [{ type: i1$1._HttpClient }, { type: i1$1.DatePipe, decorators: [{
|
|
975
|
+
type: Host
|
|
976
|
+
}] }, { type: i1$1.YNPipe, decorators: [{
|
|
977
|
+
type: Host
|
|
978
|
+
}] }, { type: i12.DecimalPipe, decorators: [{
|
|
979
|
+
type: Host
|
|
980
|
+
}] }, { type: i3$1.CurrencyService }, { type: i1.DomSanitizer }];
|
|
981
|
+
} });
|
|
936
982
|
|
|
937
983
|
class STExport {
|
|
938
984
|
constructor(xlsxSrv) {
|
|
@@ -1013,25 +1059,26 @@ class STExport {
|
|
|
1013
1059
|
});
|
|
1014
1060
|
}
|
|
1015
1061
|
}
|
|
1016
|
-
STExport
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1062
|
+
STExport.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: STExport, deps: [{ token: i1$2.XlsxService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1063
|
+
STExport.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: STExport });
|
|
1064
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: STExport, decorators: [{
|
|
1065
|
+
type: Injectable
|
|
1066
|
+
}], ctorParameters: function () {
|
|
1067
|
+
return [{ type: i1$2.XlsxService, decorators: [{
|
|
1068
|
+
type: Optional
|
|
1069
|
+
}] }];
|
|
1070
|
+
} });
|
|
1022
1071
|
|
|
1023
1072
|
class STWidgetHostDirective {
|
|
1024
|
-
constructor(stWidgetRegistry, viewContainerRef
|
|
1073
|
+
constructor(stWidgetRegistry, viewContainerRef) {
|
|
1025
1074
|
this.stWidgetRegistry = stWidgetRegistry;
|
|
1026
1075
|
this.viewContainerRef = viewContainerRef;
|
|
1027
|
-
this.componentFactoryResolver = componentFactoryResolver;
|
|
1028
1076
|
}
|
|
1029
1077
|
ngOnInit() {
|
|
1030
1078
|
const widget = this.column.widget;
|
|
1031
1079
|
const componentType = this.stWidgetRegistry.get(widget.type);
|
|
1032
|
-
const componentFactory = this.componentFactoryResolver.resolveComponentFactory(componentType);
|
|
1033
1080
|
this.viewContainerRef.clear();
|
|
1034
|
-
const componentRef = this.viewContainerRef.createComponent(
|
|
1081
|
+
const componentRef = this.viewContainerRef.createComponent(componentType);
|
|
1035
1082
|
const { record, column } = this;
|
|
1036
1083
|
const data = widget.params ? widget.params({ record, column }) : { record };
|
|
1037
1084
|
Object.keys(data).forEach(key => {
|
|
@@ -1039,18 +1086,16 @@ class STWidgetHostDirective {
|
|
|
1039
1086
|
});
|
|
1040
1087
|
}
|
|
1041
1088
|
}
|
|
1042
|
-
STWidgetHostDirective
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
]
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
column: [{ type: Input }]
|
|
1053
|
-
};
|
|
1089
|
+
STWidgetHostDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: STWidgetHostDirective, deps: [{ token: STWidgetRegistry }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1090
|
+
STWidgetHostDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: STWidgetHostDirective, selector: "[st-widget-host]", inputs: { record: "record", column: "column" }, ngImport: i0 });
|
|
1091
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: STWidgetHostDirective, decorators: [{
|
|
1092
|
+
type: Directive,
|
|
1093
|
+
args: [{ selector: '[st-widget-host]' }]
|
|
1094
|
+
}], ctorParameters: function () { return [{ type: STWidgetRegistry }, { type: i0.ViewContainerRef }]; }, propDecorators: { record: [{
|
|
1095
|
+
type: Input
|
|
1096
|
+
}], column: [{
|
|
1097
|
+
type: Input
|
|
1098
|
+
}] } });
|
|
1054
1099
|
|
|
1055
1100
|
const ST_DEFAULT_CONFIG = {
|
|
1056
1101
|
pi: 1,
|
|
@@ -1126,6 +1171,257 @@ const ST_DEFAULT_CONFIG = {
|
|
|
1126
1171
|
}
|
|
1127
1172
|
};
|
|
1128
1173
|
|
|
1174
|
+
class STFilterComponent {
|
|
1175
|
+
constructor() {
|
|
1176
|
+
this.visible = false;
|
|
1177
|
+
this.locale = {};
|
|
1178
|
+
this.n = new EventEmitter();
|
|
1179
|
+
this.handle = new EventEmitter();
|
|
1180
|
+
}
|
|
1181
|
+
get icon() {
|
|
1182
|
+
return this.f.icon;
|
|
1183
|
+
}
|
|
1184
|
+
show($event) {
|
|
1185
|
+
$event.stopPropagation();
|
|
1186
|
+
}
|
|
1187
|
+
checkboxChange() {
|
|
1188
|
+
var _a;
|
|
1189
|
+
this.n.emit((_a = this.f.menus) === null || _a === void 0 ? void 0 : _a.filter(w => w.checked));
|
|
1190
|
+
}
|
|
1191
|
+
radioChange(item) {
|
|
1192
|
+
this.f.menus.forEach(i => (i.checked = false));
|
|
1193
|
+
item.checked = !item.checked;
|
|
1194
|
+
this.n.emit(item);
|
|
1195
|
+
}
|
|
1196
|
+
confirm() {
|
|
1197
|
+
this.handle.emit(true);
|
|
1198
|
+
}
|
|
1199
|
+
reset() {
|
|
1200
|
+
this.handle.emit(false);
|
|
1201
|
+
}
|
|
1202
|
+
}
|
|
1203
|
+
STFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: STFilterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1204
|
+
STFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: STFilterComponent, selector: "st-filter", inputs: { col: "col", locale: "locale", f: "f" }, outputs: { n: "n", handle: "handle" }, host: { properties: { "class.ant-table-filter-trigger-container": "true", "class.st__filter": "true", "class.ant-table-filter-trigger-container-open": "visible" } }, ngImport: i0, template: `
|
|
1205
|
+
<span
|
|
1206
|
+
class="ant-table-filter-trigger"
|
|
1207
|
+
[class.active]="visible || f.default"
|
|
1208
|
+
nz-dropdown
|
|
1209
|
+
[nzDropdownMenu]="filterMenu"
|
|
1210
|
+
nzTrigger="click"
|
|
1211
|
+
[nzClickHide]="false"
|
|
1212
|
+
[(nzVisible)]="visible"
|
|
1213
|
+
nzOverlayClassName="st__filter-wrap"
|
|
1214
|
+
(click)="show($event)"
|
|
1215
|
+
>
|
|
1216
|
+
<i nz-icon [nzType]="icon.type" [nzTheme]="icon.theme!"></i>
|
|
1217
|
+
</span>
|
|
1218
|
+
<nz-dropdown-menu #filterMenu="nzDropdownMenu">
|
|
1219
|
+
<div class="ant-table-filter-dropdown">
|
|
1220
|
+
<ng-container [ngSwitch]="f.type">
|
|
1221
|
+
<div *ngSwitchCase="'keyword'" class="st__filter-keyword">
|
|
1222
|
+
<input
|
|
1223
|
+
type="text"
|
|
1224
|
+
nz-input
|
|
1225
|
+
[attr.placeholder]="f.placeholder"
|
|
1226
|
+
[(ngModel)]="f.menus![0]!.value"
|
|
1227
|
+
(ngModelChange)="n.emit($event)"
|
|
1228
|
+
(keyup.enter)="confirm()"
|
|
1229
|
+
/>
|
|
1230
|
+
</div>
|
|
1231
|
+
<div *ngSwitchCase="'number'" class="p-sm st__filter-number">
|
|
1232
|
+
<nz-input-number
|
|
1233
|
+
[(ngModel)]="f.menus![0]!.value"
|
|
1234
|
+
(ngModelChange)="n.emit($event)"
|
|
1235
|
+
[nzMin]="f.number!.min!"
|
|
1236
|
+
[nzMax]="f.number!.max!"
|
|
1237
|
+
[nzStep]="f.number!.step!"
|
|
1238
|
+
[nzPrecision]="f.number!.precision"
|
|
1239
|
+
[nzPlaceHolder]="f.placeholder!"
|
|
1240
|
+
class="width-100"
|
|
1241
|
+
></nz-input-number>
|
|
1242
|
+
</div>
|
|
1243
|
+
<div *ngSwitchCase="'date'" class="p-sm st__filter-date">
|
|
1244
|
+
<nz-date-picker
|
|
1245
|
+
*ngIf="!f.date!.range"
|
|
1246
|
+
nzInline
|
|
1247
|
+
[nzMode]="f.date!.mode"
|
|
1248
|
+
[(ngModel)]="f.menus![0]!.value"
|
|
1249
|
+
(ngModelChange)="n.emit($event)"
|
|
1250
|
+
[nzShowNow]="f.date!.showNow"
|
|
1251
|
+
[nzShowToday]="f.date!.showToday"
|
|
1252
|
+
[nzDisabledDate]="f.date!.disabledDate"
|
|
1253
|
+
[nzDisabledTime]="f.date!.disabledTime"
|
|
1254
|
+
></nz-date-picker>
|
|
1255
|
+
<nz-range-picker
|
|
1256
|
+
*ngIf="f.date!.range"
|
|
1257
|
+
nzInline
|
|
1258
|
+
[nzMode]="f.date!.mode"
|
|
1259
|
+
[(ngModel)]="f.menus![0]!.value"
|
|
1260
|
+
(ngModelChange)="n.emit($event)"
|
|
1261
|
+
[nzShowNow]="f.date!.showNow"
|
|
1262
|
+
[nzShowToday]="f.date!.showToday"
|
|
1263
|
+
[nzDisabledDate]="f.date!.disabledDate"
|
|
1264
|
+
[nzDisabledTime]="f.date!.disabledTime"
|
|
1265
|
+
></nz-range-picker>
|
|
1266
|
+
</div>
|
|
1267
|
+
<div *ngSwitchCase="'time'" class="p-sm st__filter-time"> </div>
|
|
1268
|
+
<div *ngSwitchCase="'custom'" class="st__filter-custom">
|
|
1269
|
+
<ng-template
|
|
1270
|
+
[ngTemplateOutlet]="f.custom!"
|
|
1271
|
+
[ngTemplateOutletContext]="{ $implicit: f, col: col }"
|
|
1272
|
+
></ng-template>
|
|
1273
|
+
</div>
|
|
1274
|
+
<ul *ngSwitchDefault nz-menu>
|
|
1275
|
+
<ng-container *ngIf="f.multiple">
|
|
1276
|
+
<li nz-menu-item *ngFor="let filter of f.menus">
|
|
1277
|
+
<label nz-checkbox [(ngModel)]="filter.checked" (ngModelChange)="checkboxChange()">
|
|
1278
|
+
{{ filter.text }}
|
|
1279
|
+
</label>
|
|
1280
|
+
</li>
|
|
1281
|
+
</ng-container>
|
|
1282
|
+
<ng-container *ngIf="!f.multiple">
|
|
1283
|
+
<li nz-menu-item *ngFor="let filter of f.menus">
|
|
1284
|
+
<label nz-radio [ngModel]="filter.checked" (ngModelChange)="radioChange(filter)">
|
|
1285
|
+
{{ filter.text }}
|
|
1286
|
+
</label>
|
|
1287
|
+
</li>
|
|
1288
|
+
</ng-container>
|
|
1289
|
+
</ul>
|
|
1290
|
+
</ng-container>
|
|
1291
|
+
<div *ngIf="f.showOPArea" class="ant-table-filter-dropdown-btns">
|
|
1292
|
+
<a class="ant-table-filter-dropdown-link confirm" (click)="visible = false">
|
|
1293
|
+
<span (click)="confirm()">{{ f.confirmText || locale.filterConfirm }}</span>
|
|
1294
|
+
</a>
|
|
1295
|
+
<a class="ant-table-filter-dropdown-link clear" (click)="visible = false">
|
|
1296
|
+
<span (click)="reset()">{{ f.clearText || locale.filterReset }}</span>
|
|
1297
|
+
</a>
|
|
1298
|
+
</div>
|
|
1299
|
+
</div>
|
|
1300
|
+
</nz-dropdown-menu>
|
|
1301
|
+
`, isInline: true, components: [{ type: i6.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { type: i2.NzInputNumberComponent, selector: "nz-input-number", inputs: ["nzSize", "nzMin", "nzMax", "nzParser", "nzPrecision", "nzPrecisionMode", "nzPlaceHolder", "nzStep", "nzInputMode", "nzId", "nzDisabled", "nzAutoFocus", "nzFormatter"], outputs: ["nzBlur", "nzFocus"], exportAs: ["nzInputNumber"] }, { type: i3$2.NzDatePickerComponent, selector: "nz-date-picker,nz-week-picker,nz-month-picker,nz-year-picker,nz-range-picker", inputs: ["nzAllowClear", "nzAutoFocus", "nzDisabled", "nzBorderless", "nzInputReadOnly", "nzInline", "nzOpen", "nzDisabledDate", "nzLocale", "nzPlaceHolder", "nzPopupStyle", "nzDropdownClassName", "nzSize", "nzFormat", "nzDateRender", "nzDisabledTime", "nzRenderExtraFooter", "nzShowToday", "nzMode", "nzShowNow", "nzRanges", "nzDefaultPickerValue", "nzSeparator", "nzSuffixIcon", "nzBackdrop", "nzId", "nzShowTime"], outputs: ["nzOnPanelChange", "nzOnCalendarChange", "nzOnOk", "nzOnOpenChange"], exportAs: ["nzDatePicker"] }, { type: i7.NzCheckboxComponent, selector: "[nz-checkbox]", inputs: ["nzValue", "nzAutoFocus", "nzDisabled", "nzIndeterminate", "nzChecked", "nzId"], outputs: ["nzCheckedChange"], exportAs: ["nzCheckbox"] }, { type: i5.NzRadioComponent, selector: "[nz-radio],[nz-radio-button]", inputs: ["nzValue", "nzDisabled", "nzAutoFocus"], exportAs: ["nzRadio"] }], directives: [{ type: i6.NzDropDownDirective, selector: "[nz-dropdown]", inputs: ["nzDropdownMenu", "nzTrigger", "nzMatchWidthElement", "nzBackdrop", "nzClickHide", "nzDisabled", "nzVisible", "nzOverlayClassName", "nzOverlayStyle", "nzPlacement"], outputs: ["nzVisibleChange"], exportAs: ["nzDropdown"] }, { type: i14.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { type: i12.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i12.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i8.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "disabled"], exportAs: ["nzInput"] }, { type: i15.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i15.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i15.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i12.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3$2.NzRangePickerComponent, selector: "nz-range-picker", exportAs: ["nzRangePicker"] }, { type: i12.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i12.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { type: i11.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { type: i12.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i11.NzMenuItemDirective, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1302
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: STFilterComponent, decorators: [{
|
|
1303
|
+
type: Component,
|
|
1304
|
+
args: [{
|
|
1305
|
+
selector: 'st-filter',
|
|
1306
|
+
template: `
|
|
1307
|
+
<span
|
|
1308
|
+
class="ant-table-filter-trigger"
|
|
1309
|
+
[class.active]="visible || f.default"
|
|
1310
|
+
nz-dropdown
|
|
1311
|
+
[nzDropdownMenu]="filterMenu"
|
|
1312
|
+
nzTrigger="click"
|
|
1313
|
+
[nzClickHide]="false"
|
|
1314
|
+
[(nzVisible)]="visible"
|
|
1315
|
+
nzOverlayClassName="st__filter-wrap"
|
|
1316
|
+
(click)="show($event)"
|
|
1317
|
+
>
|
|
1318
|
+
<i nz-icon [nzType]="icon.type" [nzTheme]="icon.theme!"></i>
|
|
1319
|
+
</span>
|
|
1320
|
+
<nz-dropdown-menu #filterMenu="nzDropdownMenu">
|
|
1321
|
+
<div class="ant-table-filter-dropdown">
|
|
1322
|
+
<ng-container [ngSwitch]="f.type">
|
|
1323
|
+
<div *ngSwitchCase="'keyword'" class="st__filter-keyword">
|
|
1324
|
+
<input
|
|
1325
|
+
type="text"
|
|
1326
|
+
nz-input
|
|
1327
|
+
[attr.placeholder]="f.placeholder"
|
|
1328
|
+
[(ngModel)]="f.menus![0]!.value"
|
|
1329
|
+
(ngModelChange)="n.emit($event)"
|
|
1330
|
+
(keyup.enter)="confirm()"
|
|
1331
|
+
/>
|
|
1332
|
+
</div>
|
|
1333
|
+
<div *ngSwitchCase="'number'" class="p-sm st__filter-number">
|
|
1334
|
+
<nz-input-number
|
|
1335
|
+
[(ngModel)]="f.menus![0]!.value"
|
|
1336
|
+
(ngModelChange)="n.emit($event)"
|
|
1337
|
+
[nzMin]="f.number!.min!"
|
|
1338
|
+
[nzMax]="f.number!.max!"
|
|
1339
|
+
[nzStep]="f.number!.step!"
|
|
1340
|
+
[nzPrecision]="f.number!.precision"
|
|
1341
|
+
[nzPlaceHolder]="f.placeholder!"
|
|
1342
|
+
class="width-100"
|
|
1343
|
+
></nz-input-number>
|
|
1344
|
+
</div>
|
|
1345
|
+
<div *ngSwitchCase="'date'" class="p-sm st__filter-date">
|
|
1346
|
+
<nz-date-picker
|
|
1347
|
+
*ngIf="!f.date!.range"
|
|
1348
|
+
nzInline
|
|
1349
|
+
[nzMode]="f.date!.mode"
|
|
1350
|
+
[(ngModel)]="f.menus![0]!.value"
|
|
1351
|
+
(ngModelChange)="n.emit($event)"
|
|
1352
|
+
[nzShowNow]="f.date!.showNow"
|
|
1353
|
+
[nzShowToday]="f.date!.showToday"
|
|
1354
|
+
[nzDisabledDate]="f.date!.disabledDate"
|
|
1355
|
+
[nzDisabledTime]="f.date!.disabledTime"
|
|
1356
|
+
></nz-date-picker>
|
|
1357
|
+
<nz-range-picker
|
|
1358
|
+
*ngIf="f.date!.range"
|
|
1359
|
+
nzInline
|
|
1360
|
+
[nzMode]="f.date!.mode"
|
|
1361
|
+
[(ngModel)]="f.menus![0]!.value"
|
|
1362
|
+
(ngModelChange)="n.emit($event)"
|
|
1363
|
+
[nzShowNow]="f.date!.showNow"
|
|
1364
|
+
[nzShowToday]="f.date!.showToday"
|
|
1365
|
+
[nzDisabledDate]="f.date!.disabledDate"
|
|
1366
|
+
[nzDisabledTime]="f.date!.disabledTime"
|
|
1367
|
+
></nz-range-picker>
|
|
1368
|
+
</div>
|
|
1369
|
+
<div *ngSwitchCase="'time'" class="p-sm st__filter-time"> </div>
|
|
1370
|
+
<div *ngSwitchCase="'custom'" class="st__filter-custom">
|
|
1371
|
+
<ng-template
|
|
1372
|
+
[ngTemplateOutlet]="f.custom!"
|
|
1373
|
+
[ngTemplateOutletContext]="{ $implicit: f, col: col }"
|
|
1374
|
+
></ng-template>
|
|
1375
|
+
</div>
|
|
1376
|
+
<ul *ngSwitchDefault nz-menu>
|
|
1377
|
+
<ng-container *ngIf="f.multiple">
|
|
1378
|
+
<li nz-menu-item *ngFor="let filter of f.menus">
|
|
1379
|
+
<label nz-checkbox [(ngModel)]="filter.checked" (ngModelChange)="checkboxChange()">
|
|
1380
|
+
{{ filter.text }}
|
|
1381
|
+
</label>
|
|
1382
|
+
</li>
|
|
1383
|
+
</ng-container>
|
|
1384
|
+
<ng-container *ngIf="!f.multiple">
|
|
1385
|
+
<li nz-menu-item *ngFor="let filter of f.menus">
|
|
1386
|
+
<label nz-radio [ngModel]="filter.checked" (ngModelChange)="radioChange(filter)">
|
|
1387
|
+
{{ filter.text }}
|
|
1388
|
+
</label>
|
|
1389
|
+
</li>
|
|
1390
|
+
</ng-container>
|
|
1391
|
+
</ul>
|
|
1392
|
+
</ng-container>
|
|
1393
|
+
<div *ngIf="f.showOPArea" class="ant-table-filter-dropdown-btns">
|
|
1394
|
+
<a class="ant-table-filter-dropdown-link confirm" (click)="visible = false">
|
|
1395
|
+
<span (click)="confirm()">{{ f.confirmText || locale.filterConfirm }}</span>
|
|
1396
|
+
</a>
|
|
1397
|
+
<a class="ant-table-filter-dropdown-link clear" (click)="visible = false">
|
|
1398
|
+
<span (click)="reset()">{{ f.clearText || locale.filterReset }}</span>
|
|
1399
|
+
</a>
|
|
1400
|
+
</div>
|
|
1401
|
+
</div>
|
|
1402
|
+
</nz-dropdown-menu>
|
|
1403
|
+
`,
|
|
1404
|
+
host: {
|
|
1405
|
+
'[class.ant-table-filter-trigger-container]': `true`,
|
|
1406
|
+
'[class.st__filter]': `true`,
|
|
1407
|
+
'[class.ant-table-filter-trigger-container-open]': `visible`
|
|
1408
|
+
},
|
|
1409
|
+
preserveWhitespaces: false,
|
|
1410
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1411
|
+
encapsulation: ViewEncapsulation.None
|
|
1412
|
+
}]
|
|
1413
|
+
}], propDecorators: { col: [{
|
|
1414
|
+
type: Input
|
|
1415
|
+
}], locale: [{
|
|
1416
|
+
type: Input
|
|
1417
|
+
}], f: [{
|
|
1418
|
+
type: Input
|
|
1419
|
+
}], n: [{
|
|
1420
|
+
type: Output
|
|
1421
|
+
}], handle: [{
|
|
1422
|
+
type: Output
|
|
1423
|
+
}] } });
|
|
1424
|
+
|
|
1129
1425
|
class STComponent {
|
|
1130
1426
|
constructor(i18nSrv, cdr, el, exportSrv, doc, columnSource, dataSource, delonI18n, configSrv, cms) {
|
|
1131
1427
|
this.cdr = cdr;
|
|
@@ -1157,10 +1453,13 @@ class STComponent {
|
|
|
1157
1453
|
this.total = 0;
|
|
1158
1454
|
this.loading = null;
|
|
1159
1455
|
this.loadingDelay = 0;
|
|
1456
|
+
this.loadingIndicator = null;
|
|
1160
1457
|
this.bordered = false;
|
|
1458
|
+
this.scroll = { x: null, y: null };
|
|
1161
1459
|
this.showHeader = true;
|
|
1162
1460
|
this.expandRowByClick = false;
|
|
1163
1461
|
this.expandAccordion = false;
|
|
1462
|
+
this.expand = null;
|
|
1164
1463
|
this.responsive = true;
|
|
1165
1464
|
this.error = new EventEmitter();
|
|
1166
1465
|
this.change = new EventEmitter();
|
|
@@ -1258,6 +1557,10 @@ class STComponent {
|
|
|
1258
1557
|
this.cdr.detectChanges();
|
|
1259
1558
|
return this;
|
|
1260
1559
|
}
|
|
1560
|
+
refreshData() {
|
|
1561
|
+
this._data = [...this._data];
|
|
1562
|
+
return this.cd();
|
|
1563
|
+
}
|
|
1261
1564
|
renderTotal(total, range) {
|
|
1262
1565
|
return this.totalTpl
|
|
1263
1566
|
? this.totalTpl.replace('{{total}}', total).replace('{{range[0]}}', range[0]).replace('{{range[1]}}', range[1])
|
|
@@ -1319,9 +1622,14 @@ class STComponent {
|
|
|
1319
1622
|
multiSort,
|
|
1320
1623
|
rowClassName, paginator: true, customRequest: this.customRequest || this.cog.customRequest }, options))
|
|
1321
1624
|
.pipe(takeUntil(this.destroy$))
|
|
1322
|
-
.subscribe(
|
|
1323
|
-
|
|
1324
|
-
|
|
1625
|
+
.subscribe({
|
|
1626
|
+
next: result => resolvePromise(result),
|
|
1627
|
+
error: error => {
|
|
1628
|
+
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
1629
|
+
console.warn('st.loadDate', error);
|
|
1630
|
+
}
|
|
1631
|
+
rejectPromise(error);
|
|
1632
|
+
}
|
|
1325
1633
|
});
|
|
1326
1634
|
});
|
|
1327
1635
|
}
|
|
@@ -1516,7 +1824,7 @@ class STComponent {
|
|
|
1516
1824
|
const text = `${this.dataSource.getNoIndex(i, c, idx)}`;
|
|
1517
1825
|
i._values[c.__point] = { text, _text: text, org: idx, safeType: 'text' };
|
|
1518
1826
|
}));
|
|
1519
|
-
return this.
|
|
1827
|
+
return this.refreshData();
|
|
1520
1828
|
}
|
|
1521
1829
|
/**
|
|
1522
1830
|
* Sets the row value for the `index` in the table, like this:
|
|
@@ -1541,8 +1849,7 @@ class STComponent {
|
|
|
1541
1849
|
this.resetColumns({ emitReload: options.emitReload });
|
|
1542
1850
|
return this;
|
|
1543
1851
|
}
|
|
1544
|
-
this.
|
|
1545
|
-
return this;
|
|
1852
|
+
return this.refreshData();
|
|
1546
1853
|
}
|
|
1547
1854
|
// #endregion
|
|
1548
1855
|
// #region sort
|
|
@@ -1590,7 +1897,7 @@ class STComponent {
|
|
|
1590
1897
|
// #region checkbox
|
|
1591
1898
|
/** 清除所有 `checkbox` */
|
|
1592
1899
|
clearCheck() {
|
|
1593
|
-
return this.
|
|
1900
|
+
return this.checkAll(false);
|
|
1594
1901
|
}
|
|
1595
1902
|
_refCheck() {
|
|
1596
1903
|
const validData = this._data.filter(w => !w.disabled);
|
|
@@ -1601,10 +1908,10 @@ class STComponent {
|
|
|
1601
1908
|
this._allCheckedDisabled = this._data.length === this._data.filter(w => w.disabled).length;
|
|
1602
1909
|
return this.cd();
|
|
1603
1910
|
}
|
|
1604
|
-
|
|
1911
|
+
checkAll(checked) {
|
|
1605
1912
|
checked = typeof checked === 'undefined' ? this._allChecked : checked;
|
|
1606
1913
|
this._data.filter(w => !w.disabled).forEach(i => (i.checked = checked));
|
|
1607
|
-
return this._refCheck()._checkNotify();
|
|
1914
|
+
return this._refCheck()._checkNotify().refreshData();
|
|
1608
1915
|
}
|
|
1609
1916
|
_rowSelection(row) {
|
|
1610
1917
|
row.select(this._data);
|
|
@@ -1621,7 +1928,7 @@ class STComponent {
|
|
|
1621
1928
|
clearRadio() {
|
|
1622
1929
|
this._data.filter(w => w.checked).forEach(item => (item.checked = false));
|
|
1623
1930
|
this.changeEmit('radio', null);
|
|
1624
|
-
return this;
|
|
1931
|
+
return this.refreshData();
|
|
1625
1932
|
}
|
|
1626
1933
|
// #endregion
|
|
1627
1934
|
_handleTd(ev) {
|
|
@@ -1631,6 +1938,7 @@ class STComponent {
|
|
|
1631
1938
|
break;
|
|
1632
1939
|
case 'radio':
|
|
1633
1940
|
this.changeEmit('radio', ev.item);
|
|
1941
|
+
this.refreshData();
|
|
1634
1942
|
break;
|
|
1635
1943
|
}
|
|
1636
1944
|
}
|
|
@@ -1776,82 +2084,8 @@ class STComponent {
|
|
|
1776
2084
|
this.destroy$.complete();
|
|
1777
2085
|
}
|
|
1778
2086
|
}
|
|
1779
|
-
STComponent
|
|
1780
|
-
{ type: Component, args: [{
|
|
1781
|
-
selector: 'st',
|
|
1782
|
-
exportAs: 'st',
|
|
1783
|
-
template: "<ng-template #titleTpl let-i>\n <span [innerHTML]=\"i._text\"></span>\n <small *ngIf=\"i.optional\" class=\"st__head-optional\" [innerHTML]=\"i.optional\"></small>\n <i\n *ngIf=\"i.optionalHelp\"\n class=\"st__head-tip\"\n nz-tooltip\n [nzTooltipTitle]=\"i.optionalHelp\"\n nz-icon\n nzType=\"question-circle\"\n ></i>\n</ng-template>\n<ng-template #chkAllTpl let-custom>\n <label\n nz-checkbox\n class=\"st__checkall\"\n [nzDisabled]=\"_allCheckedDisabled\"\n [(ngModel)]=\"_allChecked\"\n [nzIndeterminate]=\"_indeterminate\"\n (ngModelChange)=\"_checkAll()\"\n [class.ant-table-selection-select-all-custom]=\"custom\"\n ></label>\n</ng-template>\n<nz-table\n #table\n [nzData]=\"_data\"\n [(nzPageIndex)]=\"pi\"\n (nzPageIndexChange)=\"_change('pi')\"\n [(nzPageSize)]=\"ps\"\n (nzPageSizeChange)=\"_change('ps')\"\n [nzTotal]=\"total\"\n [nzShowPagination]=\"_isPagination\"\n [nzFrontPagination]=\"false\"\n [nzBordered]=\"bordered\"\n [nzSize]=\"size\"\n [nzLoading]=\"_loading\"\n [nzLoadingDelay]=\"loadingDelay\"\n [nzLoadingIndicator]=\"loadingIndicator\"\n [nzTitle]=\"header!\"\n [nzFooter]=\"footer!\"\n [nzScroll]=\"scroll\"\n [nzVirtualItemSize]=\"virtualItemSize\"\n [nzVirtualMaxBufferPx]=\"virtualMaxBufferPx\"\n [nzVirtualMinBufferPx]=\"virtualMinBufferPx\"\n [nzVirtualForTrackBy]=\"virtualForTrackBy\"\n [nzNoResult]=\"noResult!\"\n [nzPageSizeOptions]=\"page.pageSizes!\"\n [nzShowQuickJumper]=\"page.showQuickJumper\"\n [nzShowSizeChanger]=\"page.showSize\"\n [nzPaginationPosition]=\"page.position!\"\n [nzPaginationType]=\"page.type!\"\n [nzItemRender]=\"page.itemRender!\"\n [nzSimple]=\"page.simple\"\n [nzShowTotal]=\"totalTpl\"\n [nzWidthConfig]=\"_widthConfig\"\n (contextmenu)=\"onContextmenu($event)\"\n>\n <thead *ngIf=\"showHeader\">\n <tr *ngFor=\"let row of _headers; let rowFirst = first\">\n <th *ngIf=\"rowFirst && expand\" nzWidth=\"50px\" [rowSpan]=\"_headers.length\"></th>\n <ng-container *ngFor=\"let h of row; let index = index; let last = last\">\n <th\n *let=\"h.column as _c\"\n [colSpan]=\"h.colSpan\"\n [rowSpan]=\"h.rowSpan\"\n [nzWidth]=\"$any(_c).width\"\n [nzLeft]=\"_c._left!\"\n [nzRight]=\"_c._right!\"\n [ngClass]=\"_c.className!\"\n [attr.data-col]=\"_c.indexKey\"\n [attr.data-col-index]=\"index\"\n [nzShowSort]=\"_c._sort.enabled\"\n [nzSortOrder]=\"$any(_c)._sort.default\"\n (nzSortOrderChange)=\"sort(_c, index, $event)\"\n [nzCustomFilter]=\"$any(_c).filter\"\n nz-resizable\n [nzDisabled]=\"last || $any(_c).resizable.disabled\"\n [nzMaxWidth]=\"$any(_c).resizable.maxWidth\"\n [nzMinWidth]=\"$any(_c).resizable.minWidth\"\n [nzBounds]=\"$any(_c).resizable.bounds\"\n [nzPreview]=\"$any(_c).resizable.preview\"\n (nzResizeEnd)=\"colResize($event, _c)\"\n >\n <nz-resize-handle *ngIf=\"$any(!last && !$any(_c).resizable.disabled)\" nzDirection=\"right\">\n <i></i>\n </nz-resize-handle>\n <ng-template\n #renderTitle\n [ngTemplateOutlet]=\"_c.__renderTitle!\"\n [ngTemplateOutletContext]=\"{ $implicit: h.column, index: index }\"\n ></ng-template>\n <ng-container *ngIf=\"!_c.__renderTitle; else renderTitle\">\n <ng-container [ngSwitch]=\"_c.type\">\n <ng-container *ngSwitchCase=\"'checkbox'\">\n <ng-container *ngIf=\"_c.selections!.length === 0\">\n <ng-template [ngTemplateOutlet]=\"chkAllTpl\" [ngTemplateOutletContext]=\"{ $implicit: false }\">\n </ng-template>\n </ng-container>\n <div *ngIf=\"_c.selections!.length > 0\" class=\"ant-table-selection\">\n <ng-template [ngTemplateOutlet]=\"chkAllTpl\" [ngTemplateOutletContext]=\"{ $implicit: true }\">\n </ng-template>\n <div *ngIf=\"_c.selections!.length\" class=\"ant-table-selection-extra\">\n <div\n nz-dropdown\n nzPlacement=\"bottomLeft\"\n [nzDropdownMenu]=\"selectionMenu\"\n class=\"ant-table-selection-down st__checkall-selection\"\n >\n <i nz-icon nzType=\"down\"></i>\n </div>\n </div>\n <nz-dropdown-menu #selectionMenu=\"nzDropdownMenu\">\n <ul nz-menu class=\"ant-table-selection-menu\">\n <li\n nz-menu-item\n *ngFor=\"let rw of _c.selections\"\n (click)=\"_rowSelection(rw)\"\n [innerHTML]=\"rw.text\"\n ></li>\n </ul>\n </nz-dropdown-menu>\n </div>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <ng-template\n [ngTemplateOutlet]=\"titleTpl\"\n [ngTemplateOutletContext]=\"{ $implicit: _c.title }\"\n ></ng-template>\n </ng-container>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"_c.filter\">\n <st-filter\n nz-th-extra\n [col]=\"h.column\"\n [f]=\"_c.filter\"\n [locale]=\"locale\"\n (n)=\"handleFilterNotify($event)\"\n (handle)=\"_handleFilter(_c, $event)\"\n ></st-filter>\n </ng-container>\n </th>\n </ng-container>\n </tr>\n </thead>\n <tbody class=\"st__body\">\n <ng-container *ngIf=\"!_loading\">\n <ng-template\n [ngTemplateOutlet]=\"bodyHeader!\"\n [ngTemplateOutletContext]=\"{ $implicit: _statistical }\"\n ></ng-template>\n </ng-container>\n <ng-template #bodyTpl let-i let-index=\"index\">\n <tr\n [attr.data-index]=\"index\"\n (click)=\"_rowClick($event, i, index, false)\"\n (dblclick)=\"_rowClick($event, i, index, true)\"\n [ngClass]=\"i._rowClassName\"\n >\n <td\n *ngIf=\"expand\"\n [nzShowExpand]=\"expand && i.showExpand !== false\"\n [nzExpand]=\"i.expand\"\n (nzExpandChange)=\"_expandChange(i, $event)\"\n (click)=\"_stopPropagation($event)\"\n nzWidth=\"50px\"\n ></td>\n <td\n *ngFor=\"let c of _columns; let cIdx = index\"\n [nzLeft]=\"!!c._left\"\n [nzRight]=\"!!c._right\"\n [attr.data-col-index]=\"cIdx\"\n [ngClass]=\"c._className!\"\n [attr.colspan]=\"c.colSpan\"\n >\n <span *ngIf=\"responsive\" class=\"ant-table-rep__title\">\n <ng-template [ngTemplateOutlet]=\"titleTpl\" [ngTemplateOutletContext]=\"{ $implicit: c.title }\"></ng-template>\n </span>\n <st-td [data]=\"_data\" [i]=\"i\" [index]=\"index\" [c]=\"c\" [cIdx]=\"cIdx\" (n)=\"_handleTd($event)\"></st-td>\n </td>\n </tr>\n <tr [nzExpand]=\"i.expand\">\n <ng-template\n [ngTemplateOutlet]=\"expand\"\n [ngTemplateOutletContext]=\"{ $implicit: i, index: index }\"\n ></ng-template>\n </tr>\n </ng-template>\n <ng-container *ngIf=\"!virtualScroll\">\n <ng-container *ngFor=\"let i of _data; let index = index\">\n <ng-template [ngTemplateOutlet]=\"bodyTpl\" [ngTemplateOutletContext]=\"{ $implicit: i, index: index }\">\n </ng-template>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"virtualScroll\">\n <ng-template nz-virtual-scroll let-i let-index=\"index\">\n <ng-template [ngTemplateOutlet]=\"bodyTpl\" [ngTemplateOutletContext]=\"{ $implicit: i, index: index }\">\n </ng-template>\n </ng-template>\n </ng-container>\n <ng-container *ngIf=\"!_loading\">\n <ng-template [ngTemplateOutlet]=\"body!\" [ngTemplateOutletContext]=\"{ $implicit: _statistical }\"></ng-template>\n </ng-container>\n </tbody>\n <ng-template #totalTpl let-range=\"range\" let-total>{{ renderTotal(total, range) }}</ng-template>\n</nz-table>\n<nz-dropdown-menu #contextmenuTpl=\"nzDropdownMenu\">\n <ul nz-menu class=\"st__contextmenu\">\n <ng-container *ngFor=\"let i of contextmenuList\">\n <li nz-menu-item *ngIf=\"i.children!.length === 0\" (click)=\"i.fn!(i)\" [innerHTML]=\"i.text\"></li>\n <li nz-submenu *ngIf=\"i.children!.length > 0\" [nzTitle]=\"i.text\">\n <ul>\n <li nz-menu-item *ngFor=\"let ci of i.children\" (click)=\"ci.fn!(ci)\" [innerHTML]=\"ci.text\"></li>\n </ul>\n </li>\n </ng-container>\n </ul>\n</nz-dropdown-menu>\n",
|
|
1784
|
-
providers: [STDataSource, STRowSource, STColumnSource, STExport, DatePipe, YNPipe, DecimalPipe],
|
|
1785
|
-
host: {
|
|
1786
|
-
'[class.st]': `true`,
|
|
1787
|
-
'[class.st__p-left]': `page.placement === 'left'`,
|
|
1788
|
-
'[class.st__p-center]': `page.placement === 'center'`,
|
|
1789
|
-
'[class.st__width-strict]': `widthMode.type === 'strict'`,
|
|
1790
|
-
'[class.ant-table-rep]': `responsive`,
|
|
1791
|
-
'[class.ant-table-rep__hide-header-footer]': `responsiveHideHeaderFooter`
|
|
1792
|
-
},
|
|
1793
|
-
preserveWhitespaces: false,
|
|
1794
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1795
|
-
encapsulation: ViewEncapsulation.None
|
|
1796
|
-
},] }
|
|
1797
|
-
];
|
|
1798
|
-
STComponent.ctorParameters = () => [
|
|
1799
|
-
{ type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [ALAIN_I18N_TOKEN,] }] },
|
|
1800
|
-
{ type: ChangeDetectorRef },
|
|
1801
|
-
{ type: ElementRef },
|
|
1802
|
-
{ type: STExport },
|
|
1803
|
-
{ type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] },
|
|
1804
|
-
{ type: STColumnSource },
|
|
1805
|
-
{ type: STDataSource },
|
|
1806
|
-
{ type: DelonLocaleService },
|
|
1807
|
-
{ type: AlainConfigService },
|
|
1808
|
-
{ type: NzContextMenuService }
|
|
1809
|
-
];
|
|
1810
|
-
STComponent.propDecorators = {
|
|
1811
|
-
orgTable: [{ type: ViewChild, args: ['table',] }],
|
|
1812
|
-
contextmenuTpl: [{ type: ViewChild, args: ['contextmenuTpl',] }],
|
|
1813
|
-
req: [{ type: Input }],
|
|
1814
|
-
res: [{ type: Input }],
|
|
1815
|
-
page: [{ type: Input }],
|
|
1816
|
-
data: [{ type: Input }],
|
|
1817
|
-
columns: [{ type: Input }],
|
|
1818
|
-
contextmenu: [{ type: Input }],
|
|
1819
|
-
ps: [{ type: Input }],
|
|
1820
|
-
pi: [{ type: Input }],
|
|
1821
|
-
total: [{ type: Input }],
|
|
1822
|
-
loading: [{ type: Input }],
|
|
1823
|
-
loadingDelay: [{ type: Input }],
|
|
1824
|
-
loadingIndicator: [{ type: Input }],
|
|
1825
|
-
bordered: [{ type: Input }],
|
|
1826
|
-
size: [{ type: Input }],
|
|
1827
|
-
scroll: [{ type: Input }],
|
|
1828
|
-
singleSort: [{ type: Input }],
|
|
1829
|
-
multiSort: [{ type: Input }],
|
|
1830
|
-
rowClassName: [{ type: Input }],
|
|
1831
|
-
clickRowClassName: [{ type: Input }],
|
|
1832
|
-
widthMode: [{ type: Input }],
|
|
1833
|
-
widthConfig: [{ type: Input }],
|
|
1834
|
-
resizable: [{ type: Input }],
|
|
1835
|
-
header: [{ type: Input }],
|
|
1836
|
-
showHeader: [{ type: Input }],
|
|
1837
|
-
footer: [{ type: Input }],
|
|
1838
|
-
bodyHeader: [{ type: Input }],
|
|
1839
|
-
body: [{ type: Input }],
|
|
1840
|
-
expandRowByClick: [{ type: Input }],
|
|
1841
|
-
expandAccordion: [{ type: Input }],
|
|
1842
|
-
expand: [{ type: Input }],
|
|
1843
|
-
noResult: [{ type: Input }],
|
|
1844
|
-
responsive: [{ type: Input }],
|
|
1845
|
-
responsiveHideHeaderFooter: [{ type: Input }],
|
|
1846
|
-
error: [{ type: Output }],
|
|
1847
|
-
change: [{ type: Output }],
|
|
1848
|
-
virtualScroll: [{ type: Input }],
|
|
1849
|
-
virtualItemSize: [{ type: Input }],
|
|
1850
|
-
virtualMaxBufferPx: [{ type: Input }],
|
|
1851
|
-
virtualMinBufferPx: [{ type: Input }],
|
|
1852
|
-
customRequest: [{ type: Input }],
|
|
1853
|
-
virtualForTrackBy: [{ type: Input }]
|
|
1854
|
-
};
|
|
2087
|
+
STComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: STComponent, deps: [{ token: ALAIN_I18N_TOKEN, optional: true }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: STExport }, { token: DOCUMENT }, { token: STColumnSource }, { token: STDataSource }, { token: i1$1.DelonLocaleService }, { token: i5$1.AlainConfigService }, { token: i6.NzContextMenuService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2088
|
+
STComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: STComponent, selector: "st", inputs: { 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" }, outputs: { error: "error", change: "change" }, host: { properties: { "class.st": "true", "class.st__p-left": "page.placement === 'left'", "class.st__p-center": "page.placement === 'center'", "class.st__width-strict": "widthMode.type === 'strict'", "class.ant-table-rep": "responsive", "class.ant-table-rep__hide-header-footer": "responsiveHideHeaderFooter" } }, providers: [STDataSource, STRowSource, STColumnSource, STExport, DatePipe, YNPipe, DecimalPipe], viewQueries: [{ propertyName: "orgTable", first: true, predicate: ["table"], descendants: true }, { propertyName: "contextmenuTpl", first: true, predicate: ["contextmenuTpl"], descendants: true }], exportAs: ["st"], usesOnChanges: true, ngImport: i0, template: "<ng-template #titleTpl let-i>\n <span [innerHTML]=\"i._text\"></span>\n <small *ngIf=\"i.optional\" class=\"st__head-optional\" [innerHTML]=\"i.optional\"></small>\n <i\n *ngIf=\"i.optionalHelp\"\n class=\"st__head-tip\"\n nz-tooltip\n [nzTooltipTitle]=\"i.optionalHelp\"\n nz-icon\n nzType=\"question-circle\"\n ></i>\n</ng-template>\n<ng-template #chkAllTpl let-custom>\n <label\n nz-checkbox\n class=\"st__checkall\"\n [nzDisabled]=\"_allCheckedDisabled\"\n [(ngModel)]=\"_allChecked\"\n [nzIndeterminate]=\"_indeterminate\"\n (ngModelChange)=\"checkAll()\"\n [class.ant-table-selection-select-all-custom]=\"custom\"\n ></label>\n</ng-template>\n<nz-table\n #table\n [nzData]=\"_data\"\n [(nzPageIndex)]=\"pi\"\n (nzPageIndexChange)=\"_change('pi')\"\n [(nzPageSize)]=\"ps\"\n (nzPageSizeChange)=\"_change('ps')\"\n [nzTotal]=\"total\"\n [nzShowPagination]=\"_isPagination\"\n [nzFrontPagination]=\"false\"\n [nzBordered]=\"bordered\"\n [nzSize]=\"size\"\n [nzLoading]=\"_loading\"\n [nzLoadingDelay]=\"loadingDelay\"\n [nzLoadingIndicator]=\"loadingIndicator\"\n [nzTitle]=\"header!\"\n [nzFooter]=\"footer!\"\n [nzScroll]=\"scroll\"\n [nzVirtualItemSize]=\"virtualItemSize\"\n [nzVirtualMaxBufferPx]=\"virtualMaxBufferPx\"\n [nzVirtualMinBufferPx]=\"virtualMinBufferPx\"\n [nzVirtualForTrackBy]=\"virtualForTrackBy\"\n [nzNoResult]=\"noResult!\"\n [nzPageSizeOptions]=\"page.pageSizes!\"\n [nzShowQuickJumper]=\"page.showQuickJumper\"\n [nzShowSizeChanger]=\"page.showSize\"\n [nzPaginationPosition]=\"page.position!\"\n [nzPaginationType]=\"page.type!\"\n [nzItemRender]=\"page.itemRender!\"\n [nzSimple]=\"page.simple\"\n [nzShowTotal]=\"totalTpl\"\n [nzWidthConfig]=\"_widthConfig\"\n (contextmenu)=\"onContextmenu($event)\"\n>\n <thead *ngIf=\"showHeader\">\n <tr *ngFor=\"let row of _headers; let rowFirst = first\">\n <th *ngIf=\"rowFirst && expand\" nzWidth=\"50px\" [rowSpan]=\"_headers.length\"></th>\n <ng-container *ngFor=\"let h of row; let index = index; let last = last\">\n <th\n *let=\"h.column as _c\"\n [colSpan]=\"h.colSpan\"\n [rowSpan]=\"h.rowSpan\"\n [nzWidth]=\"$any(_c).width\"\n [nzLeft]=\"_c._left!\"\n [nzRight]=\"_c._right!\"\n [ngClass]=\"_c.className!\"\n [attr.data-col]=\"_c.indexKey\"\n [attr.data-col-index]=\"index\"\n [nzShowSort]=\"_c._sort.enabled\"\n [nzSortOrder]=\"$any(_c)._sort.default\"\n (nzSortOrderChange)=\"sort(_c, index, $event)\"\n [nzCustomFilter]=\"$any(_c).filter\"\n nz-resizable\n [nzDisabled]=\"last || $any(_c).resizable.disabled\"\n [nzMaxWidth]=\"$any(_c).resizable.maxWidth\"\n [nzMinWidth]=\"$any(_c).resizable.minWidth\"\n [nzBounds]=\"$any(_c).resizable.bounds\"\n [nzPreview]=\"$any(_c).resizable.preview\"\n (nzResizeEnd)=\"colResize($event, _c)\"\n >\n <nz-resize-handle *ngIf=\"$any(!last && !$any(_c).resizable.disabled)\" nzDirection=\"right\">\n <i></i>\n </nz-resize-handle>\n <ng-template\n #renderTitle\n [ngTemplateOutlet]=\"_c.__renderTitle!\"\n [ngTemplateOutletContext]=\"{ $implicit: h.column, index: index }\"\n ></ng-template>\n <ng-container *ngIf=\"!_c.__renderTitle; else renderTitle\">\n <ng-container [ngSwitch]=\"_c.type\">\n <ng-container *ngSwitchCase=\"'checkbox'\">\n <ng-container *ngIf=\"_c.selections!.length === 0\">\n <ng-template [ngTemplateOutlet]=\"chkAllTpl\" [ngTemplateOutletContext]=\"{ $implicit: false }\">\n </ng-template>\n </ng-container>\n <div *ngIf=\"_c.selections!.length > 0\" class=\"ant-table-selection\">\n <ng-template [ngTemplateOutlet]=\"chkAllTpl\" [ngTemplateOutletContext]=\"{ $implicit: true }\">\n </ng-template>\n <div *ngIf=\"_c.selections!.length\" class=\"ant-table-selection-extra\">\n <div\n nz-dropdown\n nzPlacement=\"bottomLeft\"\n [nzDropdownMenu]=\"selectionMenu\"\n class=\"ant-table-selection-down st__checkall-selection\"\n >\n <i nz-icon nzType=\"down\"></i>\n </div>\n </div>\n <nz-dropdown-menu #selectionMenu=\"nzDropdownMenu\">\n <ul nz-menu class=\"ant-table-selection-menu\">\n <li\n nz-menu-item\n *ngFor=\"let rw of _c.selections\"\n (click)=\"_rowSelection(rw)\"\n [innerHTML]=\"rw.text\"\n ></li>\n </ul>\n </nz-dropdown-menu>\n </div>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <ng-template\n [ngTemplateOutlet]=\"titleTpl\"\n [ngTemplateOutletContext]=\"{ $implicit: _c.title }\"\n ></ng-template>\n </ng-container>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"_c.filter\">\n <st-filter\n nz-th-extra\n [col]=\"h.column\"\n [f]=\"_c.filter\"\n [locale]=\"locale\"\n (n)=\"handleFilterNotify($event)\"\n (handle)=\"_handleFilter(_c, $event)\"\n ></st-filter>\n </ng-container>\n </th>\n </ng-container>\n </tr>\n </thead>\n <tbody class=\"st__body\">\n <ng-container *ngIf=\"!_loading\">\n <ng-template\n [ngTemplateOutlet]=\"bodyHeader!\"\n [ngTemplateOutletContext]=\"{ $implicit: _statistical }\"\n ></ng-template>\n </ng-container>\n <ng-template #bodyTpl let-i let-index=\"index\">\n <tr\n [attr.data-index]=\"index\"\n (click)=\"_rowClick($event, i, index, false)\"\n (dblclick)=\"_rowClick($event, i, index, true)\"\n [ngClass]=\"i._rowClassName\"\n >\n <td\n *ngIf=\"expand\"\n [nzShowExpand]=\"expand && i.showExpand !== false\"\n [nzExpand]=\"i.expand\"\n (nzExpandChange)=\"_expandChange(i, $event)\"\n (click)=\"_stopPropagation($event)\"\n nzWidth=\"50px\"\n ></td>\n <td\n *ngFor=\"let c of _columns; let cIdx = index\"\n [nzLeft]=\"!!c._left\"\n [nzRight]=\"!!c._right\"\n [attr.data-col-index]=\"cIdx\"\n [ngClass]=\"c._className!\"\n [attr.colspan]=\"c.colSpan\"\n >\n <span *ngIf=\"responsive\" class=\"ant-table-rep__title\">\n <ng-template [ngTemplateOutlet]=\"titleTpl\" [ngTemplateOutletContext]=\"{ $implicit: c.title }\"></ng-template>\n </span>\n <st-td [data]=\"_data\" [i]=\"i\" [index]=\"index\" [c]=\"c\" [cIdx]=\"cIdx\" (n)=\"_handleTd($event)\"></st-td>\n </td>\n </tr>\n <tr [nzExpand]=\"i.expand\">\n <ng-template\n [ngTemplateOutlet]=\"expand\"\n [ngTemplateOutletContext]=\"{ $implicit: i, index: index }\"\n ></ng-template>\n </tr>\n </ng-template>\n <ng-container *ngIf=\"!virtualScroll\">\n <ng-container *ngFor=\"let i of _data; let index = index\">\n <ng-template [ngTemplateOutlet]=\"bodyTpl\" [ngTemplateOutletContext]=\"{ $implicit: i, index: index }\">\n </ng-template>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"virtualScroll\">\n <ng-template nz-virtual-scroll let-i let-index=\"index\">\n <ng-template [ngTemplateOutlet]=\"bodyTpl\" [ngTemplateOutletContext]=\"{ $implicit: i, index: index }\">\n </ng-template>\n </ng-template>\n </ng-container>\n <ng-container *ngIf=\"!_loading\">\n <ng-template [ngTemplateOutlet]=\"body!\" [ngTemplateOutletContext]=\"{ $implicit: _statistical }\"></ng-template>\n </ng-container>\n </tbody>\n <ng-template #totalTpl let-range=\"range\" let-total>{{ renderTotal(total, range) }}</ng-template>\n</nz-table>\n<nz-dropdown-menu #contextmenuTpl=\"nzDropdownMenu\">\n <ul nz-menu class=\"st__contextmenu\">\n <ng-container *ngFor=\"let i of contextmenuList\">\n <li nz-menu-item *ngIf=\"i.children!.length === 0\" (click)=\"i.fn!(i)\" [innerHTML]=\"i.text\"></li>\n <li nz-submenu *ngIf=\"i.children!.length > 0\" [nzTitle]=\"i.text\">\n <ul>\n <li nz-menu-item *ngFor=\"let ci of i.children\" (click)=\"ci.fn!(ci)\" [innerHTML]=\"ci.text\"></li>\n </ul>\n </li>\n </ng-container>\n </ul>\n</nz-dropdown-menu>\n", components: [{ type: i0.forwardRef(function () { return i7.NzCheckboxComponent; }), selector: "[nz-checkbox]", inputs: ["nzValue", "nzAutoFocus", "nzDisabled", "nzIndeterminate", "nzChecked", "nzId"], outputs: ["nzCheckedChange"], exportAs: ["nzCheckbox"] }, { type: i0.forwardRef(function () { return i8$1.NzTableComponent; }), selector: "nz-table", inputs: ["nzTableLayout", "nzShowTotal", "nzItemRender", "nzTitle", "nzFooter", "nzNoResult", "nzPageSizeOptions", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualForTrackBy", "nzLoadingDelay", "nzPageIndex", "nzPageSize", "nzTotal", "nzWidthConfig", "nzData", "nzPaginationPosition", "nzScroll", "nzPaginationType", "nzFrontPagination", "nzTemplateMode", "nzShowPagination", "nzLoading", "nzOuterBordered", "nzLoadingIndicator", "nzBordered", "nzSize", "nzShowSizeChanger", "nzHideOnSinglePage", "nzShowQuickJumper", "nzSimple"], outputs: ["nzPageSizeChange", "nzPageIndexChange", "nzQueryParams", "nzCurrentPageDataChange"], exportAs: ["nzTable"] }, { type: i0.forwardRef(function () { return i8$1.NzTheadComponent; }), selector: "thead:not(.ant-table-thead)", outputs: ["nzSortOrderChange"] }, { type: i0.forwardRef(function () { return i8$1.NzThAddOnComponent; }), selector: "th[nzColumnKey], th[nzSortFn], th[nzSortOrder], th[nzFilters], th[nzShowSort], th[nzShowFilter], th[nzCustomFilter]", inputs: ["nzColumnKey", "nzFilterMultiple", "nzSortOrder", "nzSortPriority", "nzSortDirections", "nzFilters", "nzSortFn", "nzFilterFn", "nzShowSort", "nzShowFilter", "nzCustomFilter"], outputs: ["nzCheckedChange", "nzSortOrderChange", "nzFilterChange"] }, { type: i0.forwardRef(function () { return i9.NzResizeHandleComponent; }), selector: "nz-resize-handle, [nz-resize-handle]", inputs: ["nzDirection"], outputs: ["nzMouseDown"], exportAs: ["nzResizeHandle"] }, { type: i0.forwardRef(function () { return i6.NzDropdownMenuComponent; }), selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { type: i0.forwardRef(function () { return STFilterComponent; }), selector: "st-filter", inputs: ["col", "locale", "f"], outputs: ["n", "handle"] }, { type: i0.forwardRef(function () { return i8$1.NzTbodyComponent; }), selector: "tbody" }, { type: i0.forwardRef(function () { return i8$1.NzTdAddOnComponent; }), selector: "td[nzChecked], td[nzDisabled], td[nzIndeterminate], td[nzIndentSize], td[nzExpand], td[nzShowExpand], td[nzShowCheckbox]", inputs: ["nzChecked", "nzDisabled", "nzIndeterminate", "nzIndentSize", "nzShowExpand", "nzShowCheckbox", "nzExpand"], outputs: ["nzCheckedChange", "nzExpandChange"] }, { type: i0.forwardRef(function () { return STTdComponent; }), selector: "st-td", inputs: ["c", "cIdx", "data", "i", "index"], outputs: ["n"] }, { type: i0.forwardRef(function () { return i8$1.NzTableFixedRowComponent; }), selector: "tr[nz-table-fixed-row], tr[nzExpand]" }, { type: i0.forwardRef(function () { return i11.NzSubMenuComponent; }), selector: "[nz-submenu]", inputs: ["nzMenuClassName", "nzPaddingLeft", "nzTitle", "nzIcon", "nzOpen", "nzDisabled"], outputs: ["nzOpenChange"], exportAs: ["nzSubmenu"] }], directives: [{ type: i0.forwardRef(function () { return i12.NgIf; }), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i0.forwardRef(function () { return i13.NzTooltipDirective; }), selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }, { type: i0.forwardRef(function () { return i14.NzIconDirective; }), selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { type: i0.forwardRef(function () { return i15.NgControlStatus; }), selector: "[formControlName],[ngModel],[formControl]" }, { type: i0.forwardRef(function () { return i15.NgModel; }), selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i0.forwardRef(function () { return i12.NgForOf; }), selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i0.forwardRef(function () { return i8$1.NzTrDirective; }), selector: "tr:not([mat-row]):not([mat-header-row]):not([nz-table-measure-row]):not([nzExpand]):not([nz-table-fixed-row])" }, { type: i0.forwardRef(function () { return i8$1.NzTableCellDirective; }), selector: "th:not(.nz-disable-th):not([mat-cell]), td:not(.nz-disable-td):not([mat-cell])" }, { type: i0.forwardRef(function () { return i8$1.NzThMeasureDirective; }), selector: "th", inputs: ["nzWidth", "colspan", "colSpan", "rowspan", "rowSpan"] }, { type: i0.forwardRef(function () { return i16.LetDirective; }), selector: "[let]", inputs: ["let"] }, { type: i0.forwardRef(function () { return i8$1.NzCellFixedDirective; }), selector: "td[nzRight],th[nzRight],td[nzLeft],th[nzLeft]", inputs: ["nzRight", "nzLeft", "colspan", "colSpan"] }, { type: i0.forwardRef(function () { return i9.NzResizableDirective; }), selector: "[nz-resizable]", inputs: ["nzBounds", "nzMaxHeight", "nzMaxWidth", "nzMinHeight", "nzMinWidth", "nzGridColumnCount", "nzMaxColumn", "nzMinColumn", "nzLockAspectRatio", "nzPreview", "nzDisabled"], outputs: ["nzResize", "nzResizeEnd", "nzResizeStart"], exportAs: ["nzResizable"] }, { type: i0.forwardRef(function () { return i12.NgClass; }), selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i0.forwardRef(function () { return i12.NgTemplateOutlet; }), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i0.forwardRef(function () { return i12.NgSwitch; }), selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i0.forwardRef(function () { return i12.NgSwitchCase; }), selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i0.forwardRef(function () { return i6.NzDropDownDirective; }), selector: "[nz-dropdown]", inputs: ["nzDropdownMenu", "nzTrigger", "nzMatchWidthElement", "nzBackdrop", "nzClickHide", "nzDisabled", "nzVisible", "nzOverlayClassName", "nzOverlayStyle", "nzPlacement"], outputs: ["nzVisibleChange"], exportAs: ["nzDropdown"] }, { type: i0.forwardRef(function () { return i11.NzMenuDirective; }), selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { type: i0.forwardRef(function () { return i11.NzMenuItemDirective; }), selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { type: i0.forwardRef(function () { return i12.NgSwitchDefault; }), selector: "[ngSwitchDefault]" }, { type: i0.forwardRef(function () { return i8$1.NzTrExpandDirective; }), selector: "tr[nzExpand]", inputs: ["nzExpand"] }, { type: i0.forwardRef(function () { return i8$1.NzTableVirtualScrollDirective; }), selector: "[nz-virtual-scroll]", exportAs: ["nzVirtualScroll"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1855
2089
|
__decorate([
|
|
1856
2090
|
InputNumber()
|
|
1857
2091
|
], STComponent.prototype, "ps", void 0);
|
|
@@ -1894,155 +2128,115 @@ __decorate([
|
|
|
1894
2128
|
__decorate([
|
|
1895
2129
|
InputNumber()
|
|
1896
2130
|
], STComponent.prototype, "virtualMinBufferPx", void 0);
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
</li>
|
|
2007
|
-
</ng-container>
|
|
2008
|
-
<ng-container *ngIf="!f.multiple">
|
|
2009
|
-
<li nz-menu-item *ngFor="let filter of f.menus">
|
|
2010
|
-
<label nz-radio [ngModel]="filter.checked" (ngModelChange)="radioChange(filter)">
|
|
2011
|
-
{{ filter.text }}
|
|
2012
|
-
</label>
|
|
2013
|
-
</li>
|
|
2014
|
-
</ng-container>
|
|
2015
|
-
</ul>
|
|
2016
|
-
</ng-container>
|
|
2017
|
-
<div *ngIf="f.showOPArea" class="ant-table-filter-dropdown-btns">
|
|
2018
|
-
<a class="ant-table-filter-dropdown-link confirm" (click)="visible = false">
|
|
2019
|
-
<span (click)="confirm()">{{ f.confirmText || locale.filterConfirm }}</span>
|
|
2020
|
-
</a>
|
|
2021
|
-
<a class="ant-table-filter-dropdown-link clear" (click)="visible = false">
|
|
2022
|
-
<span (click)="reset()">{{ f.clearText || locale.filterReset }}</span>
|
|
2023
|
-
</a>
|
|
2024
|
-
</div>
|
|
2025
|
-
</div>
|
|
2026
|
-
</nz-dropdown-menu>
|
|
2027
|
-
`,
|
|
2028
|
-
host: {
|
|
2029
|
-
'[class.ant-table-filter-trigger-container]': `true`,
|
|
2030
|
-
'[class.st__filter]': `true`,
|
|
2031
|
-
'[class.ant-table-filter-trigger-container-open]': `visible`
|
|
2032
|
-
},
|
|
2033
|
-
preserveWhitespaces: false,
|
|
2034
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2035
|
-
encapsulation: ViewEncapsulation.None
|
|
2036
|
-
},] }
|
|
2037
|
-
];
|
|
2038
|
-
STFilterComponent.propDecorators = {
|
|
2039
|
-
col: [{ type: Input }],
|
|
2040
|
-
locale: [{ type: Input }],
|
|
2041
|
-
f: [{ type: Input }],
|
|
2042
|
-
n: [{ type: Output }],
|
|
2043
|
-
handle: [{ type: Output }]
|
|
2044
|
-
};
|
|
2045
|
-
|
|
2131
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: STComponent, decorators: [{
|
|
2132
|
+
type: Component,
|
|
2133
|
+
args: [{ selector: 'st', exportAs: 'st', providers: [STDataSource, STRowSource, STColumnSource, STExport, DatePipe, YNPipe, DecimalPipe], host: {
|
|
2134
|
+
'[class.st]': `true`,
|
|
2135
|
+
'[class.st__p-left]': `page.placement === 'left'`,
|
|
2136
|
+
'[class.st__p-center]': `page.placement === 'center'`,
|
|
2137
|
+
'[class.st__width-strict]': `widthMode.type === 'strict'`,
|
|
2138
|
+
'[class.ant-table-rep]': `responsive`,
|
|
2139
|
+
'[class.ant-table-rep__hide-header-footer]': `responsiveHideHeaderFooter`
|
|
2140
|
+
}, preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ng-template #titleTpl let-i>\n <span [innerHTML]=\"i._text\"></span>\n <small *ngIf=\"i.optional\" class=\"st__head-optional\" [innerHTML]=\"i.optional\"></small>\n <i\n *ngIf=\"i.optionalHelp\"\n class=\"st__head-tip\"\n nz-tooltip\n [nzTooltipTitle]=\"i.optionalHelp\"\n nz-icon\n nzType=\"question-circle\"\n ></i>\n</ng-template>\n<ng-template #chkAllTpl let-custom>\n <label\n nz-checkbox\n class=\"st__checkall\"\n [nzDisabled]=\"_allCheckedDisabled\"\n [(ngModel)]=\"_allChecked\"\n [nzIndeterminate]=\"_indeterminate\"\n (ngModelChange)=\"checkAll()\"\n [class.ant-table-selection-select-all-custom]=\"custom\"\n ></label>\n</ng-template>\n<nz-table\n #table\n [nzData]=\"_data\"\n [(nzPageIndex)]=\"pi\"\n (nzPageIndexChange)=\"_change('pi')\"\n [(nzPageSize)]=\"ps\"\n (nzPageSizeChange)=\"_change('ps')\"\n [nzTotal]=\"total\"\n [nzShowPagination]=\"_isPagination\"\n [nzFrontPagination]=\"false\"\n [nzBordered]=\"bordered\"\n [nzSize]=\"size\"\n [nzLoading]=\"_loading\"\n [nzLoadingDelay]=\"loadingDelay\"\n [nzLoadingIndicator]=\"loadingIndicator\"\n [nzTitle]=\"header!\"\n [nzFooter]=\"footer!\"\n [nzScroll]=\"scroll\"\n [nzVirtualItemSize]=\"virtualItemSize\"\n [nzVirtualMaxBufferPx]=\"virtualMaxBufferPx\"\n [nzVirtualMinBufferPx]=\"virtualMinBufferPx\"\n [nzVirtualForTrackBy]=\"virtualForTrackBy\"\n [nzNoResult]=\"noResult!\"\n [nzPageSizeOptions]=\"page.pageSizes!\"\n [nzShowQuickJumper]=\"page.showQuickJumper\"\n [nzShowSizeChanger]=\"page.showSize\"\n [nzPaginationPosition]=\"page.position!\"\n [nzPaginationType]=\"page.type!\"\n [nzItemRender]=\"page.itemRender!\"\n [nzSimple]=\"page.simple\"\n [nzShowTotal]=\"totalTpl\"\n [nzWidthConfig]=\"_widthConfig\"\n (contextmenu)=\"onContextmenu($event)\"\n>\n <thead *ngIf=\"showHeader\">\n <tr *ngFor=\"let row of _headers; let rowFirst = first\">\n <th *ngIf=\"rowFirst && expand\" nzWidth=\"50px\" [rowSpan]=\"_headers.length\"></th>\n <ng-container *ngFor=\"let h of row; let index = index; let last = last\">\n <th\n *let=\"h.column as _c\"\n [colSpan]=\"h.colSpan\"\n [rowSpan]=\"h.rowSpan\"\n [nzWidth]=\"$any(_c).width\"\n [nzLeft]=\"_c._left!\"\n [nzRight]=\"_c._right!\"\n [ngClass]=\"_c.className!\"\n [attr.data-col]=\"_c.indexKey\"\n [attr.data-col-index]=\"index\"\n [nzShowSort]=\"_c._sort.enabled\"\n [nzSortOrder]=\"$any(_c)._sort.default\"\n (nzSortOrderChange)=\"sort(_c, index, $event)\"\n [nzCustomFilter]=\"$any(_c).filter\"\n nz-resizable\n [nzDisabled]=\"last || $any(_c).resizable.disabled\"\n [nzMaxWidth]=\"$any(_c).resizable.maxWidth\"\n [nzMinWidth]=\"$any(_c).resizable.minWidth\"\n [nzBounds]=\"$any(_c).resizable.bounds\"\n [nzPreview]=\"$any(_c).resizable.preview\"\n (nzResizeEnd)=\"colResize($event, _c)\"\n >\n <nz-resize-handle *ngIf=\"$any(!last && !$any(_c).resizable.disabled)\" nzDirection=\"right\">\n <i></i>\n </nz-resize-handle>\n <ng-template\n #renderTitle\n [ngTemplateOutlet]=\"_c.__renderTitle!\"\n [ngTemplateOutletContext]=\"{ $implicit: h.column, index: index }\"\n ></ng-template>\n <ng-container *ngIf=\"!_c.__renderTitle; else renderTitle\">\n <ng-container [ngSwitch]=\"_c.type\">\n <ng-container *ngSwitchCase=\"'checkbox'\">\n <ng-container *ngIf=\"_c.selections!.length === 0\">\n <ng-template [ngTemplateOutlet]=\"chkAllTpl\" [ngTemplateOutletContext]=\"{ $implicit: false }\">\n </ng-template>\n </ng-container>\n <div *ngIf=\"_c.selections!.length > 0\" class=\"ant-table-selection\">\n <ng-template [ngTemplateOutlet]=\"chkAllTpl\" [ngTemplateOutletContext]=\"{ $implicit: true }\">\n </ng-template>\n <div *ngIf=\"_c.selections!.length\" class=\"ant-table-selection-extra\">\n <div\n nz-dropdown\n nzPlacement=\"bottomLeft\"\n [nzDropdownMenu]=\"selectionMenu\"\n class=\"ant-table-selection-down st__checkall-selection\"\n >\n <i nz-icon nzType=\"down\"></i>\n </div>\n </div>\n <nz-dropdown-menu #selectionMenu=\"nzDropdownMenu\">\n <ul nz-menu class=\"ant-table-selection-menu\">\n <li\n nz-menu-item\n *ngFor=\"let rw of _c.selections\"\n (click)=\"_rowSelection(rw)\"\n [innerHTML]=\"rw.text\"\n ></li>\n </ul>\n </nz-dropdown-menu>\n </div>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <ng-template\n [ngTemplateOutlet]=\"titleTpl\"\n [ngTemplateOutletContext]=\"{ $implicit: _c.title }\"\n ></ng-template>\n </ng-container>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"_c.filter\">\n <st-filter\n nz-th-extra\n [col]=\"h.column\"\n [f]=\"_c.filter\"\n [locale]=\"locale\"\n (n)=\"handleFilterNotify($event)\"\n (handle)=\"_handleFilter(_c, $event)\"\n ></st-filter>\n </ng-container>\n </th>\n </ng-container>\n </tr>\n </thead>\n <tbody class=\"st__body\">\n <ng-container *ngIf=\"!_loading\">\n <ng-template\n [ngTemplateOutlet]=\"bodyHeader!\"\n [ngTemplateOutletContext]=\"{ $implicit: _statistical }\"\n ></ng-template>\n </ng-container>\n <ng-template #bodyTpl let-i let-index=\"index\">\n <tr\n [attr.data-index]=\"index\"\n (click)=\"_rowClick($event, i, index, false)\"\n (dblclick)=\"_rowClick($event, i, index, true)\"\n [ngClass]=\"i._rowClassName\"\n >\n <td\n *ngIf=\"expand\"\n [nzShowExpand]=\"expand && i.showExpand !== false\"\n [nzExpand]=\"i.expand\"\n (nzExpandChange)=\"_expandChange(i, $event)\"\n (click)=\"_stopPropagation($event)\"\n nzWidth=\"50px\"\n ></td>\n <td\n *ngFor=\"let c of _columns; let cIdx = index\"\n [nzLeft]=\"!!c._left\"\n [nzRight]=\"!!c._right\"\n [attr.data-col-index]=\"cIdx\"\n [ngClass]=\"c._className!\"\n [attr.colspan]=\"c.colSpan\"\n >\n <span *ngIf=\"responsive\" class=\"ant-table-rep__title\">\n <ng-template [ngTemplateOutlet]=\"titleTpl\" [ngTemplateOutletContext]=\"{ $implicit: c.title }\"></ng-template>\n </span>\n <st-td [data]=\"_data\" [i]=\"i\" [index]=\"index\" [c]=\"c\" [cIdx]=\"cIdx\" (n)=\"_handleTd($event)\"></st-td>\n </td>\n </tr>\n <tr [nzExpand]=\"i.expand\">\n <ng-template\n [ngTemplateOutlet]=\"expand\"\n [ngTemplateOutletContext]=\"{ $implicit: i, index: index }\"\n ></ng-template>\n </tr>\n </ng-template>\n <ng-container *ngIf=\"!virtualScroll\">\n <ng-container *ngFor=\"let i of _data; let index = index\">\n <ng-template [ngTemplateOutlet]=\"bodyTpl\" [ngTemplateOutletContext]=\"{ $implicit: i, index: index }\">\n </ng-template>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"virtualScroll\">\n <ng-template nz-virtual-scroll let-i let-index=\"index\">\n <ng-template [ngTemplateOutlet]=\"bodyTpl\" [ngTemplateOutletContext]=\"{ $implicit: i, index: index }\">\n </ng-template>\n </ng-template>\n </ng-container>\n <ng-container *ngIf=\"!_loading\">\n <ng-template [ngTemplateOutlet]=\"body!\" [ngTemplateOutletContext]=\"{ $implicit: _statistical }\"></ng-template>\n </ng-container>\n </tbody>\n <ng-template #totalTpl let-range=\"range\" let-total>{{ renderTotal(total, range) }}</ng-template>\n</nz-table>\n<nz-dropdown-menu #contextmenuTpl=\"nzDropdownMenu\">\n <ul nz-menu class=\"st__contextmenu\">\n <ng-container *ngFor=\"let i of contextmenuList\">\n <li nz-menu-item *ngIf=\"i.children!.length === 0\" (click)=\"i.fn!(i)\" [innerHTML]=\"i.text\"></li>\n <li nz-submenu *ngIf=\"i.children!.length > 0\" [nzTitle]=\"i.text\">\n <ul>\n <li nz-menu-item *ngFor=\"let ci of i.children\" (click)=\"ci.fn!(ci)\" [innerHTML]=\"ci.text\"></li>\n </ul>\n </li>\n </ng-container>\n </ul>\n</nz-dropdown-menu>\n" }]
|
|
2141
|
+
}], ctorParameters: function () {
|
|
2142
|
+
return [{ type: undefined, decorators: [{
|
|
2143
|
+
type: Optional
|
|
2144
|
+
}, {
|
|
2145
|
+
type: Inject,
|
|
2146
|
+
args: [ALAIN_I18N_TOKEN]
|
|
2147
|
+
}] }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: STExport }, { type: undefined, decorators: [{
|
|
2148
|
+
type: Inject,
|
|
2149
|
+
args: [DOCUMENT]
|
|
2150
|
+
}] }, { type: STColumnSource }, { type: STDataSource }, { type: i1$1.DelonLocaleService }, { type: i5$1.AlainConfigService }, { type: i6.NzContextMenuService }];
|
|
2151
|
+
}, propDecorators: { orgTable: [{
|
|
2152
|
+
type: ViewChild,
|
|
2153
|
+
args: ['table']
|
|
2154
|
+
}], contextmenuTpl: [{
|
|
2155
|
+
type: ViewChild,
|
|
2156
|
+
args: ['contextmenuTpl']
|
|
2157
|
+
}], req: [{
|
|
2158
|
+
type: Input
|
|
2159
|
+
}], res: [{
|
|
2160
|
+
type: Input
|
|
2161
|
+
}], page: [{
|
|
2162
|
+
type: Input
|
|
2163
|
+
}], data: [{
|
|
2164
|
+
type: Input
|
|
2165
|
+
}], columns: [{
|
|
2166
|
+
type: Input
|
|
2167
|
+
}], contextmenu: [{
|
|
2168
|
+
type: Input
|
|
2169
|
+
}], ps: [{
|
|
2170
|
+
type: Input
|
|
2171
|
+
}], pi: [{
|
|
2172
|
+
type: Input
|
|
2173
|
+
}], total: [{
|
|
2174
|
+
type: Input
|
|
2175
|
+
}], loading: [{
|
|
2176
|
+
type: Input
|
|
2177
|
+
}], loadingDelay: [{
|
|
2178
|
+
type: Input
|
|
2179
|
+
}], loadingIndicator: [{
|
|
2180
|
+
type: Input
|
|
2181
|
+
}], bordered: [{
|
|
2182
|
+
type: Input
|
|
2183
|
+
}], size: [{
|
|
2184
|
+
type: Input
|
|
2185
|
+
}], scroll: [{
|
|
2186
|
+
type: Input
|
|
2187
|
+
}], singleSort: [{
|
|
2188
|
+
type: Input
|
|
2189
|
+
}], multiSort: [{
|
|
2190
|
+
type: Input
|
|
2191
|
+
}], rowClassName: [{
|
|
2192
|
+
type: Input
|
|
2193
|
+
}], clickRowClassName: [{
|
|
2194
|
+
type: Input
|
|
2195
|
+
}], widthMode: [{
|
|
2196
|
+
type: Input
|
|
2197
|
+
}], widthConfig: [{
|
|
2198
|
+
type: Input
|
|
2199
|
+
}], resizable: [{
|
|
2200
|
+
type: Input
|
|
2201
|
+
}], header: [{
|
|
2202
|
+
type: Input
|
|
2203
|
+
}], showHeader: [{
|
|
2204
|
+
type: Input
|
|
2205
|
+
}], footer: [{
|
|
2206
|
+
type: Input
|
|
2207
|
+
}], bodyHeader: [{
|
|
2208
|
+
type: Input
|
|
2209
|
+
}], body: [{
|
|
2210
|
+
type: Input
|
|
2211
|
+
}], expandRowByClick: [{
|
|
2212
|
+
type: Input
|
|
2213
|
+
}], expandAccordion: [{
|
|
2214
|
+
type: Input
|
|
2215
|
+
}], expand: [{
|
|
2216
|
+
type: Input
|
|
2217
|
+
}], noResult: [{
|
|
2218
|
+
type: Input
|
|
2219
|
+
}], responsive: [{
|
|
2220
|
+
type: Input
|
|
2221
|
+
}], responsiveHideHeaderFooter: [{
|
|
2222
|
+
type: Input
|
|
2223
|
+
}], error: [{
|
|
2224
|
+
type: Output
|
|
2225
|
+
}], change: [{
|
|
2226
|
+
type: Output
|
|
2227
|
+
}], virtualScroll: [{
|
|
2228
|
+
type: Input
|
|
2229
|
+
}], virtualItemSize: [{
|
|
2230
|
+
type: Input
|
|
2231
|
+
}], virtualMaxBufferPx: [{
|
|
2232
|
+
type: Input
|
|
2233
|
+
}], virtualMinBufferPx: [{
|
|
2234
|
+
type: Input
|
|
2235
|
+
}], customRequest: [{
|
|
2236
|
+
type: Input
|
|
2237
|
+
}], virtualForTrackBy: [{
|
|
2238
|
+
type: Input
|
|
2239
|
+
}] } });
|
|
2046
2240
|
class STTdComponent {
|
|
2047
2241
|
constructor(stComp, router, modalHelper, drawerHelper) {
|
|
2048
2242
|
this.stComp = stComp;
|
|
@@ -2062,9 +2256,9 @@ class STTdComponent {
|
|
|
2062
2256
|
this.i.checked = value;
|
|
2063
2257
|
this.report('checkbox');
|
|
2064
2258
|
}
|
|
2065
|
-
_radio(
|
|
2259
|
+
_radio() {
|
|
2066
2260
|
this.data.filter(w => !w.disabled).forEach(i => (i.checked = false));
|
|
2067
|
-
this.i.checked =
|
|
2261
|
+
this.i.checked = true;
|
|
2068
2262
|
this.report('radio');
|
|
2069
2263
|
}
|
|
2070
2264
|
_link(e) {
|
|
@@ -2128,181 +2322,105 @@ class STTdComponent {
|
|
|
2128
2322
|
}
|
|
2129
2323
|
}
|
|
2130
2324
|
}
|
|
2131
|
-
STTdComponent
|
|
2132
|
-
{ type:
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
(nzOnConfirm)="_btn(i)"
|
|
2154
|
-
class="st__btn-text"
|
|
2155
|
-
[ngClass]="i.className"
|
|
2156
|
-
(click)="_stopPropagation($event)"
|
|
2157
|
-
>
|
|
2158
|
-
<ng-template [ngTemplateOutlet]="btnTextTpl" [ngTemplateOutletContext]="{ $implicit: i }"></ng-template>
|
|
2159
|
-
</a>
|
|
2160
|
-
<a *ngIf="!i.pop" (click)="_btn(i, $event)" class="st__btn-text" [ngClass]="i.className">
|
|
2161
|
-
<ng-template [ngTemplateOutlet]="btnTextTpl" [ngTemplateOutletContext]="{ $implicit: i }"></ng-template>
|
|
2162
|
-
</a>
|
|
2163
|
-
</ng-template>
|
|
2164
|
-
<ng-template #btnTextTpl let-i>
|
|
2165
|
-
<ng-container *ngIf="i.icon">
|
|
2166
|
-
<i
|
|
2167
|
-
*ngIf="!i.icon.iconfont"
|
|
2168
|
-
nz-icon
|
|
2169
|
-
[nzType]="i.icon.type"
|
|
2170
|
-
[nzTheme]="i.icon.theme"
|
|
2171
|
-
[nzSpin]="i.icon.spin"
|
|
2172
|
-
[nzTwotoneColor]="i.icon.twoToneColor"
|
|
2173
|
-
></i>
|
|
2174
|
-
<i *ngIf="i.icon.iconfont" nz-icon [nzIconfont]="i.icon.iconfont"></i>
|
|
2175
|
-
</ng-container>
|
|
2176
|
-
<span [innerHTML]="i._text" [ngClass]="{ 'pl-xs': i.icon }"></span>
|
|
2177
|
-
</ng-template>
|
|
2178
|
-
<ng-template
|
|
2179
|
-
#render
|
|
2180
|
-
[ngTemplateOutlet]="c.__render!"
|
|
2181
|
-
[ngTemplateOutletContext]="{ $implicit: i, index: index, column: c }"
|
|
2182
|
-
></ng-template>
|
|
2183
|
-
<ng-container *ngIf="!c.__render; else render">
|
|
2184
|
-
<ng-container [ngSwitch]="c.type">
|
|
2185
|
-
<label
|
|
2186
|
-
*ngSwitchCase="'checkbox'"
|
|
2187
|
-
nz-checkbox
|
|
2188
|
-
[nzDisabled]="i.disabled"
|
|
2189
|
-
[ngModel]="i.checked"
|
|
2190
|
-
(ngModelChange)="_checkbox($event)"
|
|
2191
|
-
></label>
|
|
2192
|
-
<label
|
|
2193
|
-
*ngSwitchCase="'radio'"
|
|
2194
|
-
nz-radio
|
|
2195
|
-
[nzDisabled]="i.disabled"
|
|
2196
|
-
[ngModel]="i.checked"
|
|
2197
|
-
(ngModelChange)="_radio($event)"
|
|
2198
|
-
></label>
|
|
2199
|
-
<a
|
|
2200
|
-
*ngSwitchCase="'link'"
|
|
2201
|
-
(click)="_link($event)"
|
|
2202
|
-
[innerHTML]="i._values[cIdx]._text"
|
|
2203
|
-
[attr.title]="i._values[cIdx].text"
|
|
2204
|
-
></a>
|
|
2205
|
-
<ng-container *ngIf="i._values[cIdx].text">
|
|
2206
|
-
<nz-tag *ngSwitchCase="'tag'" [nzColor]="i._values[cIdx].color">
|
|
2207
|
-
<span [innerHTML]="i._values[cIdx]._text"></span>
|
|
2208
|
-
</nz-tag>
|
|
2209
|
-
<nz-badge
|
|
2210
|
-
*ngSwitchCase="'badge'"
|
|
2211
|
-
[nzStatus]="i._values[cIdx].color"
|
|
2212
|
-
[nzText]="i._values[cIdx].text"
|
|
2213
|
-
></nz-badge>
|
|
2214
|
-
</ng-container>
|
|
2215
|
-
<ng-template *ngSwitchCase="'widget'" st-widget-host [record]="i" [column]="c"></ng-template
|
|
2216
|
-
><ng-container *ngSwitchDefault>
|
|
2217
|
-
<span
|
|
2218
|
-
*ngIf="c.safeType !== 'text'"
|
|
2219
|
-
[innerHTML]="i._values[cIdx]._text"
|
|
2220
|
-
[attr.title]="c._isTruncate ? i._values[cIdx].text : null"
|
|
2221
|
-
></span>
|
|
2222
|
-
<span
|
|
2223
|
-
*ngIf="c.safeType === 'text'"
|
|
2224
|
-
[innerText]="i._values[cIdx]._text"
|
|
2225
|
-
[attr.title]="c._isTruncate ? i._values[cIdx].text : null"
|
|
2226
|
-
></span>
|
|
2227
|
-
</ng-container>
|
|
2228
|
-
</ng-container>
|
|
2229
|
-
<ng-container *ngFor="let btn of i._values[cIdx].buttons; let last = last">
|
|
2230
|
-
<a *ngIf="btn.children!.length > 0" nz-dropdown [nzDropdownMenu]="btnMenu" nzOverlayClassName="st__btn-sub">
|
|
2231
|
-
<span [innerHTML]="btn._text"></span>
|
|
2232
|
-
<i nz-icon nzType="down"></i>
|
|
2233
|
-
</a>
|
|
2234
|
-
<nz-dropdown-menu #btnMenu="nzDropdownMenu">
|
|
2235
|
-
<ul nz-menu>
|
|
2236
|
-
<ng-container *ngFor="let subBtn of btn.children!">
|
|
2237
|
-
<li *ngIf="subBtn.type !== 'divider'" nz-menu-item [class.st__btn-disabled]="subBtn._disabled">
|
|
2238
|
-
<ng-template [ngTemplateOutlet]="btnTpl" [ngTemplateOutletContext]="{ $implicit: subBtn }">
|
|
2239
|
-
</ng-template>
|
|
2240
|
-
</li>
|
|
2241
|
-
<li *ngIf="subBtn.type === 'divider'" nz-menu-divider></li>
|
|
2242
|
-
</ng-container>
|
|
2243
|
-
</ul>
|
|
2244
|
-
</nz-dropdown-menu>
|
|
2245
|
-
<span *ngIf="btn.children!.length === 0" [class.st__btn-disabled]="btn._disabled">
|
|
2246
|
-
<ng-template [ngTemplateOutlet]="btnTpl" [ngTemplateOutletContext]="{ $implicit: btn }"> </ng-template>
|
|
2247
|
-
</span>
|
|
2248
|
-
<nz-divider *ngIf="!last" nzType="vertical"></nz-divider>
|
|
2249
|
-
</ng-container>
|
|
2250
|
-
</ng-container>
|
|
2251
|
-
`,
|
|
2252
|
-
preserveWhitespaces: false,
|
|
2253
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2254
|
-
encapsulation: ViewEncapsulation.None
|
|
2255
|
-
},] }
|
|
2256
|
-
];
|
|
2257
|
-
STTdComponent.ctorParameters = () => [
|
|
2258
|
-
{ type: STComponent, decorators: [{ type: Host }] },
|
|
2259
|
-
{ type: Router },
|
|
2260
|
-
{ type: ModalHelper },
|
|
2261
|
-
{ type: DrawerHelper }
|
|
2262
|
-
];
|
|
2263
|
-
STTdComponent.propDecorators = {
|
|
2264
|
-
c: [{ type: Input }],
|
|
2265
|
-
cIdx: [{ type: Input }],
|
|
2266
|
-
data: [{ type: Input }],
|
|
2267
|
-
i: [{ type: Input }],
|
|
2268
|
-
index: [{ type: Input }],
|
|
2269
|
-
n: [{ type: Output }]
|
|
2270
|
-
};
|
|
2325
|
+
STTdComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: STTdComponent, deps: [{ token: STComponent, host: true }, { token: i17.Router }, { token: i1$1.ModalHelper }, { token: i1$1.DrawerHelper }], target: i0.ɵɵFactoryTarget.Component });
|
|
2326
|
+
STTdComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: STTdComponent, selector: "st-td", inputs: { c: "c", cIdx: "cIdx", data: "data", i: "i", index: "index" }, outputs: { n: "n" }, ngImport: i0, template: "<ng-template #btnTpl let-i>\n <ng-container *ngIf=\"!i.tooltip\">\n <ng-template [ngTemplateOutlet]=\"btnItemTpl\" [ngTemplateOutletContext]=\"{ $implicit: i }\"></ng-template>\n </ng-container>\n <span *ngIf=\"i.tooltip\" nz-tooltip [nzTooltipTitle]=\"i.tooltip\">\n <ng-template [ngTemplateOutlet]=\"btnItemTpl\" [ngTemplateOutletContext]=\"{ $implicit: i }\"></ng-template>\n </span>\n</ng-template>\n<ng-template #btnItemTpl let-i>\n <a\n *ngIf=\"i.pop\"\n nz-popconfirm\n [nzPopconfirmTitle]=\"i.pop.title\"\n [nzIcon]=\"i.pop.icon\"\n [nzCondition]=\"i.pop.condition(i)\"\n [nzCancelText]=\"i.pop.cancelText\"\n [nzOkText]=\"i.pop.okText\"\n [nzOkType]=\"i.pop.okType\"\n (nzOnConfirm)=\"_btn(i)\"\n class=\"st__btn-text\"\n [ngClass]=\"i.className\"\n (click)=\"_stopPropagation($event)\"\n >\n <ng-template [ngTemplateOutlet]=\"btnTextTpl\" [ngTemplateOutletContext]=\"{ $implicit: i }\"></ng-template>\n </a>\n <a *ngIf=\"!i.pop\" (click)=\"_btn(i, $event)\" class=\"st__btn-text\" [ngClass]=\"i.className\">\n <ng-template [ngTemplateOutlet]=\"btnTextTpl\" [ngTemplateOutletContext]=\"{ $implicit: i }\"></ng-template>\n </a>\n</ng-template>\n<ng-template #btnTextTpl let-i>\n <ng-container *ngIf=\"i.icon\">\n <i\n *ngIf=\"!i.icon.iconfont\"\n nz-icon\n [nzType]=\"i.icon.type\"\n [nzTheme]=\"i.icon.theme\"\n [nzSpin]=\"i.icon.spin\"\n [nzTwotoneColor]=\"i.icon.twoToneColor\"\n ></i>\n <i *ngIf=\"i.icon.iconfont\" nz-icon [nzIconfont]=\"i.icon.iconfont\"></i>\n </ng-container>\n <span [innerHTML]=\"i._text\" [ngClass]=\"{ 'pl-xs': i.icon }\"></span>\n</ng-template>\n<ng-template\n #render\n [ngTemplateOutlet]=\"c.__render!\"\n [ngTemplateOutletContext]=\"{ $implicit: i, index: index, column: c }\"\n></ng-template>\n<ng-container *ngIf=\"!c.__render; else render\">\n <ng-container [ngSwitch]=\"c.type\">\n <label\n *ngSwitchCase=\"'checkbox'\"\n nz-checkbox\n [nzDisabled]=\"i.disabled\"\n [ngModel]=\"i.checked\"\n (ngModelChange)=\"_checkbox($event)\"\n ></label>\n <label\n *ngSwitchCase=\"'radio'\"\n nz-radio\n [nzDisabled]=\"i.disabled\"\n [ngModel]=\"i.checked\"\n (ngModelChange)=\"_radio()\"\n ></label>\n <a\n *ngSwitchCase=\"'link'\"\n (click)=\"_link($event)\"\n [innerHTML]=\"i._values[cIdx]._text\"\n [attr.title]=\"i._values[cIdx].text\"\n ></a>\n <ng-container *ngIf=\"i._values[cIdx].text\">\n <nz-tag *ngSwitchCase=\"'tag'\" [nzColor]=\"i._values[cIdx].color\">\n <span [innerHTML]=\"i._values[cIdx]._text\"></span>\n </nz-tag>\n <nz-badge *ngSwitchCase=\"'badge'\" [nzStatus]=\"i._values[cIdx].color\" [nzText]=\"i._values[cIdx].text\"></nz-badge>\n </ng-container>\n <ng-template *ngSwitchCase=\"'widget'\" st-widget-host [record]=\"i\" [column]=\"c\"></ng-template\n ><ng-container *ngSwitchDefault>\n <span\n *ngIf=\"c.safeType !== 'text'\"\n [innerHTML]=\"i._values[cIdx]._text\"\n [attr.title]=\"c._isTruncate ? i._values[cIdx].text : null\"\n ></span>\n <span\n *ngIf=\"c.safeType === 'text'\"\n [innerText]=\"i._values[cIdx]._text\"\n [attr.title]=\"c._isTruncate ? i._values[cIdx].text : null\"\n ></span>\n </ng-container>\n </ng-container>\n <ng-container *ngFor=\"let btn of i._values[cIdx].buttons; let last = last\">\n <a *ngIf=\"btn.children!.length > 0\" nz-dropdown [nzDropdownMenu]=\"btnMenu\" nzOverlayClassName=\"st__btn-sub\">\n <span [innerHTML]=\"btn._text\"></span>\n <i nz-icon nzType=\"down\"></i>\n </a>\n <nz-dropdown-menu #btnMenu=\"nzDropdownMenu\">\n <ul nz-menu>\n <ng-container *ngFor=\"let subBtn of btn.children!\">\n <li *ngIf=\"subBtn.type !== 'divider'\" nz-menu-item [class.st__btn-disabled]=\"subBtn._disabled\">\n <ng-template [ngTemplateOutlet]=\"btnTpl\" [ngTemplateOutletContext]=\"{ $implicit: subBtn }\"> </ng-template>\n </li>\n <li *ngIf=\"subBtn.type === 'divider'\" nz-menu-divider></li>\n </ng-container>\n </ul>\n </nz-dropdown-menu>\n <span *ngIf=\"btn.children!.length === 0\" [class.st__btn-disabled]=\"btn._disabled\">\n <ng-template [ngTemplateOutlet]=\"btnTpl\" [ngTemplateOutletContext]=\"{ $implicit: btn }\"> </ng-template>\n </span>\n <nz-divider *ngIf=\"!last\" nzType=\"vertical\"></nz-divider>\n </ng-container>\n</ng-container>\n", components: [{ type: i7.NzCheckboxComponent, selector: "[nz-checkbox]", inputs: ["nzValue", "nzAutoFocus", "nzDisabled", "nzIndeterminate", "nzChecked", "nzId"], outputs: ["nzCheckedChange"], exportAs: ["nzCheckbox"] }, { type: i5.NzRadioComponent, selector: "[nz-radio],[nz-radio-button]", inputs: ["nzValue", "nzDisabled", "nzAutoFocus"], exportAs: ["nzRadio"] }, { type: i19.NzTagComponent, selector: "nz-tag", inputs: ["nzMode", "nzColor", "nzChecked"], outputs: ["nzOnClose", "nzCheckedChange"], exportAs: ["nzTag"] }, { type: i20.NzBadgeComponent, selector: "nz-badge", inputs: ["nzShowZero", "nzShowDot", "nzStandalone", "nzDot", "nzOverflowCount", "nzColor", "nzStyle", "nzText", "nzTitle", "nzStatus", "nzCount", "nzOffset"], exportAs: ["nzBadge"] }, { type: i6.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { type: i21.NzDividerComponent, selector: "nz-divider", inputs: ["nzText", "nzType", "nzOrientation", "nzDashed", "nzPlain"], exportAs: ["nzDivider"] }], directives: [{ type: i12.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i12.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i13.NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }, { type: i22.NzPopconfirmDirective, selector: "[nz-popconfirm]", inputs: ["nzPopconfirmArrowPointAtCenter", "nzPopconfirmTitle", "nz-popconfirm", "nzPopconfirmTrigger", "nzPopconfirmPlacement", "nzPopconfirmOrigin", "nzPopconfirmMouseEnterDelay", "nzPopconfirmMouseLeaveDelay", "nzPopconfirmOverlayClassName", "nzPopconfirmOverlayStyle", "nzPopconfirmVisible", "nzOkText", "nzOkType", "nzOkDanger", "nzCancelText", "nzIcon", "nzCondition", "nzPopconfirmShowArrow", "nzPopconfirmBackdrop", "nzAutofocus"], outputs: ["nzPopconfirmVisibleChange", "nzOnCancel", "nzOnConfirm"], exportAs: ["nzPopconfirm"] }, { type: i12.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i14.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { type: i12.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i12.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i15.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i15.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: STWidgetHostDirective, selector: "[st-widget-host]", inputs: ["record", "column"] }, { type: i12.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { type: i12.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6.NzDropDownADirective, selector: "a[nz-dropdown]" }, { type: i6.NzDropDownDirective, selector: "[nz-dropdown]", inputs: ["nzDropdownMenu", "nzTrigger", "nzMatchWidthElement", "nzBackdrop", "nzClickHide", "nzDisabled", "nzVisible", "nzOverlayClassName", "nzOverlayStyle", "nzPlacement"], outputs: ["nzVisibleChange"], exportAs: ["nzDropdown"] }, { type: i11.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { type: i11.NzMenuItemDirective, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { type: i11.NzMenuDividerDirective, selector: "[nz-menu-divider]", exportAs: ["nzMenuDivider"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2327
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: STTdComponent, decorators: [{
|
|
2328
|
+
type: Component,
|
|
2329
|
+
args: [{ selector: 'st-td', preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ng-template #btnTpl let-i>\n <ng-container *ngIf=\"!i.tooltip\">\n <ng-template [ngTemplateOutlet]=\"btnItemTpl\" [ngTemplateOutletContext]=\"{ $implicit: i }\"></ng-template>\n </ng-container>\n <span *ngIf=\"i.tooltip\" nz-tooltip [nzTooltipTitle]=\"i.tooltip\">\n <ng-template [ngTemplateOutlet]=\"btnItemTpl\" [ngTemplateOutletContext]=\"{ $implicit: i }\"></ng-template>\n </span>\n</ng-template>\n<ng-template #btnItemTpl let-i>\n <a\n *ngIf=\"i.pop\"\n nz-popconfirm\n [nzPopconfirmTitle]=\"i.pop.title\"\n [nzIcon]=\"i.pop.icon\"\n [nzCondition]=\"i.pop.condition(i)\"\n [nzCancelText]=\"i.pop.cancelText\"\n [nzOkText]=\"i.pop.okText\"\n [nzOkType]=\"i.pop.okType\"\n (nzOnConfirm)=\"_btn(i)\"\n class=\"st__btn-text\"\n [ngClass]=\"i.className\"\n (click)=\"_stopPropagation($event)\"\n >\n <ng-template [ngTemplateOutlet]=\"btnTextTpl\" [ngTemplateOutletContext]=\"{ $implicit: i }\"></ng-template>\n </a>\n <a *ngIf=\"!i.pop\" (click)=\"_btn(i, $event)\" class=\"st__btn-text\" [ngClass]=\"i.className\">\n <ng-template [ngTemplateOutlet]=\"btnTextTpl\" [ngTemplateOutletContext]=\"{ $implicit: i }\"></ng-template>\n </a>\n</ng-template>\n<ng-template #btnTextTpl let-i>\n <ng-container *ngIf=\"i.icon\">\n <i\n *ngIf=\"!i.icon.iconfont\"\n nz-icon\n [nzType]=\"i.icon.type\"\n [nzTheme]=\"i.icon.theme\"\n [nzSpin]=\"i.icon.spin\"\n [nzTwotoneColor]=\"i.icon.twoToneColor\"\n ></i>\n <i *ngIf=\"i.icon.iconfont\" nz-icon [nzIconfont]=\"i.icon.iconfont\"></i>\n </ng-container>\n <span [innerHTML]=\"i._text\" [ngClass]=\"{ 'pl-xs': i.icon }\"></span>\n</ng-template>\n<ng-template\n #render\n [ngTemplateOutlet]=\"c.__render!\"\n [ngTemplateOutletContext]=\"{ $implicit: i, index: index, column: c }\"\n></ng-template>\n<ng-container *ngIf=\"!c.__render; else render\">\n <ng-container [ngSwitch]=\"c.type\">\n <label\n *ngSwitchCase=\"'checkbox'\"\n nz-checkbox\n [nzDisabled]=\"i.disabled\"\n [ngModel]=\"i.checked\"\n (ngModelChange)=\"_checkbox($event)\"\n ></label>\n <label\n *ngSwitchCase=\"'radio'\"\n nz-radio\n [nzDisabled]=\"i.disabled\"\n [ngModel]=\"i.checked\"\n (ngModelChange)=\"_radio()\"\n ></label>\n <a\n *ngSwitchCase=\"'link'\"\n (click)=\"_link($event)\"\n [innerHTML]=\"i._values[cIdx]._text\"\n [attr.title]=\"i._values[cIdx].text\"\n ></a>\n <ng-container *ngIf=\"i._values[cIdx].text\">\n <nz-tag *ngSwitchCase=\"'tag'\" [nzColor]=\"i._values[cIdx].color\">\n <span [innerHTML]=\"i._values[cIdx]._text\"></span>\n </nz-tag>\n <nz-badge *ngSwitchCase=\"'badge'\" [nzStatus]=\"i._values[cIdx].color\" [nzText]=\"i._values[cIdx].text\"></nz-badge>\n </ng-container>\n <ng-template *ngSwitchCase=\"'widget'\" st-widget-host [record]=\"i\" [column]=\"c\"></ng-template\n ><ng-container *ngSwitchDefault>\n <span\n *ngIf=\"c.safeType !== 'text'\"\n [innerHTML]=\"i._values[cIdx]._text\"\n [attr.title]=\"c._isTruncate ? i._values[cIdx].text : null\"\n ></span>\n <span\n *ngIf=\"c.safeType === 'text'\"\n [innerText]=\"i._values[cIdx]._text\"\n [attr.title]=\"c._isTruncate ? i._values[cIdx].text : null\"\n ></span>\n </ng-container>\n </ng-container>\n <ng-container *ngFor=\"let btn of i._values[cIdx].buttons; let last = last\">\n <a *ngIf=\"btn.children!.length > 0\" nz-dropdown [nzDropdownMenu]=\"btnMenu\" nzOverlayClassName=\"st__btn-sub\">\n <span [innerHTML]=\"btn._text\"></span>\n <i nz-icon nzType=\"down\"></i>\n </a>\n <nz-dropdown-menu #btnMenu=\"nzDropdownMenu\">\n <ul nz-menu>\n <ng-container *ngFor=\"let subBtn of btn.children!\">\n <li *ngIf=\"subBtn.type !== 'divider'\" nz-menu-item [class.st__btn-disabled]=\"subBtn._disabled\">\n <ng-template [ngTemplateOutlet]=\"btnTpl\" [ngTemplateOutletContext]=\"{ $implicit: subBtn }\"> </ng-template>\n </li>\n <li *ngIf=\"subBtn.type === 'divider'\" nz-menu-divider></li>\n </ng-container>\n </ul>\n </nz-dropdown-menu>\n <span *ngIf=\"btn.children!.length === 0\" [class.st__btn-disabled]=\"btn._disabled\">\n <ng-template [ngTemplateOutlet]=\"btnTpl\" [ngTemplateOutletContext]=\"{ $implicit: btn }\"> </ng-template>\n </span>\n <nz-divider *ngIf=\"!last\" nzType=\"vertical\"></nz-divider>\n </ng-container>\n</ng-container>\n" }]
|
|
2330
|
+
}], ctorParameters: function () {
|
|
2331
|
+
return [{ type: STComponent, decorators: [{
|
|
2332
|
+
type: Host
|
|
2333
|
+
}] }, { type: i17.Router }, { type: i1$1.ModalHelper }, { type: i1$1.DrawerHelper }];
|
|
2334
|
+
}, propDecorators: { c: [{
|
|
2335
|
+
type: Input
|
|
2336
|
+
}], cIdx: [{
|
|
2337
|
+
type: Input
|
|
2338
|
+
}], data: [{
|
|
2339
|
+
type: Input
|
|
2340
|
+
}], i: [{
|
|
2341
|
+
type: Input
|
|
2342
|
+
}], index: [{
|
|
2343
|
+
type: Input
|
|
2344
|
+
}], n: [{
|
|
2345
|
+
type: Output
|
|
2346
|
+
}] } });
|
|
2271
2347
|
|
|
2272
2348
|
const COMPONENTS = [STComponent, STRowDirective, STWidgetHostDirective];
|
|
2273
2349
|
class STModule {
|
|
2274
2350
|
}
|
|
2275
|
-
STModule
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2351
|
+
STModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: STModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2352
|
+
STModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: STModule, declarations: [STComponent, STRowDirective, STWidgetHostDirective, STFilterComponent, STTdComponent], imports: [CommonModule,
|
|
2353
|
+
FormsModule,
|
|
2354
|
+
DelonACLModule,
|
|
2355
|
+
LetModule,
|
|
2356
|
+
NzPopconfirmModule,
|
|
2357
|
+
NzTableModule,
|
|
2358
|
+
NzIconModule,
|
|
2359
|
+
NzBadgeModule,
|
|
2360
|
+
NzCheckboxModule,
|
|
2361
|
+
NzDividerModule,
|
|
2362
|
+
NzDropDownModule,
|
|
2363
|
+
NzMenuModule,
|
|
2364
|
+
NzRadioModule,
|
|
2365
|
+
NzTagModule,
|
|
2366
|
+
NzInputModule,
|
|
2367
|
+
NzToolTipModule,
|
|
2368
|
+
NzResizableModule,
|
|
2369
|
+
NzInputNumberModule,
|
|
2370
|
+
NzDatePickerModule], exports: [STComponent, STRowDirective, STWidgetHostDirective] });
|
|
2371
|
+
STModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: STModule, imports: [[
|
|
2372
|
+
CommonModule,
|
|
2373
|
+
FormsModule,
|
|
2374
|
+
DelonACLModule,
|
|
2375
|
+
LetModule,
|
|
2376
|
+
NzPopconfirmModule,
|
|
2377
|
+
NzTableModule,
|
|
2378
|
+
NzIconModule,
|
|
2379
|
+
NzBadgeModule,
|
|
2380
|
+
NzCheckboxModule,
|
|
2381
|
+
NzDividerModule,
|
|
2382
|
+
NzDropDownModule,
|
|
2383
|
+
NzMenuModule,
|
|
2384
|
+
NzRadioModule,
|
|
2385
|
+
NzTagModule,
|
|
2386
|
+
NzInputModule,
|
|
2387
|
+
NzToolTipModule,
|
|
2388
|
+
NzResizableModule,
|
|
2389
|
+
NzInputNumberModule,
|
|
2390
|
+
NzDatePickerModule
|
|
2391
|
+
]] });
|
|
2392
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: STModule, decorators: [{
|
|
2393
|
+
type: NgModule,
|
|
2394
|
+
args: [{
|
|
2395
|
+
imports: [
|
|
2396
|
+
CommonModule,
|
|
2397
|
+
FormsModule,
|
|
2398
|
+
DelonACLModule,
|
|
2399
|
+
LetModule,
|
|
2400
|
+
NzPopconfirmModule,
|
|
2401
|
+
NzTableModule,
|
|
2402
|
+
NzIconModule,
|
|
2403
|
+
NzBadgeModule,
|
|
2404
|
+
NzCheckboxModule,
|
|
2405
|
+
NzDividerModule,
|
|
2406
|
+
NzDropDownModule,
|
|
2407
|
+
NzMenuModule,
|
|
2408
|
+
NzRadioModule,
|
|
2409
|
+
NzTagModule,
|
|
2410
|
+
NzInputModule,
|
|
2411
|
+
NzToolTipModule,
|
|
2412
|
+
NzResizableModule,
|
|
2413
|
+
NzInputNumberModule,
|
|
2414
|
+
NzDatePickerModule
|
|
2415
|
+
],
|
|
2416
|
+
declarations: [...COMPONENTS, STFilterComponent, STTdComponent],
|
|
2417
|
+
exports: COMPONENTS
|
|
2418
|
+
}]
|
|
2419
|
+
}] });
|
|
2302
2420
|
|
|
2303
2421
|
/**
|
|
2304
2422
|
* Generated bundle index. Do not edit.
|
|
2305
2423
|
*/
|
|
2306
2424
|
|
|
2307
|
-
export { STColumnSource, STComponent, STDataSource, STExport, STModule, STRowDirective, STWidgetHostDirective, STWidgetRegistry, ST_DEFAULT_CONFIG
|
|
2308
|
-
//# sourceMappingURL=
|
|
2425
|
+
export { STColumnSource, STComponent, STDataSource, STExport, STModule, STRowDirective, STWidgetHostDirective, STWidgetRegistry, ST_DEFAULT_CONFIG };
|
|
2426
|
+
//# sourceMappingURL=st.mjs.map
|