@wavemaker/app-ng-runtime 11.14.3-rc.6401 → 11.14.4-rc.647538
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/advanced/carousel/bundles/index.umd.js +1 -15
- package/components/advanced/carousel/carousel.directive.d.ts +0 -1
- package/components/advanced/carousel/esm2022/carousel.directive.mjs +2 -16
- package/components/advanced/carousel/fesm2022/index.mjs +1 -15
- package/components/advanced/carousel/fesm2022/index.mjs.map +1 -1
- package/components/advanced/login/bundles/index.umd.js +3 -24
- package/components/advanced/login/esm2022/login.component.mjs +4 -25
- package/components/advanced/login/fesm2022/index.mjs +3 -24
- package/components/advanced/login/fesm2022/index.mjs.map +1 -1
- package/components/advanced/login/login.component.d.ts +2 -5
- package/components/base/bundles/index.umd.js +28 -323
- package/components/base/directives/show-in-device.directive.d.ts +1 -2
- package/components/base/esm2022/directives/show-in-device.directive.mjs +4 -22
- package/components/base/esm2022/pipes/custom-pipes.mjs +1 -1
- package/components/base/esm2022/utils/widget-utils.mjs +3 -3
- package/components/base/esm2022/widgets/common/base/base-container.component.mjs +1 -27
- package/components/base/esm2022/widgets/common/base/base-field-validations.mjs +1 -18
- package/components/base/esm2022/widgets/common/base/base.component.mjs +7 -68
- package/components/base/esm2022/widgets/common/base/custom-widget-container.directive.mjs +1 -9
- package/components/base/esm2022/widgets/common/base/dataset-aware-nav.component.mjs +11 -44
- package/components/base/esm2022/widgets/common/base/partial-container.directive.mjs +1 -20
- package/components/base/esm2022/widgets/common/item-template/item-template.directive.mjs +1 -26
- package/components/base/esm2022/widgets/common/lazy-load/lazy-load.directive.mjs +4 -44
- package/components/base/esm2022/widgets/common/partial-param/partial-param.directive.mjs +1 -16
- package/components/base/esm2022/widgets/common/pull-to-refresh/pull-to-refresh.mjs +1 -22
- package/components/base/esm2022/widgets/framework/property-change-handler.mjs +2 -7
- package/components/base/esm2022/widgets/framework/widget-proxy-provider.mjs +3 -5
- package/components/base/esm2022/widgets/framework/widget-registry.mjs +3 -6
- package/components/base/fesm2022/index.mjs +26 -319
- package/components/base/fesm2022/index.mjs.map +1 -1
- package/components/base/widgets/common/base/base-container.component.d.ts +2 -3
- package/components/base/widgets/common/base/base-field-validations.d.ts +0 -1
- package/components/base/widgets/common/base/custom-widget-container.directive.d.ts +2 -3
- package/components/base/widgets/common/base/dataset-aware-nav.component.d.ts +2 -6
- package/components/base/widgets/common/base/partial-container.directive.d.ts +2 -3
- package/components/base/widgets/common/item-template/item-template.directive.d.ts +2 -3
- package/components/base/widgets/common/lazy-load/lazy-load.directive.d.ts +1 -1
- package/components/base/widgets/common/partial-param/partial-param.directive.d.ts +2 -3
- package/components/base/widgets/common/pull-to-refresh/pull-to-refresh.d.ts +2 -3
- package/components/basic/anchor/bundles/index.umd.js +1 -13
- package/components/basic/anchor/esm2022/anchor.component.mjs +2 -14
- package/components/basic/anchor/fesm2022/index.mjs +1 -13
- package/components/basic/anchor/fesm2022/index.mjs.map +1 -1
- package/components/basic/html/bundles/index.umd.js +1 -13
- package/components/basic/html/esm2022/html.directive.mjs +2 -14
- package/components/basic/html/fesm2022/index.mjs +1 -13
- package/components/basic/html/fesm2022/index.mjs.map +1 -1
- package/components/basic/label/bundles/index.umd.js +1 -17
- package/components/basic/label/esm2022/label.directive.mjs +2 -18
- package/components/basic/label/fesm2022/index.mjs +1 -17
- package/components/basic/label/fesm2022/index.mjs.map +1 -1
- package/components/basic/label/label.directive.d.ts +2 -3
- package/components/basic/progress/progress-circle/bundles/index.umd.js +0 -10
- package/components/basic/progress/progress-circle/esm2022/progress-circle.component.mjs +1 -11
- package/components/basic/progress/progress-circle/fesm2022/index.mjs +0 -10
- package/components/basic/progress/progress-circle/fesm2022/index.mjs.map +1 -1
- package/components/basic/progress/progress-circle/progress-circle.component.d.ts +2 -3
- package/components/basic/search/bundles/index.umd.js +1 -27
- package/components/basic/search/esm2022/scrollable.directive.mjs +2 -11
- package/components/basic/search/esm2022/search.component.mjs +1 -18
- package/components/basic/search/fesm2022/index.mjs +1 -27
- package/components/basic/search/fesm2022/index.mjs.map +1 -1
- package/components/basic/search/scrollable.directive.d.ts +2 -4
- package/components/basic/search/search.component.d.ts +2 -3
- package/components/basic/spinner/bundles/index.umd.js +1 -9
- package/components/basic/spinner/esm2022/spinner.component.mjs +2 -10
- package/components/basic/spinner/fesm2022/index.mjs +1 -9
- package/components/basic/spinner/fesm2022/index.mjs.map +1 -1
- package/components/basic/spinner/spinner.component.d.ts +2 -4
- package/components/chart/bundles/index.umd.js +3 -21
- package/components/chart/esm2022/chart.component.mjs +4 -22
- package/components/chart/fesm2022/index.mjs +3 -21
- package/components/chart/fesm2022/index.mjs.map +1 -1
- package/components/containers/accordion/accordion-pane/accordion-pane.component.d.ts +2 -3
- package/components/containers/accordion/accordion.directive.d.ts +2 -5
- package/components/containers/accordion/bundles/index.umd.js +2 -49
- package/components/containers/accordion/esm2022/accordion-pane/accordion-pane.component.mjs +1 -10
- package/components/containers/accordion/esm2022/accordion.directive.mjs +3 -41
- package/components/containers/accordion/fesm2022/index.mjs +2 -49
- package/components/containers/accordion/fesm2022/index.mjs.map +1 -1
- package/components/containers/panel/bundles/index.umd.js +0 -13
- package/components/containers/panel/esm2022/panel.component.mjs +1 -14
- package/components/containers/panel/fesm2022/index.mjs +0 -13
- package/components/containers/panel/fesm2022/index.mjs.map +1 -1
- package/components/containers/panel/panel.component.d.ts +2 -3
- package/components/containers/tabs/bundles/index.umd.js +2 -54
- package/components/containers/tabs/esm2022/tab-pane/tab-pane.component.mjs +1 -10
- package/components/containers/tabs/esm2022/tabs.component.mjs +3 -46
- package/components/containers/tabs/fesm2022/index.mjs +2 -54
- package/components/containers/tabs/fesm2022/index.mjs.map +1 -1
- package/components/containers/tabs/tab-pane/tab-pane.component.d.ts +2 -3
- package/components/containers/tabs/tabs.component.d.ts +2 -5
- package/components/containers/wizard/bundles/index.umd.js +3 -47
- package/components/containers/wizard/esm2022/wizard-step/wizard-step.component.mjs +3 -16
- package/components/containers/wizard/esm2022/wizard.component.mjs +2 -33
- package/components/containers/wizard/fesm2022/index.mjs +3 -47
- package/components/containers/wizard/fesm2022/index.mjs.map +1 -1
- package/components/containers/wizard/wizard-step/wizard-step.component.d.ts +2 -3
- package/components/containers/wizard/wizard.component.d.ts +2 -4
- package/components/data/card/bundles/index.umd.js +1 -17
- package/components/data/card/card-content/card-content.component.d.ts +2 -3
- package/components/data/card/card.component.d.ts +2 -4
- package/components/data/card/esm2022/card-content/card-content.component.mjs +1 -6
- package/components/data/card/esm2022/card.component.mjs +2 -13
- package/components/data/card/fesm2022/index.mjs +1 -17
- package/components/data/card/fesm2022/index.mjs.map +1 -1
- package/components/data/form/bundles/index.umd.js +0 -92
- package/components/data/form/esm2022/form-action/form-action.directive.mjs +1 -7
- package/components/data/form/esm2022/form-field/form-field.directive.mjs +1 -28
- package/components/data/form/esm2022/form-widget.directive.mjs +1 -8
- package/components/data/form/esm2022/form.component.mjs +1 -27
- package/components/data/form/esm2022/live-actions/live-actions.directive.mjs +1 -7
- package/components/data/form/esm2022/live-filter/live-filter.directive.mjs +1 -12
- package/components/data/form/esm2022/live-form/live-form.directive.mjs +1 -10
- package/components/data/form/fesm2022/index.mjs +0 -92
- package/components/data/form/fesm2022/index.mjs.map +1 -1
- package/components/data/form/form-action/form-action.directive.d.ts +2 -3
- package/components/data/form/form-field/form-field.directive.d.ts +2 -3
- package/components/data/form/form-widget.directive.d.ts +2 -3
- package/components/data/form/live-actions/live-actions.directive.d.ts +1 -3
- package/components/data/form/live-filter/live-filter.directive.d.ts +1 -3
- package/components/data/form/live-form/live-form.directive.d.ts +1 -3
- package/components/data/list/bundles/index.umd.js +17 -180
- package/components/data/list/esm2022/list-item.directive.mjs +11 -95
- package/components/data/list/esm2022/list.component.mjs +8 -87
- package/components/data/list/fesm2022/index.mjs +17 -180
- package/components/data/list/fesm2022/index.mjs.map +1 -1
- package/components/data/list/list-item.directive.d.ts +2 -7
- package/components/data/list/list.component.d.ts +0 -3
- package/components/data/live-table/bundles/index.umd.js +1 -13
- package/components/data/live-table/esm2022/live-table.component.mjs +2 -14
- package/components/data/live-table/fesm2022/index.mjs +1 -13
- package/components/data/live-table/fesm2022/index.mjs.map +1 -1
- package/components/data/live-table/live-table.component.d.ts +2 -4
- package/components/data/pagination/bundles/index.umd.js +4 -57
- package/components/data/pagination/esm2022/pagination.component.mjs +5 -58
- package/components/data/pagination/fesm2022/index.mjs +4 -57
- package/components/data/pagination/fesm2022/index.mjs.map +1 -1
- package/components/data/pagination/pagination.component.d.ts +2 -4
- package/components/data/table/bundles/index.umd.js +12 -311
- package/components/data/table/esm2022/table-action/table-action.directive.mjs +1 -8
- package/components/data/table/esm2022/table-column/table-column.directive.mjs +3 -107
- package/components/data/table/esm2022/table-column-group/table-column-group.directive.mjs +1 -9
- package/components/data/table/esm2022/table-cud.directive.mjs +2 -8
- package/components/data/table/esm2022/table-filter.directive.mjs +2 -12
- package/components/data/table/esm2022/table-row/table-row.directive.mjs +1 -8
- package/components/data/table/esm2022/table-row-action/table-row-action.directive.mjs +1 -8
- package/components/data/table/esm2022/table.component.mjs +9 -159
- package/components/data/table/fesm2022/index.mjs +12 -311
- package/components/data/table/fesm2022/index.mjs.map +1 -1
- package/components/data/table/table-action/table-action.directive.d.ts +2 -3
- package/components/data/table/table-column/table-column.directive.d.ts +2 -3
- package/components/data/table/table-column-group/table-column-group.directive.d.ts +2 -3
- package/components/data/table/table-cud.directive.d.ts +1 -3
- package/components/data/table/table-filter.directive.d.ts +1 -3
- package/components/data/table/table-row/table-row.directive.d.ts +2 -3
- package/components/data/table/table-row-action/table-row-action.directive.d.ts +2 -3
- package/components/data/table/table.component.d.ts +2 -2
- package/components/dialogs/alert-dialog/alert-dialog.component.d.ts +2 -3
- package/components/dialogs/alert-dialog/bundles/index.umd.js +0 -5
- package/components/dialogs/alert-dialog/esm2022/alert-dialog.component.mjs +1 -6
- package/components/dialogs/alert-dialog/fesm2022/index.mjs +0 -5
- package/components/dialogs/alert-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/confirm-dialog/bundles/index.umd.js +0 -5
- package/components/dialogs/confirm-dialog/confirm-dialog.component.d.ts +2 -3
- package/components/dialogs/confirm-dialog/esm2022/confirm-dialog.component.mjs +1 -6
- package/components/dialogs/confirm-dialog/fesm2022/index.mjs +0 -5
- package/components/dialogs/confirm-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/default/bundles/index.umd.js +2 -15
- package/components/dialogs/default/dialog-body/dialog-body.directive.d.ts +2 -4
- package/components/dialogs/default/esm2022/dialog-body/dialog-body.directive.mjs +3 -16
- package/components/dialogs/default/fesm2022/index.mjs +2 -15
- package/components/dialogs/default/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/design-dialog/bundles/index.umd.js +0 -7
- package/components/dialogs/design-dialog/dialog.component.d.ts +2 -3
- package/components/dialogs/design-dialog/esm2022/dialog.component.mjs +1 -8
- package/components/dialogs/design-dialog/fesm2022/index.mjs +0 -7
- package/components/dialogs/design-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/iframe-dialog/bundles/index.umd.js +0 -5
- package/components/dialogs/iframe-dialog/esm2022/iframe-dialog.component.mjs +1 -6
- package/components/dialogs/iframe-dialog/fesm2022/index.mjs +0 -5
- package/components/dialogs/iframe-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/iframe-dialog/iframe-dialog.component.d.ts +2 -3
- package/components/dialogs/partial-dialog/bundles/index.umd.js +3 -23
- package/components/dialogs/partial-dialog/esm2022/partial-dialog.component.mjs +4 -24
- package/components/dialogs/partial-dialog/fesm2022/index.mjs +3 -23
- package/components/dialogs/partial-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/partial-dialog/partial-dialog.component.d.ts +2 -4
- package/components/input/base-form/base-form.component.d.ts +2 -4
- package/components/input/base-form/bundles/index.umd.js +2 -16
- package/components/input/base-form/esm2022/base-form.component.mjs +3 -17
- package/components/input/base-form/fesm2022/index.mjs +2 -16
- package/components/input/base-form/fesm2022/index.mjs.map +1 -1
- package/components/input/base-form-custom/base-form-custom.component.d.ts +2 -3
- package/components/input/base-form-custom/bundles/index.umd.js +2 -13
- package/components/input/base-form-custom/esm2022/base-form-custom.component.mjs +3 -14
- package/components/input/base-form-custom/fesm2022/index.mjs +2 -13
- package/components/input/base-form-custom/fesm2022/index.mjs.map +1 -1
- package/components/input/checkbox/bundles/index.umd.js +0 -7
- package/components/input/checkbox/checkbox.component.d.ts +2 -3
- package/components/input/checkbox/esm2022/checkbox.component.mjs +1 -8
- package/components/input/checkbox/fesm2022/index.mjs +0 -7
- package/components/input/checkbox/fesm2022/index.mjs.map +1 -1
- package/components/input/checkboxset/bundles/index.umd.js +2 -18
- package/components/input/checkboxset/checkboxset.component.d.ts +2 -4
- package/components/input/checkboxset/esm2022/checkboxset.component.mjs +3 -19
- package/components/input/checkboxset/fesm2022/index.mjs +2 -18
- package/components/input/checkboxset/fesm2022/index.mjs.map +1 -1
- package/components/input/chips/bundles/index.umd.js +5 -45
- package/components/input/chips/chips.component.d.ts +2 -3
- package/components/input/chips/esm2022/chips.component.mjs +6 -46
- package/components/input/chips/fesm2022/index.mjs +5 -45
- package/components/input/chips/fesm2022/index.mjs.map +1 -1
- package/components/input/color-picker/bundles/index.umd.js +0 -8
- package/components/input/color-picker/color-picker.component.d.ts +2 -3
- package/components/input/color-picker/esm2022/color-picker.component.mjs +1 -9
- package/components/input/color-picker/fesm2022/index.mjs +0 -8
- package/components/input/color-picker/fesm2022/index.mjs.map +1 -1
- package/components/input/composite/bundles/index.umd.js +1 -10
- package/components/input/composite/composite.directive.d.ts +2 -3
- package/components/input/composite/esm2022/composite.directive.mjs +2 -11
- package/components/input/composite/fesm2022/index.mjs +1 -10
- package/components/input/composite/fesm2022/index.mjs.map +1 -1
- package/components/input/currency/bundles/index.umd.js +0 -7
- package/components/input/currency/currency.component.d.ts +2 -3
- package/components/input/currency/esm2022/currency.component.mjs +1 -8
- package/components/input/currency/fesm2022/index.mjs +0 -7
- package/components/input/currency/fesm2022/index.mjs.map +1 -1
- package/components/input/dataset-aware-form/bundles/index.umd.js +2 -26
- package/components/input/dataset-aware-form/esm2022/dataset-aware-form.component.mjs +3 -27
- package/components/input/dataset-aware-form/fesm2022/index.mjs +2 -26
- package/components/input/dataset-aware-form/fesm2022/index.mjs.map +1 -1
- package/components/input/epoch/date/bundles/index.umd.js +0 -22
- package/components/input/epoch/date/date.component.d.ts +0 -1
- package/components/input/epoch/date/esm2022/date.component.mjs +1 -23
- package/components/input/epoch/date/fesm2022/index.mjs +0 -22
- package/components/input/epoch/date/fesm2022/index.mjs.map +1 -1
- package/components/input/file-upload/bundles/index.umd.js +8 -25
- package/components/input/file-upload/esm2022/file-upload.component.mjs +9 -26
- package/components/input/file-upload/fesm2022/index.mjs +8 -25
- package/components/input/file-upload/fesm2022/index.mjs.map +1 -1
- package/components/input/file-upload/file-upload.component.d.ts +0 -3
- package/components/input/number/bundles/index.umd.js +0 -8
- package/components/input/number/esm2022/number.component.mjs +1 -9
- package/components/input/number/fesm2022/index.mjs +0 -8
- package/components/input/number/fesm2022/index.mjs.map +1 -1
- package/components/input/number/number.component.d.ts +2 -3
- package/components/input/radioset/bundles/index.umd.js +2 -18
- package/components/input/radioset/esm2022/radioset.component.mjs +3 -19
- package/components/input/radioset/fesm2022/index.mjs +2 -18
- package/components/input/radioset/fesm2022/index.mjs.map +1 -1
- package/components/input/radioset/radioset.component.d.ts +2 -4
- package/components/input/rating/bundles/index.umd.js +0 -10
- package/components/input/rating/esm2022/rating.component.mjs +1 -11
- package/components/input/rating/fesm2022/index.mjs +0 -10
- package/components/input/rating/fesm2022/index.mjs.map +1 -1
- package/components/input/rating/rating.component.d.ts +2 -3
- package/components/input/select/bundles/index.umd.js +0 -6
- package/components/input/select/esm2022/select.component.mjs +1 -7
- package/components/input/select/fesm2022/index.mjs +0 -6
- package/components/input/select/fesm2022/index.mjs.map +1 -1
- package/components/input/select/select.component.d.ts +2 -3
- package/components/input/slider/bundles/index.umd.js +0 -10
- package/components/input/slider/esm2022/slider.component.mjs +1 -11
- package/components/input/slider/fesm2022/index.mjs +0 -10
- package/components/input/slider/fesm2022/index.mjs.map +1 -1
- package/components/input/slider/slider.component.d.ts +2 -3
- package/components/input/switch/bundles/index.umd.js +2 -22
- package/components/input/switch/esm2022/switch.component.mjs +3 -23
- package/components/input/switch/fesm2022/index.mjs +2 -22
- package/components/input/switch/fesm2022/index.mjs.map +1 -1
- package/components/input/switch/switch.component.d.ts +2 -3
- package/components/input/text/bundles/index.umd.js +0 -36
- package/components/input/text/esm2022/input-calendar/input-calendar.component.mjs +1 -8
- package/components/input/text/esm2022/input-color/input-color.component.mjs +1 -8
- package/components/input/text/esm2022/input-email/input-email.component.mjs +1 -8
- package/components/input/text/esm2022/input-number/input-number.component.mjs +1 -8
- package/components/input/text/esm2022/input-text/input-text.component.mjs +1 -9
- package/components/input/text/fesm2022/index.mjs +0 -36
- package/components/input/text/fesm2022/index.mjs.map +1 -1
- package/components/input/text/input-calendar/input-calendar.component.d.ts +2 -3
- package/components/input/text/input-color/input-color.component.d.ts +2 -3
- package/components/input/text/input-email/input-email.component.d.ts +2 -3
- package/components/input/text/input-number/input-number.component.d.ts +2 -3
- package/components/input/text/input-text/input-text.component.d.ts +2 -3
- package/components/input/textarea/bundles/index.umd.js +0 -7
- package/components/input/textarea/esm2022/textarea.component.mjs +1 -8
- package/components/input/textarea/fesm2022/index.mjs +0 -7
- package/components/input/textarea/fesm2022/index.mjs.map +1 -1
- package/components/input/textarea/textarea.component.d.ts +2 -3
- package/components/navigation/menu/bundles/index.umd.js +6 -55
- package/components/navigation/menu/esm2022/menu-adapator.component.mjs +3 -17
- package/components/navigation/menu/esm2022/menu.component.mjs +3 -10
- package/components/navigation/menu/esm2022/nav/nav-item/nav-item.directive.mjs +1 -6
- package/components/navigation/menu/esm2022/nav/nav.component.mjs +1 -11
- package/components/navigation/menu/esm2022/nav/navigation-control.directive.mjs +3 -16
- package/components/navigation/menu/fesm2022/index.mjs +6 -55
- package/components/navigation/menu/fesm2022/index.mjs.map +1 -1
- package/components/navigation/menu/menu-adapator.component.d.ts +2 -4
- package/components/navigation/menu/nav/nav-item/nav-item.directive.d.ts +2 -3
- package/components/navigation/menu/nav/nav.component.d.ts +2 -3
- package/components/navigation/menu/nav/navigation-control.directive.d.ts +2 -4
- package/components/navigation/navbar/bundles/index.umd.js +0 -5
- package/components/navigation/navbar/esm2022/navbar.component.mjs +1 -6
- package/components/navigation/navbar/fesm2022/index.mjs +0 -5
- package/components/navigation/navbar/fesm2022/index.mjs.map +1 -1
- package/components/navigation/navbar/navbar.component.d.ts +2 -3
- package/components/navigation/popover/bundles/index.umd.js +13 -65
- package/components/navigation/popover/esm2022/popover.component.mjs +11 -63
- package/components/navigation/popover/fesm2022/index.mjs +10 -62
- package/components/navigation/popover/fesm2022/index.mjs.map +1 -1
- package/components/navigation/popover/popover.component.d.ts +3 -11
- package/components/page/default/bundles/index.umd.js +2 -20
- package/components/page/default/esm2022/layout.directive.mjs +1 -9
- package/components/page/default/esm2022/page-content/page-content.component.mjs +3 -13
- package/components/page/default/fesm2022/index.mjs +2 -20
- package/components/page/default/fesm2022/index.mjs.map +1 -1
- package/components/page/default/layout.directive.d.ts +2 -3
- package/components/page/default/page-content/page-content.component.d.ts +2 -3
- package/components/page/left-panel/bundles/index.umd.js +0 -16
- package/components/page/left-panel/esm2022/left-panel.directive.mjs +1 -17
- package/components/page/left-panel/fesm2022/index.mjs +0 -16
- package/components/page/left-panel/fesm2022/index.mjs.map +1 -1
- package/components/page/left-panel/left-panel.directive.d.ts +2 -3
- package/components/page/top-nav/bundles/index.umd.js +1 -2
- package/components/page/top-nav/esm2022/top-nav.props.mjs +2 -3
- package/components/page/top-nav/fesm2022/index.mjs +1 -2
- package/components/page/top-nav/fesm2022/index.mjs.map +1 -1
- package/components/prefab/bundles/index.umd.js +0 -4
- package/components/prefab/esm2022/prefab.directive.mjs +1 -5
- package/components/prefab/fesm2022/index.mjs +0 -4
- package/components/prefab/fesm2022/index.mjs.map +1 -1
- package/core/bundles/index.umd.js +94 -391
- package/core/esm2022/public_api.mjs +3 -3
- package/core/esm2022/services/viewport.service.mjs +10 -24
- package/core/esm2022/types/types.mjs +1 -1
- package/core/esm2022/utils/dom.mjs +2 -18
- package/core/esm2022/utils/event-notifier.mjs +2 -5
- package/core/esm2022/utils/lru-cache.mjs +2 -16
- package/core/esm2022/utils/utils.mjs +2 -6
- package/core/esm2022/utils/watcher.mjs +81 -323
- package/core/fesm2022/index.mjs +96 -390
- package/core/fesm2022/index.mjs.map +1 -1
- package/core/public_api.d.ts +2 -2
- package/core/services/viewport.service.d.ts +2 -5
- package/core/types/types.d.ts +0 -1
- package/core/utils/lru-cache.d.ts +0 -6
- package/core/utils/utils.d.ts +0 -1
- package/core/utils/watcher.d.ts +5 -26
- package/http/bundles/index.umd.js +1 -31
- package/http/esm2022/http.service.mjs +2 -32
- package/http/fesm2022/index.mjs +1 -31
- package/http/fesm2022/index.mjs.map +1 -1
- package/http/http.service.d.ts +2 -6
- package/locales/moment-timezone/moment-timezone-with-data.js +7 -7
- package/npm-shrinkwrap.json +2 -2
- package/oAuth/bundles/index.umd.js +0 -9
- package/oAuth/esm2022/oAuth.service.mjs +1 -10
- package/oAuth/fesm2022/index.mjs +0 -9
- package/oAuth/fesm2022/index.mjs.map +1 -1
- package/oAuth/oAuth.service.d.ts +1 -3
- package/package-lock.json +2 -2
- package/package.json +1 -1
- package/runtime/base/bundles/index.umd.js +42 -376
- package/runtime/base/components/app-component/app.component.d.ts +0 -4
- package/runtime/base/components/prefab-preview.component.d.ts +2 -5
- package/runtime/base/directives/accessroles.directive.d.ts +3 -4
- package/runtime/base/directives/prefab.directive.d.ts +2 -3
- package/runtime/base/esm2022/components/app-component/app.component.mjs +9 -40
- package/runtime/base/esm2022/components/base-custom-widget.component.mjs +2 -33
- package/runtime/base/esm2022/components/base-layout.component.mjs +1 -7
- package/runtime/base/esm2022/components/base-page.component.mjs +3 -36
- package/runtime/base/esm2022/components/base-partial.component.mjs +3 -37
- package/runtime/base/esm2022/components/base-prefab.component.mjs +3 -32
- package/runtime/base/esm2022/components/base-spa-page.component.mjs +3 -37
- package/runtime/base/esm2022/components/prefab-preview.component.mjs +4 -23
- package/runtime/base/esm2022/directives/accessroles.directive.mjs +2 -11
- package/runtime/base/esm2022/directives/prefab.directive.mjs +1 -9
- package/runtime/base/esm2022/services/app.manager.service.mjs +10 -37
- package/runtime/base/esm2022/services/app.service.mjs +2 -34
- package/runtime/base/esm2022/services/dynamic-component-ref-provider.service.mjs +1 -4
- package/runtime/base/esm2022/services/http-interceptor.services.mjs +14 -13
- package/runtime/base/esm2022/services/pipe-provider.service.mjs +4 -7
- package/runtime/base/esm2022/services/spinner.service.mjs +1 -15
- package/runtime/base/esm2022/util/fragment-monitor.mjs +2 -23
- package/runtime/base/fesm2022/index.mjs +44 -377
- package/runtime/base/fesm2022/index.mjs.map +1 -1
- package/runtime/base/services/app.manager.service.d.ts +1 -6
- package/runtime/base/services/app.service.d.ts +2 -12
- package/runtime/base/services/dynamic-component-ref-provider.service.d.ts +1 -2
- package/runtime/base/services/spinner.service.d.ts +1 -3
- package/runtime/base/util/fragment-monitor.d.ts +0 -6
- package/runtime/dynamic/bundles/index.umd.js +0 -5
- package/runtime/dynamic/esm2022/app/components/page-wrapper.component.mjs +1 -6
- package/runtime/dynamic/fesm2022/index.mjs +0 -5
- package/runtime/dynamic/fesm2022/index.mjs.map +1 -1
- package/scripts/datatable/datatable.js +14 -100
- package/security/bundles/index.umd.js +2 -41
- package/security/esm2022/security.service.mjs +3 -42
- package/security/fesm2022/index.mjs +2 -41
- package/security/fesm2022/index.mjs.map +1 -1
- package/security/security.service.d.ts +2 -5
- package/variables/bundles/index.umd.js +6 -50
- package/variables/esm2022/manager/action/notification-action.manager.mjs +3 -18
- package/variables/esm2022/manager/variable/base-variable.manager.mjs +2 -15
- package/variables/esm2022/manager/variable/web-socket-variable.manager.mjs +3 -13
- package/variables/esm2022/service/variables.service.mjs +2 -8
- package/variables/fesm2022/index.mjs +6 -50
- package/variables/fesm2022/index.mjs.map +1 -1
|
@@ -1450,11 +1450,11 @@
|
|
|
1450
1450
|
}
|
|
1451
1451
|
};
|
|
1452
1452
|
|
|
1453
|
-
const $RAF = window.requestAnimationFrame;
|
|
1453
|
+
const $RAF$1 = window.requestAnimationFrame;
|
|
1454
1454
|
const $RAFQueue = [];
|
|
1455
1455
|
const invokeLater = fn => {
|
|
1456
1456
|
if (!$RAFQueue.length) {
|
|
1457
|
-
$RAF(() => {
|
|
1457
|
+
$RAF$1(() => {
|
|
1458
1458
|
$RAFQueue.forEach(f => f());
|
|
1459
1459
|
$RAFQueue.length = 0;
|
|
1460
1460
|
});
|
|
@@ -1525,23 +1525,7 @@
|
|
|
1525
1525
|
sync ? task() : invokeLater(task);
|
|
1526
1526
|
};
|
|
1527
1527
|
const setAttr = (node, attrName, val, sync) => {
|
|
1528
|
-
const task = () =>
|
|
1529
|
-
if (node instanceof Element) {
|
|
1530
|
-
// Handle tabindex specifically - ensure it's a valid string representation
|
|
1531
|
-
if (attrName === 'tabindex') {
|
|
1532
|
-
// Convert to string, handling 0, null, undefined, and NaN
|
|
1533
|
-
if (val === null || val === undefined || (typeof val === 'number' && isNaN(val))) {
|
|
1534
|
-
node.removeAttribute(attrName);
|
|
1535
|
-
}
|
|
1536
|
-
else {
|
|
1537
|
-
node.setAttribute(attrName, String(val));
|
|
1538
|
-
}
|
|
1539
|
-
}
|
|
1540
|
-
else {
|
|
1541
|
-
node.setAttribute(attrName, val);
|
|
1542
|
-
}
|
|
1543
|
-
}
|
|
1544
|
-
};
|
|
1528
|
+
const task = () => node instanceof Element && node.setAttribute(attrName, val);
|
|
1545
1529
|
sync ? task() : invokeLater(task);
|
|
1546
1530
|
};
|
|
1547
1531
|
const setHtml = (node, html, sync) => {
|
|
@@ -2207,25 +2191,14 @@
|
|
|
2207
2191
|
return fnExecutor(expr, ExpressionType.Action);
|
|
2208
2192
|
};
|
|
2209
2193
|
|
|
2210
|
-
// Constants
|
|
2211
|
-
const WIDGET_ID_REGEX = /^(widget-[^_]+)/;
|
|
2212
|
-
const WIDGET_PROPERTY_REGEX = /^widget-[^_]+_(.+)$/;
|
|
2213
|
-
const ARRAY_INDEX_PLACEHOLDER = '[$i]';
|
|
2214
|
-
const ARRAY_INDEX_ZERO = '[0]';
|
|
2215
|
-
const DEBOUNCE_WAIT = 100;
|
|
2216
|
-
const MAX_WATCH_CYCLES = 5;
|
|
2217
2194
|
const registry = new Map();
|
|
2218
2195
|
const watchIdGenerator = new IDGenerator('watch-id-');
|
|
2219
|
-
const FIRST_TIME_WATCH =
|
|
2220
|
-
|
|
2196
|
+
const FIRST_TIME_WATCH = {};
|
|
2197
|
+
Object.freeze(FIRST_TIME_WATCH);
|
|
2198
|
+
const isFirstTimeChange = v => v === FIRST_TIME_WATCH;
|
|
2221
2199
|
let muted = false;
|
|
2222
|
-
let changedByWatch = false;
|
|
2223
|
-
let skipWatchers = false;
|
|
2224
|
-
let ngZone;
|
|
2225
2200
|
let appRef;
|
|
2226
|
-
|
|
2227
|
-
const isFirstTimeChange = (v) => v === FIRST_TIME_WATCH;
|
|
2228
|
-
const debounce = (fn, wait = DEBOUNCE_WAIT) => {
|
|
2201
|
+
const debounce = (fn, wait = 50) => {
|
|
2229
2202
|
let timeout;
|
|
2230
2203
|
return (...args) => {
|
|
2231
2204
|
window['__zone_symbol__clearTimeout'](timeout);
|
|
@@ -2239,345 +2212,115 @@
|
|
|
2239
2212
|
muted = false;
|
|
2240
2213
|
triggerWatchers();
|
|
2241
2214
|
};
|
|
2242
|
-
/**
|
|
2243
|
-
* Extracts widget ID from identifier (e.g., "widget-id23_eventsource" -> "widget-id23")
|
|
2244
|
-
*/
|
|
2245
|
-
const getWidgetId = (identifier) => {
|
|
2246
|
-
if (!identifier || typeof identifier !== 'string') {
|
|
2247
|
-
return null;
|
|
2248
|
-
}
|
|
2249
|
-
const match = identifier.match(WIDGET_ID_REGEX);
|
|
2250
|
-
return match ? match[1] : null;
|
|
2251
|
-
};
|
|
2252
|
-
/**
|
|
2253
|
-
* Extracts property name from identifier (e.g., "widget-id23_eventsource" -> "eventsource")
|
|
2254
|
-
*/
|
|
2255
|
-
const getPropertyName = (identifier) => {
|
|
2256
|
-
if (!identifier || typeof identifier !== 'string') {
|
|
2257
|
-
return identifier;
|
|
2258
|
-
}
|
|
2259
|
-
const match = identifier.match(WIDGET_PROPERTY_REGEX);
|
|
2260
|
-
return match ? match[1] : identifier;
|
|
2261
|
-
};
|
|
2262
|
-
/**
|
|
2263
|
-
* Array consumer wrapper for array-based expressions
|
|
2264
|
-
*/
|
|
2265
2215
|
const arrayConsumer = (listenerFn, restExpr, newVal, oldVal) => {
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2216
|
+
let data = newVal, formattedData;
|
|
2217
|
+
if (lodashEs.isArray(data)) {
|
|
2218
|
+
formattedData = data.map(function (datum) {
|
|
2219
|
+
return findValueOf(datum, restExpr);
|
|
2220
|
+
});
|
|
2221
|
+
// If resulting structure is an array of array, flatten it
|
|
2222
|
+
if (lodashEs.isArray(formattedData[0])) {
|
|
2223
|
+
formattedData = lodashEs.flatten(formattedData);
|
|
2224
|
+
}
|
|
2225
|
+
listenerFn(formattedData, oldVal);
|
|
2273
2226
|
}
|
|
2274
|
-
listenerFn(formattedData, oldVal);
|
|
2275
2227
|
};
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
const regex = /\[\$i\]/g;
|
|
2228
|
+
const getUpdatedWatcInfo = (expr, acceptsArray, listener) => {
|
|
2229
|
+
// listener doesn't accept array
|
|
2230
|
+
// replace all `[$i]` with `[0]` and return the expression
|
|
2231
|
+
let regex = /\[\$i\]/g, $I = '[$i]', $0 = '[0]';
|
|
2281
2232
|
if (!acceptsArray) {
|
|
2282
2233
|
return {
|
|
2283
|
-
expr: expr.replace(regex,
|
|
2284
|
-
listener
|
|
2234
|
+
'expr': expr.replace(regex, $0),
|
|
2235
|
+
'listener': listener
|
|
2285
2236
|
};
|
|
2286
2237
|
}
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2238
|
+
// listener accepts array
|
|
2239
|
+
// replace all except the last `[$i]` with `[0]` and return the expression.
|
|
2240
|
+
var index = expr.lastIndexOf($I), _expr = expr.substr(0, index).replace($I, $0), restExpr = expr.substr(index + 5), arrayConsumerFn = listener;
|
|
2241
|
+
if (restExpr) {
|
|
2242
|
+
arrayConsumerFn = arrayConsumer.bind(undefined, listener, restExpr);
|
|
2243
|
+
}
|
|
2293
2244
|
return {
|
|
2294
|
-
expr:
|
|
2295
|
-
listener: arrayConsumerFn
|
|
2245
|
+
'expr': _expr,
|
|
2246
|
+
'listener': arrayConsumerFn
|
|
2296
2247
|
};
|
|
2297
2248
|
};
|
|
2298
|
-
/**
|
|
2299
|
-
* Determines if an expression is static (doesn't need to be watched)
|
|
2300
|
-
*/
|
|
2301
|
-
const STATIC_EXPRESSION_NAMES = [
|
|
2302
|
-
"row.getProperty('investment')",
|
|
2303
|
-
"row.getProperty('factsheetLink')",
|
|
2304
|
-
"row.getProperty('isRebalanceEligible')"
|
|
2305
|
-
];
|
|
2306
|
-
const isStaticExpression = (expr) => {
|
|
2307
|
-
if (typeof expr !== 'string') {
|
|
2308
|
-
return false;
|
|
2309
|
-
}
|
|
2310
|
-
const trimmedExpr = expr.trim();
|
|
2311
|
-
// Expressions that always evaluate to localization strings
|
|
2312
|
-
// if (trimmedExpr.includes('appLocale')) {
|
|
2313
|
-
// return true;
|
|
2314
|
-
// }
|
|
2315
|
-
// Hard-coded static expression names
|
|
2316
|
-
if (STATIC_EXPRESSION_NAMES.includes(trimmedExpr)) {
|
|
2317
|
-
return true;
|
|
2318
|
-
}
|
|
2319
|
-
return false;
|
|
2320
|
-
};
|
|
2321
|
-
/**
|
|
2322
|
-
* Gets the scope type from the scope object
|
|
2323
|
-
*/
|
|
2324
|
-
const getScopeType = ($scope) => {
|
|
2325
|
-
if (!$scope) {
|
|
2326
|
-
return null;
|
|
2327
|
-
}
|
|
2328
|
-
if ($scope.pageName)
|
|
2329
|
-
return 'Page';
|
|
2330
|
-
if ($scope.prefabName)
|
|
2331
|
-
return 'Prefab';
|
|
2332
|
-
if ($scope.partialName)
|
|
2333
|
-
return 'Partial';
|
|
2334
|
-
// Check for App scope
|
|
2335
|
-
if ($scope.Variables !== undefined &&
|
|
2336
|
-
$scope.Actions !== undefined &&
|
|
2337
|
-
!$scope.pageName &&
|
|
2338
|
-
!$scope.prefabName &&
|
|
2339
|
-
!$scope.partialName) {
|
|
2340
|
-
return 'App';
|
|
2341
|
-
}
|
|
2342
|
-
if ($scope.constructor?.name === 'AppRef') {
|
|
2343
|
-
return 'App';
|
|
2344
|
-
}
|
|
2345
|
-
return null;
|
|
2346
|
-
};
|
|
2347
|
-
/**
|
|
2348
|
-
* Gets scope name based on scope type
|
|
2349
|
-
*/
|
|
2350
|
-
const getScopeName = ($scope, scopeType) => {
|
|
2351
|
-
if (!scopeType || !$scope) {
|
|
2352
|
-
return null;
|
|
2353
|
-
}
|
|
2354
|
-
switch (scopeType) {
|
|
2355
|
-
case 'Prefab': return $scope.prefabName || null;
|
|
2356
|
-
case 'Partial': return $scope.partialName || null;
|
|
2357
|
-
case 'Page': return $scope.pageName || null;
|
|
2358
|
-
default: return null;
|
|
2359
|
-
}
|
|
2360
|
-
};
|
|
2361
|
-
/**
|
|
2362
|
-
* Main watch function
|
|
2363
|
-
*/
|
|
2364
2249
|
const $watch = (expr, $scope, $locals, listener, identifier = watchIdGenerator.nextUid(), doNotClone = false, config = {}, isMuted) => {
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
const watchInfo = getUpdatedWatchInfo(expr, config.arrayType || config.isList || false, listener);
|
|
2250
|
+
if (expr.indexOf('[$i]') !== -1) {
|
|
2251
|
+
let watchInfo = getUpdatedWatcInfo(expr, config && (config.arrayType || config.isList), listener);
|
|
2368
2252
|
expr = watchInfo.expr;
|
|
2369
2253
|
listener = watchInfo.listener;
|
|
2370
2254
|
}
|
|
2371
|
-
// Handle static expressions
|
|
2372
|
-
if (isStaticExpression(expr)) {
|
|
2373
|
-
try {
|
|
2374
|
-
const fn = $parseExpr(expr);
|
|
2375
|
-
const staticValue = fn($scope, $locals);
|
|
2376
|
-
listener(staticValue, FIRST_TIME_WATCH);
|
|
2377
|
-
}
|
|
2378
|
-
catch (e) {
|
|
2379
|
-
console.warn(`Error evaluating static expression '${expr}':`, e);
|
|
2380
|
-
listener(undefined, FIRST_TIME_WATCH);
|
|
2381
|
-
}
|
|
2382
|
-
return () => { }; // No-op unsubscribe
|
|
2383
|
-
}
|
|
2384
2255
|
const fn = $parseExpr(expr);
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
const watchInfo = {
|
|
2388
|
-
fn: fn.bind(null, $scope, $locals),
|
|
2256
|
+
registry.set(identifier, {
|
|
2257
|
+
fn: fn.bind(expr, $scope, $locals),
|
|
2389
2258
|
listener,
|
|
2390
2259
|
expr,
|
|
2391
2260
|
last: FIRST_TIME_WATCH,
|
|
2392
2261
|
doNotClone,
|
|
2393
|
-
isMuted
|
|
2394
|
-
scopeType,
|
|
2395
|
-
scopeName
|
|
2396
|
-
};
|
|
2397
|
-
// Store in registry
|
|
2398
|
-
const widgetId = getWidgetId(identifier);
|
|
2399
|
-
if (widgetId) {
|
|
2400
|
-
const propertyName = getPropertyName(identifier);
|
|
2401
|
-
if (!registry.has(widgetId)) {
|
|
2402
|
-
registry.set(widgetId, {});
|
|
2403
|
-
}
|
|
2404
|
-
const widgetGroup = registry.get(widgetId);
|
|
2405
|
-
widgetGroup[propertyName] = watchInfo;
|
|
2406
|
-
}
|
|
2407
|
-
else {
|
|
2408
|
-
registry.set(identifier, watchInfo);
|
|
2409
|
-
}
|
|
2410
|
-
return () => $unwatch(identifier);
|
|
2411
|
-
};
|
|
2412
|
-
/**
|
|
2413
|
-
* Unwatches a single identifier
|
|
2414
|
-
*/
|
|
2415
|
-
const $unwatch = (identifier) => {
|
|
2416
|
-
const widgetId = getWidgetId(identifier);
|
|
2417
|
-
if (widgetId) {
|
|
2418
|
-
const propertyName = getPropertyName(identifier);
|
|
2419
|
-
const widgetGroup = registry.get(widgetId);
|
|
2420
|
-
if (widgetGroup && typeof widgetGroup === 'object' && !widgetGroup.fn) {
|
|
2421
|
-
const watchInfo = widgetGroup[propertyName];
|
|
2422
|
-
if (watchInfo) {
|
|
2423
|
-
delete widgetGroup[propertyName];
|
|
2424
|
-
// Clean up empty widget groups
|
|
2425
|
-
if (Object.keys(widgetGroup).length === 0) {
|
|
2426
|
-
registry.delete(widgetId);
|
|
2427
|
-
}
|
|
2428
|
-
return true;
|
|
2429
|
-
}
|
|
2430
|
-
}
|
|
2431
|
-
}
|
|
2432
|
-
// Fallback to direct lookup
|
|
2433
|
-
if (registry.has(identifier)) {
|
|
2434
|
-
registry.delete(identifier);
|
|
2435
|
-
return true;
|
|
2436
|
-
}
|
|
2437
|
-
return false;
|
|
2438
|
-
};
|
|
2439
|
-
/**
|
|
2440
|
-
* Unwatches all watchers for a specific widget ID
|
|
2441
|
-
*/
|
|
2442
|
-
const $unwatchAll = (widgetId) => {
|
|
2443
|
-
if (!widgetId || typeof widgetId !== 'string') {
|
|
2444
|
-
return 0;
|
|
2445
|
-
}
|
|
2446
|
-
const widgetGroup = registry.get(widgetId);
|
|
2447
|
-
if (widgetGroup && typeof widgetGroup === 'object' && !widgetGroup.fn) {
|
|
2448
|
-
const count = Object.keys(widgetGroup).length;
|
|
2449
|
-
registry.delete(widgetId);
|
|
2450
|
-
return count;
|
|
2451
|
-
}
|
|
2452
|
-
// Fallback: find all identifiers starting with this widget ID
|
|
2453
|
-
let removedCount = 0;
|
|
2454
|
-
const identifiersToRemove = [];
|
|
2455
|
-
registry.forEach((_, key) => {
|
|
2456
|
-
if (key.startsWith(widgetId + '_')) {
|
|
2457
|
-
identifiersToRemove.push(key);
|
|
2458
|
-
}
|
|
2262
|
+
isMuted: isMuted
|
|
2459
2263
|
});
|
|
2460
|
-
|
|
2461
|
-
if ($unwatch(identifier)) {
|
|
2462
|
-
removedCount++;
|
|
2463
|
-
}
|
|
2464
|
-
});
|
|
2465
|
-
return removedCount;
|
|
2466
|
-
};
|
|
2467
|
-
/**
|
|
2468
|
-
* Unwatches all watchers for a specific scope (Page, Prefab, Partial, or App)
|
|
2469
|
-
* Now works directly with the main registry instead of separate scoped registries
|
|
2470
|
-
*/
|
|
2471
|
-
const $unwatchAllByScope = (scopeType, scopeName) => {
|
|
2472
|
-
if (!scopeType) {
|
|
2473
|
-
return 0;
|
|
2474
|
-
}
|
|
2475
|
-
let removedCount = 0;
|
|
2476
|
-
const identifiersToRemove = [];
|
|
2477
|
-
registry.forEach((value, key) => {
|
|
2478
|
-
// Handle grouped structure (widget groups)
|
|
2479
|
-
if (value && typeof value === 'object' && !value.fn) {
|
|
2480
|
-
Object.entries(value).forEach(([propertyName, watchInfo]) => {
|
|
2481
|
-
if (watchInfo?.scopeType === scopeType &&
|
|
2482
|
-
(!scopeName || watchInfo.scopeName === scopeName)) {
|
|
2483
|
-
identifiersToRemove.push(`${key}_${propertyName}`);
|
|
2484
|
-
}
|
|
2485
|
-
});
|
|
2486
|
-
}
|
|
2487
|
-
else {
|
|
2488
|
-
// Direct watchInfo
|
|
2489
|
-
const watchInfo = value;
|
|
2490
|
-
if (watchInfo?.scopeType === scopeType &&
|
|
2491
|
-
(!scopeName || watchInfo.scopeName === scopeName)) {
|
|
2492
|
-
identifiersToRemove.push(key);
|
|
2493
|
-
}
|
|
2494
|
-
}
|
|
2495
|
-
});
|
|
2496
|
-
// Unwatch all collected identifiers
|
|
2497
|
-
identifiersToRemove.forEach(identifier => {
|
|
2498
|
-
if ($unwatch(identifier)) {
|
|
2499
|
-
removedCount++;
|
|
2500
|
-
}
|
|
2501
|
-
});
|
|
2502
|
-
return removedCount;
|
|
2503
|
-
};
|
|
2504
|
-
/**
|
|
2505
|
-
* Processes a single watch info during trigger cycle
|
|
2506
|
-
*/
|
|
2507
|
-
const processWatchInfo = (watchInfo) => {
|
|
2508
|
-
if (!watchInfo?.fn || (watchInfo.isMuted?.() ?? false)) {
|
|
2509
|
-
return false;
|
|
2510
|
-
}
|
|
2511
|
-
let newValue;
|
|
2512
|
-
try {
|
|
2513
|
-
newValue = watchInfo.fn();
|
|
2514
|
-
}
|
|
2515
|
-
catch (e) {
|
|
2516
|
-
console.warn(`Error executing expression: '${watchInfo.expr}'`, e);
|
|
2517
|
-
return false;
|
|
2518
|
-
}
|
|
2519
|
-
if (lodashEs.isEqual(newValue, watchInfo.last)) {
|
|
2520
|
-
return false;
|
|
2521
|
-
}
|
|
2522
|
-
// Change detected
|
|
2523
|
-
changedByWatch = true;
|
|
2524
|
-
watchInfo.last = lodashEs.isObject(newValue) && !watchInfo.doNotClone
|
|
2525
|
-
? lodashEs.clone(newValue)
|
|
2526
|
-
: newValue;
|
|
2527
|
-
watchInfo.listener(newValue, watchInfo.last === newValue ? FIRST_TIME_WATCH : watchInfo.last);
|
|
2528
|
-
changedByWatch = false;
|
|
2529
|
-
return true;
|
|
2264
|
+
return () => $unwatch(identifier);
|
|
2530
2265
|
};
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2266
|
+
const $unwatch = identifier => registry.delete(identifier);
|
|
2267
|
+
let changedByWatch = false;
|
|
2268
|
+
const $RAF = window.requestAnimationFrame;
|
|
2269
|
+
let ngZone;
|
|
2270
|
+
const triggerWatchers = (ignoreMuted) => {
|
|
2535
2271
|
if (muted && !ignoreMuted) {
|
|
2536
2272
|
return;
|
|
2537
2273
|
}
|
|
2274
|
+
const limit = 5;
|
|
2538
2275
|
let pass = 1;
|
|
2539
2276
|
let changeDetected;
|
|
2540
2277
|
do {
|
|
2541
2278
|
changeDetected = false;
|
|
2542
|
-
registry.forEach(
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
Object.values(value).forEach((watchInfo) => {
|
|
2546
|
-
if (processWatchInfo(watchInfo)) {
|
|
2547
|
-
changeDetected = true;
|
|
2548
|
-
}
|
|
2549
|
-
});
|
|
2279
|
+
registry.forEach(watchInfo => {
|
|
2280
|
+
if (watchInfo.isMuted && watchInfo.isMuted()) {
|
|
2281
|
+
return;
|
|
2550
2282
|
}
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2283
|
+
const fn = watchInfo.fn;
|
|
2284
|
+
const listener = watchInfo.listener;
|
|
2285
|
+
const ov = watchInfo.last;
|
|
2286
|
+
let nv;
|
|
2287
|
+
try {
|
|
2288
|
+
nv = fn();
|
|
2289
|
+
}
|
|
2290
|
+
catch (e) {
|
|
2291
|
+
console.warn(`error in executing expression: '${watchInfo.expr}'`);
|
|
2292
|
+
}
|
|
2293
|
+
if (!lodashEs.isEqual(nv, ov)) {
|
|
2294
|
+
changeDetected = true;
|
|
2295
|
+
changedByWatch = true;
|
|
2296
|
+
watchInfo.last = nv;
|
|
2297
|
+
// @ts-ignore
|
|
2298
|
+
if (lodashEs.isObject(nv) && !watchInfo.doNotClone && nv.__cloneable__ !== false) {
|
|
2299
|
+
watchInfo.last = lodashEs.clone(nv);
|
|
2555
2300
|
}
|
|
2301
|
+
listener(nv, ov);
|
|
2302
|
+
resetChangeFromWatch();
|
|
2556
2303
|
}
|
|
2557
2304
|
});
|
|
2558
2305
|
pass++;
|
|
2559
|
-
} while (changeDetected && pass <
|
|
2560
|
-
if (changeDetected && pass ===
|
|
2561
|
-
console.warn(`
|
|
2306
|
+
} while (changeDetected && pass < limit);
|
|
2307
|
+
if (changeDetected && pass === limit) {
|
|
2308
|
+
console.warn(`Number of watch cycles gone above set limit of: ${limit} `);
|
|
2562
2309
|
}
|
|
2563
2310
|
};
|
|
2564
|
-
|
|
2565
|
-
const
|
|
2566
|
-
ngZone = zone;
|
|
2567
|
-
};
|
|
2568
|
-
const setAppRef = (ref) => {
|
|
2311
|
+
const setNgZone = zone => ngZone = zone;
|
|
2312
|
+
const setAppRef = ref => {
|
|
2569
2313
|
appRef = ref;
|
|
2570
2314
|
};
|
|
2571
2315
|
const isChangeFromWatch = () => changedByWatch;
|
|
2572
|
-
const resetChangeFromWatch = () =>
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
// Debounced trigger
|
|
2316
|
+
const resetChangeFromWatch = () => changedByWatch = false;
|
|
2317
|
+
window.watchRegistry = registry;
|
|
2318
|
+
let skipWatchers;
|
|
2576
2319
|
const debouncedTriggerWatchers = debounce(() => {
|
|
2577
2320
|
skipWatchers = true;
|
|
2578
2321
|
ngZone.run(() => triggerWatchers());
|
|
2579
|
-
},
|
|
2580
|
-
const $invokeWatchers = (force
|
|
2322
|
+
}, 100);
|
|
2323
|
+
const $invokeWatchers = (force, ignoreMuted) => {
|
|
2581
2324
|
if (force) {
|
|
2582
2325
|
triggerWatchers(ignoreMuted);
|
|
2583
2326
|
}
|
|
@@ -2591,8 +2334,7 @@
|
|
|
2591
2334
|
};
|
|
2592
2335
|
const $appDigest = (() => {
|
|
2593
2336
|
let queued = false;
|
|
2594
|
-
|
|
2595
|
-
return (force = false) => {
|
|
2337
|
+
return (force) => {
|
|
2596
2338
|
if (!appRef) {
|
|
2597
2339
|
return;
|
|
2598
2340
|
}
|
|
@@ -2604,16 +2346,16 @@
|
|
|
2604
2346
|
if (queued) {
|
|
2605
2347
|
return;
|
|
2606
2348
|
}
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2349
|
+
else {
|
|
2350
|
+
queued = true;
|
|
2351
|
+
$RAF(() => {
|
|
2352
|
+
ngZone.run(() => appRef.tick());
|
|
2353
|
+
queued = false;
|
|
2354
|
+
});
|
|
2355
|
+
}
|
|
2612
2356
|
}
|
|
2613
2357
|
};
|
|
2614
2358
|
})();
|
|
2615
|
-
// Export registry for debugging
|
|
2616
|
-
window.watchRegistry = registry;
|
|
2617
2359
|
|
|
2618
2360
|
exports.ComponentType = void 0;
|
|
2619
2361
|
(function (ComponentType) {
|
|
@@ -2710,7 +2452,6 @@
|
|
|
2710
2452
|
SUPPORTED_AUDIO_FORMAT: /\.(mp3|ogg|webm|wma|3gp|wav|m4a)$/i,
|
|
2711
2453
|
SUPPORTED_VIDEO_FORMAT: /\.(mp4|ogg|webm|wmv|mpeg|mpg|avi|mov)$/i,
|
|
2712
2454
|
VALID_WEB_URL: /^(http[s]?:\/\/)(www\.){0,1}[a-zA-Z0-9=:?\/\.\-]+(\.[a-zA-Z]{2,5}[\.]{0,1})?/,
|
|
2713
|
-
VALID_IMAGE_URL: /^(https?|blob|data|file|ftp):/i,
|
|
2714
2455
|
REPLACE_PATTERN: /\$\{([^\}]+)\}/g,
|
|
2715
2456
|
DATA_URL: /^\s*data:([a-z]+\/[a-z0-9-+.]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s]*)\s*$/i,
|
|
2716
2457
|
ISO_DATE_FORMAT: /(\d{4}-\d{2}-\d{2})T(\d{2}:\d{2}:\d{2})(\.\d+)?([+-]\d{2}:?\d{2}|Z)$/
|
|
@@ -2933,9 +2674,6 @@
|
|
|
2933
2674
|
const isValidWebURL = (url) => {
|
|
2934
2675
|
return (REGEX.VALID_WEB_URL).test(url);
|
|
2935
2676
|
};
|
|
2936
|
-
const isValidImageUrl = (url) => {
|
|
2937
|
-
return (REGEX.VALID_IMAGE_URL).test(url?.trim());
|
|
2938
|
-
};
|
|
2939
2677
|
/*This function returns the url to the resource after checking the validity of url*/
|
|
2940
2678
|
const getResourceURL = (urlString) => {
|
|
2941
2679
|
return urlString;
|
|
@@ -4189,7 +3927,6 @@
|
|
|
4189
3927
|
isPageable: isPageable,
|
|
4190
3928
|
isSafari: isSafari,
|
|
4191
3929
|
isTablet: isTablet,
|
|
4192
|
-
isValidImageUrl: isValidImageUrl,
|
|
4193
3930
|
isValidWebURL: isValidWebURL,
|
|
4194
3931
|
isVideoFile: isVideoFile,
|
|
4195
3932
|
loadScript: loadScript,
|
|
@@ -4283,10 +4020,7 @@
|
|
|
4283
4020
|
return noop;
|
|
4284
4021
|
}
|
|
4285
4022
|
destroy() {
|
|
4286
|
-
this._subject.
|
|
4287
|
-
this._subject.complete(); // clears all observers
|
|
4288
|
-
this._isInitialized = false;
|
|
4289
|
-
this._eventsBeforeInit = [];
|
|
4023
|
+
this._subject.complete();
|
|
4290
4024
|
}
|
|
4291
4025
|
}
|
|
4292
4026
|
let MINIMUM_TAB_WIDTH = 768;
|
|
@@ -4301,11 +4035,9 @@
|
|
|
4301
4035
|
this.isTabletType = false;
|
|
4302
4036
|
this._eventNotifier = new EventNotifier(true);
|
|
4303
4037
|
this.setScreenType();
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
this.mediaQuery = window.matchMedia('(orientation: portrait)');
|
|
4308
|
-
if (this.mediaQuery.matches) {
|
|
4038
|
+
window.addEventListener("resize" /* ViewportEvent.RESIZE */, this.resizeFn.bind(this));
|
|
4039
|
+
const query = window.matchMedia('(orientation: portrait)');
|
|
4040
|
+
if (query.matches) {
|
|
4309
4041
|
this.orientation.isPortrait = true;
|
|
4310
4042
|
}
|
|
4311
4043
|
else {
|
|
@@ -4313,10 +4045,8 @@
|
|
|
4313
4045
|
}
|
|
4314
4046
|
// Add a media query change listener
|
|
4315
4047
|
// addEventListener is not supported ios browser
|
|
4316
|
-
if (
|
|
4317
|
-
|
|
4318
|
-
this.boundOrientationChange = ($event) => this.orientationChange($event, !$event.matches);
|
|
4319
|
-
this.mediaQuery.addEventListener('change', this.boundOrientationChange);
|
|
4048
|
+
if (query.addEventListener) {
|
|
4049
|
+
query.addEventListener('change', $event => this.orientationChange($event, !$event.matches));
|
|
4320
4050
|
}
|
|
4321
4051
|
}
|
|
4322
4052
|
update(selectedViewPort) {
|
|
@@ -4343,14 +4073,14 @@
|
|
|
4343
4073
|
return this._eventNotifier.subscribe(eventName, callback);
|
|
4344
4074
|
}
|
|
4345
4075
|
notify(eventName, ...data) {
|
|
4346
|
-
this._eventNotifier.notify(
|
|
4076
|
+
this._eventNotifier.notify.apply(this._eventNotifier, arguments);
|
|
4347
4077
|
}
|
|
4348
4078
|
setScreenType() {
|
|
4349
4079
|
const $el = document.querySelector('.wm-app');
|
|
4350
4080
|
this.screenWidth = $el.clientWidth;
|
|
4351
4081
|
this.screenHeight = $el.clientHeight;
|
|
4352
|
-
|
|
4353
|
-
|
|
4082
|
+
this.screenWidth < this.screenHeight ? this.screenWidth : this.screenHeight;
|
|
4083
|
+
this.screenWidth > this.screenHeight ? this.screenWidth : this.screenHeight;
|
|
4354
4084
|
this.isTabletType = false;
|
|
4355
4085
|
this.isMobileType = false;
|
|
4356
4086
|
if (lodashEs.get(this.selectedViewPort, 'deviceCategory')) {
|
|
@@ -4382,17 +4112,7 @@
|
|
|
4382
4112
|
}
|
|
4383
4113
|
ngOnDestroy() {
|
|
4384
4114
|
this._eventNotifier.destroy();
|
|
4385
|
-
|
|
4386
|
-
if (this.boundResizeFn) {
|
|
4387
|
-
window.removeEventListener('resize', this.boundResizeFn);
|
|
4388
|
-
this.boundResizeFn = null;
|
|
4389
|
-
}
|
|
4390
|
-
// MEMORY LEAK FIX: Remove media query orientation change listener
|
|
4391
|
-
if (this.mediaQuery && this.boundOrientationChange && this.mediaQuery.removeEventListener) {
|
|
4392
|
-
this.mediaQuery.removeEventListener('change', this.boundOrientationChange);
|
|
4393
|
-
this.boundOrientationChange = null;
|
|
4394
|
-
}
|
|
4395
|
-
this.mediaQuery = null;
|
|
4115
|
+
window.removeEventListener('resize', this.resizeFn);
|
|
4396
4116
|
}
|
|
4397
4117
|
static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0__namespace, type: Viewport, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable }); }
|
|
4398
4118
|
static { this.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0__namespace, type: Viewport, providedIn: 'root' }); }
|
|
@@ -5361,15 +5081,13 @@
|
|
|
5361
5081
|
this.onEvict = onEvict;
|
|
5362
5082
|
this.cache = new Map();
|
|
5363
5083
|
this.evictQueue = [''];
|
|
5364
|
-
this.evictionIntervalId = null; // MEMORY LEAK FIX: Store interval ID for cleanup
|
|
5365
5084
|
this.evictQueue.shift();
|
|
5366
5085
|
if (this.maxAge > 0) {
|
|
5367
5086
|
if (this.maxAge <= 30) {
|
|
5368
5087
|
console.warn(`Cache age ${this.maxAge}s is very less. Keep it atleast 30s.`);
|
|
5369
5088
|
}
|
|
5370
5089
|
this.maxAge = this.maxAge * 1000;
|
|
5371
|
-
|
|
5372
|
-
this.evictionIntervalId = window.setInterval(() => {
|
|
5090
|
+
setInterval(() => {
|
|
5373
5091
|
const max = Date.now() - this.maxAge;
|
|
5374
5092
|
const expiredData = this.evictQueue.filter(k => {
|
|
5375
5093
|
return this.cache.get(k).lastAccessedTime <= max;
|
|
@@ -5434,18 +5152,6 @@
|
|
|
5434
5152
|
clear() {
|
|
5435
5153
|
this.evict(this.evictQueue.length);
|
|
5436
5154
|
}
|
|
5437
|
-
/**
|
|
5438
|
-
* MEMORY LEAK FIX: Destroy the cache and clear the eviction interval
|
|
5439
|
-
* Call this method when the cache is no longer needed to prevent memory leaks
|
|
5440
|
-
*/
|
|
5441
|
-
destroy() {
|
|
5442
|
-
// CRITICAL FIX: Clear the eviction interval to prevent memory leaks
|
|
5443
|
-
if (this.evictionIntervalId !== null) {
|
|
5444
|
-
clearInterval(this.evictionIntervalId);
|
|
5445
|
-
this.evictionIntervalId = null;
|
|
5446
|
-
}
|
|
5447
|
-
this.clear();
|
|
5448
|
-
}
|
|
5449
5155
|
}
|
|
5450
5156
|
|
|
5451
5157
|
exports.$appDigest = $appDigest;
|
|
@@ -5453,8 +5159,6 @@
|
|
|
5453
5159
|
exports.$parseEvent = $parseEvent;
|
|
5454
5160
|
exports.$parseExpr = $parseExpr;
|
|
5455
5161
|
exports.$unwatch = $unwatch;
|
|
5456
|
-
exports.$unwatchAll = $unwatchAll;
|
|
5457
|
-
exports.$unwatchAllByScope = $unwatchAllByScope;
|
|
5458
5162
|
exports.$watch = $watch;
|
|
5459
5163
|
exports.AbstractDialogService = AbstractDialogService;
|
|
5460
5164
|
exports.AbstractHttpService = AbstractHttpService;
|
|
@@ -5578,7 +5282,6 @@
|
|
|
5578
5282
|
exports.isObject = isObject;
|
|
5579
5283
|
exports.isPageable = isPageable;
|
|
5580
5284
|
exports.isSafari = isSafari;
|
|
5581
|
-
exports.isValidImageUrl = isValidImageUrl;
|
|
5582
5285
|
exports.isValidWebURL = isValidWebURL;
|
|
5583
5286
|
exports.isVideoFile = isVideoFile;
|
|
5584
5287
|
exports.loadScript = loadScript;
|