@wavemaker/app-ng-runtime 12.0.0-next.45503 → 12.0.0-rc.5849
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 +46 -38
- 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/tile/tile.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/data/form/form-field/form-field.build.mjs +2 -2
- 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/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 +5 -1
- 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 +46 -38
- 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 -2
- 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/fesm2022/index.mjs +8 -2
- 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 +1 -0
- app-ng-runtime/components/basic/default/bundles/index.umd.js +27 -18
- 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 +5 -5
- 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 +5 -4
- app-ng-runtime/components/basic/default/esm2022/video/video.props.mjs +2 -1
- app-ng-runtime/components/basic/default/fesm2022/index.mjs +27 -18
- 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 +1 -0
- app-ng-runtime/components/basic/progress/bundles/index.umd.js +12 -8
- app-ng-runtime/components/basic/progress/esm2022/progress-bar/progress-bar.component.mjs +4 -4
- 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 +12 -8
- 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 +1 -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 +11 -9
- app-ng-runtime/components/basic/search/esm2022/search.component.mjs +14 -13
- app-ng-runtime/components/basic/search/esm2022/search.props.mjs +2 -1
- app-ng-runtime/components/basic/search/fesm2022/index.mjs +11 -9
- app-ng-runtime/components/basic/search/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/basic/search/search.component.d.ts +1 -0
- app-ng-runtime/components/containers/accordion/bundles/index.umd.js +3 -3
- app-ng-runtime/components/containers/accordion/esm2022/accordion-pane/accordion-pane.component.mjs +4 -4
- app-ng-runtime/components/containers/accordion/fesm2022/index.mjs +3 -3
- 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/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/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 +3 -2
- app-ng-runtime/components/input/chips/esm2022/chips.component.mjs +3 -3
- app-ng-runtime/components/input/chips/esm2022/chips.props.mjs +2 -1
- app-ng-runtime/components/input/chips/fesm2022/index.mjs +3 -2
- 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 +166 -103
- 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/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 +50 -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 +166 -103
- 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/bundles/index.umd.js +12 -9
- 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/date/date.component.mjs +6 -6
- 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 +7 -7
- 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 +12 -9
- 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 +187 -100
- app-ng-runtime/components/input/file-upload/esm2022/file-upload.component.mjs +184 -102
- app-ng-runtime/components/input/file-upload/esm2022/file-upload.props.mjs +6 -1
- app-ng-runtime/components/input/file-upload/fesm2022/index.mjs +187 -100
- 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 +12 -10
- 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/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 +24 -27
@@ -55,6 +55,7 @@ export declare class TableComponent extends StylableComponent implements AfterCo
|
|
55
55
|
enablesort: boolean;
|
56
56
|
filtermode: any;
|
57
57
|
filteronkeypress: any;
|
58
|
+
isrowselectable: any;
|
58
59
|
searchlabel: any;
|
59
60
|
formposition: any;
|
60
61
|
gridclass: any;
|
@@ -74,6 +75,7 @@ export declare class TableComponent extends StylableComponent implements AfterCo
|
|
74
75
|
navigationalign: any;
|
75
76
|
nodatamessage: any;
|
76
77
|
pagesize: any;
|
78
|
+
currentpage: any;
|
77
79
|
prevData: any;
|
78
80
|
primaryKey: any[];
|
79
81
|
radioselect: any;
|
@@ -191,6 +193,7 @@ export declare class TableComponent extends StylableComponent implements AfterCo
|
|
191
193
|
};
|
192
194
|
filtermode: string;
|
193
195
|
filteronkeypress: boolean;
|
196
|
+
isrowselectable: boolean;
|
194
197
|
searchLabel: string;
|
195
198
|
rowActions: any[];
|
196
199
|
headerConfig: any[];
|
@@ -246,6 +249,10 @@ export declare class TableComponent extends StylableComponent implements AfterCo
|
|
246
249
|
setIsNextPageData: (value: any) => void;
|
247
250
|
setIsDataUpdatedByUser: (value: any) => void;
|
248
251
|
onDataRender: () => void;
|
252
|
+
getParentTableData: () => {
|
253
|
+
parentId: any;
|
254
|
+
parentPage: any;
|
255
|
+
};
|
249
256
|
onRowSelect: (row: any, e: any) => void;
|
250
257
|
assignSelectedItems: (row: any, e: any, rowInfo: any) => void;
|
251
258
|
onRowDblClick: (row: any, e: any) => void;
|
@@ -266,7 +273,7 @@ export declare class TableComponent extends StylableComponent implements AfterCo
|
|
266
273
|
onFormRender: ($row: any, e: any, operation: any, alwaysNewRow: any) => void;
|
267
274
|
onBeforeFormRender: (row: any, e: any, operation: any) => any;
|
268
275
|
registerRowNgClassWatcher: (rowData: any, index: any) => void;
|
269
|
-
registerColNgClassWatcher: (rowData: any, colDef: any, rowIndex: any, colIndex: any) => void;
|
276
|
+
registerColNgClassWatcher: (rowData: any, colDef: any, rowIndex: any, colIndex: any, summaryRow: any) => void;
|
270
277
|
clearCustomExpression: () => void;
|
271
278
|
clearRowDetailExpression: () => void;
|
272
279
|
generateCustomExpressions: (rowData: any, index: any, summaryRow?: any) => void;
|
@@ -60,10 +60,12 @@
|
|
60
60
|
i0__namespace.ɵɵelementEnd()();
|
61
61
|
} if (rf & 2) {
|
62
62
|
const ctx_r1 = i0__namespace.ɵɵnextContext();
|
63
|
-
i0__namespace.ɵɵproperty("closable", ctx_r1.closable)("iconclass", ctx_r1.iconclass)("iconurl", ctx_r1.iconurl)("iconwidth", ctx_r1.iconwidth)("iconheight", ctx_r1.iconheight)("iconmargin", ctx_r1.iconmargin)("heading", ctx_r1.title)("headinglevel", ctx_r1.headinglevel)("titleid", ctx_r1.titleId);
|
63
|
+
i0__namespace.ɵɵproperty("closable", ctx_r1.closable)("iconclass", ctx_r1.iconclass)("iconurl", ctx_r1.iconurl)("iconwidth", ctx_r1.iconwidth)("iconheight", ctx_r1.iconheight)("iconmargin", ctx_r1.iconmargin)("heading", ctx_r1.title)("headinglevel", ctx_r1.headinglevel)("title", ctx_r1.title)("titleid", ctx_r1.titleId);
|
64
64
|
i0__namespace.ɵɵadvance(2);
|
65
65
|
i0__namespace.ɵɵclassMapInterpolate1("app-dialog-message text-", ctx_r1.alerttype, "");
|
66
66
|
i0__namespace.ɵɵproperty("textContent", ctx_r1.message);
|
67
|
+
i0__namespace.ɵɵadvance(2);
|
68
|
+
i0__namespace.ɵɵattribute("aria-label", ctx_r1.oktext);
|
67
69
|
} }
|
68
70
|
const DIALOG_CLS = 'app-dialog modal-dialog app-alert-dialog';
|
69
71
|
const WIDGET_INFO = { widgetType: 'wm-alertdialog' };
|
@@ -105,8 +107,8 @@
|
|
105
107
|
} }, features: [i0__namespace.ɵɵProvidersFeature([
|
106
108
|
i3.provideAsWidgetRef(AlertDialogComponent),
|
107
109
|
i3.provideAsDialogRef(AlertDialogComponent)
|
108
|
-
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c1, decls: 2, vars: 0, consts: [["dialogTemplate", ""], ["wmDialogHeader", "", 3, "closable", "iconclass", "iconurl", "iconwidth", "iconheight", "iconmargin", "heading", "headinglevel", "titleid"], ["wmDialogBody", ""], [3, "textContent"], ["wmDialogFooter", ""], ["
|
109
|
-
i0__namespace.ɵɵtemplate(0, AlertDialogComponent_ng_template_0_Template, 5,
|
110
|
+
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c1, decls: 2, vars: 0, consts: [["dialogTemplate", ""], ["wmDialogHeader", "", 3, "closable", "iconclass", "iconurl", "iconwidth", "iconheight", "iconmargin", "heading", "headinglevel", "title", "titleid"], ["wmDialogBody", ""], [3, "textContent"], ["wmDialogFooter", ""], ["caption.bind", "oktext", "wmButton", "", 1, "btn-primary", "ok-action", 3, "click"]], template: function AlertDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
111
|
+
i0__namespace.ɵɵtemplate(0, AlertDialogComponent_ng_template_0_Template, 5, 15, "ng-template", null, 0, i0__namespace.ɵɵtemplateRefExtractor);
|
110
112
|
} }, dependencies: [i1__namespace.DialogBodyDirective, i1__namespace.DialogFooterDirective, i1__namespace.DialogHeaderComponent, i2__namespace.ButtonComponent, i3__namespace.TextContentDirective], encapsulation: 2 }); }
|
111
113
|
}
|
112
114
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(AlertDialogComponent, [{
|
@@ -114,7 +116,7 @@
|
|
114
116
|
args: [{ selector: 'div[wmAlertDialog]', providers: [
|
115
117
|
i3.provideAsWidgetRef(AlertDialogComponent),
|
116
118
|
i3.provideAsDialogRef(AlertDialogComponent)
|
117
|
-
], template: "<ng-template #dialogTemplate>\n <div wmDialogHeader [closable]=\"closable\"\n [iconclass]=\"iconclass\"\n [iconurl]=\"iconurl\"\n [iconwidth]=\"iconwidth\"\n [iconheight]=\"iconheight\"\n [iconmargin]=\"iconmargin\"\n [heading]=\"title\"\n [headinglevel]=\"headinglevel\"\n [titleid]=\"titleId\"></div>\n <div wmDialogBody>\n <p class=\"app-dialog-message text-{{alerttype}}\" [textContent]=\"message\"></p>\n </div>\n <div wmDialogFooter>\n <button
|
119
|
+
], template: "<ng-template #dialogTemplate>\n <div wmDialogHeader [closable]=\"closable\"\n [iconclass]=\"iconclass\"\n [iconurl]=\"iconurl\"\n [iconwidth]=\"iconwidth\"\n [iconheight]=\"iconheight\"\n [iconmargin]=\"iconmargin\"\n [heading]=\"title\"\n [headinglevel]=\"headinglevel\"\n [title]=\"title\"\n [titleid]=\"titleId\"></div>\n <div wmDialogBody>\n <p class=\"app-dialog-message text-{{alerttype}}\" [textContent]=\"message\"></p>\n </div>\n <div wmDialogFooter>\n <button (click)=\"onOk($event)\" [attr.aria-label]=\"oktext\" caption.bind=\"oktext\" class=\"btn-primary ok-action\"\n wmButton></button>\n </div>\n</ng-template>\n" }]
|
118
120
|
}], () => [{ type: i0__namespace.Injector }, { type: undefined, decorators: [{
|
119
121
|
type: i0.Attribute,
|
120
122
|
args: ['class']
|
@@ -20,10 +20,12 @@ function AlertDialogComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
20
20
|
i0.ɵɵelementEnd()();
|
21
21
|
} if (rf & 2) {
|
22
22
|
const ctx_r1 = i0.ɵɵnextContext();
|
23
|
-
i0.ɵɵproperty("closable", ctx_r1.closable)("iconclass", ctx_r1.iconclass)("iconurl", ctx_r1.iconurl)("iconwidth", ctx_r1.iconwidth)("iconheight", ctx_r1.iconheight)("iconmargin", ctx_r1.iconmargin)("heading", ctx_r1.title)("headinglevel", ctx_r1.headinglevel)("titleid", ctx_r1.titleId);
|
23
|
+
i0.ɵɵproperty("closable", ctx_r1.closable)("iconclass", ctx_r1.iconclass)("iconurl", ctx_r1.iconurl)("iconwidth", ctx_r1.iconwidth)("iconheight", ctx_r1.iconheight)("iconmargin", ctx_r1.iconmargin)("heading", ctx_r1.title)("headinglevel", ctx_r1.headinglevel)("title", ctx_r1.title)("titleid", ctx_r1.titleId);
|
24
24
|
i0.ɵɵadvance(2);
|
25
25
|
i0.ɵɵclassMapInterpolate1("app-dialog-message text-", ctx_r1.alerttype, "");
|
26
26
|
i0.ɵɵproperty("textContent", ctx_r1.message);
|
27
|
+
i0.ɵɵadvance(2);
|
28
|
+
i0.ɵɵattribute("aria-label", ctx_r1.oktext);
|
27
29
|
} }
|
28
30
|
const DIALOG_CLS = 'app-dialog modal-dialog app-alert-dialog';
|
29
31
|
const WIDGET_INFO = { widgetType: 'wm-alertdialog' };
|
@@ -68,8 +70,8 @@ export class AlertDialogComponent extends BaseDialog {
|
|
68
70
|
} }, features: [i0.ɵɵProvidersFeature([
|
69
71
|
provideAsWidgetRef(AlertDialogComponent),
|
70
72
|
provideAsDialogRef(AlertDialogComponent)
|
71
|
-
]), i0.ɵɵInheritDefinitionFeature], attrs: _c1, decls: 2, vars: 0, consts: [["dialogTemplate", ""], ["wmDialogHeader", "", 3, "closable", "iconclass", "iconurl", "iconwidth", "iconheight", "iconmargin", "heading", "headinglevel", "titleid"], ["wmDialogBody", ""], [3, "textContent"], ["wmDialogFooter", ""], ["
|
72
|
-
i0.ɵɵtemplate(0, AlertDialogComponent_ng_template_0_Template, 5,
|
73
|
+
]), i0.ɵɵInheritDefinitionFeature], attrs: _c1, decls: 2, vars: 0, consts: [["dialogTemplate", ""], ["wmDialogHeader", "", 3, "closable", "iconclass", "iconurl", "iconwidth", "iconheight", "iconmargin", "heading", "headinglevel", "title", "titleid"], ["wmDialogBody", ""], [3, "textContent"], ["wmDialogFooter", ""], ["caption.bind", "oktext", "wmButton", "", 1, "btn-primary", "ok-action", 3, "click"]], template: function AlertDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
74
|
+
i0.ɵɵtemplate(0, AlertDialogComponent_ng_template_0_Template, 5, 15, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
73
75
|
} }, dependencies: [i1.DialogBodyDirective, i1.DialogFooterDirective, i1.DialogHeaderComponent, i2.ButtonComponent, i3.TextContentDirective], encapsulation: 2 }); }
|
74
76
|
}
|
75
77
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AlertDialogComponent, [{
|
@@ -77,7 +79,7 @@ export class AlertDialogComponent extends BaseDialog {
|
|
77
79
|
args: [{ selector: 'div[wmAlertDialog]', providers: [
|
78
80
|
provideAsWidgetRef(AlertDialogComponent),
|
79
81
|
provideAsDialogRef(AlertDialogComponent)
|
80
|
-
], template: "<ng-template #dialogTemplate>\n <div wmDialogHeader [closable]=\"closable\"\n [iconclass]=\"iconclass\"\n [iconurl]=\"iconurl\"\n [iconwidth]=\"iconwidth\"\n [iconheight]=\"iconheight\"\n [iconmargin]=\"iconmargin\"\n [heading]=\"title\"\n [headinglevel]=\"headinglevel\"\n [titleid]=\"titleId\"></div>\n <div wmDialogBody>\n <p class=\"app-dialog-message text-{{alerttype}}\" [textContent]=\"message\"></p>\n </div>\n <div wmDialogFooter>\n <button
|
82
|
+
], template: "<ng-template #dialogTemplate>\n <div wmDialogHeader [closable]=\"closable\"\n [iconclass]=\"iconclass\"\n [iconurl]=\"iconurl\"\n [iconwidth]=\"iconwidth\"\n [iconheight]=\"iconheight\"\n [iconmargin]=\"iconmargin\"\n [heading]=\"title\"\n [headinglevel]=\"headinglevel\"\n [title]=\"title\"\n [titleid]=\"titleId\"></div>\n <div wmDialogBody>\n <p class=\"app-dialog-message text-{{alerttype}}\" [textContent]=\"message\"></p>\n </div>\n <div wmDialogFooter>\n <button (click)=\"onOk($event)\" [attr.aria-label]=\"oktext\" caption.bind=\"oktext\" class=\"btn-primary ok-action\"\n wmButton></button>\n </div>\n</ng-template>\n" }]
|
81
83
|
}], () => [{ type: i0.Injector }, { type: undefined, decorators: [{
|
82
84
|
type: Attribute,
|
83
85
|
args: ['class']
|
@@ -97,4 +99,4 @@ export class AlertDialogComponent extends BaseDialog {
|
|
97
99
|
args: ['dialogTemplate', { static: true }]
|
98
100
|
}] }); })();
|
99
101
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AlertDialogComponent, { className: "AlertDialogComponent", filePath: "alert-dialog.component.ts", lineNumber: 31 }); })();
|
100
|
-
//# sourceMappingURL=data:application/json;base64,
|
102
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxlcnQtZGlhbG9nLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvbXBvbmVudHMvd2lkZ2V0cy9kaWFsb2dzL2FsZXJ0LWRpYWxvZy9zcmMvYWxlcnQtZGlhbG9nLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4u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ICAgICAgQEF0dHJpYnV0ZSgnbW9kYWwnKSBtb2RhbDogc3RyaW5nIHwgYm9vbGVhbixcbiAgICAgICAgQEF0dHJpYnV0ZSgnY2xvc2FibGUnKSBjbG9zYWJsZTogc3RyaW5nIHwgYm9vbGVhbixcbiAgICAgICAgQEluamVjdCgnRVhQTElDSVRfQ09OVEVYVCcpIEBPcHRpb25hbCgpIGV4cGxpY2l0Q29udGV4dDogYW55XG4gICAgKSB7XG4gICAgICAgIGlmIChtb2RhbCA9PT0gbnVsbCB8fCBtb2RhbCA9PT0gdW5kZWZpbmVkKSB7XG4gICAgICAgICAgICBtb2RhbCA9IGZhbHNlO1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKGNsb3NhYmxlID09PSBudWxsIHx8IGNsb3NhYmxlID09PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICAgIGNsb3NhYmxlID0gdHJ1ZTtcbiAgICAgICAgfVxuXG4gICAgICAgIC8vIHNldHRpbmcgdGhlIGJhY2tkcm9wIHRvICdzdGF0aWMnIHdpbGwgbm90IGNsb3NlIHRoZSBkaWFsb2cgb24gYmFja2Ryb3AgY2xpY2tcbiAgICAgICAgY29uc3QgYmFja2Ryb3A6IGJvb2xlYW4gfCAnc3RhdGljJyA9IHRvQm9vbGVhbihtb2RhbCkgPyAnc3RhdGljJyA6IHRydWU7XG5cbiAgICAgICAgc3VwZXIoXG4gICAgICAgICAgICBpbmosXG4gICAgICAgICAgICBXSURHRVRfSU5GTyxcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICBjbGFzczogYCR7RElBTE9HX0NMU30gJHtkaWFsb2dDbGFzcyB8fCAnJ31gLFxuICAgICAgICAgICAgICAgIGJhY2tkcm9wLFxuICAgICAgICAgICAgICAgIGtleWJvYXJkOiAhdG9Cb29sZWFuKG1vZGFsKVxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIGV4cGxpY2l0Q29udGV4dFxuICAgICAgICApO1xuICAgIH1cblxuICAgIHByb3R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gICAgICAgPHAgY2xhc3M9XCJhcHAtZGlhbG9nLW1lc3NhZ2UgdGV4dC17e2FsZXJ0dHlwZX19XCIgW3RleHRDb250ZW50XT1cIm1lc3NhZ2VcIj48L3A+XG4gICAgPC9kaXY+XG4gICAgPGRpdiB3bURpYWxvZ0Zvb3Rlcj5cbiAgICAgICAgPGJ1dHRvbiAoY2xpY2spPVwib25PaygkZXZlbnQpXCIgW2F0dHIuYXJpYS1sYWJlbF09XCJva3RleHRcIiBjYXB0aW9uLmJpbmQ9XCJva3RleHRcIiBjbGFzcz1cImJ0bi1wcmltYXJ5IG9rLWFjdGlvblwiXG4gICAgICAgICAgICAgICAgd21CdXR0b24+PC9idXR0b24+XG4gICAgPC9kaXY+XG48L25nLXRlbXBsYXRlPlxuIl19
|
@@ -43,10 +43,12 @@ function AlertDialogComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
43
43
|
i0.ɵɵelementEnd()();
|
44
44
|
} if (rf & 2) {
|
45
45
|
const ctx_r1 = i0.ɵɵnextContext();
|
46
|
-
i0.ɵɵproperty("closable", ctx_r1.closable)("iconclass", ctx_r1.iconclass)("iconurl", ctx_r1.iconurl)("iconwidth", ctx_r1.iconwidth)("iconheight", ctx_r1.iconheight)("iconmargin", ctx_r1.iconmargin)("heading", ctx_r1.title)("headinglevel", ctx_r1.headinglevel)("titleid", ctx_r1.titleId);
|
46
|
+
i0.ɵɵproperty("closable", ctx_r1.closable)("iconclass", ctx_r1.iconclass)("iconurl", ctx_r1.iconurl)("iconwidth", ctx_r1.iconwidth)("iconheight", ctx_r1.iconheight)("iconmargin", ctx_r1.iconmargin)("heading", ctx_r1.title)("headinglevel", ctx_r1.headinglevel)("title", ctx_r1.title)("titleid", ctx_r1.titleId);
|
47
47
|
i0.ɵɵadvance(2);
|
48
48
|
i0.ɵɵclassMapInterpolate1("app-dialog-message text-", ctx_r1.alerttype, "");
|
49
49
|
i0.ɵɵproperty("textContent", ctx_r1.message);
|
50
|
+
i0.ɵɵadvance(2);
|
51
|
+
i0.ɵɵattribute("aria-label", ctx_r1.oktext);
|
50
52
|
} }
|
51
53
|
const DIALOG_CLS = 'app-dialog modal-dialog app-alert-dialog';
|
52
54
|
const WIDGET_INFO = { widgetType: 'wm-alertdialog' };
|
@@ -91,8 +93,8 @@ class AlertDialogComponent extends BaseDialog {
|
|
91
93
|
} }, features: [i0.ɵɵProvidersFeature([
|
92
94
|
provideAsWidgetRef(AlertDialogComponent),
|
93
95
|
provideAsDialogRef(AlertDialogComponent)
|
94
|
-
]), i0.ɵɵInheritDefinitionFeature], attrs: _c1, decls: 2, vars: 0, consts: [["dialogTemplate", ""], ["wmDialogHeader", "", 3, "closable", "iconclass", "iconurl", "iconwidth", "iconheight", "iconmargin", "heading", "headinglevel", "titleid"], ["wmDialogBody", ""], [3, "textContent"], ["wmDialogFooter", ""], ["
|
95
|
-
i0.ɵɵtemplate(0, AlertDialogComponent_ng_template_0_Template, 5,
|
96
|
+
]), i0.ɵɵInheritDefinitionFeature], attrs: _c1, decls: 2, vars: 0, consts: [["dialogTemplate", ""], ["wmDialogHeader", "", 3, "closable", "iconclass", "iconurl", "iconwidth", "iconheight", "iconmargin", "heading", "headinglevel", "title", "titleid"], ["wmDialogBody", ""], [3, "textContent"], ["wmDialogFooter", ""], ["caption.bind", "oktext", "wmButton", "", 1, "btn-primary", "ok-action", 3, "click"]], template: function AlertDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
97
|
+
i0.ɵɵtemplate(0, AlertDialogComponent_ng_template_0_Template, 5, 15, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
96
98
|
} }, dependencies: [i1.DialogBodyDirective, i1.DialogFooterDirective, i1.DialogHeaderComponent, i2.ButtonComponent, i3.TextContentDirective], encapsulation: 2 }); }
|
97
99
|
}
|
98
100
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AlertDialogComponent, [{
|
@@ -100,7 +102,7 @@ class AlertDialogComponent extends BaseDialog {
|
|
100
102
|
args: [{ selector: 'div[wmAlertDialog]', providers: [
|
101
103
|
provideAsWidgetRef(AlertDialogComponent),
|
102
104
|
provideAsDialogRef(AlertDialogComponent)
|
103
|
-
], template: "<ng-template #dialogTemplate>\n <div wmDialogHeader [closable]=\"closable\"\n [iconclass]=\"iconclass\"\n [iconurl]=\"iconurl\"\n [iconwidth]=\"iconwidth\"\n [iconheight]=\"iconheight\"\n [iconmargin]=\"iconmargin\"\n [heading]=\"title\"\n [headinglevel]=\"headinglevel\"\n [titleid]=\"titleId\"></div>\n <div wmDialogBody>\n <p class=\"app-dialog-message text-{{alerttype}}\" [textContent]=\"message\"></p>\n </div>\n <div wmDialogFooter>\n <button
|
105
|
+
], template: "<ng-template #dialogTemplate>\n <div wmDialogHeader [closable]=\"closable\"\n [iconclass]=\"iconclass\"\n [iconurl]=\"iconurl\"\n [iconwidth]=\"iconwidth\"\n [iconheight]=\"iconheight\"\n [iconmargin]=\"iconmargin\"\n [heading]=\"title\"\n [headinglevel]=\"headinglevel\"\n [title]=\"title\"\n [titleid]=\"titleId\"></div>\n <div wmDialogBody>\n <p class=\"app-dialog-message text-{{alerttype}}\" [textContent]=\"message\"></p>\n </div>\n <div wmDialogFooter>\n <button (click)=\"onOk($event)\" [attr.aria-label]=\"oktext\" caption.bind=\"oktext\" class=\"btn-primary ok-action\"\n wmButton></button>\n </div>\n</ng-template>\n" }]
|
104
106
|
}], () => [{ type: i0.Injector }, { type: undefined, decorators: [{
|
105
107
|
type: Attribute,
|
106
108
|
args: ['class']
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../projects/components/widgets/dialogs/alert-dialog/src/alert-dialog.props.ts","../../../../../projects/components/widgets/dialogs/alert-dialog/src/alert-dialog.component.html","../../../../../projects/components/widgets/dialogs/alert-dialog/src/alert-dialog.component.ts","../../../../../projects/components/widgets/dialogs/alert-dialog/src/alert-dialog.module.ts","../../../../../projects/components/widgets/dialogs/alert-dialog/src/index.ts"],"sourcesContent":["import { PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-alertdialog',\n new Map(\n [\n ['alerttype', {value: 'error', ...PROP_STRING}],\n ['animation', PROP_STRING],\n ['class', PROP_STRING],\n ['closable', {value: true, PROP_BOOLEAN}],\n ['iconclass', {value: 'wi wi-warning', PROP_STRING}],\n ['iconheight', PROP_STRING],\n ['iconmargin', PROP_STRING],\n ['iconurl', PROP_STRING],\n ['iconwidth', PROP_STRING],\n ['message', {value: 'Am an alert box!', ...PROP_STRING}],\n ['modal', {value: false, ...PROP_BOOLEAN}],\n ['name', PROP_STRING],\n ['oktext', {value: 'OK', ...PROP_STRING}],\n ['tabindex', {value: 0, ...PROP_NUMBER}],\n ['headinglevel', {value: 'h4', ...PROP_STRING}],\n ['title', {value: 'Alert', ...PROP_STRING}]\n ]\n )\n );\n};\n","<ng-template #dialogTemplate>\n <div wmDialogHeader [closable]=\"closable\"\n [iconclass]=\"iconclass\"\n [iconurl]=\"iconurl\"\n [iconwidth]=\"iconwidth\"\n [iconheight]=\"iconheight\"\n [iconmargin]=\"iconmargin\"\n [heading]=\"title\"\n [headinglevel]=\"headinglevel\"\n [titleid]=\"titleId\"></div>\n <div wmDialogBody>\n <p class=\"app-dialog-message text-{{alerttype}}\" [textContent]=\"message\"></p>\n </div>\n <div wmDialogFooter>\n <button wmButton class=\"btn-primary ok-action\" caption.bind=\"oktext\" aria-label=\"Submit button\" (click)=\"onOk($event)\"></button>\n </div>\n</ng-template>\n","import {\n Attribute,\n Component,\n Inject,\n Injector,\n OnInit,\n Optional,\n SkipSelf,\n TemplateRef,\n ViewChild\n} from '@angular/core';\n\nimport { toBoolean } from '@wm/core';\nimport { IWidgetConfig, provideAsDialogRef, provideAsWidgetRef } from '@wm/components/base';\nimport { BaseDialog } from '@wm/components/dialogs';\n\nimport { registerProps } from './alert-dialog.props';\n\nconst DIALOG_CLS = 'app-dialog modal-dialog app-alert-dialog';\n\nconst WIDGET_INFO: IWidgetConfig = {widgetType: 'wm-alertdialog'};\n\n@Component({\n selector: 'div[wmAlertDialog]',\n templateUrl: './alert-dialog.component.html',\n providers: [\n provideAsWidgetRef(AlertDialogComponent),\n provideAsDialogRef(AlertDialogComponent)\n ]\n})\nexport class AlertDialogComponent extends BaseDialog implements OnInit {\n static initializeProps = registerProps();\n\n @ViewChild('dialogTemplate',{ static: true }) dialogTemplate: TemplateRef<any>;\n\n constructor(\n inj: Injector,\n @Attribute('class') dialogClass: string,\n @Attribute('modal') modal: string | boolean,\n @Attribute('closable') closable: string | boolean,\n @Inject('EXPLICIT_CONTEXT') @Optional() explicitContext: any\n ) {\n if (modal === null || modal === undefined) {\n modal = false;\n }\n\n if (closable === null || closable === undefined) {\n closable = true;\n }\n\n // setting the backdrop to 'static' will not close the dialog on backdrop click\n const backdrop: boolean | 'static' = toBoolean(modal) ? 'static' : true;\n\n super(\n inj,\n WIDGET_INFO,\n {\n class: `${DIALOG_CLS} ${dialogClass || ''}`,\n backdrop,\n keyboard: !toBoolean(modal)\n },\n explicitContext\n );\n }\n\n protected getTemplateRef(): TemplateRef<any> {\n return this.dialogTemplate;\n }\n\n /**\n * Click event handler for the ok button\n * invokes on-ok event callback\n * @param {Event} $event\n */\n onOk($event: Event) {\n this.invokeEventCallback('ok', {$event});\n }\n\n ngOnInit() {\n super.ngOnInit();\n this.register(this.viewParent);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { WmComponentsModule } from '@wm/components/base';\nimport { DialogModule } from '@wm/components/dialogs';\nimport { InputModule } from '@wm/components/input';\n\nimport { AlertDialogComponent } from './alert-dialog.component';\n\nconst components = [\n AlertDialogComponent\n];\n\n@NgModule({\n imports: [\n CommonModule,\n DialogModule,\n InputModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class AlertDialogModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api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AACX,QAAA,kBAAkB,aARtB,oBAAoB,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACVxB;;AAEG;;;;"}
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../projects/components/widgets/dialogs/alert-dialog/src/alert-dialog.props.ts","../../../../../projects/components/widgets/dialogs/alert-dialog/src/alert-dialog.component.html","../../../../../projects/components/widgets/dialogs/alert-dialog/src/alert-dialog.component.ts","../../../../../projects/components/widgets/dialogs/alert-dialog/src/alert-dialog.module.ts","../../../../../projects/components/widgets/dialogs/alert-dialog/src/index.ts"],"sourcesContent":["import { PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-alertdialog',\n new Map(\n [\n ['alerttype', {value: 'error', ...PROP_STRING}],\n ['animation', PROP_STRING],\n ['class', PROP_STRING],\n ['closable', {value: true, PROP_BOOLEAN}],\n ['iconclass', {value: 'wi wi-warning', PROP_STRING}],\n ['iconheight', PROP_STRING],\n ['iconmargin', PROP_STRING],\n ['iconurl', PROP_STRING],\n ['iconwidth', PROP_STRING],\n ['message', {value: 'Am an alert box!', ...PROP_STRING}],\n ['modal', {value: false, ...PROP_BOOLEAN}],\n ['name', PROP_STRING],\n ['oktext', {value: 'OK', ...PROP_STRING}],\n ['tabindex', {value: 0, ...PROP_NUMBER}],\n ['headinglevel', {value: 'h4', ...PROP_STRING}],\n ['title', {value: 'Alert', ...PROP_STRING}]\n ]\n )\n );\n};\n","<ng-template #dialogTemplate>\n <div wmDialogHeader [closable]=\"closable\"\n [iconclass]=\"iconclass\"\n [iconurl]=\"iconurl\"\n [iconwidth]=\"iconwidth\"\n [iconheight]=\"iconheight\"\n [iconmargin]=\"iconmargin\"\n [heading]=\"title\"\n [headinglevel]=\"headinglevel\"\n [title]=\"title\"\n [titleid]=\"titleId\"></div>\n <div wmDialogBody>\n <p class=\"app-dialog-message text-{{alerttype}}\" [textContent]=\"message\"></p>\n </div>\n <div wmDialogFooter>\n <button (click)=\"onOk($event)\" [attr.aria-label]=\"oktext\" caption.bind=\"oktext\" class=\"btn-primary ok-action\"\n wmButton></button>\n </div>\n</ng-template>\n","import {\n Attribute,\n Component,\n Inject,\n Injector,\n OnInit,\n Optional,\n SkipSelf,\n TemplateRef,\n ViewChild\n} from '@angular/core';\n\nimport { toBoolean } from '@wm/core';\nimport { IWidgetConfig, provideAsDialogRef, provideAsWidgetRef } from '@wm/components/base';\nimport { BaseDialog } from '@wm/components/dialogs';\n\nimport { registerProps } from './alert-dialog.props';\n\nconst DIALOG_CLS = 'app-dialog modal-dialog app-alert-dialog';\n\nconst WIDGET_INFO: IWidgetConfig = {widgetType: 'wm-alertdialog'};\n\n@Component({\n selector: 'div[wmAlertDialog]',\n templateUrl: './alert-dialog.component.html',\n providers: [\n provideAsWidgetRef(AlertDialogComponent),\n provideAsDialogRef(AlertDialogComponent)\n ]\n})\nexport class AlertDialogComponent extends BaseDialog implements OnInit {\n static initializeProps = registerProps();\n\n @ViewChild('dialogTemplate',{ static: true }) dialogTemplate: TemplateRef<any>;\n\n constructor(\n inj: Injector,\n @Attribute('class') dialogClass: string,\n @Attribute('modal') modal: string | boolean,\n @Attribute('closable') closable: string | boolean,\n @Inject('EXPLICIT_CONTEXT') @Optional() explicitContext: any\n ) {\n if (modal === null || modal === undefined) {\n modal = false;\n }\n\n if (closable === null || closable === undefined) {\n closable = true;\n }\n\n // setting the backdrop to 'static' will not close the dialog on backdrop click\n const backdrop: boolean | 'static' = toBoolean(modal) ? 'static' : true;\n\n super(\n inj,\n WIDGET_INFO,\n {\n class: `${DIALOG_CLS} ${dialogClass || ''}`,\n backdrop,\n keyboard: !toBoolean(modal)\n },\n explicitContext\n );\n }\n\n protected getTemplateRef(): TemplateRef<any> {\n return this.dialogTemplate;\n }\n\n /**\n * Click event handler for the ok button\n * invokes on-ok event callback\n * @param {Event} $event\n */\n onOk($event: Event) {\n this.invokeEventCallback('ok', {$event});\n }\n\n ngOnInit() {\n super.ngOnInit();\n this.register(this.viewParent);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { WmComponentsModule } from '@wm/components/base';\nimport { DialogModule } from '@wm/components/dialogs';\nimport { InputModule } from '@wm/components/input';\n\nimport { AlertDialogComponent } from './alert-dialog.component';\n\nconst components = [\n AlertDialogComponent\n];\n\n@NgModule({\n imports: [\n CommonModule,\n DialogModule,\n InputModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class AlertDialogModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;AAEO,MAAM,aAAa,GAAG,MAAK;AAC9B,IAAA,QAAQ,CACJ,gBAAgB,EAChB,IAAI,GAAG,CACH;QACI,CAAC,WAAW,EAAE,EAAC,KAAK,EAAE,OAAO,EAAE,GAAG,WAAW,EAAC,CAAC;QAC/C,CAAC,WAAW,EAAE,WAAW,CAAC;QAC1B,CAAC,OAAO,EAAE,WAAW,CAAC;QACtB,CAAC,UAAU,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,YAAY,EAAC,CAAC;QACzC,CAAC,WAAW,EAAE,EAAC,KAAK,EAAE,eAAe,EAAE,WAAW,EAAC,CAAC;QACpD,CAAC,YAAY,EAAE,WAAW,CAAC;QAC3B,CAAC,YAAY,EAAE,WAAW,CAAC;QAC3B,CAAC,SAAS,EAAE,WAAW,CAAC;QACxB,CAAC,WAAW,EAAE,WAAW,CAAC;QAC1B,CAAC,SAAS,EAAE,EAAC,KAAK,EAAE,kBAAkB,EAAE,GAAG,WAAW,EAAC,CAAC;QACxD,CAAC,OAAO,EAAE,EAAC,KAAK,EAAE,KAAK,EAAE,GAAG,YAAY,EAAC,CAAC;QAC1C,CAAC,MAAM,EAAE,WAAW,CAAC;QACrB,CAAC,QAAQ,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,GAAG,WAAW,EAAC,CAAC;QACzC,CAAC,UAAU,E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AA,CAAA,EAAA;;iFAKb,iBAAiB,EAAA,CAAA;cAV7B,QAAQ;AAAC,QAAA,IAAA,EAAA,CAAA;AACN,gBAAA,OAAO,EAAE;oBACL,YAAY;oBACZ,YAAY;oBACZ,WAAW;oBACX,kBAAkB;AACrB,iBAAA;AACD,gBAAA,YAAY,EAAE,CAAC,GAAG,UAAU,CAAC;AAC7B,gBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AAC3B,aAAA,CAAA;;wFACY,iBAAiB,EAAA,EAAA,YAAA,EAAA,CAb1B,oBAAoB,CAAA,EAAA,OAAA,EAAA,CAKhB,YAAY;QACZ,YAAY;QACZ,WAAW;AACX,QAAA,kBAAkB,aARtB,oBAAoB,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACVxB;;AAEG;;;;"}
|
@@ -62,12 +62,15 @@
|
|
62
62
|
i0__namespace.ɵɵelementEnd()();
|
63
63
|
} if (rf & 2) {
|
64
64
|
const ctx_r1 = i0__namespace.ɵɵnextContext();
|
65
|
-
i0__namespace.ɵɵproperty("closable", ctx_r1.closable)("iconclass", ctx_r1.iconclass)("iconurl", ctx_r1.iconurl)("iconwidth", ctx_r1.iconwidth)("iconheight", ctx_r1.iconheight)("iconmargin", ctx_r1.iconmargin)("heading", ctx_r1.title)("headinglevel", ctx_r1.headinglevel)("titleid", ctx_r1.titleId);
|
65
|
+
i0__namespace.ɵɵproperty("closable", ctx_r1.closable)("iconclass", ctx_r1.iconclass)("iconurl", ctx_r1.iconurl)("iconwidth", ctx_r1.iconwidth)("iconheight", ctx_r1.iconheight)("iconmargin", ctx_r1.iconmargin)("heading", ctx_r1.title)("headinglevel", ctx_r1.headinglevel)("title", ctx_r1.title)("titleid", ctx_r1.titleId);
|
66
66
|
i0__namespace.ɵɵadvance(2);
|
67
67
|
i0__namespace.ɵɵclassMapInterpolate1("app-dialog-message ", ctx_r1.messageclass, "");
|
68
|
-
i0__namespace.ɵɵattribute("aria-describedby", ctx_r1.message);
|
69
68
|
i0__namespace.ɵɵadvance();
|
70
69
|
i0__namespace.ɵɵtextInterpolate(ctx_r1.message);
|
70
|
+
i0__namespace.ɵɵadvance(2);
|
71
|
+
i0__namespace.ɵɵattribute("aria-label", ctx_r1.canceltext);
|
72
|
+
i0__namespace.ɵɵadvance();
|
73
|
+
i0__namespace.ɵɵattribute("aria-label", ctx_r1.oktext);
|
71
74
|
} }
|
72
75
|
const DIALOG_CLS = 'app-dialog modal-dialog app-confirm-dialog';
|
73
76
|
const WIDGET_INFO = { widgetType: 'wm-confirmdialog' };
|
@@ -121,8 +124,8 @@
|
|
121
124
|
} }, features: [i0__namespace.ɵɵProvidersFeature([
|
122
125
|
base.provideAsWidgetRef(ConfirmDialogComponent),
|
123
126
|
base.provideAsDialogRef(ConfirmDialogComponent)
|
124
|
-
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c1, decls: 2, vars: 0, consts: [["dialogTemplate", ""], ["wmDialogHeader", "", 3, "closable", "iconclass", "iconurl", "iconwidth", "iconheight", "iconmargin", "heading", "headinglevel", "titleid"], ["wmDialogBody", ""], ["wmDialogFooter", ""], ["
|
125
|
-
i0__namespace.ɵɵtemplate(0, ConfirmDialogComponent_ng_template_0_Template, 7,
|
127
|
+
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c1, decls: 2, vars: 0, consts: [["dialogTemplate", ""], ["wmDialogHeader", "", 3, "closable", "iconclass", "iconurl", "iconwidth", "iconheight", "iconmargin", "heading", "headinglevel", "title", "titleid"], ["wmDialogBody", ""], ["wmDialogFooter", ""], ["caption.bind", "canceltext", "wmButton", "", 1, "btn-default", "cancel-action", 3, "click"], ["caption.bind", "oktext", "wmButton", "", 1, "btn-primary", "ok-action", 3, "click"]], template: function ConfirmDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
128
|
+
i0__namespace.ɵɵtemplate(0, ConfirmDialogComponent_ng_template_0_Template, 7, 16, "ng-template", null, 0, i0__namespace.ɵɵtemplateRefExtractor);
|
126
129
|
} }, dependencies: [i1__namespace.DialogBodyDirective, i1__namespace.DialogFooterDirective, i1__namespace.DialogHeaderComponent, i2__namespace.ButtonComponent], encapsulation: 2 }); }
|
127
130
|
}
|
128
131
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ConfirmDialogComponent, [{
|
@@ -130,7 +133,7 @@
|
|
130
133
|
args: [{ selector: 'div[wmConfirmDialog]', providers: [
|
131
134
|
base.provideAsWidgetRef(ConfirmDialogComponent),
|
132
135
|
base.provideAsDialogRef(ConfirmDialogComponent)
|
133
|
-
], template: "<ng-template #dialogTemplate>\n <div wmDialogHeader [closable]=\"closable\"\n [iconclass]=\"iconclass\"\n [iconurl]=\"iconurl\"\n [iconwidth]=\"iconwidth\"\n [iconheight]=\"iconheight\"\n [iconmargin]=\"iconmargin\"\n [heading]=\"title\"\n [headinglevel]=\"headinglevel\"\n [titleid]=\"titleId\"></div>\n <div wmDialogBody>\n <p class=\"app-dialog-message {{messageclass}}\"
|
136
|
+
], template: "<ng-template #dialogTemplate>\n <div wmDialogHeader [closable]=\"closable\"\n [iconclass]=\"iconclass\"\n [iconurl]=\"iconurl\"\n [iconwidth]=\"iconwidth\"\n [iconheight]=\"iconheight\"\n [iconmargin]=\"iconmargin\"\n [heading]=\"title\"\n [headinglevel]=\"headinglevel\"\n [title]=\"title\"\n [titleid]=\"titleId\"></div>\n <div wmDialogBody>\n <p class=\"app-dialog-message {{messageclass}}\">{{ message }}</p>\n </div>\n <div wmDialogFooter>\n <button (click)=\"onCancel($event)\" [attr.aria-label]=\"canceltext\" caption.bind=\"canceltext\" class=\"btn-default cancel-action\"\n wmButton></button>\n <button (click)=\"onOk($event)\" [attr.aria-label]=\"oktext\" caption.bind=\"oktext\" class=\"btn-primary ok-action\"\n wmButton></button>\n </div>\n</ng-template>\n" }]
|
134
137
|
}], () => [{ type: i0__namespace.Injector }, { type: undefined, decorators: [{
|
135
138
|
type: i0.Attribute,
|
136
139
|
args: ['class']
|
@@ -22,12 +22,15 @@ function ConfirmDialogComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
22
22
|
i0.ɵɵelementEnd()();
|
23
23
|
} if (rf & 2) {
|
24
24
|
const ctx_r1 = i0.ɵɵnextContext();
|
25
|
-
i0.ɵɵproperty("closable", ctx_r1.closable)("iconclass", ctx_r1.iconclass)("iconurl", ctx_r1.iconurl)("iconwidth", ctx_r1.iconwidth)("iconheight", ctx_r1.iconheight)("iconmargin", ctx_r1.iconmargin)("heading", ctx_r1.title)("headinglevel", ctx_r1.headinglevel)("titleid", ctx_r1.titleId);
|
25
|
+
i0.ɵɵproperty("closable", ctx_r1.closable)("iconclass", ctx_r1.iconclass)("iconurl", ctx_r1.iconurl)("iconwidth", ctx_r1.iconwidth)("iconheight", ctx_r1.iconheight)("iconmargin", ctx_r1.iconmargin)("heading", ctx_r1.title)("headinglevel", ctx_r1.headinglevel)("title", ctx_r1.title)("titleid", ctx_r1.titleId);
|
26
26
|
i0.ɵɵadvance(2);
|
27
27
|
i0.ɵɵclassMapInterpolate1("app-dialog-message ", ctx_r1.messageclass, "");
|
28
|
-
i0.ɵɵattribute("aria-describedby", ctx_r1.message);
|
29
28
|
i0.ɵɵadvance();
|
30
29
|
i0.ɵɵtextInterpolate(ctx_r1.message);
|
30
|
+
i0.ɵɵadvance(2);
|
31
|
+
i0.ɵɵattribute("aria-label", ctx_r1.canceltext);
|
32
|
+
i0.ɵɵadvance();
|
33
|
+
i0.ɵɵattribute("aria-label", ctx_r1.oktext);
|
31
34
|
} }
|
32
35
|
const DIALOG_CLS = 'app-dialog modal-dialog app-confirm-dialog';
|
33
36
|
const WIDGET_INFO = { widgetType: 'wm-confirmdialog' };
|
@@ -84,8 +87,8 @@ export class ConfirmDialogComponent extends BaseDialog {
|
|
84
87
|
} }, features: [i0.ɵɵProvidersFeature([
|
85
88
|
provideAsWidgetRef(ConfirmDialogComponent),
|
86
89
|
provideAsDialogRef(ConfirmDialogComponent)
|
87
|
-
]), i0.ɵɵInheritDefinitionFeature], attrs: _c1, decls: 2, vars: 0, consts: [["dialogTemplate", ""], ["wmDialogHeader", "", 3, "closable", "iconclass", "iconurl", "iconwidth", "iconheight", "iconmargin", "heading", "headinglevel", "titleid"], ["wmDialogBody", ""], ["wmDialogFooter", ""], ["
|
88
|
-
i0.ɵɵtemplate(0, ConfirmDialogComponent_ng_template_0_Template, 7,
|
90
|
+
]), i0.ɵɵInheritDefinitionFeature], attrs: _c1, decls: 2, vars: 0, consts: [["dialogTemplate", ""], ["wmDialogHeader", "", 3, "closable", "iconclass", "iconurl", "iconwidth", "iconheight", "iconmargin", "heading", "headinglevel", "title", "titleid"], ["wmDialogBody", ""], ["wmDialogFooter", ""], ["caption.bind", "canceltext", "wmButton", "", 1, "btn-default", "cancel-action", 3, "click"], ["caption.bind", "oktext", "wmButton", "", 1, "btn-primary", "ok-action", 3, "click"]], template: function ConfirmDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
91
|
+
i0.ɵɵtemplate(0, ConfirmDialogComponent_ng_template_0_Template, 7, 16, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
89
92
|
} }, dependencies: [i1.DialogBodyDirective, i1.DialogFooterDirective, i1.DialogHeaderComponent, i2.ButtonComponent], encapsulation: 2 }); }
|
90
93
|
}
|
91
94
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ConfirmDialogComponent, [{
|
@@ -93,7 +96,7 @@ export class ConfirmDialogComponent extends BaseDialog {
|
|
93
96
|
args: [{ selector: 'div[wmConfirmDialog]', providers: [
|
94
97
|
provideAsWidgetRef(ConfirmDialogComponent),
|
95
98
|
provideAsDialogRef(ConfirmDialogComponent)
|
96
|
-
], template: "<ng-template #dialogTemplate>\n <div wmDialogHeader [closable]=\"closable\"\n [iconclass]=\"iconclass\"\n [iconurl]=\"iconurl\"\n [iconwidth]=\"iconwidth\"\n [iconheight]=\"iconheight\"\n [iconmargin]=\"iconmargin\"\n [heading]=\"title\"\n [headinglevel]=\"headinglevel\"\n [titleid]=\"titleId\"></div>\n <div wmDialogBody>\n <p class=\"app-dialog-message {{messageclass}}\"
|
99
|
+
], template: "<ng-template #dialogTemplate>\n <div wmDialogHeader [closable]=\"closable\"\n [iconclass]=\"iconclass\"\n [iconurl]=\"iconurl\"\n [iconwidth]=\"iconwidth\"\n [iconheight]=\"iconheight\"\n [iconmargin]=\"iconmargin\"\n [heading]=\"title\"\n [headinglevel]=\"headinglevel\"\n [title]=\"title\"\n [titleid]=\"titleId\"></div>\n <div wmDialogBody>\n <p class=\"app-dialog-message {{messageclass}}\">{{ message }}</p>\n </div>\n <div wmDialogFooter>\n <button (click)=\"onCancel($event)\" [attr.aria-label]=\"canceltext\" caption.bind=\"canceltext\" class=\"btn-default cancel-action\"\n wmButton></button>\n <button (click)=\"onOk($event)\" [attr.aria-label]=\"oktext\" caption.bind=\"oktext\" class=\"btn-primary ok-action\"\n wmButton></button>\n </div>\n</ng-template>\n" }]
|
97
100
|
}], () => [{ type: i0.Injector }, { type: undefined, decorators: [{
|
98
101
|
type: Attribute,
|
99
102
|
args: ['class']
|
@@ -116,4 +119,4 @@ export class ConfirmDialogComponent extends BaseDialog {
|
|
116
119
|
args: ['window:keydown.esc', ['$event']]
|
117
120
|
}] }); })();
|
118
121
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ConfirmDialogComponent, { className: "ConfirmDialogComponent", filePath: "confirm-dialog.component.ts", lineNumber: 31 }); })();
|
119
|
-
//# sourceMappingURL=data:application/json;base64,
|
122
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlybS1kaWFsb2cuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29tcG9uZW50cy93aWRnZXRzL2RpYWxvZ3MvY29uZmlybS1kaWFsb2cvc3JjL2Nvbm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G4gICAgICAgIGNvbnN0IGJhY2tkcm9wID0gJ3N0YXRpYyc7XG5cbiAgICAgICAgc3VwZXIoXG4gICAgICAgICAgICBpbmosXG4gICAgICAgICAgICBXSURHRVRfSU5GTyxcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICBjbGFzczogYCR7RElBTE9HX0NMU30gJHtkaWFsb2dDbGFzcyB8fCAnJ31gLFxuICAgICAgICAgICAgICAgIGJhY2tkcm9wLFxuICAgICAgICAgICAgICAgIGtleWJvYXJkOiAhdG9Cb29sZWFuKG1vZGFsKVxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIGV4cGxpY2l0Q29udGV4dFxuICAgICAgICApO1xuICAgIH1cblxuICAgIEBIb3N0TGlzdGVuZXIoJ3dpbmRvdzprZXlkb3duLmVzYycsIFsnJGV2ZW50J10pXG4gICAgb25Fc2NhcGUoJGV2ZW50OiBLZXlib2FyZEV2ZW50KXt9O1xuXG4gICAgcHJvdGVjdGVkIGdldFRlbXBsYXRlUmVmKCk6IFRlbXBsYXRlUmVmPGFueT4ge1xuICAgICAgICByZXR1cm4gdGhpcy5kaWFsb2dUZW1wbGF0ZTtcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiBDbGljayBldmVudCBoYW5kbGVyIGZvciB0aGUgb2sgYnV0dG9uXG4gICAgICogaW52b2tlcyBvbi1vayBldmVudCBjYWxsYmFja1xuICAgICAqIEBwYXJhbSB7RXZlbnR9ICRldmVudFxuICAgICAqL1xuICAgIG9uT2soJGV2ZW50OiBFdmVudCkge1xuICAgICAgICB0aGlzLmludm9rZUV2ZW50Q2FsbGJhY2soJ29rJywgeyRldmVudH0pO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIENsaWNrIGV2ZW50IGhhbmRsZXIgZm9yIHRoZSBjYW5jZWwgYnV0dG9uXG4gICAgICogaW52b2tlcyBvbi1jYW5jZWwgZXZlbnQgY2FsbGJhY2tcbiAgICAgKiBAcGFyYW0ge0V2ZW50fSAkZX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i5iaW5kPVwiY2FuY2VsdGV4dFwiIGNsYXNzPVwiYnRuLWRlZmF1bHQgY2FuY2VsLWFjdGlvblwiXG4gICAgICAgICAgICAgICAgd21CdXR0b24+PC9idXR0b24+XG4gICAgICAgIDxidXR0b24gKGNsaWNrKT1cIm9uT2soJGV2ZW50KVwiIFthdHRyLmFyaWEtbGFiZWxdPVwib2t0ZXh0XCIgY2FwdGlvbi5iaW5kPVwib2t0ZXh0XCIgY2xhc3M9XCJidG4tcHJpbWFyeSBvay1hY3Rpb25cIlxuICAgICAgICAgICAgICAgIHdtQnV0dG9uPjwvYnV0dG9uPlxuICAgIDwvZGl2PlxuPC9uZy10ZW1wbGF0ZT5cbiJdfQ==
|
@@ -45,12 +45,15 @@ function ConfirmDialogComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
45
45
|
i0.ɵɵelementEnd()();
|
46
46
|
} if (rf & 2) {
|
47
47
|
const ctx_r1 = i0.ɵɵnextContext();
|
48
|
-
i0.ɵɵproperty("closable", ctx_r1.closable)("iconclass", ctx_r1.iconclass)("iconurl", ctx_r1.iconurl)("iconwidth", ctx_r1.iconwidth)("iconheight", ctx_r1.iconheight)("iconmargin", ctx_r1.iconmargin)("heading", ctx_r1.title)("headinglevel", ctx_r1.headinglevel)("titleid", ctx_r1.titleId);
|
48
|
+
i0.ɵɵproperty("closable", ctx_r1.closable)("iconclass", ctx_r1.iconclass)("iconurl", ctx_r1.iconurl)("iconwidth", ctx_r1.iconwidth)("iconheight", ctx_r1.iconheight)("iconmargin", ctx_r1.iconmargin)("heading", ctx_r1.title)("headinglevel", ctx_r1.headinglevel)("title", ctx_r1.title)("titleid", ctx_r1.titleId);
|
49
49
|
i0.ɵɵadvance(2);
|
50
50
|
i0.ɵɵclassMapInterpolate1("app-dialog-message ", ctx_r1.messageclass, "");
|
51
|
-
i0.ɵɵattribute("aria-describedby", ctx_r1.message);
|
52
51
|
i0.ɵɵadvance();
|
53
52
|
i0.ɵɵtextInterpolate(ctx_r1.message);
|
53
|
+
i0.ɵɵadvance(2);
|
54
|
+
i0.ɵɵattribute("aria-label", ctx_r1.canceltext);
|
55
|
+
i0.ɵɵadvance();
|
56
|
+
i0.ɵɵattribute("aria-label", ctx_r1.oktext);
|
54
57
|
} }
|
55
58
|
const DIALOG_CLS = 'app-dialog modal-dialog app-confirm-dialog';
|
56
59
|
const WIDGET_INFO = { widgetType: 'wm-confirmdialog' };
|
@@ -107,8 +110,8 @@ class ConfirmDialogComponent extends BaseDialog {
|
|
107
110
|
} }, features: [i0.ɵɵProvidersFeature([
|
108
111
|
provideAsWidgetRef(ConfirmDialogComponent),
|
109
112
|
provideAsDialogRef(ConfirmDialogComponent)
|
110
|
-
]), i0.ɵɵInheritDefinitionFeature], attrs: _c1, decls: 2, vars: 0, consts: [["dialogTemplate", ""], ["wmDialogHeader", "", 3, "closable", "iconclass", "iconurl", "iconwidth", "iconheight", "iconmargin", "heading", "headinglevel", "titleid"], ["wmDialogBody", ""], ["wmDialogFooter", ""], ["
|
111
|
-
i0.ɵɵtemplate(0, ConfirmDialogComponent_ng_template_0_Template, 7,
|
113
|
+
]), i0.ɵɵInheritDefinitionFeature], attrs: _c1, decls: 2, vars: 0, consts: [["dialogTemplate", ""], ["wmDialogHeader", "", 3, "closable", "iconclass", "iconurl", "iconwidth", "iconheight", "iconmargin", "heading", "headinglevel", "title", "titleid"], ["wmDialogBody", ""], ["wmDialogFooter", ""], ["caption.bind", "canceltext", "wmButton", "", 1, "btn-default", "cancel-action", 3, "click"], ["caption.bind", "oktext", "wmButton", "", 1, "btn-primary", "ok-action", 3, "click"]], template: function ConfirmDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
114
|
+
i0.ɵɵtemplate(0, ConfirmDialogComponent_ng_template_0_Template, 7, 16, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
112
115
|
} }, dependencies: [i1.DialogBodyDirective, i1.DialogFooterDirective, i1.DialogHeaderComponent, i2.ButtonComponent], encapsulation: 2 }); }
|
113
116
|
}
|
114
117
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ConfirmDialogComponent, [{
|
@@ -116,7 +119,7 @@ class ConfirmDialogComponent extends BaseDialog {
|
|
116
119
|
args: [{ selector: 'div[wmConfirmDialog]', providers: [
|
117
120
|
provideAsWidgetRef(ConfirmDialogComponent),
|
118
121
|
provideAsDialogRef(ConfirmDialogComponent)
|
119
|
-
], template: "<ng-template #dialogTemplate>\n <div wmDialogHeader [closable]=\"closable\"\n [iconclass]=\"iconclass\"\n [iconurl]=\"iconurl\"\n [iconwidth]=\"iconwidth\"\n [iconheight]=\"iconheight\"\n [iconmargin]=\"iconmargin\"\n [heading]=\"title\"\n [headinglevel]=\"headinglevel\"\n [titleid]=\"titleId\"></div>\n <div wmDialogBody>\n <p class=\"app-dialog-message {{messageclass}}\"
|
122
|
+
], template: "<ng-template #dialogTemplate>\n <div wmDialogHeader [closable]=\"closable\"\n [iconclass]=\"iconclass\"\n [iconurl]=\"iconurl\"\n [iconwidth]=\"iconwidth\"\n [iconheight]=\"iconheight\"\n [iconmargin]=\"iconmargin\"\n [heading]=\"title\"\n [headinglevel]=\"headinglevel\"\n [title]=\"title\"\n [titleid]=\"titleId\"></div>\n <div wmDialogBody>\n <p class=\"app-dialog-message {{messageclass}}\">{{ message }}</p>\n </div>\n <div wmDialogFooter>\n <button (click)=\"onCancel($event)\" [attr.aria-label]=\"canceltext\" caption.bind=\"canceltext\" class=\"btn-default cancel-action\"\n wmButton></button>\n <button (click)=\"onOk($event)\" [attr.aria-label]=\"oktext\" caption.bind=\"oktext\" class=\"btn-primary ok-action\"\n wmButton></button>\n </div>\n</ng-template>\n" }]
|
120
123
|
}], () => [{ type: i0.Injector }, { type: undefined, decorators: [{
|
121
124
|
type: Attribute,
|
122
125
|
args: ['class']
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../projects/components/widgets/dialogs/confirm-dialog/src/confirm-dialog.props.ts","../../../../../projects/components/widgets/dialogs/confirm-dialog/src/confirm-dialog.component.html","../../../../../projects/components/widgets/dialogs/confirm-dialog/src/confirm-dialog.component.ts","../../../../../projects/components/widgets/dialogs/confirm-dialog/src/confirm-dialog.module.ts","../../../../../projects/components/widgets/dialogs/confirm-dialog/src/index.ts"],"sourcesContent":["import { PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-confirmdialog',\n new Map(\n [\n ['animation', PROP_STRING],\n ['canceltext', {value: 'CANCEL', ...PROP_STRING}],\n ['class', PROP_STRING],\n ['closable', {value: true, PROP_BOOLEAN}],\n ['iconclass', {value: 'wm-sl-l sl-check', PROP_STRING}],\n ['iconheight', PROP_STRING],\n ['iconmargin', PROP_STRING],\n ['iconurl', PROP_STRING],\n ['iconwidth', PROP_STRING],\n ['message', {value: 'I am confirm box!', ...PROP_STRING}],\n ['modal', {value: false, ...PROP_BOOLEAN}],\n ['name', PROP_STRING],\n ['oktext', {value: 'OK', ...PROP_STRING}],\n ['tabindex', {value: 0, ...PROP_NUMBER}],\n ['headinglevel', {value: 'h4', ...PROP_STRING}],\n ['title', {value: 'Confirm', ...PROP_STRING}]\n ]\n )\n );\n};\n","<ng-template #dialogTemplate>\n <div wmDialogHeader [closable]=\"closable\"\n [iconclass]=\"iconclass\"\n [iconurl]=\"iconurl\"\n [iconwidth]=\"iconwidth\"\n [iconheight]=\"iconheight\"\n [iconmargin]=\"iconmargin\"\n [heading]=\"title\"\n [headinglevel]=\"headinglevel\"\n [titleid]=\"titleId\"></div>\n <div wmDialogBody>\n <p class=\"app-dialog-message {{messageclass}}\" [attr.aria-describedby]=\"message\">{{message}}</p>\n </div>\n <div wmDialogFooter>\n <button wmButton class=\"btn-default cancel-action\" caption.bind=\"canceltext\" aria-label=\"Cancel button\" (click)=\"onCancel($event)\"></button>\n <button wmButton class=\"btn-primary ok-action\" caption.bind=\"oktext\" aria-label=\"Submit button\" (click)=\"onOk($event)\"></button>\n </div>\n</ng-template>\n","import {\n Attribute,\n Component,\n Injector,\n OnInit,\n TemplateRef,\n ViewChild,\n HostListener,\n Optional,\n SkipSelf,\n Inject\n} from '@angular/core';\n\nimport {toBoolean} from '@wm/core';\nimport { provideAsDialogRef, provideAsWidgetRef } from '@wm/components/base';\nimport { BaseDialog } from '@wm/components/dialogs';\n\nimport { registerProps } from './confirm-dialog.props';\n\nconst DIALOG_CLS = 'app-dialog modal-dialog app-confirm-dialog';\nconst WIDGET_INFO = {widgetType: 'wm-confirmdialog'};\n\n@Component({\n selector: 'div[wmConfirmDialog]',\n templateUrl: './confirm-dialog.component.html',\n providers: [\n provideAsWidgetRef(ConfirmDialogComponent),\n provideAsDialogRef(ConfirmDialogComponent)\n ]\n})\nexport class ConfirmDialogComponent extends BaseDialog implements OnInit {\n static initializeProps = registerProps();\n @ViewChild('dialogTemplate', { static: true }) dialogTemplate: TemplateRef<any>;\n\n constructor(\n inj: Injector,\n @Attribute('class') dialogClass: string,\n @Attribute('modal') modal: string | boolean,\n @Attribute('closable') closable: string | boolean,\n @Inject('EXPLICIT_CONTEXT') @Optional() explicitContext: any\n ) {\n if (modal === null || modal === undefined) {\n modal = false;\n }\n\n if (closable === null || closable === undefined) {\n closable = true;\n }\n\n // setting the backdrop to 'static' will not close the dialog on backdrop click\n const backdrop = 'static';\n\n super(\n inj,\n WIDGET_INFO,\n {\n class: `${DIALOG_CLS} ${dialogClass || ''}`,\n backdrop,\n keyboard: !toBoolean(modal)\n },\n explicitContext\n );\n }\n\n @HostListener('window:keydown.esc', ['$event'])\n onEscape($event: KeyboardEvent){};\n\n protected getTemplateRef(): TemplateRef<any> {\n return this.dialogTemplate;\n }\n\n /**\n * Click event handler for the ok button\n * invokes on-ok event callback\n * @param {Event} $event\n */\n onOk($event: Event) {\n this.invokeEventCallback('ok', {$event});\n }\n\n /**\n * Click event handler for the cancel button\n * invokes on-cancel event callback\n * @param {Event} $event\n */\n onCancel($event: Event) {\n this.invokeEventCallback('cancel', {$event});\n }\n\n ngOnInit() {\n super.ngOnInit();\n this.register(this.viewParent);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { WmComponentsModule } from '@wm/components/base';\nimport { DialogModule } from '@wm/components/dialogs';\nimport { InputModule } from '@wm/components/input';\n\nimport { ConfirmDialogComponent } from './confirm-dialog.component';\n\nconst components = [\n ConfirmDialogComponent\n];\n\n@NgModule({\n imports: [\n CommonModule,\n DialogModule,\n InputModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class ConfirmDialogModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;AAEO,MAAM,aAAa,GAAG,MAAK;AAC9B,IAAA,QAAQ,CACJ,kBAAkB,EAClB,IAAI,GAAG,CACH;QACI,CAAC,WAAW,EAAE,WAAW,CAAC;QAC1B,CAAC,YAAY,EAAE,EAAC,KAAK,EAAE,QAAQ,EAAE,GAAG,WAAW,EAAC,CAAC;QACjD,CAAC,OAAO,EAAE,WAAW,CAAC;QACtB,CAAC,UAAU,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,YAAY,EAAC,CAAC;QACzC,CAAC,WAAW,EAAE,EAAC,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAC,CAAC;QACvD,CAAC,YAAY,EAAE,WAAW,CAAC;QAC3B,CAAC,YAAY,EAAE,WAAW,CAAC;QAC3B,CAAC,SAAS,EAAE,WAAW,CAAC;QACxB,CAAC,WAAW,EAAE,WAAW,CAAC;QAC1B,CAAC,SAAS,EAAE,EAAC,KAAK,EAAE,mBAAmB,EAAE,GAAG,WAAW,EAAC,CAAC;QACzD,CAAC,OAAO,EAAE,EAAC,KAAK,EAAE,KAAK,EAAE,GAAG,YAAY,EAAC,CAAC;QAC1C,CAAC,MAAM,EAAE,WAAW,CAAC;QACrB,CAAC,QAAQ,EAAE,EAAC,KAAK,EAAE,I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B,YAAY;QACZ,YAAY;QACZ,WAAW;AACX,QAAA,kBAAkB,aARtB,sBAAsB,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACV1B;;AAEG;;;;"}
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../projects/components/widgets/dialogs/confirm-dialog/src/confirm-dialog.props.ts","../../../../../projects/components/widgets/dialogs/confirm-dialog/src/confirm-dialog.component.html","../../../../../projects/components/widgets/dialogs/confirm-dialog/src/confirm-dialog.component.ts","../../../../../projects/components/widgets/dialogs/confirm-dialog/src/confirm-dialog.module.ts","../../../../../projects/components/widgets/dialogs/confirm-dialog/src/index.ts"],"sourcesContent":["import { PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-confirmdialog',\n new Map(\n [\n ['animation', PROP_STRING],\n ['canceltext', {value: 'CANCEL', ...PROP_STRING}],\n ['class', PROP_STRING],\n ['closable', {value: true, PROP_BOOLEAN}],\n ['iconclass', {value: 'wm-sl-l sl-check', PROP_STRING}],\n ['iconheight', PROP_STRING],\n ['iconmargin', PROP_STRING],\n ['iconurl', PROP_STRING],\n ['iconwidth', PROP_STRING],\n ['message', {value: 'I am confirm box!', ...PROP_STRING}],\n ['modal', {value: false, ...PROP_BOOLEAN}],\n ['name', PROP_STRING],\n ['oktext', {value: 'OK', ...PROP_STRING}],\n ['tabindex', {value: 0, ...PROP_NUMBER}],\n ['headinglevel', {value: 'h4', ...PROP_STRING}],\n ['title', {value: 'Confirm', ...PROP_STRING}]\n ]\n )\n );\n};\n","<ng-template #dialogTemplate>\n <div wmDialogHeader [closable]=\"closable\"\n [iconclass]=\"iconclass\"\n [iconurl]=\"iconurl\"\n [iconwidth]=\"iconwidth\"\n [iconheight]=\"iconheight\"\n [iconmargin]=\"iconmargin\"\n [heading]=\"title\"\n [headinglevel]=\"headinglevel\"\n [title]=\"title\"\n [titleid]=\"titleId\"></div>\n <div wmDialogBody>\n <p class=\"app-dialog-message {{messageclass}}\">{{ message }}</p>\n </div>\n <div wmDialogFooter>\n <button (click)=\"onCancel($event)\" [attr.aria-label]=\"canceltext\" caption.bind=\"canceltext\" class=\"btn-default cancel-action\"\n wmButton></button>\n <button (click)=\"onOk($event)\" [attr.aria-label]=\"oktext\" caption.bind=\"oktext\" class=\"btn-primary ok-action\"\n wmButton></button>\n </div>\n</ng-template>\n","import {\n Attribute,\n Component,\n Injector,\n OnInit,\n TemplateRef,\n ViewChild,\n HostListener,\n Optional,\n SkipSelf,\n Inject\n} from '@angular/core';\n\nimport {toBoolean} from '@wm/core';\nimport { provideAsDialogRef, provideAsWidgetRef } from '@wm/components/base';\nimport { BaseDialog } from '@wm/components/dialogs';\n\nimport { registerProps } from './confirm-dialog.props';\n\nconst DIALOG_CLS = 'app-dialog modal-dialog app-confirm-dialog';\nconst WIDGET_INFO = {widgetType: 'wm-confirmdialog'};\n\n@Component({\n selector: 'div[wmConfirmDialog]',\n templateUrl: './confirm-dialog.component.html',\n providers: [\n provideAsWidgetRef(ConfirmDialogComponent),\n provideAsDialogRef(ConfirmDialogComponent)\n ]\n})\nexport class ConfirmDialogComponent extends BaseDialog implements OnInit {\n static initializeProps = registerProps();\n @ViewChild('dialogTemplate', { static: true }) dialogTemplate: TemplateRef<any>;\n\n constructor(\n inj: Injector,\n @Attribute('class') dialogClass: string,\n @Attribute('modal') modal: string | boolean,\n @Attribute('closable') closable: string | boolean,\n @Inject('EXPLICIT_CONTEXT') @Optional() explicitContext: any\n ) {\n if (modal === null || modal === undefined) {\n modal = false;\n }\n\n if (closable === null || closable === undefined) {\n closable = true;\n }\n\n // setting the backdrop to 'static' will not close the dialog on backdrop click\n const backdrop = 'static';\n\n super(\n inj,\n WIDGET_INFO,\n {\n class: `${DIALOG_CLS} ${dialogClass || ''}`,\n backdrop,\n keyboard: !toBoolean(modal)\n },\n explicitContext\n );\n }\n\n @HostListener('window:keydown.esc', ['$event'])\n onEscape($event: KeyboardEvent){};\n\n protected getTemplateRef(): TemplateRef<any> {\n return this.dialogTemplate;\n }\n\n /**\n * Click event handler for the ok button\n * invokes on-ok event callback\n * @param {Event} $event\n */\n onOk($event: Event) {\n this.invokeEventCallback('ok', {$event});\n }\n\n /**\n * Click event handler for the cancel button\n * invokes on-cancel event callback\n * @param {Event} $event\n */\n onCancel($event: Event) {\n this.invokeEventCallback('cancel', {$event});\n }\n\n ngOnInit() {\n super.ngOnInit();\n this.register(this.viewParent);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { WmComponentsModule } from '@wm/components/base';\nimport { DialogModule } from '@wm/components/dialogs';\nimport { InputModule } from '@wm/components/input';\n\nimport { ConfirmDialogComponent } from './confirm-dialog.component';\n\nconst components = [\n ConfirmDialogComponent\n];\n\n@NgModule({\n imports: [\n CommonModule,\n DialogModule,\n InputModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class ConfirmDialogModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;AAEO,MAAM,aAAa,GAAG,MAAK;AAC9B,IAAA,QAAQ,CACJ,kBAAkB,EAClB,IAAI,GAAG,CACH;QACI,CAAC,WAAW,EAAE,WAAW,CAAC;QAC1B,CAAC,YAAY,EAAE,EAAC,KAAK,EAAE,QAAQ,EAAE,GAAG,WAAW,EAAC,CAAC;QACjD,CAAC,OAAO,EAAE,WAAW,CAAC;QACtB,CAAC,UAAU,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,YAAY,EAAC,CAAC;QACzC,CAAC,WAAW,EAAE,EAAC,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAC,CAAC;QACvD,CAAC,YAAY,EAAE,WAAW,CAAC;QAC3B,CAAC,YAAY,EAAE,WAAW,CAAC;QAC3B,CAAC,SAAS,EAAE,WAAW,CAAC;QACxB,CAAC,WAAW,EAAE,WAAW,CAAC;QAC1B,CAAC,SAAS,EAAE,EA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AY;oBACZ,YAAY;oBACZ,WAAW;oBACX,kBAAkB;AACrB,iBAAA;AACD,gBAAA,YAAY,EAAE,CAAC,GAAG,UAAU,CAAC;AAC7B,gBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AAC3B,aAAA,CAAA;;wFACY,mBAAmB,EAAA,EAAA,YAAA,EAAA,CAb5B,sBAAsB,CAAA,EAAA,OAAA,EAAA,CAKlB,YAAY;QACZ,YAAY;QACZ,WAAW;AACX,QAAA,kBAAkB,aARtB,sBAAsB,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACV1B;;AAEG;;;;"}
|
@@ -245,6 +245,7 @@
|
|
245
245
|
const parentSelector = $('body > app-root')[0];
|
246
246
|
parentSelector.setAttribute('aria-hidden', 'true');
|
247
247
|
}
|
248
|
+
$('.cdk-focus-trap-anchor').removeAttr('aria-hidden');
|
248
249
|
}
|
249
250
|
/**
|
250
251
|
* closes the dialog
|
@@ -315,6 +316,9 @@
|
|
315
316
|
i0__namespace.ɵɵelementStart(1, "span", 6);
|
316
317
|
i0__namespace.ɵɵtext(2, "\u00D7");
|
317
318
|
i0__namespace.ɵɵelementEnd()();
|
319
|
+
} if (rf & 2) {
|
320
|
+
const ctx_r1 = i0__namespace.ɵɵnextContext();
|
321
|
+
i0__namespace.ɵɵattribute("aria-label", "Close " + (ctx_r1.title ? ctx_r1.title : "") + " dialog");
|
318
322
|
} }
|
319
323
|
function DialogHeaderComponent_ng_container_2_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
320
324
|
i0__namespace.ɵɵelementContainer(0);
|
@@ -472,8 +476,8 @@
|
|
472
476
|
this.dialogRef.close();
|
473
477
|
}
|
474
478
|
static { this.ɵfac = function DialogHeaderComponent_Factory(t) { return new (t || DialogHeaderComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef), i0__namespace.ɵɵdirectiveInject(i2.DialogRef)); }; }
|
475
|
-
static { this.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: DialogHeaderComponent, selectors: [["div", "wmDialogHeader", ""]], inputs: { iconwidth: "iconwidth", iconheight: "iconheight", iconmargin: "iconmargin", iconclass: "iconclass", iconurl: "iconurl", closable: "closable", heading: "heading", headinglevel: "headinglevel", subheading: "subheading", titleid: "titleid" }, attrs: _c0, decls: 11, vars: 8, consts: [["headerTemplate", ""], ["
|
476
|
-
i0__namespace.ɵɵtemplate(0, DialogHeaderComponent_button_0_Template, 3,
|
479
|
+
static { this.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: DialogHeaderComponent, selectors: [["div", "wmDialogHeader", ""]], inputs: { iconwidth: "iconwidth", iconheight: "iconheight", iconmargin: "iconmargin", iconclass: "iconclass", iconurl: "iconurl", closable: "closable", heading: "heading", headinglevel: "headinglevel", subheading: "subheading", titleid: "titleid", title: "title" }, attrs: _c0, decls: 11, vars: 8, consts: [["headerTemplate", ""], ["class", "app-dialog-close close", "title", "Close", 3, "click", 4, "ngIf"], [3, "ngSwitch"], [4, "ngSwitchCase"], [4, "ngSwitchDefault"], ["title", "Close", 1, "app-dialog-close", "close", 3, "click"], ["aria-hidden", "true"], [1, "app-dialog-title", "modal-title"], [4, "ngTemplateOutlet"], [3, "ngClass", "ngStyle", 4, "ngIf"], ["data-identifier", "img", 3, "src", "ngStyle", 4, "ngIf"], [1, "dialog-heading", 3, "textContent", "id"], ["class", "dialog-sub-heading", 3, "title", "textContent", 4, "ngIf"], [3, "ngClass", "ngStyle"], ["data-identifier", "img", 3, "src", "ngStyle"], [1, "dialog-sub-heading", 3, "title", "textContent"]], template: function DialogHeaderComponent_Template(rf, ctx) { if (rf & 1) {
|
480
|
+
i0__namespace.ɵɵtemplate(0, DialogHeaderComponent_button_0_Template, 3, 1, "button", 1);
|
477
481
|
i0__namespace.ɵɵelementContainerStart(1, 2);
|
478
482
|
i0__namespace.ɵɵtemplate(2, DialogHeaderComponent_ng_container_2_Template, 3, 1, "ng-container", 3)(3, DialogHeaderComponent_ng_container_3_Template, 3, 1, "ng-container", 3)(4, DialogHeaderComponent_ng_container_4_Template, 3, 1, "ng-container", 3)(5, DialogHeaderComponent_ng_container_5_Template, 3, 1, "ng-container", 3)(6, DialogHeaderComponent_ng_container_6_Template, 3, 1, "ng-container", 3)(7, DialogHeaderComponent_ng_container_7_Template, 3, 1, "ng-container", 3)(8, DialogHeaderComponent_ng_container_8_Template, 3, 1, "ng-container", 4);
|
479
483
|
i0__namespace.ɵɵelementContainerEnd();
|
@@ -498,7 +502,7 @@
|
|
498
502
|
}
|
499
503
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(DialogHeaderComponent, [{
|
500
504
|
type: i0.Component,
|
501
|
-
args: [{ selector: 'div[wmDialogHeader]', template: "<button *ngIf=\"isClosable\"
|
505
|
+
args: [{ selector: 'div[wmDialogHeader]', template: "<button (click)=\"closeDialog();\" *ngIf=\"isClosable\"\n [attr.aria-label]=\"'Close ' + (title ? title : '') + ' dialog'\" class=\"app-dialog-close close\" title=\"Close\">\n <span aria-hidden=\"true\">×</span>\n</button>\n\n<ng-container [ngSwitch]=\"headinglevel\">\n <ng-container *ngSwitchCase=\"'h1'\">\n <h1 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h1>\n </ng-container>\n <ng-container *ngSwitchCase=\"'h2'\">\n <h2 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h2>\n </ng-container>\n <ng-container *ngSwitchCase=\"'h3'\">\n <h3 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h3>\n </ng-container>\n <ng-container *ngSwitchCase=\"'h4'\">\n <h4 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h4>\n </ng-container>\n <ng-container *ngSwitchCase=\"'h5'\">\n <h5 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h5>\n </ng-container>\n <ng-container *ngSwitchCase=\"'h6'\">\n <h6 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h6>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <h4 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h4>\n </ng-container>\n</ng-container>\n\n<ng-template #headerTemplate>\n <i [ngClass]=\"iconclass\" [ngStyle]=\"{width: iconwidth, height: iconheight, margin: iconmargin}\" *ngIf=\"iconclass && !iconurl\"></i>\n <img data-identifier=\"img\" [src]=\"iconurl | image\" *ngIf=\"iconurl\" [ngStyle]=\"{width: iconwidth, height: iconheight, margin: iconmargin}\"/>\n <span class=\"dialog-heading\" [textContent]=\"heading\" [id]=\"titleid\"></span>\n <span class=\"dialog-sub-heading\" *ngIf=\"subheading\" [title]=\"subheading\" [textContent]=\"subheading\"></span>\n</ng-template>\n" }]
|
502
506
|
}], () => [{ type: i0__namespace.ElementRef }, { type: BaseDialog, decorators: [{
|
503
507
|
type: i0.Inject,
|
504
508
|
args: [i2.DialogRef]
|
@@ -522,6 +526,8 @@
|
|
522
526
|
type: i0.Input
|
523
527
|
}], titleid: [{
|
524
528
|
type: i0.Input
|
529
|
+
}], title: [{
|
530
|
+
type: i0.Input
|
525
531
|
}] }); })();
|
526
532
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassDebugInfo(DialogHeaderComponent, { className: "DialogHeaderComponent", filePath: "dialog-header/dialog-header.component.ts", lineNumber: 15 }); })();
|
527
533
|
|