@wavemaker/app-ng-runtime 12.0.0-next.45503 → 12.0.0-next.46502
Sign up to get free protection for your applications and to get access to all the features.
- app-ng-runtime/build-task/bundles/index.umd.js +53 -45
- app-ng-runtime/build-task/esm2022/basic/default/anchor/anchor.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/basic/default/html/html.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/basic/default/icon/icon.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/basic/default/label/label.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/basic/default/picture/picture.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/basic/default/spinner/spinner.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/basic/progress/progress-circle/progress-circle.build.mjs +7 -2
- app-ng-runtime/build-task/esm2022/basic/rich-text-editor/rich-text-editor.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/containers/accordion/accordion-pane/accordion-pane.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/containers/accordion/accordion.build.mjs +3 -3
- app-ng-runtime/build-task/esm2022/containers/tile/tile.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/containers/wizard/wizard.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/data/form/form-field/form-field.build.mjs +4 -4
- app-ng-runtime/build-task/esm2022/device/barcode-scanner/barcode-scanner.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/device/camera/camera.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/dialogs/alert-dialog/alert-dialog.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/input/calendar/calendar.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/input/chips/chips.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/input/color-picker/color-picker.build.mjs +3 -3
- app-ng-runtime/build-task/esm2022/input/currency/currency.build.mjs +3 -3
- app-ng-runtime/build-task/esm2022/input/default/button/button.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/input/default/button-group/button-group.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/input/default/switch/switch.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/input/file-upload/file-upload.build.mjs +6 -2
- app-ng-runtime/build-task/esm2022/page/footer/footer.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/page/header/header.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/page/layout.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/page/left-panel/left-panel.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/page/page.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/page/right-panel/right-panel.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/page/top-nav/top-nav.build.mjs +2 -2
- app-ng-runtime/build-task/fesm2022/index.mjs +53 -45
- app-ng-runtime/build-task/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/advanced/carousel/bundles/index.umd.js +1 -1
- app-ng-runtime/components/advanced/carousel/esm2022/carousel.animator.mjs +2 -2
- app-ng-runtime/components/advanced/carousel/fesm2022/index.mjs +1 -1
- app-ng-runtime/components/advanced/carousel/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/base/bundles/index.umd.js +8 -7
- app-ng-runtime/components/base/esm2022/pipes/custom-pipes.mjs +3 -3
- app-ng-runtime/components/base/esm2022/utils/live-utils.mjs +8 -2
- app-ng-runtime/components/base/esm2022/widgets/common/base/base.component.mjs +1 -6
- app-ng-runtime/components/base/fesm2022/index.mjs +8 -7
- app-ng-runtime/components/base/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/base/pipes/custom-pipes.d.ts +1 -1
- app-ng-runtime/components/basic/default/anchor/anchor.component.d.ts +1 -0
- app-ng-runtime/components/basic/default/audio/audio.component.d.ts +3 -0
- app-ng-runtime/components/basic/default/bundles/index.umd.js +39 -19
- app-ng-runtime/components/basic/default/esm2022/anchor/anchor.component.mjs +4 -4
- app-ng-runtime/components/basic/default/esm2022/anchor/anchor.props.mjs +2 -1
- app-ng-runtime/components/basic/default/esm2022/audio/audio.component.mjs +14 -6
- app-ng-runtime/components/basic/default/esm2022/audio/audio.props.mjs +2 -1
- app-ng-runtime/components/basic/default/esm2022/html/html.props.mjs +2 -1
- app-ng-runtime/components/basic/default/esm2022/icon/icon.component.mjs +6 -7
- app-ng-runtime/components/basic/default/esm2022/icon/icon.props.mjs +2 -1
- app-ng-runtime/components/basic/default/esm2022/iframe/iframe.component.mjs +3 -3
- app-ng-runtime/components/basic/default/esm2022/iframe/iframe.props.mjs +3 -2
- app-ng-runtime/components/basic/default/esm2022/label/label.props.mjs +1 -1
- app-ng-runtime/components/basic/default/esm2022/picture/picture.directive.mjs +2 -2
- app-ng-runtime/components/basic/default/esm2022/picture/picture.props.mjs +3 -1
- app-ng-runtime/components/basic/default/esm2022/spinner/spinner.props.mjs +3 -2
- app-ng-runtime/components/basic/default/esm2022/video/video.component.mjs +8 -4
- app-ng-runtime/components/basic/default/esm2022/video/video.props.mjs +2 -1
- app-ng-runtime/components/basic/default/fesm2022/index.mjs +39 -19
- app-ng-runtime/components/basic/default/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/basic/default/icon/icon.component.d.ts +1 -0
- app-ng-runtime/components/basic/default/iframe/iframe.component.d.ts +1 -0
- app-ng-runtime/components/basic/default/picture/picture.directive.d.ts +2 -1
- app-ng-runtime/components/basic/default/video/video.component.d.ts +2 -0
- app-ng-runtime/components/basic/progress/bundles/index.umd.js +17 -9
- app-ng-runtime/components/basic/progress/esm2022/progress-bar/progress-bar.component.mjs +9 -5
- app-ng-runtime/components/basic/progress/esm2022/progress-bar/progress-bar.props.mjs +2 -1
- app-ng-runtime/components/basic/progress/esm2022/progress-circle/progress-circle.component.mjs +8 -6
- app-ng-runtime/components/basic/progress/esm2022/progress-circle/progress-circle.props.mjs +2 -1
- app-ng-runtime/components/basic/progress/fesm2022/index.mjs +17 -9
- app-ng-runtime/components/basic/progress/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/basic/progress/progress-bar/progress-bar.component.d.ts +2 -0
- app-ng-runtime/components/basic/progress/progress-circle/progress-circle.component.d.ts +3 -1
- app-ng-runtime/components/basic/rich-text-editor/bundles/index.umd.js +2 -0
- app-ng-runtime/components/basic/rich-text-editor/esm2022/rich-text-editor.component.mjs +2 -1
- app-ng-runtime/components/basic/rich-text-editor/esm2022/rich-text-editor.props.mjs +2 -1
- app-ng-runtime/components/basic/rich-text-editor/fesm2022/index.mjs +2 -0
- app-ng-runtime/components/basic/rich-text-editor/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/basic/search/bundles/index.umd.js +16 -9
- app-ng-runtime/components/basic/search/esm2022/search.component.mjs +19 -13
- app-ng-runtime/components/basic/search/esm2022/search.props.mjs +2 -1
- app-ng-runtime/components/basic/search/fesm2022/index.mjs +16 -9
- app-ng-runtime/components/basic/search/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/basic/search/search.component.d.ts +4 -2
- app-ng-runtime/components/chart/bundles/index.umd.js +1 -0
- app-ng-runtime/components/chart/esm2022/chart.utils.mjs +2 -1
- app-ng-runtime/components/chart/fesm2022/index.mjs +1 -0
- app-ng-runtime/components/chart/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/containers/accordion/accordion-pane/accordion-pane.component.d.ts +1 -0
- app-ng-runtime/components/containers/accordion/bundles/index.umd.js +15 -9
- app-ng-runtime/components/containers/accordion/esm2022/accordion-pane/accordion-pane.component.mjs +13 -10
- app-ng-runtime/components/containers/accordion/esm2022/accordion.directive.mjs +4 -1
- app-ng-runtime/components/containers/accordion/fesm2022/index.mjs +15 -9
- app-ng-runtime/components/containers/accordion/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/containers/panel/bundles/index.umd.js +14 -14
- app-ng-runtime/components/containers/panel/esm2022/panel.component.mjs +15 -15
- app-ng-runtime/components/containers/panel/fesm2022/index.mjs +14 -14
- app-ng-runtime/components/containers/panel/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/containers/tabs/bundles/index.umd.js +2 -2
- app-ng-runtime/components/containers/tabs/esm2022/tabs.component.mjs +3 -3
- app-ng-runtime/components/containers/tabs/fesm2022/index.mjs +2 -2
- app-ng-runtime/components/containers/tabs/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/containers/wizard/bundles/index.umd.js +6 -6
- app-ng-runtime/components/containers/wizard/esm2022/wizard.component.mjs +7 -7
- app-ng-runtime/components/containers/wizard/fesm2022/index.mjs +6 -6
- app-ng-runtime/components/containers/wizard/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/data/form/bundles/index.umd.js +4 -0
- app-ng-runtime/components/data/form/esm2022/form-field/form-field.directive.mjs +5 -1
- app-ng-runtime/components/data/form/fesm2022/index.mjs +4 -0
- app-ng-runtime/components/data/form/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/data/form/form-field/form-field.directive.d.ts +1 -0
- app-ng-runtime/components/data/list/bundles/index.umd.js +19 -11
- app-ng-runtime/components/data/list/esm2022/list-item.directive.mjs +10 -1
- app-ng-runtime/components/data/list/esm2022/list.component.mjs +12 -12
- app-ng-runtime/components/data/list/fesm2022/index.mjs +20 -12
- app-ng-runtime/components/data/list/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/data/live-table/bundles/index.umd.js +2 -2
- app-ng-runtime/components/data/live-table/esm2022/live-table.component.mjs +3 -3
- app-ng-runtime/components/data/live-table/fesm2022/index.mjs +2 -2
- app-ng-runtime/components/data/live-table/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/data/pagination/bundles/index.umd.js +2 -0
- app-ng-runtime/components/data/pagination/esm2022/pagination.component.mjs +3 -1
- app-ng-runtime/components/data/pagination/fesm2022/index.mjs +2 -0
- app-ng-runtime/components/data/pagination/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/data/table/bundles/index.umd.js +44 -10
- app-ng-runtime/components/data/table/esm2022/table-column/table-column.directive.mjs +14 -5
- app-ng-runtime/components/data/table/esm2022/table.component.mjs +30 -7
- app-ng-runtime/components/data/table/esm2022/table.props.mjs +3 -1
- app-ng-runtime/components/data/table/fesm2022/index.mjs +45 -11
- app-ng-runtime/components/data/table/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/data/table/table.component.d.ts +8 -1
- app-ng-runtime/components/dialogs/alert-dialog/bundles/index.umd.js +6 -4
- app-ng-runtime/components/dialogs/alert-dialog/esm2022/alert-dialog.component.mjs +7 -5
- app-ng-runtime/components/dialogs/alert-dialog/fesm2022/index.mjs +6 -4
- app-ng-runtime/components/dialogs/alert-dialog/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/confirm-dialog/bundles/index.umd.js +8 -5
- app-ng-runtime/components/dialogs/confirm-dialog/esm2022/confirm-dialog.component.mjs +9 -6
- app-ng-runtime/components/dialogs/confirm-dialog/fesm2022/index.mjs +8 -5
- app-ng-runtime/components/dialogs/confirm-dialog/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/default/bundles/index.umd.js +9 -3
- app-ng-runtime/components/dialogs/default/dialog-header/dialog-header.component.d.ts +2 -1
- app-ng-runtime/components/dialogs/default/esm2022/base-dialog.mjs +2 -1
- app-ng-runtime/components/dialogs/default/esm2022/dialog-header/dialog-header.component.mjs +9 -4
- app-ng-runtime/components/dialogs/default/fesm2022/index.mjs +9 -3
- app-ng-runtime/components/dialogs/default/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/design-dialog/bundles/index.umd.js +4 -4
- app-ng-runtime/components/dialogs/design-dialog/esm2022/dialog.component.mjs +5 -5
- app-ng-runtime/components/dialogs/design-dialog/fesm2022/index.mjs +4 -4
- app-ng-runtime/components/dialogs/design-dialog/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/iframe-dialog/bundles/index.umd.js +9 -5
- app-ng-runtime/components/dialogs/iframe-dialog/esm2022/iframe-dialog.component.mjs +10 -6
- app-ng-runtime/components/dialogs/iframe-dialog/fesm2022/index.mjs +9 -5
- app-ng-runtime/components/dialogs/iframe-dialog/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/partial-dialog/bundles/index.umd.js +9 -5
- app-ng-runtime/components/dialogs/partial-dialog/esm2022/partial-dialog.component.mjs +10 -6
- app-ng-runtime/components/dialogs/partial-dialog/fesm2022/index.mjs +9 -5
- app-ng-runtime/components/dialogs/partial-dialog/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/calendar/bundles/index.umd.js +2 -4
- app-ng-runtime/components/input/calendar/esm2022/calendar.component.mjs +3 -5
- app-ng-runtime/components/input/calendar/fesm2022/index.mjs +2 -4
- app-ng-runtime/components/input/calendar/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/chips/bundles/index.umd.js +25 -7
- app-ng-runtime/components/input/chips/esm2022/chips.component.mjs +25 -8
- app-ng-runtime/components/input/chips/esm2022/chips.props.mjs +2 -1
- app-ng-runtime/components/input/chips/fesm2022/index.mjs +25 -7
- app-ng-runtime/components/input/chips/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/color-picker/bundles/index.umd.js +5 -3
- app-ng-runtime/components/input/color-picker/color-picker.component.d.ts +1 -0
- app-ng-runtime/components/input/color-picker/esm2022/color-picker.component.mjs +6 -5
- app-ng-runtime/components/input/color-picker/esm2022/color-picker.props.mjs +2 -1
- app-ng-runtime/components/input/color-picker/fesm2022/index.mjs +5 -3
- app-ng-runtime/components/input/color-picker/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/currency/bundles/index.umd.js +4 -3
- app-ng-runtime/components/input/currency/currency.component.d.ts +1 -0
- app-ng-runtime/components/input/currency/esm2022/currency.component.mjs +6 -6
- app-ng-runtime/components/input/currency/esm2022/currency.props.mjs +2 -1
- app-ng-runtime/components/input/currency/fesm2022/index.mjs +4 -3
- app-ng-runtime/components/input/currency/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/bundles/index.umd.js +184 -105
- app-ng-runtime/components/input/default/button/button.component.d.ts +1 -0
- app-ng-runtime/components/input/default/checkbox/checkbox.component.d.ts +1 -0
- app-ng-runtime/components/input/default/esm2022/base-form.component.mjs +3 -3
- app-ng-runtime/components/input/default/esm2022/button/button.component.mjs +1 -1
- app-ng-runtime/components/input/default/esm2022/button/button.props.mjs +2 -1
- app-ng-runtime/components/input/default/esm2022/caption-position.directive.mjs +8 -7
- app-ng-runtime/components/input/default/esm2022/checkbox/checkbox.component.mjs +7 -7
- app-ng-runtime/components/input/default/esm2022/checkbox/checkbox.props.mjs +2 -1
- app-ng-runtime/components/input/default/esm2022/checkboxset/checkboxset.component.mjs +21 -16
- app-ng-runtime/components/input/default/esm2022/number/number.component.mjs +5 -5
- app-ng-runtime/components/input/default/esm2022/number/number.props.mjs +3 -1
- app-ng-runtime/components/input/default/esm2022/radioset/radioset.component.mjs +28 -23
- app-ng-runtime/components/input/default/esm2022/select/select.component.mjs +20 -18
- app-ng-runtime/components/input/default/esm2022/select/select.props.mjs +2 -1
- app-ng-runtime/components/input/default/esm2022/switch/switch.component.mjs +6 -5
- app-ng-runtime/components/input/default/esm2022/switch/switch.props.mjs +2 -1
- app-ng-runtime/components/input/default/esm2022/text/calendar/input-calendar.component.mjs +5 -5
- app-ng-runtime/components/input/default/esm2022/text/calendar/input-calendar.props.mjs +2 -1
- app-ng-runtime/components/input/default/esm2022/text/color/input-color.component.mjs +5 -5
- app-ng-runtime/components/input/default/esm2022/text/color/input-color.props.mjs +2 -1
- app-ng-runtime/components/input/default/esm2022/text/email/input-email.component.mjs +5 -5
- app-ng-runtime/components/input/default/esm2022/text/email/input-email.props.mjs +2 -1
- app-ng-runtime/components/input/default/esm2022/text/locale/number-locale.mjs +66 -13
- app-ng-runtime/components/input/default/esm2022/text/number/input-number.component.mjs +5 -5
- app-ng-runtime/components/input/default/esm2022/text/number/input-number.props.mjs +2 -1
- app-ng-runtime/components/input/default/esm2022/text/text/input-text.component.mjs +5 -5
- app-ng-runtime/components/input/default/esm2022/text/text/input-text.props.mjs +2 -1
- app-ng-runtime/components/input/default/esm2022/textarea/textarea.component.mjs +6 -6
- app-ng-runtime/components/input/default/esm2022/textarea/textarea.props.mjs +2 -1
- app-ng-runtime/components/input/default/fesm2022/index.mjs +184 -105
- app-ng-runtime/components/input/default/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/number/number.component.d.ts +1 -0
- app-ng-runtime/components/input/default/select/select.component.d.ts +2 -0
- app-ng-runtime/components/input/default/text/calendar/input-calendar.component.d.ts +1 -0
- app-ng-runtime/components/input/default/text/color/input-color.component.d.ts +1 -0
- app-ng-runtime/components/input/default/text/email/input-email.component.d.ts +1 -0
- app-ng-runtime/components/input/default/text/locale/number-locale.d.ts +1 -0
- app-ng-runtime/components/input/default/text/number/input-number.component.d.ts +1 -0
- app-ng-runtime/components/input/default/text/text/input-text.component.d.ts +1 -0
- app-ng-runtime/components/input/default/textarea/textarea.component.d.ts +1 -0
- app-ng-runtime/components/input/epoch/base-date-time.component.d.ts +2 -1
- app-ng-runtime/components/input/epoch/bundles/index.umd.js +28 -21
- app-ng-runtime/components/input/epoch/date/date.component.d.ts +1 -0
- app-ng-runtime/components/input/epoch/date-time/date-time.component.d.ts +2 -1
- app-ng-runtime/components/input/epoch/esm2022/base-date-time.component.mjs +10 -6
- app-ng-runtime/components/input/epoch/esm2022/date/date.component.mjs +8 -8
- app-ng-runtime/components/input/epoch/esm2022/date/date.props.mjs +2 -1
- app-ng-runtime/components/input/epoch/esm2022/date-time/date-time.component.mjs +9 -9
- app-ng-runtime/components/input/epoch/esm2022/date-time/date-time.props.mjs +2 -1
- app-ng-runtime/components/input/epoch/esm2022/time/time.component.mjs +7 -7
- app-ng-runtime/components/input/epoch/esm2022/time/time.props.mjs +2 -1
- app-ng-runtime/components/input/epoch/fesm2022/index.mjs +25 -18
- app-ng-runtime/components/input/epoch/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/epoch/time/time.component.d.ts +1 -0
- app-ng-runtime/components/input/file-upload/bundles/index.umd.js +224 -121
- app-ng-runtime/components/input/file-upload/esm2022/file-upload.component.mjs +220 -123
- app-ng-runtime/components/input/file-upload/esm2022/file-upload.props.mjs +7 -1
- app-ng-runtime/components/input/file-upload/fesm2022/index.mjs +225 -122
- app-ng-runtime/components/input/file-upload/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/file-upload/file-upload.component.d.ts +18 -11
- app-ng-runtime/components/input/rating/bundles/index.umd.js +2 -2
- app-ng-runtime/components/input/rating/esm2022/rating.component.mjs +3 -3
- app-ng-runtime/components/input/rating/fesm2022/index.mjs +2 -2
- app-ng-runtime/components/input/rating/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/slider/bundles/index.umd.js +5 -6
- app-ng-runtime/components/input/slider/esm2022/slider.component.mjs +6 -8
- app-ng-runtime/components/input/slider/esm2022/slider.props.mjs +2 -1
- app-ng-runtime/components/input/slider/fesm2022/index.mjs +5 -6
- app-ng-runtime/components/input/slider/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/slider/slider.component.d.ts +1 -0
- app-ng-runtime/components/navigation/breadcrumb/bundles/index.umd.js +6 -6
- app-ng-runtime/components/navigation/breadcrumb/esm2022/breadcrumb.component.mjs +7 -7
- app-ng-runtime/components/navigation/breadcrumb/fesm2022/index.mjs +6 -6
- app-ng-runtime/components/navigation/breadcrumb/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/menu/bundles/index.umd.js +8 -6
- app-ng-runtime/components/navigation/menu/esm2022/menu.component.mjs +8 -7
- app-ng-runtime/components/navigation/menu/esm2022/menu.props.mjs +2 -1
- app-ng-runtime/components/navigation/menu/fesm2022/index.mjs +8 -6
- app-ng-runtime/components/navigation/menu/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/menu/menu.component.d.ts +1 -0
- app-ng-runtime/components/navigation/popover/bundles/index.umd.js +121 -13
- app-ng-runtime/components/navigation/popover/esm2022/popover.component.mjs +122 -15
- app-ng-runtime/components/navigation/popover/esm2022/popover.props.mjs +2 -1
- app-ng-runtime/components/navigation/popover/fesm2022/index.mjs +121 -13
- app-ng-runtime/components/navigation/popover/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/popover/popover.component.d.ts +15 -3
- app-ng-runtime/components/page/default/bundles/index.umd.js +2 -1
- app-ng-runtime/components/page/default/esm2022/page.props.mjs +4 -3
- app-ng-runtime/components/page/default/fesm2022/index.mjs +2 -1
- app-ng-runtime/components/page/default/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/page/footer/bundles/index.umd.js +2 -1
- app-ng-runtime/components/page/footer/esm2022/footer.props.mjs +3 -2
- app-ng-runtime/components/page/footer/fesm2022/index.mjs +2 -1
- app-ng-runtime/components/page/footer/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/page/header/bundles/index.umd.js +2 -1
- app-ng-runtime/components/page/header/esm2022/header.props.mjs +3 -2
- app-ng-runtime/components/page/header/fesm2022/index.mjs +2 -1
- app-ng-runtime/components/page/header/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/page/left-panel/bundles/index.umd.js +2 -1
- app-ng-runtime/components/page/left-panel/esm2022/left-panel.props.mjs +3 -2
- app-ng-runtime/components/page/left-panel/fesm2022/index.mjs +2 -1
- app-ng-runtime/components/page/left-panel/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/page/right-panel/bundles/index.umd.js +2 -1
- app-ng-runtime/components/page/right-panel/esm2022/right-panel.props.mjs +3 -2
- app-ng-runtime/components/page/right-panel/fesm2022/index.mjs +2 -1
- app-ng-runtime/components/page/right-panel/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/page/top-nav/bundles/index.umd.js +2 -1
- app-ng-runtime/components/page/top-nav/esm2022/top-nav.props.mjs +3 -2
- app-ng-runtime/components/page/top-nav/fesm2022/index.mjs +2 -1
- app-ng-runtime/components/page/top-nav/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/core/bundles/index.umd.js +15 -13
- app-ng-runtime/core/esm2022/public_api.mjs +2 -2
- app-ng-runtime/core/esm2022/utils/build-utils.mjs +7 -7
- app-ng-runtime/core/esm2022/utils/utils.mjs +4 -5
- app-ng-runtime/core/fesm2022/index.mjs +11 -11
- app-ng-runtime/core/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/core/public_api.d.ts +1 -1
- app-ng-runtime/core/utils/utils.d.ts +1 -1
- app-ng-runtime/mobile/components/device/barcode-scanner/bundles/index.umd.js +2 -1
- app-ng-runtime/mobile/components/device/barcode-scanner/esm2022/barcode-scanner.props.mjs +3 -2
- app-ng-runtime/mobile/components/device/barcode-scanner/fesm2022/index.mjs +2 -1
- app-ng-runtime/mobile/components/device/barcode-scanner/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/device/camera/bundles/index.umd.js +2 -1
- app-ng-runtime/mobile/components/device/camera/esm2022/camera.props.mjs +3 -2
- app-ng-runtime/mobile/components/device/camera/fesm2022/index.mjs +2 -1
- app-ng-runtime/mobile/components/device/camera/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/package.json +1 -1
- app-ng-runtime/runtime/base/bundles/index.umd.js +6 -4
- app-ng-runtime/runtime/base/components/app-component/app.component.d.ts +2 -3
- app-ng-runtime/runtime/base/esm2022/components/app-component/app.component.mjs +5 -5
- app-ng-runtime/runtime/base/esm2022/guards/can-deactivate-page.guard.mjs +5 -4
- app-ng-runtime/runtime/base/fesm2022/index.mjs +6 -4
- app-ng-runtime/runtime/base/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/runtime/base/guards/can-deactivate-page.guard.d.ts +2 -1
- app-ng-runtime/scripts/datatable/datatable.js +33 -32
- app-ng-runtime/variables/bundles/index.umd.js +34 -16
- app-ng-runtime/variables/esm2022/manager/variable/web-socket-variable.manager.mjs +35 -17
- app-ng-runtime/variables/fesm2022/index.mjs +34 -16
- app-ng-runtime/variables/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/variables/manager/variable/web-socket-variable.manager.d.ts +0 -4
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Attribute, Component, Inject, Injector, Optional } from '@angular/core';
|
2
2
|
import { Subject } from 'rxjs';
|
3
|
-
import { App, DataSource, getWmProjectProperties, isAudioFile, isImageFile, isVideoFile } from '@wm/core';
|
3
|
+
import { App, DataSource, getWmProjectProperties, isAudioFile, isImageFile, isVideoFile, AbstractDialogService, IDGenerator } from '@wm/core';
|
4
4
|
import { provideAsWidgetRef, StylableComponent, styler } from '@wm/components/base';
|
5
5
|
import { registerProps } from './file-upload.props';
|
6
6
|
import { forEach, includes, isEmpty, toLower } from "lodash-es";
|
@@ -14,7 +14,7 @@ const _c2 = (a0, a1) => ({ height: a0, overflow: a1 });
|
|
14
14
|
const _c3 = a0 => ({ width: a0 });
|
15
15
|
function FileUploadComponent_div_1_input_6_Template(rf, ctx) { if (rf & 1) {
|
16
16
|
const _r3 = i0.ɵɵgetCurrentView();
|
17
|
-
i0.ɵɵelementStart(0, "input",
|
17
|
+
i0.ɵɵelementStart(0, "input", 15);
|
18
18
|
i0.ɵɵlistener("click", function FileUploadComponent_div_1_input_6_Template_input_click_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onFileElemClick($event)); })("change", function FileUploadComponent_div_1_input_6_Template_input_change_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onFileSelect($event, $event.target.files)); });
|
19
19
|
i0.ɵɵelementEnd();
|
20
20
|
} if (rf & 2) {
|
@@ -22,6 +22,23 @@ function FileUploadComponent_div_1_input_6_Template(rf, ctx) { if (rf & 1) {
|
|
22
22
|
i0.ɵɵproperty("disabled", ctx_r1.disabled)("accept", ctx_r1.chooseFilter);
|
23
23
|
i0.ɵɵattribute("aria-label", ctx_r1.hint || "File selection field");
|
24
24
|
} }
|
25
|
+
function FileUploadComponent_div_1_label_9_Template(rf, ctx) { if (rf & 1) {
|
26
|
+
i0.ɵɵelement(0, "label", 16);
|
27
|
+
} if (rf & 2) {
|
28
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
29
|
+
i0.ɵɵproperty("innerHtml", ctx_r1.chooseFilter + " only ", i0.ɵɵsanitizeHtml);
|
30
|
+
} }
|
31
|
+
function FileUploadComponent_div_1_span_10_Template(rf, ctx) { if (rf & 1) {
|
32
|
+
i0.ɵɵelementStart(0, "span", 17);
|
33
|
+
i0.ɵɵtext(1, " . ");
|
34
|
+
i0.ɵɵelementEnd();
|
35
|
+
} }
|
36
|
+
function FileUploadComponent_div_1_label_11_Template(rf, ctx) { if (rf & 1) {
|
37
|
+
i0.ɵɵelement(0, "label", 16);
|
38
|
+
} if (rf & 2) {
|
39
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
40
|
+
i0.ɵɵproperty("innerHtml", ctx_r1.maxfilesize + "MB max", i0.ɵɵsanitizeHtml);
|
41
|
+
} }
|
25
42
|
function FileUploadComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
26
43
|
const _r1 = i0.ɵɵgetCurrentView();
|
27
44
|
i0.ɵɵelementStart(0, "div", 6)(1, "div", 7);
|
@@ -33,11 +50,13 @@ function FileUploadComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
33
50
|
i0.ɵɵtemplate(6, FileUploadComponent_div_1_input_6_Template, 1, 3, "input", 11);
|
34
51
|
i0.ɵɵelementStart(7, "a", 12);
|
35
52
|
i0.ɵɵtext(8);
|
36
|
-
i0.ɵɵelementEnd()()
|
53
|
+
i0.ɵɵelementEnd()();
|
54
|
+
i0.ɵɵtemplate(9, FileUploadComponent_div_1_label_9_Template, 1, 1, "label", 13)(10, FileUploadComponent_div_1_span_10_Template, 2, 0, "span", 14)(11, FileUploadComponent_div_1_label_11_Template, 1, 1, "label", 13);
|
55
|
+
i0.ɵɵelementEnd()()();
|
37
56
|
} if (rf & 2) {
|
38
57
|
const ctx_r1 = i0.ɵɵnextContext();
|
39
58
|
i0.ɵɵadvance();
|
40
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
59
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c1, ctx_r1.highlightDropArea));
|
41
60
|
i0.ɵɵadvance();
|
42
61
|
i0.ɵɵclassMap(ctx_r1.iconclass);
|
43
62
|
i0.ɵɵadvance(2);
|
@@ -48,34 +67,40 @@ function FileUploadComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
48
67
|
i0.ɵɵproperty("ngIf", ctx_r1.multiple);
|
49
68
|
i0.ɵɵadvance(2);
|
50
69
|
i0.ɵɵtextInterpolate(ctx_r1.fileUploadMessage);
|
70
|
+
i0.ɵɵadvance();
|
71
|
+
i0.ɵɵproperty("ngIf", ctx_r1.chooseFilter);
|
72
|
+
i0.ɵɵadvance();
|
73
|
+
i0.ɵɵproperty("ngIf", ctx_r1.chooseFilter && ctx_r1.maxfilesize);
|
74
|
+
i0.ɵɵadvance();
|
75
|
+
i0.ɵɵproperty("ngIf", ctx_r1.maxfilesize);
|
51
76
|
} }
|
52
77
|
function FileUploadComponent_div_2_input_3_Template(rf, ctx) { if (rf & 1) {
|
53
78
|
const _r4 = i0.ɵɵgetCurrentView();
|
54
|
-
i0.ɵɵelementStart(0, "input",
|
55
|
-
i0.ɵɵlistener("
|
79
|
+
i0.ɵɵelementStart(0, "input", 26);
|
80
|
+
i0.ɵɵlistener("change", function FileUploadComponent_div_2_input_3_Template_input_change_0_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onFileSelect($event, $event.target.files)); })("click", function FileUploadComponent_div_2_input_3_Template_input_click_0_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onFileElemClick($event)); });
|
56
81
|
i0.ɵɵelementEnd();
|
57
82
|
} if (rf & 2) {
|
58
83
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
59
|
-
i0.ɵɵproperty("
|
60
|
-
i0.ɵɵattribute("aria-label", ctx_r1.
|
84
|
+
i0.ɵɵproperty("accept", ctx_r1.chooseFilter)("disabled", ctx_r1.disabled);
|
85
|
+
i0.ɵɵattribute("aria-label", ctx_r1.arialabel || "File selection field");
|
61
86
|
} }
|
62
87
|
function FileUploadComponent_div_2_input_4_Template(rf, ctx) { if (rf & 1) {
|
63
88
|
const _r5 = i0.ɵɵgetCurrentView();
|
64
|
-
i0.ɵɵelementStart(0, "input",
|
65
|
-
i0.ɵɵlistener("
|
89
|
+
i0.ɵɵelementStart(0, "input", 27);
|
90
|
+
i0.ɵɵlistener("change", function FileUploadComponent_div_2_input_4_Template_input_change_0_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onFileSelect($event, $event.target.files)); })("click", function FileUploadComponent_div_2_input_4_Template_input_click_0_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onFileElemClick($event)); });
|
66
91
|
i0.ɵɵelementEnd();
|
67
92
|
} if (rf & 2) {
|
68
93
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
69
|
-
i0.ɵɵproperty("
|
70
|
-
i0.ɵɵattribute("aria-label", ctx_r1.
|
94
|
+
i0.ɵɵproperty("accept", ctx_r1.chooseFilter)("disabled", ctx_r1.disabled);
|
95
|
+
i0.ɵɵattribute("aria-label", ctx_r1.arialabel || "File selection field");
|
71
96
|
} }
|
72
97
|
function FileUploadComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
73
|
-
i0.ɵɵelementStart(0, "div",
|
74
|
-
i0.ɵɵtemplate(3, FileUploadComponent_div_2_input_3_Template, 1, 3, "input",
|
75
|
-
i0.ɵɵelementStart(5, "button",
|
76
|
-
i0.ɵɵelement(6, "i",
|
98
|
+
i0.ɵɵelementStart(0, "div", 18)(1, "div", 19)(2, "form", 10);
|
99
|
+
i0.ɵɵtemplate(3, FileUploadComponent_div_2_input_3_Template, 1, 3, "input", 20)(4, FileUploadComponent_div_2_input_4_Template, 1, 3, "input", 21);
|
100
|
+
i0.ɵɵelementStart(5, "button", 22);
|
101
|
+
i0.ɵɵelement(6, "i", 23)(7, "span", 24);
|
77
102
|
i0.ɵɵelementEnd()()();
|
78
|
-
i0.ɵɵelement(8, "div",
|
103
|
+
i0.ɵɵelement(8, "div", 25);
|
79
104
|
i0.ɵɵelementEnd();
|
80
105
|
} if (rf & 2) {
|
81
106
|
const ctx_r1 = i0.ɵɵnextContext();
|
@@ -94,9 +119,9 @@ function FileUploadComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
94
119
|
} }
|
95
120
|
function FileUploadComponent_button_3_Template(rf, ctx) { if (rf & 1) {
|
96
121
|
const _r6 = i0.ɵɵgetCurrentView();
|
97
|
-
i0.ɵɵelementStart(0, "button",
|
122
|
+
i0.ɵɵelementStart(0, "button", 28);
|
98
123
|
i0.ɵɵlistener("click", function FileUploadComponent_button_3_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.openFileSelector()); });
|
99
|
-
i0.ɵɵelement(1, "i")(2, "span",
|
124
|
+
i0.ɵɵelement(1, "i")(2, "span", 24);
|
100
125
|
i0.ɵɵelementEnd();
|
101
126
|
} if (rf & 2) {
|
102
127
|
const ctx_r1 = i0.ɵɵnextContext();
|
@@ -106,8 +131,15 @@ function FileUploadComponent_button_3_Template(rf, ctx) { if (rf & 1) {
|
|
106
131
|
i0.ɵɵadvance();
|
107
132
|
i0.ɵɵproperty("innerHTML", ctx_r1.caption, i0.ɵɵsanitizeHtml);
|
108
133
|
} }
|
109
|
-
function
|
110
|
-
i0.ɵɵ
|
134
|
+
function FileUploadComponent_ul_4_ng_container_1_li_1_span_8_Template(rf, ctx) { if (rf & 1) {
|
135
|
+
i0.ɵɵelement(0, "span");
|
136
|
+
i0.ɵɵpipe(1, "stateClass");
|
137
|
+
} if (rf & 2) {
|
138
|
+
const ft_r7 = i0.ɵɵnextContext(2).$implicit;
|
139
|
+
i0.ɵɵclassMapInterpolate1("status-icon ", i0.ɵɵpipeBind1(1, 3, ft_r7.status), "");
|
140
|
+
} }
|
141
|
+
function FileUploadComponent_ul_4_ng_container_1_li_1_span_10_Template(rf, ctx) { if (rf & 1) {
|
142
|
+
i0.ɵɵelementStart(0, "span", 47);
|
111
143
|
i0.ɵɵtext(1);
|
112
144
|
i0.ɵɵpipe(2, "filesize");
|
113
145
|
i0.ɵɵelementEnd();
|
@@ -116,130 +148,152 @@ function FileUploadComponent_ul_4_div_1_li_1_span_9_Template(rf, ctx) { if (rf &
|
|
116
148
|
i0.ɵɵadvance();
|
117
149
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ft_r7.size, 0));
|
118
150
|
} }
|
119
|
-
function
|
120
|
-
i0.ɵɵ
|
121
|
-
i0.ɵɵ
|
151
|
+
function FileUploadComponent_ul_4_ng_container_1_li_1_span_11_Template(rf, ctx) { if (rf & 1) {
|
152
|
+
i0.ɵɵelement(0, "span", 34);
|
153
|
+
i0.ɵɵpipe(1, "stateClass");
|
154
|
+
} if (rf & 2) {
|
155
|
+
const ft_r7 = i0.ɵɵnextContext(2).$implicit;
|
156
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
157
|
+
i0.ɵɵclassMapInterpolate1("status-icon ", i0.ɵɵpipeBind1(1, 4, ft_r7.status), "");
|
158
|
+
i0.ɵɵpropertyInterpolate("title", ft_r7.errMsg || ctx_r1.appLocale.MESSAGE_FILE_UPLOAD_FAILED);
|
159
|
+
} }
|
160
|
+
function FileUploadComponent_ul_4_ng_container_1_li_1_span_12_Template(rf, ctx) { if (rf & 1) {
|
161
|
+
i0.ɵɵelementStart(0, "span", 48);
|
162
|
+
i0.ɵɵtext(1, "Upload Failed");
|
163
|
+
i0.ɵɵelementEnd();
|
164
|
+
} }
|
165
|
+
function FileUploadComponent_ul_4_ng_container_1_li_1_div_13_Template(rf, ctx) { if (rf & 1) {
|
166
|
+
i0.ɵɵelementStart(0, "div", 49);
|
167
|
+
i0.ɵɵelement(1, "div", 50);
|
122
168
|
i0.ɵɵelementEnd();
|
123
169
|
} if (rf & 2) {
|
124
170
|
const ft_r7 = i0.ɵɵnextContext(2).$implicit;
|
125
171
|
i0.ɵɵadvance();
|
126
|
-
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(
|
172
|
+
i0.ɵɵproperty("ngClass", ft_r7.status === "error" ? "progress-bar-danger" : "progress-bar-info")("ngStyle", i0.ɵɵpureFunction1(2, _c3, ft_r7.progress + "%"));
|
127
173
|
} }
|
128
|
-
function
|
129
|
-
|
130
|
-
i0.ɵɵ
|
131
|
-
i0.ɵɵlistener("click", function FileUploadComponent_ul_4_div_1_li_1_div_11_Template_a_click_1_listener() { i0.ɵɵrestoreView(_r8); const ft_r7 = i0.ɵɵnextContext(2).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.abortFileUpload(ft_r7)); });
|
132
|
-
i0.ɵɵelement(2, "i", 41);
|
133
|
-
i0.ɵɵelementEnd()();
|
134
|
-
} }
|
135
|
-
function FileUploadComponent_ul_4_div_1_li_1_div_12_Template(rf, ctx) { if (rf & 1) {
|
136
|
-
i0.ɵɵelementStart(0, "div", 39);
|
137
|
-
i0.ɵɵelement(1, "span");
|
138
|
-
i0.ɵɵpipe(2, "stateClass");
|
174
|
+
function FileUploadComponent_ul_4_ng_container_1_li_1_div_14_Template(rf, ctx) { if (rf & 1) {
|
175
|
+
i0.ɵɵelementStart(0, "div", 51);
|
176
|
+
i0.ɵɵtext(1);
|
139
177
|
i0.ɵɵelementEnd();
|
140
178
|
} if (rf & 2) {
|
141
179
|
const ft_r7 = i0.ɵɵnextContext(2).$implicit;
|
142
180
|
i0.ɵɵadvance();
|
143
|
-
i0.ɵɵ
|
181
|
+
i0.ɵɵtextInterpolate1("", ft_r7.progress + "%", " ");
|
144
182
|
} }
|
145
|
-
function
|
146
|
-
const
|
147
|
-
i0.ɵɵelementStart(0, "div",
|
148
|
-
i0.ɵɵlistener("click", function
|
149
|
-
i0.ɵɵelement(2, "i");
|
183
|
+
function FileUploadComponent_ul_4_ng_container_1_li_1_div_15_Template(rf, ctx) { if (rf & 1) {
|
184
|
+
const _r8 = i0.ɵɵgetCurrentView();
|
185
|
+
i0.ɵɵelementStart(0, "div", 45)(1, "a", 52);
|
186
|
+
i0.ɵɵlistener("click", function FileUploadComponent_ul_4_ng_container_1_li_1_div_15_Template_a_click_1_listener() { i0.ɵɵrestoreView(_r8); const ft_r7 = i0.ɵɵnextContext(2).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.abortFileUpload(ft_r7)); });
|
187
|
+
i0.ɵɵelement(2, "i", 53);
|
150
188
|
i0.ɵɵelementEnd()();
|
189
|
+
} }
|
190
|
+
function FileUploadComponent_ul_4_ng_container_1_li_1_a_17_Template(rf, ctx) { if (rf & 1) {
|
191
|
+
const _r9 = i0.ɵɵgetCurrentView();
|
192
|
+
i0.ɵɵelementStart(0, "a", 54);
|
193
|
+
i0.ɵɵlistener("click", function FileUploadComponent_ul_4_ng_container_1_li_1_a_17_Template_a_click_0_listener() { i0.ɵɵrestoreView(_r9); const ft_r7 = i0.ɵɵnextContext(2).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.clear(ft_r7)); });
|
194
|
+
i0.ɵɵelement(1, "i");
|
195
|
+
i0.ɵɵelementEnd();
|
151
196
|
} if (rf & 2) {
|
152
197
|
const ctx_r1 = i0.ɵɵnextContext(4);
|
153
|
-
i0.ɵɵadvance();
|
154
198
|
i0.ɵɵpropertyInterpolate("title", ctx_r1.cleariconhint);
|
155
199
|
i0.ɵɵadvance();
|
156
200
|
i0.ɵɵclassMap(ctx_r1.cleariconclass);
|
157
201
|
} }
|
158
|
-
function
|
159
|
-
i0.ɵɵ
|
160
|
-
i0.ɵɵ
|
161
|
-
i0.ɵɵ
|
162
|
-
i0.ɵɵ
|
202
|
+
function FileUploadComponent_ul_4_ng_container_1_li_1_div_18_Template(rf, ctx) { if (rf & 1) {
|
203
|
+
const _r10 = i0.ɵɵgetCurrentView();
|
204
|
+
i0.ɵɵelementStart(0, "div", 45)(1, "a", 54);
|
205
|
+
i0.ɵɵlistener("click", function FileUploadComponent_ul_4_ng_container_1_li_1_div_18_Template_a_click_1_listener($event) { i0.ɵɵrestoreView(_r10); const ft_r7 = i0.ɵɵnextContext(2).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onFileDelete($event, ft_r7)); });
|
206
|
+
i0.ɵɵelement(2, "i", 55);
|
207
|
+
i0.ɵɵelementEnd()();
|
163
208
|
} if (rf & 2) {
|
164
|
-
const
|
165
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
166
|
-
i0.ɵɵpropertyInterpolate("title", ft_r7.errMsg || ctx_r1.appLocale.MESSAGE_FILE_UPLOAD_FAILED);
|
209
|
+
const ctx_r1 = i0.ɵɵnextContext(4);
|
167
210
|
i0.ɵɵadvance();
|
168
|
-
i0.ɵɵ
|
211
|
+
i0.ɵɵpropertyInterpolate("title", ctx_r1.deleteiconhint);
|
169
212
|
} }
|
170
|
-
function
|
171
|
-
i0.ɵɵelementStart(0, "li",
|
172
|
-
i0.ɵɵelement(2, "div",
|
213
|
+
function FileUploadComponent_ul_4_ng_container_1_li_1_Template(rf, ctx) { if (rf & 1) {
|
214
|
+
i0.ɵɵelementStart(0, "li", 32)(1, "div", 33);
|
215
|
+
i0.ɵɵelement(2, "div", 34);
|
173
216
|
i0.ɵɵpipe(3, "fileIconClass");
|
174
|
-
i0.ɵɵelementStart(4, "div",
|
217
|
+
i0.ɵɵelementStart(4, "div", 35)(5, "p", 36)(6, "span", 37);
|
175
218
|
i0.ɵɵtext(7);
|
176
219
|
i0.ɵɵelementEnd();
|
177
|
-
i0.ɵɵ
|
178
|
-
i0.ɵɵ
|
220
|
+
i0.ɵɵtemplate(8, FileUploadComponent_ul_4_ng_container_1_li_1_span_8_Template, 2, 5, "span", 38);
|
221
|
+
i0.ɵɵelement(9, "br");
|
222
|
+
i0.ɵɵtemplate(10, FileUploadComponent_ul_4_ng_container_1_li_1_span_10_Template, 3, 4, "span", 39)(11, FileUploadComponent_ul_4_ng_container_1_li_1_span_11_Template, 2, 6, "span", 40)(12, FileUploadComponent_ul_4_ng_container_1_li_1_span_12_Template, 2, 0, "span", 41);
|
179
223
|
i0.ɵɵelementEnd();
|
180
|
-
i0.ɵɵtemplate(
|
224
|
+
i0.ɵɵtemplate(13, FileUploadComponent_ul_4_ng_container_1_li_1_div_13_Template, 2, 4, "div", 42)(14, FileUploadComponent_ul_4_ng_container_1_li_1_div_14_Template, 2, 1, "div", 43);
|
181
225
|
i0.ɵɵelementEnd();
|
182
|
-
i0.ɵɵtemplate(
|
226
|
+
i0.ɵɵtemplate(15, FileUploadComponent_ul_4_ng_container_1_li_1_div_15_Template, 3, 0, "div", 44);
|
227
|
+
i0.ɵɵelementStart(16, "div", 45);
|
228
|
+
i0.ɵɵtemplate(17, FileUploadComponent_ul_4_ng_container_1_li_1_a_17_Template, 2, 4, "a", 46);
|
229
|
+
i0.ɵɵelementEnd();
|
230
|
+
i0.ɵɵtemplate(18, FileUploadComponent_ul_4_ng_container_1_li_1_div_18_Template, 3, 1, "div", 44);
|
183
231
|
i0.ɵɵelementEnd()();
|
184
232
|
} if (rf & 2) {
|
185
233
|
const ft_r7 = i0.ɵɵnextContext().$implicit;
|
186
234
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
187
235
|
i0.ɵɵadvance(2);
|
188
|
-
i0.ɵɵclassMapInterpolate1("media-left media-middle file-icon ", i0.ɵɵpipeBind1(3,
|
236
|
+
i0.ɵɵclassMapInterpolate1("media-left media-middle file-icon ", i0.ɵɵpipeBind1(3, 14, ctx_r1.getFileExtension(ft_r7.name)), "");
|
189
237
|
i0.ɵɵpropertyInterpolate("title", ctx_r1.getFileExtension(ft_r7.name));
|
190
238
|
i0.ɵɵadvance(5);
|
191
|
-
i0.ɵɵtextInterpolate(ft_r7.name);
|
239
|
+
i0.ɵɵtextInterpolate(ft_r7.storageName || ft_r7.name);
|
240
|
+
i0.ɵɵadvance();
|
241
|
+
i0.ɵɵproperty("ngIf", ft_r7.status === "success" && (!ctx_r1.datasource || ctx_r1.datasource && (ft_r7._response == null ? null : ft_r7._response.success)));
|
192
242
|
i0.ɵɵadvance(2);
|
193
243
|
i0.ɵɵproperty("ngIf", ft_r7.fileLength !== 0);
|
194
244
|
i0.ɵɵadvance();
|
195
|
-
i0.ɵɵproperty("ngIf", ft_r7.status === "
|
245
|
+
i0.ɵɵproperty("ngIf", ft_r7.status === "error");
|
196
246
|
i0.ɵɵadvance();
|
197
|
-
i0.ɵɵproperty("ngIf", ft_r7.status === "
|
247
|
+
i0.ɵɵproperty("ngIf", ft_r7.status === "error");
|
198
248
|
i0.ɵɵadvance();
|
199
|
-
i0.ɵɵproperty("ngIf", ft_r7.status === "
|
249
|
+
i0.ɵɵproperty("ngIf", ft_r7.status === "onProgress" || ctx_r1.showprogressbar);
|
200
250
|
i0.ɵɵadvance();
|
251
|
+
i0.ɵɵproperty("ngIf", (ft_r7.status === "onProgress" || ctx_r1.showprogressbar && ctx_r1.showprogressbarpercentage) && ft_r7.progress);
|
252
|
+
i0.ɵɵadvance();
|
253
|
+
i0.ɵɵproperty("ngIf", ft_r7.status === "onProgress" || ft_r7.status === "queued");
|
254
|
+
i0.ɵɵadvance(2);
|
201
255
|
i0.ɵɵproperty("ngIf", ctx_r1.cleariconclass !== "" && ft_r7.status !== "onProgress");
|
202
256
|
i0.ɵɵadvance();
|
203
|
-
i0.ɵɵproperty("ngIf", ft_r7.status === "
|
257
|
+
i0.ɵɵproperty("ngIf", ft_r7.status === "success" && (!ctx_r1.datasource || ctx_r1.datasource && (ft_r7._response == null ? null : ft_r7._response.success)));
|
204
258
|
} }
|
205
|
-
function
|
206
|
-
i0.ɵɵ
|
207
|
-
i0.ɵɵtemplate(1,
|
208
|
-
i0.ɵɵ
|
259
|
+
function FileUploadComponent_ul_4_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
260
|
+
i0.ɵɵelementContainerStart(0);
|
261
|
+
i0.ɵɵtemplate(1, FileUploadComponent_ul_4_ng_container_1_li_1_Template, 19, 16, "li", 31);
|
262
|
+
i0.ɵɵelementContainerEnd();
|
209
263
|
} if (rf & 2) {
|
210
264
|
const ft_r7 = ctx.$implicit;
|
211
265
|
i0.ɵɵadvance();
|
212
266
|
i0.ɵɵproperty("ngIf", ft_r7.status !== "abort");
|
213
267
|
} }
|
214
268
|
function FileUploadComponent_ul_4_Template(rf, ctx) { if (rf & 1) {
|
215
|
-
i0.ɵɵelementStart(0, "ul",
|
216
|
-
i0.ɵɵtemplate(1,
|
269
|
+
i0.ɵɵelementStart(0, "ul", 29);
|
270
|
+
i0.ɵɵtemplate(1, FileUploadComponent_ul_4_ng_container_1_Template, 2, 1, "ng-container", 30);
|
217
271
|
i0.ɵɵelementEnd();
|
218
272
|
} if (rf & 2) {
|
219
273
|
const ctx_r1 = i0.ɵɵnextContext();
|
220
274
|
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction2(2, _c2, ctx_r1.filelistheight, ctx_r1.overflow));
|
221
275
|
i0.ɵɵadvance();
|
222
|
-
i0.ɵɵproperty("ngForOf", ctx_r1.
|
276
|
+
i0.ɵɵproperty("ngForOf", ctx_r1.uploadedFiles);
|
223
277
|
} }
|
224
278
|
function FileUploadComponent_ul_5_li_1_Template(rf, ctx) { if (rf & 1) {
|
225
|
-
i0.ɵɵelementStart(0, "li",
|
226
|
-
i0.ɵɵelement(2, "div",
|
227
|
-
i0.ɵɵelementStart(3, "div",
|
279
|
+
i0.ɵɵelementStart(0, "li", 58)(1, "div", 33);
|
280
|
+
i0.ɵɵelement(2, "div", 59);
|
281
|
+
i0.ɵɵelementStart(3, "div", 35)(4, "p", 60)(5, "label", 37);
|
228
282
|
i0.ɵɵtext(6);
|
229
283
|
i0.ɵɵelementEnd();
|
230
284
|
i0.ɵɵelement(7, "br");
|
231
285
|
i0.ɵɵelementEnd()();
|
232
|
-
i0.ɵɵelementStart(8, "div",
|
233
|
-
i0.ɵɵelement(9, "span",
|
286
|
+
i0.ɵɵelementStart(8, "div", 45);
|
287
|
+
i0.ɵɵelement(9, "span", 61);
|
234
288
|
i0.ɵɵelementEnd()()();
|
235
289
|
} if (rf & 2) {
|
236
|
-
const
|
290
|
+
const ft_r11 = ctx.$implicit;
|
237
291
|
i0.ɵɵadvance(6);
|
238
|
-
i0.ɵɵtextInterpolate(
|
292
|
+
i0.ɵɵtextInterpolate(ft_r11.name);
|
239
293
|
} }
|
240
294
|
function FileUploadComponent_ul_5_Template(rf, ctx) { if (rf & 1) {
|
241
|
-
i0.ɵɵelementStart(0, "ul",
|
242
|
-
i0.ɵɵtemplate(1, FileUploadComponent_ul_5_li_1_Template, 10, 1, "li",
|
295
|
+
i0.ɵɵelementStart(0, "ul", 56);
|
296
|
+
i0.ɵɵtemplate(1, FileUploadComponent_ul_5_li_1_Template, 10, 1, "li", 57);
|
243
297
|
i0.ɵɵelementEnd();
|
244
298
|
} if (rf & 2) {
|
245
299
|
const ctx_r1 = i0.ɵɵnextContext();
|
@@ -356,8 +410,11 @@ export class FileUploadComponent extends StylableComponent {
|
|
356
410
|
* @param $files
|
357
411
|
*/
|
358
412
|
onSelectEventCall($event, $files) {
|
359
|
-
|
413
|
+
$files.forEach(file => {
|
414
|
+
file.uniqueId = this.idGenerator.nextUid();
|
415
|
+
});
|
360
416
|
this.selectedFiles = $files;
|
417
|
+
this.uploadedFiles = this.multiple ? [...this.uploadedFiles, ...$files] : $files;
|
361
418
|
setTimeout(() => {
|
362
419
|
this.invokeEventCallback('select', {
|
363
420
|
$event: $.extend($event.$files || {}, $files),
|
@@ -379,12 +436,11 @@ export class FileUploadComponent extends StylableComponent {
|
|
379
436
|
}
|
380
437
|
/*this function to clear the specified file. if argument is not provided, it clears the complete list */
|
381
438
|
clear(fileObj) {
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
}
|
439
|
+
this.selectedFiles = (fileObj) ? this.clearFile(this.selectedFiles, fileObj) : [];
|
440
|
+
this.uploadedFiles = (fileObj) ? this.clearFile(this.uploadedFiles, fileObj) : [];
|
441
|
+
}
|
442
|
+
clearFile(files, fileObj) {
|
443
|
+
return files.filter((file) => file?._response?.fileName !== fileObj?._response?.fileName || file?.name !== fileObj?.name || file !== fileObj);
|
388
444
|
}
|
389
445
|
/*this function to set the class names for clear icon */
|
390
446
|
setClearIconClass(classValue) {
|
@@ -412,34 +468,36 @@ export class FileUploadComponent extends StylableComponent {
|
|
412
468
|
}
|
413
469
|
// Make call if there are valid files else no call is made
|
414
470
|
if ($files.length) {
|
415
|
-
this.progressObservable = new Subject();
|
416
471
|
// EVENT: ON_BEFORE_SELECT
|
417
472
|
beforeSelectVal = this.invokeEventCallback('beforeselect', {
|
418
473
|
$event: $.extend($event.$files || {}, $files),
|
419
474
|
files: $files
|
420
475
|
});
|
421
476
|
if (this.datasource) {
|
422
|
-
this.
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
if (file.
|
428
|
-
file.
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
file.
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
477
|
+
if (!this.uploadProgressSubscription) {
|
478
|
+
this.progressObservable = new Subject();
|
479
|
+
this.datasource._progressObservable = this.progressObservable;
|
480
|
+
this.uploadProgressSubscription = this.datasource._progressObservable.asObservable().subscribe((progressObj) => {
|
481
|
+
forEach(this.uploadedFiles, (file) => {
|
482
|
+
if (file.name === progressObj.fileName && file.uniqueId === progressObj.uniqueId) {
|
483
|
+
file.progress = progressObj.progress;
|
484
|
+
if (file.progress === 100) {
|
485
|
+
file.status = 'success';
|
486
|
+
}
|
487
|
+
else {
|
488
|
+
file.status = progressObj.status;
|
489
|
+
if (progressObj.errMsg) {
|
490
|
+
file.errMsg = progressObj.errMsg;
|
491
|
+
this.invokeEventCallback('error', {
|
492
|
+
$event,
|
493
|
+
files: file
|
494
|
+
});
|
495
|
+
}
|
438
496
|
}
|
439
497
|
}
|
440
|
-
}
|
498
|
+
});
|
441
499
|
});
|
442
|
-
}
|
500
|
+
}
|
443
501
|
}
|
444
502
|
else {
|
445
503
|
this.selectedFiles = $files;
|
@@ -450,6 +508,43 @@ export class FileUploadComponent extends StylableComponent {
|
|
450
508
|
}
|
451
509
|
}
|
452
510
|
}
|
511
|
+
onFileDelete($event, file) {
|
512
|
+
if (!file) {
|
513
|
+
return;
|
514
|
+
}
|
515
|
+
const beforeDeleteVal = this.invokeEventCallback('beforedelete', { $event: file });
|
516
|
+
if (beforeDeleteVal !== false) {
|
517
|
+
this.dialogService.showAppConfirmDialog({
|
518
|
+
title: "Delete file",
|
519
|
+
message: "Are you sure you want to delete this file?",
|
520
|
+
oktext: "Ok",
|
521
|
+
canceltext: "Cancel",
|
522
|
+
onOk: () => {
|
523
|
+
if (this.deletedatasource) {
|
524
|
+
this.deletedatasource.setInput('file', file._response.fileName || file.name);
|
525
|
+
if (!this.deleteProgressSubscription) {
|
526
|
+
this.deleteFileObservable = new Subject();
|
527
|
+
this.deletedatasource._deleteFileObservable = this.deleteFileObservable;
|
528
|
+
this.deletedatasource._deleteFileObservable.asObservable().subscribe((response) => {
|
529
|
+
if (response.status === "success") {
|
530
|
+
this.selectedFiles = this.selectedFiles.filter((fileObj) => file !== fileObj) || [];
|
531
|
+
this.uploadedFiles = this.uploadedFiles.filter((fileObj) => file !== fileObj) || [];
|
532
|
+
}
|
533
|
+
});
|
534
|
+
}
|
535
|
+
}
|
536
|
+
this.invokeEventCallback('delete', { $event: file });
|
537
|
+
this.dialogService.closeAppConfirmDialog();
|
538
|
+
},
|
539
|
+
onCancel: () => {
|
540
|
+
this.dialogService.closeAppConfirmDialog();
|
541
|
+
},
|
542
|
+
onOpen: () => {
|
543
|
+
$('.cancel-action').focus();
|
544
|
+
}
|
545
|
+
});
|
546
|
+
}
|
547
|
+
}
|
453
548
|
// Prevent default behavior (Prevent file from being opened)
|
454
549
|
dragOverHandler($event) {
|
455
550
|
$event.preventDefault();
|
@@ -527,12 +622,13 @@ export class FileUploadComponent extends StylableComponent {
|
|
527
622
|
}
|
528
623
|
super.onPropertyChange(key, nv, ov);
|
529
624
|
}
|
530
|
-
constructor(inj, app, onSelectEvt, explicitContext) {
|
625
|
+
constructor(inj, app, onSelectEvt, dialogService, explicitContext) {
|
531
626
|
super(inj, WIDGET_CONFIG, explicitContext);
|
532
627
|
this.app = app;
|
533
628
|
this.onSelectEvt = onSelectEvt;
|
629
|
+
this.dialogService = dialogService;
|
534
630
|
this.selectedFiles = [];
|
535
|
-
this.
|
631
|
+
this.uploadedFiles = [];
|
536
632
|
this.selectedFolders = [];
|
537
633
|
this.fileTransfers = {};
|
538
634
|
this.caption = 'Upload';
|
@@ -558,12 +654,7 @@ export class FileUploadComponent extends StylableComponent {
|
|
558
654
|
this.defaultAllowedExtensions = this.allowedFileUploadExtensions.split(',').map(item => item.trim()).map(item => item.endsWith('/*') ? item : `.${item}`);
|
559
655
|
this.chooseFilter = this.defaultAllowedExtensions.includes('*/*') ? '' : this.defaultAllowedExtensions;
|
560
656
|
this.fileUploadMessage = 'Drop your files here or click here to browse';
|
561
|
-
this.
|
562
|
-
fileName: '',
|
563
|
-
path: '',
|
564
|
-
length: '',
|
565
|
-
status: ''
|
566
|
-
};
|
657
|
+
this.idGenerator = new IDGenerator('file-');
|
567
658
|
this.uploadUrl = 'services';
|
568
659
|
// styler(this.nativeElement, this);
|
569
660
|
}
|
@@ -583,13 +674,19 @@ export class FileUploadComponent extends StylableComponent {
|
|
583
674
|
document.removeEventListener('drop', this.dropCb);
|
584
675
|
document.removeEventListener('mouseleave', this.dropCb);
|
585
676
|
super.ngOnDestroy();
|
677
|
+
const subscriptions = [this.uploadProgressSubscription, this.deleteProgressSubscription];
|
678
|
+
subscriptions.forEach(subscription => {
|
679
|
+
if (subscription) {
|
680
|
+
subscription.unsubscribe();
|
681
|
+
}
|
682
|
+
});
|
586
683
|
}
|
587
|
-
static { this.ɵfac = function FileUploadComponent_Factory(t) { return new (t || FileUploadComponent)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i1.App), i0.ɵɵinjectAttribute('select.event'), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
|
684
|
+
static { this.ɵfac = function FileUploadComponent_Factory(t) { return new (t || FileUploadComponent)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i1.App), i0.ɵɵinjectAttribute('select.event'), i0.ɵɵdirectiveInject(i1.AbstractDialogService), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
|
588
685
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FileUploadComponent, selectors: [["", "wmFileUpload", ""]], features: [i0.ɵɵProvidersFeature([
|
589
686
|
provideAsWidgetRef(FileUploadComponent)
|
590
|
-
]), i0.ɵɵInheritDefinitionFeature], attrs: _c0, decls: 6, vars: 5, consts: [["init-widget", "", 1, "app-fileupload"], ["class", "app-multi-file-upload", 4, "ngIf"], ["class", "app-single-file-upload", 4, "ngIf"], ["focus-target", "", "class", "app-button btn btn-default", 3, "disabled", "click", 4, "ngIf"], ["class", "list-group file-upload", 3, "ngStyle", 4, "ngIf"], ["class", "list-group file-upload", 3, "ngStyle", "title", 4, "ngIf"], [1, "app-multi-file-upload"], ["id", "dropzone", 1, "drop-box", 3, "click", "dragover", "drop", "ngClass"], [1, "message"], [1, "
|
687
|
+
]), i0.ɵɵInheritDefinitionFeature], attrs: _c0, decls: 6, vars: 5, consts: [["init-widget", "", 1, "app-fileupload"], ["class", "app-multi-file-upload", 4, "ngIf"], ["class", "app-single-file-upload", 4, "ngIf"], ["focus-target", "", "class", "app-button btn btn-default", 3, "disabled", "click", 4, "ngIf"], ["class", "list-group file-upload", "tabindex", "0", 3, "ngStyle", 4, "ngIf"], ["class", "list-group file-upload", 3, "ngStyle", "title", 4, "ngIf"], [1, "app-multi-file-upload"], ["id", "dropzone", 1, "drop-box", 3, "click", "dragover", "drop", "ngClass"], [1, "message"], [1, "upload-label", 3, "innerHtml"], [1, "form-horizontal", 3, "name"], ["class", "file-input", "type", "file", "name", "files", "multiple", "", 3, "disabled", "accept", "click", "change", 4, "ngIf"], ["href", "javascript:void(0);", 1, "app-anchor", "upload-label"], ["class", "upload-extensions", 3, "innerHtml", 4, "ngIf"], ["class", "upload-extensions", 4, "ngIf"], ["type", "file", "name", "files", "multiple", "", 1, "file-input", 3, "click", "change", "disabled", "accept"], [1, "upload-extensions", 3, "innerHtml"], [1, "upload-extensions"], [1, "app-single-file-upload"], [1, "app-button-wrapper"], ["class", "file-input", "multiple", "", "name", "files", "type", "file", 3, "accept", "disabled", "change", "click", 4, "ngIf"], ["class", "file-input", "name", "files", "type", "file", 3, "accept", "disabled", "change", "click", 4, "ngIf"], ["id", "dropzone", "focus-target", "", 1, "app-button", "btn", "btn-default", 3, "ngClass"], ["aria-hidden", "true"], [1, "caption", 3, "innerHTML"], [1, "app-files-upload-status", "single"], ["multiple", "", "name", "files", "type", "file", 1, "file-input", 3, "change", "click", "accept", "disabled"], ["name", "files", "type", "file", 1, "file-input", 3, "change", "click", "accept", "disabled"], ["focus-target", "", 1, "app-button", "btn", "btn-default", 3, "click", "disabled"], ["tabindex", "0", 1, "list-group", "file-upload", 3, "ngStyle"], [4, "ngFor", "ngForOf"], ["class", "list-group-item file-upload-status", "tabindex", "0", 4, "ngIf"], ["tabindex", "0", 1, "list-group-item", "file-upload-status"], [1, "media", "upload-file-list"], [3, "title"], [1, "media-body", "media-middle", "file-details"], [1, "uploaddetails", "col-md-3"], [1, "upload-title"], [3, "class", 4, "ngIf"], ["class", "filesize", 4, "ngIf"], [3, "class", "title", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], ["class", "progress col-md-7 upload-progress", 4, "ngIf"], ["class", "col-md-1 upload-progress-percentage", 4, "ngIf"], ["class", "media-right media-middle", 4, "ngIf"], [1, "media-right", "media-middle"], ["href", "javascript:void(0)", "class", "btn btn-transparent btn-default status-icon", "type", "button", 3, "title", "click", 4, "ngIf"], [1, "filesize"], [1, "error-message"], [1, "progress", "col-md-7", "upload-progress"], [1, "progress-bar", "progress-bar-striped", 3, "ngClass", "ngStyle"], [1, "col-md-1", "upload-progress-percentage"], ["href", "javascript:void(0)", "type", "button", 1, "btn", "btn-transparent", "file-upload-stop", 3, "click"], [1, "wi", "wi-close"], ["href", "javascript:void(0)", "type", "button", 1, "btn", "btn-transparent", "btn-default", "status-icon", 3, "click", "title"], [1, "wi", "wi-delete"], [1, "list-group", "file-upload", 3, "ngStyle", "title"], ["class", "list-group-item file-upload-status", 4, "ngFor", "ngForOf"], [1, "list-group-item", "file-upload-status"], [1, "media-left", "media-middle", "file-icon", "fa", "fa-folder-o"], [1, "uploaddetails"], [1, "status-icon", "wi", "wi-cancel", "text-danger"]], template: function FileUploadComponent_Template(rf, ctx) { if (rf & 1) {
|
591
688
|
i0.ɵɵelementStart(0, "div", 0);
|
592
|
-
i0.ɵɵtemplate(1, FileUploadComponent_div_1_Template,
|
689
|
+
i0.ɵɵtemplate(1, FileUploadComponent_div_1_Template, 12, 13, "div", 1)(2, FileUploadComponent_div_2_Template, 9, 10, "div", 2)(3, FileUploadComponent_button_3_Template, 3, 5, "button", 3)(4, FileUploadComponent_ul_4_Template, 2, 5, "ul", 4)(5, FileUploadComponent_ul_5_Template, 2, 6, "ul", 5);
|
593
690
|
i0.ɵɵelementEnd();
|
594
691
|
} if (rf & 2) {
|
595
692
|
i0.ɵɵadvance();
|
@@ -599,7 +696,7 @@ export class FileUploadComponent extends StylableComponent {
|
|
599
696
|
i0.ɵɵadvance();
|
600
697
|
i0.ɵɵproperty("ngIf", ctx._isCordova);
|
601
698
|
i0.ɵɵadvance();
|
602
|
-
i0.ɵɵproperty("ngIf", ctx.
|
699
|
+
i0.ɵɵproperty("ngIf", ctx.uploadedFiles.length > 0);
|
603
700
|
i0.ɵɵadvance();
|
604
701
|
i0.ɵɵproperty("ngIf", ctx.selectedFolders.length > 0);
|
605
702
|
} }, dependencies: [i2.NgClass, i2.NgForOf, i2.NgIf, i2.NgStyle, i3.FileIconClassPipe, i3.FileSizePipe, i3.StateClassPipe], encapsulation: 2 }); }
|
@@ -608,15 +705,15 @@ export class FileUploadComponent extends StylableComponent {
|
|
608
705
|
type: Component,
|
609
706
|
args: [{ selector: '[wmFileUpload]', providers: [
|
610
707
|
provideAsWidgetRef(FileUploadComponent)
|
611
|
-
], template: "<div class=\"app-fileupload\" init-widget>\n <!-- drag and drop files UI in web -->\n <div class=\"app-multi-file-upload\" *ngIf=\"!_isMobileType && multiple\">\n <div id=\"dropzone\" class=\"drop-box\" (click)=\"triggerFileSelect()\" [ngClass]=\"{'highlight-drop-box' : highlightDropArea}\" (dragover)=\"dragOverHandler($event);\" (drop)=\"onFileDrop($event);\">\n <i class=\"{{iconclass}}\"></i>\n <div class=\"message\">\n <label [innerHtml]=\"caption\" class=\"
|
708
|
+
], template: "<div class=\"app-fileupload\" init-widget>\n <!-- drag and drop files UI in web -->\n <div class=\"app-multi-file-upload\" *ngIf=\"!_isMobileType && multiple\">\n <div id=\"dropzone\" class=\"drop-box\" (click)=\"triggerFileSelect()\" [ngClass]=\"{'highlight-drop-box' : highlightDropArea}\" (dragover)=\"dragOverHandler($event);\" (drop)=\"onFileDrop($event);\">\n <i class=\"{{iconclass}}\"></i>\n <div class=\"message\">\n <label [innerHtml]=\"caption\" class=\"upload-label\"></label>\n <form class=\"form-horizontal\" name=\"{{formName}}\">\n <input class=\"file-input\" [attr.aria-label]=\"hint || 'File selection field'\" type=\"file\" name=\"files\" *ngIf=\"multiple\" [disabled]=\"disabled\" [accept]=\"chooseFilter\" (click)=\"onFileElemClick($event)\" (change)=\"onFileSelect($event, $event.target.files)\" multiple >\n <a class=\"app-anchor upload-label\" href=\"javascript:void(0);\">{{ fileUploadMessage }}</a>\n </form>\n <label *ngIf=\"chooseFilter\" [innerHtml]=\"chooseFilter + ' only '\" class=\"upload-extensions\"></label>\n <span *ngIf=\"chooseFilter && maxfilesize\" class=\"upload-extensions\"> . </span>\n <label *ngIf=\"maxfilesize\" [innerHtml]=\"maxfilesize + 'MB max'\" class=\"upload-extensions\"></label>\n </div>\n </div>\n </div>\n <!-- single file upload in web and single , multiple file upload UI in mobile runmode -->\n <div class=\"app-single-file-upload\" *ngIf=\"!_isCordova && (!multiple || _isMobileType)\">\n <div class=\"app-button-wrapper\">\n <form class=\"form-horizontal\" name=\"{{formName}}\">\n <!-- support for file upload in Mobileapp in its runmode (Web) -->\n <input (change)=\"onFileSelect($event, $event.target.files)\" (click)=\"onFileElemClick($event)\" *ngIf=\"multiple\"\n [accept]=\"chooseFilter\" [attr.aria-label]=\"arialabel || 'File selection field'\" [disabled]=\"disabled\" class=\"file-input\"\n multiple name=\"files\" type=\"file\">\n <input (change)=\"onFileSelect($event, $event.target.files)\" (click)=\"onFileElemClick($event)\" *ngIf=\"!multiple\"\n [accept]=\"chooseFilter\" [attr.aria-label]=\"arialabel || 'File selection field'\" [disabled]=\"disabled\" class=\"file-input\"\n name=\"files\" type=\"file\">\n <button id=\"dropzone\" focus-target class=\"app-button btn btn-default\" [ngClass]=\"{'highlight-drop-box' : highlightDropArea}\">\n <i class=\"{{iconclass}}\" aria-hidden=\"true\"></i>\n <span class=\"caption\" [innerHTML]=\"caption\"></span>\n </button>\n </form>\n </div>\n <div class=\"app-files-upload-status single\"></div>\n </div>\n <!-- support for file upload in Mobile Application (device) -->\n <button *ngIf=\"_isCordova\" focus-target class=\"app-button btn btn-default\" (click)=\"openFileSelector()\" [disabled]=\"disabled\">\n <i class=\"{{iconclass}}\"></i>\n <span class=\"caption\" [innerHTML]=\"caption\"></span>\n </button>\n <!-- list of selectedfiles UI -->\n <ul class=\"list-group file-upload\" [ngStyle]=\"{height: filelistheight, overflow: overflow}\"\n *ngIf=\"uploadedFiles.length > 0\" tabindex=\"0\">\n <ng-container *ngFor=\"let ft of uploadedFiles\">\n <li class=\"list-group-item file-upload-status\" *ngIf=\"ft.status !== 'abort'\" tabindex=\"0\">\n <div class=\"media upload-file-list\">\n <div class=\"media-left media-middle file-icon {{getFileExtension(ft.name) | fileIconClass}}\" title=\"{{getFileExtension(ft.name)}}\"></div>\n <div class=\"media-body media-middle file-details\">\n <p class=\"uploaddetails col-md-3\">\n <span class=\"upload-title\">{{ ft.storageName || ft.name }}</span>\n <span *ngIf=\"ft.status === 'success' && (!datasource || (datasource && ft._response?.success))\"\n class=\"status-icon {{ft.status | stateClass }}\"></span>\n <br/>\n <span class=\"filesize\" *ngIf=\"ft.fileLength !== 0\">{{ft.size | filesize:0}}</span>\n <span *ngIf=\"ft.status === 'error'\"\n class=\"status-icon {{ft.status | stateClass }}\"\n title=\"{{ft.errMsg || this.appLocale.MESSAGE_FILE_UPLOAD_FAILED}}\"></span>\n <span *ngIf=\"ft.status === 'error'\" class=\"error-message\">Upload Failed</span>\n </p>\n <div *ngIf=\"ft.status === 'onProgress' || showprogressbar\"\n class=\"progress col-md-7 upload-progress\">\n <div [ngClass]=\"ft.status === 'error' ? 'progress-bar-danger' : 'progress-bar-info'\"\n [ngStyle]=\"{width: (ft.progress +'%')}\"\n class=\"progress-bar progress-bar-striped\"></div>\n </div>\n <div *ngIf=\"(ft.status === 'onProgress' || showprogressbar && showprogressbarpercentage) && ft.progress \"\n class=\"col-md-1 upload-progress-percentage\">{{ ft.progress + '%' }}\n </div>\n </div>\n <div class=\"media-right media-middle\" *ngIf=\"ft.status === 'onProgress' || ft.status === 'queued'\">\n <a href=\"javascript:void(0)\" class=\"btn btn-transparent file-upload-stop\" type=\"button\"\n (click)=\"abortFileUpload(ft)\">\n <i class=\"wi wi-close\"></i>\n </a>\n </div>\n <div class=\"media-right media-middle\">\n <a href=\"javascript:void(0)\" (click)=\"clear(ft)\"\n *ngIf=\"cleariconclass !== '' && ft.status !== 'onProgress'\"\n class=\"btn btn-transparent btn-default status-icon\" title=\"{{cleariconhint}}\" type=\"button\">\n <i class=\"{{cleariconclass}}\"></i>\n </a>\n </div>\n <div class=\"media-right media-middle\" *ngIf=\"ft.status === 'success' && (!datasource || (datasource && ft._response?.success))\">\n <a href=\"javascript:void(0)\" (click)=\"onFileDelete($event, ft)\"\n class=\"btn btn-transparent btn-default status-icon\" title=\"{{deleteiconhint}}\" type=\"button\">\n <i class=\"wi wi-delete\"></i>\n </a>\n </div>\n </div>\n </li>\n </ng-container>\n </ul>\n <!-- list of selectedfolders UI to show the error in title -->\n <ul class=\"list-group file-upload\" [ngStyle]=\"{height: filelistheight, overflow: overflow}\" title=\"{{this.appLocale.MESSAGE_FOLDER_UPLOADS_NOT_ALLOWED}}\" *ngIf=\"selectedFolders.length > 0\" >\n <li *ngFor=\"let ft of selectedFolders\" class=\"list-group-item file-upload-status\">\n <div class=\"media upload-file-list\">\n <div class=\"media-left media-middle file-icon fa fa-folder-o\"></div>\n <div class=\"media-body media-middle file-details\">\n <p class=\"uploaddetails\">\n <label class=\"upload-title\">{{ft.name}}</label><br/>\n </p>\n </div>\n <div class=\"media-right media-middle\" >\n <span class=\"status-icon wi wi-cancel text-danger\"></span>\n </div>\n </div>\n </li>\n </ul>\n</div>\n" }]
|
612
709
|
}], () => [{ type: i0.Injector }, { type: i1.App }, { type: undefined, decorators: [{
|
613
710
|
type: Attribute,
|
614
711
|
args: ['select.event']
|
615
|
-
}] }, { type: undefined, decorators: [{
|
712
|
+
}] }, { type: i1.AbstractDialogService }, { type: undefined, decorators: [{
|
616
713
|
type: Inject,
|
617
714
|
args: ['EXPLICIT_CONTEXT']
|
618
715
|
}, {
|
619
716
|
type: Optional
|
620
717
|
}] }], null); })();
|
621
718
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FileUploadComponent, { className: "FileUploadComponent", filePath: "file-upload.component.ts", lineNumber: 27 }); })();
|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AgICByZXR1cm47XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBpZiAoZmlsZS5zaXplID4gTUFYRklMRVVQTE9BRF9TSVpFKSB7XG4gICAgICAgICAgICAgICAgY29uc3QgbXNnID0gYCR7dGhpcy5hcHBMb2NhbGUuTEFCRUxfRklMRV9FWENFRURfVkFMSURBVElPTl9NRVNTQUdFfSAke01BWF9GSUxFX1VQTE9BRF9GT1JNQVRURURfU0laRX1gO1xuICAgICAgICAgICAgICAgIHRoaXMuaGFuZGxlRXJyb3JGaWxlcygnSU5WQUxJRF9GSUxFX1NJWkUnLCBtc2csIGZpbGUsIGVycm9yRmlsZXMpO1xuICAgICAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHZhbGlkRmlsZXMucHVzaChmaWxlKTtcbiAgICAgICAgfSk7XG4gICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICB2YWxpZEZpbGVzOiB2YWxpZEZpbGVzLFxuICAgICAgICAgICAgZXJyb3JGaWxlczogZXJyb3JGaWxlc1xuICAgICAgICB9O1xuICAgIH1cblxuICAgIGhhbmRsZUVycm9yRmlsZXMoa2V5LCBtc2csIGZpbGUsIGVycm9yRmlsZXMpIHtcbiAgICAgICAgLy8gQ2hlY2sgd2hldGhlciB0aGUgZXJyb3IgY2FsbGJhY2sgZXhpc3Qgb3Igbm90LiBJZiBpdCBleGlzdHMgdGhlbiBkb250IHNob3cgdGFvc3RlciBtZXNzYWdlXG4gICAgICAgIGlmICghdGhpcy5oYXNFdmVudENhbGxiYWNrKCdlcnJvcicpKSB7XG4gICAgICAgICAgICB0aGlzLmFwcC5ub3RpZnlBcHAobXNnLCAnRXJyb3InKTtcbiAgICAgICAgfVxuICAgICAgICBjb25zdCBlcnJvciA9IHtcbiAgICAgICAgICAgIGtleToga2V5LFxuICAgICAgICAgICAgbWVzc2FnZTogbXNnXG4gICAgICAgIH07XG4gICAgICAgIGZpbGUuZXJyb3IgPSBlcnJvcjtcb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gICAgICAgICAgICAgICAgICAgICAgIGZpbGUuc3RhdHVzID0gJ3N1Y2Nlc3MnO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZpbGUuc3RhdHVzID0gcHJvZ3Jlc3NPYmouc3RhdHVzO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAocHJvZ3Jlc3NPYmouZXJyTXNnKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmaWxlLmVyck1zZyA9IHByb2dyZXNzT2JqLmVyck1zZztcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuaW52b2tlRXZlbnRDYWxsYmFjaygnZXJyb3InLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJGV2ZW50LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZpbGVzOiBmaWxlXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIHRoaXMuc2VsZWN0ZWRGaWxlcyA9ICRmaWxlcztcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGlmIChiZWZvcmVTZWxlY3RWYWwgIT09IGZhbHNlKSB7XG4gICAgICAgICAgICAgICAgLy8gRVZFTlQ6IE9OX1NFTEVDVFxuICAgICAgICAgICAgICAgIHRoaXMub25TZWxlY3RFdmVudENhbGwoJGV2ZW50LCAkZmlsZXMpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuXG4gICAgLy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ZXMuKi9cbiAgICAgICAgc3dpdGNoIChrZXkpIHtcbiAgICAgICAgICAgIGNhc2UgJ3VwbG9hZHBhdGgnOlxuICAgICAgICAgICAgICAgIC8vIFRPRE8gU3Jpbml2YXM6IHdoeSBkbyB3ZSBuZWVkIHVwbG9hZHBhdGhcbiAgICAgICAgICAgICAgICB0aGlzLmNoYW5nZVNlcnZlclVwbG9hZFBhdGgobnYpO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgY2FzZSAnY29udGVudHR5cGUnOlxuICAgICAgICAgICAgICAgIGlmICh0aGlzLmRlZmF1bHRBbGxvd2VkRXh0ZW5zaW9ucy5pbmNsdWRlcygnKi8qJykpIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5jaG9vc2VGaWx0ZXIgPSBudi5zcGxpdCgnICcpLmpvaW4oJywnKVxuICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuY2hvb3NlRmlsdGVyID0gbnYuc3BsaXQoJyAnKS5maWx0ZXIoaXRlbSA9PiB0aGlzLmRlZmF1bHRBbGxvd2VkRXh0ZW5zaW9ucy5pbmNsdWRlcyhpdGVtKSB8fCB0aGlzLmlzTWltZVR5cGUoaXRlbSkpLmpvaW4oJywnKTtcbiAgICAgICAgICAgICAgICAgICAgaWYgKGlzRW1wdHkodGhpcy5jaG9vc2VGaWx0ZXIpKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLmNob29zZUZpbHRlciA9IHRoaXMuZGVmYXVsdEFsbG93ZWRFeHRlbnNpb25zO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICBjYXNlICdtdWx0aXBsZSc6XG4gICAgICAgICAgICAgICAgdGhpcy5mb3JtTmFtZSA9IHRoaXMubmFtZSArICh0aGlzLm11bHRpcGxlID8gJy1tdWx0aXBsZS1maWx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Zm9sZGVyLW9cIj48L2Rpdj5cbiAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwibWVkaWEtYm9keSBtZWRpYS1taWRkbGUgZmlsZS1kZXRhaWxzXCI+XG4gICAgICAgICAgICAgICAgICAgIDxwIGNsYXNzPVwidXBsb2FkZGV0YWlsc1wiPlxuICAgICAgICAgICAgICAgICAgICAgICAgPGxhYmVsIGNsYXNzPVwidXBsb2FkLXRpdGxlXCI+e3tmdC5uYW1lfX08L2xhYmVsPjxici8+XG4gICAgICAgICAgICAgICAgICAgIDwvcD5cbiAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwibWVkaWEtcmlnaHQgbWVkaWEtbWlkZGxlXCIgPlxuICAgICAgICAgICAgICAgICAgICA8c3BhbiBjbGFzcz1cInN0YXR1cy1pY29uICB3aSB3aS1jYW5jZWwgdGV4dC1kYW5nZXJcIj48L3NwYW4+XG4gICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgPC9saT5cbiAgICA8L3VsPlxuPC9kaXY+XG4iXX0=
|
719
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS11cGxvYWQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29tcG9uZW50cy93aWRnZXRzL2lucHV0L2ZpbGUtdXBsb2FkL3NyYy9maWxlLXVwbG9hZC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb21wb25lbnRzL3dpZGdldHMvaW5wdXQvZmlsZS11cGxvYWQvc3JjL2ZpbGUtdXBsb2FkLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBZ0IsU0FBUyxFQUFFLFNBQVMsRU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lO1xuICAgICAgICAgICAgICAgICAgICB0aGlzLnVwbG9hZFByb2dyZXNzU3Vic2NyaXB0aW9uID0gdGhpcy5kYXRhc291cmNlLl9wcm9ncmVzc09ic2VydmFibGUuYXNPYnNlcnZhYmxlKCkuc3Vic2NyaWJlKChwcm9ncmVzc09iaikgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgZm9yRWFjaCh0aGlzLnVwbG9hZGVkRmlsZXMsIChmaWxlKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGZpbGUubmFtZSA9PT0gcHJvZ3Jlc3NPYmouZmlsZU5hbWUgJiYgZmlsZS51bmlxdWVJZCA9PT0gcHJvZ3Jlc3NPYmoudW5pcXVlSWQpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZmlsZS5wcm9ncmVzcyA9IHByb2dyZXNzT2JqLnByb2dyZXNzO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoZmlsZS5wcm9ncmVzcyA9PT0gMTAwKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmaWxlLnN0YXR1cyA9ICdzdWNjZXNzJztcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZpbGUuc3RhdHVzID0gcHJvZ3Jlc3NPYmouc3RhdHVzO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHByb2dyZXNzT2JqLmVyck1zZykge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZpbGUuZXJyTXNnID0gcHJvZ3Jlc3NPYmouZXJyTXNnO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuaW52b2tlRXZlbnRDYWxsYmFjaygnZXJyb3InLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICRldmVudCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZmlsZXM6IGZpbGVcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIHRoaXMuc2VsZWN0ZWRGaWxlcyA9ICRmaWxlcztcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGlmIChiZWZvcmVTZWxlY3RWYWwgIT09IGZhbHNlKSB7XG4gICAgICAgICAgICAgICAgLy8gRVZFTlQ6IE9OX1NFTEVDVFxuICAgICAgICAgICAgICAgIHRoaXMub25TZWxlY3RFdmVudENhbGwoJGV2ZW50LCAkZmlsZXMpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuXG4gICAgb25GaWxlRGVsZXRlKCRldmVudCwgZmlsZSkge1xuICAgICAgICBpZighZmlsZSkge1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG5cbiAgICAgICAgY29uc3QgYmVmb3JlRGVsZXRlVmFsID0gdGhpcy5pbnZva2VFdmVudENhbGxiYWNrKCdiZWZvcmVkZWxldGUnLCB7ICRldmVudDogZmlsZSB9KTtcblxuICAgICAgICBpZiAoYmVmb3JlRGVsZXRlVmFsICE9PSBmYWxzZSkge1xuICAgICAgICAgICAgdGhpcy5kaWFsb2dTZXJ2aWNlLnNob3dBcHBDb25maXJtRGlhbG9nKHtcbiAgICAgICAgICAgICAgICB0aXRsZTogXCJEZWxldGUgZmlsZVwiLFxuICAgICAgICAgICAgICAgIG1lc3NhZ2U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bGVPYmopIHx8IFtdO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy51cGxvYWRlZEZpbGVzID0gdGhpcy51cGxvYWRlZEZpbGVzLmZpbHRlcigoZmlsZU9iaikgPT4gZmlsZSAhPT0gZmlsZU9iaikgfHwgW107XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB0aGlzLmludm9rZUV2ZW50Q2FsbGJhY2soJ2RlbGV0ZScsIHsgJGV2ZW50OiBmaWxlIH0pO1xuICAgICAgICAgICAgICAgICAgICB0aGlzLmRpYWxvZ1NlcnZpY2UuY2xvc2VBcHBDb25maXJtRGlhbG9nKCk7XG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICBvbkNhbmNlbDogKCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLmRpYWxvZ1NlcnZpY2UuY2xvc2VBcHBDb25maXJtRGlhbG9nKCk7XG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICBvbk9wZW46ICgpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgJCgnLmNhbmNlbC1hY3Rpb24nKS5mb2N1cygpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgLy8gUHJldmVudCBkZWZhdWx0IGJlaGF2aW9yIChQcmV2ZW50IGZpbGUgZnJvbSBiZWluZyBvcGVuZWQpXG4gICAgZHJhZ092ZXJIYW5kbGVyKCRldmVudCkge1xuICAgICAgICAkZXZlbnQucHJldmVudERlZmF1bHQoKTtcbiAgICAgICAgJGV2ZW50LnN0b3BQcm9wYWdhdGlvbigpO1xuICAgIH1cblxuICAgIC8vIEdldCB0aGUgZmlsZSBkYXRhIG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rO1xuICAgICAgICAgICAgY2FzZSAnY29udGVudHR5cGUnOlxuICAgICAgICAgICAgICAgIGlmICh0aGlzLmRlZmF1bHRBbGxvd2VkRXh0ZW5zaW9ucy5pbmNsdWRlcygnKi8qJykpIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5jaG9vc2VGaWx0ZXIgPSBudi5zcGxpdCgnICcpLmpvaW4oJywnKVxuICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuY2hvb3NlRmlsdGVyID0gbnYuc3BsaXQoJyAnKS5maWx0ZXIoaXRlbSA9PiB0aGlzLmRlZmF1bHRBbGxvd2VkRXh0ZW5zaW9ucy5pbmNsdWRlcyhpdGVtKSB8fCB0aGlzLmlzTWltZVR5cGUoaXRlbSkpLmpvaW4oJywnKTtcbiAgICAgICAgICAgICAgICAgICAgaWYgKGlzRW1wdHkodGhpcy5jaG9vc2VGaWx0ZXIpKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLmNob29zZUZpbHRlciA9IHRoaXMuZGVmYXVsdEFsbG93ZWRFeHRlbnNpb25zO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICBjYXNlICdtdWx0aXBsZSc6XG4gICAgICAgICAgICAgICAgdGhpcy5mb3JtTmFtZSA9IHRoaXMubmFtZSArICh0aGlzLm11bHRpcGxlID8gJy1tdWx0aXBsZS1maWxldXBsb2FkJyA6ICctc2luZ2xlLWZpbGV1cGxvYWQnKTtcbiAgICAgICAgICAgICAgICB0aGlzLmNhcHRpb24gPSB0aGlzLmdldENhcHRpb24odGhpcy5jYXB0aW9uLCB0aGlzLm11bHRpcGxlLCB0aGlzLl9pc01vYmlsZVR5cGUpO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgY2FzZSAnZmlsZXVwbG9hZG1lc3NhZ2UnOlx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4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPHNwYW4gKm5nSWY9XCJmdC5zdGF0dXMgPT09ICdzdWNjZXNzJyAmJiAoIWRhdGFzb3VyY2UgfHwgKGRhdGFzb3VyY2UgJiYgZnQuX3Jlc3BvbnNlPy5zdWNjZXNzKSlcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNsYXNzPVwic3RhdHVzLWljb24ge3tmdC5zdGF0dXMgfCBzdGF0ZUNsYXNzIH19XCI+PC9zcGFuPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxici8+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPHNwYW4gY2xhc3M9XCJmaWxlc2l6ZVwiICpuZ0lmPVwiZnQuZmlsZUxlbmd0aCAgIT09IDBcIj57e2Z0LnNpemUgfCBmaWxlc2l6ZTowfX08L3NwYW4+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPHNwYW4gKm5nSWY9XCJmdC5zdGF0dXMgPT09ICdlcnJvcidcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNsYXNzPVwic3RhdHVzLWljb24ge3tmdC5zdGF0dXMgfCBzdGF0ZUNsYXNzIH19XCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aXRsZT1cInt7ZnQuZXJyTXNnIHx8IHRoaXMuYXBwTG9jYWxlLk1FU1NBR0VfRklMRV9VUExPQURfRkFJTEVEfX1cIj48L3NwYW4+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPHNwYW4gKm5nSWY9XCJmdC5zdGF0dXMgPT09ICdlcnJvcidcIiBjbGFzcz1cImVycm9yLW1lc3NhZ2VcIj5VcGxvYWQgRmFpbGVkPC9zcGFuPlxuICAgICAgICAgICAgICAgICAgICAgICAgPC9wPlxuICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiAqbmdJZj1cImZ0LnN0YXR1cyA9PT0gJ29uUHJvZ3Jlc3MnIHx8IHNob3dwcm9ncmVzc2JhclwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNsYXNzPVwicHJvZ3Jlc3MgY29sLW1kLTcgdXBsb2FkLXByb2dyZXNzXCI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBbbmdDbGFzc109XCJmdC5zdGF0dXMgPT09ICdlcnJvcicgPyAncHJvZ3Jlc3MtYmFyLWRhbmdlcicgOiAncHJvZ3Jlc3MtYmFyLWluZm8nXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtuZ1N0eWxlXT1cInt3aWR0aDogKGZ0LnByb2dyZXNzICsnJScpfVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjbGFzcz1cInByb2dyZXNzLWJhciBwcm9ncmVzcy1iYXItc3RyaXBlZFwiPjwvZGl2PlxuICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICAgICAgICAgICAgICA8ZGl2ICpuZ0lmPVwiKGZ0LnN0YXR1cyA9PT0gJ29uUHJvZ3Jlc3MnIHx8IHNob3dwcm9ncmVzc2JhciAmJiBzaG93cHJvZ3Jlc3NiYXJwZXJjZW50YWdlKSAmJiBmdC5wcm9ncmVzcyBcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjbGFzcz1cImNvbC1tZC0xIHVwbG9hZC1wcm9ncmVzcy1wZXJjZW50YWdlXCI+e3sgZnQucHJvZ3Jlc3MgKyAnJScgfX1cbiAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cIm1lZGlhLXJpZ2h0IG1lZGlhLW1pZGRsZVwiICpuZ0lmPVwiZnQuc3RhdHVzID09PSAnb25Qcm9ncmVzcycgfHwgZnQuc3RhdHVzID09PSAncXVldWVkJ1wiPlxuICAgICAgICAgICAgICAgICAgICAgICAgPGEgaHJlZj1cImphdmFzY3JpcHQ6dm9pZCgwKVwiIGNsYXNzPVwiYnRuIGJ0bi10cmFuc3BhcmVudCBmaWxlLXVwbG9hZC1zdG9wXCIgdHlwZT1cImJ1dHRvblwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAoY2xpY2spPVwiYWJvcnRGaWxlVXBsb2FkKGZ0KVwiPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxpIGNsYXNzPVwid2kgd2ktY2xvc2VcIj48L2k+XG4gICAgICAgICAgICAgICAgICAgICAgICA8L2E+XG4gICAgICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwibWVkaWEtcmlnaHQgbWVkaWEtbWlkZGxlXCI+XG4gICAgICAgICAgICAgICAgICAgICAgICA8YSBocmVmPVwiamF2YXNjcmlwdDp2b2lkKDApXCIgKGNsaWNrKT1cImNsZWFyKGZ0KVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAqbmdJZj1cImNsZWFyaWNvbmNsYXNzICE9PSAnJyAmJiBmdC5zdGF0dXMgIT09ICdvblByb2dyZXNzJ1wiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICBjbGFzcz1cImJ0biBidG4tdHJhbnNwYXJlbnQgYnRuLWRlZmF1bHQgc3RhdHVzLWljb25cIiB0aXRsZT1cInt7Y2xlYXJpY29uaGludH19XCIgdHlwZT1cImJ1dHRvblwiPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxpIGNsYXNzPVwie3tjbGVhcmljb25jbGFzc319XCI+PC9pPlxuICAgICAgICAgICAgICAgICAgICAgICAgPC9hPlxuICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cIm1lZGlhLXJpZ2h0IG1lZGlhLW1pZGRsZVwiICpuZ0lmPVwiZnQuc3RhdHVzID09PSAnc3VjY2VzcycgJiYgKCFkYXRhc291cmNlIHx8IChkYXRhc291cm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