@acorex/platform 18.1.6 → 18.2.1
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/index.d.ts +3 -3
- package/common/lib/app/application.types.d.ts +10 -2
- package/common/lib/data/data.types.d.ts +1 -1
- package/common/lib/data/entity-storage-service.d.ts +1 -1
- package/common/lib/layout/component-slot/component-slot-loader.service.d.ts +2 -2
- package/common/lib/layout/component-slot/component-slot.types.d.ts +2 -1
- package/common/lib/layout/menu/menu.provider.d.ts +1 -1
- package/esm2022/common/index.mjs +4 -4
- package/esm2022/common/lib/app/application.types.mjs +13 -1
- package/esm2022/common/lib/common.module.mjs +14 -16
- package/esm2022/common/lib/data/data.types.mjs +1 -1
- package/esm2022/common/lib/data/dexie-storage.service.mjs +6 -4
- package/esm2022/common/lib/data/entity-storage-service.mjs +2 -2
- package/esm2022/common/lib/layout/component-slot/component-slot-loader.service.mjs +6 -5
- package/esm2022/common/lib/layout/component-slot/component-slot.types.mjs +1 -1
- package/esm2022/common/lib/layout/menu/menu.provider.mjs +1 -5
- package/esm2022/layout/builder/lib/builder/builder.service.mjs +19 -23
- package/esm2022/layout/builder/lib/builder/datasource-provider.service.mjs +27 -0
- package/esm2022/layout/builder/lib/builder/index.mjs +2 -1
- package/esm2022/layout/builder/lib/builder/widget-container.component.mjs +1 -8
- package/esm2022/layout/builder/lib/builder/widget-renderer.component.directive.mjs +34 -24
- package/esm2022/layout/builder/lib/builder/widget.types.mjs +52 -3
- package/esm2022/layout/designer/lib/designer/components/board/board.component.mjs +14 -22
- package/esm2022/layout/designer/lib/designer/components/drawers/data-sources/data-sources.component.mjs +5 -4
- package/esm2022/layout/designer/lib/designer/designer.component.mjs +4 -9
- package/esm2022/layout/designer/lib/designer/shared/designer-connector.service.mjs +2 -1
- package/esm2022/layout/designer/lib/designer/shared/designer.service.mjs +1 -3
- package/esm2022/layout/designer/lib/designer/shared/designer.types.mjs +1 -1
- package/esm2022/layout/designer/lib/designer/shared/widget-designer-renderer.directive.mjs +13 -10
- package/esm2022/layout/designer/lib/preview/preview-viewer.component.mjs +12 -3
- package/esm2022/layout/designer/lib/preview/preview.component.mjs +3 -2
- package/esm2022/layout/designer/lib/property-viewer/widget-property-viewer.component.mjs +5 -4
- package/esm2022/layout/entity/lib/entity-detail-list.viewmodel.mjs +3 -4
- package/esm2022/layout/entity/lib/entity-master-create.viewmodel.mjs +3 -3
- package/esm2022/layout/entity/lib/entity-master-list.viewmodel.mjs +5 -6
- package/esm2022/layout/entity/lib/entity-master-single.viewmodel.mjs +7 -7
- package/esm2022/layout/entity/lib/entity.config.mjs +6 -6
- package/esm2022/layout/entity/lib/entity.service.mjs +18 -0
- package/esm2022/layout/entity/lib/index.mjs +2 -1
- package/esm2022/layout/entity/lib/widgets/lookup-widget/lookup-widget-selector.viewmodel.mjs +21 -19
- package/esm2022/layout/entity/lib/workflows/modify-section.workflow.mjs +2 -2
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-detail-list-view/entity-detail-list-view.component.mjs +4 -4
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-create-view/entity-master-create-view.component.mjs +4 -4
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-list-view/entity-master-list-view.component.mjs +9 -8
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-list-view/list-view-option-columns/list-view-option-columns.component.mjs +3 -3
- 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 +7 -6
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-single-view/overview/entity-single-overview.component.mjs +12 -10
- package/esm2022/themes/default/lib/layouts/root-layout/components/menu/root-menu.component.mjs +4 -3
- package/esm2022/themes/default/lib/layouts/root-layout/root-layout.module.mjs +10 -6
- package/esm2022/themes/shared/index.mjs +1 -5
- package/esm2022/themes/shared/lib/components/theme-slot.component.mjs +13 -11
- package/esm2022/themes/shared/lib/shared.module.mjs +25 -4
- package/esm2022/widgets/lib/properties/editors.props.mjs +4 -2
- package/esm2022/widgets/lib/properties/general.props.mjs +2 -2
- package/esm2022/widgets/lib/widgets/editors/color/color-box-widget-view.component.mjs +26 -5
- package/esm2022/widgets/lib/widgets/editors/date-time/date-time-box-widget-column.component.mjs +27 -16
- package/esm2022/widgets/lib/widgets/editors/date-time/date-time-box-widget-edit.component.mjs +10 -2
- package/esm2022/widgets/lib/widgets/editors/date-time/date-time-box-widget-view.component.mjs +22 -7
- package/esm2022/widgets/lib/widgets/editors/rich-text/rich-text-widget-edit.component.mjs +8 -15
- package/esm2022/widgets/lib/widgets/editors/select/index.mjs +3 -3
- package/esm2022/widgets/lib/widgets/editors/select/select-box-widget-edit.component.mjs +9 -19
- package/esm2022/widgets/lib/widgets/editors/select/select-box-widget-view.component.mjs +4 -2
- package/esm2022/widgets/lib/widgets/editors/select/select-box-widget.config.mjs +3 -2
- package/esm2022/widgets/lib/widgets/editors/selection-list/selection-list-widget-designer.component.mjs +32 -15
- package/esm2022/widgets/lib/widgets/editors/selection-list/selection-list-widget-edit.component.mjs +34 -14
- package/esm2022/widgets/lib/widgets/editors/selection-list/selection-list-widget.config.mjs +4 -2
- package/esm2022/widgets/lib/widgets/layout/template/template-widget-view.component.mjs +7 -21
- package/fesm2022/{acorex-platform-common-avatar-widget-edit.component-WAlG5E_9.mjs → acorex-platform-common-avatar-widget-edit.component-BYEjzXpW.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-avatar-widget-edit.component-WAlG5E_9.mjs.map → acorex-platform-common-avatar-widget-edit.component-BYEjzXpW.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-avatar-widget-view.component-DRyB3UWf.mjs → acorex-platform-common-avatar-widget-view.component-CfHELBLm.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-avatar-widget-view.component-DRyB3UWf.mjs.map → acorex-platform-common-avatar-widget-view.component-CfHELBLm.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-boolean-widget-filter.component-DY4oTjC-.mjs → acorex-platform-common-boolean-widget-filter.component-DRDiIxsn.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-boolean-widget-filter.component-DY4oTjC-.mjs.map → acorex-platform-common-boolean-widget-filter.component-DRDiIxsn.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-checkbox-widget-column.component-NSXcrUwU.mjs → acorex-platform-common-checkbox-widget-column.component-Bn0tnHyT.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-checkbox-widget-column.component-NSXcrUwU.mjs.map → acorex-platform-common-checkbox-widget-column.component-Bn0tnHyT.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-checkbox-widget-edit.component-BU7qV5Cm.mjs → acorex-platform-common-checkbox-widget-edit.component-BuS0Pg-j.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-checkbox-widget-edit.component-BU7qV5Cm.mjs.map → acorex-platform-common-checkbox-widget-edit.component-BuS0Pg-j.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-checkbox-widget-view.component-2Du2IzDS.mjs → acorex-platform-common-checkbox-widget-view.component-D7kmxXjj.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-checkbox-widget-view.component-2Du2IzDS.mjs.map → acorex-platform-common-checkbox-widget-view.component-D7kmxXjj.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-dateTime-widget-column.component-Dd7fgwu3.mjs → acorex-platform-common-dateTime-widget-column.component-CtS98tbi.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-dateTime-widget-column.component-Dd7fgwu3.mjs.map → acorex-platform-common-dateTime-widget-column.component-CtS98tbi.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-dateTime-widget-edit.component-B4AelVJp.mjs → acorex-platform-common-dateTime-widget-edit.component-Dm4QofDq.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-dateTime-widget-edit.component-B4AelVJp.mjs.map → acorex-platform-common-dateTime-widget-edit.component-Dm4QofDq.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-dateTime-widget-filter.component-Ytm-TwOP.mjs → acorex-platform-common-dateTime-widget-filter.component-DDny36SE.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-dateTime-widget-filter.component-Ytm-TwOP.mjs.map → acorex-platform-common-dateTime-widget-filter.component-DDny36SE.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-dateTime-widget-view.component-BKdqOPkb.mjs → acorex-platform-common-dateTime-widget-view.component-lzf0fwxr.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-dateTime-widget-view.component-BKdqOPkb.mjs.map → acorex-platform-common-dateTime-widget-view.component-lzf0fwxr.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-email-widget-column.component-CDKqwlPD.mjs → acorex-platform-common-email-widget-column.component-Cy_Kj9po.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-email-widget-column.component-CDKqwlPD.mjs.map → acorex-platform-common-email-widget-column.component-Cy_Kj9po.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-email-widget-edit.component-BT2rJjaW.mjs → acorex-platform-common-email-widget-edit.component-DTxCX3ok.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-email-widget-edit.component-BT2rJjaW.mjs.map → acorex-platform-common-email-widget-edit.component-DTxCX3ok.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-email-widget-view.component-DbhRWpB1.mjs → acorex-platform-common-email-widget-view.component-CvEHLvcT.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-email-widget-view.component-DbhRWpB1.mjs.map → acorex-platform-common-email-widget-view.component-CvEHLvcT.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-file-widget-column.component-8U76QgEQ.mjs → acorex-platform-common-file-widget-column.component-GtbElxmS.mjs} +2 -2
- package/fesm2022/{acorex-platform-common-file-widget-column.component-8U76QgEQ.mjs.map → acorex-platform-common-file-widget-column.component-GtbElxmS.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-file-widget-edit.component-OFmiYz_5.mjs → acorex-platform-common-file-widget-edit.component-3fR5jRFv.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-file-widget-edit.component-OFmiYz_5.mjs.map → acorex-platform-common-file-widget-edit.component-3fR5jRFv.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-file-widget-filter.component-ZLnpXMXK.mjs → acorex-platform-common-file-widget-filter.component-B7etTIuq.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-file-widget-filter.component-ZLnpXMXK.mjs.map → acorex-platform-common-file-widget-filter.component-B7etTIuq.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-file-widget-view.component-BcrM4XrO.mjs → acorex-platform-common-file-widget-view.component-RsQQjlL7.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-file-widget-view.component-BcrM4XrO.mjs.map → acorex-platform-common-file-widget-view.component-RsQQjlL7.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-gallery-widget-edit.component-pBBjrjDP.mjs → acorex-platform-common-gallery-widget-edit.component-CixJEDUT.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-gallery-widget-edit.component-pBBjrjDP.mjs.map → acorex-platform-common-gallery-widget-edit.component-CixJEDUT.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-gallery-widget-filter.component-Cp7t9ovC.mjs → acorex-platform-common-gallery-widget-filter.component-1wzY6U5s.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-gallery-widget-filter.component-Cp7t9ovC.mjs.map → acorex-platform-common-gallery-widget-filter.component-1wzY6U5s.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-gallery-widget-view.component-CPS-h3cq.mjs → acorex-platform-common-gallery-widget-view.component-YaLJU3Cv.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-gallery-widget-view.component-CPS-h3cq.mjs.map → acorex-platform-common-gallery-widget-view.component-YaLJU3Cv.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-largetext-widget-edit.component-DA6r3rVA.mjs → acorex-platform-common-largetext-widget-edit.component-BeiJZnEv.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-largetext-widget-edit.component-DA6r3rVA.mjs.map → acorex-platform-common-largetext-widget-edit.component-BeiJZnEv.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-lookup-widget-column.component-Cxv1yZvE.mjs → acorex-platform-common-lookup-widget-column.component-C5DZ-cez.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-lookup-widget-column.component-Cxv1yZvE.mjs.map → acorex-platform-common-lookup-widget-column.component-C5DZ-cez.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-lookup-widget-edit.component-CUtGoAGX.mjs → acorex-platform-common-lookup-widget-edit.component-uopyJIC1.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-lookup-widget-edit.component-CUtGoAGX.mjs.map → acorex-platform-common-lookup-widget-edit.component-uopyJIC1.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-lookup-widget-filter.component-DJZqB3vj.mjs → acorex-platform-common-lookup-widget-filter.component-D1lrIkz4.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-lookup-widget-filter.component-DJZqB3vj.mjs.map → acorex-platform-common-lookup-widget-filter.component-D1lrIkz4.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-lookup-widget-view.component-CghJK1C4.mjs → acorex-platform-common-lookup-widget-view.component-DTNcGNir.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-lookup-widget-view.component-CghJK1C4.mjs.map → acorex-platform-common-lookup-widget-view.component-DTNcGNir.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-map-widget-edit.component-oSb3kVMc.mjs → acorex-platform-common-map-widget-edit.component-h4SRiV6_.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-map-widget-edit.component-oSb3kVMc.mjs.map → acorex-platform-common-map-widget-edit.component-h4SRiV6_.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-map-widget-view.component-BrYwr914.mjs → acorex-platform-common-map-widget-view.component-Deos8gVy.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-map-widget-view.component-BrYwr914.mjs.map → acorex-platform-common-map-widget-view.component-Deos8gVy.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-messenger-widget-column.component-DIJAffxy.mjs → acorex-platform-common-messenger-widget-column.component-DN8dFLZD.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-messenger-widget-column.component-DIJAffxy.mjs.map → acorex-platform-common-messenger-widget-column.component-DN8dFLZD.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-messenger-widget-edit.component-DpGvbM4a.mjs → acorex-platform-common-messenger-widget-edit.component-m_zxHCw5.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-messenger-widget-edit.component-DpGvbM4a.mjs.map → acorex-platform-common-messenger-widget-edit.component-m_zxHCw5.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-messenger-widget-view.component-CeuDEI-j.mjs → acorex-platform-common-messenger-widget-view.component-DA9MiNb9.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-messenger-widget-view.component-CeuDEI-j.mjs.map → acorex-platform-common-messenger-widget-view.component-DA9MiNb9.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-number-widget-edit.component-B1YGwr60.mjs → acorex-platform-common-number-widget-edit.component-B0if4vR4.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-number-widget-edit.component-B1YGwr60.mjs.map → acorex-platform-common-number-widget-edit.component-B0if4vR4.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-number-widget-filter.component-BmmgPy1w.mjs → acorex-platform-common-number-widget-filter.component-BgTJbR2u.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-number-widget-filter.component-BmmgPy1w.mjs.map → acorex-platform-common-number-widget-filter.component-BgTJbR2u.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-number-widget-view.component-bqylVHOz.mjs → acorex-platform-common-number-widget-view.component-Du1oQYBH.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-number-widget-view.component-bqylVHOz.mjs.map → acorex-platform-common-number-widget-view.component-Du1oQYBH.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-password-widget-column.component-DVdZh7s4.mjs → acorex-platform-common-password-widget-column.component-CEWtRX1S.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-password-widget-column.component-DVdZh7s4.mjs.map → acorex-platform-common-password-widget-column.component-CEWtRX1S.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-password-widget-edit.component-OjHwMT5d.mjs → acorex-platform-common-password-widget-edit.component-B-_m6f_C.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-password-widget-edit.component-OjHwMT5d.mjs.map → acorex-platform-common-password-widget-edit.component-B-_m6f_C.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-password-widget-view.component-BeSk1OgU.mjs → acorex-platform-common-password-widget-view.component-BVW-Zak-.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-password-widget-view.component-BeSk1OgU.mjs.map → acorex-platform-common-password-widget-view.component-BVW-Zak-.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-phone-widget-column.component-DOfzGKBi.mjs → acorex-platform-common-phone-widget-column.component-DGaGGltV.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-phone-widget-column.component-DOfzGKBi.mjs.map → acorex-platform-common-phone-widget-column.component-DGaGGltV.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-phone-widget-edit.component-BJ-iEyLP.mjs → acorex-platform-common-phone-widget-edit.component-BNfAQ_4j.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-phone-widget-edit.component-BJ-iEyLP.mjs.map → acorex-platform-common-phone-widget-edit.component-BNfAQ_4j.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-phone-widget-view.component-DW4AHCE6.mjs → acorex-platform-common-phone-widget-view.component-xGygt5Y9.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-phone-widget-view.component-DW4AHCE6.mjs.map → acorex-platform-common-phone-widget-view.component-xGygt5Y9.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-rich-text-widget-column.component-2zZBG6Ze.mjs → acorex-platform-common-rich-text-widget-column.component-BJYxnZm2.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-rich-text-widget-column.component-2zZBG6Ze.mjs.map → acorex-platform-common-rich-text-widget-column.component-BJYxnZm2.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-rich-text-widget-edit.component-BJveJgHZ.mjs → acorex-platform-common-rich-text-widget-edit.component-Dvv8JnXl.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-rich-text-widget-edit.component-BJveJgHZ.mjs.map → acorex-platform-common-rich-text-widget-edit.component-Dvv8JnXl.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-rich-text-widget-view.component-CiViWpBX.mjs → acorex-platform-common-rich-text-widget-view.component-B77Y5luo.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-rich-text-widget-view.component-CiViWpBX.mjs.map → acorex-platform-common-rich-text-widget-view.component-B77Y5luo.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-selection-list-widget-column.component-D9lsVFgo.mjs → acorex-platform-common-selection-list-widget-column.component-1zPVFgFG.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-selection-list-widget-column.component-D9lsVFgo.mjs.map → acorex-platform-common-selection-list-widget-column.component-1zPVFgFG.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-selection-list-widget-edit.component-ocEwyUP7.mjs → acorex-platform-common-selection-list-widget-edit.component-Tdkf-0cn.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-selection-list-widget-edit.component-ocEwyUP7.mjs.map → acorex-platform-common-selection-list-widget-edit.component-Tdkf-0cn.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-selection-list-widget-filter.component-CS0f_jCx.mjs → acorex-platform-common-selection-list-widget-filter.component-y2aFk-A6.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-selection-list-widget-filter.component-CS0f_jCx.mjs.map → acorex-platform-common-selection-list-widget-filter.component-y2aFk-A6.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-selection-list-widget-view.component-C65lbpo_.mjs → acorex-platform-common-selection-list-widget-view.component-DLc1MHex.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-selection-list-widget-view.component-C65lbpo_.mjs.map → acorex-platform-common-selection-list-widget-view.component-DLc1MHex.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-signature-pad-widget-edit.component-DbfQSGxm.mjs → acorex-platform-common-signature-pad-widget-edit.component-qUuwwYlj.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-signature-pad-widget-edit.component-DbfQSGxm.mjs.map → acorex-platform-common-signature-pad-widget-edit.component-qUuwwYlj.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-signature-pad-widget-view.component-CDY3JdP-.mjs → acorex-platform-common-signature-pad-widget-view.component-D5XVZ88b.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-signature-pad-widget-view.component-CDY3JdP-.mjs.map → acorex-platform-common-signature-pad-widget-view.component-D5XVZ88b.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-string-widget-filter.component-BW2ehdOx.mjs → acorex-platform-common-string-widget-filter.component-B9h7CnEz.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-string-widget-filter.component-BW2ehdOx.mjs.map → acorex-platform-common-string-widget-filter.component-B9h7CnEz.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-text-widget-column.component-bhx0QWAX.mjs → acorex-platform-common-text-widget-column.component-LFKeHZbS.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-text-widget-column.component-bhx0QWAX.mjs.map → acorex-platform-common-text-widget-column.component-LFKeHZbS.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-text-widget-edit.component-Cb1k59hs.mjs → acorex-platform-common-text-widget-edit.component-BiyTKmvV.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-text-widget-edit.component-Cb1k59hs.mjs.map → acorex-platform-common-text-widget-edit.component-BiyTKmvV.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-text-widget-view.component-CGwY9c2O.mjs → acorex-platform-common-text-widget-view.component-BDxpsxE6.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-text-widget-view.component-CGwY9c2O.mjs.map → acorex-platform-common-text-widget-view.component-BDxpsxE6.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-toggle-widget-column.component-BxAwa7jw.mjs → acorex-platform-common-toggle-widget-column.component-BnmR9hFM.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-toggle-widget-column.component-BxAwa7jw.mjs.map → acorex-platform-common-toggle-widget-column.component-BnmR9hFM.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-toggle-widget-edit.component-CT2fRAKm.mjs → acorex-platform-common-toggle-widget-edit.component-Cz7LayX-.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-toggle-widget-edit.component-CT2fRAKm.mjs.map → acorex-platform-common-toggle-widget-edit.component-Cz7LayX-.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-toggle-widget-view.component-9tquFHhE.mjs → acorex-platform-common-toggle-widget-view.component-Cq2-5QUg.mjs} +3 -3
- package/fesm2022/{acorex-platform-common-toggle-widget-view.component-9tquFHhE.mjs.map → acorex-platform-common-toggle-widget-view.component-Cq2-5QUg.mjs.map} +1 -1
- package/fesm2022/acorex-platform-common.mjs +520 -514
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-builder.mjs +125 -53
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-designer.mjs +58 -55
- package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +50 -36
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-i6vjEhti.mjs → acorex-platform-themes-default-entity-master-create-view.component-dByV3T8-.mjs} +7 -7
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-dByV3T8-.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-mzb-FV9E.mjs +299 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-mzb-FV9E.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-CdwlY0Fa.mjs +88 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-CdwlY0Fa.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-ItkFB3QF.mjs +150 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-ItkFB3QF.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default.mjs +21 -18
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
- package/fesm2022/acorex-platform-themes-shared.mjs +42 -491
- package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -1
- package/fesm2022/{acorex-platform-widgets-template-widget-edit.component-gvAh-gH1.mjs → acorex-platform-widgets-template-widget-edit.component-BWc0_EA0.mjs} +2 -2
- package/fesm2022/{acorex-platform-widgets-template-widget-edit.component-gvAh-gH1.mjs.map → acorex-platform-widgets-template-widget-edit.component-BWc0_EA0.mjs.map} +1 -1
- package/fesm2022/acorex-platform-widgets.mjs +257 -194
- package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
- package/layout/builder/lib/builder/builder.service.d.ts +2 -0
- package/layout/builder/lib/builder/datasource-provider.service.d.ts +24 -0
- package/layout/builder/lib/builder/index.d.ts +1 -0
- package/layout/builder/lib/builder/widget-container.component.d.ts +0 -1
- package/layout/builder/lib/builder/widget-renderer.component.directive.d.ts +1 -1
- package/layout/builder/lib/builder/widget.types.d.ts +13 -9
- package/layout/designer/lib/designer/components/board/board.component.d.ts +0 -1
- package/layout/designer/lib/designer/components/drawers/data-sources/data-sources.component.d.ts +6 -4
- package/layout/designer/lib/designer/designer.component.d.ts +0 -1
- package/layout/designer/lib/designer/shared/designer-connector.service.d.ts +1 -4
- package/layout/designer/lib/designer/shared/designer.service.d.ts +0 -2
- package/layout/designer/lib/designer/shared/designer.types.d.ts +0 -4
- package/layout/designer/lib/preview/preview-viewer.component.d.ts +8 -1
- package/layout/designer/lib/property-viewer/widget-property-viewer.component.d.ts +6 -2
- package/layout/entity/lib/entity-master-create.viewmodel.d.ts +1 -1
- package/layout/entity/lib/entity-master-single.viewmodel.d.ts +1 -1
- package/layout/entity/lib/entity-master-update.viewmodel.d.ts +1 -1
- package/layout/entity/lib/entity.config.d.ts +1 -1
- package/layout/entity/lib/entity.service.d.ts +7 -0
- package/layout/entity/lib/entity.viewmodel.d.ts +1 -1
- package/layout/entity/lib/index.d.ts +1 -0
- package/layout/entity/lib/widgets/lookup-widget/lookup-widget-selector.viewmodel.d.ts +2 -2
- package/package.json +17 -17
- package/themes/default/lib/layouts/root-layout/root-layout.module.d.ts +14 -13
- package/themes/shared/index.d.ts +0 -4
- package/themes/shared/lib/shared.module.d.ts +2 -1
- package/widgets/lib/widgets/editors/color/color-box-widget-view.component.d.ts +3 -0
- package/widgets/lib/widgets/editors/date-time/date-time-box-widget-column.component.d.ts +2 -4
- package/widgets/lib/widgets/editors/date-time/date-time-box-widget-view.component.d.ts +1 -0
- package/widgets/lib/widgets/editors/rich-text/rich-text-widget-edit.component.d.ts +3 -4
- package/widgets/lib/widgets/editors/select/index.d.ts +2 -2
- package/widgets/lib/widgets/editors/select/select-box-widget-edit.component.d.ts +3 -6
- package/widgets/lib/widgets/editors/selection-list/selection-list-widget-designer.component.d.ts +5 -6
- package/widgets/lib/widgets/editors/selection-list/selection-list-widget-edit.component.d.ts +4 -5
- package/esm2022/themes/shared/lib/comments/comment-list-view.component.mjs +0 -429
- package/esm2022/themes/shared/lib/comments/comment-lookup-popup.component.mjs +0 -56
- package/esm2022/themes/shared/lib/comments/comments.service.mjs +0 -4
- package/esm2022/themes/shared/lib/comments/comments.type.mjs +0 -2
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-i6vjEhti.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-BGKWaCth.mjs +0 -298
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-BGKWaCth.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-B3phYOIw.mjs +0 -88
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-B3phYOIw.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-DyZHE0o-.mjs +0 -148
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-DyZHE0o-.mjs.map +0 -1
- package/themes/shared/lib/comments/comment-list-view.component.d.ts +0 -66
- package/themes/shared/lib/comments/comment-lookup-popup.component.d.ts +0 -10
- package/themes/shared/lib/comments/comments.service.d.ts +0 -5
- package/themes/shared/lib/comments/comments.type.d.ts +0 -74
|
@@ -1,38 +1,38 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Injectable, APP_INITIALIZER, inject, RendererFactory2, InjectionToken, Injector, ErrorHandler, Directive, Input, EventEmitter, Output, runInInjectionContext, NgModule, Optional, Inject, Component, ViewEncapsulation, ChangeDetectorRef, ChangeDetectionStrategy, ViewChild } from '@angular/core';
|
|
3
|
+
import { kebabCase, sortBy, cloneDeep, merge, assign, isEqual, get, set } from 'lodash-es';
|
|
1
4
|
import { AXPopupModule } from '@acorex/components/popup';
|
|
2
5
|
import { AXToastService, AXToastModule } from '@acorex/components/toast';
|
|
3
6
|
import { AXDateTimeModule } from '@acorex/core/date-time';
|
|
4
7
|
import * as i6 from '@acorex/platform/workflow';
|
|
5
8
|
import { createWorkFlowEvent, AXPWorkflowAction, AXPWorkflowError, AXPWorkflowModule } from '@acorex/platform/workflow';
|
|
6
|
-
import * as
|
|
7
|
-
import {
|
|
8
|
-
import * as
|
|
9
|
-
import { Router, RouterModule, NavigationEnd } from '@angular/router';
|
|
10
|
-
import * as i1$1 from '@ngrx/effects';
|
|
9
|
+
import * as i1 from '@angular/router';
|
|
10
|
+
import { NavigationEnd, Router, RouterModule } from '@angular/router';
|
|
11
|
+
import * as i1$2 from '@ngrx/effects';
|
|
11
12
|
import { createEffect, ofType, Actions, EffectsModule } from '@ngrx/effects';
|
|
12
13
|
import * as i5$1 from '@ngrx/store';
|
|
13
14
|
import { createAction, props, Store, createFeature, createReducer, on, createSelector, StoreModule } from '@ngrx/store';
|
|
14
15
|
import { applySortArray, applyFilterArray } from '@acorex/platform/core';
|
|
15
16
|
import Dexie from 'dexie';
|
|
17
|
+
import { filter } from 'rxjs/operators';
|
|
16
18
|
import { BehaviorSubject, timer, of, Subject, switchMap, fromEvent, debounceTime, map } from 'rxjs';
|
|
17
19
|
import * as i5 from '@acorex/components/decorators';
|
|
18
20
|
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
19
21
|
import * as i2 from '@acorex/components/image';
|
|
20
22
|
import { AXImageModule } from '@acorex/components/image';
|
|
21
|
-
import * as i1 from '@angular/common';
|
|
23
|
+
import * as i1$1 from '@angular/common';
|
|
22
24
|
import { CommonModule } from '@angular/common';
|
|
23
25
|
import { signalStore, withState, withMethods, patchState, withHooks } from '@ngrx/signals';
|
|
24
|
-
import { cloneDeep, merge, assign, isEqual, get, set } from 'lodash-es';
|
|
25
26
|
import { AXPlatform } from '@acorex/core/platform';
|
|
26
27
|
import { AXDialogService } from '@acorex/components/dialog';
|
|
27
28
|
import { AXTranslationService } from '@acorex/core/translation';
|
|
28
|
-
import * as i2$
|
|
29
|
+
import * as i2$1 from '@acorex/components/skeleton';
|
|
29
30
|
import { AXSkeletonModule } from '@acorex/components/skeleton';
|
|
30
|
-
import * as i1$
|
|
31
|
+
import * as i1$3 from '@angular/cdk/portal';
|
|
31
32
|
import { ComponentPortal, PortalModule } from '@angular/cdk/portal';
|
|
32
33
|
import { AXDataTableColumnComponent } from '@acorex/components/data-table';
|
|
33
34
|
import { AXUnsubscriber } from '@acorex/core/utils';
|
|
34
35
|
import { AXFormatService } from '@acorex/core/format';
|
|
35
|
-
import { filter } from 'rxjs/operators';
|
|
36
36
|
|
|
37
37
|
class AXPAppStartUpService {
|
|
38
38
|
constructor() {
|
|
@@ -72,64 +72,446 @@ const AXPAppStartUpProvider = {
|
|
|
72
72
|
multi: true,
|
|
73
73
|
};
|
|
74
74
|
|
|
75
|
+
var AXPRelationshipKind;
|
|
76
|
+
(function (AXPRelationshipKind) {
|
|
77
|
+
AXPRelationshipKind[AXPRelationshipKind["Association"] = 0] = "Association";
|
|
78
|
+
AXPRelationshipKind[AXPRelationshipKind["Composition"] = 1] = "Composition";
|
|
79
|
+
AXPRelationshipKind[AXPRelationshipKind["Aggregation"] = 2] = "Aggregation";
|
|
80
|
+
})(AXPRelationshipKind || (AXPRelationshipKind = {}));
|
|
81
|
+
var AXPRelationshipCardinality;
|
|
82
|
+
(function (AXPRelationshipCardinality) {
|
|
83
|
+
AXPRelationshipCardinality[AXPRelationshipCardinality["OneToOne"] = 0] = "OneToOne";
|
|
84
|
+
AXPRelationshipCardinality[AXPRelationshipCardinality["OneToMany"] = 1] = "OneToMany";
|
|
85
|
+
AXPRelationshipCardinality[AXPRelationshipCardinality["ManyToMany"] = 2] = "ManyToMany";
|
|
86
|
+
})(AXPRelationshipCardinality || (AXPRelationshipCardinality = {}));
|
|
87
|
+
var AXPEntityCommandScope;
|
|
88
|
+
(function (AXPEntityCommandScope) {
|
|
89
|
+
AXPEntityCommandScope["TypeLevel"] = "typeLevel";
|
|
90
|
+
AXPEntityCommandScope["Selected"] = "selected";
|
|
91
|
+
AXPEntityCommandScope["Individual"] = "individual";
|
|
92
|
+
AXPEntityCommandScope["Section"] = "section";
|
|
93
|
+
})(AXPEntityCommandScope || (AXPEntityCommandScope = {}));
|
|
94
|
+
var AXPEntityQueryType;
|
|
95
|
+
(function (AXPEntityQueryType) {
|
|
96
|
+
AXPEntityQueryType["Single"] = "single";
|
|
97
|
+
AXPEntityQueryType["List"] = "list";
|
|
98
|
+
})(AXPEntityQueryType || (AXPEntityQueryType = {}));
|
|
99
|
+
function getEntityInfo(entity) {
|
|
100
|
+
return {
|
|
101
|
+
source: `${entity.module}.${entity.name}`,
|
|
102
|
+
module: {
|
|
103
|
+
route: kebabCase(entity.module)
|
|
104
|
+
},
|
|
105
|
+
entity: {
|
|
106
|
+
route: kebabCase(entity.name)
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
function resolveActionLook(tr) {
|
|
111
|
+
switch (tr.type) {
|
|
112
|
+
case 'create':
|
|
113
|
+
return { color: 'primary', icon: 'fa-solid fa-add' };
|
|
114
|
+
case 'view':
|
|
115
|
+
return { color: 'primary', icon: 'fa-solid fa-eye' };
|
|
116
|
+
case 'info':
|
|
117
|
+
return { color: 'primary', icon: 'fa-solid fa-info' };
|
|
118
|
+
case 'delete':
|
|
119
|
+
return { color: 'danger', icon: 'fa-solid fa-trash' };
|
|
120
|
+
case 'print':
|
|
121
|
+
return { color: 'secondary', icon: 'fa-solid fa-print' };
|
|
122
|
+
case 'confirm':
|
|
123
|
+
return { color: 'success', icon: 'fa-solid fa-check' };
|
|
124
|
+
default:
|
|
125
|
+
return { color: 'primary', icon: '' };
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
const EQ_OPER = { name: 'equal', title: 'Equal', hasValue: true };
|
|
130
|
+
const NOT_EQ_OPER = { name: 'notEqual', title: 'Not Equal', hasValue: true };
|
|
131
|
+
const GT_OPER = { name: 'greaterThan', title: 'Greater Than', hasValue: true };
|
|
132
|
+
const LT_OPER = { name: 'lessThan', title: 'Less Than', hasValue: true };
|
|
133
|
+
const GTE_OPER = {
|
|
134
|
+
name: 'greaterThanOrEqual',
|
|
135
|
+
title: 'Greater Than or Equal',
|
|
136
|
+
hasValue: true,
|
|
137
|
+
};
|
|
138
|
+
const LTE_OPER = { name: 'lessThanOrEqual', title: 'Less Than or Equal', hasValue: true };
|
|
139
|
+
const CONTAINS_OPER = { name: 'contains', title: 'Contains', hasValue: true };
|
|
140
|
+
const NOT_CONTAINS_OPER = { name: 'notContains', title: 'Does Not Contain', hasValue: true };
|
|
141
|
+
const STARTS_WITH_OPER = { name: 'startsWith', title: 'Starts With', hasValue: true };
|
|
142
|
+
const ENDS_WITH_OPER = { name: 'endsWith', title: 'Ends With', hasValue: true };
|
|
143
|
+
const IS_EMPTY_OPER = { name: 'isEmpty', title: 'Is Empty', hasValue: false };
|
|
144
|
+
const IS_NOT_EMPTY_OPER = { name: 'isNotEmpty', title: 'Is Not Empty', hasValue: false };
|
|
145
|
+
const BETWEEN_OPER = { name: 'between', title: 'Between', hasValue: true };
|
|
146
|
+
const STRING_OPERATORS = [
|
|
147
|
+
EQ_OPER,
|
|
148
|
+
NOT_EQ_OPER,
|
|
149
|
+
CONTAINS_OPER,
|
|
150
|
+
NOT_CONTAINS_OPER,
|
|
151
|
+
STARTS_WITH_OPER,
|
|
152
|
+
ENDS_WITH_OPER,
|
|
153
|
+
IS_EMPTY_OPER,
|
|
154
|
+
IS_NOT_EMPTY_OPER,
|
|
155
|
+
];
|
|
156
|
+
const NUMBER_OPERATORS = [
|
|
157
|
+
EQ_OPER,
|
|
158
|
+
NOT_EQ_OPER,
|
|
159
|
+
BETWEEN_OPER,
|
|
160
|
+
GT_OPER,
|
|
161
|
+
GTE_OPER,
|
|
162
|
+
LT_OPER,
|
|
163
|
+
LTE_OPER,
|
|
164
|
+
IS_EMPTY_OPER,
|
|
165
|
+
IS_NOT_EMPTY_OPER,
|
|
166
|
+
];
|
|
167
|
+
const BOOLEAN_OPERATORS = [EQ_OPER];
|
|
168
|
+
const DATE_OPERATORS = [
|
|
169
|
+
EQ_OPER,
|
|
170
|
+
NOT_EQ_OPER,
|
|
171
|
+
GT_OPER,
|
|
172
|
+
GTE_OPER,
|
|
173
|
+
LT_OPER,
|
|
174
|
+
LTE_OPER,
|
|
175
|
+
IS_EMPTY_OPER,
|
|
176
|
+
IS_NOT_EMPTY_OPER,
|
|
177
|
+
];
|
|
178
|
+
|
|
75
179
|
class AXPDataProvider {
|
|
76
180
|
}
|
|
77
181
|
|
|
78
|
-
class
|
|
182
|
+
class AXPClipBoardService {
|
|
79
183
|
constructor() {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
184
|
+
this.toast = inject(AXToastService);
|
|
185
|
+
}
|
|
186
|
+
copy(title, value) {
|
|
187
|
+
const copyText = document.createElement('input');
|
|
188
|
+
copyText.type = 'text';
|
|
189
|
+
copyText.select();
|
|
190
|
+
copyText.setSelectionRange(0, 99999); // For mobile devices
|
|
191
|
+
copyText.remove();
|
|
192
|
+
navigator.clipboard.writeText(value);
|
|
193
|
+
this.toast.success(`${title} copied!`);
|
|
194
|
+
}
|
|
195
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPClipBoardService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
196
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPClipBoardService, providedIn: 'root' }); }
|
|
197
|
+
}
|
|
198
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPClipBoardService, decorators: [{
|
|
199
|
+
type: Injectable,
|
|
200
|
+
args: [{
|
|
201
|
+
providedIn: 'root',
|
|
202
|
+
}]
|
|
203
|
+
}] });
|
|
204
|
+
|
|
205
|
+
class AXPRouteUtilityService {
|
|
206
|
+
constructor(router) {
|
|
207
|
+
this.router = router;
|
|
208
|
+
this.routeActiveCache = {};
|
|
209
|
+
// Subscribe to NavigationEnd events to update the cache
|
|
210
|
+
this.router.events
|
|
211
|
+
.pipe(filter((event) => event instanceof NavigationEnd))
|
|
212
|
+
.subscribe(() => {
|
|
213
|
+
this.clearRouteCache();
|
|
83
214
|
});
|
|
84
215
|
}
|
|
85
|
-
|
|
86
|
-
|
|
216
|
+
isRouteActive(item) {
|
|
217
|
+
const route = item.path;
|
|
218
|
+
if (!route)
|
|
219
|
+
return false;
|
|
220
|
+
// // Check if the result is already cached
|
|
221
|
+
// if (this.routeActiveCache.hasOwnProperty(route)) {
|
|
222
|
+
// return this.routeActiveCache[route];
|
|
223
|
+
// }
|
|
224
|
+
// Calculate the route activity
|
|
225
|
+
const isActive = window.location.pathname.startsWith(route);
|
|
226
|
+
// Cache the result
|
|
227
|
+
this.routeActiveCache[route] = isActive;
|
|
228
|
+
return isActive;
|
|
87
229
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
230
|
+
clearRouteCache() {
|
|
231
|
+
this.routeActiveCache = {};
|
|
232
|
+
}
|
|
233
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPRouteUtilityService, deps: [{ token: i1.Router }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
234
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPRouteUtilityService, providedIn: 'root' }); }
|
|
235
|
+
}
|
|
236
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPRouteUtilityService, decorators: [{
|
|
237
|
+
type: Injectable,
|
|
238
|
+
args: [{
|
|
239
|
+
providedIn: 'root',
|
|
240
|
+
}]
|
|
241
|
+
}], ctorParameters: () => [{ type: i1.Router }] });
|
|
242
|
+
|
|
243
|
+
class AXPDataGenerator {
|
|
244
|
+
static uuid() {
|
|
245
|
+
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (char) => {
|
|
246
|
+
const random = (Math.random() * 16) | 0;
|
|
247
|
+
const value = char === 'x' ? random : (random & 0x3) | 0x8;
|
|
248
|
+
return value.toString(16);
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
static number(...args) {
|
|
252
|
+
let min = 0;
|
|
253
|
+
let max = 100;
|
|
254
|
+
if (args.length == 1)
|
|
255
|
+
max = args[0];
|
|
256
|
+
if (args.length == 2) {
|
|
257
|
+
min = args[0];
|
|
258
|
+
max = args[1];
|
|
92
259
|
}
|
|
260
|
+
return Math.floor(Math.random() * (max - min + 1)) + min;
|
|
93
261
|
}
|
|
94
|
-
|
|
95
|
-
|
|
262
|
+
static date(...args) {
|
|
263
|
+
let start = new Date(2000, 0, 1);
|
|
264
|
+
let end = new Date();
|
|
265
|
+
if (args.length === 1) {
|
|
266
|
+
start = args[0];
|
|
267
|
+
}
|
|
268
|
+
else if (args.length === 2) {
|
|
269
|
+
start = args[0];
|
|
270
|
+
end = args[1];
|
|
271
|
+
}
|
|
272
|
+
const startTime = start.getTime();
|
|
273
|
+
const endTime = end.getTime();
|
|
274
|
+
return new Date(startTime + Math.random() * (endTime - startTime));
|
|
96
275
|
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
return await this.getOne(entityName, id);
|
|
276
|
+
static array(length = 5, generator) {
|
|
277
|
+
return Array.from({ length }, generator);
|
|
100
278
|
}
|
|
101
|
-
|
|
102
|
-
|
|
279
|
+
static pick(...args) {
|
|
280
|
+
if (args.length < 1) {
|
|
281
|
+
throw new Error('Invalid parameters');
|
|
282
|
+
}
|
|
283
|
+
const items = args[0];
|
|
284
|
+
const count = args[1] ?? 1;
|
|
285
|
+
if (count < 1) {
|
|
286
|
+
throw new Error('Count must be at least 1');
|
|
287
|
+
}
|
|
288
|
+
// If the count is greater than the number of items, just return a shuffled copy of the array
|
|
289
|
+
if (count >= items.length) {
|
|
290
|
+
return [...items].sort(() => Math.random() - 0.5);
|
|
291
|
+
}
|
|
292
|
+
// Shuffle the array and slice the first 'count' elements
|
|
293
|
+
const shuffled = items.slice();
|
|
294
|
+
for (let i = shuffled.length - 1; i > 0; i--) {
|
|
295
|
+
const j = Math.floor(Math.random() * (i + 1));
|
|
296
|
+
[shuffled[i], shuffled[j]] = [shuffled[j], shuffled[i]]; // Swap elements
|
|
297
|
+
}
|
|
298
|
+
return count == 1 ? shuffled.slice(0, count)[0] : shuffled.slice(0, count);
|
|
103
299
|
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
return
|
|
300
|
+
static string(length = 10) {
|
|
301
|
+
const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
|
|
302
|
+
return Array.from({ length }, () => chars.charAt(Math.floor(Math.random() * chars.length))).join('');
|
|
107
303
|
}
|
|
108
|
-
|
|
109
|
-
return
|
|
304
|
+
static boolean() {
|
|
305
|
+
return Math.random() >= 0.5;
|
|
110
306
|
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
if (request.sort && request.sort.length) {
|
|
114
|
-
result = applySortArray(result, request.sort);
|
|
115
|
-
}
|
|
116
|
-
result = applyFilterArray(result, request.filter ? [request.filter] : []);
|
|
117
|
-
return Promise.resolve({
|
|
118
|
-
totalCount: result.length,
|
|
119
|
-
items: result.slice(request.skip, (request.skip ?? 0) + (request.take ?? 0)),
|
|
120
|
-
});
|
|
307
|
+
static item(array = []) {
|
|
308
|
+
return array.length > 0 ? array[Math.floor(Math.random() * array.length)] : undefined;
|
|
121
309
|
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
310
|
+
static color() {
|
|
311
|
+
const color = Math.floor(Math.random() * 16777215).toString(16);
|
|
312
|
+
return `#${color.padStart(6, '0')}`;
|
|
313
|
+
}
|
|
314
|
+
static alphanumeric(length = 10) {
|
|
315
|
+
const chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
|
|
316
|
+
return Array.from({ length }, () => chars.charAt(Math.floor(Math.random() * chars.length))).join('');
|
|
317
|
+
}
|
|
318
|
+
static alphabet(length = 10) {
|
|
319
|
+
const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
|
|
320
|
+
return Array.from({ length }, () => chars.charAt(Math.floor(Math.random() * chars.length))).join('');
|
|
321
|
+
}
|
|
322
|
+
static phone() {
|
|
323
|
+
const areaCode = this.number(100, 999);
|
|
324
|
+
const exchangeCode = this.number(100, 999);
|
|
325
|
+
const lineNumber = this.number(1000, 9999);
|
|
326
|
+
return `${areaCode}-${exchangeCode}-${lineNumber}`;
|
|
327
|
+
}
|
|
328
|
+
static firstName() {
|
|
329
|
+
const firstNames = ['John', 'Allen', 'Jak', 'Rose', 'Kate', 'Liam', 'Olivia', 'Noah', 'Emma', 'Ava'];
|
|
330
|
+
return this.pick(firstNames);
|
|
331
|
+
}
|
|
332
|
+
static lastName() {
|
|
333
|
+
const lastNames = ['Gates', 'Jonsen', 'Smith', 'Ford', 'Jakson', 'Brown', 'Johnson', 'Williams', 'Jones', 'Garcia'];
|
|
334
|
+
return this.pick(lastNames);
|
|
335
|
+
}
|
|
336
|
+
static email(...args) {
|
|
337
|
+
const domains = ['gmail.com', 'yahoo.com', 'outlook.com', 'example.com'];
|
|
338
|
+
const domain = this.pick(domains);
|
|
339
|
+
const separator = this.pick(['.', '_', '']);
|
|
340
|
+
const randomSuffix = this.boolean() ? this.number(1, 99).toString() : '';
|
|
341
|
+
if (args.length === 2) {
|
|
342
|
+
const firstName = args[0].toLowerCase();
|
|
343
|
+
const lastName = args[1].toLowerCase();
|
|
344
|
+
return `${firstName}${separator}${lastName}${randomSuffix}@${domain}`;
|
|
345
|
+
}
|
|
346
|
+
else {
|
|
347
|
+
const firstName = this.firstName().toLowerCase();
|
|
348
|
+
const lastName = this.lastName().toLowerCase();
|
|
349
|
+
return `${firstName}${separator}${lastName}${randomSuffix}@${domain}`;
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
static country() {
|
|
353
|
+
const countries = ['USA', 'Canada', 'Mexico', 'Germany', 'France', 'Japan', 'Australia'];
|
|
354
|
+
return this.pick(countries);
|
|
355
|
+
}
|
|
356
|
+
static city() {
|
|
357
|
+
const cities = ['New York', 'Los Angeles', 'Toronto', 'Vancouver', 'Berlin', 'Paris', 'Tokyo', 'Sydney'];
|
|
358
|
+
return this.pick(cities);
|
|
359
|
+
}
|
|
360
|
+
static state() {
|
|
361
|
+
const states = ['NY', 'CA', 'TX', 'ON', 'BC', 'NSW', 'BER', 'IDF', 'TYO'];
|
|
362
|
+
return this.pick(states);
|
|
363
|
+
}
|
|
364
|
+
static address() {
|
|
365
|
+
const streets = ['Main St', 'High St', 'Maple Ave', 'Oak St', 'Pine St', 'Cedar St'];
|
|
366
|
+
const streetNumber = this.number(100, 9999);
|
|
367
|
+
const street = this.pick(streets);
|
|
368
|
+
const city = this.city();
|
|
369
|
+
const state = this.state();
|
|
370
|
+
const zip = this.number(10000, 99999);
|
|
371
|
+
const country = this.country();
|
|
372
|
+
return `${streetNumber} ${street}, ${city}, ${state} ${zip}, ${country}`;
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
// AXPPdfService
|
|
377
|
+
var AXPPdfPageSize;
|
|
378
|
+
(function (AXPPdfPageSize) {
|
|
379
|
+
AXPPdfPageSize["A4"] = "a4";
|
|
380
|
+
AXPPdfPageSize["A5"] = "a5";
|
|
381
|
+
AXPPdfPageSize["Letter"] = "letter";
|
|
382
|
+
AXPPdfPageSize["Legal"] = "legal";
|
|
383
|
+
AXPPdfPageSize["Custom"] = "custom"; // Handle custom sizes
|
|
384
|
+
})(AXPPdfPageSize || (AXPPdfPageSize = {}));
|
|
385
|
+
class AXPPdfService {
|
|
386
|
+
constructor() {
|
|
387
|
+
this.renderer = inject(RendererFactory2).createRenderer(null, null);
|
|
388
|
+
}
|
|
389
|
+
async generatePdfBlob(div, options = {}) {
|
|
390
|
+
const { jsPDF } = await import('jspdf');
|
|
391
|
+
const html2canvas = (await import('html2canvas')).default;
|
|
392
|
+
const element = typeof div === 'string' ? document.getElementById(div) : div;
|
|
393
|
+
if (!element) {
|
|
394
|
+
console.error('Element not found.');
|
|
395
|
+
return Promise.reject('Element not found.');
|
|
396
|
+
}
|
|
397
|
+
const { pageSize = AXPPdfPageSize.A4 } = options;
|
|
398
|
+
let pdf;
|
|
399
|
+
if (typeof pageSize === 'string' && pageSize !== AXPPdfPageSize.Custom) {
|
|
400
|
+
pdf = new jsPDF({
|
|
401
|
+
orientation: 'portrait',
|
|
402
|
+
format: pageSize
|
|
403
|
+
});
|
|
404
|
+
}
|
|
405
|
+
else if (typeof pageSize !== 'string') {
|
|
406
|
+
const { width, height } = pageSize;
|
|
407
|
+
pdf = new jsPDF({
|
|
408
|
+
orientation: 'portrait',
|
|
409
|
+
unit: 'pt',
|
|
410
|
+
format: [width, height]
|
|
411
|
+
});
|
|
412
|
+
}
|
|
413
|
+
else {
|
|
414
|
+
return Promise.reject("Invalid page size.");
|
|
415
|
+
}
|
|
416
|
+
const canvas = await html2canvas(element);
|
|
417
|
+
const imageData = canvas.toDataURL('image/png');
|
|
418
|
+
const imgProps = pdf.getImageProperties(imageData);
|
|
419
|
+
const pdfWidth = pdf.internal.pageSize.getWidth();
|
|
420
|
+
const pdfHeight = (imgProps.height * pdfWidth) / imgProps.width;
|
|
421
|
+
pdf.addImage(imageData, 'PNG', 0, 0, pdfWidth, pdfHeight);
|
|
422
|
+
return pdf.output('bloburl');
|
|
423
|
+
}
|
|
424
|
+
async printPdf(div, options = {}) {
|
|
425
|
+
const blobUrl = await this.generatePdfBlob(div, options).catch(err => {
|
|
426
|
+
console.error('Failed to generate PDF', err);
|
|
427
|
+
return null;
|
|
428
|
+
});
|
|
429
|
+
if (!blobUrl)
|
|
430
|
+
return;
|
|
431
|
+
const iframe = this.renderer.createElement('iframe');
|
|
432
|
+
this.renderer.setStyle(iframe, 'display', 'none');
|
|
433
|
+
this.renderer.appendChild(document.body, iframe);
|
|
434
|
+
iframe.src = blobUrl;
|
|
435
|
+
iframe.onload = () => {
|
|
436
|
+
setTimeout(() => {
|
|
437
|
+
iframe.contentWindow.print();
|
|
438
|
+
}, 1000);
|
|
439
|
+
};
|
|
440
|
+
// Add a button or some UI element that allows the user to manually signal they are done printing
|
|
441
|
+
// const finishButton = this.renderer.createElement('button');
|
|
442
|
+
// this.renderer.setProperty(finishButton, 'innerText', 'Finish Printing');
|
|
443
|
+
// this.renderer.listen(finishButton, 'click', () => {
|
|
444
|
+
// this.renderer.removeChild(document.body, iframe);
|
|
445
|
+
// this.renderer.removeChild(document.body, finishButton);
|
|
446
|
+
// });
|
|
447
|
+
// this.renderer.appendChild(document.body, finishButton);
|
|
448
|
+
}
|
|
449
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPPdfService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
450
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPPdfService, providedIn: 'root' }); }
|
|
451
|
+
}
|
|
452
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPPdfService, decorators: [{
|
|
453
|
+
type: Injectable,
|
|
454
|
+
args: [{
|
|
455
|
+
providedIn: 'root'
|
|
456
|
+
}]
|
|
457
|
+
}] });
|
|
458
|
+
|
|
459
|
+
class AXPDexieEntityStorageService extends Dexie {
|
|
460
|
+
constructor() {
|
|
461
|
+
super('ACoreXPlatform');
|
|
462
|
+
this.version(1).stores({
|
|
463
|
+
'entity-store': '++id, entityName, [entityName+id]',
|
|
464
|
+
});
|
|
465
|
+
}
|
|
466
|
+
get dbName() {
|
|
467
|
+
return 'ACoreXPlatform';
|
|
468
|
+
}
|
|
469
|
+
async initial(entityName, collection) {
|
|
470
|
+
const exists = await this.table('entity-store').where({ entityName }).count();
|
|
471
|
+
if (exists === 0) {
|
|
472
|
+
await this.table('entity-store').bulkAdd(collection.map((item) => ({ ...item, entityName })));
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
async getOne(entityName, id) {
|
|
476
|
+
return await this.table('entity-store').where({ entityName, id: id }).first();
|
|
477
|
+
}
|
|
478
|
+
async updateOne(entityName, id, keyValue) {
|
|
479
|
+
await this.table('entity-store').where({ entityName, id: id }).modify(keyValue);
|
|
480
|
+
return await this.getOne(entityName, id);
|
|
481
|
+
}
|
|
482
|
+
async deleteOne(entityName, id) {
|
|
483
|
+
await this.table('entity-store').where({ entityName, id: id }).delete();
|
|
484
|
+
}
|
|
485
|
+
async insertOne(entityName, entity) {
|
|
486
|
+
const uuid = AXPDataGenerator.uuid();
|
|
487
|
+
await this.table('entity-store').add({ ...entity, id: uuid, entityName });
|
|
488
|
+
return uuid;
|
|
489
|
+
}
|
|
490
|
+
async getAll(entityName) {
|
|
491
|
+
return await this.table('entity-store').where({ entityName }).toArray();
|
|
492
|
+
}
|
|
493
|
+
async query(entityName, request) {
|
|
494
|
+
let result = await this.table('entity-store').where({ entityName }).toArray();
|
|
495
|
+
if (request.sort && request.sort.length) {
|
|
496
|
+
result = applySortArray(result, request.sort);
|
|
497
|
+
}
|
|
498
|
+
result = applyFilterArray(result, request.filter ? [request.filter] : []);
|
|
499
|
+
return Promise.resolve({
|
|
500
|
+
total: result.length,
|
|
501
|
+
items: result.slice(request.skip, (request.skip ?? 0) + (request.take ?? 0)),
|
|
502
|
+
});
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
// export class AXPDexieTableStorageService extends Dexie implements AXPEntityStorageService {
|
|
506
|
+
// private schemaUpdateLock: Promise<void> = Promise.resolve();
|
|
507
|
+
// constructor() {
|
|
508
|
+
// super('ACoreXPlatform');
|
|
509
|
+
// // Initial empty version
|
|
510
|
+
// //this.version(1).stores({});
|
|
511
|
+
// }
|
|
512
|
+
// // Function to change the schema dynamically
|
|
513
|
+
// private async changeSchema(schemaChanges: { [tableName: string]: string | null }): Promise<void> {
|
|
514
|
+
// // Acquire schema update lock to ensure no other operations are performed while schema is changing
|
|
133
515
|
// this.schemaUpdateLock = this.schemaUpdateLock.then(async () => {
|
|
134
516
|
// console.log('Attempting schema change with:', schemaChanges);
|
|
135
517
|
// try {
|
|
@@ -252,7 +634,7 @@ class AXMEntityCrudServiceImpl {
|
|
|
252
634
|
async updateOne(id, values) {
|
|
253
635
|
return this._entityDataProvider.updateOne(id, values);
|
|
254
636
|
}
|
|
255
|
-
async query(request) {
|
|
637
|
+
async query(request = { skip: 0, take: 100 }) {
|
|
256
638
|
return this._entityDataProvider.query(request);
|
|
257
639
|
}
|
|
258
640
|
get entityDataProvider() {
|
|
@@ -588,7 +970,7 @@ class AXPComponentSlotLoaderService {
|
|
|
588
970
|
this.injector = injector;
|
|
589
971
|
}
|
|
590
972
|
loadComponent(slotName, viewContainerRef) {
|
|
591
|
-
const configs = this.registryService.get(slotName);
|
|
973
|
+
const configs = sortBy(this.registryService.get(slotName), (c) => c.priority ?? 0);
|
|
592
974
|
if (configs) {
|
|
593
975
|
viewContainerRef.clear();
|
|
594
976
|
configs.forEach(async (config) => {
|
|
@@ -630,7 +1012,7 @@ class AXPComponentSlotLoaderService {
|
|
|
630
1012
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPComponentSlotLoaderService, decorators: [{
|
|
631
1013
|
type: Injectable,
|
|
632
1014
|
args: [{
|
|
633
|
-
providedIn: 'root'
|
|
1015
|
+
providedIn: 'root',
|
|
634
1016
|
}]
|
|
635
1017
|
}], ctorParameters: () => [{ type: AXPComponentSlotRegistryService }, { type: i0.Injector }] });
|
|
636
1018
|
|
|
@@ -763,7 +1145,7 @@ class AXPLogoComponent {
|
|
|
763
1145
|
}
|
|
764
1146
|
}
|
|
765
1147
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPLogoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
766
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXPLogoComponent, isStandalone: true, selector: "axp-logo", inputs: { source: "source" }, host: { classAttribute: "ax-flex ax-justify-center" }, ngImport: i0, template: "@switch (logoType) {\n@case ('text') {\n<span class=\"ax-font-bold ax-select-none\">{{ source.text }}</span>\n}\n@case ('url') {\n<ax-image [src]=\"source.url\"></ax-image>\n} @case ('iconClass') {\n<ax-icon class=\"{{ source.classIcon }}\"></ax-icon>\n} @case ('component') {\n<ng-container *ngComponentOutlet=\"source.component\"></ng-container>\n}\n}", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"] }, { kind: "ngmodule", type: AXImageModule }, { kind: "component", type: i2.AXImageComponent, selector: "ax-image", inputs: ["overlayMode", "src", "alt", "priority", "lazy"], outputs: ["onLoad", "onError"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i5.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }] }); }
|
|
1148
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXPLogoComponent, isStandalone: true, selector: "axp-logo", inputs: { source: "source" }, host: { classAttribute: "ax-flex ax-justify-center" }, ngImport: i0, template: "@switch (logoType) {\n@case ('text') {\n<span class=\"ax-font-bold ax-select-none\">{{ source.text }}</span>\n}\n@case ('url') {\n<ax-image [src]=\"source.url\"></ax-image>\n} @case ('iconClass') {\n<ax-icon class=\"{{ source.classIcon }}\"></ax-icon>\n} @case ('component') {\n<ng-container *ngComponentOutlet=\"source.component\"></ng-container>\n}\n}", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"] }, { kind: "ngmodule", type: AXImageModule }, { kind: "component", type: i2.AXImageComponent, selector: "ax-image", inputs: ["overlayMode", "src", "alt", "priority", "lazy"], outputs: ["onLoad", "onError"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i5.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }] }); }
|
|
767
1149
|
}
|
|
768
1150
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPLogoComponent, decorators: [{
|
|
769
1151
|
type: Component,
|
|
@@ -822,10 +1204,6 @@ class AXPMenuProviderService {
|
|
|
822
1204
|
this.applyInjections(items, injections);
|
|
823
1205
|
}
|
|
824
1206
|
}
|
|
825
|
-
else if (this.providers) {
|
|
826
|
-
const injections = await this.providers.items();
|
|
827
|
-
this.applyInjections(items, injections);
|
|
828
|
-
}
|
|
829
1207
|
return items;
|
|
830
1208
|
}
|
|
831
1209
|
applyInjections(items, injections) {
|
|
@@ -970,12 +1348,12 @@ class AXPCommonEffects {
|
|
|
970
1348
|
return of();
|
|
971
1349
|
})), { dispatch: false });
|
|
972
1350
|
}
|
|
973
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPCommonEffects, deps: [{ token: i1$
|
|
1351
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPCommonEffects, deps: [{ token: i1$2.Actions }, { token: i1.Router }, { token: AXPSettingsService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
974
1352
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPCommonEffects }); }
|
|
975
1353
|
}
|
|
976
1354
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPCommonEffects, decorators: [{
|
|
977
1355
|
type: Injectable
|
|
978
|
-
}], ctorParameters: () => [{ type: i1$
|
|
1356
|
+
}], ctorParameters: () => [{ type: i1$2.Actions }, { type: i1.Router }, { type: AXPSettingsService }] });
|
|
979
1357
|
|
|
980
1358
|
const AXPMenuService = signalStore({ providedIn: 'root' },
|
|
981
1359
|
// Initial State
|
|
@@ -1075,7 +1453,7 @@ class AXPNavBarSlotComponent {
|
|
|
1075
1453
|
<div class="ax-flex ax-items-center ax-justify-between ax-gap-5">
|
|
1076
1454
|
<a *ngFor="let link of items" (click)="handleCommand(link.command)" >{{ link.text }}</a>
|
|
1077
1455
|
</div>
|
|
1078
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
1456
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
1079
1457
|
}
|
|
1080
1458
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPNavBarSlotComponent, decorators: [{
|
|
1081
1459
|
type: Component,
|
|
@@ -1316,25 +1694,23 @@ class AXPCommonModule {
|
|
|
1316
1694
|
instances.forEach((f) => {
|
|
1317
1695
|
f();
|
|
1318
1696
|
});
|
|
1319
|
-
appInitService.registerTask({
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
})
|
|
1697
|
+
// appInitService.registerTask({
|
|
1698
|
+
// name: 'Modules',
|
|
1699
|
+
// statusText: 'Initializing Modules ...',
|
|
1700
|
+
// run: () =>
|
|
1701
|
+
// new Promise<void>((resolve) => {
|
|
1702
|
+
// setTimeout(() => {
|
|
1703
|
+
// resolve();
|
|
1704
|
+
// }, 250);
|
|
1705
|
+
// }),
|
|
1706
|
+
// });
|
|
1328
1707
|
//
|
|
1329
1708
|
appInitService.registerTask({
|
|
1330
1709
|
name: 'Settings',
|
|
1331
1710
|
statusText: 'Loading Settings ...',
|
|
1332
|
-
run:
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
resolve();
|
|
1336
|
-
}, 250);
|
|
1337
|
-
}),
|
|
1711
|
+
run: async () => {
|
|
1712
|
+
await settingsService.load();
|
|
1713
|
+
}
|
|
1338
1714
|
});
|
|
1339
1715
|
//
|
|
1340
1716
|
//
|
|
@@ -1347,7 +1723,7 @@ class AXPCommonModule {
|
|
|
1347
1723
|
});
|
|
1348
1724
|
}
|
|
1349
1725
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPCommonModule, deps: [{ token: 'AXPCommonModuleFactory' }, { token: AXPAppStartUpService }, { token: AXPSettingsService }, { token: AXPDataSeederService }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1350
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: AXPCommonModule, imports: [i1$
|
|
1726
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: AXPCommonModule, imports: [i1$2.EffectsFeatureModule, i5$1.StoreFeatureModule, i6.AXPWorkflowModule, AXPopupModule,
|
|
1351
1727
|
AXDateTimeModule,
|
|
1352
1728
|
AXToastModule], exports: [RouterModule] }); }
|
|
1353
1729
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPCommonModule, providers: [
|
|
@@ -1524,7 +1900,7 @@ class AXPWidgetColumnRendererComponent extends AXDataTableColumnComponent {
|
|
|
1524
1900
|
}
|
|
1525
1901
|
</ng-template>
|
|
1526
1902
|
<ng-template #footer></ng-template>
|
|
1527
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1903
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1$1.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1528
1904
|
}
|
|
1529
1905
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPWidgetColumnRendererComponent, decorators: [{
|
|
1530
1906
|
type: Component,
|
|
@@ -1663,7 +2039,7 @@ class AXPWidgetFilterRendererComponent {
|
|
|
1663
2039
|
} @else {
|
|
1664
2040
|
<ng-template [cdkPortalOutlet]="portal" (attached)="handleAttached($event)"></ng-template>
|
|
1665
2041
|
}
|
|
1666
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1$
|
|
2042
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1$3.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "component", type: i2$1.AXSkeletonComponent, selector: "ax-skeleton", inputs: ["animated"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1667
2043
|
}
|
|
1668
2044
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPWidgetFilterRendererComponent, decorators: [{
|
|
1669
2045
|
type: Component,
|
|
@@ -1908,7 +2284,7 @@ class AXPWidgetRendererComponent {
|
|
|
1908
2284
|
} @else {
|
|
1909
2285
|
<ng-template [cdkPortalOutlet]="portal" (attached)="handleAttached($event)"></ng-template>
|
|
1910
2286
|
}
|
|
1911
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1$
|
|
2287
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1$3.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "component", type: i2$1.AXSkeletonComponent, selector: "ax-skeleton", inputs: ["animated"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1912
2288
|
}
|
|
1913
2289
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPWidgetRendererComponent, decorators: [{
|
|
1914
2290
|
type: Component,
|
|
@@ -2065,99 +2441,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
|
2065
2441
|
}]
|
|
2066
2442
|
}] });
|
|
2067
2443
|
|
|
2068
|
-
var AXPRelationshipKind;
|
|
2069
|
-
(function (AXPRelationshipKind) {
|
|
2070
|
-
AXPRelationshipKind[AXPRelationshipKind["Association"] = 0] = "Association";
|
|
2071
|
-
AXPRelationshipKind[AXPRelationshipKind["Composition"] = 1] = "Composition";
|
|
2072
|
-
AXPRelationshipKind[AXPRelationshipKind["Aggregation"] = 2] = "Aggregation";
|
|
2073
|
-
})(AXPRelationshipKind || (AXPRelationshipKind = {}));
|
|
2074
|
-
var AXPRelationshipCardinality;
|
|
2075
|
-
(function (AXPRelationshipCardinality) {
|
|
2076
|
-
AXPRelationshipCardinality[AXPRelationshipCardinality["OneToOne"] = 0] = "OneToOne";
|
|
2077
|
-
AXPRelationshipCardinality[AXPRelationshipCardinality["OneToMany"] = 1] = "OneToMany";
|
|
2078
|
-
AXPRelationshipCardinality[AXPRelationshipCardinality["ManyToMany"] = 2] = "ManyToMany";
|
|
2079
|
-
})(AXPRelationshipCardinality || (AXPRelationshipCardinality = {}));
|
|
2080
|
-
var AXPEntityCommandScope;
|
|
2081
|
-
(function (AXPEntityCommandScope) {
|
|
2082
|
-
AXPEntityCommandScope["TypeLevel"] = "typeLevel";
|
|
2083
|
-
AXPEntityCommandScope["Selected"] = "selected";
|
|
2084
|
-
AXPEntityCommandScope["Individual"] = "individual";
|
|
2085
|
-
AXPEntityCommandScope["Section"] = "section";
|
|
2086
|
-
})(AXPEntityCommandScope || (AXPEntityCommandScope = {}));
|
|
2087
|
-
var AXPEntityQueryType;
|
|
2088
|
-
(function (AXPEntityQueryType) {
|
|
2089
|
-
AXPEntityQueryType["Single"] = "single";
|
|
2090
|
-
AXPEntityQueryType["List"] = "list";
|
|
2091
|
-
})(AXPEntityQueryType || (AXPEntityQueryType = {}));
|
|
2092
|
-
function resolveActionLook(tr) {
|
|
2093
|
-
switch (tr.type) {
|
|
2094
|
-
case 'create':
|
|
2095
|
-
return { color: 'primary', icon: 'fa-solid fa-add' };
|
|
2096
|
-
case 'view':
|
|
2097
|
-
return { color: 'primary', icon: 'fa-solid fa-eye' };
|
|
2098
|
-
case 'info':
|
|
2099
|
-
return { color: 'primary', icon: 'fa-solid fa-info' };
|
|
2100
|
-
case 'delete':
|
|
2101
|
-
return { color: 'danger', icon: 'fa-solid fa-trash' };
|
|
2102
|
-
case 'print':
|
|
2103
|
-
return { color: 'secondary', icon: 'fa-solid fa-print' };
|
|
2104
|
-
case 'confirm':
|
|
2105
|
-
return { color: 'success', icon: 'fa-solid fa-check' };
|
|
2106
|
-
default:
|
|
2107
|
-
return { color: 'primary', icon: '' };
|
|
2108
|
-
}
|
|
2109
|
-
}
|
|
2110
|
-
|
|
2111
|
-
const EQ_OPER = { name: 'equal', title: 'Equal', hasValue: true };
|
|
2112
|
-
const NOT_EQ_OPER = { name: 'notEqual', title: 'Not Equal', hasValue: true };
|
|
2113
|
-
const GT_OPER = { name: 'greaterThan', title: 'Greater Than', hasValue: true };
|
|
2114
|
-
const LT_OPER = { name: 'lessThan', title: 'Less Than', hasValue: true };
|
|
2115
|
-
const GTE_OPER = {
|
|
2116
|
-
name: 'greaterThanOrEqual',
|
|
2117
|
-
title: 'Greater Than or Equal',
|
|
2118
|
-
hasValue: true,
|
|
2119
|
-
};
|
|
2120
|
-
const LTE_OPER = { name: 'lessThanOrEqual', title: 'Less Than or Equal', hasValue: true };
|
|
2121
|
-
const CONTAINS_OPER = { name: 'contains', title: 'Contains', hasValue: true };
|
|
2122
|
-
const NOT_CONTAINS_OPER = { name: 'notContains', title: 'Does Not Contain', hasValue: true };
|
|
2123
|
-
const STARTS_WITH_OPER = { name: 'startsWith', title: 'Starts With', hasValue: true };
|
|
2124
|
-
const ENDS_WITH_OPER = { name: 'endsWith', title: 'Ends With', hasValue: true };
|
|
2125
|
-
const IS_EMPTY_OPER = { name: 'isEmpty', title: 'Is Empty', hasValue: false };
|
|
2126
|
-
const IS_NOT_EMPTY_OPER = { name: 'isNotEmpty', title: 'Is Not Empty', hasValue: false };
|
|
2127
|
-
const BETWEEN_OPER = { name: 'between', title: 'Between', hasValue: true };
|
|
2128
|
-
const STRING_OPERATORS = [
|
|
2129
|
-
EQ_OPER,
|
|
2130
|
-
NOT_EQ_OPER,
|
|
2131
|
-
CONTAINS_OPER,
|
|
2132
|
-
NOT_CONTAINS_OPER,
|
|
2133
|
-
STARTS_WITH_OPER,
|
|
2134
|
-
ENDS_WITH_OPER,
|
|
2135
|
-
IS_EMPTY_OPER,
|
|
2136
|
-
IS_NOT_EMPTY_OPER,
|
|
2137
|
-
];
|
|
2138
|
-
const NUMBER_OPERATORS = [
|
|
2139
|
-
EQ_OPER,
|
|
2140
|
-
NOT_EQ_OPER,
|
|
2141
|
-
BETWEEN_OPER,
|
|
2142
|
-
GT_OPER,
|
|
2143
|
-
GTE_OPER,
|
|
2144
|
-
LT_OPER,
|
|
2145
|
-
LTE_OPER,
|
|
2146
|
-
IS_EMPTY_OPER,
|
|
2147
|
-
IS_NOT_EMPTY_OPER,
|
|
2148
|
-
];
|
|
2149
|
-
const BOOLEAN_OPERATORS = [EQ_OPER];
|
|
2150
|
-
const DATE_OPERATORS = [
|
|
2151
|
-
EQ_OPER,
|
|
2152
|
-
NOT_EQ_OPER,
|
|
2153
|
-
GT_OPER,
|
|
2154
|
-
GTE_OPER,
|
|
2155
|
-
LT_OPER,
|
|
2156
|
-
LTE_OPER,
|
|
2157
|
-
IS_EMPTY_OPER,
|
|
2158
|
-
IS_NOT_EMPTY_OPER,
|
|
2159
|
-
];
|
|
2160
|
-
|
|
2161
2444
|
const widgetSchemas = {
|
|
2162
2445
|
//*Sharing schema list with other modules
|
|
2163
2446
|
text: 'text',
|
|
@@ -2188,16 +2471,16 @@ class AXPCommonWidgetModule {
|
|
|
2188
2471
|
service.register({
|
|
2189
2472
|
component: {
|
|
2190
2473
|
view: {
|
|
2191
|
-
component: () => import('./acorex-platform-common-text-widget-view.component-
|
|
2474
|
+
component: () => import('./acorex-platform-common-text-widget-view.component-BDxpsxE6.mjs').then((c) => c.AXPTextWidgetViewComponent),
|
|
2192
2475
|
},
|
|
2193
2476
|
filter: {
|
|
2194
|
-
component: () => import('./acorex-platform-common-string-widget-filter.component-
|
|
2477
|
+
component: () => import('./acorex-platform-common-string-widget-filter.component-B9h7CnEz.mjs').then((c) => c.AXPStringWidgetFilterComponent),
|
|
2195
2478
|
},
|
|
2196
2479
|
edit: {
|
|
2197
|
-
component: () => import('./acorex-platform-common-text-widget-edit.component-
|
|
2480
|
+
component: () => import('./acorex-platform-common-text-widget-edit.component-BiyTKmvV.mjs').then((c) => c.AXPTextWidgetEditComponent),
|
|
2198
2481
|
},
|
|
2199
2482
|
column: {
|
|
2200
|
-
component: () => import('./acorex-platform-common-text-widget-column.component-
|
|
2483
|
+
component: () => import('./acorex-platform-common-text-widget-column.component-LFKeHZbS.mjs').then((c) => c.AXPTextWidgetColumnComponent),
|
|
2201
2484
|
options: { allowResizing: true },
|
|
2202
2485
|
},
|
|
2203
2486
|
},
|
|
@@ -2212,7 +2495,7 @@ class AXPCommonWidgetModule {
|
|
|
2212
2495
|
name: widgetSchemas.largetext,
|
|
2213
2496
|
component: {
|
|
2214
2497
|
edit: {
|
|
2215
|
-
component: () => import('./acorex-platform-common-largetext-widget-edit.component-
|
|
2498
|
+
component: () => import('./acorex-platform-common-largetext-widget-edit.component-BeiJZnEv.mjs').then((c) => c.AXPLargeTextWidgetEditComponent),
|
|
2216
2499
|
},
|
|
2217
2500
|
column: {
|
|
2218
2501
|
options: {
|
|
@@ -2225,16 +2508,16 @@ class AXPCommonWidgetModule {
|
|
|
2225
2508
|
service.register({
|
|
2226
2509
|
component: {
|
|
2227
2510
|
view: {
|
|
2228
|
-
component: () => import('./acorex-platform-common-number-widget-view.component-
|
|
2511
|
+
component: () => import('./acorex-platform-common-number-widget-view.component-Du1oQYBH.mjs').then((c) => c.AXPNumberWidgetViewComponent),
|
|
2229
2512
|
},
|
|
2230
2513
|
filter: {
|
|
2231
|
-
component: () => import('./acorex-platform-common-number-widget-filter.component-
|
|
2514
|
+
component: () => import('./acorex-platform-common-number-widget-filter.component-BgTJbR2u.mjs').then((c) => c.AXPNumberWidgetFilterComponent),
|
|
2232
2515
|
},
|
|
2233
2516
|
edit: {
|
|
2234
|
-
component: () => import('./acorex-platform-common-number-widget-edit.component-
|
|
2517
|
+
component: () => import('./acorex-platform-common-number-widget-edit.component-B0if4vR4.mjs').then((c) => c.AXPNumberWidgetEditComponent),
|
|
2235
2518
|
},
|
|
2236
2519
|
column: {
|
|
2237
|
-
component: () => import('./acorex-platform-common-number-widget-view.component-
|
|
2520
|
+
component: () => import('./acorex-platform-common-number-widget-view.component-Du1oQYBH.mjs').then((c) => c.AXPNumberWidgetViewComponent),
|
|
2238
2521
|
options: { allowResizing: true },
|
|
2239
2522
|
},
|
|
2240
2523
|
},
|
|
@@ -2262,17 +2545,17 @@ class AXPCommonWidgetModule {
|
|
|
2262
2545
|
service.register({
|
|
2263
2546
|
component: {
|
|
2264
2547
|
view: {
|
|
2265
|
-
component: () => import('./acorex-platform-common-phone-widget-view.component-
|
|
2548
|
+
component: () => import('./acorex-platform-common-phone-widget-view.component-xGygt5Y9.mjs').then((c) => c.AXPPhoneWidgetViewComponent),
|
|
2266
2549
|
},
|
|
2267
2550
|
column: {
|
|
2268
|
-
component: () => import('./acorex-platform-common-phone-widget-column.component-
|
|
2551
|
+
component: () => import('./acorex-platform-common-phone-widget-column.component-DGaGGltV.mjs').then((c) => c.AXPPhoneWidgetColumnComponent),
|
|
2269
2552
|
options: { allowResizing: true },
|
|
2270
2553
|
},
|
|
2271
2554
|
edit: {
|
|
2272
|
-
component: () => import('./acorex-platform-common-phone-widget-edit.component-
|
|
2555
|
+
component: () => import('./acorex-platform-common-phone-widget-edit.component-BNfAQ_4j.mjs').then((c) => c.AXPPhoneWidgetEditComponent),
|
|
2273
2556
|
},
|
|
2274
2557
|
filter: {
|
|
2275
|
-
component: () => import('./acorex-platform-common-string-widget-filter.component-
|
|
2558
|
+
component: () => import('./acorex-platform-common-string-widget-filter.component-B9h7CnEz.mjs').then((c) => c.AXPStringWidgetFilterComponent),
|
|
2276
2559
|
},
|
|
2277
2560
|
},
|
|
2278
2561
|
name: widgetSchemas.phone,
|
|
@@ -2286,16 +2569,16 @@ class AXPCommonWidgetModule {
|
|
|
2286
2569
|
service.register({
|
|
2287
2570
|
component: {
|
|
2288
2571
|
view: {
|
|
2289
|
-
component: () => import('./acorex-platform-common-email-widget-view.component-
|
|
2572
|
+
component: () => import('./acorex-platform-common-email-widget-view.component-CvEHLvcT.mjs').then((c) => c.AXPEmailWidgetViewComponent),
|
|
2290
2573
|
},
|
|
2291
2574
|
edit: {
|
|
2292
|
-
component: () => import('./acorex-platform-common-email-widget-edit.component-
|
|
2575
|
+
component: () => import('./acorex-platform-common-email-widget-edit.component-DTxCX3ok.mjs').then((c) => c.AXPEmailWidgetEditComponent),
|
|
2293
2576
|
},
|
|
2294
2577
|
filter: {
|
|
2295
|
-
component: () => import('./acorex-platform-common-string-widget-filter.component-
|
|
2578
|
+
component: () => import('./acorex-platform-common-string-widget-filter.component-B9h7CnEz.mjs').then((c) => c.AXPStringWidgetFilterComponent),
|
|
2296
2579
|
},
|
|
2297
2580
|
column: {
|
|
2298
|
-
component: () => import('./acorex-platform-common-email-widget-column.component-
|
|
2581
|
+
component: () => import('./acorex-platform-common-email-widget-column.component-Cy_Kj9po.mjs').then((c) => c.AXPEmailWidgetColumnComponent),
|
|
2299
2582
|
options: { allowResizing: true },
|
|
2300
2583
|
},
|
|
2301
2584
|
},
|
|
@@ -2310,16 +2593,16 @@ class AXPCommonWidgetModule {
|
|
|
2310
2593
|
service.register({
|
|
2311
2594
|
component: {
|
|
2312
2595
|
view: {
|
|
2313
|
-
component: () => import('./acorex-platform-common-dateTime-widget-view.component-
|
|
2596
|
+
component: () => import('./acorex-platform-common-dateTime-widget-view.component-lzf0fwxr.mjs').then((c) => c.AXPDateTimeWidgetViewComponent),
|
|
2314
2597
|
},
|
|
2315
2598
|
edit: {
|
|
2316
|
-
component: () => import('./acorex-platform-common-dateTime-widget-edit.component-
|
|
2599
|
+
component: () => import('./acorex-platform-common-dateTime-widget-edit.component-Dm4QofDq.mjs').then((c) => c.AXPDateTimeWidgetEditComponent),
|
|
2317
2600
|
},
|
|
2318
2601
|
filter: {
|
|
2319
|
-
component: () => import('./acorex-platform-common-dateTime-widget-filter.component-
|
|
2602
|
+
component: () => import('./acorex-platform-common-dateTime-widget-filter.component-DDny36SE.mjs').then((c) => c.AXPDateTimeWidgetFilterComponent),
|
|
2320
2603
|
},
|
|
2321
2604
|
column: {
|
|
2322
|
-
component: () => import('./acorex-platform-common-dateTime-widget-column.component-
|
|
2605
|
+
component: () => import('./acorex-platform-common-dateTime-widget-column.component-CtS98tbi.mjs').then((c) => c.AXPDateTimeWidgetColumnComponent),
|
|
2323
2606
|
options: {
|
|
2324
2607
|
width: '200px',
|
|
2325
2608
|
allowResizing: true,
|
|
@@ -2366,16 +2649,16 @@ class AXPCommonWidgetModule {
|
|
|
2366
2649
|
service.register({
|
|
2367
2650
|
component: {
|
|
2368
2651
|
view: {
|
|
2369
|
-
component: () => import('./acorex-platform-common-toggle-widget-view.component-
|
|
2652
|
+
component: () => import('./acorex-platform-common-toggle-widget-view.component-Cq2-5QUg.mjs').then((c) => c.AXPToggleWidgetViewComponent),
|
|
2370
2653
|
},
|
|
2371
2654
|
edit: {
|
|
2372
|
-
component: () => import('./acorex-platform-common-toggle-widget-edit.component-
|
|
2655
|
+
component: () => import('./acorex-platform-common-toggle-widget-edit.component-Cz7LayX-.mjs').then((c) => c.AXPToggleWidgetEditComponent),
|
|
2373
2656
|
},
|
|
2374
2657
|
filter: {
|
|
2375
|
-
component: () => import('./acorex-platform-common-boolean-widget-filter.component-
|
|
2658
|
+
component: () => import('./acorex-platform-common-boolean-widget-filter.component-DRDiIxsn.mjs').then((c) => c.AXPBooleanWidgetFilterComponent),
|
|
2376
2659
|
},
|
|
2377
2660
|
column: {
|
|
2378
|
-
component: () => import('./acorex-platform-common-toggle-widget-column.component-
|
|
2661
|
+
component: () => import('./acorex-platform-common-toggle-widget-column.component-BnmR9hFM.mjs').then((c) => c.AXPToggleWidgetColumnComponent),
|
|
2379
2662
|
options: {
|
|
2380
2663
|
width: '100px',
|
|
2381
2664
|
allowResizing: true
|
|
@@ -2393,16 +2676,16 @@ class AXPCommonWidgetModule {
|
|
|
2393
2676
|
service.register({
|
|
2394
2677
|
component: {
|
|
2395
2678
|
view: {
|
|
2396
|
-
component: () => import('./acorex-platform-common-checkbox-widget-view.component-
|
|
2679
|
+
component: () => import('./acorex-platform-common-checkbox-widget-view.component-D7kmxXjj.mjs').then((c) => c.AXPCheckboxWidgetViewComponent),
|
|
2397
2680
|
},
|
|
2398
2681
|
edit: {
|
|
2399
|
-
component: () => import('./acorex-platform-common-checkbox-widget-edit.component-
|
|
2682
|
+
component: () => import('./acorex-platform-common-checkbox-widget-edit.component-BuS0Pg-j.mjs').then((c) => c.AXPCheckboxWidgetEditComponent),
|
|
2400
2683
|
},
|
|
2401
2684
|
filter: {
|
|
2402
|
-
component: () => import('./acorex-platform-common-boolean-widget-filter.component-
|
|
2685
|
+
component: () => import('./acorex-platform-common-boolean-widget-filter.component-DRDiIxsn.mjs').then((c) => c.AXPBooleanWidgetFilterComponent),
|
|
2403
2686
|
},
|
|
2404
2687
|
column: {
|
|
2405
|
-
component: () => import('./acorex-platform-common-checkbox-widget-column.component-
|
|
2688
|
+
component: () => import('./acorex-platform-common-checkbox-widget-column.component-Bn0tnHyT.mjs').then((c) => c.AXPCheckboxWidgetColumnComponent),
|
|
2406
2689
|
options: {
|
|
2407
2690
|
width: '100px',
|
|
2408
2691
|
allowResizing: true
|
|
@@ -2420,16 +2703,16 @@ class AXPCommonWidgetModule {
|
|
|
2420
2703
|
service.register({
|
|
2421
2704
|
component: {
|
|
2422
2705
|
view: {
|
|
2423
|
-
component: () => import('./acorex-platform-common-password-widget-view.component-
|
|
2706
|
+
component: () => import('./acorex-platform-common-password-widget-view.component-BVW-Zak-.mjs').then((c) => c.AXPPasswordWidgetViewComponent),
|
|
2424
2707
|
},
|
|
2425
2708
|
column: {
|
|
2426
|
-
component: () => import('./acorex-platform-common-password-widget-column.component-
|
|
2709
|
+
component: () => import('./acorex-platform-common-password-widget-column.component-CEWtRX1S.mjs').then((c) => c.AXPPasswordWidgetColumnComponent),
|
|
2427
2710
|
options: {
|
|
2428
2711
|
allowResizing: true
|
|
2429
2712
|
}
|
|
2430
2713
|
},
|
|
2431
2714
|
edit: {
|
|
2432
|
-
component: () => import('./acorex-platform-common-password-widget-edit.component-
|
|
2715
|
+
component: () => import('./acorex-platform-common-password-widget-edit.component-B-_m6f_C.mjs').then((c) => c.AXPPasswordWidgetEditComponent),
|
|
2433
2716
|
},
|
|
2434
2717
|
},
|
|
2435
2718
|
filterOptions: {
|
|
@@ -2443,19 +2726,19 @@ class AXPCommonWidgetModule {
|
|
|
2443
2726
|
service.register({
|
|
2444
2727
|
component: {
|
|
2445
2728
|
view: {
|
|
2446
|
-
component: () => import('./acorex-platform-common-file-widget-view.component-
|
|
2729
|
+
component: () => import('./acorex-platform-common-file-widget-view.component-RsQQjlL7.mjs').then((c) => c.AXPFileWidgetViewComponent),
|
|
2447
2730
|
},
|
|
2448
2731
|
column: {
|
|
2449
|
-
component: () => import('./acorex-platform-common-file-widget-column.component-
|
|
2732
|
+
component: () => import('./acorex-platform-common-file-widget-column.component-GtbElxmS.mjs').then((c) => c.AXPFileWidgetColumnComponent),
|
|
2450
2733
|
options: {
|
|
2451
2734
|
allowResizing: true
|
|
2452
2735
|
}
|
|
2453
2736
|
},
|
|
2454
2737
|
edit: {
|
|
2455
|
-
component: () => import('./acorex-platform-common-file-widget-edit.component-
|
|
2738
|
+
component: () => import('./acorex-platform-common-file-widget-edit.component-3fR5jRFv.mjs').then((c) => c.AXPFileWidgetEditComponent),
|
|
2456
2739
|
},
|
|
2457
2740
|
filter: {
|
|
2458
|
-
component: () => import('./acorex-platform-common-file-widget-filter.component-
|
|
2741
|
+
component: () => import('./acorex-platform-common-file-widget-filter.component-B7etTIuq.mjs').then((c) => c.AXPFileWidgetFilterComponent),
|
|
2459
2742
|
},
|
|
2460
2743
|
},
|
|
2461
2744
|
filterOptions: {
|
|
@@ -2469,16 +2752,16 @@ class AXPCommonWidgetModule {
|
|
|
2469
2752
|
service.register({
|
|
2470
2753
|
component: {
|
|
2471
2754
|
view: {
|
|
2472
|
-
component: () => import('./acorex-platform-common-lookup-widget-view.component-
|
|
2755
|
+
component: () => import('./acorex-platform-common-lookup-widget-view.component-DTNcGNir.mjs').then((c) => c.AXPLookupWidgetViewComponent),
|
|
2473
2756
|
},
|
|
2474
2757
|
edit: {
|
|
2475
|
-
component: () => import('./acorex-platform-common-lookup-widget-edit.component-
|
|
2758
|
+
component: () => import('./acorex-platform-common-lookup-widget-edit.component-uopyJIC1.mjs').then((c) => c.AXPLookupWidgetEditComponent),
|
|
2476
2759
|
},
|
|
2477
2760
|
filter: {
|
|
2478
|
-
component: () => import('./acorex-platform-common-lookup-widget-filter.component-
|
|
2761
|
+
component: () => import('./acorex-platform-common-lookup-widget-filter.component-D1lrIkz4.mjs').then((c) => c.AXPLookupWidgetFilterComponent),
|
|
2479
2762
|
},
|
|
2480
2763
|
column: {
|
|
2481
|
-
component: () => import('./acorex-platform-common-lookup-widget-column.component-
|
|
2764
|
+
component: () => import('./acorex-platform-common-lookup-widget-column.component-C5DZ-cez.mjs').then((c) => c.AXPLookupWidgetColumnComponent),
|
|
2482
2765
|
options: {
|
|
2483
2766
|
allowResizing: true
|
|
2484
2767
|
}
|
|
@@ -2495,19 +2778,19 @@ class AXPCommonWidgetModule {
|
|
|
2495
2778
|
service.register({
|
|
2496
2779
|
component: {
|
|
2497
2780
|
view: {
|
|
2498
|
-
component: () => import('./acorex-platform-common-selection-list-widget-view.component-
|
|
2781
|
+
component: () => import('./acorex-platform-common-selection-list-widget-view.component-DLc1MHex.mjs').then((c) => c.AXPSelectionListWidgetViewComponent),
|
|
2499
2782
|
},
|
|
2500
2783
|
edit: {
|
|
2501
|
-
component: () => import('./acorex-platform-common-selection-list-widget-edit.component-
|
|
2784
|
+
component: () => import('./acorex-platform-common-selection-list-widget-edit.component-Tdkf-0cn.mjs').then((c) => c.AXPSelectionListWidgetEditComponent),
|
|
2502
2785
|
},
|
|
2503
2786
|
column: {
|
|
2504
|
-
component: () => import('./acorex-platform-common-selection-list-widget-column.component-
|
|
2787
|
+
component: () => import('./acorex-platform-common-selection-list-widget-column.component-1zPVFgFG.mjs').then((c) => c.AXPSelectionListWidgetColumnComponent),
|
|
2505
2788
|
options: {
|
|
2506
2789
|
allowResizing: true
|
|
2507
2790
|
}
|
|
2508
2791
|
},
|
|
2509
2792
|
filter: {
|
|
2510
|
-
component: () => import('./acorex-platform-common-selection-list-widget-filter.component-
|
|
2793
|
+
component: () => import('./acorex-platform-common-selection-list-widget-filter.component-y2aFk-A6.mjs').then((c) => c.AXPSelectionListWidgetFilterComponent),
|
|
2511
2794
|
},
|
|
2512
2795
|
},
|
|
2513
2796
|
filterOptions: {
|
|
@@ -2521,22 +2804,22 @@ class AXPCommonWidgetModule {
|
|
|
2521
2804
|
service.register({
|
|
2522
2805
|
component: {
|
|
2523
2806
|
view: {
|
|
2524
|
-
component: () => import('./acorex-platform-common-rich-text-widget-view.component-
|
|
2807
|
+
component: () => import('./acorex-platform-common-rich-text-widget-view.component-B77Y5luo.mjs').then((c) => c.AXPRichTextWidgetViewComponent),
|
|
2525
2808
|
},
|
|
2526
2809
|
edit: {
|
|
2527
|
-
component: () => import('./acorex-platform-common-rich-text-widget-edit.component-
|
|
2810
|
+
component: () => import('./acorex-platform-common-rich-text-widget-edit.component-Dvv8JnXl.mjs').then((c) => c.AXPRichTextWidgetEditComponent),
|
|
2528
2811
|
options: {
|
|
2529
2812
|
allowResizing: true
|
|
2530
2813
|
}
|
|
2531
2814
|
},
|
|
2532
2815
|
column: {
|
|
2533
|
-
component: () => import('./acorex-platform-common-rich-text-widget-column.component-
|
|
2816
|
+
component: () => import('./acorex-platform-common-rich-text-widget-column.component-BJYxnZm2.mjs').then((c) => c.AXPRichTextWidgetColumnComponent),
|
|
2534
2817
|
options: {
|
|
2535
2818
|
width: '400px',
|
|
2536
2819
|
},
|
|
2537
2820
|
},
|
|
2538
2821
|
filter: {
|
|
2539
|
-
component: () => import('./acorex-platform-common-string-widget-filter.component-
|
|
2822
|
+
component: () => import('./acorex-platform-common-string-widget-filter.component-B9h7CnEz.mjs').then((c) => c.AXPStringWidgetFilterComponent),
|
|
2540
2823
|
},
|
|
2541
2824
|
},
|
|
2542
2825
|
filterOptions: {
|
|
@@ -2550,10 +2833,10 @@ class AXPCommonWidgetModule {
|
|
|
2550
2833
|
service.register({
|
|
2551
2834
|
component: {
|
|
2552
2835
|
view: {
|
|
2553
|
-
component: () => import('./acorex-platform-common-map-widget-view.component-
|
|
2836
|
+
component: () => import('./acorex-platform-common-map-widget-view.component-Deos8gVy.mjs').then((c) => c.AXPMapWidgetViewComponent),
|
|
2554
2837
|
},
|
|
2555
2838
|
edit: {
|
|
2556
|
-
component: () => import('./acorex-platform-common-map-widget-edit.component-
|
|
2839
|
+
component: () => import('./acorex-platform-common-map-widget-edit.component-h4SRiV6_.mjs').then((c) => c.AXPMapWidgetEditComponent),
|
|
2557
2840
|
},
|
|
2558
2841
|
},
|
|
2559
2842
|
filterOptions: {
|
|
@@ -2567,10 +2850,10 @@ class AXPCommonWidgetModule {
|
|
|
2567
2850
|
service.register({
|
|
2568
2851
|
component: {
|
|
2569
2852
|
view: {
|
|
2570
|
-
component: () => import('./acorex-platform-common-avatar-widget-view.component-
|
|
2853
|
+
component: () => import('./acorex-platform-common-avatar-widget-view.component-CfHELBLm.mjs').then((c) => c.AXPAvatarWidgetViewComponent),
|
|
2571
2854
|
},
|
|
2572
2855
|
edit: {
|
|
2573
|
-
component: () => import('./acorex-platform-common-avatar-widget-edit.component-
|
|
2856
|
+
component: () => import('./acorex-platform-common-avatar-widget-edit.component-BYEjzXpW.mjs').then((c) => c.AXPAvatarWidgetEditComponent),
|
|
2574
2857
|
},
|
|
2575
2858
|
},
|
|
2576
2859
|
filterOptions: {
|
|
@@ -2584,13 +2867,13 @@ class AXPCommonWidgetModule {
|
|
|
2584
2867
|
service.register({
|
|
2585
2868
|
component: {
|
|
2586
2869
|
view: {
|
|
2587
|
-
component: () => import('./acorex-platform-common-messenger-widget-view.component-
|
|
2870
|
+
component: () => import('./acorex-platform-common-messenger-widget-view.component-DA9MiNb9.mjs').then((c) => c.AXPMessengerWidgetViewComponent),
|
|
2588
2871
|
},
|
|
2589
2872
|
edit: {
|
|
2590
|
-
component: () => import('./acorex-platform-common-messenger-widget-edit.component-
|
|
2873
|
+
component: () => import('./acorex-platform-common-messenger-widget-edit.component-m_zxHCw5.mjs').then((c) => c.AXPMessengerWidgetEditComponent),
|
|
2591
2874
|
},
|
|
2592
2875
|
column: {
|
|
2593
|
-
component: () => import('./acorex-platform-common-messenger-widget-column.component-
|
|
2876
|
+
component: () => import('./acorex-platform-common-messenger-widget-column.component-DN8dFLZD.mjs').then((c) => c.AXPMessengerWidgetColumnComponent),
|
|
2594
2877
|
options: {
|
|
2595
2878
|
allowResizing: true
|
|
2596
2879
|
}
|
|
@@ -2608,13 +2891,13 @@ class AXPCommonWidgetModule {
|
|
|
2608
2891
|
service.register({
|
|
2609
2892
|
component: {
|
|
2610
2893
|
view: {
|
|
2611
|
-
component: () => import('./acorex-platform-common-gallery-widget-view.component-
|
|
2894
|
+
component: () => import('./acorex-platform-common-gallery-widget-view.component-YaLJU3Cv.mjs').then((c) => c.AXPGalleryWidgetViewComponent),
|
|
2612
2895
|
},
|
|
2613
2896
|
edit: {
|
|
2614
|
-
component: () => import('./acorex-platform-common-gallery-widget-edit.component-
|
|
2897
|
+
component: () => import('./acorex-platform-common-gallery-widget-edit.component-CixJEDUT.mjs').then((c) => c.AXPGalleryWidgetEditComponent),
|
|
2615
2898
|
},
|
|
2616
2899
|
filter: {
|
|
2617
|
-
component: () => import('./acorex-platform-common-gallery-widget-filter.component-
|
|
2900
|
+
component: () => import('./acorex-platform-common-gallery-widget-filter.component-1wzY6U5s.mjs').then((c) => c.AXPGalleryWidgetFilterComponent),
|
|
2618
2901
|
},
|
|
2619
2902
|
},
|
|
2620
2903
|
filterOptions: {
|
|
@@ -2628,10 +2911,10 @@ class AXPCommonWidgetModule {
|
|
|
2628
2911
|
service.register({
|
|
2629
2912
|
component: {
|
|
2630
2913
|
view: {
|
|
2631
|
-
component: () => import('./acorex-platform-common-signature-pad-widget-view.component-
|
|
2914
|
+
component: () => import('./acorex-platform-common-signature-pad-widget-view.component-D5XVZ88b.mjs').then((c) => c.AXPSignaturePadWidgetViewComponent),
|
|
2632
2915
|
},
|
|
2633
2916
|
edit: {
|
|
2634
|
-
component: () => import('./acorex-platform-common-signature-pad-widget-edit.component-
|
|
2917
|
+
component: () => import('./acorex-platform-common-signature-pad-widget-edit.component-qUuwwYlj.mjs').then((c) => c.AXPSignaturePadWidgetEditComponent),
|
|
2635
2918
|
},
|
|
2636
2919
|
},
|
|
2637
2920
|
filterOptions: {
|
|
@@ -2657,286 +2940,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
|
2657
2940
|
}]
|
|
2658
2941
|
}], ctorParameters: () => [{ type: AXPSchemaRegistryService }] });
|
|
2659
2942
|
|
|
2660
|
-
class AXPClipBoardService {
|
|
2661
|
-
constructor() {
|
|
2662
|
-
this.toast = inject(AXToastService);
|
|
2663
|
-
}
|
|
2664
|
-
copy(title, value) {
|
|
2665
|
-
const copyText = document.createElement('input');
|
|
2666
|
-
copyText.type = 'text';
|
|
2667
|
-
copyText.select();
|
|
2668
|
-
copyText.setSelectionRange(0, 99999); // For mobile devices
|
|
2669
|
-
copyText.remove();
|
|
2670
|
-
navigator.clipboard.writeText(value);
|
|
2671
|
-
this.toast.success(`${title} copied!`);
|
|
2672
|
-
}
|
|
2673
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPClipBoardService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2674
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPClipBoardService, providedIn: 'root' }); }
|
|
2675
|
-
}
|
|
2676
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPClipBoardService, decorators: [{
|
|
2677
|
-
type: Injectable,
|
|
2678
|
-
args: [{
|
|
2679
|
-
providedIn: 'root',
|
|
2680
|
-
}]
|
|
2681
|
-
}] });
|
|
2682
|
-
|
|
2683
|
-
class AXPRouteUtilityService {
|
|
2684
|
-
constructor(router) {
|
|
2685
|
-
this.router = router;
|
|
2686
|
-
this.routeActiveCache = {};
|
|
2687
|
-
// Subscribe to NavigationEnd events to update the cache
|
|
2688
|
-
this.router.events
|
|
2689
|
-
.pipe(filter((event) => event instanceof NavigationEnd))
|
|
2690
|
-
.subscribe(() => {
|
|
2691
|
-
this.clearRouteCache();
|
|
2692
|
-
});
|
|
2693
|
-
}
|
|
2694
|
-
isRouteActive(item) {
|
|
2695
|
-
const route = item.path;
|
|
2696
|
-
if (!route)
|
|
2697
|
-
return false;
|
|
2698
|
-
// // Check if the result is already cached
|
|
2699
|
-
// if (this.routeActiveCache.hasOwnProperty(route)) {
|
|
2700
|
-
// return this.routeActiveCache[route];
|
|
2701
|
-
// }
|
|
2702
|
-
// Calculate the route activity
|
|
2703
|
-
const isActive = window.location.pathname.startsWith(route);
|
|
2704
|
-
// Cache the result
|
|
2705
|
-
this.routeActiveCache[route] = isActive;
|
|
2706
|
-
return isActive;
|
|
2707
|
-
}
|
|
2708
|
-
clearRouteCache() {
|
|
2709
|
-
this.routeActiveCache = {};
|
|
2710
|
-
}
|
|
2711
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPRouteUtilityService, deps: [{ token: i2$1.Router }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2712
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPRouteUtilityService, providedIn: 'root' }); }
|
|
2713
|
-
}
|
|
2714
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPRouteUtilityService, decorators: [{
|
|
2715
|
-
type: Injectable,
|
|
2716
|
-
args: [{
|
|
2717
|
-
providedIn: 'root',
|
|
2718
|
-
}]
|
|
2719
|
-
}], ctorParameters: () => [{ type: i2$1.Router }] });
|
|
2720
|
-
|
|
2721
|
-
class AXPDataGenerator {
|
|
2722
|
-
static uuid() {
|
|
2723
|
-
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (char) => {
|
|
2724
|
-
const random = (Math.random() * 16) | 0;
|
|
2725
|
-
const value = char === 'x' ? random : (random & 0x3) | 0x8;
|
|
2726
|
-
return value.toString(16);
|
|
2727
|
-
});
|
|
2728
|
-
}
|
|
2729
|
-
static number(...args) {
|
|
2730
|
-
let min = 0;
|
|
2731
|
-
let max = 100;
|
|
2732
|
-
if (args.length == 1)
|
|
2733
|
-
max = args[0];
|
|
2734
|
-
if (args.length == 2) {
|
|
2735
|
-
min = args[0];
|
|
2736
|
-
max = args[1];
|
|
2737
|
-
}
|
|
2738
|
-
return Math.floor(Math.random() * (max - min + 1)) + min;
|
|
2739
|
-
}
|
|
2740
|
-
static date(...args) {
|
|
2741
|
-
let start = new Date(2000, 0, 1);
|
|
2742
|
-
let end = new Date();
|
|
2743
|
-
if (args.length === 1) {
|
|
2744
|
-
start = args[0];
|
|
2745
|
-
}
|
|
2746
|
-
else if (args.length === 2) {
|
|
2747
|
-
start = args[0];
|
|
2748
|
-
end = args[1];
|
|
2749
|
-
}
|
|
2750
|
-
const startTime = start.getTime();
|
|
2751
|
-
const endTime = end.getTime();
|
|
2752
|
-
return new Date(startTime + Math.random() * (endTime - startTime));
|
|
2753
|
-
}
|
|
2754
|
-
static array(length = 5, generator) {
|
|
2755
|
-
return Array.from({ length }, generator);
|
|
2756
|
-
}
|
|
2757
|
-
static pick(...args) {
|
|
2758
|
-
if (args.length < 1) {
|
|
2759
|
-
throw new Error('Invalid parameters');
|
|
2760
|
-
}
|
|
2761
|
-
const items = args[0];
|
|
2762
|
-
const count = args[1] ?? 1;
|
|
2763
|
-
if (count < 1) {
|
|
2764
|
-
throw new Error('Count must be at least 1');
|
|
2765
|
-
}
|
|
2766
|
-
// If the count is greater than the number of items, just return a shuffled copy of the array
|
|
2767
|
-
if (count >= items.length) {
|
|
2768
|
-
return [...items].sort(() => Math.random() - 0.5);
|
|
2769
|
-
}
|
|
2770
|
-
// Shuffle the array and slice the first 'count' elements
|
|
2771
|
-
const shuffled = items.slice();
|
|
2772
|
-
for (let i = shuffled.length - 1; i > 0; i--) {
|
|
2773
|
-
const j = Math.floor(Math.random() * (i + 1));
|
|
2774
|
-
[shuffled[i], shuffled[j]] = [shuffled[j], shuffled[i]]; // Swap elements
|
|
2775
|
-
}
|
|
2776
|
-
return count == 1 ? shuffled.slice(0, count)[0] : shuffled.slice(0, count);
|
|
2777
|
-
}
|
|
2778
|
-
static string(length = 10) {
|
|
2779
|
-
const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
|
|
2780
|
-
return Array.from({ length }, () => chars.charAt(Math.floor(Math.random() * chars.length))).join('');
|
|
2781
|
-
}
|
|
2782
|
-
static boolean() {
|
|
2783
|
-
return Math.random() >= 0.5;
|
|
2784
|
-
}
|
|
2785
|
-
static item(array = []) {
|
|
2786
|
-
return array.length > 0 ? array[Math.floor(Math.random() * array.length)] : undefined;
|
|
2787
|
-
}
|
|
2788
|
-
static color() {
|
|
2789
|
-
const color = Math.floor(Math.random() * 16777215).toString(16);
|
|
2790
|
-
return `#${color.padStart(6, '0')}`;
|
|
2791
|
-
}
|
|
2792
|
-
static alphanumeric(length = 10) {
|
|
2793
|
-
const chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
|
|
2794
|
-
return Array.from({ length }, () => chars.charAt(Math.floor(Math.random() * chars.length))).join('');
|
|
2795
|
-
}
|
|
2796
|
-
static alphabet(length = 10) {
|
|
2797
|
-
const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
|
|
2798
|
-
return Array.from({ length }, () => chars.charAt(Math.floor(Math.random() * chars.length))).join('');
|
|
2799
|
-
}
|
|
2800
|
-
static phone() {
|
|
2801
|
-
const areaCode = this.number(100, 999);
|
|
2802
|
-
const exchangeCode = this.number(100, 999);
|
|
2803
|
-
const lineNumber = this.number(1000, 9999);
|
|
2804
|
-
return `${areaCode}-${exchangeCode}-${lineNumber}`;
|
|
2805
|
-
}
|
|
2806
|
-
static firstName() {
|
|
2807
|
-
const firstNames = ['John', 'Allen', 'Jak', 'Rose', 'Kate', 'Liam', 'Olivia', 'Noah', 'Emma', 'Ava'];
|
|
2808
|
-
return this.pick(firstNames);
|
|
2809
|
-
}
|
|
2810
|
-
static lastName() {
|
|
2811
|
-
const lastNames = ['Gates', 'Jonsen', 'Smith', 'Ford', 'Jakson', 'Brown', 'Johnson', 'Williams', 'Jones', 'Garcia'];
|
|
2812
|
-
return this.pick(lastNames);
|
|
2813
|
-
}
|
|
2814
|
-
static email(...args) {
|
|
2815
|
-
const domains = ['gmail.com', 'yahoo.com', 'outlook.com', 'example.com'];
|
|
2816
|
-
const domain = this.pick(domains);
|
|
2817
|
-
const separator = this.pick(['.', '_', '']);
|
|
2818
|
-
const randomSuffix = this.boolean() ? this.number(1, 99).toString() : '';
|
|
2819
|
-
if (args.length === 2) {
|
|
2820
|
-
const firstName = args[0].toLowerCase();
|
|
2821
|
-
const lastName = args[1].toLowerCase();
|
|
2822
|
-
return `${firstName}${separator}${lastName}${randomSuffix}@${domain}`;
|
|
2823
|
-
}
|
|
2824
|
-
else {
|
|
2825
|
-
const firstName = this.firstName().toLowerCase();
|
|
2826
|
-
const lastName = this.lastName().toLowerCase();
|
|
2827
|
-
return `${firstName}${separator}${lastName}${randomSuffix}@${domain}`;
|
|
2828
|
-
}
|
|
2829
|
-
}
|
|
2830
|
-
static country() {
|
|
2831
|
-
const countries = ['USA', 'Canada', 'Mexico', 'Germany', 'France', 'Japan', 'Australia'];
|
|
2832
|
-
return this.pick(countries);
|
|
2833
|
-
}
|
|
2834
|
-
static city() {
|
|
2835
|
-
const cities = ['New York', 'Los Angeles', 'Toronto', 'Vancouver', 'Berlin', 'Paris', 'Tokyo', 'Sydney'];
|
|
2836
|
-
return this.pick(cities);
|
|
2837
|
-
}
|
|
2838
|
-
static state() {
|
|
2839
|
-
const states = ['NY', 'CA', 'TX', 'ON', 'BC', 'NSW', 'BER', 'IDF', 'TYO'];
|
|
2840
|
-
return this.pick(states);
|
|
2841
|
-
}
|
|
2842
|
-
static address() {
|
|
2843
|
-
const streets = ['Main St', 'High St', 'Maple Ave', 'Oak St', 'Pine St', 'Cedar St'];
|
|
2844
|
-
const streetNumber = this.number(100, 9999);
|
|
2845
|
-
const street = this.pick(streets);
|
|
2846
|
-
const city = this.city();
|
|
2847
|
-
const state = this.state();
|
|
2848
|
-
const zip = this.number(10000, 99999);
|
|
2849
|
-
const country = this.country();
|
|
2850
|
-
return `${streetNumber} ${street}, ${city}, ${state} ${zip}, ${country}`;
|
|
2851
|
-
}
|
|
2852
|
-
}
|
|
2853
|
-
|
|
2854
|
-
// AXPPdfService
|
|
2855
|
-
var AXPPdfPageSize;
|
|
2856
|
-
(function (AXPPdfPageSize) {
|
|
2857
|
-
AXPPdfPageSize["A4"] = "a4";
|
|
2858
|
-
AXPPdfPageSize["A5"] = "a5";
|
|
2859
|
-
AXPPdfPageSize["Letter"] = "letter";
|
|
2860
|
-
AXPPdfPageSize["Legal"] = "legal";
|
|
2861
|
-
AXPPdfPageSize["Custom"] = "custom"; // Handle custom sizes
|
|
2862
|
-
})(AXPPdfPageSize || (AXPPdfPageSize = {}));
|
|
2863
|
-
class AXPPdfService {
|
|
2864
|
-
constructor() {
|
|
2865
|
-
this.renderer = inject(RendererFactory2).createRenderer(null, null);
|
|
2866
|
-
}
|
|
2867
|
-
async generatePdfBlob(div, options = {}) {
|
|
2868
|
-
const { jsPDF } = await import('jspdf');
|
|
2869
|
-
const html2canvas = (await import('html2canvas')).default;
|
|
2870
|
-
const element = typeof div === 'string' ? document.getElementById(div) : div;
|
|
2871
|
-
if (!element) {
|
|
2872
|
-
console.error('Element not found.');
|
|
2873
|
-
return Promise.reject('Element not found.');
|
|
2874
|
-
}
|
|
2875
|
-
const { pageSize = AXPPdfPageSize.A4 } = options;
|
|
2876
|
-
let pdf;
|
|
2877
|
-
if (typeof pageSize === 'string' && pageSize !== AXPPdfPageSize.Custom) {
|
|
2878
|
-
pdf = new jsPDF({
|
|
2879
|
-
orientation: 'portrait',
|
|
2880
|
-
format: pageSize
|
|
2881
|
-
});
|
|
2882
|
-
}
|
|
2883
|
-
else if (typeof pageSize !== 'string') {
|
|
2884
|
-
const { width, height } = pageSize;
|
|
2885
|
-
pdf = new jsPDF({
|
|
2886
|
-
orientation: 'portrait',
|
|
2887
|
-
unit: 'pt',
|
|
2888
|
-
format: [width, height]
|
|
2889
|
-
});
|
|
2890
|
-
}
|
|
2891
|
-
else {
|
|
2892
|
-
return Promise.reject("Invalid page size.");
|
|
2893
|
-
}
|
|
2894
|
-
const canvas = await html2canvas(element);
|
|
2895
|
-
const imageData = canvas.toDataURL('image/png');
|
|
2896
|
-
const imgProps = pdf.getImageProperties(imageData);
|
|
2897
|
-
const pdfWidth = pdf.internal.pageSize.getWidth();
|
|
2898
|
-
const pdfHeight = (imgProps.height * pdfWidth) / imgProps.width;
|
|
2899
|
-
pdf.addImage(imageData, 'PNG', 0, 0, pdfWidth, pdfHeight);
|
|
2900
|
-
return pdf.output('bloburl');
|
|
2901
|
-
}
|
|
2902
|
-
async printPdf(div, options = {}) {
|
|
2903
|
-
const blobUrl = await this.generatePdfBlob(div, options).catch(err => {
|
|
2904
|
-
console.error('Failed to generate PDF', err);
|
|
2905
|
-
return null;
|
|
2906
|
-
});
|
|
2907
|
-
if (!blobUrl)
|
|
2908
|
-
return;
|
|
2909
|
-
const iframe = this.renderer.createElement('iframe');
|
|
2910
|
-
this.renderer.setStyle(iframe, 'display', 'none');
|
|
2911
|
-
this.renderer.appendChild(document.body, iframe);
|
|
2912
|
-
iframe.src = blobUrl;
|
|
2913
|
-
iframe.onload = () => {
|
|
2914
|
-
setTimeout(() => {
|
|
2915
|
-
iframe.contentWindow.print();
|
|
2916
|
-
}, 1000);
|
|
2917
|
-
};
|
|
2918
|
-
// Add a button or some UI element that allows the user to manually signal they are done printing
|
|
2919
|
-
// const finishButton = this.renderer.createElement('button');
|
|
2920
|
-
// this.renderer.setProperty(finishButton, 'innerText', 'Finish Printing');
|
|
2921
|
-
// this.renderer.listen(finishButton, 'click', () => {
|
|
2922
|
-
// this.renderer.removeChild(document.body, iframe);
|
|
2923
|
-
// this.renderer.removeChild(document.body, finishButton);
|
|
2924
|
-
// });
|
|
2925
|
-
// this.renderer.appendChild(document.body, finishButton);
|
|
2926
|
-
}
|
|
2927
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPPdfService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2928
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPPdfService, providedIn: 'root' }); }
|
|
2929
|
-
}
|
|
2930
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPPdfService, decorators: [{
|
|
2931
|
-
type: Injectable,
|
|
2932
|
-
args: [{
|
|
2933
|
-
providedIn: 'root'
|
|
2934
|
-
}]
|
|
2935
|
-
}] });
|
|
2936
|
-
|
|
2937
2943
|
/**
|
|
2938
2944
|
* Generated bundle index. Do not edit.
|
|
2939
2945
|
*/
|
|
2940
2946
|
|
|
2941
|
-
export { AXEntityLoaderDefault, AXMEntityCrudService, AXMEntityCrudServiceImpl, AXMWorkflowErrorHandler, AXMenuLoaderDefault, AXPAppStartUpProvider, AXPAppStartUpService, AXPClipBoardService, AXPCommonEffects, AXPCommonModule, AXPCommonWidgetModule, AXPComponentLogoConfig, AXPComponentSlotDirective, AXPComponentSlotLoaderService, AXPComponentSlotModule, AXPComponentSlotRegistryService, AXPDataGenerator, AXPDataProvider, AXPDataSeederService, AXPDexieEntityStorageService, AXPDialogConfirmAction, AXPEntityCommandScope, AXPEntityDataProvider, AXPEntityDataProviderImpl, AXPEntityListViewConfigEmpty, AXPEntityQueryType, AXPEntityRegistryService, AXPEntityStorageService, AXPErrorHandlerRegistryService, AXPFontIconLogoConfig, AXPFooterTextSlotComponent, AXPGlobalErrorHandler, AXPGridLayoutDirective, AXPImageUrlLogoConfig, AXPLayoutChildDrawerClose, AXPLayoutChildDrawerToggle, AXPLayoutEffects, AXPLayoutFeature, AXPLayoutRootDrawerClose, AXPLayoutRootDrawerToggle, AXPLayoutService, AXPLoadingHideAction, AXPLoadingShowAction, AXPLogoComponent, AXPMenuProviderService, AXPMenuService, AXPNavBarSlotComponent, AXPNavigateAction, AXPPdfPageSize, AXPPdfService, AXPPlatformDefaultConfigs, AXPRedirectEvent, AXPRelationshipCardinality, AXPRelationshipKind, AXPRouteUtilityService, AXPSchemaModule, AXPSchemaRegistryService, AXPSettingsService, AXPSignInAction, AXPSignOutAction, AXPStickyDirective, AXPTextLogoConfig, AXPToastAction, AXPWidgetBase, AXPWidgetColumnRendererComponent, AXPWidgetEditBase, AXPWidgetFilterBase, AXPWidgetFilterRendererComponent, AXPWidgetRendererComponent, AXPWindowResizeAction, AXPWorkflowNavigateAction, AXP_DATA_SEEDER_TOKEN, AXP_ENTITY_LOADER, AXP_MENU_LOADER, AXP_MENU_PROVIDER, AXP_PLATFORM_CONFIG_TOKEN, AXP_ROOT_CONFIG_TOKEN, AXP_SETTINGS_PROVIDER, AXP_WIDGET_TOKEN, BETWEEN_OPER, BOOLEAN_OPERATORS, CONTAINS_OPER, DATE_OPERATORS, ENDS_WITH_OPER, ENVIRONMENT, EQ_OPER, GTE_OPER, GT_OPER, IS_EMPTY_OPER, IS_NOT_EMPTY_OPER, LTE_OPER, LT_OPER, NOT_CONTAINS_OPER, NOT_EQ_OPER, NUMBER_OPERATORS, STARTS_WITH_OPER, STRING_OPERATORS, configPlatform, convertPropertiesToColumns, convertPropertyToColumn, getChildDrawer, getRootDrawer, initialState, isLoading, isSmallScreen, name, reducer, resolveActionLook, selectLayoutState, widgetSchemas };
|
|
2947
|
+
export { AXEntityLoaderDefault, AXMEntityCrudService, AXMEntityCrudServiceImpl, AXMWorkflowErrorHandler, AXMenuLoaderDefault, AXPAppStartUpProvider, AXPAppStartUpService, AXPClipBoardService, AXPCommonEffects, AXPCommonModule, AXPCommonWidgetModule, AXPComponentLogoConfig, AXPComponentSlotDirective, AXPComponentSlotLoaderService, AXPComponentSlotModule, AXPComponentSlotRegistryService, AXPDataGenerator, AXPDataProvider, AXPDataSeederService, AXPDexieEntityStorageService, AXPDialogConfirmAction, AXPEntityCommandScope, AXPEntityDataProvider, AXPEntityDataProviderImpl, AXPEntityListViewConfigEmpty, AXPEntityQueryType, AXPEntityRegistryService, AXPEntityStorageService, AXPErrorHandlerRegistryService, AXPFontIconLogoConfig, AXPFooterTextSlotComponent, AXPGlobalErrorHandler, AXPGridLayoutDirective, AXPImageUrlLogoConfig, AXPLayoutChildDrawerClose, AXPLayoutChildDrawerToggle, AXPLayoutEffects, AXPLayoutFeature, AXPLayoutRootDrawerClose, AXPLayoutRootDrawerToggle, AXPLayoutService, AXPLoadingHideAction, AXPLoadingShowAction, AXPLogoComponent, AXPMenuProviderService, AXPMenuService, AXPNavBarSlotComponent, AXPNavigateAction, AXPPdfPageSize, AXPPdfService, AXPPlatformDefaultConfigs, AXPRedirectEvent, AXPRelationshipCardinality, AXPRelationshipKind, AXPRouteUtilityService, AXPSchemaModule, AXPSchemaRegistryService, AXPSettingsService, AXPSignInAction, AXPSignOutAction, AXPStickyDirective, AXPTextLogoConfig, AXPToastAction, AXPWidgetBase, AXPWidgetColumnRendererComponent, AXPWidgetEditBase, AXPWidgetFilterBase, AXPWidgetFilterRendererComponent, AXPWidgetRendererComponent, AXPWindowResizeAction, AXPWorkflowNavigateAction, AXP_DATA_SEEDER_TOKEN, AXP_ENTITY_LOADER, AXP_MENU_LOADER, AXP_MENU_PROVIDER, AXP_PLATFORM_CONFIG_TOKEN, AXP_ROOT_CONFIG_TOKEN, AXP_SETTINGS_PROVIDER, AXP_WIDGET_TOKEN, BETWEEN_OPER, BOOLEAN_OPERATORS, CONTAINS_OPER, DATE_OPERATORS, ENDS_WITH_OPER, ENVIRONMENT, EQ_OPER, GTE_OPER, GT_OPER, IS_EMPTY_OPER, IS_NOT_EMPTY_OPER, LTE_OPER, LT_OPER, NOT_CONTAINS_OPER, NOT_EQ_OPER, NUMBER_OPERATORS, STARTS_WITH_OPER, STRING_OPERATORS, configPlatform, convertPropertiesToColumns, convertPropertyToColumn, getChildDrawer, getEntityInfo, getRootDrawer, initialState, isLoading, isSmallScreen, name, reducer, resolveActionLook, selectLayoutState, widgetSchemas };
|
|
2942
2948
|
//# sourceMappingURL=acorex-platform-common.mjs.map
|