@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
package/bundles/pdf.umd.js
DELETED
|
@@ -1,863 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license ng-alain(cipchk@qq.com) v12.4.1
|
|
3
|
-
* (c) 2020 cipchk https://ng-alain.com/
|
|
4
|
-
* License: MIT
|
|
5
|
-
*/
|
|
6
|
-
(function (global, factory) {
|
|
7
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/cdk/platform'), require('@angular/common'), require('@angular/core'), require('rxjs'), require('rxjs/operators'), require('@delon/util/config'), require('@delon/util/decorator'), require('@delon/util/other'), require('ng-zorro-antd/skeleton')) :
|
|
8
|
-
typeof define === 'function' && define.amd ? define('@delon/abc/pdf', ['exports', '@angular/cdk/platform', '@angular/common', '@angular/core', 'rxjs', 'rxjs/operators', '@delon/util/config', '@delon/util/decorator', '@delon/util/other', 'ng-zorro-antd/skeleton'], factory) :
|
|
9
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.delon = global.delon || {}, global.delon.abc = global.delon.abc || {}, global.delon.abc.pdf = {}), global.ng.cdk.platform, global.ng.common, global.ng.core, global.rxjs, global.rxjs.operators, global.config, global.decorator, global.other, global["ng-zorro-antd/skeleton"]));
|
|
10
|
-
})(this, (function (exports, platform, common, core, rxjs, operators, config, decorator, other, skeleton) { 'use strict';
|
|
11
|
-
|
|
12
|
-
/*! *****************************************************************************
|
|
13
|
-
Copyright (c) Microsoft Corporation.
|
|
14
|
-
|
|
15
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
16
|
-
purpose with or without fee is hereby granted.
|
|
17
|
-
|
|
18
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
19
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
20
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
21
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
22
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
23
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
24
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
25
|
-
***************************************************************************** */
|
|
26
|
-
/* global Reflect, Promise */
|
|
27
|
-
var extendStatics = function (d, b) {
|
|
28
|
-
extendStatics = Object.setPrototypeOf ||
|
|
29
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
30
|
-
function (d, b) { for (var p in b)
|
|
31
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
32
|
-
d[p] = b[p]; };
|
|
33
|
-
return extendStatics(d, b);
|
|
34
|
-
};
|
|
35
|
-
function __extends(d, b) {
|
|
36
|
-
if (typeof b !== "function" && b !== null)
|
|
37
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
38
|
-
extendStatics(d, b);
|
|
39
|
-
function __() { this.constructor = d; }
|
|
40
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
41
|
-
}
|
|
42
|
-
var __assign = function () {
|
|
43
|
-
__assign = Object.assign || function __assign(t) {
|
|
44
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
45
|
-
s = arguments[i];
|
|
46
|
-
for (var p in s)
|
|
47
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
48
|
-
t[p] = s[p];
|
|
49
|
-
}
|
|
50
|
-
return t;
|
|
51
|
-
};
|
|
52
|
-
return __assign.apply(this, arguments);
|
|
53
|
-
};
|
|
54
|
-
function __rest(s, e) {
|
|
55
|
-
var t = {};
|
|
56
|
-
for (var p in s)
|
|
57
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
58
|
-
t[p] = s[p];
|
|
59
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
60
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
61
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
62
|
-
t[p[i]] = s[p[i]];
|
|
63
|
-
}
|
|
64
|
-
return t;
|
|
65
|
-
}
|
|
66
|
-
function __decorate(decorators, target, key, desc) {
|
|
67
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
68
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
69
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
70
|
-
else
|
|
71
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
72
|
-
if (d = decorators[i])
|
|
73
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
74
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
75
|
-
}
|
|
76
|
-
function __param(paramIndex, decorator) {
|
|
77
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
|
78
|
-
}
|
|
79
|
-
function __metadata(metadataKey, metadataValue) {
|
|
80
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
81
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
82
|
-
}
|
|
83
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
84
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
85
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
86
|
-
function fulfilled(value) { try {
|
|
87
|
-
step(generator.next(value));
|
|
88
|
-
}
|
|
89
|
-
catch (e) {
|
|
90
|
-
reject(e);
|
|
91
|
-
} }
|
|
92
|
-
function rejected(value) { try {
|
|
93
|
-
step(generator["throw"](value));
|
|
94
|
-
}
|
|
95
|
-
catch (e) {
|
|
96
|
-
reject(e);
|
|
97
|
-
} }
|
|
98
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
99
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
function __generator(thisArg, body) {
|
|
103
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
104
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
105
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
106
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
107
|
-
function step(op) {
|
|
108
|
-
if (f)
|
|
109
|
-
throw new TypeError("Generator is already executing.");
|
|
110
|
-
while (_)
|
|
111
|
-
try {
|
|
112
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
113
|
-
return t;
|
|
114
|
-
if (y = 0, t)
|
|
115
|
-
op = [op[0] & 2, t.value];
|
|
116
|
-
switch (op[0]) {
|
|
117
|
-
case 0:
|
|
118
|
-
case 1:
|
|
119
|
-
t = op;
|
|
120
|
-
break;
|
|
121
|
-
case 4:
|
|
122
|
-
_.label++;
|
|
123
|
-
return { value: op[1], done: false };
|
|
124
|
-
case 5:
|
|
125
|
-
_.label++;
|
|
126
|
-
y = op[1];
|
|
127
|
-
op = [0];
|
|
128
|
-
continue;
|
|
129
|
-
case 7:
|
|
130
|
-
op = _.ops.pop();
|
|
131
|
-
_.trys.pop();
|
|
132
|
-
continue;
|
|
133
|
-
default:
|
|
134
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
135
|
-
_ = 0;
|
|
136
|
-
continue;
|
|
137
|
-
}
|
|
138
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
139
|
-
_.label = op[1];
|
|
140
|
-
break;
|
|
141
|
-
}
|
|
142
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
143
|
-
_.label = t[1];
|
|
144
|
-
t = op;
|
|
145
|
-
break;
|
|
146
|
-
}
|
|
147
|
-
if (t && _.label < t[2]) {
|
|
148
|
-
_.label = t[2];
|
|
149
|
-
_.ops.push(op);
|
|
150
|
-
break;
|
|
151
|
-
}
|
|
152
|
-
if (t[2])
|
|
153
|
-
_.ops.pop();
|
|
154
|
-
_.trys.pop();
|
|
155
|
-
continue;
|
|
156
|
-
}
|
|
157
|
-
op = body.call(thisArg, _);
|
|
158
|
-
}
|
|
159
|
-
catch (e) {
|
|
160
|
-
op = [6, e];
|
|
161
|
-
y = 0;
|
|
162
|
-
}
|
|
163
|
-
finally {
|
|
164
|
-
f = t = 0;
|
|
165
|
-
}
|
|
166
|
-
if (op[0] & 5)
|
|
167
|
-
throw op[1];
|
|
168
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
172
|
-
if (k2 === undefined)
|
|
173
|
-
k2 = k;
|
|
174
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
175
|
-
}) : (function (o, m, k, k2) {
|
|
176
|
-
if (k2 === undefined)
|
|
177
|
-
k2 = k;
|
|
178
|
-
o[k2] = m[k];
|
|
179
|
-
});
|
|
180
|
-
function __exportStar(m, o) {
|
|
181
|
-
for (var p in m)
|
|
182
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
183
|
-
__createBinding(o, m, p);
|
|
184
|
-
}
|
|
185
|
-
function __values(o) {
|
|
186
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
187
|
-
if (m)
|
|
188
|
-
return m.call(o);
|
|
189
|
-
if (o && typeof o.length === "number")
|
|
190
|
-
return {
|
|
191
|
-
next: function () {
|
|
192
|
-
if (o && i >= o.length)
|
|
193
|
-
o = void 0;
|
|
194
|
-
return { value: o && o[i++], done: !o };
|
|
195
|
-
}
|
|
196
|
-
};
|
|
197
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
198
|
-
}
|
|
199
|
-
function __read(o, n) {
|
|
200
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
201
|
-
if (!m)
|
|
202
|
-
return o;
|
|
203
|
-
var i = m.call(o), r, ar = [], e;
|
|
204
|
-
try {
|
|
205
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
206
|
-
ar.push(r.value);
|
|
207
|
-
}
|
|
208
|
-
catch (error) {
|
|
209
|
-
e = { error: error };
|
|
210
|
-
}
|
|
211
|
-
finally {
|
|
212
|
-
try {
|
|
213
|
-
if (r && !r.done && (m = i["return"]))
|
|
214
|
-
m.call(i);
|
|
215
|
-
}
|
|
216
|
-
finally {
|
|
217
|
-
if (e)
|
|
218
|
-
throw e.error;
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
return ar;
|
|
222
|
-
}
|
|
223
|
-
/** @deprecated */
|
|
224
|
-
function __spread() {
|
|
225
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
226
|
-
ar = ar.concat(__read(arguments[i]));
|
|
227
|
-
return ar;
|
|
228
|
-
}
|
|
229
|
-
/** @deprecated */
|
|
230
|
-
function __spreadArrays() {
|
|
231
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
232
|
-
s += arguments[i].length;
|
|
233
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
234
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
235
|
-
r[k] = a[j];
|
|
236
|
-
return r;
|
|
237
|
-
}
|
|
238
|
-
function __spreadArray(to, from, pack) {
|
|
239
|
-
if (pack || arguments.length === 2)
|
|
240
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
241
|
-
if (ar || !(i in from)) {
|
|
242
|
-
if (!ar)
|
|
243
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
|
244
|
-
ar[i] = from[i];
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
248
|
-
}
|
|
249
|
-
function __await(v) {
|
|
250
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
251
|
-
}
|
|
252
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
253
|
-
if (!Symbol.asyncIterator)
|
|
254
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
255
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
256
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
257
|
-
function verb(n) { if (g[n])
|
|
258
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
259
|
-
function resume(n, v) { try {
|
|
260
|
-
step(g[n](v));
|
|
261
|
-
}
|
|
262
|
-
catch (e) {
|
|
263
|
-
settle(q[0][3], e);
|
|
264
|
-
} }
|
|
265
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
266
|
-
function fulfill(value) { resume("next", value); }
|
|
267
|
-
function reject(value) { resume("throw", value); }
|
|
268
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
269
|
-
resume(q[0][0], q[0][1]); }
|
|
270
|
-
}
|
|
271
|
-
function __asyncDelegator(o) {
|
|
272
|
-
var i, p;
|
|
273
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
274
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
275
|
-
}
|
|
276
|
-
function __asyncValues(o) {
|
|
277
|
-
if (!Symbol.asyncIterator)
|
|
278
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
279
|
-
var m = o[Symbol.asyncIterator], i;
|
|
280
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
281
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
282
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
283
|
-
}
|
|
284
|
-
function __makeTemplateObject(cooked, raw) {
|
|
285
|
-
if (Object.defineProperty) {
|
|
286
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
287
|
-
}
|
|
288
|
-
else {
|
|
289
|
-
cooked.raw = raw;
|
|
290
|
-
}
|
|
291
|
-
return cooked;
|
|
292
|
-
}
|
|
293
|
-
;
|
|
294
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
295
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
296
|
-
}) : function (o, v) {
|
|
297
|
-
o["default"] = v;
|
|
298
|
-
};
|
|
299
|
-
function __importStar(mod) {
|
|
300
|
-
if (mod && mod.__esModule)
|
|
301
|
-
return mod;
|
|
302
|
-
var result = {};
|
|
303
|
-
if (mod != null)
|
|
304
|
-
for (var k in mod)
|
|
305
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
306
|
-
__createBinding(result, mod, k);
|
|
307
|
-
__setModuleDefault(result, mod);
|
|
308
|
-
return result;
|
|
309
|
-
}
|
|
310
|
-
function __importDefault(mod) {
|
|
311
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
312
|
-
}
|
|
313
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
314
|
-
if (kind === "a" && !f)
|
|
315
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
316
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
317
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
318
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
319
|
-
}
|
|
320
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
321
|
-
if (kind === "m")
|
|
322
|
-
throw new TypeError("Private method is not writable");
|
|
323
|
-
if (kind === "a" && !f)
|
|
324
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
325
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
326
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
327
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
var PDF_DEFULAT_CONFIG = {
|
|
331
|
-
lib: "https://cdn.jsdelivr.net/npm/pdfjs-dist@2.5.207/",
|
|
332
|
-
showAll: true,
|
|
333
|
-
renderText: true,
|
|
334
|
-
showBorders: false,
|
|
335
|
-
originalSize: true,
|
|
336
|
-
fitToPage: false,
|
|
337
|
-
autoReSize: true
|
|
338
|
-
};
|
|
339
|
-
|
|
340
|
-
exports.PdfTextLayerMode = void 0;
|
|
341
|
-
(function (PdfTextLayerMode) {
|
|
342
|
-
PdfTextLayerMode[PdfTextLayerMode["DISABLE"] = 0] = "DISABLE";
|
|
343
|
-
PdfTextLayerMode[PdfTextLayerMode["ENABLE"] = 1] = "ENABLE";
|
|
344
|
-
PdfTextLayerMode[PdfTextLayerMode["ENABLE_ENHANCE"] = 2] = "ENABLE_ENHANCE";
|
|
345
|
-
})(exports.PdfTextLayerMode || (exports.PdfTextLayerMode = {}));
|
|
346
|
-
exports.PdfExternalLinkTarget = void 0;
|
|
347
|
-
(function (PdfExternalLinkTarget) {
|
|
348
|
-
PdfExternalLinkTarget[PdfExternalLinkTarget["NONE"] = 0] = "NONE";
|
|
349
|
-
PdfExternalLinkTarget[PdfExternalLinkTarget["SELF"] = 1] = "SELF";
|
|
350
|
-
PdfExternalLinkTarget[PdfExternalLinkTarget["BLANK"] = 2] = "BLANK";
|
|
351
|
-
PdfExternalLinkTarget[PdfExternalLinkTarget["PARENT"] = 3] = "PARENT";
|
|
352
|
-
PdfExternalLinkTarget[PdfExternalLinkTarget["TOP"] = 4] = "TOP";
|
|
353
|
-
})(exports.PdfExternalLinkTarget || (exports.PdfExternalLinkTarget = {}));
|
|
354
|
-
|
|
355
|
-
var CSS_UNITS = 96.0 / 72.0;
|
|
356
|
-
var BORDER_WIDTH = 9;
|
|
357
|
-
var PdfComponent = /** @class */ (function () {
|
|
358
|
-
function PdfComponent(ngZone, configSrv, lazySrv, platform, _el, doc, cdr) {
|
|
359
|
-
this.ngZone = ngZone;
|
|
360
|
-
this.lazySrv = lazySrv;
|
|
361
|
-
this.platform = platform;
|
|
362
|
-
this._el = _el;
|
|
363
|
-
this.doc = doc;
|
|
364
|
-
this.cdr = cdr;
|
|
365
|
-
this.inited = false;
|
|
366
|
-
this.unsubscribe$ = new rxjs.Subject();
|
|
367
|
-
this.lib = '';
|
|
368
|
-
this._pi = 1;
|
|
369
|
-
this._total = 0;
|
|
370
|
-
this._showAll = true;
|
|
371
|
-
this._rotation = 0;
|
|
372
|
-
this._zoom = 1;
|
|
373
|
-
this._renderText = true;
|
|
374
|
-
this._loading = false;
|
|
375
|
-
this.textLayerMode = exports.PdfTextLayerMode.ENABLE;
|
|
376
|
-
this.showBorders = false;
|
|
377
|
-
this.stickToPage = false;
|
|
378
|
-
this.originalSize = true;
|
|
379
|
-
this.fitToPage = false;
|
|
380
|
-
this.zoomScale = 'page-width';
|
|
381
|
-
this.autoReSize = true;
|
|
382
|
-
this.externalLinkTarget = exports.PdfExternalLinkTarget.BLANK;
|
|
383
|
-
this.change = new core.EventEmitter();
|
|
384
|
-
var cog = configSrv.merge('pdf', PDF_DEFULAT_CONFIG);
|
|
385
|
-
Object.assign(this, cog);
|
|
386
|
-
var lib = cog.lib;
|
|
387
|
-
this.lib = lib.endsWith('/') ? lib : lib + "/";
|
|
388
|
-
}
|
|
389
|
-
Object.defineProperty(PdfComponent.prototype, "src", {
|
|
390
|
-
set: function (dataOrBuffer) {
|
|
391
|
-
this._src = dataOrBuffer;
|
|
392
|
-
this.load();
|
|
393
|
-
},
|
|
394
|
-
enumerable: false,
|
|
395
|
-
configurable: true
|
|
396
|
-
});
|
|
397
|
-
Object.defineProperty(PdfComponent.prototype, "pi", {
|
|
398
|
-
set: function (val) {
|
|
399
|
-
this._pi = this.getValidPi(val);
|
|
400
|
-
if (this._pdf) {
|
|
401
|
-
this.pageViewer.scrollPageIntoView({ pageNumber: this._pi });
|
|
402
|
-
}
|
|
403
|
-
},
|
|
404
|
-
enumerable: false,
|
|
405
|
-
configurable: true
|
|
406
|
-
});
|
|
407
|
-
Object.defineProperty(PdfComponent.prototype, "showAll", {
|
|
408
|
-
set: function (val) {
|
|
409
|
-
this._showAll = val;
|
|
410
|
-
this.resetDoc();
|
|
411
|
-
},
|
|
412
|
-
enumerable: false,
|
|
413
|
-
configurable: true
|
|
414
|
-
});
|
|
415
|
-
Object.defineProperty(PdfComponent.prototype, "renderText", {
|
|
416
|
-
set: function (val) {
|
|
417
|
-
this._renderText = val;
|
|
418
|
-
if (this._pdf) {
|
|
419
|
-
this.pageViewer.textLayerMode = this._textLayerMode;
|
|
420
|
-
this.resetDoc();
|
|
421
|
-
}
|
|
422
|
-
},
|
|
423
|
-
enumerable: false,
|
|
424
|
-
configurable: true
|
|
425
|
-
});
|
|
426
|
-
Object.defineProperty(PdfComponent.prototype, "zoom", {
|
|
427
|
-
set: function (val) {
|
|
428
|
-
if (val <= 0)
|
|
429
|
-
return;
|
|
430
|
-
this._zoom = val;
|
|
431
|
-
},
|
|
432
|
-
enumerable: false,
|
|
433
|
-
configurable: true
|
|
434
|
-
});
|
|
435
|
-
Object.defineProperty(PdfComponent.prototype, "rotation", {
|
|
436
|
-
set: function (val) {
|
|
437
|
-
if (val % 90 !== 0) {
|
|
438
|
-
console.warn("Invalid rotation angle, shoule be divisible by 90.");
|
|
439
|
-
return;
|
|
440
|
-
}
|
|
441
|
-
this._rotation = val;
|
|
442
|
-
},
|
|
443
|
-
enumerable: false,
|
|
444
|
-
configurable: true
|
|
445
|
-
});
|
|
446
|
-
Object.defineProperty(PdfComponent.prototype, "loading", {
|
|
447
|
-
get: function () {
|
|
448
|
-
return this._loading;
|
|
449
|
-
},
|
|
450
|
-
enumerable: false,
|
|
451
|
-
configurable: true
|
|
452
|
-
});
|
|
453
|
-
Object.defineProperty(PdfComponent.prototype, "pdf", {
|
|
454
|
-
get: function () {
|
|
455
|
-
return this._pdf;
|
|
456
|
-
},
|
|
457
|
-
enumerable: false,
|
|
458
|
-
configurable: true
|
|
459
|
-
});
|
|
460
|
-
Object.defineProperty(PdfComponent.prototype, "findController", {
|
|
461
|
-
get: function () {
|
|
462
|
-
return this._showAll ? this.multiPageFindController : this.singlePageFindController;
|
|
463
|
-
},
|
|
464
|
-
enumerable: false,
|
|
465
|
-
configurable: true
|
|
466
|
-
});
|
|
467
|
-
Object.defineProperty(PdfComponent.prototype, "pageViewer", {
|
|
468
|
-
get: function () {
|
|
469
|
-
return this._showAll ? this.multiPageViewer : this.singlePageViewer;
|
|
470
|
-
},
|
|
471
|
-
enumerable: false,
|
|
472
|
-
configurable: true
|
|
473
|
-
});
|
|
474
|
-
Object.defineProperty(PdfComponent.prototype, "linkService", {
|
|
475
|
-
get: function () {
|
|
476
|
-
return this._showAll ? this.multiPageLinkService : this.singlePageLinkService;
|
|
477
|
-
},
|
|
478
|
-
enumerable: false,
|
|
479
|
-
configurable: true
|
|
480
|
-
});
|
|
481
|
-
Object.defineProperty(PdfComponent.prototype, "_textLayerMode", {
|
|
482
|
-
get: function () {
|
|
483
|
-
return this._renderText ? this.textLayerMode : exports.PdfTextLayerMode.DISABLE;
|
|
484
|
-
},
|
|
485
|
-
enumerable: false,
|
|
486
|
-
configurable: true
|
|
487
|
-
});
|
|
488
|
-
Object.defineProperty(PdfComponent.prototype, "win", {
|
|
489
|
-
get: function () {
|
|
490
|
-
return this.doc.defaultView || window;
|
|
491
|
-
},
|
|
492
|
-
enumerable: false,
|
|
493
|
-
configurable: true
|
|
494
|
-
});
|
|
495
|
-
Object.defineProperty(PdfComponent.prototype, "el", {
|
|
496
|
-
get: function () {
|
|
497
|
-
return this._el.nativeElement.querySelector('.pdf-container');
|
|
498
|
-
},
|
|
499
|
-
enumerable: false,
|
|
500
|
-
configurable: true
|
|
501
|
-
});
|
|
502
|
-
PdfComponent.prototype.getValidPi = function (pi) {
|
|
503
|
-
if (pi < 1)
|
|
504
|
-
return 1;
|
|
505
|
-
var pdf = this._pdf;
|
|
506
|
-
return pdf && pi > pdf.numPages ? pdf.numPages : pi;
|
|
507
|
-
};
|
|
508
|
-
PdfComponent.prototype.emit = function (type, opt) {
|
|
509
|
-
var _this = this;
|
|
510
|
-
this.ngZone.run(function () { return _this.change.emit(Object.assign({ type: type, pdf: _this._pdf, pi: _this._pi, total: _this._total }, opt)); });
|
|
511
|
-
};
|
|
512
|
-
PdfComponent.prototype.initDelay = function () {
|
|
513
|
-
var _this = this;
|
|
514
|
-
this.inited = true;
|
|
515
|
-
this.cdr.detectChanges();
|
|
516
|
-
this.win.pdfjsLib.GlobalWorkerOptions.workerSrc = this.lib + "build/pdf.worker.min.js";
|
|
517
|
-
setTimeout(function () { return _this.load(); }, this.delay);
|
|
518
|
-
};
|
|
519
|
-
PdfComponent.prototype.setLoading = function (status) {
|
|
520
|
-
var _this = this;
|
|
521
|
-
this.ngZone.run(function () {
|
|
522
|
-
_this._loading = status;
|
|
523
|
-
_this.cdr.detectChanges();
|
|
524
|
-
});
|
|
525
|
-
};
|
|
526
|
-
PdfComponent.prototype.load = function () {
|
|
527
|
-
var _this = this;
|
|
528
|
-
var _src = this._src;
|
|
529
|
-
if (!this.inited || !_src) {
|
|
530
|
-
return;
|
|
531
|
-
}
|
|
532
|
-
if (this.lastSrc === _src) {
|
|
533
|
-
this.render();
|
|
534
|
-
return;
|
|
535
|
-
}
|
|
536
|
-
this.destroy();
|
|
537
|
-
this.ngZone.run(function () {
|
|
538
|
-
_this._loading = true;
|
|
539
|
-
_this.cdr.detectChanges();
|
|
540
|
-
});
|
|
541
|
-
this.setLoading(true);
|
|
542
|
-
var loadingTask = (this.loadingTask = this.win.pdfjsLib.getDocument(_src));
|
|
543
|
-
loadingTask.onProgress = function (progress) { return _this.emit('load-progress', { progress: progress }); };
|
|
544
|
-
loadingTask.promise
|
|
545
|
-
.then(function (pdf) {
|
|
546
|
-
_this._pdf = pdf;
|
|
547
|
-
_this.lastSrc = _src;
|
|
548
|
-
_this._total = pdf.numPages;
|
|
549
|
-
_this.emit('loaded');
|
|
550
|
-
if (!_this.pageViewer) {
|
|
551
|
-
_this.setupPageViewer();
|
|
552
|
-
}
|
|
553
|
-
_this.resetDoc();
|
|
554
|
-
_this.render();
|
|
555
|
-
}, function (error) { return _this.emit('error', { error: error }); })
|
|
556
|
-
.then(function () { return _this.setLoading(false); });
|
|
557
|
-
};
|
|
558
|
-
PdfComponent.prototype.resetDoc = function () {
|
|
559
|
-
var pdf = this._pdf;
|
|
560
|
-
if (!pdf) {
|
|
561
|
-
return;
|
|
562
|
-
}
|
|
563
|
-
this.cleanDoc();
|
|
564
|
-
this.findController.setDocument(pdf);
|
|
565
|
-
this.pageViewer.setDocument(pdf);
|
|
566
|
-
this.linkService.setDocument(pdf, null);
|
|
567
|
-
};
|
|
568
|
-
PdfComponent.prototype.cleanDoc = function () {
|
|
569
|
-
this.multiPageViewer.setDocument(null);
|
|
570
|
-
this.singlePageViewer.setDocument(null);
|
|
571
|
-
this.multiPageLinkService.setDocument(null, null);
|
|
572
|
-
this.singlePageLinkService.setDocument(null, null);
|
|
573
|
-
this.multiPageFindController.setDocument(null);
|
|
574
|
-
this.singlePageFindController.setDocument(null);
|
|
575
|
-
};
|
|
576
|
-
PdfComponent.prototype.render = function () {
|
|
577
|
-
var _this = this;
|
|
578
|
-
var currentViewer = this.pageViewer;
|
|
579
|
-
if (!currentViewer) {
|
|
580
|
-
return;
|
|
581
|
-
}
|
|
582
|
-
if (this._rotation !== 0 || currentViewer.pagesRotation !== this._rotation) {
|
|
583
|
-
setTimeout(function () {
|
|
584
|
-
currentViewer.pagesRotation = _this._rotation;
|
|
585
|
-
});
|
|
586
|
-
}
|
|
587
|
-
if (this.stickToPage) {
|
|
588
|
-
setTimeout(function () {
|
|
589
|
-
currentViewer.currentPageNumber = _this._pi;
|
|
590
|
-
});
|
|
591
|
-
}
|
|
592
|
-
this.updateSize();
|
|
593
|
-
};
|
|
594
|
-
PdfComponent.prototype.updateSize = function () {
|
|
595
|
-
var _this = this;
|
|
596
|
-
var currentViewer = this.pageViewer;
|
|
597
|
-
this._pdf.getPage(currentViewer.currentPageNumber).then(function (page) {
|
|
598
|
-
var _a = _this, _rotation = _a._rotation, _zoom = _a._zoom;
|
|
599
|
-
var rotation = _rotation || page.rotate;
|
|
600
|
-
var viewportWidth = page.getViewport({
|
|
601
|
-
scale: _zoom,
|
|
602
|
-
rotation: rotation
|
|
603
|
-
}).width * CSS_UNITS;
|
|
604
|
-
var scale = _zoom;
|
|
605
|
-
var stickToPage = true;
|
|
606
|
-
// Scale the document when it shouldn't be in original size or doesn't fit into the viewport
|
|
607
|
-
if (!_this.originalSize || (_this.fitToPage && viewportWidth > _this.el.clientWidth)) {
|
|
608
|
-
var viewPort = page.getViewport({ scale: 1, rotation: rotation });
|
|
609
|
-
scale = _this.getScale(viewPort.width, viewPort.height);
|
|
610
|
-
stickToPage = !_this.stickToPage;
|
|
611
|
-
}
|
|
612
|
-
currentViewer._setScale(scale, stickToPage);
|
|
613
|
-
});
|
|
614
|
-
};
|
|
615
|
-
PdfComponent.prototype.getScale = function (viewportWidth, viewportHeight) {
|
|
616
|
-
var borderSize = this.showBorders ? 2 * BORDER_WIDTH : 0;
|
|
617
|
-
var el = this.el;
|
|
618
|
-
var containerWidth = el.clientWidth - borderSize;
|
|
619
|
-
var containerHeight = el.clientHeight - borderSize;
|
|
620
|
-
if (containerHeight === 0 || viewportHeight === 0 || containerWidth === 0 || viewportWidth === 0) {
|
|
621
|
-
return 1;
|
|
622
|
-
}
|
|
623
|
-
var ratio = 1;
|
|
624
|
-
switch (this.zoomScale) {
|
|
625
|
-
case 'page-fit':
|
|
626
|
-
ratio = Math.min(containerHeight / viewportHeight, containerWidth / viewportWidth);
|
|
627
|
-
break;
|
|
628
|
-
case 'page-height':
|
|
629
|
-
ratio = containerHeight / viewportHeight;
|
|
630
|
-
break;
|
|
631
|
-
case 'page-width':
|
|
632
|
-
default:
|
|
633
|
-
ratio = containerWidth / viewportWidth;
|
|
634
|
-
break;
|
|
635
|
-
}
|
|
636
|
-
return (this._zoom * ratio) / CSS_UNITS;
|
|
637
|
-
};
|
|
638
|
-
PdfComponent.prototype.destroy = function () {
|
|
639
|
-
var loadingTask = this.loadingTask;
|
|
640
|
-
if (loadingTask && !loadingTask.destroyed) {
|
|
641
|
-
loadingTask.destroy();
|
|
642
|
-
}
|
|
643
|
-
if (this._pdf) {
|
|
644
|
-
this._pdf.destroy();
|
|
645
|
-
this._pdf = null;
|
|
646
|
-
this.cleanDoc();
|
|
647
|
-
}
|
|
648
|
-
};
|
|
649
|
-
PdfComponent.prototype.setupPageViewer = function () {
|
|
650
|
-
this.win.pdfjsLib.disableTextLayer = !this._renderText;
|
|
651
|
-
this.win.pdfjsLib.externalLinkTarget = this.externalLinkTarget;
|
|
652
|
-
this.setupMultiPageViewer();
|
|
653
|
-
this.setupSinglePageViewer();
|
|
654
|
-
};
|
|
655
|
-
PdfComponent.prototype.createEventBus = function () {
|
|
656
|
-
var _this = this;
|
|
657
|
-
var eventBus = new this.win.pdfjsViewer.EventBus();
|
|
658
|
-
eventBus.on("pagesinit", function (ev) {
|
|
659
|
-
_this.emit('pages-init', { ev: ev });
|
|
660
|
-
});
|
|
661
|
-
eventBus.on("pagerendered", function (ev) {
|
|
662
|
-
_this.emit('page-rendered', { ev: ev });
|
|
663
|
-
});
|
|
664
|
-
eventBus.on("pagechanging", function (ev) {
|
|
665
|
-
var nowPi = ev.pageNumber;
|
|
666
|
-
if (nowPi !== _this._pi) {
|
|
667
|
-
_this._pi = nowPi;
|
|
668
|
-
_this.emit('pi', { ev: ev });
|
|
669
|
-
}
|
|
670
|
-
});
|
|
671
|
-
eventBus.on("textlayerrendered", function (ev) {
|
|
672
|
-
_this.emit('text-layer-rendered', { ev: ev });
|
|
673
|
-
});
|
|
674
|
-
return eventBus;
|
|
675
|
-
};
|
|
676
|
-
PdfComponent.prototype.setupMultiPageViewer = function () {
|
|
677
|
-
var VIEWER = this.win.pdfjsViewer;
|
|
678
|
-
var eventBus = this.createEventBus();
|
|
679
|
-
var linkService = (this.multiPageLinkService = new VIEWER.PDFLinkService({
|
|
680
|
-
eventBus: eventBus
|
|
681
|
-
}));
|
|
682
|
-
var findController = (this.multiPageFindController = new VIEWER.PDFFindController({
|
|
683
|
-
eventBus: eventBus,
|
|
684
|
-
linkService: linkService
|
|
685
|
-
}));
|
|
686
|
-
var viewer = (this.multiPageViewer = new VIEWER.PDFViewer({
|
|
687
|
-
eventBus: eventBus,
|
|
688
|
-
container: this.el,
|
|
689
|
-
removePageBorders: !this.showBorders,
|
|
690
|
-
textLayerMode: this._textLayerMode,
|
|
691
|
-
linkService: linkService,
|
|
692
|
-
findController: findController
|
|
693
|
-
}));
|
|
694
|
-
linkService.setViewer(viewer);
|
|
695
|
-
};
|
|
696
|
-
PdfComponent.prototype.setupSinglePageViewer = function () {
|
|
697
|
-
var VIEWER = this.win.pdfjsViewer;
|
|
698
|
-
var eventBus = this.createEventBus();
|
|
699
|
-
var linkService = (this.singlePageLinkService = new VIEWER.PDFLinkService({
|
|
700
|
-
eventBus: eventBus
|
|
701
|
-
}));
|
|
702
|
-
var findController = (this.singlePageFindController = new VIEWER.PDFFindController({
|
|
703
|
-
eventBus: eventBus,
|
|
704
|
-
linkService: linkService
|
|
705
|
-
}));
|
|
706
|
-
var pageViewer = (this.singlePageViewer = new VIEWER.PDFSinglePageViewer({
|
|
707
|
-
eventBus: eventBus,
|
|
708
|
-
container: this.el,
|
|
709
|
-
removePageBorders: !this.showBorders,
|
|
710
|
-
textLayerMode: this._textLayerMode,
|
|
711
|
-
linkService: linkService,
|
|
712
|
-
findController: findController
|
|
713
|
-
}));
|
|
714
|
-
linkService.setViewer(pageViewer);
|
|
715
|
-
pageViewer._currentPageNumber = this._pi;
|
|
716
|
-
};
|
|
717
|
-
PdfComponent.prototype.ngAfterViewInit = function () {
|
|
718
|
-
var _this = this;
|
|
719
|
-
if (!this.platform.isBrowser) {
|
|
720
|
-
return;
|
|
721
|
-
}
|
|
722
|
-
if (this.win.pdfjsLib) {
|
|
723
|
-
this.initDelay();
|
|
724
|
-
return;
|
|
725
|
-
}
|
|
726
|
-
var lib = this.lib;
|
|
727
|
-
this.lazySrv
|
|
728
|
-
.load(lib + "build/pdf.min.js")
|
|
729
|
-
.then(function () { return _this.lazySrv.load([lib + "web/pdf_viewer.js", lib + "web/pdf_viewer.css"]); })
|
|
730
|
-
.then(function () { return _this.initDelay(); });
|
|
731
|
-
this.ngZone.runOutsideAngular(function () { return _this.initResize(); });
|
|
732
|
-
};
|
|
733
|
-
PdfComponent.prototype.initResize = function () {
|
|
734
|
-
var _this = this;
|
|
735
|
-
rxjs.fromEvent(this.win, 'resize')
|
|
736
|
-
.pipe(operators.debounceTime(100), operators.filter(function () { return _this.autoReSize && _this._pdf; }), operators.takeUntil(this.unsubscribe$))
|
|
737
|
-
.subscribe(function () { return _this.updateSize(); });
|
|
738
|
-
};
|
|
739
|
-
PdfComponent.prototype.ngOnChanges = function (changes) {
|
|
740
|
-
if (this.inited && !changes.src) {
|
|
741
|
-
this.render();
|
|
742
|
-
}
|
|
743
|
-
};
|
|
744
|
-
PdfComponent.prototype.ngOnDestroy = function () {
|
|
745
|
-
var unsubscribe$ = this.unsubscribe$;
|
|
746
|
-
unsubscribe$.next();
|
|
747
|
-
unsubscribe$.complete();
|
|
748
|
-
this.destroy();
|
|
749
|
-
};
|
|
750
|
-
return PdfComponent;
|
|
751
|
-
}());
|
|
752
|
-
PdfComponent.decorators = [
|
|
753
|
-
{ type: core.Component, args: [{
|
|
754
|
-
selector: 'pdf',
|
|
755
|
-
exportAs: 'pdf',
|
|
756
|
-
template: "\n <nz-skeleton *ngIf=\"!inited || loading\"></nz-skeleton>\n <div class=\"pdf-container\">\n <div class=\"pdfViewer\"></div>\n </div>\n ",
|
|
757
|
-
host: {
|
|
758
|
-
'[class.d-block]': "true"
|
|
759
|
-
},
|
|
760
|
-
preserveWhitespaces: false,
|
|
761
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
762
|
-
encapsulation: core.ViewEncapsulation.None
|
|
763
|
-
},] }
|
|
764
|
-
];
|
|
765
|
-
PdfComponent.ctorParameters = function () { return [
|
|
766
|
-
{ type: core.NgZone },
|
|
767
|
-
{ type: config.AlainConfigService },
|
|
768
|
-
{ type: other.LazyService },
|
|
769
|
-
{ type: platform.Platform },
|
|
770
|
-
{ type: core.ElementRef },
|
|
771
|
-
{ type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [common.DOCUMENT,] }] },
|
|
772
|
-
{ type: core.ChangeDetectorRef }
|
|
773
|
-
]; };
|
|
774
|
-
PdfComponent.propDecorators = {
|
|
775
|
-
src: [{ type: core.Input }],
|
|
776
|
-
pi: [{ type: core.Input }],
|
|
777
|
-
showAll: [{ type: core.Input }],
|
|
778
|
-
renderText: [{ type: core.Input }],
|
|
779
|
-
textLayerMode: [{ type: core.Input }],
|
|
780
|
-
showBorders: [{ type: core.Input }],
|
|
781
|
-
stickToPage: [{ type: core.Input }],
|
|
782
|
-
originalSize: [{ type: core.Input }],
|
|
783
|
-
fitToPage: [{ type: core.Input }],
|
|
784
|
-
zoom: [{ type: core.Input }],
|
|
785
|
-
zoomScale: [{ type: core.Input }],
|
|
786
|
-
rotation: [{ type: core.Input }],
|
|
787
|
-
autoReSize: [{ type: core.Input }],
|
|
788
|
-
externalLinkTarget: [{ type: core.Input }],
|
|
789
|
-
delay: [{ type: core.Input }],
|
|
790
|
-
change: [{ type: core.Output }]
|
|
791
|
-
};
|
|
792
|
-
__decorate([
|
|
793
|
-
decorator.InputNumber()
|
|
794
|
-
], PdfComponent.prototype, "pi", null);
|
|
795
|
-
__decorate([
|
|
796
|
-
decorator.InputBoolean()
|
|
797
|
-
], PdfComponent.prototype, "showAll", null);
|
|
798
|
-
__decorate([
|
|
799
|
-
decorator.InputBoolean()
|
|
800
|
-
], PdfComponent.prototype, "renderText", null);
|
|
801
|
-
__decorate([
|
|
802
|
-
decorator.InputBoolean()
|
|
803
|
-
], PdfComponent.prototype, "showBorders", void 0);
|
|
804
|
-
__decorate([
|
|
805
|
-
decorator.InputBoolean()
|
|
806
|
-
], PdfComponent.prototype, "stickToPage", void 0);
|
|
807
|
-
__decorate([
|
|
808
|
-
decorator.InputBoolean()
|
|
809
|
-
], PdfComponent.prototype, "originalSize", void 0);
|
|
810
|
-
__decorate([
|
|
811
|
-
decorator.InputBoolean()
|
|
812
|
-
], PdfComponent.prototype, "fitToPage", void 0);
|
|
813
|
-
__decorate([
|
|
814
|
-
decorator.InputNumber()
|
|
815
|
-
], PdfComponent.prototype, "zoom", null);
|
|
816
|
-
__decorate([
|
|
817
|
-
decorator.InputNumber()
|
|
818
|
-
], PdfComponent.prototype, "rotation", null);
|
|
819
|
-
__decorate([
|
|
820
|
-
decorator.InputBoolean()
|
|
821
|
-
], PdfComponent.prototype, "autoReSize", void 0);
|
|
822
|
-
__decorate([
|
|
823
|
-
decorator.InputNumber()
|
|
824
|
-
], PdfComponent.prototype, "delay", void 0);
|
|
825
|
-
__decorate([
|
|
826
|
-
decorator.ZoneOutside()
|
|
827
|
-
], PdfComponent.prototype, "load", null);
|
|
828
|
-
__decorate([
|
|
829
|
-
decorator.ZoneOutside()
|
|
830
|
-
], PdfComponent.prototype, "resetDoc", null);
|
|
831
|
-
__decorate([
|
|
832
|
-
decorator.ZoneOutside()
|
|
833
|
-
], PdfComponent.prototype, "updateSize", null);
|
|
834
|
-
__decorate([
|
|
835
|
-
decorator.ZoneOutside()
|
|
836
|
-
], PdfComponent.prototype, "destroy", null);
|
|
837
|
-
|
|
838
|
-
var COMPONENTS = [PdfComponent];
|
|
839
|
-
var PdfModule = /** @class */ (function () {
|
|
840
|
-
function PdfModule() {
|
|
841
|
-
}
|
|
842
|
-
return PdfModule;
|
|
843
|
-
}());
|
|
844
|
-
PdfModule.decorators = [
|
|
845
|
-
{ type: core.NgModule, args: [{
|
|
846
|
-
imports: [common.CommonModule, skeleton.NzSkeletonModule],
|
|
847
|
-
declarations: COMPONENTS,
|
|
848
|
-
exports: COMPONENTS
|
|
849
|
-
},] }
|
|
850
|
-
];
|
|
851
|
-
|
|
852
|
-
/**
|
|
853
|
-
* Generated bundle index. Do not edit.
|
|
854
|
-
*/
|
|
855
|
-
|
|
856
|
-
exports.PDF_DEFULAT_CONFIG = PDF_DEFULAT_CONFIG;
|
|
857
|
-
exports.PdfComponent = PdfComponent;
|
|
858
|
-
exports.PdfModule = PdfModule;
|
|
859
|
-
|
|
860
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
861
|
-
|
|
862
|
-
}));
|
|
863
|
-
//# sourceMappingURL=pdf.umd.js.map
|