@wavemaker/app-ng-runtime 12.0.0-next.141131 → 12.0.0-next.141138
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- app-ng-runtime/build-task/bundles/index.umd.js +402 -440
- 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 +3 -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/esm2022/public_api.mjs +1 -3
- app-ng-runtime/build-task/fesm2022/index.mjs +403 -443
- app-ng-runtime/build-task/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/build-task/public_api.d.ts +0 -2
- 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 +22 -69
- app-ng-runtime/components/base/components.module.d.ts +11 -12
- app-ng-runtime/components/base/esm2022/components.module.mjs +1 -5
- app-ng-runtime/components/base/esm2022/pipes/custom-pipes.mjs +3 -3
- app-ng-runtime/components/base/esm2022/public_api.mjs +1 -2
- app-ng-runtime/components/base/esm2022/utils/live-utils.mjs +8 -2
- app-ng-runtime/components/base/esm2022/widgets/common/base/base.component.mjs +15 -30
- app-ng-runtime/components/base/fesm2022/index.mjs +23 -69
- 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/base/public_api.d.ts +0 -1
- app-ng-runtime/components/base/widgets/common/base/base.component.d.ts +5 -10
- 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 +35 -40
- app-ng-runtime/components/basic/search/esm2022/search.component.mjs +37 -40
- app-ng-runtime/components/basic/search/esm2022/search.props.mjs +3 -5
- app-ng-runtime/components/basic/search/fesm2022/index.mjs +35 -40
- app-ng-runtime/components/basic/search/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/basic/search/search.component.d.ts +4 -5
- 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 +6 -14
- app-ng-runtime/components/containers/tabs/esm2022/tabs.component.mjs +7 -14
- app-ng-runtime/components/containers/tabs/esm2022/tabs.props.mjs +2 -3
- app-ng-runtime/components/containers/tabs/fesm2022/index.mjs +6 -14
- app-ng-runtime/components/containers/tabs/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/containers/tabs/tabs.component.d.ts +0 -1
- app-ng-runtime/components/containers/wizard/bundles/index.umd.js +23 -6
- app-ng-runtime/components/containers/wizard/esm2022/wizard.component.mjs +24 -7
- app-ng-runtime/components/containers/wizard/fesm2022/index.mjs +23 -6
- app-ng-runtime/components/containers/wizard/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/containers/wizard/wizard.component.d.ts +1 -0
- 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 -3
- app-ng-runtime/components/data/form/fesm2022/index.mjs +4 -2
- 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 +11 -11
- app-ng-runtime/components/data/list/esm2022/list.component.mjs +12 -12
- app-ng-runtime/components/data/list/fesm2022/index.mjs +11 -11
- 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/base-dialog.d.ts +0 -2
- app-ng-runtime/components/dialogs/default/bundles/index.umd.js +23 -17
- 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 +13 -1
- app-ng-runtime/components/dialogs/default/esm2022/dialog-body/dialog-body.directive.mjs +2 -14
- app-ng-runtime/components/dialogs/default/esm2022/dialog-header/dialog-header.component.mjs +12 -6
- app-ng-runtime/components/dialogs/default/fesm2022/index.mjs +24 -18
- app-ng-runtime/components/dialogs/default/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/design-dialog/bundles/index.umd.js +7 -25
- app-ng-runtime/components/dialogs/design-dialog/dialog.component.d.ts +2 -3
- app-ng-runtime/components/dialogs/design-dialog/esm2022/dialog.component.mjs +8 -26
- app-ng-runtime/components/dialogs/design-dialog/fesm2022/index.mjs +7 -25
- 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 +7 -3
- app-ng-runtime/components/input/chips/esm2022/chips.component.mjs +7 -4
- app-ng-runtime/components/input/chips/esm2022/chips.props.mjs +2 -1
- app-ng-runtime/components/input/chips/fesm2022/index.mjs +7 -3
- 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 +257 -197
- 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/checkboxset/checkboxset.component.d.ts +0 -1
- 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 +25 -23
- 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 +32 -30
- app-ng-runtime/components/input/default/esm2022/select/select.component.mjs +60 -30
- app-ng-runtime/components/input/default/esm2022/select/select.props.mjs +2 -1
- app-ng-runtime/components/input/default/esm2022/switch/switch.component.mjs +39 -64
- app-ng-runtime/components/input/default/esm2022/switch/switch.props.mjs +2 -2
- app-ng-runtime/components/input/default/esm2022/text/base/base-input.mjs +1 -4
- 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 +51 -14
- 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 +9 -6
- app-ng-runtime/components/input/default/esm2022/textarea/textarea.props.mjs +2 -1
- app-ng-runtime/components/input/default/fesm2022/index.mjs +257 -197
- 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/radioset/radioset.component.d.ts +0 -1
- app-ng-runtime/components/input/default/select/select.component.d.ts +4 -4
- app-ng-runtime/components/input/default/switch/switch.component.d.ts +0 -2
- 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 +4 -2
- app-ng-runtime/components/input/epoch/base-date-time.component.d.ts +2 -1
- app-ng-runtime/components/input/epoch/bundles/index.umd.js +31 -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 +12 -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 +28 -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 +241 -112
- app-ng-runtime/components/input/file-upload/esm2022/file-upload.component.mjs +238 -115
- app-ng-runtime/components/input/file-upload/esm2022/file-upload.props.mjs +7 -1
- app-ng-runtime/components/input/file-upload/fesm2022/index.mjs +242 -113
- 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 +23 -12
- app-ng-runtime/components/input/rating/bundles/index.umd.js +35 -26
- app-ng-runtime/components/input/rating/esm2022/rating.component.mjs +37 -26
- app-ng-runtime/components/input/rating/esm2022/rating.props.mjs +1 -3
- app-ng-runtime/components/input/rating/fesm2022/index.mjs +36 -27
- app-ng-runtime/components/input/rating/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/rating/rating.component.d.ts +1 -3
- 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 +10 -8
- app-ng-runtime/components/navigation/menu/esm2022/menu.component.mjs +9 -8
- app-ng-runtime/components/navigation/menu/esm2022/menu.props.mjs +2 -1
- app-ng-runtime/components/navigation/menu/esm2022/nav/nav.component.mjs +2 -2
- app-ng-runtime/components/navigation/menu/fesm2022/index.mjs +10 -8
- 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 +4 -7
- app-ng-runtime/components/page/left-panel/esm2022/left-panel.directive.mjs +5 -9
- app-ng-runtime/components/page/left-panel/esm2022/left-panel.props.mjs +3 -2
- app-ng-runtime/components/page/left-panel/fesm2022/index.mjs +6 -9
- app-ng-runtime/components/page/left-panel/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/page/left-panel/left-panel.directive.d.ts +2 -2
- app-ng-runtime/components/page/right-panel/bundles/index.umd.js +4 -7
- app-ng-runtime/components/page/right-panel/esm2022/right-panel.directive.mjs +5 -9
- app-ng-runtime/components/page/right-panel/esm2022/right-panel.props.mjs +3 -2
- app-ng-runtime/components/page/right-panel/fesm2022/index.mjs +6 -9
- app-ng-runtime/components/page/right-panel/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/page/right-panel/right-panel.directive.d.ts +2 -2
- 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 +11 -31
- app-ng-runtime/core/enums/enums.d.ts +1 -2
- app-ng-runtime/core/esm2022/enums/enums.mjs +1 -2
- app-ng-runtime/core/esm2022/public_api.mjs +2 -2
- app-ng-runtime/core/esm2022/types/types.mjs +1 -4
- app-ng-runtime/core/esm2022/utils/build-utils.mjs +7 -12
- app-ng-runtime/core/esm2022/utils/utils.mjs +4 -12
- app-ng-runtime/core/fesm2022/index.mjs +11 -29
- app-ng-runtime/core/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/core/public_api.d.ts +1 -1
- app-ng-runtime/core/types/types.d.ts +1 -5
- app-ng-runtime/core/utils/utils.d.ts +1 -2
- 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/mobile/core/bundles/index.umd.js +18 -2
- app-ng-runtime/mobile/core/esm2022/native.xhr.mjs +19 -3
- app-ng-runtime/mobile/core/fesm2022/index.mjs +18 -2
- app-ng-runtime/mobile/core/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/package.json +1 -1
- app-ng-runtime/runtime/base/bundles/index.umd.js +11 -300
- 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/esm2022/public_api.mjs +1 -2
- app-ng-runtime/runtime/base/esm2022/runtime-base.module.mjs +1 -6
- app-ng-runtime/runtime/base/esm2022/services/i18n.service.mjs +2 -2
- app-ng-runtime/runtime/base/esm2022/types/types.mjs +1 -4
- app-ng-runtime/runtime/base/fesm2022/index.mjs +10 -298
- 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/runtime/base/public_api.d.ts +0 -1
- app-ng-runtime/runtime/base/runtime-base.module.d.ts +8 -9
- app-ng-runtime/runtime/base/types/types.d.ts +1 -5
- app-ng-runtime/runtime/dynamic/bundles/index.umd.js +13 -49
- app-ng-runtime/runtime/dynamic/esm2022/app/app.module.mjs +3 -8
- app-ng-runtime/runtime/dynamic/esm2022/app/services/component-ref-provider.service.mjs +7 -23
- app-ng-runtime/runtime/dynamic/fesm2022/index.mjs +11 -50
- app-ng-runtime/runtime/dynamic/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/scripts/@wavemaker/nvd3/build/nv.d3.min.js +1 -1
- app-ng-runtime/scripts/datatable/datatable.js +38 -34
- app-ng-runtime/scripts/summernote/dist/summernote-lite.min.js +2 -3
- app-ng-runtime/transpiler/bundles/index.umd.js +0 -5
- app-ng-runtime/transpiler/esm2022/build.mjs +1 -4
- app-ng-runtime/transpiler/esm2022/imports.mjs +1 -3
- app-ng-runtime/transpiler/fesm2022/index.mjs +0 -5
- app-ng-runtime/transpiler/fesm2022/index.mjs.map +1 -1
- 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
- app-ng-runtime/build-task/advanced/custom-widget-container/custom-widget-container.build.d.ts +0 -2
- app-ng-runtime/build-task/advanced/custom-widget-wrapper/custom-widget-wrapper.build.d.ts +0 -2
- app-ng-runtime/build-task/esm2022/advanced/custom-widget-container/custom-widget-container.build.mjs +0 -15
- app-ng-runtime/build-task/esm2022/advanced/custom-widget-wrapper/custom-widget-wrapper.build.mjs +0 -26
- app-ng-runtime/components/advanced/custom/.npmignore +0 -2
- app-ng-runtime/components/advanced/custom/bundles/index.umd.js +0 -232
- app-ng-runtime/components/advanced/custom/custom-widget-container/custom-widget-container.directive.d.ts +0 -19
- app-ng-runtime/components/advanced/custom/custom-widget-container/custom-widget.props.d.ts +0 -2
- app-ng-runtime/components/advanced/custom/custom-widget-prop.d.ts +0 -1
- app-ng-runtime/components/advanced/custom/custom-widget.directive.d.ts +0 -19
- app-ng-runtime/components/advanced/custom/custom-widget.module.d.ts +0 -10
- app-ng-runtime/components/advanced/custom/esm2022/custom-widget-container/custom-widget-container.directive.mjs +0 -102
- app-ng-runtime/components/advanced/custom/esm2022/custom-widget-container/custom-widget.props.mjs +0 -12
- app-ng-runtime/components/advanced/custom/esm2022/custom-widget-prop.mjs +0 -8
- app-ng-runtime/components/advanced/custom/esm2022/custom-widget.directive.mjs +0 -68
- app-ng-runtime/components/advanced/custom/esm2022/custom-widget.module.mjs +0 -32
- app-ng-runtime/components/advanced/custom/esm2022/index.mjs +0 -5
- app-ng-runtime/components/advanced/custom/esm2022/public_api.mjs +0 -4
- app-ng-runtime/components/advanced/custom/fesm2022/index.mjs +0 -215
- app-ng-runtime/components/advanced/custom/fesm2022/index.mjs.map +0 -1
- app-ng-runtime/components/advanced/custom/index.d.ts +0 -5
- app-ng-runtime/components/advanced/custom/package.json +0 -23
- app-ng-runtime/components/advanced/custom/public_api.d.ts +0 -3
- app-ng-runtime/components/base/esm2022/widgets/common/base/custom-widget-container.directive.mjs +0 -39
- app-ng-runtime/components/base/widgets/common/base/custom-widget-container.directive.d.ts +0 -14
- app-ng-runtime/runtime/base/components/base-custom-widget.component.d.ts +0 -73
- app-ng-runtime/runtime/base/esm2022/components/base-custom-widget.component.mjs +0 -294
- app-ng-runtime/runtime/dynamic/app/services/customwidget-config-provider.service.d.ts +0 -8
- app-ng-runtime/runtime/dynamic/esm2022/app/services/customwidget-config-provider.service.mjs +0 -22
|
@@ -80,10 +80,6 @@ export declare class WebSocketVariableManager extends BaseVariableManager {
|
|
|
80
80
|
* @private
|
|
81
81
|
*/
|
|
82
82
|
private _onSocketOpen;
|
|
83
|
-
/**
|
|
84
|
-
* clears the socket variable against the variable in a scope
|
|
85
|
-
* @param variable
|
|
86
|
-
*/
|
|
87
83
|
private freeSocket;
|
|
88
84
|
/**
|
|
89
85
|
* calls the ON_CLOSE event on the variable
|
app-ng-runtime/build-task/esm2022/advanced/custom-widget-container/custom-widget-container.build.mjs
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { getAttrMarkup, register } from '@wm/transpiler';
|
|
2
|
-
import { IDGenerator } from "@wm/core";
|
|
3
|
-
const tagName = 'div';
|
|
4
|
-
const idGen = new IDGenerator('wm_custom_widget');
|
|
5
|
-
register('wm-custom-widget', () => {
|
|
6
|
-
return {
|
|
7
|
-
pre: (attrs) => {
|
|
8
|
-
const counter = idGen.nextUid();
|
|
9
|
-
return `<${tagName} wmWidgetContainer customWidgetContainer #${counter}="wmWidgetContainer" ${getAttrMarkup(attrs)}>`;
|
|
10
|
-
},
|
|
11
|
-
post: () => `</${tagName}>`
|
|
12
|
-
};
|
|
13
|
-
});
|
|
14
|
-
export default () => { };
|
|
15
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3VzdG9tLXdpZGdldC1jb250YWluZXIuYnVpbGQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb21wb25lbnRzL3RyYW5zcGlsZS9zcmMvYWR2YW5jZWQvY3VzdG9tLXdpZGdldC1jb250YWluZXIvY3VzdG9tLXdpZGdldC1jb250YWluZXIuYnVpbGQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGFBQWEsRUFBaUIsUUFBUSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDeEUsT0FBTyxFQUFDLFdBQVcsRUFBQyxNQUFNLFVBQVUsQ0FBQztBQUVyQyxNQUFNLE9BQU8sR0FBRyxLQUFLLENBQUM7QUFDdEIsTUFBTSxLQUFLLEdBQUcsSUFBSSxXQUFXLENBQUMsa0JBQWtCLENBQUMsQ0FBQztBQUVsRCxRQUFRLENBQUMsa0JBQWtCLEVBQUUsR0FBa0IsRUFBRTtJQUM3QyxPQUFPO1FBQ0gsR0FBRyxFQUFFLENBQUMsS0FBSyxFQUFFLEVBQUU7WUFDWCxNQUFNLE9BQU8sR0FBRyxLQUFLLENBQUMsT0FBTyxFQUFFLENBQUM7WUFDaEMsT0FBTyxJQUFJLE9BQU8sNkNBQTZDLE9BQU8sd0JBQXdCLGFBQWEsQ0FBQyxLQUFLLENBQUMsR0FBRyxDQUFDO1FBQzFILENBQUM7UUFDRCxJQUFJLEVBQUUsR0FBRyxFQUFFLENBQUMsS0FBSyxPQUFPLEdBQUc7S0FDOUIsQ0FBQztBQUNOLENBQUMsQ0FBQyxDQUFDO0FBRUgsZUFBZSxHQUFHLEVBQUUsR0FBRSxDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBnZXRBdHRyTWFya3VwLCBJQnVpbGRUYXNrRGVmLCByZWdpc3RlciB9IGZyb20gJ0B3bS90cmFuc3BpbGVyJztcbmltcG9ydCB7SURHZW5lcmF0b3J9IGZyb20gXCJAd20vY29yZVwiO1xuXG5jb25zdCB0YWdOYW1lID0gJ2Rpdic7XG5jb25zdCBpZEdlbiA9IG5ldyBJREdlbmVyYXRvcignd21fY3VzdG9tX3dpZGdldCcpO1xuXG5yZWdpc3Rlcignd20tY3VzdG9tLXdpZGdldCcsICgpOiBJQnVpbGRUYXNrRGVmID0+IHtcbiAgICByZXR1cm4ge1xuICAgICAgICBwcmU6IChhdHRycykgPT4ge1xuICAgICAgICAgICAgY29uc3QgY291bnRlciA9IGlkR2VuLm5leHRVaWQoKTtcbiAgICAgICAgICAgIHJldHVybiBgPCR7dGFnTmFtZX0gd21XaWRnZXRDb250YWluZXIgY3VzdG9tV2lkZ2V0Q29udGFpbmVyICMke2NvdW50ZXJ9PVwid21XaWRnZXRDb250YWluZXJcIiAke2dldEF0dHJNYXJrdXAoYXR0cnMpfT5gO1xuICAgICAgICB9LFxuICAgICAgICBwb3N0OiAoKSA9PiBgPC8ke3RhZ05hbWV9PmBcbiAgICB9O1xufSk7XG5cbmV4cG9ydCBkZWZhdWx0ICgpID0+IHt9O1xuIl19
|
app-ng-runtime/build-task/esm2022/advanced/custom-widget-wrapper/custom-widget-wrapper.build.mjs
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Attribute, Element } from '@angular/compiler';
|
|
2
|
-
import { getAttrMarkup, register } from '@wm/transpiler';
|
|
3
|
-
const tagName = 'section';
|
|
4
|
-
const noSpan = {};
|
|
5
|
-
const createElement = name => {
|
|
6
|
-
return new Element(name, [], [], noSpan, noSpan, noSpan);
|
|
7
|
-
};
|
|
8
|
-
const addAtrribute = (node, name, value) => {
|
|
9
|
-
const attr = new Attribute(name, value, noSpan, noSpan, noSpan, undefined, undefined);
|
|
10
|
-
node.attrs.push(attr);
|
|
11
|
-
};
|
|
12
|
-
register('wm-custom-widget-container', () => {
|
|
13
|
-
return {
|
|
14
|
-
template: (node) => {
|
|
15
|
-
const conditionalNode = createElement('ng-container');
|
|
16
|
-
// addAtrribute(conditionalNode, '*ngIf', 'compileContent');
|
|
17
|
-
conditionalNode.children = conditionalNode.children.concat(node.children);
|
|
18
|
-
node.children.length = 0;
|
|
19
|
-
node.children.push(conditionalNode);
|
|
20
|
-
},
|
|
21
|
-
pre: attrs => `<${tagName} wmCustomWidget data-role="widget" ${getAttrMarkup(attrs)}>`,
|
|
22
|
-
post: () => `</${tagName}>`
|
|
23
|
-
};
|
|
24
|
-
});
|
|
25
|
-
export default () => { };
|
|
26
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3VzdG9tLXdpZGdldC13cmFwcGVyLmJ1aWxkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29tcG9uZW50cy90cmFuc3BpbGUvc3JjL2FkdmFuY2VkL2N1c3RvbS13aWRnZXQtd3JhcHBlci9jdXN0b20td2lkZ2V0LXdyYXBwZXIuYnVpbGQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxPQUFPLEVBQW1CLE1BQ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cignd20tY3VzdG9tLXdpZGdldC1jb250YWluZXInLCAoKTogSUJ1aWxkVGFza0RlZiA9PiB7XG4gICAgcmV0dXJuIHtcbiAgICAgICAgdGVtcGxhdGU6IChub2RlOiBFbGVtZW50KSAgPT4ge1xuICAgICAgICAgICAgY29uc3QgY29uZGl0aW9uYWxOb2RlID0gY3JlYXRlRWxlbWVudCgnbmctY29udGFpbmVyJyk7XG4gICAgICAgICAgICAvLyBhZGRBdHJyaWJ1dGUoY29uZGl0aW9uYWxOb2RlLCAnKm5nSWYnLCAnY29tcGlsZUNvbnRlbnQnKTtcbiAgICAgICAgICAgIGNvbmRpdGlvbmFsTm9kZS5jaGlsZHJlbiA9IGNvbmRpdGlvbmFsTm9kZS5jaGlsZHJlbi5jb25jYXQobm9kZS5jaGlsZHJlbik7XG4gICAgICAgICAgICBub2RlLmNoaWxkcmVuLmxlbmd0aCA9IDA7XG4gICAgICAgICAgICBub2RlLmNoaWxkcmVuLnB1c2goY29uZGl0aW9uYWxOb2RlKTtcbiAgICAgICAgfSxcbiAgICAgICAgcHJlOiBhdHRycyA9PiBgPCR7dGFnTmFtZX0gd21DdXN0b21XaWRnZXQgZGF0YS1yb2xlPVwid2lkZ2V0XCIgJHtnZXRBdHRyTWFya3VwKGF0dHJzKX0+YCxcbiAgICAgICAgcG9zdDogKCkgPT4gYDwvJHt0YWdOYW1lfT5gXG4gICAgfTtcbn0pO1xuXG5leHBvcnQgZGVmYXVsdCAoKSA9PiB7fTtcbiJdfQ==
|
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@wm/components/base'), require('@wm/core'), require('lodash-es')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@angular/common', '@wm/components/base', '@wm/core', 'lodash-es'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wm = global.wm || {}, global.wm.components = global.wm.components || {}, global.wm.components.advanced = global.wm.components.advanced || {}, global.wm.components.advanced.custom = {}), global.ng.core, global.ng.common, global.wm.components.base, global.wm.core, global._));
|
|
5
|
-
})(this, (function (exports, i0, common, base, i1, lodashEs) { 'use strict';
|
|
6
|
-
|
|
7
|
-
function _interopNamespaceDefault(e) {
|
|
8
|
-
var n = Object.create(null);
|
|
9
|
-
if (e) {
|
|
10
|
-
Object.keys(e).forEach(function (k) {
|
|
11
|
-
if (k !== 'default') {
|
|
12
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
13
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function () { return e[k]; }
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
n.default = e;
|
|
21
|
-
return Object.freeze(n);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
var i0__namespace = /*#__PURE__*/_interopNamespaceDefault(i0);
|
|
25
|
-
var i1__namespace = /*#__PURE__*/_interopNamespaceDefault(i1);
|
|
26
|
-
|
|
27
|
-
const customWidgetProps = new Map([
|
|
28
|
-
['class', base.PROP_STRING],
|
|
29
|
-
['hint', base.PROP_STRING],
|
|
30
|
-
['name', base.PROP_STRING],
|
|
31
|
-
['widgetname', base.PROP_STRING],
|
|
32
|
-
['show', { value: true, ...base.PROP_BOOLEAN }]
|
|
33
|
-
]);
|
|
34
|
-
const registerProps$1 = () => {
|
|
35
|
-
base.register('wm-custom-widget', customWidgetProps);
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
const registeredPropsSet = new Set();
|
|
39
|
-
let customWidgetPropsMap = {};
|
|
40
|
-
const DEFAULT_CLS$1 = 'app-html-container';
|
|
41
|
-
class CustomWidgetContainerDirective extends base.StylableComponent {
|
|
42
|
-
static { this.initializeProps = registerProps$1(); }
|
|
43
|
-
constructor(inj, elRef, widgetname) {
|
|
44
|
-
const widgetType = `wm-custom-${widgetname}`;
|
|
45
|
-
const WIDGET_CONFIG = { widgetType, hostClass: DEFAULT_CLS$1 };
|
|
46
|
-
let resolveFn = i1.noop;
|
|
47
|
-
super(inj, WIDGET_CONFIG, undefined, new Promise(res => resolveFn = res));
|
|
48
|
-
this.props = {};
|
|
49
|
-
this.propsReady = resolveFn;
|
|
50
|
-
this.widgetType = widgetType;
|
|
51
|
-
this.name = elRef.nativeElement.getAttribute('name');
|
|
52
|
-
base.styler(this.nativeElement, this);
|
|
53
|
-
// Call on property change on name to set name attribute on element.
|
|
54
|
-
this.registerReadyStateListener(() => {
|
|
55
|
-
super.onPropertyChange('name', this.name);
|
|
56
|
-
});
|
|
57
|
-
this.registerPropertyChangeListener(((key, nv, ov) => {
|
|
58
|
-
if (!key.startsWith('prop-'))
|
|
59
|
-
return;
|
|
60
|
-
const propName = key.slice(5);
|
|
61
|
-
if (this.props.hasOwnProperty(propName) && this.props[propName] !== nv) {
|
|
62
|
-
this.props[propName] = nv;
|
|
63
|
-
}
|
|
64
|
-
}));
|
|
65
|
-
}
|
|
66
|
-
setBaseWidgetName(baseWidgetType) {
|
|
67
|
-
let splitArr = baseWidgetType.split('-'), modifiedArr = [];
|
|
68
|
-
modifiedArr = splitArr.map((item) => {
|
|
69
|
-
item = item !== 'wm' ? lodashEs.capitalize(item) : item;
|
|
70
|
-
return item;
|
|
71
|
-
});
|
|
72
|
-
this.baseWidgetName = modifiedArr.join('');
|
|
73
|
-
}
|
|
74
|
-
setProps(config, resolveFn) {
|
|
75
|
-
this.setBaseWidgetName(config.widgetType);
|
|
76
|
-
if (!config || !config.properties) {
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
if (!registeredPropsSet.has(this.widgetType)) {
|
|
80
|
-
base.register(this.widgetType, this.prepareProps(config.properties));
|
|
81
|
-
}
|
|
82
|
-
else {
|
|
83
|
-
this.props = Object.assign(this.props, lodashEs.cloneDeep(customWidgetPropsMap[this.widgetType]));
|
|
84
|
-
}
|
|
85
|
-
this.propsReady(resolveFn);
|
|
86
|
-
}
|
|
87
|
-
prepareProps(props = {}) {
|
|
88
|
-
const propsMap = new Map(customWidgetProps);
|
|
89
|
-
Object.entries(props).forEach(([k, v]) => {
|
|
90
|
-
let type = base.PROP_TYPE.STRING;
|
|
91
|
-
if (v.type === 'boolean') {
|
|
92
|
-
type = base.PROP_TYPE.BOOLEAN;
|
|
93
|
-
}
|
|
94
|
-
else if (v.type === 'number') {
|
|
95
|
-
type = base.PROP_TYPE.NUMBER;
|
|
96
|
-
}
|
|
97
|
-
else if (v.type !== 'string') {
|
|
98
|
-
type = v.type;
|
|
99
|
-
}
|
|
100
|
-
// Do not set the 'bind:*' values
|
|
101
|
-
propsMap.set(`prop-${k}`, { type, value: _.startsWith(v.value, 'bind:') ? undefined : v.value });
|
|
102
|
-
this.props[k] = v.value;
|
|
103
|
-
});
|
|
104
|
-
registeredPropsSet.add(this.widgetType);
|
|
105
|
-
customWidgetPropsMap[this.widgetType] = this.props;
|
|
106
|
-
return propsMap;
|
|
107
|
-
}
|
|
108
|
-
updateData(key, value) {
|
|
109
|
-
let modifiedKey = key.replace('base-', '');
|
|
110
|
-
this[this.baseWidgetName][modifiedKey] = value;
|
|
111
|
-
this.nativeElement.childNodes[0]['widget'].viewParent[this.baseWidgetName][modifiedKey] = value;
|
|
112
|
-
this[this.baseWidgetName].initDatasetItems();
|
|
113
|
-
}
|
|
114
|
-
static { this.ɵfac = function CustomWidgetContainerDirective_Factory(t) { return new (t || CustomWidgetContainerDirective)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef), i0__namespace.ɵɵinjectAttribute('widgetname')); }; }
|
|
115
|
-
static { this.ɵdir = /*@__PURE__*/ i0__namespace.ɵɵdefineDirective({ type: CustomWidgetContainerDirective, selectors: [["", "wmWidgetContainer", ""]], exportAs: ["wmWidgetContainer"], features: [i0__namespace.ɵɵProvidersFeature([
|
|
116
|
-
base.provideAsWidgetRef(CustomWidgetContainerDirective)
|
|
117
|
-
]), i0__namespace.ɵɵInheritDefinitionFeature] }); }
|
|
118
|
-
}
|
|
119
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CustomWidgetContainerDirective, [{
|
|
120
|
-
type: i0.Directive,
|
|
121
|
-
args: [{
|
|
122
|
-
selector: '[wmWidgetContainer]',
|
|
123
|
-
providers: [
|
|
124
|
-
base.provideAsWidgetRef(CustomWidgetContainerDirective)
|
|
125
|
-
],
|
|
126
|
-
exportAs: 'wmWidgetContainer'
|
|
127
|
-
}]
|
|
128
|
-
}], () => [{ type: i0__namespace.Injector }, { type: i0__namespace.ElementRef }, { type: undefined, decorators: [{
|
|
129
|
-
type: i0.Attribute,
|
|
130
|
-
args: ['widgetname']
|
|
131
|
-
}] }], null); })();
|
|
132
|
-
|
|
133
|
-
const registerProps = () => {
|
|
134
|
-
base.register('wm-custom-widget-container', new Map([
|
|
135
|
-
['name', base.PROP_STRING],
|
|
136
|
-
['class', base.PROP_STRING]
|
|
137
|
-
]));
|
|
138
|
-
};
|
|
139
|
-
|
|
140
|
-
const DEFAULT_CLS = 'app-custom-widget-container clearfix';
|
|
141
|
-
const WIDGET_CONFIG = { widgetType: 'wm-custom-widget-container', hostClass: DEFAULT_CLS };
|
|
142
|
-
class CustomWidgetDirective extends base.StylableComponent {
|
|
143
|
-
static { this.initializeProps = registerProps(); }
|
|
144
|
-
constructor(inj, viewport) {
|
|
145
|
-
super(inj, WIDGET_CONFIG);
|
|
146
|
-
this.viewport = viewport;
|
|
147
|
-
this.registerDestroyListener(this.viewport.subscribe("resize" /* ViewportEvent.RESIZE */, data => this.callback('resize', data)));
|
|
148
|
-
this.registerDestroyListener(this.viewport.subscribe("orientationchange" /* ViewportEvent.ORIENTATION_CHANGE */, data => this.callback('orientationchange', data)));
|
|
149
|
-
}
|
|
150
|
-
ngAfterContentInit() {
|
|
151
|
-
let customWidget = this.nativeElement.closest('[customwidgetcontainer]'), inheritedProps = {}, customWidgetProps = Array.from(base.getWidgetPropsByType("wm-custom-widget-container").keys());
|
|
152
|
-
for (let i = 0; i < customWidget.attributes.length; i++) {
|
|
153
|
-
let attr = customWidget.attributes.item(i);
|
|
154
|
-
if (attr.value && attr.value !== '' && !customWidgetProps.includes(attr.name))
|
|
155
|
-
inheritedProps[attr.name] = attr.value;
|
|
156
|
-
}
|
|
157
|
-
this.processChildren(this.nativeElement.children, inheritedProps);
|
|
158
|
-
}
|
|
159
|
-
processChildren(children, inheritedProps) {
|
|
160
|
-
Array.from(children).forEach((child) => {
|
|
161
|
-
if (!child.hasAttribute('base-widget'))
|
|
162
|
-
this.processChildren(child.children, inheritedProps);
|
|
163
|
-
else {
|
|
164
|
-
for (const [key, value] of Object.entries(inheritedProps)) {
|
|
165
|
-
if (key.includes(".event") || key.includes('.bind'))
|
|
166
|
-
this.processAttr(key, value, { widget: child.widget, nativeElement: child });
|
|
167
|
-
else
|
|
168
|
-
child.widget[key] = value;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
callback(eventName, locals) {
|
|
174
|
-
locals = _.assign({ widget: this }, locals);
|
|
175
|
-
this.invokeEventCallback(eventName, locals);
|
|
176
|
-
}
|
|
177
|
-
ngOnAttach() {
|
|
178
|
-
this.callback('attach');
|
|
179
|
-
}
|
|
180
|
-
ngOnDetach() {
|
|
181
|
-
this.callback('detach');
|
|
182
|
-
}
|
|
183
|
-
ngOnDestroy() {
|
|
184
|
-
this.callback('destroy');
|
|
185
|
-
super.ngOnDestroy();
|
|
186
|
-
}
|
|
187
|
-
static { this.ɵfac = function CustomWidgetDirective_Factory(t) { return new (t || CustomWidgetDirective)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵdirectiveInject(i1__namespace.Viewport)); }; }
|
|
188
|
-
static { this.ɵdir = /*@__PURE__*/ i0__namespace.ɵɵdefineDirective({ type: CustomWidgetDirective, selectors: [["", "wmCustomWidget", ""]], features: [i0__namespace.ɵɵProvidersFeature([
|
|
189
|
-
base.provideAsWidgetRef(CustomWidgetDirective)
|
|
190
|
-
]), i0__namespace.ɵɵInheritDefinitionFeature] }); }
|
|
191
|
-
}
|
|
192
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CustomWidgetDirective, [{
|
|
193
|
-
type: i0.Directive,
|
|
194
|
-
args: [{
|
|
195
|
-
selector: '[wmCustomWidget]',
|
|
196
|
-
providers: [
|
|
197
|
-
base.provideAsWidgetRef(CustomWidgetDirective)
|
|
198
|
-
]
|
|
199
|
-
}]
|
|
200
|
-
}], () => [{ type: i0__namespace.Injector }, { type: i1__namespace.Viewport }], null); })();
|
|
201
|
-
|
|
202
|
-
const components = [
|
|
203
|
-
CustomWidgetContainerDirective,
|
|
204
|
-
CustomWidgetDirective
|
|
205
|
-
];
|
|
206
|
-
class CustomModule {
|
|
207
|
-
static { this.ɵfac = function CustomModule_Factory(t) { return new (t || CustomModule)(); }; }
|
|
208
|
-
static { this.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: CustomModule }); }
|
|
209
|
-
static { this.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [common.CommonModule,
|
|
210
|
-
base.WmComponentsModule] }); }
|
|
211
|
-
}
|
|
212
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CustomModule, [{
|
|
213
|
-
type: i0.NgModule,
|
|
214
|
-
args: [{
|
|
215
|
-
imports: [
|
|
216
|
-
common.CommonModule,
|
|
217
|
-
base.WmComponentsModule
|
|
218
|
-
],
|
|
219
|
-
declarations: [...components],
|
|
220
|
-
exports: [...components]
|
|
221
|
-
}]
|
|
222
|
-
}], null, null); })();
|
|
223
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(CustomModule, { declarations: [CustomWidgetContainerDirective,
|
|
224
|
-
CustomWidgetDirective], imports: [common.CommonModule,
|
|
225
|
-
base.WmComponentsModule], exports: [CustomWidgetContainerDirective,
|
|
226
|
-
CustomWidgetDirective] }); })();
|
|
227
|
-
|
|
228
|
-
exports.CustomModule = CustomModule;
|
|
229
|
-
exports.CustomWidgetContainerDirective = CustomWidgetContainerDirective;
|
|
230
|
-
exports.CustomWidgetDirective = CustomWidgetDirective;
|
|
231
|
-
|
|
232
|
-
}));
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ElementRef, Injector, OnInit } from '@angular/core';
|
|
2
|
-
import { StylableComponent } from '@wm/components/base';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class CustomWidgetContainerDirective extends StylableComponent implements OnInit {
|
|
5
|
-
static initializeProps: void;
|
|
6
|
-
widgetType: string;
|
|
7
|
-
name: string;
|
|
8
|
-
propsReady: Function;
|
|
9
|
-
widgetName: string;
|
|
10
|
-
private props;
|
|
11
|
-
private baseWidgetName;
|
|
12
|
-
constructor(inj: Injector, elRef: ElementRef, widgetname: string);
|
|
13
|
-
setBaseWidgetName(baseWidgetType: string): void;
|
|
14
|
-
setProps(config: any, resolveFn: Function): void;
|
|
15
|
-
private prepareProps;
|
|
16
|
-
updateData(key: string, value: any): void;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CustomWidgetContainerDirective, [null, null, { attribute: "widgetname"; }]>;
|
|
18
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CustomWidgetContainerDirective, "[wmWidgetContainer]", ["wmWidgetContainer"], {}, {}, never, never, false, never>;
|
|
19
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const registerProps: () => void;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { AfterContentInit, Injector, OnDestroy } from '@angular/core';
|
|
2
|
-
import { Viewport } from '@wm/core';
|
|
3
|
-
import { StylableComponent } from '@wm/components/base';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class CustomWidgetDirective extends StylableComponent implements OnDestroy, AfterContentInit {
|
|
6
|
-
private viewport;
|
|
7
|
-
static initializeProps: void;
|
|
8
|
-
constructor(inj: Injector, viewport: Viewport);
|
|
9
|
-
ngAfterContentInit(): void;
|
|
10
|
-
processChildren(children: any, inheritedProps: {
|
|
11
|
-
[key: string]: string;
|
|
12
|
-
}): void;
|
|
13
|
-
private callback;
|
|
14
|
-
ngOnAttach(): void;
|
|
15
|
-
ngOnDetach(): void;
|
|
16
|
-
ngOnDestroy(): void;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CustomWidgetDirective, never>;
|
|
18
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CustomWidgetDirective, "[wmCustomWidget]", never, {}, {}, never, never, false, never>;
|
|
19
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./custom-widget-container/custom-widget-container.directive";
|
|
3
|
-
import * as i2 from "./custom-widget.directive";
|
|
4
|
-
import * as i3 from "@angular/common";
|
|
5
|
-
import * as i4 from "@wm/components/base";
|
|
6
|
-
export declare class CustomModule {
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CustomModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CustomModule, [typeof i1.CustomWidgetContainerDirective, typeof i2.CustomWidgetDirective], [typeof i3.CommonModule, typeof i4.WmComponentsModule], [typeof i1.CustomWidgetContainerDirective, typeof i2.CustomWidgetDirective]>;
|
|
9
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<CustomModule>;
|
|
10
|
-
}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { Attribute, Directive, ElementRef, Injector } from '@angular/core';
|
|
2
|
-
import { noop } from '@wm/core';
|
|
3
|
-
import { PROP_TYPE, provideAsWidgetRef, register, StylableComponent, styler } from '@wm/components/base';
|
|
4
|
-
import { customWidgetProps } from './custom-widget.props';
|
|
5
|
-
import { registerProps } from "../custom-widget-container/custom-widget.props";
|
|
6
|
-
import { capitalize, cloneDeep } from 'lodash-es';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
const registeredPropsSet = new Set();
|
|
9
|
-
let customWidgetPropsMap = {};
|
|
10
|
-
const DEFAULT_CLS = 'app-html-container';
|
|
11
|
-
export class CustomWidgetContainerDirective extends StylableComponent {
|
|
12
|
-
static { this.initializeProps = registerProps(); }
|
|
13
|
-
constructor(inj, elRef, widgetname) {
|
|
14
|
-
const widgetType = `wm-custom-${widgetname}`;
|
|
15
|
-
const WIDGET_CONFIG = { widgetType, hostClass: DEFAULT_CLS };
|
|
16
|
-
let resolveFn = noop;
|
|
17
|
-
super(inj, WIDGET_CONFIG, undefined, new Promise(res => resolveFn = res));
|
|
18
|
-
this.props = {};
|
|
19
|
-
this.propsReady = resolveFn;
|
|
20
|
-
this.widgetType = widgetType;
|
|
21
|
-
this.name = elRef.nativeElement.getAttribute('name');
|
|
22
|
-
styler(this.nativeElement, this);
|
|
23
|
-
// Call on property change on name to set name attribute on element.
|
|
24
|
-
this.registerReadyStateListener(() => {
|
|
25
|
-
super.onPropertyChange('name', this.name);
|
|
26
|
-
});
|
|
27
|
-
this.registerPropertyChangeListener(((key, nv, ov) => {
|
|
28
|
-
if (!key.startsWith('prop-'))
|
|
29
|
-
return;
|
|
30
|
-
const propName = key.slice(5);
|
|
31
|
-
if (this.props.hasOwnProperty(propName) && this.props[propName] !== nv) {
|
|
32
|
-
this.props[propName] = nv;
|
|
33
|
-
}
|
|
34
|
-
}));
|
|
35
|
-
}
|
|
36
|
-
setBaseWidgetName(baseWidgetType) {
|
|
37
|
-
let splitArr = baseWidgetType.split('-'), modifiedArr = [];
|
|
38
|
-
modifiedArr = splitArr.map((item) => {
|
|
39
|
-
item = item !== 'wm' ? capitalize(item) : item;
|
|
40
|
-
return item;
|
|
41
|
-
});
|
|
42
|
-
this.baseWidgetName = modifiedArr.join('');
|
|
43
|
-
}
|
|
44
|
-
setProps(config, resolveFn) {
|
|
45
|
-
this.setBaseWidgetName(config.widgetType);
|
|
46
|
-
if (!config || !config.properties) {
|
|
47
|
-
return;
|
|
48
|
-
}
|
|
49
|
-
if (!registeredPropsSet.has(this.widgetType)) {
|
|
50
|
-
register(this.widgetType, this.prepareProps(config.properties));
|
|
51
|
-
}
|
|
52
|
-
else {
|
|
53
|
-
this.props = Object.assign(this.props, cloneDeep(customWidgetPropsMap[this.widgetType]));
|
|
54
|
-
}
|
|
55
|
-
this.propsReady(resolveFn);
|
|
56
|
-
}
|
|
57
|
-
prepareProps(props = {}) {
|
|
58
|
-
const propsMap = new Map(customWidgetProps);
|
|
59
|
-
Object.entries(props).forEach(([k, v]) => {
|
|
60
|
-
let type = PROP_TYPE.STRING;
|
|
61
|
-
if (v.type === 'boolean') {
|
|
62
|
-
type = PROP_TYPE.BOOLEAN;
|
|
63
|
-
}
|
|
64
|
-
else if (v.type === 'number') {
|
|
65
|
-
type = PROP_TYPE.NUMBER;
|
|
66
|
-
}
|
|
67
|
-
else if (v.type !== 'string') {
|
|
68
|
-
type = v.type;
|
|
69
|
-
}
|
|
70
|
-
// Do not set the 'bind:*' values
|
|
71
|
-
propsMap.set(`prop-${k}`, { type, value: _.startsWith(v.value, 'bind:') ? undefined : v.value });
|
|
72
|
-
this.props[k] = v.value;
|
|
73
|
-
});
|
|
74
|
-
registeredPropsSet.add(this.widgetType);
|
|
75
|
-
customWidgetPropsMap[this.widgetType] = this.props;
|
|
76
|
-
return propsMap;
|
|
77
|
-
}
|
|
78
|
-
updateData(key, value) {
|
|
79
|
-
let modifiedKey = key.replace('base-', '');
|
|
80
|
-
this[this.baseWidgetName][modifiedKey] = value;
|
|
81
|
-
this.nativeElement.childNodes[0]['widget'].viewParent[this.baseWidgetName][modifiedKey] = value;
|
|
82
|
-
this[this.baseWidgetName].initDatasetItems();
|
|
83
|
-
}
|
|
84
|
-
static { this.ɵfac = function CustomWidgetContainerDirective_Factory(t) { return new (t || CustomWidgetContainerDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵinjectAttribute('widgetname')); }; }
|
|
85
|
-
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: CustomWidgetContainerDirective, selectors: [["", "wmWidgetContainer", ""]], exportAs: ["wmWidgetContainer"], features: [i0.ɵɵProvidersFeature([
|
|
86
|
-
provideAsWidgetRef(CustomWidgetContainerDirective)
|
|
87
|
-
]), i0.ɵɵInheritDefinitionFeature] }); }
|
|
88
|
-
}
|
|
89
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CustomWidgetContainerDirective, [{
|
|
90
|
-
type: Directive,
|
|
91
|
-
args: [{
|
|
92
|
-
selector: '[wmWidgetContainer]',
|
|
93
|
-
providers: [
|
|
94
|
-
provideAsWidgetRef(CustomWidgetContainerDirective)
|
|
95
|
-
],
|
|
96
|
-
exportAs: 'wmWidgetContainer'
|
|
97
|
-
}]
|
|
98
|
-
}], () => [{ type: i0.Injector }, { type: i0.ElementRef }, { type: undefined, decorators: [{
|
|
99
|
-
type: Attribute,
|
|
100
|
-
args: ['widgetname']
|
|
101
|
-
}] }], null); })();
|
|
102
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3VzdG9tLXdpZGdldC1jb250YWluZXIuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29tcG9uZW50cy93aWRnZXRzL2FkdmFuY2VkL2N1c3RvbS9zcmMvY3VzdG9tLXdpZGdldC1jb250YWluZXIvY3VzdG9tLXdpZGdldC1jb250YWluZXIuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLE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lzLmJhc2VXaWRnZXROYW1lXS5pbml0RGF0YXNldEl0ZW1zKCk7XG4gICAgfVxufVxuIl19
|
app-ng-runtime/components/advanced/custom/esm2022/custom-widget-container/custom-widget.props.mjs
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { PROP_BOOLEAN, PROP_STRING, register } from '@wm/components/base';
|
|
2
|
-
export const customWidgetProps = new Map([
|
|
3
|
-
['class', PROP_STRING],
|
|
4
|
-
['hint', PROP_STRING],
|
|
5
|
-
['name', PROP_STRING],
|
|
6
|
-
['widgetname', PROP_STRING],
|
|
7
|
-
['show', { value: true, ...PROP_BOOLEAN }]
|
|
8
|
-
]);
|
|
9
|
-
export const registerProps = () => {
|
|
10
|
-
register('wm-custom-widget', customWidgetProps);
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3VzdG9tLXdpZGdldC5wcm9wcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvbXBvbmVudHMvd2lkZ2V0cy9hZHZhbmNlZC9jdXN0b20vc3JjL2N1c3RvbS13aWRnZXQtY29udGFpbmVyL2N1c3RvbS13aWRnZXQucHJvcHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFlBQVksRUFBRSxXQUFXLEVBQUUsUUFBUSxFQUFDLE1BQU0scUJBQXFCLENBQUM7QUFFeEUsTUFBTSxDQUFDLE1BQU0saUJBQWlCLEdBQzFCLElBQUksR0FBRyxDQUNIO0lBQ0ksQ0FBQyxPQUFPLEVBQUUsV0FBVyxDQUFDO0lBQ3RCLENBQUMsTUFBTSxFQUFFLFdBQVcsQ0FBQztJQUNyQixDQUFDLE1BQU0sRUFBRSxXQUFXLENBQUM7SUFDckIsQ0FBQyxZQUFZLEVBQUUsV0FBVyxDQUFDO0lBQzNCLENBQUMsTUFBTSxFQUFFLEVBQUUsS0FBSyxFQUFFLElBQUksRUFBRSxHQUFHLFlBQVksRUFBRSxDQUFDO0NBQzdDLENBQ0osQ0FBQTtBQUVMLE1BQU0sQ0FBQyxNQUFNLGFBQWEsR0FBRyxHQUFHLEVBQUU7SUFDOUIsUUFBUSxDQUNKLGtCQUFrQixFQUNsQixpQkFBaUIsQ0FDcEIsQ0FBQztBQUNOLENBQUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7UFJPUF9CT09MRUFOLCBQUk9QX1NUUklORywgcmVnaXN0ZXJ9IGZyb20gJ0B3bS9jb21wb25lbnRzL2Jhc2UnO1xuXG5leHBvcnQgY29uc3QgY3VzdG9tV2lkZ2V0UHJvcHMgPVxuICAgIG5ldyBNYXAoXG4gICAgICAgIFtcbiAgICAgICAgICAgIFsnY2xhc3MnLCBQUk9QX1NUUklOR10sXG4gICAgICAgICAgICBbJ2hpbnQnLCBQUk9QX1NUUklOR10sXG4gICAgICAgICAgICBbJ25hbWUnLCBQUk9QX1NUUklOR10sXG4gICAgICAgICAgICBbJ3dpZGdldG5hbWUnLCBQUk9QX1NUUklOR10sXG4gICAgICAgICAgICBbJ3Nob3cnLCB7IHZhbHVlOiB0cnVlLCAuLi5QUk9QX0JPT0xFQU4gfV1cbiAgICAgICAgXVxuICAgIClcblxuZXhwb3J0IGNvbnN0IHJlZ2lzdGVyUHJvcHMgPSAoKSA9PiB7XG4gICAgcmVnaXN0ZXIoXG4gICAgICAgICd3bS1jdXN0b20td2lkZ2V0JyxcbiAgICAgICAgY3VzdG9tV2lkZ2V0UHJvcHNcbiAgICApO1xufTtcbiJdfQ==
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PROP_STRING, register } from '@wm/components/base';
|
|
2
|
-
export const registerProps = () => {
|
|
3
|
-
register('wm-custom-widget-container', new Map([
|
|
4
|
-
['name', PROP_STRING],
|
|
5
|
-
['class', PROP_STRING]
|
|
6
|
-
]));
|
|
7
|
-
};
|
|
8
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3VzdG9tLXdpZGdldC1wcm9wLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29tcG9uZW50cy93aWRnZXRzL2FkdmFuY2VkL2N1c3RvbS9zcmMvY3VzdG9tLXdpZGdldC1wcm9wLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxXQUFXLEVBQUUsUUFBUSxFQUFDLE1BQU0scUJBQXFCLENBQUM7QUFFMUQsTUFBTSxDQUFDLE1BQU0sYUFBYSxHQUFHLEdBQUcsRUFBRTtJQUM5QixRQUFRLENBQ0osNEJBQTRCLEVBQzVCLElBQUksR0FBRyxDQUNIO1FBQ0ksQ0FBQyxNQUFNLEVBQUUsV0FBVyxDQUFDO1FBQ3JCLENBQUMsT0FBTyxFQUFFLFdBQVcsQ0FBQztLQUN6QixDQUNKLENBQ0osQ0FBQztBQUNOLENBQUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7UFJPUF9TVFJJTkcsIHJlZ2lzdGVyfSBmcm9tICdAd20vY29tcG9uZW50cy9iYXNlJztcblxuZXhwb3J0IGNvbnN0IHJlZ2lzdGVyUHJvcHMgPSAoKSA9PiB7XG4gICAgcmVnaXN0ZXIoXG4gICAgICAgICd3bS1jdXN0b20td2lkZ2V0LWNvbnRhaW5lcicsXG4gICAgICAgIG5ldyBNYXAoXG4gICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgWyduYW1lJywgUFJPUF9TVFJJTkddLFxuICAgICAgICAgICAgICAgIFsnY2xhc3MnLCBQUk9QX1NUUklOR11cbiAgICAgICAgICAgIF1cbiAgICAgICAgKVxuICAgICk7XG59O1xuIl19
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { Directive, Injector } from '@angular/core';
|
|
2
|
-
import { Viewport } from '@wm/core';
|
|
3
|
-
import { registerProps } from './custom-widget-prop';
|
|
4
|
-
import { StylableComponent, provideAsWidgetRef, getWidgetPropsByType } from '@wm/components/base';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "@wm/core";
|
|
7
|
-
const DEFAULT_CLS = 'app-custom-widget-container clearfix';
|
|
8
|
-
const WIDGET_CONFIG = { widgetType: 'wm-custom-widget-container', hostClass: DEFAULT_CLS };
|
|
9
|
-
export class CustomWidgetDirective extends StylableComponent {
|
|
10
|
-
static { this.initializeProps = registerProps(); }
|
|
11
|
-
constructor(inj, viewport) {
|
|
12
|
-
super(inj, WIDGET_CONFIG);
|
|
13
|
-
this.viewport = viewport;
|
|
14
|
-
this.registerDestroyListener(this.viewport.subscribe("resize" /* ViewportEvent.RESIZE */, data => this.callback('resize', data)));
|
|
15
|
-
this.registerDestroyListener(this.viewport.subscribe("orientationchange" /* ViewportEvent.ORIENTATION_CHANGE */, data => this.callback('orientationchange', data)));
|
|
16
|
-
}
|
|
17
|
-
ngAfterContentInit() {
|
|
18
|
-
let customWidget = this.nativeElement.closest('[customwidgetcontainer]'), inheritedProps = {}, customWidgetProps = Array.from(getWidgetPropsByType("wm-custom-widget-container").keys());
|
|
19
|
-
for (let i = 0; i < customWidget.attributes.length; i++) {
|
|
20
|
-
let attr = customWidget.attributes.item(i);
|
|
21
|
-
if (attr.value && attr.value !== '' && !customWidgetProps.includes(attr.name))
|
|
22
|
-
inheritedProps[attr.name] = attr.value;
|
|
23
|
-
}
|
|
24
|
-
this.processChildren(this.nativeElement.children, inheritedProps);
|
|
25
|
-
}
|
|
26
|
-
processChildren(children, inheritedProps) {
|
|
27
|
-
Array.from(children).forEach((child) => {
|
|
28
|
-
if (!child.hasAttribute('base-widget'))
|
|
29
|
-
this.processChildren(child.children, inheritedProps);
|
|
30
|
-
else {
|
|
31
|
-
for (const [key, value] of Object.entries(inheritedProps)) {
|
|
32
|
-
if (key.includes(".event") || key.includes('.bind'))
|
|
33
|
-
this.processAttr(key, value, { widget: child.widget, nativeElement: child });
|
|
34
|
-
else
|
|
35
|
-
child.widget[key] = value;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
callback(eventName, locals) {
|
|
41
|
-
locals = _.assign({ widget: this }, locals);
|
|
42
|
-
this.invokeEventCallback(eventName, locals);
|
|
43
|
-
}
|
|
44
|
-
ngOnAttach() {
|
|
45
|
-
this.callback('attach');
|
|
46
|
-
}
|
|
47
|
-
ngOnDetach() {
|
|
48
|
-
this.callback('detach');
|
|
49
|
-
}
|
|
50
|
-
ngOnDestroy() {
|
|
51
|
-
this.callback('destroy');
|
|
52
|
-
super.ngOnDestroy();
|
|
53
|
-
}
|
|
54
|
-
static { this.ɵfac = function CustomWidgetDirective_Factory(t) { return new (t || CustomWidgetDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i1.Viewport)); }; }
|
|
55
|
-
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: CustomWidgetDirective, selectors: [["", "wmCustomWidget", ""]], features: [i0.ɵɵProvidersFeature([
|
|
56
|
-
provideAsWidgetRef(CustomWidgetDirective)
|
|
57
|
-
]), i0.ɵɵInheritDefinitionFeature] }); }
|
|
58
|
-
}
|
|
59
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CustomWidgetDirective, [{
|
|
60
|
-
type: Directive,
|
|
61
|
-
args: [{
|
|
62
|
-
selector: '[wmCustomWidget]',
|
|
63
|
-
providers: [
|
|
64
|
-
provideAsWidgetRef(CustomWidgetDirective)
|
|
65
|
-
]
|
|
66
|
-
}]
|
|
67
|
-
}], () => [{ type: i0.Injector }, { type: i1.Viewport }], null); })();
|
|
68
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3VzdG9tLXdpZGdldC5kaXJlY3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LCB2YWx1ZV0gb2YgT2JqZWN0LmVudHJpZXMoaW5oZXJpdGVkUHJvcHMpKSB7XG4gICAgICAgICAgICAgICAgICAgIGlmKGtleS5pbmNsdWRlcyhcIi5ldmVudFwiKSB8fCBrZXkuaW5jbHVkZXMoJy5iaW5kJykpXG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLnByb2Nlc3NBdHRyKGtleSwgdmFsdWUsIHt3aWRnZXQ6IGNoaWxkLndpZGdldCwgbmF0aXZlRWxlbWVudDogY2hpbGR9KTtcbiAgICAgICAgICAgICAgICAgICAgZWxzZVxuICAgICAgICAgICAgICAgICAgICAgICAgY2hpbGQud2lkZ2V0W2tleV0gPSB2YWx1ZTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuICAgIH1cblxuICAgIHByaXZhdGUgY2FsbGJhY2soZXZlbnROYW1lLCBsb2NhbHM/OiBvYmplY3QpIHtcbiAgICAgICAgbG9jYWxzID0gXy5hc3NpZ24oeyB3aWRnZXQ6IHRoaXMgfSwgbG9jYWxzKTtcbiAgICAgICAgdGhpcy5pbnZva2VFdmVudENhbGxiYWNrKGV2ZW50TmFtZSwgbG9jYWxzKTtcbiAgICB9XG5cbiAgICBwdWJsaWMgbmdPbkF0dGFjaCgpIHtcbiAgICAgICAgdGhpcy5jYWxsYmFjaygnYXR0YWNoJyk7XG4gICAgfVxuXG4gICAgcHVibGljIG5nT25EZXRhY2goKSB7XG4gICAgICAgIHRoaXMuY2FsbGJhY2soJ2RldGFjaCcpO1xuICAgIH1cblxuICAgIHB1YmxpYyBuZ09uRGVzdHJveSgpIHtcbiAgICAgICAgdGhpcy5jYWxsYmFjaygnZGVzdHJveScpO1xuICAgICAgICBzdXBlci5uZ09uRGVzdHJveSgpO1xuICAgIH1cblxufVxuIl19
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { WmComponentsModule } from '@wm/components/base';
|
|
4
|
-
import { CustomWidgetContainerDirective } from './custom-widget-container/custom-widget-container.directive';
|
|
5
|
-
import { CustomWidgetDirective } from './custom-widget.directive';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
const components = [
|
|
8
|
-
CustomWidgetContainerDirective,
|
|
9
|
-
CustomWidgetDirective
|
|
10
|
-
];
|
|
11
|
-
export class CustomModule {
|
|
12
|
-
static { this.ɵfac = function CustomModule_Factory(t) { return new (t || CustomModule)(); }; }
|
|
13
|
-
static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: CustomModule }); }
|
|
14
|
-
static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
|
|
15
|
-
WmComponentsModule] }); }
|
|
16
|
-
}
|
|
17
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CustomModule, [{
|
|
18
|
-
type: NgModule,
|
|
19
|
-
args: [{
|
|
20
|
-
imports: [
|
|
21
|
-
CommonModule,
|
|
22
|
-
WmComponentsModule
|
|
23
|
-
],
|
|
24
|
-
declarations: [...components],
|
|
25
|
-
exports: [...components]
|
|
26
|
-
}]
|
|
27
|
-
}], null, null); })();
|
|
28
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CustomModule, { declarations: [CustomWidgetContainerDirective,
|
|
29
|
-
CustomWidgetDirective], imports: [CommonModule,
|
|
30
|
-
WmComponentsModule], exports: [CustomWidgetContainerDirective,
|
|
31
|
-
CustomWidgetDirective] }); })();
|
|
32
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3VzdG9tLXdpZGdldC5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb21wb25lbnRzL3dpZGdldHMvYWR2YW5jZWQv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