@acorex/platform 18.1.4 → 18.1.6
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/common/lib/app/app-startup.service.d.ts +16 -0
- package/common/lib/app/application.types.d.ts +4 -2
- package/common/lib/app/index.d.ts +1 -0
- package/common/lib/common.module.d.ts +4 -1
- package/common/lib/configs/app.config.d.ts +1 -0
- package/common/lib/data/data-provider.types.d.ts +1 -0
- package/common/lib/data/data.types.d.ts +14 -0
- package/common/lib/data/dexie-storage.service.d.ts +7 -5
- package/common/lib/data/entity-data-seeder.d.ts +12 -0
- package/common/lib/data/entity-storage-service.d.ts +66 -0
- package/common/lib/data/index.d.ts +3 -2
- package/common/lib/layout/menu/index.d.ts +2 -0
- package/common/lib/layout/menu/menu.provider.d.ts +15 -0
- package/common/lib/layout/menu/menu.service.d.ts +12 -0
- package/common/lib/layout/menu/menu.types.d.ts +8 -1
- package/common/lib/layout/theme/components/slots/index.d.ts +0 -1
- package/common/lib/layout/theme/store/admin-layout.actions.d.ts +0 -1
- package/common/lib/layout/theme/store/admin-layout.effects.d.ts +1 -2
- package/common/lib/layout/theme/store/admin-layout.reducers.d.ts +0 -5
- package/common/lib/layout/theme/store/admin-layout.selectors.d.ts +0 -1
- package/common/lib/layout/theme/store/admin-layout.state.d.ts +0 -3
- package/common/lib/schema/widgets/common-widget-filter/boolean-widget-filter.component.d.ts +1 -1
- package/common/lib/schema/widgets/dateTime/dateTime-widget-filter.component.d.ts +2 -0
- package/common/lib/schema/widgets/lookup/lookup-widget-edit.component.d.ts +1 -0
- package/common/lib/settings/index.d.ts +1 -1
- package/common/lib/settings/settings.provider.d.ts +7 -0
- package/common/lib/settings/settings.service.d.ts +8 -4
- package/common/lib/settings/settings.types.d.ts +2 -3
- package/common/lib/store/common.actions.d.ts +1 -2
- package/common/lib/store/common.effects.d.ts +5 -3
- package/common/lib/workflows/common.workflow.d.ts +2 -0
- package/core/utils/data-conditioner.d.ts +2 -5
- package/esm2022/common/lib/app/app-startup.service.mjs +40 -0
- package/esm2022/common/lib/app/application.types.mjs +1 -1
- package/esm2022/common/lib/app/index.mjs +2 -1
- package/esm2022/common/lib/common.module.mjs +56 -19
- package/esm2022/common/lib/configs/app.config.mjs +2 -1
- package/esm2022/common/lib/data/data-provider.types.mjs +1 -1
- package/esm2022/common/lib/data/data.types.mjs +2 -0
- package/esm2022/common/lib/data/dexie-storage.service.mjs +98 -4
- package/esm2022/common/lib/data/entity-data-seeder.mjs +25 -0
- package/esm2022/common/lib/data/entity-storage-service.mjs +63 -0
- package/esm2022/common/lib/data/index.mjs +4 -3
- package/esm2022/common/lib/layout/menu/index.mjs +3 -1
- package/esm2022/common/lib/layout/menu/menu.provider.mjs +60 -0
- package/esm2022/common/lib/layout/menu/menu.service.mjs +73 -0
- package/esm2022/common/lib/layout/menu/menu.types.mjs +1 -1
- package/esm2022/common/lib/layout/theme/components/slots/index.mjs +1 -2
- package/esm2022/common/lib/layout/theme/store/admin-layout.actions.mjs +1 -2
- package/esm2022/common/lib/layout/theme/store/admin-layout.effects.mjs +6 -14
- package/esm2022/common/lib/layout/theme/store/admin-layout.reducers.mjs +24 -21
- package/esm2022/common/lib/layout/theme/store/admin-layout.selectors.mjs +1 -2
- package/esm2022/common/lib/layout/theme/store/admin-layout.state.mjs +1 -4
- package/esm2022/common/lib/schema/widgets/avatar/avatar-widget-edit.component.mjs +8 -2
- package/esm2022/common/lib/schema/widgets/common-widget-filter/boolean-widget-filter.component.mjs +15 -9
- package/esm2022/common/lib/schema/widgets/common-widget-filter/number-widget-filter.component.mjs +2 -2
- package/esm2022/common/lib/schema/widgets/common-widget-filter/string-widget-filter.component.mjs +2 -2
- package/esm2022/common/lib/schema/widgets/dateTime/dateTime-widget-filter.component.mjs +64 -15
- package/esm2022/common/lib/schema/widgets/gallery/gallery-widget-edit.component.mjs +3 -3
- package/esm2022/common/lib/schema/widgets/gallery/gallery-widget-view.component.mjs +3 -3
- package/esm2022/common/lib/schema/widgets/lookup/lookup-widget-edit.component.mjs +2 -2
- package/esm2022/common/lib/schema/widgets/lookup/lookup-widget-filter.component.mjs +44 -16
- package/esm2022/common/lib/schema/widgets/number/number-widget-edit.component.mjs +2 -2
- package/esm2022/common/lib/schema/widgets/selection-list/selection-list-widget-filter.component.mjs +10 -6
- package/esm2022/common/lib/settings/index.mjs +2 -2
- package/esm2022/common/lib/settings/settings.provider.mjs +35 -0
- package/esm2022/common/lib/settings/settings.service.mjs +40 -7
- package/esm2022/common/lib/settings/settings.types.mjs +1 -1
- package/esm2022/common/lib/store/common.actions.mjs +2 -3
- package/esm2022/common/lib/store/common.effects.mjs +13 -10
- package/esm2022/common/lib/workflows/common.workflow.mjs +7 -4
- package/esm2022/core/utils/data-conditioner.mjs +3 -3
- package/esm2022/layout/builder/lib/builder/builder.service.mjs +11 -6
- package/esm2022/layout/builder/lib/builder/widget-catalog.mjs +2 -1
- package/esm2022/layout/builder/lib/builder/widget-container.component.mjs +12 -8
- package/esm2022/layout/builder/lib/builder/widget-renderer.component.directive.mjs +34 -11
- package/esm2022/layout/builder/lib/builder/widget.types.mjs +21 -19
- package/esm2022/layout/designer/index.mjs +3 -1
- package/esm2022/layout/designer/lib/designer/components/add-widget-button/add-widget-line-button.component.mjs +49 -0
- package/esm2022/layout/designer/lib/designer/components/add-widget-button/add-widget-mini-button.component.mjs +53 -0
- package/esm2022/layout/designer/lib/designer/components/add-widget-button/index.mjs +4 -0
- package/esm2022/layout/designer/lib/designer/components/board/board.component.mjs +11 -3
- package/esm2022/layout/designer/lib/designer/components/drawers/data-sources/data-sources.component.mjs +1 -1
- package/esm2022/layout/designer/lib/designer/components/header-menu/header-menu.component.mjs +66 -5
- package/esm2022/layout/designer/lib/designer/components/size-mode/view-size-toolbar.component.mjs +54 -0
- package/esm2022/layout/designer/lib/designer/components/widget-picker/widget-picker.component.mjs +40 -16
- package/esm2022/layout/designer/lib/designer/designer.component.mjs +18 -57
- package/esm2022/layout/designer/lib/designer/index.mjs +3 -3
- package/esm2022/layout/designer/lib/designer/shared/designer-connector.service.mjs +1 -1
- package/esm2022/layout/designer/lib/designer/shared/designer.service.mjs +28 -8
- package/esm2022/layout/designer/lib/designer/shared/designer.types.mjs +6 -0
- package/esm2022/layout/designer/lib/designer/shared/widget-designer-renderer.directive.mjs +2 -3
- package/esm2022/layout/designer/lib/preview/preview-frame.component.mjs +75 -0
- package/esm2022/layout/designer/lib/preview/preview-viewer.component.mjs +58 -0
- package/esm2022/layout/designer/lib/preview/preview.component.mjs +67 -9
- package/esm2022/layout/designer/lib/property-viewer/widget-property-viewer.component.mjs +3 -3
- package/esm2022/layout/entity/lib/entity-detail-list.viewmodel.mjs +48 -36
- package/esm2022/layout/entity/lib/entity-master-list.viewmodel.mjs +5 -6
- package/esm2022/layout/entity/lib/entity-master-single.viewmodel.mjs +1 -2
- package/esm2022/layout/entity/lib/entity-registery.service.mjs +5 -5
- package/esm2022/layout/entity/lib/entity.config.mjs +28 -2
- package/esm2022/layout/entity/lib/widgets/lookup-widget/lookup-widget-edit.component.mjs +5 -5
- package/esm2022/layout/entity/lib/widgets/lookup-widget/lookup-widget-selector.component.mjs +45 -9
- package/esm2022/layout/entity/lib/widgets/lookup-widget/lookup-widget-selector.viewmodel.mjs +2 -2
- package/esm2022/layout/entity/lib/widgets/lookup-widget/lookup-widget-view.component.mjs +4 -4
- package/esm2022/layout/entity/lib/widgets/widget-selector/widget-selector-widget.config.mjs +2 -1
- package/esm2022/layout/entity/lib/workflows/create-entity.workflow.mjs +3 -3
- package/esm2022/layout/entity/lib/workflows/delete-entity.workflow.mjs +18 -9
- package/esm2022/layout/entity/lib/workflows/modify-section.workflow.mjs +7 -5
- package/esm2022/layouts/lib/admin/entity-layout/entity-details-view/entity-details-view.component.mjs +3 -3
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/components/entity-custom-view/entity-custom-view.component.mjs +1 -1
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-conditions/list-view-option-conditions.component.mjs +1 -1
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/entity-list-view.component.mjs +3 -3
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/list-view.config.mjs +9 -5
- package/esm2022/layouts/lib/admin/entity-layout/workflows/delete-entity.workflow.mjs +2 -2
- package/esm2022/layouts/lib/admin/entity-layout/workflows/modify-entity.workflow.mjs +5 -3
- package/esm2022/themes/default/lib/default.module.mjs +7 -3
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-detail-list-view/entity-detail-list-view.component.mjs +10 -7
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-list-view/entity-master-list-view.component.mjs +27 -10
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-modify-view/entity-master-modify-view.component.mjs +3 -3
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-single-view/entity-master-single-view.component.mjs +11 -8
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-single-view/overview/entity-single-overview.component.mjs +1 -1
- package/esm2022/themes/default/lib/layouts/root-layout/components/header/header.component.mjs +3 -3
- package/esm2022/themes/default/lib/layouts/root-layout/components/menu/root-menu.component.mjs +39 -0
- package/esm2022/themes/default/lib/layouts/root-layout/index.mjs +2 -1
- package/esm2022/themes/default/lib/layouts/root-layout/root-layout.component.mjs +13 -26
- package/esm2022/themes/default/lib/layouts/root-layout/root-layout.module.mjs +5 -2
- package/esm2022/themes/shared/index.mjs +3 -1
- package/esm2022/themes/shared/lib/comments/comment-list-view.component.mjs +28 -20
- package/esm2022/themes/shared/lib/comments/comments.service.mjs +3 -2
- package/esm2022/themes/shared/lib/comments/comments.type.mjs +1 -1
- package/esm2022/themes/shared/lib/components/theme-slot.component.mjs +114 -0
- package/esm2022/themes/shared/lib/services/theme.service.mjs +86 -0
- package/esm2022/themes/shared/lib/shared.module.mjs +9 -7
- package/esm2022/widgets/lib/widgets/actions/button/button-widget-designer.component.mjs +2 -2
- package/esm2022/widgets/lib/widgets/actions/button/button-widget-view.component.mjs +1 -2
- package/esm2022/widgets/lib/widgets/actions/button/button-widget.config.mjs +3 -2
- package/esm2022/widgets/lib/widgets/advance/gallery/gallery-widget-edit.component.mjs +3 -3
- package/esm2022/widgets/lib/widgets/advance/gallery/gallery-widget-view.component.mjs +3 -3
- package/esm2022/widgets/lib/widgets/advance/qrcode/qrcode-widget-view.component.mjs +4 -4
- package/esm2022/widgets/lib/widgets/editors/checkbox/checkbox-widget-edit.component.mjs +1 -1
- package/esm2022/widgets/lib/widgets/editors/checkbox/checkbox-widget-view.component.mjs +35 -23
- package/esm2022/widgets/lib/widgets/editors/color/color-box-widget-column.component.mjs +26 -5
- package/esm2022/widgets/lib/widgets/editors/color/color-box-widget-designer.component.mjs +3 -2
- package/esm2022/widgets/lib/widgets/editors/color/color-box-widget-edit.component.mjs +3 -2
- package/esm2022/widgets/lib/widgets/editors/color/color-box-widget-print.component.mjs +3 -3
- package/esm2022/widgets/lib/widgets/editors/color/color-box-widget-view.component.mjs +4 -3
- package/esm2022/widgets/lib/widgets/editors/contact/contact-widget-column.component.mjs +18 -4
- package/esm2022/widgets/lib/widgets/editors/contact/contact-widget-edit.component.mjs +20 -23
- package/esm2022/widgets/lib/widgets/editors/contact/contact-widget.config.mjs +6 -29
- package/esm2022/widgets/lib/widgets/editors/date-time/date-time-box-widget-column.component.mjs +18 -8
- package/esm2022/widgets/lib/widgets/editors/date-time/date-time-box-widget-print.component.mjs +3 -3
- package/esm2022/widgets/lib/widgets/editors/large-text/large-text-widget-edit.component.mjs +1 -1
- package/esm2022/widgets/lib/widgets/editors/large-text/large-text-widget-view.component.mjs +1 -1
- package/esm2022/widgets/lib/widgets/editors/number/number-box-widget-edit.component.mjs +5 -4
- package/esm2022/widgets/lib/widgets/editors/number/number-box-widget-view.component.mjs +5 -5
- package/esm2022/widgets/lib/widgets/editors/rich-text/rich-text-widget-edit.component.mjs +16 -11
- package/esm2022/widgets/lib/widgets/editors/select/select-box-widget-view.component.mjs +15 -19
- package/esm2022/widgets/lib/widgets/editors/select/select-box-widget.config.mjs +3 -2
- package/esm2022/widgets/lib/widgets/editors/toggle/toggle-widget-edit.component.mjs +3 -3
- package/esm2022/widgets/lib/widgets/editors/toggle/toggle-widget-print.component.mjs +3 -2
- package/esm2022/widgets/lib/widgets/editors/toggle/toggle-widget-view.component.mjs +68 -28
- package/esm2022/widgets/lib/widgets/index.mjs +2 -1
- package/esm2022/widgets/lib/widgets/layout/block/block-widget-designer.component.mjs +7 -8
- package/esm2022/widgets/lib/widgets/layout/block/block-widget-view.component.mjs +36 -15
- package/esm2022/widgets/lib/widgets/layout/block/block-widget.config.mjs +3 -2
- package/esm2022/widgets/lib/widgets/layout/form-field/form-field-widget-designer.component.mjs +11 -10
- package/esm2022/widgets/lib/widgets/layout/form-field/form-field-widget-view.component.mjs +3 -3
- package/esm2022/widgets/lib/widgets/layout/form-field/form-field-widget.config.mjs +6 -2
- package/esm2022/widgets/lib/widgets/layout/grid/grid-widget-designer.component.mjs +7 -7
- package/esm2022/widgets/lib/widgets/layout/grid/grid-widget-view.component.mjs +5 -4
- package/esm2022/widgets/lib/widgets/layout/grid-item/grid-item-widget-designer.component.mjs +8 -19
- package/esm2022/widgets/lib/widgets/layout/grid-item/grid-item-widget-view.component.mjs +5 -4
- package/esm2022/widgets/lib/widgets/layout/grid-row/grid-row-widget-designer.component.mjs +2 -1
- package/esm2022/widgets/lib/widgets/layout/grid-row/grid-row-widget-view.component.mjs +5 -4
- package/esm2022/widgets/lib/widgets/layout/page/page-widget-designer.component.mjs +95 -9
- package/esm2022/widgets/lib/widgets/layout/page/page-widget-view.component.mjs +3 -3
- package/esm2022/widgets/lib/widgets/layout/page/page-widget.config.mjs +18 -3
- package/esm2022/widgets/lib/widgets/layout/repeater/repeater-widget-designer.component.mjs +10 -10
- package/esm2022/widgets/lib/widgets/layout/repeater/repeater-widget-edit.component.mjs +56 -17
- package/esm2022/widgets/lib/widgets/layout/template/index.mjs +5 -0
- package/esm2022/widgets/lib/widgets/layout/template/template-widget-designer.component.mjs +70 -0
- package/esm2022/widgets/lib/widgets/layout/template/template-widget-edit.component.mjs +55 -0
- package/esm2022/widgets/lib/widgets/layout/template/template-widget-view.component.mjs +56 -0
- package/esm2022/widgets/lib/widgets/layout/template/template-widget.config.mjs +30 -0
- package/esm2022/widgets/lib/widgets/layout/template/template.provider.mjs +41 -0
- package/esm2022/widgets/lib/widgets/layout/text-block/text-block-widget.config.mjs +3 -2
- package/esm2022/widgets/lib/widgets.module.mjs +4 -1
- package/fesm2022/acorex-platform-auth.mjs.map +1 -1
- package/fesm2022/{acorex-platform-common-avatar-widget-edit.component-CfqY7kKi.mjs → acorex-platform-common-avatar-widget-edit.component-WAlG5E_9.mjs} +17 -8
- package/fesm2022/acorex-platform-common-avatar-widget-edit.component-WAlG5E_9.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-avatar-widget-view.component-DXC7INdQ.mjs → acorex-platform-common-avatar-widget-view.component-DRyB3UWf.mjs} +8 -6
- package/fesm2022/acorex-platform-common-avatar-widget-view.component-DRyB3UWf.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-boolean-widget-filter.component-DLGnsXy4.mjs → acorex-platform-common-boolean-widget-filter.component-DY4oTjC-.mjs} +19 -12
- package/fesm2022/acorex-platform-common-boolean-widget-filter.component-DY4oTjC-.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-change-password.component-BBPFxmB6.mjs → acorex-platform-common-change-password.component-Djd4SeNv.mjs} +6 -6
- package/fesm2022/{acorex-platform-common-change-password.component-BBPFxmB6.mjs.map → acorex-platform-common-change-password.component-Djd4SeNv.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-checkbox-widget-column.component-Ch2bdAjo.mjs → acorex-platform-common-checkbox-widget-column.component-NSXcrUwU.mjs} +10 -8
- package/fesm2022/{acorex-platform-common-checkbox-widget-column.component-Ch2bdAjo.mjs.map → acorex-platform-common-checkbox-widget-column.component-NSXcrUwU.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-checkbox-widget-edit.component-DOGMfGby.mjs → acorex-platform-common-checkbox-widget-edit.component-BU7qV5Cm.mjs} +8 -6
- package/fesm2022/acorex-platform-common-checkbox-widget-edit.component-BU7qV5Cm.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-checkbox-widget-view.component-BhGOtblX.mjs → acorex-platform-common-checkbox-widget-view.component-2Du2IzDS.mjs} +10 -8
- package/fesm2022/{acorex-platform-common-checkbox-widget-view.component-BhGOtblX.mjs.map → acorex-platform-common-checkbox-widget-view.component-2Du2IzDS.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-dateTime-widget-column.component-BkUDt0Kj.mjs → acorex-platform-common-dateTime-widget-column.component-Dd7fgwu3.mjs} +8 -6
- package/fesm2022/acorex-platform-common-dateTime-widget-column.component-Dd7fgwu3.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-dateTime-widget-edit.component-DEqsapFH.mjs → acorex-platform-common-dateTime-widget-edit.component-B4AelVJp.mjs} +11 -8
- package/fesm2022/{acorex-platform-common-dateTime-widget-edit.component-DEqsapFH.mjs.map → acorex-platform-common-dateTime-widget-edit.component-B4AelVJp.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-dateTime-widget-filter.component-CqddjYjP.mjs → acorex-platform-common-dateTime-widget-filter.component-Ytm-TwOP.mjs} +68 -18
- package/fesm2022/acorex-platform-common-dateTime-widget-filter.component-Ytm-TwOP.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-dateTime-widget-view.component-BKUPKE9M.mjs → acorex-platform-common-dateTime-widget-view.component-BKdqOPkb.mjs} +8 -6
- package/fesm2022/{acorex-platform-common-dateTime-widget-view.component-BKUPKE9M.mjs.map → acorex-platform-common-dateTime-widget-view.component-BKdqOPkb.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-email-widget-column.component-BOer2nZi.mjs → acorex-platform-common-email-widget-column.component-CDKqwlPD.mjs} +8 -6
- package/fesm2022/acorex-platform-common-email-widget-column.component-CDKqwlPD.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-email-widget-edit.component-BoKsGiEI.mjs → acorex-platform-common-email-widget-edit.component-BT2rJjaW.mjs} +11 -8
- package/fesm2022/acorex-platform-common-email-widget-edit.component-BT2rJjaW.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-email-widget-view.component-BZtK5dMd.mjs → acorex-platform-common-email-widget-view.component-DbhRWpB1.mjs} +8 -6
- package/fesm2022/{acorex-platform-common-email-widget-view.component-BZtK5dMd.mjs.map → acorex-platform-common-email-widget-view.component-DbhRWpB1.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-file-widget-column.component-DpcUmwAT.mjs → acorex-platform-common-file-widget-column.component-8U76QgEQ.mjs} +7 -5
- package/fesm2022/acorex-platform-common-file-widget-column.component-8U76QgEQ.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-file-widget-edit.component-CNLXguLn.mjs → acorex-platform-common-file-widget-edit.component-OFmiYz_5.mjs} +10 -7
- package/fesm2022/{acorex-platform-common-file-widget-edit.component-CNLXguLn.mjs.map → acorex-platform-common-file-widget-edit.component-OFmiYz_5.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-file-widget-filter.component-Dwt-LYWG.mjs → acorex-platform-common-file-widget-filter.component-ZLnpXMXK.mjs} +8 -6
- package/fesm2022/acorex-platform-common-file-widget-filter.component-ZLnpXMXK.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-file-widget-view.component-CjDhjHQR.mjs → acorex-platform-common-file-widget-view.component-BcrM4XrO.mjs} +10 -7
- package/fesm2022/{acorex-platform-common-file-widget-view.component-CjDhjHQR.mjs.map → acorex-platform-common-file-widget-view.component-BcrM4XrO.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-gallery-widget-edit.component-CzKFKaPH.mjs → acorex-platform-common-gallery-widget-edit.component-pBBjrjDP.mjs} +14 -11
- package/fesm2022/{acorex-platform-common-gallery-widget-edit.component-CzKFKaPH.mjs.map → acorex-platform-common-gallery-widget-edit.component-pBBjrjDP.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-gallery-widget-filter.component-B-KxKtY4.mjs → acorex-platform-common-gallery-widget-filter.component-Cp7t9ovC.mjs} +8 -6
- package/fesm2022/acorex-platform-common-gallery-widget-filter.component-Cp7t9ovC.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-gallery-widget-view.component-ca-JB8qW.mjs → acorex-platform-common-gallery-widget-view.component-CPS-h3cq.mjs} +13 -10
- package/fesm2022/{acorex-platform-common-gallery-widget-view.component-ca-JB8qW.mjs.map → acorex-platform-common-gallery-widget-view.component-CPS-h3cq.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-largetext-widget-edit.component-DD7S5j12.mjs → acorex-platform-common-largetext-widget-edit.component-DA6r3rVA.mjs} +8 -6
- package/fesm2022/acorex-platform-common-largetext-widget-edit.component-DA6r3rVA.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-lookup-widget-column.component-BEZNLQZi.mjs → acorex-platform-common-lookup-widget-column.component-Cxv1yZvE.mjs} +8 -6
- package/fesm2022/acorex-platform-common-lookup-widget-column.component-Cxv1yZvE.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-lookup-widget-edit.component-D50jPeKP.mjs → acorex-platform-common-lookup-widget-edit.component-CUtGoAGX.mjs} +9 -7
- package/fesm2022/acorex-platform-common-lookup-widget-edit.component-CUtGoAGX.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-lookup-widget-filter.component-CZHDDnR3.mjs → acorex-platform-common-lookup-widget-filter.component-DJZqB3vj.mjs} +47 -17
- package/fesm2022/acorex-platform-common-lookup-widget-filter.component-DJZqB3vj.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-lookup-widget-view.component-CQCvJxgi.mjs → acorex-platform-common-lookup-widget-view.component-CghJK1C4.mjs} +8 -6
- package/fesm2022/acorex-platform-common-lookup-widget-view.component-CghJK1C4.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-map-widget-edit.component-OanYRQ3B.mjs → acorex-platform-common-map-widget-edit.component-oSb3kVMc.mjs} +8 -6
- package/fesm2022/acorex-platform-common-map-widget-edit.component-oSb3kVMc.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-map-widget-view.component-BWdndMYJ.mjs → acorex-platform-common-map-widget-view.component-BrYwr914.mjs} +8 -6
- package/fesm2022/{acorex-platform-common-map-widget-view.component-BWdndMYJ.mjs.map → acorex-platform-common-map-widget-view.component-BrYwr914.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-messenger-widget-column.component-BHP6R3OI.mjs → acorex-platform-common-messenger-widget-column.component-DIJAffxy.mjs} +8 -6
- package/fesm2022/acorex-platform-common-messenger-widget-column.component-DIJAffxy.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-messenger-widget-edit.component-B7ycb6tX.mjs → acorex-platform-common-messenger-widget-edit.component-DpGvbM4a.mjs} +10 -7
- package/fesm2022/{acorex-platform-common-messenger-widget-edit.component-B7ycb6tX.mjs.map → acorex-platform-common-messenger-widget-edit.component-DpGvbM4a.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-messenger-widget-view.component-Dz5X-FS5.mjs → acorex-platform-common-messenger-widget-view.component-CeuDEI-j.mjs} +8 -6
- package/fesm2022/{acorex-platform-common-messenger-widget-view.component-Dz5X-FS5.mjs.map → acorex-platform-common-messenger-widget-view.component-CeuDEI-j.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-number-widget-edit.component-XSWI6466.mjs → acorex-platform-common-number-widget-edit.component-B1YGwr60.mjs} +11 -9
- package/fesm2022/acorex-platform-common-number-widget-edit.component-B1YGwr60.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-number-widget-filter.component-BOT9wPJ5.mjs → acorex-platform-common-number-widget-filter.component-BmmgPy1w.mjs} +12 -9
- package/fesm2022/acorex-platform-common-number-widget-filter.component-BmmgPy1w.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-number-widget-view.component-CP5aboLU.mjs → acorex-platform-common-number-widget-view.component-bqylVHOz.mjs} +8 -6
- package/fesm2022/acorex-platform-common-number-widget-view.component-bqylVHOz.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-password-widget-column.component-CGxTbd_S.mjs → acorex-platform-common-password-widget-column.component-DVdZh7s4.mjs} +8 -6
- package/fesm2022/{acorex-platform-common-password-widget-column.component-CGxTbd_S.mjs.map → acorex-platform-common-password-widget-column.component-DVdZh7s4.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-password-widget-edit.component-CHQ_Kp4t.mjs → acorex-platform-common-password-widget-edit.component-OjHwMT5d.mjs} +12 -10
- package/fesm2022/acorex-platform-common-password-widget-edit.component-OjHwMT5d.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-password-widget-view.component-BQ9jlt6g.mjs → acorex-platform-common-password-widget-view.component-BeSk1OgU.mjs} +9 -6
- package/fesm2022/{acorex-platform-common-password-widget-view.component-BQ9jlt6g.mjs.map → acorex-platform-common-password-widget-view.component-BeSk1OgU.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-phone-widget-column.component-RJp6wHul.mjs → acorex-platform-common-phone-widget-column.component-DOfzGKBi.mjs} +8 -6
- package/fesm2022/acorex-platform-common-phone-widget-column.component-DOfzGKBi.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-phone-widget-edit.component-BB5wTbjd.mjs → acorex-platform-common-phone-widget-edit.component-BJ-iEyLP.mjs} +10 -8
- package/fesm2022/{acorex-platform-common-phone-widget-edit.component-BB5wTbjd.mjs.map → acorex-platform-common-phone-widget-edit.component-BJ-iEyLP.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-phone-widget-view.component-SIzFWfjV.mjs → acorex-platform-common-phone-widget-view.component-DW4AHCE6.mjs} +8 -6
- package/fesm2022/{acorex-platform-common-phone-widget-view.component-SIzFWfjV.mjs.map → acorex-platform-common-phone-widget-view.component-DW4AHCE6.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-rich-text-widget-column.component-Ced0WqvI.mjs → acorex-platform-common-rich-text-widget-column.component-2zZBG6Ze.mjs} +8 -6
- package/fesm2022/{acorex-platform-common-rich-text-widget-column.component-Ced0WqvI.mjs.map → acorex-platform-common-rich-text-widget-column.component-2zZBG6Ze.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-rich-text-widget-edit.component-Do3YcmKg.mjs → acorex-platform-common-rich-text-widget-edit.component-BJveJgHZ.mjs} +8 -5
- package/fesm2022/acorex-platform-common-rich-text-widget-edit.component-BJveJgHZ.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-rich-text-widget-view.component-BIRyPRtw.mjs → acorex-platform-common-rich-text-widget-view.component-CiViWpBX.mjs} +8 -6
- package/fesm2022/acorex-platform-common-rich-text-widget-view.component-CiViWpBX.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-selection-list-widget-column.component-DxeK2RPc.mjs → acorex-platform-common-selection-list-widget-column.component-D9lsVFgo.mjs} +8 -6
- package/fesm2022/acorex-platform-common-selection-list-widget-column.component-D9lsVFgo.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-selection-list-widget-edit.component-CBLEeILz.mjs → acorex-platform-common-selection-list-widget-edit.component-ocEwyUP7.mjs} +10 -8
- package/fesm2022/acorex-platform-common-selection-list-widget-edit.component-ocEwyUP7.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-selection-list-widget-filter.component-B01t7mso.mjs → acorex-platform-common-selection-list-widget-filter.component-CS0f_jCx.mjs} +16 -12
- package/fesm2022/acorex-platform-common-selection-list-widget-filter.component-CS0f_jCx.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-selection-list-widget-view.component-QJMp11dd.mjs → acorex-platform-common-selection-list-widget-view.component-C65lbpo_.mjs} +8 -6
- package/fesm2022/acorex-platform-common-selection-list-widget-view.component-C65lbpo_.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-signature-pad-widget-edit.component-BQiY7RIp.mjs → acorex-platform-common-signature-pad-widget-edit.component-DbfQSGxm.mjs} +10 -7
- package/fesm2022/{acorex-platform-common-signature-pad-widget-edit.component-BQiY7RIp.mjs.map → acorex-platform-common-signature-pad-widget-edit.component-DbfQSGxm.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-signature-pad-widget-view.component-CEhRqgEn.mjs → acorex-platform-common-signature-pad-widget-view.component-CDY3JdP-.mjs} +8 -6
- package/fesm2022/acorex-platform-common-signature-pad-widget-view.component-CDY3JdP-.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-string-widget-filter.component--L4PeRCB.mjs → acorex-platform-common-string-widget-filter.component-BW2ehdOx.mjs} +12 -9
- package/fesm2022/acorex-platform-common-string-widget-filter.component-BW2ehdOx.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-text-widget-column.component-ytX4OqZX.mjs → acorex-platform-common-text-widget-column.component-bhx0QWAX.mjs} +8 -6
- package/fesm2022/acorex-platform-common-text-widget-column.component-bhx0QWAX.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-text-widget-edit.component-CN7OyTfJ.mjs → acorex-platform-common-text-widget-edit.component-Cb1k59hs.mjs} +10 -7
- package/fesm2022/acorex-platform-common-text-widget-edit.component-Cb1k59hs.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-text-widget-view.component-B-R4-5Ra.mjs → acorex-platform-common-text-widget-view.component-CGwY9c2O.mjs} +8 -6
- package/fesm2022/{acorex-platform-common-text-widget-view.component-B-R4-5Ra.mjs.map → acorex-platform-common-text-widget-view.component-CGwY9c2O.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-toggle-widget-column.component-B5NFRPgX.mjs → acorex-platform-common-toggle-widget-column.component-BxAwa7jw.mjs} +10 -8
- package/fesm2022/{acorex-platform-common-toggle-widget-column.component-B5NFRPgX.mjs.map → acorex-platform-common-toggle-widget-column.component-BxAwa7jw.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-toggle-widget-edit.component-CLWHwf8V.mjs → acorex-platform-common-toggle-widget-edit.component-CT2fRAKm.mjs} +8 -5
- package/fesm2022/acorex-platform-common-toggle-widget-edit.component-CT2fRAKm.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-toggle-widget-view.component-Di2S7vub.mjs → acorex-platform-common-toggle-widget-view.component-9tquFHhE.mjs} +10 -8
- package/fesm2022/{acorex-platform-common-toggle-widget-view.component-Di2S7vub.mjs.map → acorex-platform-common-toggle-widget-view.component-9tquFHhE.mjs.map} +1 -1
- package/fesm2022/acorex-platform-common.mjs +652 -302
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-core.mjs +2 -2
- package/fesm2022/acorex-platform-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-builder.mjs +71 -36
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-designer.mjs +476 -72
- package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +149 -68
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layouts-entity-create-view.component-CPGbLM4C.mjs.map +1 -1
- package/fesm2022/acorex-platform-layouts-entity-import-view.component-CZpEcVi9.mjs.map +1 -1
- package/fesm2022/acorex-platform-layouts-entity-modify-view.component-Bt4MLEou.mjs.map +1 -1
- package/fesm2022/acorex-platform-layouts.mjs +16 -11
- package/fesm2022/acorex-platform-layouts.mjs.map +1 -1
- package/fesm2022/acorex-platform-mocks.mjs.map +1 -1
- package/fesm2022/acorex-platform-native.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-Q8eTfAVx.mjs → acorex-platform-themes-default-entity-master-create-view.component-i6vjEhti.mjs} +3 -3
- package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-Q8eTfAVx.mjs.map → acorex-platform-themes-default-entity-master-create-view.component-i6vjEhti.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-list-view.component-fZ6QEYcd.mjs → acorex-platform-themes-default-entity-master-list-view.component-BGKWaCth.mjs} +37 -20
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-BGKWaCth.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-entity-master-modify-view.component-BijYXMme.mjs → acorex-platform-themes-default-entity-master-modify-view.component-B3phYOIw.mjs} +5 -5
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-B3phYOIw.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-entity-master-single-view.component-Bnrabotu.mjs → acorex-platform-themes-default-entity-master-single-view.component-DyZHE0o-.mjs} +16 -13
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-DyZHE0o-.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-error-401.component-D5QQ2HAv.mjs.map +1 -1
- package/fesm2022/acorex-platform-themes-default-error-404.component-DSY_D3Iq.mjs.map +1 -1
- package/fesm2022/acorex-platform-themes-default-error-offline.component-B6wSkMdd.mjs.map +1 -1
- package/fesm2022/acorex-platform-themes-default.mjs +83 -56
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
- package/fesm2022/acorex-platform-themes-shared.mjs +225 -27
- package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -1
- package/fesm2022/{acorex-platform-widgets-button-widget-designer.component-B9bfVuC4.mjs → acorex-platform-widgets-button-widget-designer.component-M_JuDPbt.mjs} +2 -2
- package/fesm2022/acorex-platform-widgets-button-widget-designer.component-M_JuDPbt.mjs.map +1 -0
- package/fesm2022/acorex-platform-widgets-checkbox-widget-column.component-j1jG8pCr.mjs.map +1 -1
- package/fesm2022/acorex-platform-widgets-checkbox-widget-designer.component-DzGg-uFi.mjs.map +1 -1
- package/fesm2022/{acorex-platform-widgets-checkbox-widget-view.component-tPk6Gylo.mjs → acorex-platform-widgets-checkbox-widget-view.component-CDA7Jwov.mjs} +35 -23
- package/fesm2022/acorex-platform-widgets-checkbox-widget-view.component-CDA7Jwov.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-color-box-widget-designer.component-Bb3aXCNZ.mjs → acorex-platform-widgets-color-box-widget-designer.component-DIvi0BtT.mjs} +3 -2
- package/fesm2022/acorex-platform-widgets-color-box-widget-designer.component-DIvi0BtT.mjs.map +1 -0
- package/fesm2022/acorex-platform-widgets-contact-widget-filter.component-GTwK51nJ.mjs.map +1 -1
- package/fesm2022/acorex-platform-widgets-page-widget-designer.component-BL_EAwUs.mjs +153 -0
- package/fesm2022/acorex-platform-widgets-page-widget-designer.component-BL_EAwUs.mjs.map +1 -0
- package/fesm2022/acorex-platform-widgets-rich-text-popup.component-RCdFIz45.mjs.map +1 -1
- package/fesm2022/acorex-platform-widgets-template-widget-edit.component-gvAh-gH1.mjs +96 -0
- package/fesm2022/acorex-platform-widgets-template-widget-edit.component-gvAh-gH1.mjs.map +1 -0
- package/fesm2022/acorex-platform-widgets-text-block-widget-designer.component-Bi9hlpvB.mjs.map +1 -1
- package/fesm2022/acorex-platform-widgets.mjs +563 -235
- package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
- package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
- package/layout/builder/lib/builder/builder.service.d.ts +1 -1
- package/layout/builder/lib/builder/widget-container.component.d.ts +3 -2
- package/layout/builder/lib/builder/widget-renderer.component.directive.d.ts +5 -1
- package/layout/builder/lib/builder/widget.types.d.ts +8 -5
- package/layout/designer/index.d.ts +2 -0
- package/layout/designer/lib/designer/components/add-widget-button/add-widget-line-button.component.d.ts +8 -0
- package/layout/designer/lib/designer/components/add-widget-button/add-widget-mini-button.component.d.ts +9 -0
- package/layout/designer/lib/designer/components/add-widget-button/index.d.ts +3 -0
- package/layout/designer/lib/designer/components/board/board.component.d.ts +2 -0
- package/layout/designer/lib/designer/components/drawers/data-sources/data-sources.component.d.ts +1 -1
- package/layout/designer/lib/designer/components/header-menu/header-menu.component.d.ts +1 -0
- package/layout/designer/lib/designer/components/size-mode/view-size-toolbar.component.d.ts +6 -0
- package/layout/designer/lib/designer/components/widget-picker/widget-picker.component.d.ts +4 -2
- package/layout/designer/lib/designer/designer.component.d.ts +1 -1
- package/layout/designer/lib/designer/index.d.ts +2 -2
- package/layout/designer/lib/designer/shared/designer-connector.service.d.ts +1 -1
- package/layout/designer/lib/designer/shared/designer.service.d.ts +8 -3
- package/layout/designer/lib/preview/preview-frame.component.d.ts +8 -0
- package/layout/designer/lib/preview/preview-viewer.component.d.ts +14 -0
- package/layout/designer/lib/preview/preview.component.d.ts +17 -3
- package/layout/entity/lib/entity-detail-list.viewmodel.d.ts +4 -4
- package/layout/entity/lib/entity-master-create.viewmodel.d.ts +1 -1
- package/layout/entity/lib/entity-master-list.viewmodel.d.ts +2 -1
- package/layout/entity/lib/entity-master-single.viewmodel.d.ts +1 -5
- package/layout/entity/lib/entity-master-update.viewmodel.d.ts +1 -1
- package/layout/entity/lib/entity-registery.service.d.ts +1 -1
- package/layout/entity/lib/entity.config.d.ts +7 -0
- package/layout/entity/lib/entity.viewmodel.d.ts +1 -1
- package/layout/entity/lib/widgets/lookup-widget/lookup-widget-edit.component.d.ts +2 -1
- package/layout/entity/lib/widgets/lookup-widget/lookup-widget-view.component.d.ts +2 -1
- package/layout/entity/lib/workflows/delete-entity.workflow.d.ts +1 -0
- package/layout/entity/lib/workflows/modify-section.workflow.d.ts +1 -0
- package/layouts/lib/admin/entity-layout/workflows/modify-entity.workflow.d.ts +1 -0
- package/package.json +13 -13
- package/themes/default/lib/default.module.d.ts +2 -1
- package/themes/default/lib/layouts/entity-layouts/entity-master-list-view/entity-master-list-view.component.d.ts +3 -1
- package/themes/default/lib/layouts/entity-layouts/entity-master-single-view/entity-master-single-view.component.d.ts +1 -1
- package/themes/default/lib/layouts/root-layout/components/menu/root-menu.component.d.ts +22 -0
- package/themes/default/lib/layouts/root-layout/index.d.ts +1 -0
- package/themes/default/lib/layouts/root-layout/root-layout.component.d.ts +1 -4
- package/themes/default/lib/layouts/root-layout/root-layout.module.d.ts +17 -16
- package/themes/shared/index.d.ts +2 -0
- package/themes/shared/lib/comments/comment-list-view.component.d.ts +16 -11
- package/themes/shared/lib/comments/comments.service.d.ts +4 -7
- package/themes/shared/lib/comments/comments.type.d.ts +24 -20
- package/themes/shared/lib/components/theme-slot.component.d.ts +23 -0
- package/themes/shared/lib/services/theme.service.d.ts +21 -0
- package/themes/shared/lib/shared.module.d.ts +5 -4
- package/widgets/lib/widgets/advance/map/map-box-widget-view.component.d.ts +1 -1
- package/widgets/lib/widgets/advance/qrcode/qrcode-widget-view.component.d.ts +1 -1
- package/widgets/lib/widgets/advance/signature/signature-pad-widget-view.component.d.ts +1 -1
- package/widgets/lib/widgets/editors/color/color-box-widget-column.component.d.ts +3 -0
- package/widgets/lib/widgets/editors/color/color-box-widget-designer.component.d.ts +1 -1
- package/widgets/lib/widgets/editors/color/color-box-widget-edit.component.d.ts +1 -1
- package/widgets/lib/widgets/editors/color/color-box-widget-view.component.d.ts +1 -1
- package/widgets/lib/widgets/editors/contact/contact-widget-column.component.d.ts +2 -0
- package/widgets/lib/widgets/editors/contact/contact-widget-edit.component.d.ts +1 -1
- package/widgets/lib/widgets/editors/contact/contact-widget-view.component.d.ts +1 -1
- package/widgets/lib/widgets/editors/date-time/date-time-box-widget-column.component.d.ts +3 -0
- package/widgets/lib/widgets/editors/number/number-box-widget-edit.component.d.ts +1 -0
- package/widgets/lib/widgets/editors/number/number-box-widget-view.component.d.ts +1 -1
- package/widgets/lib/widgets/editors/password/password-box-widget-view.component.d.ts +1 -1
- package/widgets/lib/widgets/editors/rich-text/rich-text-widget-edit.component.d.ts +3 -2
- package/widgets/lib/widgets/editors/toggle/toggle-widget-edit.component.d.ts +1 -1
- package/widgets/lib/widgets/editors/toggle/toggle-widget-print.component.d.ts +1 -1
- package/widgets/lib/widgets/editors/toggle/toggle-widget-view.component.d.ts +1 -1
- package/widgets/lib/widgets/index.d.ts +1 -0
- package/widgets/lib/widgets/layout/block/block-widget-view.component.d.ts +4 -2
- package/widgets/lib/widgets/layout/grid/grid-widget-view.component.d.ts +1 -1
- package/widgets/lib/widgets/layout/grid-item/grid-item-widget-designer.component.d.ts +0 -2
- package/widgets/lib/widgets/layout/grid-item/grid-item-widget-view.component.d.ts +1 -1
- package/widgets/lib/widgets/layout/grid-row/grid-row-widget-view.component.d.ts +1 -1
- package/widgets/lib/widgets/layout/page/page-widget-designer.component.d.ts +11 -1
- package/widgets/lib/widgets/layout/repeater/repeater-widget-edit.component.d.ts +4 -3
- package/widgets/lib/widgets/layout/template/index.d.ts +4 -0
- package/widgets/lib/widgets/layout/template/template-widget-designer.component.d.ts +11 -0
- package/widgets/lib/widgets/layout/template/template-widget-edit.component.d.ts +10 -0
- package/widgets/lib/widgets/layout/template/template-widget-view.component.d.ts +10 -0
- package/widgets/lib/widgets/layout/template/template-widget.config.d.ts +7 -0
- package/widgets/lib/widgets/layout/template/template.provider.d.ts +21 -0
- package/common/lib/data/entity-data-provider.d.ts +0 -14
- package/common/lib/data/storage-service.d.ts +0 -22
- package/common/lib/layout/theme/components/slots/theme-slot.component.d.ts +0 -8
- package/common/lib/settings/settings.loader.d.ts +0 -8
- package/esm2022/common/lib/data/entity-data-provider.mjs +0 -26
- package/esm2022/common/lib/data/storage-service.mjs +0 -5
- package/esm2022/common/lib/layout/theme/components/slots/theme-slot.component.mjs +0 -48
- package/esm2022/common/lib/settings/settings.loader.mjs +0 -17
- package/esm2022/layout/designer/lib/designer/shared/designer.typs.mjs +0 -6
- package/fesm2022/acorex-platform-common-avatar-widget-edit.component-CfqY7kKi.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-avatar-widget-view.component-DXC7INdQ.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-boolean-widget-filter.component-DLGnsXy4.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-checkbox-widget-edit.component-DOGMfGby.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-dateTime-widget-column.component-BkUDt0Kj.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-dateTime-widget-filter.component-CqddjYjP.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-email-widget-column.component-BOer2nZi.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-email-widget-edit.component-BoKsGiEI.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-file-widget-column.component-DpcUmwAT.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-file-widget-filter.component-Dwt-LYWG.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-gallery-widget-filter.component-B-KxKtY4.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-largetext-widget-edit.component-DD7S5j12.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-lookup-widget-column.component-BEZNLQZi.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-lookup-widget-edit.component-D50jPeKP.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-lookup-widget-filter.component-CZHDDnR3.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-lookup-widget-view.component-CQCvJxgi.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-map-widget-edit.component-OanYRQ3B.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-messenger-widget-column.component-BHP6R3OI.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-number-widget-edit.component-XSWI6466.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-number-widget-filter.component-BOT9wPJ5.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-number-widget-view.component-CP5aboLU.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-password-widget-edit.component-CHQ_Kp4t.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-phone-widget-column.component-RJp6wHul.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-rich-text-widget-edit.component-Do3YcmKg.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-rich-text-widget-view.component-BIRyPRtw.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-selection-list-widget-column.component-DxeK2RPc.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-selection-list-widget-edit.component-CBLEeILz.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-selection-list-widget-filter.component-B01t7mso.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-selection-list-widget-view.component-QJMp11dd.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-signature-pad-widget-view.component-CEhRqgEn.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-string-widget-filter.component--L4PeRCB.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-text-widget-column.component-ytX4OqZX.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-text-widget-edit.component-CN7OyTfJ.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-toggle-widget-edit.component-CLWHwf8V.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout-designer-preview.component-CaRHf4x_.mjs +0 -23
- package/fesm2022/acorex-platform-layout-designer-preview.component-CaRHf4x_.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-fZ6QEYcd.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-BijYXMme.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-Bnrabotu.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-button-widget-designer.component-B9bfVuC4.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-checkbox-widget-view.component-tPk6Gylo.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-color-box-widget-designer.component-Bb3aXCNZ.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-page-widget-designer.component-6BMZ0qRw.mjs +0 -67
- package/fesm2022/acorex-platform-widgets-page-widget-designer.component-6BMZ0qRw.mjs.map +0 -1
- /package/layout/designer/lib/designer/shared/{designer.typs.d.ts → designer.types.d.ts} +0 -0
|
@@ -112,7 +112,7 @@ function applyCondition(item, condition) {
|
|
|
112
112
|
result = includes(valueToCompare, conditionValue);
|
|
113
113
|
}
|
|
114
114
|
else if (Array.isArray(valueToCompare)) {
|
|
115
|
-
result = includes(valueToCompare.map(val => val.toString().toLowerCase()), conditionValue);
|
|
115
|
+
result = includes(valueToCompare.map((val) => val.toString().toLowerCase()), conditionValue);
|
|
116
116
|
}
|
|
117
117
|
else {
|
|
118
118
|
result = false;
|
|
@@ -125,7 +125,7 @@ function applyCondition(item, condition) {
|
|
|
125
125
|
result = !includes(valueToCompare, conditionValue);
|
|
126
126
|
}
|
|
127
127
|
else if (Array.isArray(valueToCompare)) {
|
|
128
|
-
result = !includes(valueToCompare.map(val => val.toString().toLowerCase()), conditionValue);
|
|
128
|
+
result = !includes(valueToCompare.map((val) => val.toString().toLowerCase()), conditionValue);
|
|
129
129
|
}
|
|
130
130
|
else {
|
|
131
131
|
result = false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-core.mjs","sources":["../../../../libs/platform/core/src/lib/types.ts","../../../../libs/platform/core/src/utils/countdown-timer.ts","../../../../libs/platform/core/src/utils/data-conditioner.ts","../../../../libs/platform/core/src/utils/html-utils.ts","../../../../libs/platform/core/src/acorex-platform-core.ts"],"sourcesContent":["export type AXPPartialNested<T> = {\n [K in keyof T]?: T[K] extends object ? AXPPartialNested<T[K]> : T[K];\n};\n\nexport type AXPMetaData = Record<string, any>;\n\nexport type AXPOptionsData = Record<string, any>;\n\nexport type AXPValidationRule = { rule: string; message?: string; options?: any; disabled?: boolean };\n\nexport type AXPValidationRules = AXPValidationRule[];\n\n\nexport function getNestedKeys(obj: any, prefix: string = ''): string[] {\n let keys: string[] = [];\n for (const key in obj) {\n if (typeof obj[key] === 'object' && obj[key] !== null && !Array.isArray(obj[key])) {\n keys = [...keys, ...getNestedKeys(obj[key], prefix + key + '.')];\n } else {\n keys.push(prefix + key);\n }\n }\n return keys;\n}","import { AXCalendarService } from '@acorex/core/date-time';\nimport { inject, Pipe, PipeTransform, signal } from '@angular/core';\nimport { interval, Observable } from 'rxjs';\nimport { map, startWith } from 'rxjs/operators';\n\n@Pipe({\n name: 'countdown',\n pure: false,\n standalone: true,\n})\nexport class AXPCountdownPipe implements PipeTransform {\n private calendarService = inject(AXCalendarService);\n\n private countdownSignal = signal(this.setupTimer());\n\n private targetDate: number = 0;\n private prevValue = 0;\n\n transform(value: number): Observable<string> {\n if (this.prevValue != value) {\n this.prevValue = value;\n const expireTime = this.calendarService.calendar.add(new Date(), 'second', value).date;\n this.updateTargetDate(expireTime.toISOString());\n }\n return this.countdownSignal();\n }\n\n private setupTimer() {\n return interval(1000).pipe(\n startWith(0),\n map(() => {\n const diff = this.targetDate - new Date().getTime();\n if (diff < 0) {\n return \"Time's up!\";\n }\n\n const times = [86400, 3600, 60, 1].map((seconds) => Math.floor((diff / 1000 / seconds) % (seconds === 1 ? 60 : 24)));\n const labels = ['d', 'h', 'm', 's'];\n return times\n .map((t, i) => (t > 0 || i === 3 ? `${t}${labels[i]}` : ''))\n .join(' ')\n .trim();\n })\n );\n }\n\n private updateTargetDate(value: string) {\n this.targetDate = new Date(value).getTime();\n }\n}\n","import { AXDataSourceFilterOption } from '@acorex/components/common';\nimport { endsWith, get, gt, gte, includes, isEmpty, isEqual, isNil, lt, lte, orderBy, startsWith } from 'lodash-es';\n\nconst loggingEnabled = false; // Set to true to enable logging, false to disable\n\nfunction applyCondition(item: any, condition: any) {\n const rawValue = condition.field ? get(item, condition.field) : null;\n const itemValue = typeof rawValue === 'string' ? rawValue.toLowerCase() : rawValue;\n const conditionValue = typeof condition.value === 'string' ? condition.value.toLowerCase() : condition.value;\n\n // Conditional Logging for debugging\n if (loggingEnabled) {\n console.log('Condition:', condition);\n console.log('Item Value:', itemValue);\n console.log('Condition Value:', conditionValue);\n }\n\n let result: boolean;\n const valueToCompare = isNil(condition.field) || condition.field === '' ? conditionValue : itemValue;\n\n switch (condition.operator.type) {\n case 'equal':\n result = isEqual(valueToCompare, conditionValue);\n if (loggingEnabled) console.log('Equal check result:', result);\n break;\n case 'notEqual':\n result = !isEqual(valueToCompare, conditionValue);\n if (loggingEnabled) console.log('Not equal check result:', result);\n break;\n case 'greaterThan':\n result = gt(valueToCompare, conditionValue);\n if (loggingEnabled) console.log('Greater than check result:', result);\n break;\n case 'lessThan':\n result = lt(valueToCompare, conditionValue);\n if (loggingEnabled) console.log('Less than check result:', result);\n break;\n case 'greaterThanOrEqual':\n result = gte(valueToCompare, conditionValue);\n if (loggingEnabled) console.log('Greater than or equal check result:', result);\n break;\n case 'lessThanOrEqual':\n result = lte(valueToCompare, conditionValue);\n if (loggingEnabled) console.log('Less than or equal check result:', result);\n break;\n case 'contains':\n if (typeof valueToCompare === 'string') {\n result = includes(valueToCompare, conditionValue);\n } else if (Array.isArray(valueToCompare)) {\n result = includes(valueToCompare.map(val => val.toString().toLowerCase()), conditionValue);\n } else {\n result = false;\n }\n if (loggingEnabled) console.log('Contains check result:', result);\n break;\n case 'notContains':\n if (typeof valueToCompare === 'string') {\n result = !includes(valueToCompare, conditionValue);\n } else if (Array.isArray(valueToCompare)) {\n result = !includes(valueToCompare.map(val => val.toString().toLowerCase()), conditionValue);\n } else {\n result = false;\n }\n if (loggingEnabled) console.log('Not contains check result:', result);\n break;\n case 'startsWith':\n result = typeof valueToCompare === 'string' && startsWith(valueToCompare, conditionValue);\n if (loggingEnabled) console.log('Starts with check result:', result);\n break;\n case 'endsWith':\n result = typeof valueToCompare === 'string' && endsWith(valueToCompare, conditionValue);\n if (loggingEnabled) console.log('Ends with check result:', result);\n break;\n case 'isEmpty':\n result = isEmpty(valueToCompare);\n if (loggingEnabled) console.log('Is empty check result:', result);\n break;\n case 'isNull':\n result = isNil(valueToCompare);\n if (loggingEnabled) console.log('Is null check result:', result);\n break;\n case 'isNotEmpty':\n result = !isEmpty(valueToCompare);\n if (loggingEnabled) console.log('Is not empty check result:', result);\n break;\n case 'between':\n result = !isNil(valueToCompare) && valueToCompare >= condition.value.from && valueToCompare <= condition.value.to;\n if (loggingEnabled) console.log('Between check result:', result);\n break;\n default:\n result = true;\n if (loggingEnabled) console.log('Default case, returning true');\n }\n\n return result;\n}\n\n\n\n\nexport function applyFilterArray(\n dataArray: any[],\n filters?: AXDataSourceFilterOption[],\n logic: 'and' | 'or' = 'and'\n): any[] {\n if (filters && filters.length) {\n return dataArray.filter((item) => {\n if (logic === 'and') {\n return filters.every((f) => {\n return f.filters ? applyFilterArray([item], f.filters, f.logic).length > 0 : applyCondition(item, f);\n });\n } else {\n // logic === 'or'\n return filters.some((f) => {\n return f.filters ? applyFilterArray([item], f.filters, f.logic).length > 0 : applyCondition(item, f);\n });\n }\n });\n } else {\n return dataArray;\n }\n}\n\n\nexport function applySortArray(dataArray: any, sorts: { field: string; dir: 'asc' | 'desc' }[]) {\n if (sorts && sorts.length > 0) {\n const sortFields = sorts.map((s) => s.field);\n const sortOrders = sorts.map((s) => s.dir);\n return orderBy(dataArray, sortFields, sortOrders);\n } else return dataArray;\n}\n","import { inject, Injectable } from '@angular/core';\nimport { DomSanitizer, SafeHtml } from '@angular/platform-browser';\n\n@Injectable({ providedIn: 'root' })\nexport class AXPHtmlUtils {\n private sanitizer = inject(DomSanitizer);\n getTextFromHTML(html: string | undefined | null): string {\n if (!html) return '';\n const tempElement = document.createElement('div');\n tempElement.innerHTML = html;\n return tempElement.innerText || tempElement.textContent || '';\n }\n getSafeHTMLfromHTML(html: string | undefined | null): SafeHtml | null {\n if (!html) return null;\n return this.sanitizer.bypassSecurityTrustHtml(html);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;SAagB,aAAa,CAAC,GAAQ,EAAE,SAAiB,EAAE,EAAA;IACvD,IAAI,IAAI,GAAa,EAAE,CAAC;AACxB,IAAA,KAAK,MAAM,GAAG,IAAI,GAAG,EAAE;QACnB,IAAI,OAAO,GAAG,CAAC,GAAG,CAAC,KAAK,QAAQ,IAAI,GAAG,CAAC,GAAG,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,EAAE;YAC/E,IAAI,GAAG,CAAC,GAAG,IAAI,EA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AAI,CAAC;QAC7B,OAAO,WAAW,CAAC,SAAS,IAAI,WAAW,CAAC,WAAW,IAAI,EAAE,CAAC;KAC/D;AACD,IAAA,mBAAmB,CAAC,IAA+B,EAAA;AACjD,QAAA,IAAI,CAAC,IAAI;AAAE,YAAA,OAAO,IAAI,CAAC;QACvB,OAAO,IAAI,CAAC,SAAS,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC;KACrD;8GAXU,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA,EAAA;AAAZ,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,YAAY,cADC,MAAM,EAAA,CAAA,CAAA,EAAA;;2FACnB,YAAY,EAAA,UAAA,EAAA,CAAA;kBADxB,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE,CAAA;;;ACHlC;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"acorex-platform-core.mjs","sources":["../../../../libs/platform/core/src/lib/types.ts","../../../../libs/platform/core/src/utils/countdown-timer.ts","../../../../libs/platform/core/src/utils/data-conditioner.ts","../../../../libs/platform/core/src/utils/html-utils.ts","../../../../libs/platform/core/src/acorex-platform-core.ts"],"sourcesContent":["export type AXPPartialNested<T> = {\n [K in keyof T]?: T[K] extends object ? AXPPartialNested<T[K]> : T[K];\n};\n\nexport type AXPMetaData = Record<string, any>;\n\nexport type AXPOptionsData = Record<string, any>;\n\nexport type AXPValidationRule = { rule: string; message?: string; options?: any; disabled?: boolean };\n\nexport type AXPValidationRules = AXPValidationRule[];\n\n\nexport function getNestedKeys(obj: any, prefix: string = ''): string[] {\n let keys: string[] = [];\n for (const key in obj) {\n if (typeof obj[key] === 'object' && obj[key] !== null && !Array.isArray(obj[key])) {\n keys = [...keys, ...getNestedKeys(obj[key], prefix + key + '.')];\n } else {\n keys.push(prefix + key);\n }\n }\n return keys;\n}","import { AXCalendarService } from '@acorex/core/date-time';\nimport { inject, Pipe, PipeTransform, signal } from '@angular/core';\nimport { interval, Observable } from 'rxjs';\nimport { map, startWith } from 'rxjs/operators';\n\n@Pipe({\n name: 'countdown',\n pure: false,\n standalone: true,\n})\nexport class AXPCountdownPipe implements PipeTransform {\n private calendarService = inject(AXCalendarService);\n\n private countdownSignal = signal(this.setupTimer());\n\n private targetDate: number = 0;\n private prevValue = 0;\n\n transform(value: number): Observable<string> {\n if (this.prevValue != value) {\n this.prevValue = value;\n const expireTime = this.calendarService.calendar.add(new Date(), 'second', value).date;\n this.updateTargetDate(expireTime.toISOString());\n }\n return this.countdownSignal();\n }\n\n private setupTimer() {\n return interval(1000).pipe(\n startWith(0),\n map(() => {\n const diff = this.targetDate - new Date().getTime();\n if (diff < 0) {\n return \"Time's up!\";\n }\n\n const times = [86400, 3600, 60, 1].map((seconds) => Math.floor((diff / 1000 / seconds) % (seconds === 1 ? 60 : 24)));\n const labels = ['d', 'h', 'm', 's'];\n return times\n .map((t, i) => (t > 0 || i === 3 ? `${t}${labels[i]}` : ''))\n .join(' ')\n .trim();\n })\n );\n }\n\n private updateTargetDate(value: string) {\n this.targetDate = new Date(value).getTime();\n }\n}\n","import { AXDataSourceFilterOption, AXDataSourceSortOption } from '@acorex/components/common';\nimport { endsWith, get, gt, gte, includes, isEmpty, isEqual, isNil, lt, lte, orderBy, startsWith } from 'lodash-es';\n\nconst loggingEnabled = false; // Set to true to enable logging, false to disable\n\nfunction applyCondition(item: any, condition: any) {\n const rawValue = condition.field ? get(item, condition.field) : null;\n const itemValue = typeof rawValue === 'string' ? rawValue.toLowerCase() : rawValue;\n const conditionValue = typeof condition.value === 'string' ? condition.value.toLowerCase() : condition.value;\n\n // Conditional Logging for debugging\n if (loggingEnabled) {\n console.log('Condition:', condition);\n console.log('Item Value:', itemValue);\n console.log('Condition Value:', conditionValue);\n }\n\n let result: boolean;\n const valueToCompare = isNil(condition.field) || condition.field === '' ? conditionValue : itemValue;\n\n switch (condition.operator.type) {\n case 'equal':\n result = isEqual(valueToCompare, conditionValue);\n if (loggingEnabled) console.log('Equal check result:', result);\n break;\n case 'notEqual':\n result = !isEqual(valueToCompare, conditionValue);\n if (loggingEnabled) console.log('Not equal check result:', result);\n break;\n case 'greaterThan':\n result = gt(valueToCompare, conditionValue);\n if (loggingEnabled) console.log('Greater than check result:', result);\n break;\n case 'lessThan':\n result = lt(valueToCompare, conditionValue);\n if (loggingEnabled) console.log('Less than check result:', result);\n break;\n case 'greaterThanOrEqual':\n result = gte(valueToCompare, conditionValue);\n if (loggingEnabled) console.log('Greater than or equal check result:', result);\n break;\n case 'lessThanOrEqual':\n result = lte(valueToCompare, conditionValue);\n if (loggingEnabled) console.log('Less than or equal check result:', result);\n break;\n case 'contains':\n if (typeof valueToCompare === 'string') {\n result = includes(valueToCompare, conditionValue);\n } else if (Array.isArray(valueToCompare)) {\n result = includes(\n valueToCompare.map((val) => val.toString().toLowerCase()),\n conditionValue\n );\n } else {\n result = false;\n }\n if (loggingEnabled) console.log('Contains check result:', result);\n break;\n case 'notContains':\n if (typeof valueToCompare === 'string') {\n result = !includes(valueToCompare, conditionValue);\n } else if (Array.isArray(valueToCompare)) {\n result = !includes(\n valueToCompare.map((val) => val.toString().toLowerCase()),\n conditionValue\n );\n } else {\n result = false;\n }\n if (loggingEnabled) console.log('Not contains check result:', result);\n break;\n case 'startsWith':\n result = typeof valueToCompare === 'string' && startsWith(valueToCompare, conditionValue);\n if (loggingEnabled) console.log('Starts with check result:', result);\n break;\n case 'endsWith':\n result = typeof valueToCompare === 'string' && endsWith(valueToCompare, conditionValue);\n if (loggingEnabled) console.log('Ends with check result:', result);\n break;\n case 'isEmpty':\n result = isEmpty(valueToCompare);\n if (loggingEnabled) console.log('Is empty check result:', result);\n break;\n case 'isNull':\n result = isNil(valueToCompare);\n if (loggingEnabled) console.log('Is null check result:', result);\n break;\n case 'isNotEmpty':\n result = !isEmpty(valueToCompare);\n if (loggingEnabled) console.log('Is not empty check result:', result);\n break;\n case 'between':\n result = !isNil(valueToCompare) && valueToCompare >= condition.value.from && valueToCompare <= condition.value.to;\n if (loggingEnabled) console.log('Between check result:', result);\n break;\n default:\n result = true;\n if (loggingEnabled) console.log('Default case, returning true');\n }\n\n return result;\n}\n\nexport function applyFilterArray(\n dataArray: any[],\n filters?: AXDataSourceFilterOption[],\n logic: 'and' | 'or' = 'and'\n): any[] {\n if (filters && filters.length) {\n return dataArray.filter((item) => {\n if (logic === 'and') {\n return filters.every((f) => {\n return f.filters ? applyFilterArray([item], f.filters, f.logic).length > 0 : applyCondition(item, f);\n });\n } else {\n // logic === 'or'\n return filters.some((f) => {\n return f.filters ? applyFilterArray([item], f.filters, f.logic).length > 0 : applyCondition(item, f);\n });\n }\n });\n } else {\n return dataArray;\n }\n}\n\nexport function applySortArray(dataArray: any, sorts: AXDataSourceSortOption[]) {\n if (sorts && sorts.length > 0) {\n const sortFields = sorts.map((s) => s.field);\n const sortOrders = sorts.map((s) => s.dir);\n return orderBy(dataArray, sortFields, sortOrders);\n } else return dataArray;\n}\n","import { inject, Injectable } from '@angular/core';\nimport { DomSanitizer, SafeHtml } from '@angular/platform-browser';\n\n@Injectable({ providedIn: 'root' })\nexport class AXPHtmlUtils {\n private sanitizer = inject(DomSanitizer);\n getTextFromHTML(html: string | undefined | null): string {\n if (!html) return '';\n const tempElement = document.createElement('div');\n tempElement.innerHTML = html;\n return tempElement.innerText || tempElement.textContent || '';\n }\n getSafeHTMLfromHTML(html: string | undefined | null): SafeHtml | null {\n if (!html) return null;\n return this.sanitizer.bypassSecurityTrustHtml(html);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;SAagB,aAAa,CAAC,GAAQ,EAAE,SAAiB,EAAE,EAAA;IACvD,IAAI,IAAI,GAAa,EAAE;AACvB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EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,YAAY,cADC,MAAM,EAAA,CAAA,CAAA;;2FACnB,YAAY,EAAA,UAAA,EAAA,CAAA;kBADxB,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;ACHlC;;AAEG;;;;"}
|
|
@@ -5,7 +5,7 @@ import { ComponentPortal, PortalModule } from '@angular/cdk/portal';
|
|
|
5
5
|
import * as i1 from '@angular/common';
|
|
6
6
|
import { CommonModule } from '@angular/common';
|
|
7
7
|
import * as i0 from '@angular/core';
|
|
8
|
-
import { signal, Injectable, InjectionToken, inject, ElementRef,
|
|
8
|
+
import { signal, Injectable, InjectionToken, inject, ElementRef, afterNextRender, computed, Injector, Component, ChangeDetectionStrategy, Input, EventEmitter, model, effect, Output, ChangeDetectorRef, ViewChild, input, ViewContainerRef, Directive, NgModule, Optional, Inject } from '@angular/core';
|
|
9
9
|
import { AXUnsubscriber } from '@acorex/core/utils';
|
|
10
10
|
import { set, get, isEqual, clone, merge, cloneDeep, isUndefined, sum } from 'lodash-es';
|
|
11
11
|
import { Subject, debounceTime, filter } from 'rxjs';
|
|
@@ -25,11 +25,9 @@ class AXPLayoutBuilderService {
|
|
|
25
25
|
this.debouncers = {};
|
|
26
26
|
this.debouncerSubscriptions = {};
|
|
27
27
|
this.widgets = new Map();
|
|
28
|
+
this.context = this.context$.asReadonly();
|
|
28
29
|
}
|
|
29
30
|
;
|
|
30
|
-
get context() {
|
|
31
|
-
return this.context$();
|
|
32
|
-
}
|
|
33
31
|
get variables() {
|
|
34
32
|
return this.variables$();
|
|
35
33
|
}
|
|
@@ -38,6 +36,13 @@ class AXPLayoutBuilderService {
|
|
|
38
36
|
}
|
|
39
37
|
initial(value) {
|
|
40
38
|
this.context$.set(value);
|
|
39
|
+
// TODO: check performance
|
|
40
|
+
this.onChanged.next({
|
|
41
|
+
oldValue: null,
|
|
42
|
+
newValue: null,
|
|
43
|
+
data: this.context(),
|
|
44
|
+
init: true
|
|
45
|
+
});
|
|
41
46
|
}
|
|
42
47
|
setVariables(...args) {
|
|
43
48
|
if (args.length == 0)
|
|
@@ -73,7 +78,7 @@ class AXPLayoutBuilderService {
|
|
|
73
78
|
this.onChanged.next({
|
|
74
79
|
oldValue: oldValue,
|
|
75
80
|
newValue: value,
|
|
76
|
-
data: this.context,
|
|
81
|
+
data: this.context(),
|
|
77
82
|
path,
|
|
78
83
|
init
|
|
79
84
|
});
|
|
@@ -85,7 +90,7 @@ class AXPLayoutBuilderService {
|
|
|
85
90
|
this.debouncers[path].next({ path, value, init });
|
|
86
91
|
}
|
|
87
92
|
getValue(path) {
|
|
88
|
-
return get(this.context, path);
|
|
93
|
+
return get(this.context(), path);
|
|
89
94
|
}
|
|
90
95
|
registerWidget(id, widget) {
|
|
91
96
|
this.widgets.set(id, widget);
|
|
@@ -176,6 +181,7 @@ const AXPWidgetsCatalog = {
|
|
|
176
181
|
gridItem: 'grid-item-layout',
|
|
177
182
|
gridRow: 'grid-row-layout',
|
|
178
183
|
widgetSelector: 'widget-selector',
|
|
184
|
+
template: 'template',
|
|
179
185
|
};
|
|
180
186
|
|
|
181
187
|
function cloneProperty(property, values) {
|
|
@@ -248,28 +254,31 @@ class AXPWidgetComponent extends AXPLayoutElement {
|
|
|
248
254
|
this.host = inject(ElementRef).nativeElement;
|
|
249
255
|
this.config = this.token.config;
|
|
250
256
|
this.name = this.token.node.name;
|
|
251
|
-
this.path = this.token.node.path
|
|
257
|
+
this.path = this.token.node.path;
|
|
252
258
|
this.defaultValue = this.token.node.defaultValue;
|
|
253
259
|
this._children = signal(this.token.node.children ?? []);
|
|
254
260
|
this.children = this._children.asReadonly();
|
|
255
261
|
this._options = signal(this.token.options ?? {});
|
|
256
262
|
this.options = this._options.asReadonly();
|
|
257
263
|
this.contextService = inject(AXPLayoutBuilderService);
|
|
258
|
-
this.rawValue = computed(() => {
|
|
259
|
-
return this._fullPath ? get(this.contextService.context, this._fullPath) : null;
|
|
260
|
-
});
|
|
261
264
|
this.onReady = new Subject();
|
|
262
265
|
this.isRendered = false;
|
|
266
|
+
this._isValueWidget = false;
|
|
267
|
+
this.isValueWidget = () => this._isValueWidget;
|
|
268
|
+
this.fullPath = signal(null);
|
|
263
269
|
this.nextRender = afterNextRender(() => {
|
|
264
270
|
//
|
|
265
271
|
if (!this.isRendered) {
|
|
266
|
-
|
|
272
|
+
this.detectFullPath();
|
|
267
273
|
//
|
|
268
274
|
this.onReady.next();
|
|
269
275
|
//
|
|
270
276
|
this.isRendered = true;
|
|
271
277
|
}
|
|
272
278
|
});
|
|
279
|
+
this.getValue = computed(() => {
|
|
280
|
+
return this.fullPath() ? get(this.contextService.context(), this.fullPath()) : null;
|
|
281
|
+
});
|
|
273
282
|
}
|
|
274
283
|
get id() {
|
|
275
284
|
return this._id;
|
|
@@ -278,21 +287,20 @@ class AXPWidgetComponent extends AXPLayoutElement {
|
|
|
278
287
|
this.initRender();
|
|
279
288
|
}
|
|
280
289
|
initRender() {
|
|
281
|
-
|
|
290
|
+
// debugger;
|
|
291
|
+
this._isValueWidget = this.config.properties?.some((c) => c.name == 'path') ?? false;
|
|
292
|
+
if (this.isValueWidget()) {
|
|
282
293
|
this.detectFullPath();
|
|
283
294
|
if (this.defaultValue != null) {
|
|
284
295
|
this.setValue(this.defaultValue, true);
|
|
285
296
|
}
|
|
286
297
|
}
|
|
287
298
|
}
|
|
288
|
-
getValue() {
|
|
289
|
-
return this.rawValue();
|
|
290
|
-
}
|
|
291
299
|
setValue(value, init = false) {
|
|
292
|
-
const oldValue = this.
|
|
300
|
+
const oldValue = this.getValue();
|
|
293
301
|
value = isUndefined(value) ? null : value;
|
|
294
|
-
if (this.
|
|
295
|
-
this.contextService.setValue(this.
|
|
302
|
+
if (this.fullPath()) {
|
|
303
|
+
this.contextService.setValue(this.fullPath(), value, init);
|
|
296
304
|
this.onValueChanged(oldValue, value);
|
|
297
305
|
}
|
|
298
306
|
}
|
|
@@ -316,14 +324,14 @@ class AXPWidgetComponent extends AXPLayoutElement {
|
|
|
316
324
|
let parent = this;
|
|
317
325
|
//
|
|
318
326
|
while (parent) {
|
|
319
|
-
const path = parent.path
|
|
327
|
+
const path = parent.path ?? (parent.isValueWidget() && parent.index == null ? parent.name : null);
|
|
320
328
|
const id = parent.name;
|
|
321
329
|
//
|
|
322
330
|
if (path) {
|
|
323
331
|
sections.push(path);
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
}
|
|
332
|
+
}
|
|
333
|
+
if (parent.index != null) {
|
|
334
|
+
sections.push(`[${parent.index}]`);
|
|
327
335
|
}
|
|
328
336
|
if (id) {
|
|
329
337
|
ids.push(id);
|
|
@@ -334,7 +342,7 @@ class AXPWidgetComponent extends AXPLayoutElement {
|
|
|
334
342
|
parent = parent.parent;
|
|
335
343
|
}
|
|
336
344
|
//
|
|
337
|
-
this.
|
|
345
|
+
this.fullPath.set(sections.reverse().join('.'));
|
|
338
346
|
this._id = this.name || this.parent ? ids.reverse().join('_') : null;
|
|
339
347
|
if (this._id) {
|
|
340
348
|
this.contextService.registerWidget(this._id, this);
|
|
@@ -686,10 +694,17 @@ class AXPWidgetContainerComponent {
|
|
|
686
694
|
constructor() {
|
|
687
695
|
this.onChanged = new EventEmitter();
|
|
688
696
|
this.context = model({});
|
|
697
|
+
this.init = false;
|
|
689
698
|
this.unsubscriber = inject(AXUnsubscriber);
|
|
690
699
|
this.builderService = inject(AXPLayoutBuilderService);
|
|
691
700
|
this.ef = effect(() => {
|
|
701
|
+
//console.log('effect', this.context(), this.init);
|
|
692
702
|
this.builderService.initial(this.context());
|
|
703
|
+
// if (!this.init) {
|
|
704
|
+
// this.init = true;
|
|
705
|
+
// } else {
|
|
706
|
+
// this.builderService.refresh();
|
|
707
|
+
// }
|
|
693
708
|
}, { allowSignalWrites: true });
|
|
694
709
|
}
|
|
695
710
|
set variables(v) {
|
|
@@ -699,10 +714,7 @@ class AXPWidgetContainerComponent {
|
|
|
699
714
|
this.builderService.setFunctions(v);
|
|
700
715
|
}
|
|
701
716
|
ngOnInit() {
|
|
702
|
-
this.builderService
|
|
703
|
-
.onChanged
|
|
704
|
-
.pipe(this.unsubscriber.takeUntilDestroy)
|
|
705
|
-
.subscribe(e => {
|
|
717
|
+
this.builderService.onChanged.pipe(this.unsubscriber.takeUntilDestroy).subscribe((e) => {
|
|
706
718
|
this.context.set(e.data);
|
|
707
719
|
this.onChanged.emit(e);
|
|
708
720
|
});
|
|
@@ -848,11 +860,13 @@ class AXPWidgetRendererDirective {
|
|
|
848
860
|
this.widgetRegistery = inject(AXPWidgetRegistryService);
|
|
849
861
|
this.unsubscriber = inject(AXUnsubscriber);
|
|
850
862
|
this.viewContainerRef = inject(ViewContainerRef);
|
|
851
|
-
this.isLoading = signal(
|
|
863
|
+
this.isLoading = signal(false);
|
|
852
864
|
this.expressionCache = new Map();
|
|
853
865
|
this.expressionEvaluators = new Map();
|
|
854
866
|
this.scope = null;
|
|
855
|
-
this.builderService.onChanged
|
|
867
|
+
this.builderService.onChanged
|
|
868
|
+
.pipe(this.unsubscriber.takeUntilDestroy)
|
|
869
|
+
.subscribe(async (e) => {
|
|
856
870
|
if ((await this.updateOptionsBasedOnContext()) > 0) {
|
|
857
871
|
this.applyOptions();
|
|
858
872
|
}
|
|
@@ -860,12 +874,32 @@ class AXPWidgetRendererDirective {
|
|
|
860
874
|
await this.updateValueBasedOnFormula();
|
|
861
875
|
}
|
|
862
876
|
});
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
877
|
+
}
|
|
878
|
+
// Detect input changes
|
|
879
|
+
async ngOnChanges(changes) {
|
|
880
|
+
if (changes['mode'] || changes['node']) {
|
|
881
|
+
// Check if either 'mode' or 'node' has changed
|
|
882
|
+
await this.rerenderComponent();
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
async rerenderComponent() {
|
|
886
|
+
// Destroy the existing component if it exists
|
|
887
|
+
if (this.componentRef) {
|
|
888
|
+
this.componentRef.destroy();
|
|
889
|
+
}
|
|
890
|
+
this.viewContainerRef.clear();
|
|
891
|
+
this.isLoading.set(false);
|
|
892
|
+
// Call loadComponent to create and render the component
|
|
893
|
+
await this.loadComponent();
|
|
894
|
+
}
|
|
895
|
+
ngOnDestroy() {
|
|
896
|
+
if (this.componentRef) {
|
|
897
|
+
this.componentRef.destroy();
|
|
898
|
+
}
|
|
867
899
|
}
|
|
868
900
|
async loadComponent() {
|
|
901
|
+
if (this.isLoading())
|
|
902
|
+
return;
|
|
869
903
|
this.isLoading.set(true);
|
|
870
904
|
this.viewContainerRef.clear();
|
|
871
905
|
const widget = this.widgetRegistery.resolve(this.node().type);
|
|
@@ -896,8 +930,9 @@ class AXPWidgetRendererDirective {
|
|
|
896
930
|
],
|
|
897
931
|
});
|
|
898
932
|
//
|
|
899
|
-
|
|
900
|
-
this.
|
|
933
|
+
const com = await widget?.components[this.mode()]?.component();
|
|
934
|
+
this.componentRef = this.viewContainerRef.createComponent(com, { injector: token });
|
|
935
|
+
this.instance = this.componentRef.instance;
|
|
901
936
|
this.instance.parent = this.parentNode();
|
|
902
937
|
this.instance.index = this.index();
|
|
903
938
|
this.instance.mode = this.mode();
|
|
@@ -1094,7 +1129,7 @@ class AXPWidgetRendererDirective {
|
|
|
1094
1129
|
{
|
|
1095
1130
|
provide: AXUnsubscriber,
|
|
1096
1131
|
},
|
|
1097
|
-
], ngImport: i0 }); }
|
|
1132
|
+
], usesOnChanges: true, ngImport: i0 }); }
|
|
1098
1133
|
}
|
|
1099
1134
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPWidgetRendererDirective, decorators: [{
|
|
1100
1135
|
type: Directive,
|