@acorex/platform 18.2.2 → 18.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common/lib/app/operators.d.ts +1 -0
- package/common/lib/common.module.d.ts +6 -7
- package/common/lib/data/filter-middleware.service.d.ts +28 -0
- package/common/lib/data/index.d.ts +3 -1
- package/common/lib/data/operators.service.d.ts +14 -0
- package/common/lib/layout/index.d.ts +0 -2
- package/common/lib/schema/widgets/dateTime/dateTime-widget-edit.component.d.ts +0 -2
- package/common/lib/schema/widgets/dateTime/dateTime-widget-filter.component.d.ts +1 -0
- package/common/lib/schema/widgets/email/email-widget-edit.component.d.ts +0 -2
- package/common/lib/schema/widgets/phone/phone-widget-edit.component.d.ts +0 -2
- package/common/lib/schema/widgets/text/text-widget-edit.component.d.ts +0 -2
- package/common/lib/settings/setting-definition.provider.d.ts +6 -6
- package/common/lib/settings/settings.types.d.ts +18 -9
- package/esm2022/common/lib/app/operators.mjs +16 -1
- package/esm2022/common/lib/common.module.mjs +23 -12
- package/esm2022/common/lib/data/filter-middleware.service.mjs +53 -0
- package/esm2022/common/lib/data/index.mjs +4 -2
- package/esm2022/common/lib/data/operators.service.mjs +15 -0
- package/esm2022/common/lib/layout/index.mjs +1 -3
- package/esm2022/common/lib/layout/menu/menu.service.mjs +2 -2
- package/esm2022/common/lib/schema/widgets/dateTime/dateTime-widget-edit.component.mjs +7 -8
- package/esm2022/common/lib/schema/widgets/dateTime/dateTime-widget-filter.component.mjs +47 -25
- package/esm2022/common/lib/schema/widgets/email/email-widget-edit.component.mjs +6 -7
- package/esm2022/common/lib/schema/widgets/phone/phone-widget-edit.component.mjs +6 -7
- package/esm2022/common/lib/schema/widgets/text/text-widget-edit.component.mjs +6 -7
- package/esm2022/common/lib/settings/setting-definition.provider.mjs +141 -187
- package/esm2022/common/lib/settings/settings.types.mjs +2 -7
- package/esm2022/common/lib/utils/data-generator.mjs +1 -1
- package/esm2022/layout/builder/lib/builder/widget-catalog.mjs +2 -1
- package/esm2022/layout/builder/lib/builder/widget.types.mjs +11 -6
- package/esm2022/layout/designer/lib/designer/components/header-menu/header-menu.component.mjs +2 -7
- package/esm2022/layout/entity/lib/entity-detail-list.viewmodel.mjs +8 -6
- package/esm2022/layout/entity/lib/entity-master-create.viewmodel.mjs +4 -3
- package/esm2022/layout/entity/lib/entity-master-list.viewmodel.mjs +9 -7
- package/esm2022/layout/entity/lib/entity-master-single.viewmodel.mjs +4 -3
- package/esm2022/layout/entity/lib/entity-master-update.viewmodel.mjs +3 -3
- package/esm2022/layout/entity/lib/entity.module.mjs +12 -1
- package/esm2022/layout/setting/acorex-platform-layout-setting.mjs +5 -0
- package/esm2022/layout/setting/index.mjs +2 -0
- package/esm2022/layout/setting/lib/setting.viewmodel.mjs +50 -0
- package/esm2022/layouts/lib/admin/admin.module.mjs +17 -5
- package/esm2022/layouts/lib/admin/entity-layout/entity-create-view/entity-create-view.config.mjs +3 -3
- package/esm2022/layouts/lib/admin/entity-layout/entity-details-view/detail-view.config.mjs +4 -3
- package/esm2022/layouts/lib/admin/entity-layout/entity-details-view/entity-details-view.component.mjs +8 -23
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-columns/list-view-option-columns.component.mjs +2 -6
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-conditions/list-view-option-conditions.component.mjs +4 -5
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/entity-list-view.component.mjs +4 -8
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/list-view.config.mjs +12 -10
- package/esm2022/layouts/lib/admin/entity-layout/entity-modify-view/entity-modify-view.config.mjs +3 -3
- package/esm2022/layouts/lib/admin/entity-layout/entity-quick-view/entity-quick-view.component.mjs +1 -3
- package/esm2022/themes/default/index.mjs +2 -1
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-detail-list-view/entity-detail-list-view.component.mjs +18 -24
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-list-view/entity-master-list-view.component.mjs +6 -9
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-list-view/list-view-option-columns/list-view-option-columns.component.mjs +2 -6
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-single-view/entity-master-single-view.component.mjs +6 -8
- package/esm2022/themes/default/lib/layouts/root-layout/components/header/header.component.mjs +6 -8
- package/esm2022/themes/default/lib/layouts/root-layout/root-layout.component.mjs +11 -38
- package/esm2022/themes/default/lib/layouts/setting-layout/convert-setting-data.mjs +49 -0
- package/esm2022/themes/default/lib/layouts/setting-layout/index.mjs +3 -0
- package/esm2022/themes/default/lib/layouts/setting-layout/setting-preview/setting-preview.component.mjs +104 -0
- package/esm2022/themes/default/lib/layouts/setting-layout/setting-view/setting-menu.component.mjs +44 -0
- package/esm2022/themes/shared/lib/services/theme.service.mjs +183 -19
- package/esm2022/widgets/lib/properties/layout.props.mjs +13 -13
- package/esm2022/widgets/lib/widgets/advance/cron-job/cron-job-widget-column.component.mjs +20 -0
- package/esm2022/widgets/lib/widgets/advance/cron-job/cron-job-widget-designer.component.mjs +18 -0
- package/esm2022/widgets/lib/widgets/advance/cron-job/cron-job-widget-edit.component.mjs +24 -0
- package/esm2022/widgets/lib/widgets/advance/cron-job/cron-job-widget-filter.component.mjs +20 -0
- package/esm2022/widgets/lib/widgets/advance/cron-job/cron-job-widget-print.component.mjs +19 -0
- package/esm2022/widgets/lib/widgets/advance/cron-job/cron-job-widget-view.component.mjs +22 -0
- package/esm2022/widgets/lib/widgets/advance/cron-job/cron-job-widget.config.mjs +31 -0
- package/esm2022/widgets/lib/widgets/advance/cron-job/index.mjs +8 -0
- package/esm2022/widgets/lib/widgets/editors/selection-list/selection-list-widget-designer.component.mjs +4 -9
- package/esm2022/widgets/lib/widgets/editors/selection-list/selection-list-widget-edit.component.mjs +2 -9
- package/esm2022/widgets/lib/widgets/layout/block/block-widget.config.mjs +6 -7
- package/esm2022/widgets/lib/widgets.module.mjs +5 -2
- package/fesm2022/{acorex-platform-common-avatar-widget-edit.component-vDhYokEG.mjs → acorex-platform-common-avatar-widget-edit.component-DtC2IaE8.mjs} +3 -4
- package/fesm2022/{acorex-platform-common-avatar-widget-edit.component-vDhYokEG.mjs.map → acorex-platform-common-avatar-widget-edit.component-DtC2IaE8.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-avatar-widget-view.component-Dew3CVLm.mjs → acorex-platform-common-avatar-widget-view.component-BOIV0Be1.mjs} +4 -5
- package/fesm2022/acorex-platform-common-avatar-widget-view.component-BOIV0Be1.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-boolean-widget-filter.component-BdE7WOK5.mjs → acorex-platform-common-boolean-widget-filter.component-S4-3SmKA.mjs} +3 -4
- package/fesm2022/acorex-platform-common-boolean-widget-filter.component-S4-3SmKA.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-checkbox-widget-column.component-Bj5rjEk1.mjs → acorex-platform-common-checkbox-widget-column.component-DOoneR7g.mjs} +4 -5
- package/fesm2022/{acorex-platform-common-checkbox-widget-column.component-Bj5rjEk1.mjs.map → acorex-platform-common-checkbox-widget-column.component-DOoneR7g.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-checkbox-widget-edit.component-ChXbJsuG.mjs → acorex-platform-common-checkbox-widget-edit.component-PFRq-XS-.mjs} +4 -5
- package/fesm2022/acorex-platform-common-checkbox-widget-edit.component-PFRq-XS-.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-checkbox-widget-view.component-CbQwjE_u.mjs → acorex-platform-common-checkbox-widget-view.component-CKz8XnjT.mjs} +4 -5
- package/fesm2022/{acorex-platform-common-checkbox-widget-view.component-CbQwjE_u.mjs.map → acorex-platform-common-checkbox-widget-view.component-CKz8XnjT.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-dateTime-widget-column.component-QUYyDVw8.mjs → acorex-platform-common-dateTime-widget-column.component-DG0leXAo.mjs} +4 -5
- package/fesm2022/acorex-platform-common-dateTime-widget-column.component-DG0leXAo.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-dateTime-widget-edit.component-CzLb3xnR.mjs → acorex-platform-common-dateTime-widget-edit.component-D8W-XEcx.mjs} +10 -13
- package/fesm2022/acorex-platform-common-dateTime-widget-edit.component-D8W-XEcx.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-dateTime-widget-filter.component-DZRQ6yVk.mjs → acorex-platform-common-dateTime-widget-filter.component-DngCKwFY.mjs} +49 -28
- package/fesm2022/acorex-platform-common-dateTime-widget-filter.component-DngCKwFY.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-dateTime-widget-view.component-DxNwm_5m.mjs → acorex-platform-common-dateTime-widget-view.component-KGgJkiKB.mjs} +4 -5
- package/fesm2022/{acorex-platform-common-dateTime-widget-view.component-DxNwm_5m.mjs.map → acorex-platform-common-dateTime-widget-view.component-KGgJkiKB.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-email-widget-column.component-Cm-fhlNZ.mjs → acorex-platform-common-email-widget-column.component-CLNqSuB7.mjs} +4 -5
- package/fesm2022/acorex-platform-common-email-widget-column.component-CLNqSuB7.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-email-widget-edit.component-BfXFBLF6.mjs → acorex-platform-common-email-widget-edit.component--0gaRm4s.mjs} +9 -11
- package/fesm2022/acorex-platform-common-email-widget-edit.component--0gaRm4s.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-email-widget-view.component-ClRjKVy6.mjs → acorex-platform-common-email-widget-view.component-C3AUr1HO.mjs} +4 -5
- package/fesm2022/{acorex-platform-common-email-widget-view.component-ClRjKVy6.mjs.map → acorex-platform-common-email-widget-view.component-C3AUr1HO.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-file-widget-column.component-B0v2rSWI.mjs → acorex-platform-common-file-widget-column.component-C9AHk2UP.mjs} +4 -5
- package/fesm2022/acorex-platform-common-file-widget-column.component-C9AHk2UP.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-file-widget-edit.component-DsIqehpt.mjs → acorex-platform-common-file-widget-edit.component-L7bln9k0.mjs} +4 -5
- package/fesm2022/{acorex-platform-common-file-widget-edit.component-DsIqehpt.mjs.map → acorex-platform-common-file-widget-edit.component-L7bln9k0.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-file-widget-filter.component-C3uBjqF-.mjs → acorex-platform-common-file-widget-filter.component-Ce35mqny.mjs} +4 -5
- package/fesm2022/acorex-platform-common-file-widget-filter.component-Ce35mqny.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-file-widget-view.component-DTl_Rehd.mjs → acorex-platform-common-file-widget-view.component-BvMzrs5C.mjs} +4 -5
- package/fesm2022/{acorex-platform-common-file-widget-view.component-DTl_Rehd.mjs.map → acorex-platform-common-file-widget-view.component-BvMzrs5C.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-gallery-widget-edit.component-DHeFVg5x.mjs → acorex-platform-common-gallery-widget-edit.component-BVuV2Ib8.mjs} +3 -4
- package/fesm2022/{acorex-platform-common-gallery-widget-edit.component-DHeFVg5x.mjs.map → acorex-platform-common-gallery-widget-edit.component-BVuV2Ib8.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-gallery-widget-filter.component-Di446i2c.mjs → acorex-platform-common-gallery-widget-filter.component-C8tdM6PX.mjs} +4 -5
- package/fesm2022/acorex-platform-common-gallery-widget-filter.component-C8tdM6PX.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-gallery-widget-view.component-CkcRvfv-.mjs → acorex-platform-common-gallery-widget-view.component-D8YmSi9C.mjs} +3 -4
- package/fesm2022/{acorex-platform-common-gallery-widget-view.component-CkcRvfv-.mjs.map → acorex-platform-common-gallery-widget-view.component-D8YmSi9C.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-largetext-widget-edit.component-D89AlBSm.mjs → acorex-platform-common-largetext-widget-edit.component-DGMxpnsr.mjs} +4 -5
- package/fesm2022/acorex-platform-common-largetext-widget-edit.component-DGMxpnsr.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-lookup-widget-column.component-CB0ehp_y.mjs → acorex-platform-common-lookup-widget-column.component-B-cEaNjv.mjs} +4 -5
- package/fesm2022/acorex-platform-common-lookup-widget-column.component-B-cEaNjv.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-lookup-widget-edit.component-B0HQnsb8.mjs → acorex-platform-common-lookup-widget-edit.component-DqB_g9Zz.mjs} +4 -5
- package/fesm2022/{acorex-platform-common-lookup-widget-edit.component-B0HQnsb8.mjs.map → acorex-platform-common-lookup-widget-edit.component-DqB_g9Zz.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-lookup-widget-filter.component-Dxj_XEYV.mjs → acorex-platform-common-lookup-widget-filter.component-0TPWNWSd.mjs} +3 -4
- package/fesm2022/acorex-platform-common-lookup-widget-filter.component-0TPWNWSd.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-lookup-widget-view.component-BtO3feA9.mjs → acorex-platform-common-lookup-widget-view.component-DYAg76YH.mjs} +4 -5
- package/fesm2022/acorex-platform-common-lookup-widget-view.component-DYAg76YH.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-map-widget-edit.component-hXIZrhzg.mjs → acorex-platform-common-map-widget-edit.component-C3cpsXD5.mjs} +4 -5
- package/fesm2022/acorex-platform-common-map-widget-edit.component-C3cpsXD5.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-map-widget-view.component-RgV-r8q6.mjs → acorex-platform-common-map-widget-view.component-C-DCNaJi.mjs} +4 -5
- package/fesm2022/acorex-platform-common-map-widget-view.component-C-DCNaJi.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-messenger-widget-column.component-DGWQWuzM.mjs → acorex-platform-common-messenger-widget-column.component-B2A7ZBEP.mjs} +4 -5
- package/fesm2022/acorex-platform-common-messenger-widget-column.component-B2A7ZBEP.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-messenger-widget-edit.component-Blv1qL4e.mjs → acorex-platform-common-messenger-widget-edit.component-DC8vQDo0.mjs} +4 -5
- package/fesm2022/acorex-platform-common-messenger-widget-edit.component-DC8vQDo0.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-messenger-widget-view.component-DEbnPggG.mjs → acorex-platform-common-messenger-widget-view.component-B6FavkmG.mjs} +4 -5
- package/fesm2022/{acorex-platform-common-messenger-widget-view.component-DEbnPggG.mjs.map → acorex-platform-common-messenger-widget-view.component-B6FavkmG.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-number-widget-edit.component-gQCEBhPv.mjs → acorex-platform-common-number-widget-edit.component-Bc5-ZUw4.mjs} +4 -5
- package/fesm2022/acorex-platform-common-number-widget-edit.component-Bc5-ZUw4.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-number-widget-filter.component-CvEw3awN.mjs → acorex-platform-common-number-widget-filter.component-DxfJ90n4.mjs} +4 -5
- package/fesm2022/acorex-platform-common-number-widget-filter.component-DxfJ90n4.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-number-widget-view.component-ROrdklif.mjs → acorex-platform-common-number-widget-view.component-DGfLSGw1.mjs} +4 -5
- package/fesm2022/acorex-platform-common-number-widget-view.component-DGfLSGw1.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-password-widget-column.component-vXdE4UjM.mjs → acorex-platform-common-password-widget-column.component-DEHaVLGK.mjs} +4 -5
- package/fesm2022/{acorex-platform-common-password-widget-column.component-vXdE4UjM.mjs.map → acorex-platform-common-password-widget-column.component-DEHaVLGK.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-password-widget-edit.component-BCOoHtGl.mjs → acorex-platform-common-password-widget-edit.component-DrYyu5v-.mjs} +4 -5
- package/fesm2022/acorex-platform-common-password-widget-edit.component-DrYyu5v-.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-password-widget-view.component-rpjAeimk.mjs → acorex-platform-common-password-widget-view.component-B_HU-3J1.mjs} +4 -4
- package/fesm2022/{acorex-platform-common-password-widget-view.component-rpjAeimk.mjs.map → acorex-platform-common-password-widget-view.component-B_HU-3J1.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-phone-widget-column.component-BbuUbPCu.mjs → acorex-platform-common-phone-widget-column.component-D99ncxxJ.mjs} +4 -5
- package/fesm2022/{acorex-platform-common-phone-widget-column.component-BbuUbPCu.mjs.map → acorex-platform-common-phone-widget-column.component-D99ncxxJ.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-phone-widget-edit.component-Bo_aOxfZ.mjs → acorex-platform-common-phone-widget-edit.component-a5EAI9FK.mjs} +8 -10
- package/fesm2022/acorex-platform-common-phone-widget-edit.component-a5EAI9FK.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-phone-widget-view.component-DDBCR_QY.mjs → acorex-platform-common-phone-widget-view.component-BlFVuoNN.mjs} +4 -5
- package/fesm2022/{acorex-platform-common-phone-widget-view.component-DDBCR_QY.mjs.map → acorex-platform-common-phone-widget-view.component-BlFVuoNN.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-rich-text-widget-column.component-BHiq7hdp.mjs → acorex-platform-common-rich-text-widget-column.component-DOdv5I2s.mjs} +4 -5
- package/fesm2022/{acorex-platform-common-rich-text-widget-column.component-BHiq7hdp.mjs.map → acorex-platform-common-rich-text-widget-column.component-DOdv5I2s.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-rich-text-widget-edit.component-12odUyzb.mjs → acorex-platform-common-rich-text-widget-edit.component-DL5UyAqe.mjs} +4 -5
- package/fesm2022/acorex-platform-common-rich-text-widget-edit.component-DL5UyAqe.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-rich-text-widget-view.component-Xr0ohz5L.mjs → acorex-platform-common-rich-text-widget-view.component-B9WB-mx9.mjs} +4 -5
- package/fesm2022/acorex-platform-common-rich-text-widget-view.component-B9WB-mx9.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-selection-list-widget-column.component-C2JikSdw.mjs → acorex-platform-common-selection-list-widget-column.component-CkOuYy0Z.mjs} +4 -5
- package/fesm2022/{acorex-platform-common-selection-list-widget-column.component-C2JikSdw.mjs.map → acorex-platform-common-selection-list-widget-column.component-CkOuYy0Z.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-selection-list-widget-edit.component-C1QPfHCm.mjs → acorex-platform-common-selection-list-widget-edit.component-BmbDQ1LH.mjs} +4 -5
- package/fesm2022/acorex-platform-common-selection-list-widget-edit.component-BmbDQ1LH.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-selection-list-widget-filter.component-DIgxHmqa.mjs → acorex-platform-common-selection-list-widget-filter.component-Dm_1-7eT.mjs} +3 -4
- package/fesm2022/acorex-platform-common-selection-list-widget-filter.component-Dm_1-7eT.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-selection-list-widget-view.component-D-VQ4JNC.mjs → acorex-platform-common-selection-list-widget-view.component-3hinF85C.mjs} +4 -5
- package/fesm2022/acorex-platform-common-selection-list-widget-view.component-3hinF85C.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-signature-pad-widget-edit.component-BimaJ4_d.mjs → acorex-platform-common-signature-pad-widget-edit.component-DmmPbw-A.mjs} +3 -4
- package/fesm2022/{acorex-platform-common-signature-pad-widget-edit.component-BimaJ4_d.mjs.map → acorex-platform-common-signature-pad-widget-edit.component-DmmPbw-A.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-signature-pad-widget-view.component-USd0U707.mjs → acorex-platform-common-signature-pad-widget-view.component-DkFaMNk8.mjs} +4 -5
- package/fesm2022/acorex-platform-common-signature-pad-widget-view.component-DkFaMNk8.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-string-widget-filter.component-wI9D-Ju5.mjs → acorex-platform-common-string-widget-filter.component-DAqR2PUN.mjs} +4 -5
- package/fesm2022/acorex-platform-common-string-widget-filter.component-DAqR2PUN.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-text-widget-column.component-Be7Nr0lJ.mjs → acorex-platform-common-text-widget-column.component-DVczwvKA.mjs} +4 -5
- package/fesm2022/{acorex-platform-common-text-widget-column.component-Be7Nr0lJ.mjs.map → acorex-platform-common-text-widget-column.component-DVczwvKA.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-text-widget-edit.component-feJTTnye.mjs → acorex-platform-common-text-widget-edit.component-DC_GnFhe.mjs} +9 -12
- package/fesm2022/acorex-platform-common-text-widget-edit.component-DC_GnFhe.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-text-widget-view.component-DsUAJ-md.mjs → acorex-platform-common-text-widget-view.component-BK3HZGgb.mjs} +4 -5
- package/fesm2022/{acorex-platform-common-text-widget-view.component-DsUAJ-md.mjs.map → acorex-platform-common-text-widget-view.component-BK3HZGgb.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-toggle-widget-column.component-BFwzsY4-.mjs → acorex-platform-common-toggle-widget-column.component-Bp1d7SAE.mjs} +4 -5
- package/fesm2022/{acorex-platform-common-toggle-widget-column.component-BFwzsY4-.mjs.map → acorex-platform-common-toggle-widget-column.component-Bp1d7SAE.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-toggle-widget-edit.component-Cuf9_RrU.mjs → acorex-platform-common-toggle-widget-edit.component-D64m4agx.mjs} +4 -5
- package/fesm2022/acorex-platform-common-toggle-widget-edit.component-D64m4agx.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-toggle-widget-view.component-DYz6VTey.mjs → acorex-platform-common-toggle-widget-view.component-BTaXXZ88.mjs} +4 -5
- package/fesm2022/{acorex-platform-common-toggle-widget-view.component-DYz6VTey.mjs.map → acorex-platform-common-toggle-widget-view.component-BTaXXZ88.mjs.map} +1 -1
- package/fesm2022/acorex-platform-common.mjs +835 -974
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-builder.mjs +10 -4
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-designer.mjs +1 -6
- package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +28 -13
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-setting.mjs +57 -0
- package/fesm2022/acorex-platform-layout-setting.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts.mjs +37 -46
- package/fesm2022/acorex-platform-layouts.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-Cf5ttvrG.mjs → acorex-platform-themes-default-entity-master-create-view.component-CJY8R3sa.mjs} +6 -6
- package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-Cf5ttvrG.mjs.map → acorex-platform-themes-default-entity-master-create-view.component-CJY8R3sa.mjs.map} +1 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-C6zgLyry.mjs +301 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-C6zgLyry.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-entity-master-modify-view.component-CCvE7XiE.mjs → acorex-platform-themes-default-entity-master-modify-view.component-wPZPhMgy.mjs} +6 -6
- package/fesm2022/{acorex-platform-themes-default-entity-master-modify-view.component-CCvE7XiE.mjs.map → acorex-platform-themes-default-entity-master-modify-view.component-wPZPhMgy.mjs.map} +1 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-DNXWb6ij.mjs +148 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-DNXWb6ij.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default.mjs +219 -77
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
- package/fesm2022/acorex-platform-themes-shared.mjs +184 -20
- package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -1
- package/fesm2022/{acorex-platform-widgets-template-widget-edit.component-JlCVB-Aq.mjs → acorex-platform-widgets-template-widget-edit.component-DwPYeF0y.mjs} +2 -1
- package/fesm2022/{acorex-platform-widgets-template-widget-edit.component-JlCVB-Aq.mjs.map → acorex-platform-widgets-template-widget-edit.component-DwPYeF0y.mjs.map} +1 -1
- package/fesm2022/acorex-platform-widgets.mjs +180 -34
- package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
- package/layout/builder/lib/builder/widget.types.d.ts +1 -2
- package/layout/entity/lib/entity-detail-list.viewmodel.d.ts +1 -0
- package/layout/entity/lib/entity-master-create.viewmodel.d.ts +2 -2
- package/layout/entity/lib/entity-master-list.viewmodel.d.ts +1 -0
- package/layout/setting/README.md +4 -0
- package/layout/setting/index.d.ts +1 -0
- package/layout/setting/lib/setting.viewmodel.d.ts +13 -0
- package/layouts/lib/admin/admin.module.d.ts +6 -3
- package/layouts/lib/admin/entity-layout/entity-details-view/entity-details-view.component.d.ts +42 -9
- package/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-columns/list-view-option-columns.component.d.ts +0 -2
- package/layouts/lib/admin/entity-layout/entity-list-view/entity-list-view.component.d.ts +0 -2
- package/layouts/lib/admin/entity-layout/entity-list-view/list-view.config.d.ts +4 -2
- package/layouts/lib/admin/entity-layout/entity-quick-view/entity-quick-view.component.d.ts +0 -1
- package/package.json +18 -18
- package/themes/default/index.d.ts +1 -0
- package/themes/default/lib/layouts/entity-layouts/entity-detail-list-view/entity-detail-list-view.component.d.ts +43 -8
- package/themes/default/lib/layouts/entity-layouts/entity-master-list-view/entity-master-list-view.component.d.ts +42 -4
- package/themes/default/lib/layouts/entity-layouts/entity-master-list-view/list-view-option-columns/list-view-option-columns.component.d.ts +0 -2
- package/themes/default/lib/layouts/entity-layouts/entity-master-single-view/entity-master-single-view.component.d.ts +42 -3
- package/themes/default/lib/layouts/root-layout/components/header/header.component.d.ts +42 -2
- package/themes/default/lib/layouts/root-layout/root-layout.component.d.ts +42 -11
- package/themes/default/lib/layouts/setting-layout/convert-setting-data.d.ts +21 -0
- package/themes/default/lib/layouts/setting-layout/index.d.ts +2 -0
- package/themes/default/lib/layouts/setting-layout/setting-preview/setting-preview.component.d.ts +24 -0
- package/themes/default/lib/layouts/setting-layout/setting-view/setting-menu.component.d.ts +20 -0
- package/themes/shared/lib/components/theme-slot.component.d.ts +31 -5
- package/themes/shared/lib/services/theme.service.d.ts +45 -5
- package/widgets/lib/widgets/advance/cron-job/cron-job-widget-column.component.d.ts +6 -0
- package/widgets/lib/widgets/advance/cron-job/cron-job-widget-designer.component.d.ts +6 -0
- package/widgets/lib/widgets/advance/cron-job/cron-job-widget-edit.component.d.ts +8 -0
- package/widgets/lib/widgets/advance/cron-job/cron-job-widget-filter.component.d.ts +6 -0
- package/widgets/lib/widgets/advance/cron-job/cron-job-widget-print.component.d.ts +6 -0
- package/widgets/lib/widgets/advance/cron-job/cron-job-widget-view.component.d.ts +7 -0
- package/widgets/lib/widgets/advance/cron-job/cron-job-widget.config.d.ts +7 -0
- package/widgets/lib/widgets/advance/cron-job/index.d.ts +7 -0
- package/common/lib/layout/layout.service.d.ts +0 -19
- package/common/lib/layout/theme/store/admin-layout.actions.d.ts +0 -7
- package/common/lib/layout/theme/store/admin-layout.effects.d.ts +0 -9
- package/common/lib/layout/theme/store/admin-layout.reducers.d.ts +0 -19
- package/common/lib/layout/theme/store/admin-layout.selectors.d.ts +0 -4
- package/common/lib/layout/theme/store/admin-layout.state.d.ts +0 -11
- package/common/lib/layout/theme/store/index.d.ts +0 -5
- package/esm2022/common/lib/layout/layout.service.mjs +0 -79
- package/esm2022/common/lib/layout/theme/store/admin-layout.actions.mjs +0 -11
- package/esm2022/common/lib/layout/theme/store/admin-layout.effects.mjs +0 -21
- package/esm2022/common/lib/layout/theme/store/admin-layout.reducers.mjs +0 -64
- package/esm2022/common/lib/layout/theme/store/admin-layout.selectors.mjs +0 -7
- package/esm2022/common/lib/layout/theme/store/admin-layout.state.mjs +0 -13
- package/esm2022/common/lib/layout/theme/store/index.mjs +0 -6
- package/esm2022/mocks/acorex-platform-mocks.mjs +0 -5
- package/esm2022/mocks/index.mjs +0 -7
- package/esm2022/mocks/lib/mocks.module.mjs +0 -15
- package/esm2022/mocks/lib/services/mocker.service.mjs +0 -114
- package/esm2022/mocks/lib/storage/storage.mock.service.mjs +0 -183
- package/fesm2022/acorex-platform-common-avatar-widget-view.component-Dew3CVLm.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-boolean-widget-filter.component-BdE7WOK5.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-checkbox-widget-edit.component-ChXbJsuG.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-dateTime-widget-column.component-QUYyDVw8.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-dateTime-widget-edit.component-CzLb3xnR.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-dateTime-widget-filter.component-DZRQ6yVk.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-email-widget-column.component-Cm-fhlNZ.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-email-widget-edit.component-BfXFBLF6.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-file-widget-column.component-B0v2rSWI.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-file-widget-filter.component-C3uBjqF-.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-gallery-widget-filter.component-Di446i2c.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-largetext-widget-edit.component-D89AlBSm.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-lookup-widget-column.component-CB0ehp_y.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-lookup-widget-filter.component-Dxj_XEYV.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-lookup-widget-view.component-BtO3feA9.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-map-widget-edit.component-hXIZrhzg.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-map-widget-view.component-RgV-r8q6.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-messenger-widget-column.component-DGWQWuzM.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-messenger-widget-edit.component-Blv1qL4e.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-number-widget-edit.component-gQCEBhPv.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-number-widget-filter.component-CvEw3awN.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-number-widget-view.component-ROrdklif.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-password-widget-edit.component-BCOoHtGl.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-phone-widget-edit.component-Bo_aOxfZ.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-rich-text-widget-edit.component-12odUyzb.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-rich-text-widget-view.component-Xr0ohz5L.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-selection-list-widget-edit.component-C1QPfHCm.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-selection-list-widget-filter.component-DIgxHmqa.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-selection-list-widget-view.component-D-VQ4JNC.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-signature-pad-widget-view.component-USd0U707.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-string-widget-filter.component-wI9D-Ju5.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-text-widget-edit.component-feJTTnye.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-toggle-widget-edit.component-Cuf9_RrU.mjs.map +0 -1
- package/fesm2022/acorex-platform-mocks.mjs +0 -319
- package/fesm2022/acorex-platform-mocks.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-BLb_4pK5.mjs +0 -306
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-BLb_4pK5.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-CwrgQFY7.mjs +0 -150
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-CwrgQFY7.mjs.map +0 -1
- package/mocks/README.md +0 -3
- package/mocks/index.d.ts +0 -3
- package/mocks/lib/mocks.module.d.ts +0 -7
- package/mocks/lib/services/mocker.service.d.ts +0 -29
- package/mocks/lib/storage/storage.mock.service.d.ts +0 -25
|
@@ -1,30 +1,28 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, APP_INITIALIZER, inject, RendererFactory2, InjectionToken, Injector, ErrorHandler, Input, Directive, EventEmitter, Output, runInInjectionContext, Optional,
|
|
3
|
-
import { kebabCase,
|
|
2
|
+
import { Injectable, APP_INITIALIZER, inject, RendererFactory2, InjectionToken, Injector, ErrorHandler, Inject, NgModule, Input, Directive, EventEmitter, Output, runInInjectionContext, Optional, Component, ViewEncapsulation, ChangeDetectorRef, ViewChild, ChangeDetectionStrategy } from '@angular/core';
|
|
3
|
+
import { kebabCase, cloneDeep, merge, sortBy, assign, isEqual, get, set } from 'lodash-es';
|
|
4
4
|
import { AXPopupModule } from '@acorex/components/popup';
|
|
5
5
|
import { AXToastService, AXToastModule } from '@acorex/components/toast';
|
|
6
6
|
import { AXDateTimeModule } from '@acorex/core/date-time';
|
|
7
|
-
import * as
|
|
7
|
+
import * as i5 from '@acorex/platform/workflow';
|
|
8
8
|
import { createWorkFlowEvent, AXPWorkflowAction, AXPWorkflowError, AXPWorkflowModule } from '@acorex/platform/workflow';
|
|
9
|
-
import * as i2
|
|
9
|
+
import * as i2 from '@angular/router';
|
|
10
10
|
import { Router, RouterModule } from '@angular/router';
|
|
11
|
-
import * as i1
|
|
12
|
-
import { createEffect, ofType,
|
|
13
|
-
import * as i5$1 from '@ngrx/store';
|
|
14
|
-
import { createAction, props, Store, createFeature, createReducer, on, createSelector, StoreModule } from '@ngrx/store';
|
|
11
|
+
import * as i1 from '@ngrx/effects';
|
|
12
|
+
import { createEffect, ofType, EffectsModule } from '@ngrx/effects';
|
|
15
13
|
import { applySortArray, applyFilterArray } from '@acorex/platform/core';
|
|
16
14
|
import Dexie from 'dexie';
|
|
17
|
-
import {
|
|
18
|
-
import
|
|
15
|
+
import { Subject, switchMap, of } from 'rxjs';
|
|
16
|
+
import { createAction, props, Store } from '@ngrx/store';
|
|
17
|
+
import { AXDialogService } from '@acorex/components/dialog';
|
|
18
|
+
import { AXTranslationService } from '@acorex/core/translation';
|
|
19
|
+
import * as i5$1 from '@acorex/components/decorators';
|
|
19
20
|
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
20
|
-
import * as i2 from '@acorex/components/image';
|
|
21
|
+
import * as i2$1 from '@acorex/components/image';
|
|
21
22
|
import { AXImageModule } from '@acorex/components/image';
|
|
22
|
-
import * as i1 from '@angular/common';
|
|
23
|
+
import * as i1$1 from '@angular/common';
|
|
23
24
|
import { CommonModule } from '@angular/common';
|
|
24
25
|
import { signalStore, withState, withMethods, patchState, withHooks } from '@ngrx/signals';
|
|
25
|
-
import { AXPlatform } from '@acorex/core/platform';
|
|
26
|
-
import { AXDialogService } from '@acorex/components/dialog';
|
|
27
|
-
import { AXTranslationService } from '@acorex/core/translation';
|
|
28
26
|
import * as i2$2 from '@acorex/components/skeleton';
|
|
29
27
|
import { AXSkeletonModule } from '@acorex/components/skeleton';
|
|
30
28
|
import * as i1$2 from '@angular/cdk/portal';
|
|
@@ -174,6 +172,21 @@ const DATE_OPERATORS = [
|
|
|
174
172
|
IS_EMPTY_OPER,
|
|
175
173
|
IS_NOT_EMPTY_OPER,
|
|
176
174
|
];
|
|
175
|
+
const ALL_DEFAULT_OPERATORS = [
|
|
176
|
+
EQ_OPER,
|
|
177
|
+
NOT_EQ_OPER,
|
|
178
|
+
GT_OPER,
|
|
179
|
+
LT_OPER,
|
|
180
|
+
GTE_OPER,
|
|
181
|
+
LTE_OPER,
|
|
182
|
+
CONTAINS_OPER,
|
|
183
|
+
NOT_CONTAINS_OPER,
|
|
184
|
+
STARTS_WITH_OPER,
|
|
185
|
+
ENDS_WITH_OPER,
|
|
186
|
+
IS_EMPTY_OPER,
|
|
187
|
+
IS_NOT_EMPTY_OPER,
|
|
188
|
+
BETWEEN_OPER,
|
|
189
|
+
];
|
|
177
190
|
|
|
178
191
|
class AXPDataProvider {
|
|
179
192
|
}
|
|
@@ -544,6 +557,29 @@ class AXPDexieEntityStorageService extends Dexie {
|
|
|
544
557
|
// }
|
|
545
558
|
// }
|
|
546
559
|
|
|
560
|
+
const AXP_DATA_SEEDER_TOKEN = new InjectionToken('AXP_DATA_SEEDER_TOKEN');
|
|
561
|
+
class AXPDataSeederService {
|
|
562
|
+
constructor() {
|
|
563
|
+
this.loader = inject(AXP_DATA_SEEDER_TOKEN, { optional: true });
|
|
564
|
+
}
|
|
565
|
+
async seed() {
|
|
566
|
+
if (Array.isArray(this.loader)) {
|
|
567
|
+
for (const loader of this.loader) {
|
|
568
|
+
await loader.seed();
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
else {
|
|
572
|
+
await this.loader?.seed();
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPDataSeederService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
576
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPDataSeederService, providedIn: 'root' }); }
|
|
577
|
+
}
|
|
578
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPDataSeederService, decorators: [{
|
|
579
|
+
type: Injectable,
|
|
580
|
+
args: [{ providedIn: 'root' }]
|
|
581
|
+
}] });
|
|
582
|
+
|
|
547
583
|
class AXPEntityStorageService {
|
|
548
584
|
}
|
|
549
585
|
class AXPEntityDataProvider {
|
|
@@ -606,27 +642,66 @@ class AXMEntityCrudServiceImpl {
|
|
|
606
642
|
}
|
|
607
643
|
}
|
|
608
644
|
|
|
609
|
-
|
|
610
|
-
|
|
645
|
+
class AXPCustomOperatorService {
|
|
646
|
+
}
|
|
647
|
+
class AXPCustomOperatorServiceImpl extends AXPCustomOperatorService {
|
|
648
|
+
getCustomOperators() {
|
|
649
|
+
return {};
|
|
650
|
+
}
|
|
651
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPCustomOperatorServiceImpl, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
652
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPCustomOperatorServiceImpl }); }
|
|
653
|
+
}
|
|
654
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPCustomOperatorServiceImpl, decorators: [{
|
|
655
|
+
type: Injectable
|
|
656
|
+
}] });
|
|
657
|
+
|
|
658
|
+
class AXPFilterOperatorMiddlewareService {
|
|
659
|
+
}
|
|
660
|
+
class AXPFilterOperatorMiddlewareServiceImpl extends AXPFilterOperatorMiddlewareService {
|
|
611
661
|
constructor() {
|
|
612
|
-
|
|
662
|
+
super(...arguments);
|
|
663
|
+
this.customOperatorService = inject(AXPCustomOperatorService);
|
|
664
|
+
this.operators = {
|
|
665
|
+
...this.getDefaultOperators(),
|
|
666
|
+
...this.customOperatorService.getCustomOperators(),
|
|
667
|
+
};
|
|
613
668
|
}
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
|
|
669
|
+
transformFilters(filters) {
|
|
670
|
+
return filters.map((filter) => this.transformFilter(filter));
|
|
671
|
+
}
|
|
672
|
+
transformFilter(filter) {
|
|
673
|
+
console.log(filter);
|
|
674
|
+
const { operator, value, filters, field } = filter;
|
|
675
|
+
// Find the operator (either default or custom)
|
|
676
|
+
const filterOperator = this.operators[operator?.type] || null;
|
|
677
|
+
// Start by transforming the filter itself
|
|
678
|
+
const transformedFilter = {
|
|
679
|
+
...filter, // Keep the original filter structure
|
|
680
|
+
operator: filterOperator ? filterOperator : operator, // Add operator name
|
|
681
|
+
};
|
|
682
|
+
// If the filter contains nested filters, recursively transform them
|
|
683
|
+
if (filters && filters.length > 0) {
|
|
684
|
+
transformedFilter.filters = this.transformFilters(filters); // Recursively transform nested filters
|
|
622
685
|
}
|
|
686
|
+
return transformedFilter;
|
|
623
687
|
}
|
|
624
|
-
|
|
625
|
-
|
|
688
|
+
getOperator(key) {
|
|
689
|
+
return this.operators[key];
|
|
690
|
+
}
|
|
691
|
+
// Helper function to return the default operators
|
|
692
|
+
getDefaultOperators() {
|
|
693
|
+
return ALL_DEFAULT_OPERATORS.reduce((acc, operator) => {
|
|
694
|
+
acc[operator.name] = {
|
|
695
|
+
type: operator.name,
|
|
696
|
+
};
|
|
697
|
+
return acc;
|
|
698
|
+
}, {});
|
|
699
|
+
}
|
|
700
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPFilterOperatorMiddlewareServiceImpl, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
701
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPFilterOperatorMiddlewareServiceImpl }); }
|
|
626
702
|
}
|
|
627
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type:
|
|
628
|
-
type: Injectable
|
|
629
|
-
args: [{ providedIn: 'root' }]
|
|
703
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPFilterOperatorMiddlewareServiceImpl, decorators: [{
|
|
704
|
+
type: Injectable
|
|
630
705
|
}] });
|
|
631
706
|
|
|
632
707
|
class AXPErrorHandlerRegistryService {
|
|
@@ -688,203 +763,687 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
|
688
763
|
args: [{ providedIn: 'root' }]
|
|
689
764
|
}], ctorParameters: () => [{ type: i0.Injector }, { type: AXPErrorHandlerRegistryService }] });
|
|
690
765
|
|
|
691
|
-
//
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
this.el = el;
|
|
695
|
-
this.renderer = renderer;
|
|
696
|
-
}
|
|
697
|
-
ngOnChanges(changes) {
|
|
698
|
-
if (changes['options']) {
|
|
699
|
-
this.applyTailwindClasses();
|
|
700
|
-
}
|
|
701
|
-
}
|
|
702
|
-
applyTailwindClasses() {
|
|
703
|
-
// Clear existing grid classes
|
|
704
|
-
this.clearClasses();
|
|
705
|
-
// Apply new grid classes based on the input options
|
|
706
|
-
this.setClasses(this.options.positions?.default, '');
|
|
707
|
-
this.setClasses(this.options.positions?.md, 'md:');
|
|
708
|
-
this.setClasses(this.options.positions?.lg, 'lg:');
|
|
709
|
-
this.setClasses(this.options.positions?.xl, 'xl:');
|
|
710
|
-
this.setClasses(this.options.positions?.xxl, '2xl:');
|
|
711
|
-
}
|
|
712
|
-
setClasses(positions, prefix) {
|
|
713
|
-
if (positions == null)
|
|
714
|
-
return;
|
|
715
|
-
const colStart = positions.colStart ? `${prefix}ax-col-start-${positions.colStart}` : '';
|
|
716
|
-
const colEnd = positions.colEnd ? `${prefix}ax-col-end-${positions.colEnd}` : '';
|
|
717
|
-
const colSpan = positions.colSpan ? `${prefix}ax-col-span-${positions.colSpan}` : '';
|
|
718
|
-
const rowStart = positions.rowStart ? `${prefix}ax-row-start-${positions.rowStart}` : '';
|
|
719
|
-
const rowEnd = positions.rowEnd ? `${prefix}ax-row-end-${positions.rowEnd}` : '';
|
|
720
|
-
const rowSpan = positions.rowSpan ? `${prefix}ax-row-span-${positions.rowSpan}` : '';
|
|
721
|
-
const order = positions.order ? `${prefix}ax-order-${positions.order}` : ''; // Handling order
|
|
722
|
-
[colStart, colEnd, colSpan, rowStart, rowEnd, rowSpan, order].forEach(cls => {
|
|
723
|
-
if (cls) {
|
|
724
|
-
this.renderer.addClass(this.el.nativeElement, cls);
|
|
725
|
-
}
|
|
726
|
-
});
|
|
727
|
-
}
|
|
728
|
-
clearClasses() {
|
|
729
|
-
const currentClasses = this.el.nativeElement.className.split(' ');
|
|
730
|
-
currentClasses.forEach((className) => {
|
|
731
|
-
if (className.startsWith('ax-col-') || className.startsWith('ax-row-') || className.startsWith('ax-order-')) {
|
|
732
|
-
this.renderer.removeClass(this.el.nativeElement, className);
|
|
733
|
-
}
|
|
734
|
-
});
|
|
735
|
-
}
|
|
736
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPGridLayoutDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
737
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.0", type: AXPGridLayoutDirective, isStandalone: true, selector: "[gridLayout]", inputs: { options: ["gridLayout", "options"] }, usesOnChanges: true, ngImport: i0 }); }
|
|
738
|
-
}
|
|
739
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPGridLayoutDirective, decorators: [{
|
|
740
|
-
type: Directive,
|
|
741
|
-
args: [{
|
|
742
|
-
selector: '[gridLayout]',
|
|
743
|
-
standalone: true,
|
|
744
|
-
}]
|
|
745
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }], propDecorators: { options: [{
|
|
746
|
-
type: Input,
|
|
747
|
-
args: ['gridLayout']
|
|
748
|
-
}] } });
|
|
749
|
-
|
|
750
|
-
class AXPLayoutService {
|
|
766
|
+
// Injection token for setting providers
|
|
767
|
+
const AXP_SETTING_PROVIDER = new InjectionToken('AXP_SETTING_PROVIDER');
|
|
768
|
+
class AXPSettingDefinitionProviderService {
|
|
751
769
|
constructor() {
|
|
752
|
-
this.
|
|
753
|
-
|
|
754
|
-
this.
|
|
755
|
-
this.
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
this.
|
|
760
|
-
|
|
761
|
-
}
|
|
762
|
-
get navigationLoading$() {
|
|
763
|
-
return this.navigationLoadingSubject.asObservable();
|
|
764
|
-
}
|
|
765
|
-
setNavigationLoading(value) {
|
|
766
|
-
if (value) {
|
|
767
|
-
this.navigationLoadingTaskCount++;
|
|
768
|
-
this.updateNavigationLoadingState(true);
|
|
770
|
+
this.providers = inject(AXP_SETTING_PROVIDER, { optional: true });
|
|
771
|
+
this.cache = null;
|
|
772
|
+
this.pendingInserts = [];
|
|
773
|
+
this.pendingAdditions = [];
|
|
774
|
+
}
|
|
775
|
+
// Retrieve all setting items, applying any pending operations
|
|
776
|
+
async items() {
|
|
777
|
+
if (this.cache) {
|
|
778
|
+
return this.cache;
|
|
769
779
|
}
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
// Start timer to keep loading state for minimum display time
|
|
776
|
-
timer(this.minimumDisplayTime).subscribe(() => {
|
|
777
|
-
if (this.navigationLoadingTaskCount === 0) {
|
|
778
|
-
this.updateNavigationLoadingState(false);
|
|
779
|
-
}
|
|
780
|
-
});
|
|
780
|
+
const items = [];
|
|
781
|
+
const context = this.createProviderContext(items);
|
|
782
|
+
if (Array.isArray(this.providers)) {
|
|
783
|
+
for (const provider of this.providers) {
|
|
784
|
+
provider.provide(context);
|
|
781
785
|
}
|
|
782
786
|
}
|
|
787
|
+
// this.applyPendingOperations(items);
|
|
788
|
+
this.cache = items;
|
|
789
|
+
return items;
|
|
783
790
|
}
|
|
784
|
-
|
|
785
|
-
if (
|
|
786
|
-
this.
|
|
787
|
-
this.navigationLoadingSubject.next(state);
|
|
791
|
+
findGroupDetails(groupName) {
|
|
792
|
+
if (this.cache) {
|
|
793
|
+
return this.searchGroupDetails(this.cache, groupName, []); // Initialize with an empty breadcrumb
|
|
788
794
|
}
|
|
795
|
+
return null;
|
|
789
796
|
}
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
this.overlayLoadingTaskCount--;
|
|
797
|
+
searchGroupDetails(groups, groupName, breadcrumb) {
|
|
798
|
+
for (const group of groups) {
|
|
799
|
+
const currentBreadcrumb = [...breadcrumb, { name: group.name, title: group.title }];
|
|
800
|
+
// If the group name matches, return its details
|
|
801
|
+
if (group.name === groupName) {
|
|
802
|
+
return {
|
|
803
|
+
breadcrumb: currentBreadcrumb,
|
|
804
|
+
sections: group.sections.length > 0 ? group.sections : null,
|
|
805
|
+
childGroups: group.groups.length > 0 ? group.groups : null,
|
|
806
|
+
};
|
|
801
807
|
}
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
this.updateOverlayLoadingState(false);
|
|
807
|
-
}
|
|
808
|
-
});
|
|
808
|
+
// Recursively search in nested groups
|
|
809
|
+
const nestedResult = this.searchGroupDetails(group.groups, groupName, currentBreadcrumb);
|
|
810
|
+
if (nestedResult) {
|
|
811
|
+
return nestedResult;
|
|
809
812
|
}
|
|
810
813
|
}
|
|
814
|
+
// If no matching group is found
|
|
815
|
+
return null;
|
|
811
816
|
}
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
+
// Create the provider context with methods to add items and find existing ones
|
|
818
|
+
createProviderContext(items) {
|
|
819
|
+
return {
|
|
820
|
+
addItems: (newItems) => {
|
|
821
|
+
items.push(...newItems);
|
|
822
|
+
},
|
|
823
|
+
addItem: (item) => {
|
|
824
|
+
items.push(item);
|
|
825
|
+
},
|
|
826
|
+
addGroup: (group) => {
|
|
827
|
+
items.push(group);
|
|
828
|
+
},
|
|
829
|
+
// find: (target: string): AXPSettingDefinitionFinderResult => {
|
|
830
|
+
// return {
|
|
831
|
+
// insertGroup: (item, position) => {
|
|
832
|
+
// this.pendingInserts.push({ target, newItems: [item], position });
|
|
833
|
+
// },
|
|
834
|
+
// insertSingle: (item, position) => {
|
|
835
|
+
// this.pendingInserts.push({ target, newItems: [item], position });
|
|
836
|
+
// },
|
|
837
|
+
// insertSingles: (items, position) => {
|
|
838
|
+
// this.pendingInserts.push({ target, newItems: items, position });
|
|
839
|
+
// },
|
|
840
|
+
// addItems: (items) => {
|
|
841
|
+
// this.pendingAdditions.push({ target, newItems: items });
|
|
842
|
+
// },
|
|
843
|
+
// addChildSingleAt: (item, index) => {
|
|
844
|
+
// const foundItemInfo = this.findItemWithParent(this.cache || [], target);
|
|
845
|
+
// if (foundItemInfo && foundItemInfo.foundItem) {
|
|
846
|
+
// const { foundItem } = foundItemInfo;
|
|
847
|
+
// if (foundItem.type === AXPSettingDefinitionItemType.Group) {
|
|
848
|
+
// const group = foundItem as AXPSettingDefinitionGroup;
|
|
849
|
+
// if (index >= 0 && index <= group.singles.length) {
|
|
850
|
+
// group.singles.splice(index, 0, item);
|
|
851
|
+
// } else {
|
|
852
|
+
// console.warn(`Index "${index}" is out of bounds for singles.`);
|
|
853
|
+
// }
|
|
854
|
+
// } else {
|
|
855
|
+
// console.warn(`Target "${target}" is not a group; cannot add a child single.`);
|
|
856
|
+
// }
|
|
857
|
+
// } else {
|
|
858
|
+
// console.warn(`Target "${target}" not found for adding a child single.`);
|
|
859
|
+
// }
|
|
860
|
+
// },
|
|
861
|
+
// addChildSingleFirst: (item) => {
|
|
862
|
+
// const foundItemInfo = this.findItemWithParent(this.cache || [], target);
|
|
863
|
+
// if (foundItemInfo && foundItemInfo.foundItem) {
|
|
864
|
+
// const { foundItem } = foundItemInfo;
|
|
865
|
+
// if (foundItem.type === AXPSettingDefinitionItemType.Group) {
|
|
866
|
+
// const group = foundItem as AXPSettingDefinitionGroup;
|
|
867
|
+
// group.singles.unshift(item);
|
|
868
|
+
// } else {
|
|
869
|
+
// console.warn(`Target "${target}" is not a group; cannot add a child single.`);
|
|
870
|
+
// }
|
|
871
|
+
// } else {
|
|
872
|
+
// console.warn(`Target "${target}" not found for adding a child single.`);
|
|
873
|
+
// }
|
|
874
|
+
// },
|
|
875
|
+
// addChildSingleLast: (item) => {
|
|
876
|
+
// const foundItemInfo = this.findItemWithParent(this.cache || [], target);
|
|
877
|
+
// if (foundItemInfo && foundItemInfo.foundItem) {
|
|
878
|
+
// const { foundItem } = foundItemInfo;
|
|
879
|
+
// if (foundItem.type === AXPSettingDefinitionItemType.Group) {
|
|
880
|
+
// const group = foundItem as AXPSettingDefinitionGroup;
|
|
881
|
+
// group.singles.push(item);
|
|
882
|
+
// } else {
|
|
883
|
+
// console.warn(`Target "${target}" is not a group; cannot add a child single.`);
|
|
884
|
+
// }
|
|
885
|
+
// } else {
|
|
886
|
+
// console.warn(`Target "${target}" not found for adding a child single.`);
|
|
887
|
+
// }
|
|
888
|
+
// },
|
|
889
|
+
// addChildGroupAt: (item, index) => {
|
|
890
|
+
// const foundItemInfo = this.findItemWithParent(this.cache || [], target);
|
|
891
|
+
// if (foundItemInfo && foundItemInfo.foundItem) {
|
|
892
|
+
// const { foundItem } = foundItemInfo;
|
|
893
|
+
// if (foundItem.type === AXPSettingDefinitionItemType.Group) {
|
|
894
|
+
// const group = foundItem as AXPSettingDefinitionGroup;
|
|
895
|
+
// if (index >= 0 && index <= group.groups.length) {
|
|
896
|
+
// group.groups.splice(index, 0, item);
|
|
897
|
+
// } else {
|
|
898
|
+
// console.warn(`Index "${index}" is out of bounds for groups.`);
|
|
899
|
+
// }
|
|
900
|
+
// } else {
|
|
901
|
+
// console.warn(`Target "${target}" is not a group; cannot add a child group.`);
|
|
902
|
+
// }
|
|
903
|
+
// } else {
|
|
904
|
+
// console.warn(`Target "${target}" not found for adding a child group.`);
|
|
905
|
+
// }
|
|
906
|
+
// },
|
|
907
|
+
// addChildGroupFirst: (item) => {
|
|
908
|
+
// const foundItemInfo = this.findItemWithParent(this.cache || [], target);
|
|
909
|
+
// if (foundItemInfo && foundItemInfo.foundItem) {
|
|
910
|
+
// const { foundItem } = foundItemInfo;
|
|
911
|
+
// if (foundItem.type === AXPSettingDefinitionItemType.Group) {
|
|
912
|
+
// const group = foundItem as AXPSettingDefinitionGroup;
|
|
913
|
+
// group.groups.unshift(item);
|
|
914
|
+
// } else {
|
|
915
|
+
// console.warn(`Target "${target}" is not a group; cannot add a child group.`);
|
|
916
|
+
// }
|
|
917
|
+
// } else {
|
|
918
|
+
// console.warn(`Target "${target}" not found for adding a child group.`);
|
|
919
|
+
// }
|
|
920
|
+
// },
|
|
921
|
+
// addChildGroupLast: (item) => {
|
|
922
|
+
// const foundItemInfo = this.findItemWithParent(this.cache || [], target);
|
|
923
|
+
// if (foundItemInfo && foundItemInfo.foundItem) {
|
|
924
|
+
// const { foundItem } = foundItemInfo;
|
|
925
|
+
// if (foundItem.type === AXPSettingDefinitionItemType.Group) {
|
|
926
|
+
// const group = foundItem as AXPSettingDefinitionGroup;
|
|
927
|
+
// group.groups.push(item);
|
|
928
|
+
// } else {
|
|
929
|
+
// console.warn(`Target "${target}" is not a group; cannot add a child group.`);
|
|
930
|
+
// }
|
|
931
|
+
// } else {
|
|
932
|
+
// console.warn(`Target "${target}" not found for adding a child group.`);
|
|
933
|
+
// }
|
|
934
|
+
// },
|
|
935
|
+
// };
|
|
936
|
+
// },
|
|
937
|
+
};
|
|
817
938
|
}
|
|
818
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type:
|
|
819
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type:
|
|
939
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPSettingDefinitionProviderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
940
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPSettingDefinitionProviderService, providedIn: 'root' }); }
|
|
820
941
|
}
|
|
821
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type:
|
|
942
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPSettingDefinitionProviderService, decorators: [{
|
|
822
943
|
type: Injectable,
|
|
823
944
|
args: [{ providedIn: 'root' }]
|
|
824
945
|
}] });
|
|
825
946
|
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
947
|
+
const AXP_SETTINGS_PROVIDER = new InjectionToken('AXP_SETTINGS_PROVIDER', {
|
|
948
|
+
providedIn: 'root',
|
|
949
|
+
factory: () => {
|
|
950
|
+
return new AXPSettingsProviderDefault();
|
|
829
951
|
}
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
952
|
+
});
|
|
953
|
+
class AXPSettingsProviderDefault {
|
|
954
|
+
constructor() {
|
|
955
|
+
this.cache = new Map();
|
|
956
|
+
this.localStorageKey = 'AXP_SETTINGS';
|
|
833
957
|
}
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
this._isSticky = false;
|
|
842
|
-
this.onParentScroll = () => {
|
|
843
|
-
this.zone.runOutsideAngular(() => {
|
|
844
|
-
const scrollPosition = this.parentElement === window ?
|
|
845
|
-
window.scrollY :
|
|
846
|
-
this.parentElement.scrollTop + this.targetElement.offsetTop;
|
|
847
|
-
if (scrollPosition - this.stickyOffset >= this.topOffset && !this.isSticky) {
|
|
848
|
-
this.stickyClass.split(' ').forEach(c => {
|
|
849
|
-
this.renderer.addClass(this.targetElement, c);
|
|
850
|
-
});
|
|
851
|
-
this.isSticky = true;
|
|
852
|
-
this.cdr.markForCheck();
|
|
853
|
-
}
|
|
854
|
-
else if (scrollPosition <= this.topOffset && this.isSticky) {
|
|
855
|
-
this.stickyClass.split(' ').forEach(c => {
|
|
856
|
-
this.renderer.removeClass(this.targetElement, c);
|
|
857
|
-
});
|
|
858
|
-
this.isSticky = false;
|
|
859
|
-
this.cdr.markForCheck();
|
|
860
|
-
}
|
|
958
|
+
async load() {
|
|
959
|
+
// Load settings from localStorage as a single key
|
|
960
|
+
const storedSettings = localStorage.getItem(this.localStorageKey);
|
|
961
|
+
if (storedSettings) {
|
|
962
|
+
const parsedSettings = JSON.parse(storedSettings);
|
|
963
|
+
Object.entries(parsedSettings).forEach(([key, value]) => {
|
|
964
|
+
this.cache.set(key, value);
|
|
861
965
|
});
|
|
862
|
-
|
|
863
|
-
}
|
|
864
|
-
ngAfterViewInit() {
|
|
865
|
-
if (this.stickyParent instanceof HTMLElement) {
|
|
866
|
-
this.parentElement = this.stickyParent;
|
|
867
|
-
}
|
|
868
|
-
else {
|
|
869
|
-
this.parentElement = document.querySelector(this.stickyParent) || window;
|
|
966
|
+
return Promise.resolve(Array.from(this.cache.entries()).map(c => ({ key: c[0], value: c[1] })));
|
|
870
967
|
}
|
|
871
|
-
|
|
872
|
-
this.topOffset = this.targetElement.offsetTop;
|
|
873
|
-
this.parentElement.addEventListener('scroll', this.onParentScroll.bind(this));
|
|
968
|
+
return Promise.resolve([]);
|
|
874
969
|
}
|
|
875
|
-
|
|
876
|
-
this.
|
|
970
|
+
async set(key, value) {
|
|
971
|
+
this.cache.set(key, value);
|
|
972
|
+
// Save to localStorage as a single key
|
|
973
|
+
const settingsObject = {};
|
|
974
|
+
this.cache.forEach((val, k) => {
|
|
975
|
+
settingsObject[k] = val;
|
|
976
|
+
});
|
|
977
|
+
localStorage.setItem(this.localStorageKey, JSON.stringify(settingsObject));
|
|
877
978
|
}
|
|
878
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPStickyDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
879
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.0", type: AXPStickyDirective, isStandalone: true, selector: "[axpSticky]", inputs: { stickyClass: ["axpSticky", "stickyClass"], stickyOffset: "stickyOffset", stickyParent: "stickyParent", stickyTarget: "stickyTarget" }, outputs: { isStickyChange: "isStickyChange" }, exportAs: ["axpSticky"], ngImport: i0 }); }
|
|
880
979
|
}
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
980
|
+
|
|
981
|
+
class AXPSettingsService {
|
|
982
|
+
constructor() {
|
|
983
|
+
this.settingsProvider = inject(AXP_SETTINGS_PROVIDER);
|
|
984
|
+
this.settingsCache = new Map();
|
|
985
|
+
this.changed = new Subject();
|
|
986
|
+
}
|
|
987
|
+
async load() {
|
|
988
|
+
try {
|
|
989
|
+
const settingsList = await this.settingsProvider.load();
|
|
990
|
+
this.settingsCache.clear();
|
|
991
|
+
settingsList.forEach((setting) => {
|
|
992
|
+
this.settingsCache.set(setting.key, setting.value);
|
|
993
|
+
});
|
|
994
|
+
return settingsList;
|
|
995
|
+
}
|
|
996
|
+
catch (error) {
|
|
997
|
+
console.error('Error loading settings', error);
|
|
998
|
+
throw error; // Re-throw or handle it appropriately
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
async get(key) {
|
|
1002
|
+
if (this.settingsCache.size == 0) {
|
|
1003
|
+
await this.load();
|
|
1004
|
+
}
|
|
1005
|
+
return cloneDeep(this.settingsCache.get(key));
|
|
1006
|
+
}
|
|
1007
|
+
async set(key, value) {
|
|
1008
|
+
if (this.settingsCache.has(key)) {
|
|
1009
|
+
this.settingsCache.set(key, value);
|
|
1010
|
+
await this.settingsProvider.set(key, value);
|
|
1011
|
+
this.changed.next({ key, value });
|
|
1012
|
+
}
|
|
1013
|
+
else {
|
|
1014
|
+
console.warn(`Setting with key "${key}" not found.`);
|
|
1015
|
+
this.settingsCache.set(key, value);
|
|
1016
|
+
this.set(key, value);
|
|
1017
|
+
}
|
|
1018
|
+
}
|
|
1019
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPSettingsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1020
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPSettingsService, providedIn: 'root' }); }
|
|
1021
|
+
}
|
|
1022
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPSettingsService, decorators: [{
|
|
1023
|
+
type: Injectable,
|
|
1024
|
+
args: [{
|
|
1025
|
+
providedIn: 'root',
|
|
1026
|
+
}]
|
|
1027
|
+
}] });
|
|
1028
|
+
|
|
1029
|
+
const AXPNavigateAction = createAction('[Navigate] Action', props());
|
|
1030
|
+
const AXPSignOutAction = createAction('[SignOut] Action');
|
|
1031
|
+
const AXPSignInAction = createAction('[SignIn] Action');
|
|
1032
|
+
|
|
1033
|
+
class AXPCommonEffects {
|
|
1034
|
+
constructor(actions$, router, settingService) {
|
|
1035
|
+
this.actions$ = actions$;
|
|
1036
|
+
this.router = router;
|
|
1037
|
+
this.settingService = settingService;
|
|
1038
|
+
this.command$ = createEffect(() => this.actions$.pipe(ofType(AXPNavigateAction), switchMap((action) => {
|
|
1039
|
+
if (Array.isArray(action.payload.commands))
|
|
1040
|
+
this.router.navigate(action.payload.commands, action.payload.extras);
|
|
1041
|
+
else {
|
|
1042
|
+
if (action.payload.commands.toLowerCase().startsWith('http'))
|
|
1043
|
+
window.open(action.payload.commands, '_blank');
|
|
1044
|
+
else
|
|
1045
|
+
this.router.navigate([action.payload.commands], action.payload.extras);
|
|
1046
|
+
}
|
|
1047
|
+
return of();
|
|
1048
|
+
})), { dispatch: false });
|
|
1049
|
+
}
|
|
1050
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPCommonEffects, deps: [{ token: i1.Actions }, { token: i2.Router }, { token: AXPSettingsService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1051
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPCommonEffects }); }
|
|
1052
|
+
}
|
|
1053
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPCommonEffects, decorators: [{
|
|
1054
|
+
type: Injectable
|
|
1055
|
+
}], ctorParameters: () => [{ type: i1.Actions }, { type: i2.Router }, { type: AXPSettingsService }] });
|
|
1056
|
+
|
|
1057
|
+
//TODO Loading, Redirect, Drawer, Show toast
|
|
1058
|
+
const AXPRedirectEvent = createWorkFlowEvent('Redirect Event Fired');
|
|
1059
|
+
class AXPWorkflowNavigateAction extends AXPWorkflowAction {
|
|
1060
|
+
constructor() {
|
|
1061
|
+
super(...arguments);
|
|
1062
|
+
this.router = inject(Router);
|
|
1063
|
+
}
|
|
1064
|
+
async execute(context) {
|
|
1065
|
+
const payload = context.getVariable('payload');
|
|
1066
|
+
if (Array.isArray(payload.commands)) {
|
|
1067
|
+
this.router.navigate(payload.commands, payload.extras);
|
|
1068
|
+
}
|
|
1069
|
+
else {
|
|
1070
|
+
if (payload.commands.toLowerCase().startsWith('http') || payload.target == "blank") {
|
|
1071
|
+
window.open(payload.commands, '_blank');
|
|
1072
|
+
}
|
|
1073
|
+
else
|
|
1074
|
+
this.router.navigate([payload.commands], payload.extras);
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPWorkflowNavigateAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1078
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPWorkflowNavigateAction }); }
|
|
1079
|
+
}
|
|
1080
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPWorkflowNavigateAction, decorators: [{
|
|
1081
|
+
type: Injectable
|
|
1082
|
+
}] });
|
|
1083
|
+
class AXPDialogConfirmAction extends AXPWorkflowAction {
|
|
1084
|
+
constructor() {
|
|
1085
|
+
super(...arguments);
|
|
1086
|
+
this.dialogService = inject(AXDialogService);
|
|
1087
|
+
this.translationService = inject(AXTranslationService);
|
|
1088
|
+
}
|
|
1089
|
+
async execute(context) {
|
|
1090
|
+
context.setOutput('result', false);
|
|
1091
|
+
const dialogResult = await this.dialogService.confirm(await this.translationService.translateAsync(this.title), await this.translationService.translateAsync(this.message), (await this.translationService.translateAsync(this.type)));
|
|
1092
|
+
context.setOutput('result', dialogResult.result);
|
|
1093
|
+
}
|
|
1094
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPDialogConfirmAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1095
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPDialogConfirmAction }); }
|
|
1096
|
+
}
|
|
1097
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPDialogConfirmAction, decorators: [{
|
|
1098
|
+
type: Injectable
|
|
1099
|
+
}] });
|
|
1100
|
+
class AXPToastAction extends AXPWorkflowAction {
|
|
1101
|
+
constructor() {
|
|
1102
|
+
super(...arguments);
|
|
1103
|
+
this.toastService = inject(AXToastService);
|
|
1104
|
+
this.translationService = inject(AXTranslationService);
|
|
1105
|
+
}
|
|
1106
|
+
async execute(context) {
|
|
1107
|
+
this.toastService.show({
|
|
1108
|
+
color: this.color,
|
|
1109
|
+
title: await this.translationService.translateAsync(this.title),
|
|
1110
|
+
content: await this.translationService.translateAsync(this.content),
|
|
1111
|
+
closeButton: true,
|
|
1112
|
+
timeOut: 3000,
|
|
1113
|
+
timeOutProgress: true,
|
|
1114
|
+
});
|
|
1115
|
+
}
|
|
1116
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPToastAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1117
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPToastAction }); }
|
|
1118
|
+
}
|
|
1119
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPToastAction, decorators: [{
|
|
1120
|
+
type: Injectable
|
|
1121
|
+
}] });
|
|
1122
|
+
|
|
1123
|
+
class AXMWorkflowErrorHandler {
|
|
1124
|
+
constructor() {
|
|
1125
|
+
this.dialog = inject(AXDialogService);
|
|
1126
|
+
}
|
|
1127
|
+
handleError(error, next) {
|
|
1128
|
+
if (error instanceof AXPWorkflowError) {
|
|
1129
|
+
this.dialog.alert("Somthing is wrong!", error.inner ? error.inner.message : error.message, 'danger');
|
|
1130
|
+
next(error);
|
|
1131
|
+
}
|
|
1132
|
+
else {
|
|
1133
|
+
next(error);
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMWorkflowErrorHandler, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1137
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMWorkflowErrorHandler }); }
|
|
1138
|
+
}
|
|
1139
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMWorkflowErrorHandler, decorators: [{
|
|
1140
|
+
type: Injectable
|
|
1141
|
+
}] });
|
|
1142
|
+
|
|
1143
|
+
class AXPCommonModule {
|
|
1144
|
+
static forRoot(configs) {
|
|
1145
|
+
return {
|
|
1146
|
+
ngModule: AXPCommonModule,
|
|
1147
|
+
providers: [
|
|
1148
|
+
...(configs?.errorHandlers || []),
|
|
1149
|
+
{
|
|
1150
|
+
provide: 'AXPCommonModuleFactory',
|
|
1151
|
+
useFactory: (registry) => () => {
|
|
1152
|
+
registry.register(...(configs?.errorHandlers || []));
|
|
1153
|
+
},
|
|
1154
|
+
deps: [AXPErrorHandlerRegistryService],
|
|
1155
|
+
multi: true,
|
|
1156
|
+
},
|
|
1157
|
+
],
|
|
1158
|
+
};
|
|
1159
|
+
}
|
|
1160
|
+
static forChild(configs) {
|
|
1161
|
+
return {
|
|
1162
|
+
ngModule: AXPCommonModule,
|
|
1163
|
+
providers: [
|
|
1164
|
+
...(configs?.errorHandlers || []),
|
|
1165
|
+
{
|
|
1166
|
+
provide: 'AXPCommonModuleFactory',
|
|
1167
|
+
useFactory: (registry) => () => {
|
|
1168
|
+
registry.register(...(configs?.errorHandlers || []));
|
|
1169
|
+
},
|
|
1170
|
+
deps: [AXPErrorHandlerRegistryService],
|
|
1171
|
+
multi: true,
|
|
1172
|
+
},
|
|
1173
|
+
],
|
|
1174
|
+
};
|
|
1175
|
+
}
|
|
1176
|
+
/**
|
|
1177
|
+
* @ignore
|
|
1178
|
+
*/
|
|
1179
|
+
constructor(instances, appInitService, settingsService, seederService) {
|
|
1180
|
+
instances.forEach((f) => {
|
|
1181
|
+
f();
|
|
1182
|
+
});
|
|
1183
|
+
// appInitService.registerTask({
|
|
1184
|
+
// name: 'Modules',
|
|
1185
|
+
// statusText: 'Initializing Modules ...',
|
|
1186
|
+
// run: () =>
|
|
1187
|
+
// new Promise<void>((resolve) => {
|
|
1188
|
+
// setTimeout(() => {
|
|
1189
|
+
// resolve();
|
|
1190
|
+
// }, 250);
|
|
1191
|
+
// }),
|
|
1192
|
+
// });
|
|
1193
|
+
//
|
|
1194
|
+
appInitService.registerTask({
|
|
1195
|
+
name: 'Settings',
|
|
1196
|
+
statusText: 'Loading Settings ...',
|
|
1197
|
+
run: async () => {
|
|
1198
|
+
await settingsService.load();
|
|
1199
|
+
},
|
|
1200
|
+
});
|
|
1201
|
+
//
|
|
1202
|
+
//
|
|
1203
|
+
appInitService.registerTask({
|
|
1204
|
+
name: 'Seeder',
|
|
1205
|
+
statusText: 'Seed Data ...',
|
|
1206
|
+
run: async () => {
|
|
1207
|
+
await seederService.seed();
|
|
1208
|
+
},
|
|
1209
|
+
});
|
|
1210
|
+
}
|
|
1211
|
+
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 }); }
|
|
1212
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: AXPCommonModule, imports: [i1.EffectsFeatureModule, i5.AXPWorkflowModule, AXPopupModule,
|
|
1213
|
+
AXDateTimeModule,
|
|
1214
|
+
AXToastModule], exports: [RouterModule] }); }
|
|
1215
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPCommonModule, providers: [
|
|
1216
|
+
AXPAppStartUpProvider,
|
|
1217
|
+
{
|
|
1218
|
+
provide: ErrorHandler,
|
|
1219
|
+
useClass: AXPGlobalErrorHandler,
|
|
1220
|
+
},
|
|
1221
|
+
{
|
|
1222
|
+
provide: AXPCustomOperatorService,
|
|
1223
|
+
useClass: AXPCustomOperatorServiceImpl,
|
|
1224
|
+
},
|
|
1225
|
+
{
|
|
1226
|
+
provide: AXPFilterOperatorMiddlewareService,
|
|
1227
|
+
useClass: AXPFilterOperatorMiddlewareServiceImpl,
|
|
1228
|
+
},
|
|
1229
|
+
], imports: [EffectsModule.forFeature([AXPCommonEffects]),
|
|
1230
|
+
AXPWorkflowModule.forChild({
|
|
1231
|
+
actions: {
|
|
1232
|
+
navigate: AXPDialogConfirmAction,
|
|
1233
|
+
'show-prompt-dialog': AXPDialogConfirmAction,
|
|
1234
|
+
'show-toast': AXPToastAction,
|
|
1235
|
+
},
|
|
1236
|
+
}),
|
|
1237
|
+
AXPopupModule,
|
|
1238
|
+
AXDateTimeModule,
|
|
1239
|
+
AXToastModule, RouterModule] }); }
|
|
1240
|
+
}
|
|
1241
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPCommonModule, decorators: [{
|
|
1242
|
+
type: NgModule,
|
|
1243
|
+
args: [{
|
|
1244
|
+
imports: [
|
|
1245
|
+
EffectsModule.forFeature([AXPCommonEffects]),
|
|
1246
|
+
AXPWorkflowModule.forChild({
|
|
1247
|
+
actions: {
|
|
1248
|
+
navigate: AXPDialogConfirmAction,
|
|
1249
|
+
'show-prompt-dialog': AXPDialogConfirmAction,
|
|
1250
|
+
'show-toast': AXPToastAction,
|
|
1251
|
+
},
|
|
1252
|
+
}),
|
|
1253
|
+
AXPopupModule,
|
|
1254
|
+
AXDateTimeModule,
|
|
1255
|
+
AXToastModule,
|
|
1256
|
+
],
|
|
1257
|
+
exports: [RouterModule],
|
|
1258
|
+
providers: [
|
|
1259
|
+
AXPAppStartUpProvider,
|
|
1260
|
+
{
|
|
1261
|
+
provide: ErrorHandler,
|
|
1262
|
+
useClass: AXPGlobalErrorHandler,
|
|
1263
|
+
},
|
|
1264
|
+
{
|
|
1265
|
+
provide: AXPCustomOperatorService,
|
|
1266
|
+
useClass: AXPCustomOperatorServiceImpl,
|
|
1267
|
+
},
|
|
1268
|
+
{
|
|
1269
|
+
provide: AXPFilterOperatorMiddlewareService,
|
|
1270
|
+
useClass: AXPFilterOperatorMiddlewareServiceImpl,
|
|
1271
|
+
},
|
|
1272
|
+
],
|
|
1273
|
+
}]
|
|
1274
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
1275
|
+
type: Inject,
|
|
1276
|
+
args: ['AXPCommonModuleFactory']
|
|
1277
|
+
}] }, { type: AXPAppStartUpService }, { type: AXPSettingsService }, { type: AXPDataSeederService }] });
|
|
1278
|
+
|
|
1279
|
+
class AXPTextLogoConfig {
|
|
1280
|
+
constructor(text) {
|
|
1281
|
+
this.text = text;
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
class AXPImageUrlLogoConfig {
|
|
1285
|
+
constructor(url) {
|
|
1286
|
+
this.url = url;
|
|
1287
|
+
}
|
|
1288
|
+
}
|
|
1289
|
+
class AXPFontIconLogoConfig {
|
|
1290
|
+
constructor(iconClass) {
|
|
1291
|
+
this.iconClass = iconClass;
|
|
1292
|
+
}
|
|
1293
|
+
}
|
|
1294
|
+
class AXPComponentLogoConfig {
|
|
1295
|
+
constructor(component) {
|
|
1296
|
+
this.component = component;
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
const ENVIRONMENT = new InjectionToken('ENVIRONMENT');
|
|
1301
|
+
const AXP_PLATFORM_CONFIG_TOKEN = new InjectionToken('AXP_PLATFORM_CONFIG_TOKEN', {
|
|
1302
|
+
providedIn: 'root',
|
|
1303
|
+
factory: () => {
|
|
1304
|
+
return AXPPlatformDefaultConfigs;
|
|
1305
|
+
},
|
|
1306
|
+
});
|
|
1307
|
+
const AXPPlatformDefaultConfigs = {
|
|
1308
|
+
copyright: 'ACoreX @ 2023',
|
|
1309
|
+
title: 'ACoreX Platform',
|
|
1310
|
+
logo: {
|
|
1311
|
+
dark: new AXPTextLogoConfig('ACoreX'),
|
|
1312
|
+
light: new AXPTextLogoConfig('ACoreX'),
|
|
1313
|
+
colored: new AXPTextLogoConfig('ACoreX'),
|
|
1314
|
+
},
|
|
1315
|
+
useLocalData: false,
|
|
1316
|
+
network: {
|
|
1317
|
+
timeOut: 5000,
|
|
1318
|
+
}
|
|
1319
|
+
};
|
|
1320
|
+
function configPlatform(config = AXPPlatformDefaultConfigs) {
|
|
1321
|
+
return merge(AXPPlatformDefaultConfigs, config);
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
const AXP_ROOT_CONFIG_TOKEN = new InjectionToken('AXP_ROOT_CONFIG_TOKEN');
|
|
1325
|
+
|
|
1326
|
+
// src/app/directives/grid-layout.directive.ts
|
|
1327
|
+
class AXPGridLayoutDirective {
|
|
1328
|
+
constructor(el, renderer) {
|
|
1329
|
+
this.el = el;
|
|
1330
|
+
this.renderer = renderer;
|
|
1331
|
+
}
|
|
1332
|
+
ngOnChanges(changes) {
|
|
1333
|
+
if (changes['options']) {
|
|
1334
|
+
this.applyTailwindClasses();
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
applyTailwindClasses() {
|
|
1338
|
+
// Clear existing grid classes
|
|
1339
|
+
this.clearClasses();
|
|
1340
|
+
// Apply new grid classes based on the input options
|
|
1341
|
+
this.setClasses(this.options.positions?.default, '');
|
|
1342
|
+
this.setClasses(this.options.positions?.md, 'md:');
|
|
1343
|
+
this.setClasses(this.options.positions?.lg, 'lg:');
|
|
1344
|
+
this.setClasses(this.options.positions?.xl, 'xl:');
|
|
1345
|
+
this.setClasses(this.options.positions?.xxl, '2xl:');
|
|
1346
|
+
}
|
|
1347
|
+
setClasses(positions, prefix) {
|
|
1348
|
+
if (positions == null)
|
|
1349
|
+
return;
|
|
1350
|
+
const colStart = positions.colStart ? `${prefix}ax-col-start-${positions.colStart}` : '';
|
|
1351
|
+
const colEnd = positions.colEnd ? `${prefix}ax-col-end-${positions.colEnd}` : '';
|
|
1352
|
+
const colSpan = positions.colSpan ? `${prefix}ax-col-span-${positions.colSpan}` : '';
|
|
1353
|
+
const rowStart = positions.rowStart ? `${prefix}ax-row-start-${positions.rowStart}` : '';
|
|
1354
|
+
const rowEnd = positions.rowEnd ? `${prefix}ax-row-end-${positions.rowEnd}` : '';
|
|
1355
|
+
const rowSpan = positions.rowSpan ? `${prefix}ax-row-span-${positions.rowSpan}` : '';
|
|
1356
|
+
const order = positions.order ? `${prefix}ax-order-${positions.order}` : ''; // Handling order
|
|
1357
|
+
[colStart, colEnd, colSpan, rowStart, rowEnd, rowSpan, order].forEach(cls => {
|
|
1358
|
+
if (cls) {
|
|
1359
|
+
this.renderer.addClass(this.el.nativeElement, cls);
|
|
1360
|
+
}
|
|
1361
|
+
});
|
|
1362
|
+
}
|
|
1363
|
+
clearClasses() {
|
|
1364
|
+
const currentClasses = this.el.nativeElement.className.split(' ');
|
|
1365
|
+
currentClasses.forEach((className) => {
|
|
1366
|
+
if (className.startsWith('ax-col-') || className.startsWith('ax-row-') || className.startsWith('ax-order-')) {
|
|
1367
|
+
this.renderer.removeClass(this.el.nativeElement, className);
|
|
1368
|
+
}
|
|
1369
|
+
});
|
|
1370
|
+
}
|
|
1371
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPGridLayoutDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1372
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.0", type: AXPGridLayoutDirective, isStandalone: true, selector: "[gridLayout]", inputs: { options: ["gridLayout", "options"] }, usesOnChanges: true, ngImport: i0 }); }
|
|
1373
|
+
}
|
|
1374
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPGridLayoutDirective, decorators: [{
|
|
1375
|
+
type: Directive,
|
|
1376
|
+
args: [{
|
|
1377
|
+
selector: '[gridLayout]',
|
|
1378
|
+
standalone: true,
|
|
1379
|
+
}]
|
|
1380
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }], propDecorators: { options: [{
|
|
1381
|
+
type: Input,
|
|
1382
|
+
args: ['gridLayout']
|
|
1383
|
+
}] } });
|
|
1384
|
+
|
|
1385
|
+
class AXPStickyDirective {
|
|
1386
|
+
get isSticky() {
|
|
1387
|
+
return this._isSticky;
|
|
1388
|
+
}
|
|
1389
|
+
set isSticky(v) {
|
|
1390
|
+
this._isSticky = v;
|
|
1391
|
+
this.isStickyChange.emit(v);
|
|
1392
|
+
}
|
|
1393
|
+
constructor(element, renderer, zone, cdr) {
|
|
1394
|
+
this.element = element;
|
|
1395
|
+
this.renderer = renderer;
|
|
1396
|
+
this.zone = zone;
|
|
1397
|
+
this.cdr = cdr;
|
|
1398
|
+
this.stickyOffset = 100;
|
|
1399
|
+
this.isStickyChange = new EventEmitter();
|
|
1400
|
+
this._isSticky = false;
|
|
1401
|
+
this.onParentScroll = () => {
|
|
1402
|
+
this.zone.runOutsideAngular(() => {
|
|
1403
|
+
const scrollPosition = this.parentElement === window ?
|
|
1404
|
+
window.scrollY :
|
|
1405
|
+
this.parentElement.scrollTop + this.targetElement.offsetTop;
|
|
1406
|
+
if (scrollPosition - this.stickyOffset >= this.topOffset && !this.isSticky) {
|
|
1407
|
+
this.stickyClass.split(' ').forEach(c => {
|
|
1408
|
+
this.renderer.addClass(this.targetElement, c);
|
|
1409
|
+
});
|
|
1410
|
+
this.isSticky = true;
|
|
1411
|
+
this.cdr.markForCheck();
|
|
1412
|
+
}
|
|
1413
|
+
else if (scrollPosition <= this.topOffset && this.isSticky) {
|
|
1414
|
+
this.stickyClass.split(' ').forEach(c => {
|
|
1415
|
+
this.renderer.removeClass(this.targetElement, c);
|
|
1416
|
+
});
|
|
1417
|
+
this.isSticky = false;
|
|
1418
|
+
this.cdr.markForCheck();
|
|
1419
|
+
}
|
|
1420
|
+
});
|
|
1421
|
+
};
|
|
1422
|
+
}
|
|
1423
|
+
ngAfterViewInit() {
|
|
1424
|
+
if (this.stickyParent instanceof HTMLElement) {
|
|
1425
|
+
this.parentElement = this.stickyParent;
|
|
1426
|
+
}
|
|
1427
|
+
else {
|
|
1428
|
+
this.parentElement = document.querySelector(this.stickyParent) || window;
|
|
1429
|
+
}
|
|
1430
|
+
this.targetElement = document.querySelector(this.stickyTarget) || this.element.nativeElement;
|
|
1431
|
+
this.topOffset = this.targetElement.offsetTop;
|
|
1432
|
+
this.parentElement.addEventListener('scroll', this.onParentScroll.bind(this));
|
|
1433
|
+
}
|
|
1434
|
+
ngOnDestroy() {
|
|
1435
|
+
this.parentElement.removeEventListener('scroll', this.onParentScroll);
|
|
1436
|
+
}
|
|
1437
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPStickyDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1438
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.0", type: AXPStickyDirective, isStandalone: true, selector: "[axpSticky]", inputs: { stickyClass: ["axpSticky", "stickyClass"], stickyOffset: "stickyOffset", stickyParent: "stickyParent", stickyTarget: "stickyTarget" }, outputs: { isStickyChange: "isStickyChange" }, exportAs: ["axpSticky"], ngImport: i0 }); }
|
|
1439
|
+
}
|
|
1440
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPStickyDirective, decorators: [{
|
|
1441
|
+
type: Directive,
|
|
1442
|
+
args: [{
|
|
1443
|
+
selector: '[axpSticky]',
|
|
1444
|
+
exportAs: 'axpSticky',
|
|
1445
|
+
standalone: true
|
|
1446
|
+
}]
|
|
888
1447
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }], propDecorators: { stickyClass: [{
|
|
889
1448
|
type: Input,
|
|
890
1449
|
args: ['axpSticky']
|
|
@@ -1065,27 +1624,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
|
1065
1624
|
args: ['AXPComponentSlotModuleFactory']
|
|
1066
1625
|
}] }] });
|
|
1067
1626
|
|
|
1068
|
-
class AXPTextLogoConfig {
|
|
1069
|
-
constructor(text) {
|
|
1070
|
-
this.text = text;
|
|
1071
|
-
}
|
|
1072
|
-
}
|
|
1073
|
-
class AXPImageUrlLogoConfig {
|
|
1074
|
-
constructor(url) {
|
|
1075
|
-
this.url = url;
|
|
1076
|
-
}
|
|
1077
|
-
}
|
|
1078
|
-
class AXPFontIconLogoConfig {
|
|
1079
|
-
constructor(iconClass) {
|
|
1080
|
-
this.iconClass = iconClass;
|
|
1081
|
-
}
|
|
1082
|
-
}
|
|
1083
|
-
class AXPComponentLogoConfig {
|
|
1084
|
-
constructor(component) {
|
|
1085
|
-
this.component = component;
|
|
1086
|
-
}
|
|
1087
|
-
}
|
|
1088
|
-
|
|
1089
1627
|
class AXPLogoComponent {
|
|
1090
1628
|
ngOnInit() {
|
|
1091
1629
|
switch (true) {
|
|
@@ -1106,7 +1644,7 @@ class AXPLogoComponent {
|
|
|
1106
1644
|
}
|
|
1107
1645
|
}
|
|
1108
1646
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPLogoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1109
|
-
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"] }] }); }
|
|
1647
|
+
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$1.AXImageComponent, selector: "ax-image", inputs: ["overlayMode", "src", "alt", "priority", "lazy"], outputs: ["onLoad", "onError"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i5$1.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }] }); }
|
|
1110
1648
|
}
|
|
1111
1649
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPLogoComponent, decorators: [{
|
|
1112
1650
|
type: Component,
|
|
@@ -1240,358 +1778,15 @@ class AXPMenuProviderService {
|
|
|
1240
1778
|
this.pendingInserts = [];
|
|
1241
1779
|
this.pendingRemovals = [];
|
|
1242
1780
|
this.pendingUpdates = [];
|
|
1243
|
-
this.pendingAdditions = [];
|
|
1244
|
-
}
|
|
1245
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPMenuProviderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1246
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPMenuProviderService, providedIn: 'root' }); }
|
|
1247
|
-
}
|
|
1248
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPMenuProviderService, decorators: [{
|
|
1249
|
-
type: Injectable,
|
|
1250
|
-
args: [{ providedIn: 'root' }]
|
|
1251
|
-
}] });
|
|
1252
|
-
|
|
1253
|
-
const AXPNavigateAction = createAction('[Navigate] Action', props());
|
|
1254
|
-
const AXPSignOutAction = createAction('[SignOut] Action');
|
|
1255
|
-
const AXPSignInAction = createAction('[SignIn] Action');
|
|
1256
|
-
|
|
1257
|
-
// Enum to distinguish between single settings and groups
|
|
1258
|
-
var AXPSettingDefinitionItemType;
|
|
1259
|
-
(function (AXPSettingDefinitionItemType) {
|
|
1260
|
-
AXPSettingDefinitionItemType["Single"] = "single";
|
|
1261
|
-
AXPSettingDefinitionItemType["Group"] = "group";
|
|
1262
|
-
})(AXPSettingDefinitionItemType || (AXPSettingDefinitionItemType = {}));
|
|
1263
|
-
|
|
1264
|
-
// Injection token for setting providers
|
|
1265
|
-
const AXP_SETTING_PROVIDER = new InjectionToken('AXP_SETTING_PROVIDER');
|
|
1266
|
-
class AXPSettingProviderService {
|
|
1267
|
-
constructor() {
|
|
1268
|
-
this.providers = inject(AXP_SETTING_PROVIDER, { optional: true });
|
|
1269
|
-
this.cache = null;
|
|
1270
|
-
this.pendingInserts = [];
|
|
1271
|
-
this.pendingAdditions = [];
|
|
1272
|
-
}
|
|
1273
|
-
// Retrieve all setting items, applying any pending operations
|
|
1274
|
-
async items() {
|
|
1275
|
-
if (this.cache) {
|
|
1276
|
-
return this.cache;
|
|
1277
|
-
}
|
|
1278
|
-
const items = [];
|
|
1279
|
-
const context = this.createProviderContext(items);
|
|
1280
|
-
if (Array.isArray(this.providers)) {
|
|
1281
|
-
for (const provider of this.providers) {
|
|
1282
|
-
await provider.provide(context);
|
|
1283
|
-
}
|
|
1284
|
-
}
|
|
1285
|
-
this.applyPendingOperations(items);
|
|
1286
|
-
this.cache = items;
|
|
1287
|
-
return items;
|
|
1288
|
-
}
|
|
1289
|
-
// Create the provider context with methods to add items and find existing ones
|
|
1290
|
-
createProviderContext(items) {
|
|
1291
|
-
return {
|
|
1292
|
-
addItems: (newItems) => {
|
|
1293
|
-
items.push(...newItems);
|
|
1294
|
-
},
|
|
1295
|
-
addItem: (item) => {
|
|
1296
|
-
items.push(item);
|
|
1297
|
-
},
|
|
1298
|
-
addGroup: (group) => {
|
|
1299
|
-
items.push(group);
|
|
1300
|
-
},
|
|
1301
|
-
find: (target) => {
|
|
1302
|
-
return {
|
|
1303
|
-
insertGroup: (item, position) => {
|
|
1304
|
-
this.pendingInserts.push({ target, newItems: [item], position });
|
|
1305
|
-
},
|
|
1306
|
-
insertSingle: (item, position) => {
|
|
1307
|
-
this.pendingInserts.push({ target, newItems: [item], position });
|
|
1308
|
-
},
|
|
1309
|
-
insertSingles: (items, position) => {
|
|
1310
|
-
this.pendingInserts.push({ target, newItems: items, position });
|
|
1311
|
-
},
|
|
1312
|
-
addItems: (items) => {
|
|
1313
|
-
this.pendingAdditions.push({ target, newItems: items });
|
|
1314
|
-
},
|
|
1315
|
-
addChildSingleAt: (item, index) => {
|
|
1316
|
-
const foundItemInfo = this.findItemWithParent(this.cache || [], target);
|
|
1317
|
-
if (foundItemInfo && foundItemInfo.foundItem) {
|
|
1318
|
-
const { foundItem } = foundItemInfo;
|
|
1319
|
-
if (foundItem.type === AXPSettingDefinitionItemType.Group) {
|
|
1320
|
-
const group = foundItem;
|
|
1321
|
-
if (index >= 0 && index <= group.singles.length) {
|
|
1322
|
-
group.singles.splice(index, 0, item);
|
|
1323
|
-
}
|
|
1324
|
-
else {
|
|
1325
|
-
console.warn(`Index "${index}" is out of bounds for singles.`);
|
|
1326
|
-
}
|
|
1327
|
-
}
|
|
1328
|
-
else {
|
|
1329
|
-
console.warn(`Target "${target}" is not a group; cannot add a child single.`);
|
|
1330
|
-
}
|
|
1331
|
-
}
|
|
1332
|
-
else {
|
|
1333
|
-
console.warn(`Target "${target}" not found for adding a child single.`);
|
|
1334
|
-
}
|
|
1335
|
-
},
|
|
1336
|
-
addChildSingleFirst: (item) => {
|
|
1337
|
-
const foundItemInfo = this.findItemWithParent(this.cache || [], target);
|
|
1338
|
-
if (foundItemInfo && foundItemInfo.foundItem) {
|
|
1339
|
-
const { foundItem } = foundItemInfo;
|
|
1340
|
-
if (foundItem.type === AXPSettingDefinitionItemType.Group) {
|
|
1341
|
-
const group = foundItem;
|
|
1342
|
-
group.singles.unshift(item);
|
|
1343
|
-
}
|
|
1344
|
-
else {
|
|
1345
|
-
console.warn(`Target "${target}" is not a group; cannot add a child single.`);
|
|
1346
|
-
}
|
|
1347
|
-
}
|
|
1348
|
-
else {
|
|
1349
|
-
console.warn(`Target "${target}" not found for adding a child single.`);
|
|
1350
|
-
}
|
|
1351
|
-
},
|
|
1352
|
-
addChildSingleLast: (item) => {
|
|
1353
|
-
const foundItemInfo = this.findItemWithParent(this.cache || [], target);
|
|
1354
|
-
if (foundItemInfo && foundItemInfo.foundItem) {
|
|
1355
|
-
const { foundItem } = foundItemInfo;
|
|
1356
|
-
if (foundItem.type === AXPSettingDefinitionItemType.Group) {
|
|
1357
|
-
const group = foundItem;
|
|
1358
|
-
group.singles.push(item);
|
|
1359
|
-
}
|
|
1360
|
-
else {
|
|
1361
|
-
console.warn(`Target "${target}" is not a group; cannot add a child single.`);
|
|
1362
|
-
}
|
|
1363
|
-
}
|
|
1364
|
-
else {
|
|
1365
|
-
console.warn(`Target "${target}" not found for adding a child single.`);
|
|
1366
|
-
}
|
|
1367
|
-
},
|
|
1368
|
-
addChildGroupAt: (item, index) => {
|
|
1369
|
-
const foundItemInfo = this.findItemWithParent(this.cache || [], target);
|
|
1370
|
-
if (foundItemInfo && foundItemInfo.foundItem) {
|
|
1371
|
-
const { foundItem } = foundItemInfo;
|
|
1372
|
-
if (foundItem.type === AXPSettingDefinitionItemType.Group) {
|
|
1373
|
-
const group = foundItem;
|
|
1374
|
-
if (index >= 0 && index <= group.groups.length) {
|
|
1375
|
-
group.groups.splice(index, 0, item);
|
|
1376
|
-
}
|
|
1377
|
-
else {
|
|
1378
|
-
console.warn(`Index "${index}" is out of bounds for groups.`);
|
|
1379
|
-
}
|
|
1380
|
-
}
|
|
1381
|
-
else {
|
|
1382
|
-
console.warn(`Target "${target}" is not a group; cannot add a child group.`);
|
|
1383
|
-
}
|
|
1384
|
-
}
|
|
1385
|
-
else {
|
|
1386
|
-
console.warn(`Target "${target}" not found for adding a child group.`);
|
|
1387
|
-
}
|
|
1388
|
-
},
|
|
1389
|
-
addChildGroupFirst: (item) => {
|
|
1390
|
-
const foundItemInfo = this.findItemWithParent(this.cache || [], target);
|
|
1391
|
-
if (foundItemInfo && foundItemInfo.foundItem) {
|
|
1392
|
-
const { foundItem } = foundItemInfo;
|
|
1393
|
-
if (foundItem.type === AXPSettingDefinitionItemType.Group) {
|
|
1394
|
-
const group = foundItem;
|
|
1395
|
-
group.groups.unshift(item);
|
|
1396
|
-
}
|
|
1397
|
-
else {
|
|
1398
|
-
console.warn(`Target "${target}" is not a group; cannot add a child group.`);
|
|
1399
|
-
}
|
|
1400
|
-
}
|
|
1401
|
-
else {
|
|
1402
|
-
console.warn(`Target "${target}" not found for adding a child group.`);
|
|
1403
|
-
}
|
|
1404
|
-
},
|
|
1405
|
-
addChildGroupLast: (item) => {
|
|
1406
|
-
const foundItemInfo = this.findItemWithParent(this.cache || [], target);
|
|
1407
|
-
if (foundItemInfo && foundItemInfo.foundItem) {
|
|
1408
|
-
const { foundItem } = foundItemInfo;
|
|
1409
|
-
if (foundItem.type === AXPSettingDefinitionItemType.Group) {
|
|
1410
|
-
const group = foundItem;
|
|
1411
|
-
group.groups.push(item);
|
|
1412
|
-
}
|
|
1413
|
-
else {
|
|
1414
|
-
console.warn(`Target "${target}" is not a group; cannot add a child group.`);
|
|
1415
|
-
}
|
|
1416
|
-
}
|
|
1417
|
-
else {
|
|
1418
|
-
console.warn(`Target "${target}" not found for adding a child group.`);
|
|
1419
|
-
}
|
|
1420
|
-
},
|
|
1421
|
-
};
|
|
1422
|
-
},
|
|
1423
|
-
};
|
|
1424
|
-
}
|
|
1425
|
-
applyPendingOperations(items) {
|
|
1426
|
-
// Process pending insertions
|
|
1427
|
-
for (const { target, newItems, position } of this.pendingInserts) {
|
|
1428
|
-
const foundItemInfo = this.findItemWithParent(items, target);
|
|
1429
|
-
if (foundItemInfo && foundItemInfo.foundItem) {
|
|
1430
|
-
const { foundItem, parentItems } = foundItemInfo;
|
|
1431
|
-
const index = parentItems.indexOf(foundItem);
|
|
1432
|
-
const insertIndex = position === 'before' ? index : index + 1;
|
|
1433
|
-
parentItems.splice(insertIndex, 0, ...newItems);
|
|
1434
|
-
}
|
|
1435
|
-
else {
|
|
1436
|
-
console.warn(`Target "${target}" not found for insertion.`);
|
|
1437
|
-
}
|
|
1438
|
-
}
|
|
1439
|
-
// Process pending additions
|
|
1440
|
-
for (const { target, newItems } of this.pendingAdditions) {
|
|
1441
|
-
const foundItemInfo = this.findItemWithParent(items, target);
|
|
1442
|
-
if (foundItemInfo && foundItemInfo.foundItem) {
|
|
1443
|
-
const { foundItem } = foundItemInfo;
|
|
1444
|
-
if (foundItem.type === AXPSettingDefinitionItemType.Group) {
|
|
1445
|
-
const group = foundItem;
|
|
1446
|
-
group.groups.push(...newItems.filter((item) => item.type === AXPSettingDefinitionItemType.Group));
|
|
1447
|
-
group.singles.push(...newItems.filter((item) => item.type === AXPSettingDefinitionItemType.Single));
|
|
1448
|
-
}
|
|
1449
|
-
else {
|
|
1450
|
-
console.warn(`Target "${target}" is not a group; cannot add items.`);
|
|
1451
|
-
}
|
|
1452
|
-
}
|
|
1453
|
-
else {
|
|
1454
|
-
console.warn(`Target "${target}" not found for adding items.`);
|
|
1455
|
-
}
|
|
1456
|
-
}
|
|
1457
|
-
// Clear pending operations after applying them
|
|
1458
|
-
this.pendingInserts = [];
|
|
1459
|
-
this.pendingAdditions = [];
|
|
1460
|
-
}
|
|
1461
|
-
findItemWithParent(items, target, parentItems = items) {
|
|
1462
|
-
for (const item of items) {
|
|
1463
|
-
if (item.name === target) {
|
|
1464
|
-
return { foundItem: item, parentItems };
|
|
1465
|
-
}
|
|
1466
|
-
if (item.type === AXPSettingDefinitionItemType.Group) {
|
|
1467
|
-
const group = item;
|
|
1468
|
-
// Search within child groups
|
|
1469
|
-
const groupResult = this.findItemWithParent(group.groups, target, group.groups);
|
|
1470
|
-
if (groupResult) {
|
|
1471
|
-
return groupResult;
|
|
1472
|
-
}
|
|
1473
|
-
// Search within child singles
|
|
1474
|
-
const singleResult = this.findItemWithParent(group.singles, target, group.singles);
|
|
1475
|
-
if (singleResult) {
|
|
1476
|
-
return singleResult;
|
|
1477
|
-
}
|
|
1478
|
-
}
|
|
1479
|
-
}
|
|
1480
|
-
return null;
|
|
1481
|
-
}
|
|
1482
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPSettingProviderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1483
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPSettingProviderService, providedIn: 'root' }); }
|
|
1484
|
-
}
|
|
1485
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPSettingProviderService, decorators: [{
|
|
1486
|
-
type: Injectable,
|
|
1487
|
-
args: [{ providedIn: 'root' }]
|
|
1488
|
-
}] });
|
|
1489
|
-
|
|
1490
|
-
const AXP_SETTINGS_PROVIDER = new InjectionToken('AXP_SETTINGS_PROVIDER', {
|
|
1491
|
-
providedIn: 'root',
|
|
1492
|
-
factory: () => {
|
|
1493
|
-
return new AXPSettingsProviderDefault();
|
|
1494
|
-
}
|
|
1495
|
-
});
|
|
1496
|
-
class AXPSettingsProviderDefault {
|
|
1497
|
-
constructor() {
|
|
1498
|
-
this.cache = new Map();
|
|
1499
|
-
this.localStorageKey = 'AXP_SETTINGS';
|
|
1500
|
-
}
|
|
1501
|
-
async load() {
|
|
1502
|
-
// Load settings from localStorage as a single key
|
|
1503
|
-
const storedSettings = localStorage.getItem(this.localStorageKey);
|
|
1504
|
-
if (storedSettings) {
|
|
1505
|
-
const parsedSettings = JSON.parse(storedSettings);
|
|
1506
|
-
Object.entries(parsedSettings).forEach(([key, value]) => {
|
|
1507
|
-
this.cache.set(key, value);
|
|
1508
|
-
});
|
|
1509
|
-
return Promise.resolve(Array.from(this.cache.entries()).map(c => ({ key: c[0], value: c[1] })));
|
|
1510
|
-
}
|
|
1511
|
-
return Promise.resolve([]);
|
|
1512
|
-
}
|
|
1513
|
-
async set(key, value) {
|
|
1514
|
-
this.cache.set(key, value);
|
|
1515
|
-
// Save to localStorage as a single key
|
|
1516
|
-
const settingsObject = {};
|
|
1517
|
-
this.cache.forEach((val, k) => {
|
|
1518
|
-
settingsObject[k] = val;
|
|
1519
|
-
});
|
|
1520
|
-
localStorage.setItem(this.localStorageKey, JSON.stringify(settingsObject));
|
|
1521
|
-
}
|
|
1522
|
-
}
|
|
1523
|
-
|
|
1524
|
-
class AXPSettingsService {
|
|
1525
|
-
constructor() {
|
|
1526
|
-
this.settingsProvider = inject(AXP_SETTINGS_PROVIDER);
|
|
1527
|
-
this.settingsCache = new Map();
|
|
1528
|
-
this.changed = new Subject();
|
|
1529
|
-
}
|
|
1530
|
-
async load() {
|
|
1531
|
-
try {
|
|
1532
|
-
const settingsList = await this.settingsProvider.load();
|
|
1533
|
-
this.settingsCache.clear();
|
|
1534
|
-
settingsList.forEach((setting) => {
|
|
1535
|
-
this.settingsCache.set(setting.key, setting.value);
|
|
1536
|
-
});
|
|
1537
|
-
return settingsList;
|
|
1538
|
-
}
|
|
1539
|
-
catch (error) {
|
|
1540
|
-
console.error('Error loading settings', error);
|
|
1541
|
-
throw error; // Re-throw or handle it appropriately
|
|
1542
|
-
}
|
|
1543
|
-
}
|
|
1544
|
-
async get(key) {
|
|
1545
|
-
if (this.settingsCache.size == 0) {
|
|
1546
|
-
await this.load();
|
|
1547
|
-
}
|
|
1548
|
-
return cloneDeep(this.settingsCache.get(key));
|
|
1549
|
-
}
|
|
1550
|
-
async set(key, value) {
|
|
1551
|
-
if (this.settingsCache.has(key)) {
|
|
1552
|
-
this.settingsCache.set(key, value);
|
|
1553
|
-
await this.settingsProvider.set(key, value);
|
|
1554
|
-
this.changed.next({ key, value });
|
|
1555
|
-
}
|
|
1556
|
-
else {
|
|
1557
|
-
console.warn(`Setting with key "${key}" not found.`);
|
|
1558
|
-
this.settingsCache.set(key, value);
|
|
1559
|
-
this.set(key, value);
|
|
1560
|
-
}
|
|
1561
|
-
}
|
|
1562
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPSettingsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1563
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPSettingsService, providedIn: 'root' }); }
|
|
1564
|
-
}
|
|
1565
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPSettingsService, decorators: [{
|
|
1566
|
-
type: Injectable,
|
|
1567
|
-
args: [{
|
|
1568
|
-
providedIn: 'root',
|
|
1569
|
-
}]
|
|
1570
|
-
}] });
|
|
1571
|
-
|
|
1572
|
-
class AXPCommonEffects {
|
|
1573
|
-
constructor(actions$, router, settingService) {
|
|
1574
|
-
this.actions$ = actions$;
|
|
1575
|
-
this.router = router;
|
|
1576
|
-
this.settingService = settingService;
|
|
1577
|
-
this.command$ = createEffect(() => this.actions$.pipe(ofType(AXPNavigateAction), switchMap((action) => {
|
|
1578
|
-
if (Array.isArray(action.payload.commands))
|
|
1579
|
-
this.router.navigate(action.payload.commands, action.payload.extras);
|
|
1580
|
-
else {
|
|
1581
|
-
if (action.payload.commands.toLowerCase().startsWith('http'))
|
|
1582
|
-
window.open(action.payload.commands, '_blank');
|
|
1583
|
-
else
|
|
1584
|
-
this.router.navigate([action.payload.commands], action.payload.extras);
|
|
1585
|
-
}
|
|
1586
|
-
return of();
|
|
1587
|
-
})), { dispatch: false });
|
|
1781
|
+
this.pendingAdditions = [];
|
|
1588
1782
|
}
|
|
1589
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type:
|
|
1590
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type:
|
|
1783
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPMenuProviderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1784
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPMenuProviderService, providedIn: 'root' }); }
|
|
1591
1785
|
}
|
|
1592
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type:
|
|
1593
|
-
type: Injectable
|
|
1594
|
-
|
|
1786
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPMenuProviderService, decorators: [{
|
|
1787
|
+
type: Injectable,
|
|
1788
|
+
args: [{ providedIn: 'root' }]
|
|
1789
|
+
}] });
|
|
1595
1790
|
|
|
1596
1791
|
const AXPMenuService = signalStore({ providedIn: 'root' },
|
|
1597
1792
|
// Initial State
|
|
@@ -1605,7 +1800,7 @@ withState((router = inject(Router)) => {
|
|
|
1605
1800
|
};
|
|
1606
1801
|
}),
|
|
1607
1802
|
// Methods for State Management
|
|
1608
|
-
withMethods((store, router = inject(Router), globalStore = inject(
|
|
1803
|
+
withMethods((store, router = inject(Router), globalStore = inject(Store)) => {
|
|
1609
1804
|
return {
|
|
1610
1805
|
setMenuItems(items) {
|
|
1611
1806
|
patchState(store, { items: items });
|
|
@@ -1723,7 +1918,7 @@ class AXPNavBarSlotComponent {
|
|
|
1723
1918
|
<div class="ax-flex ax-items-center ax-justify-between ax-gap-5">
|
|
1724
1919
|
<a *ngFor="let link of items" (click)="handleCommand(link.command)" >{{ link.text }}</a>
|
|
1725
1920
|
</div>
|
|
1726
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
1921
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
1727
1922
|
}
|
|
1728
1923
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPNavBarSlotComponent, decorators: [{
|
|
1729
1924
|
type: Component,
|
|
@@ -1741,340 +1936,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
|
1741
1936
|
type: Input
|
|
1742
1937
|
}] } });
|
|
1743
1938
|
|
|
1744
|
-
const AXPWindowResizeAction = createAction('[Layout] Resize');
|
|
1745
|
-
//
|
|
1746
|
-
const AXPLayoutRootDrawerClose = createAction('[Root Drawer] Close');
|
|
1747
|
-
const AXPLayoutRootDrawerToggle = createAction('[Root Drawer] Toggle');
|
|
1748
|
-
const AXPLayoutChildDrawerClose = createAction('[Child Drawer] Close');
|
|
1749
|
-
const AXPLayoutChildDrawerToggle = createAction('[Child Drawer] Toggle');
|
|
1750
|
-
//
|
|
1751
|
-
const AXPLoadingShowAction = createAction('[Theme] Loading Show');
|
|
1752
|
-
const AXPLoadingHideAction = createAction('[Theme] Loading Hide');
|
|
1753
|
-
|
|
1754
|
-
class AXPLayoutEffects {
|
|
1755
|
-
constructor() {
|
|
1756
|
-
this.settingService = inject(AXPSettingsService);
|
|
1757
|
-
this.actions$ = inject(Actions);
|
|
1758
|
-
this.store$ = inject(Store);
|
|
1759
|
-
this.resize$ = createEffect(() => fromEvent(window, 'resize').pipe(debounceTime(300), map(() => AXPWindowResizeAction())));
|
|
1760
|
-
}
|
|
1761
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPLayoutEffects, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1762
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPLayoutEffects }); }
|
|
1763
|
-
}
|
|
1764
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPLayoutEffects, decorators: [{
|
|
1765
|
-
type: Injectable
|
|
1766
|
-
}] });
|
|
1767
|
-
|
|
1768
|
-
const platform$1 = new AXPlatform();
|
|
1769
|
-
const initialState = {
|
|
1770
|
-
screen: {
|
|
1771
|
-
small: platform$1.is('SM') || platform$1.is('MD'),
|
|
1772
|
-
},
|
|
1773
|
-
drawer: {
|
|
1774
|
-
root: !(platform$1.is('SM') || platform$1.is('MD')),
|
|
1775
|
-
child: !(platform$1.is('SM') || platform$1.is('MD')),
|
|
1776
|
-
},
|
|
1777
|
-
loading: false,
|
|
1778
|
-
};
|
|
1779
|
-
|
|
1780
|
-
const platform = new AXPlatform();
|
|
1781
|
-
// const platform = inject(AXPlatform);
|
|
1782
|
-
const AXPLayoutFeature = createFeature({
|
|
1783
|
-
name: 'layout',
|
|
1784
|
-
reducer: createReducer(initialState,
|
|
1785
|
-
// close drawers on navigatin
|
|
1786
|
-
on(AXPNavigateAction, (state, action) => ({
|
|
1787
|
-
...state,
|
|
1788
|
-
drawer: {
|
|
1789
|
-
...state.drawer,
|
|
1790
|
-
root: platform.is('SM') ? false : state.drawer.root,
|
|
1791
|
-
child: platform.is('SM') ? false : state.drawer.child,
|
|
1792
|
-
},
|
|
1793
|
-
})),
|
|
1794
|
-
// toggle root drawers
|
|
1795
|
-
on(AXPLayoutRootDrawerToggle, (state, action) => ({
|
|
1796
|
-
...state,
|
|
1797
|
-
drawer: {
|
|
1798
|
-
...state.drawer,
|
|
1799
|
-
root: !state.drawer.root,
|
|
1800
|
-
child: !state.drawer.root && platform.is('SM') ? false : state.drawer.child,
|
|
1801
|
-
},
|
|
1802
|
-
})),
|
|
1803
|
-
// close root drawers
|
|
1804
|
-
on(AXPLayoutRootDrawerClose, (state) => ({
|
|
1805
|
-
...state,
|
|
1806
|
-
drawer: { ...state.drawer, root: false },
|
|
1807
|
-
})),
|
|
1808
|
-
// toggle second level child drawers
|
|
1809
|
-
on(AXPLayoutChildDrawerToggle, (state) => ({
|
|
1810
|
-
...state,
|
|
1811
|
-
drawer: { ...state.drawer, child: !state.drawer.child },
|
|
1812
|
-
})),
|
|
1813
|
-
// close second level child drawers
|
|
1814
|
-
on(AXPLayoutChildDrawerClose, (state) => ({
|
|
1815
|
-
...state,
|
|
1816
|
-
drawer: { ...state.drawer, child: false },
|
|
1817
|
-
})),
|
|
1818
|
-
// close drawers on window resize event
|
|
1819
|
-
on(AXPWindowResizeAction, (state) => ({
|
|
1820
|
-
...state,
|
|
1821
|
-
screen: { small: platform.is('SM') || platform.is('MD') },
|
|
1822
|
-
drawer: {
|
|
1823
|
-
...state.drawer,
|
|
1824
|
-
root: platform.is('SM') || platform.is('MD') ? false : state.drawer.root,
|
|
1825
|
-
child: platform.is('SM') || platform.is('MD') ? false : state.drawer.child,
|
|
1826
|
-
},
|
|
1827
|
-
})),
|
|
1828
|
-
// Admin Root layout loading
|
|
1829
|
-
on(AXPLoadingShowAction, (state) => ({
|
|
1830
|
-
...state,
|
|
1831
|
-
loading: true,
|
|
1832
|
-
})), on(AXPLoadingHideAction, (state) => ({
|
|
1833
|
-
...state,
|
|
1834
|
-
loading: false,
|
|
1835
|
-
}))),
|
|
1836
|
-
});
|
|
1837
|
-
const { name, reducer, selectLayoutState } = AXPLayoutFeature;
|
|
1838
|
-
|
|
1839
|
-
const getRootDrawer = () => createSelector(selectLayoutState, (value) => value.drawer.root);
|
|
1840
|
-
const getChildDrawer = () => createSelector(selectLayoutState, (value) => value.drawer.child);
|
|
1841
|
-
const isSmallScreen = () => createSelector(selectLayoutState, (value) => value.screen.small);
|
|
1842
|
-
const isLoading = () => createSelector(selectLayoutState, (value) => value.loading);
|
|
1843
|
-
|
|
1844
|
-
//TODO Loading, Redirect, Drawer, Show toast
|
|
1845
|
-
const AXPRedirectEvent = createWorkFlowEvent('Redirect Event Fired');
|
|
1846
|
-
class AXPWorkflowNavigateAction extends AXPWorkflowAction {
|
|
1847
|
-
constructor() {
|
|
1848
|
-
super(...arguments);
|
|
1849
|
-
this.router = inject(Router);
|
|
1850
|
-
}
|
|
1851
|
-
async execute(context) {
|
|
1852
|
-
const payload = context.getVariable('payload');
|
|
1853
|
-
if (Array.isArray(payload.commands)) {
|
|
1854
|
-
this.router.navigate(payload.commands, payload.extras);
|
|
1855
|
-
}
|
|
1856
|
-
else {
|
|
1857
|
-
if (payload.commands.toLowerCase().startsWith('http') || payload.target == "blank") {
|
|
1858
|
-
window.open(payload.commands, '_blank');
|
|
1859
|
-
}
|
|
1860
|
-
else
|
|
1861
|
-
this.router.navigate([payload.commands], payload.extras);
|
|
1862
|
-
}
|
|
1863
|
-
}
|
|
1864
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPWorkflowNavigateAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1865
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPWorkflowNavigateAction }); }
|
|
1866
|
-
}
|
|
1867
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPWorkflowNavigateAction, decorators: [{
|
|
1868
|
-
type: Injectable
|
|
1869
|
-
}] });
|
|
1870
|
-
class AXPDialogConfirmAction extends AXPWorkflowAction {
|
|
1871
|
-
constructor() {
|
|
1872
|
-
super(...arguments);
|
|
1873
|
-
this.dialogService = inject(AXDialogService);
|
|
1874
|
-
this.translationService = inject(AXTranslationService);
|
|
1875
|
-
}
|
|
1876
|
-
async execute(context) {
|
|
1877
|
-
context.setOutput('result', false);
|
|
1878
|
-
const dialogResult = await this.dialogService.confirm(await this.translationService.translateAsync(this.title), await this.translationService.translateAsync(this.message), (await this.translationService.translateAsync(this.type)));
|
|
1879
|
-
context.setOutput('result', dialogResult.result);
|
|
1880
|
-
}
|
|
1881
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPDialogConfirmAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1882
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPDialogConfirmAction }); }
|
|
1883
|
-
}
|
|
1884
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPDialogConfirmAction, decorators: [{
|
|
1885
|
-
type: Injectable
|
|
1886
|
-
}] });
|
|
1887
|
-
class AXPToastAction extends AXPWorkflowAction {
|
|
1888
|
-
constructor() {
|
|
1889
|
-
super(...arguments);
|
|
1890
|
-
this.toastService = inject(AXToastService);
|
|
1891
|
-
this.translationService = inject(AXTranslationService);
|
|
1892
|
-
}
|
|
1893
|
-
async execute(context) {
|
|
1894
|
-
this.toastService.show({
|
|
1895
|
-
color: this.color,
|
|
1896
|
-
title: await this.translationService.translateAsync(this.title),
|
|
1897
|
-
content: await this.translationService.translateAsync(this.content),
|
|
1898
|
-
closeButton: true,
|
|
1899
|
-
timeOut: 3000,
|
|
1900
|
-
timeOutProgress: true,
|
|
1901
|
-
});
|
|
1902
|
-
}
|
|
1903
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPToastAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1904
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPToastAction }); }
|
|
1905
|
-
}
|
|
1906
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPToastAction, decorators: [{
|
|
1907
|
-
type: Injectable
|
|
1908
|
-
}] });
|
|
1909
|
-
|
|
1910
|
-
class AXMWorkflowErrorHandler {
|
|
1911
|
-
constructor() {
|
|
1912
|
-
this.dialog = inject(AXDialogService);
|
|
1913
|
-
}
|
|
1914
|
-
handleError(error, next) {
|
|
1915
|
-
if (error instanceof AXPWorkflowError) {
|
|
1916
|
-
this.dialog.alert("Somthing is wrong!", error.inner ? error.inner.message : error.message, 'danger');
|
|
1917
|
-
next(error);
|
|
1918
|
-
}
|
|
1919
|
-
else {
|
|
1920
|
-
next(error);
|
|
1921
|
-
}
|
|
1922
|
-
}
|
|
1923
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMWorkflowErrorHandler, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1924
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMWorkflowErrorHandler }); }
|
|
1925
|
-
}
|
|
1926
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMWorkflowErrorHandler, decorators: [{
|
|
1927
|
-
type: Injectable
|
|
1928
|
-
}] });
|
|
1929
|
-
|
|
1930
|
-
class AXPCommonModule {
|
|
1931
|
-
static forRoot(configs) {
|
|
1932
|
-
return {
|
|
1933
|
-
ngModule: AXPCommonModule,
|
|
1934
|
-
providers: [
|
|
1935
|
-
...(configs?.errorHandlers || []),
|
|
1936
|
-
{
|
|
1937
|
-
provide: 'AXPCommonModuleFactory',
|
|
1938
|
-
useFactory: (registry) => () => {
|
|
1939
|
-
registry.register(...(configs?.errorHandlers || []));
|
|
1940
|
-
},
|
|
1941
|
-
deps: [AXPErrorHandlerRegistryService],
|
|
1942
|
-
multi: true,
|
|
1943
|
-
},
|
|
1944
|
-
],
|
|
1945
|
-
};
|
|
1946
|
-
}
|
|
1947
|
-
static forChild(configs) {
|
|
1948
|
-
return {
|
|
1949
|
-
ngModule: AXPCommonModule,
|
|
1950
|
-
providers: [
|
|
1951
|
-
...(configs?.errorHandlers || []),
|
|
1952
|
-
{
|
|
1953
|
-
provide: 'AXPCommonModuleFactory',
|
|
1954
|
-
useFactory: (registry) => () => {
|
|
1955
|
-
registry.register(...(configs?.errorHandlers || []));
|
|
1956
|
-
},
|
|
1957
|
-
deps: [AXPErrorHandlerRegistryService],
|
|
1958
|
-
multi: true,
|
|
1959
|
-
},
|
|
1960
|
-
],
|
|
1961
|
-
};
|
|
1962
|
-
}
|
|
1963
|
-
/**
|
|
1964
|
-
* @ignore
|
|
1965
|
-
*/
|
|
1966
|
-
constructor(instances, appInitService, settingsService, seederService) {
|
|
1967
|
-
instances.forEach((f) => {
|
|
1968
|
-
f();
|
|
1969
|
-
});
|
|
1970
|
-
// appInitService.registerTask({
|
|
1971
|
-
// name: 'Modules',
|
|
1972
|
-
// statusText: 'Initializing Modules ...',
|
|
1973
|
-
// run: () =>
|
|
1974
|
-
// new Promise<void>((resolve) => {
|
|
1975
|
-
// setTimeout(() => {
|
|
1976
|
-
// resolve();
|
|
1977
|
-
// }, 250);
|
|
1978
|
-
// }),
|
|
1979
|
-
// });
|
|
1980
|
-
//
|
|
1981
|
-
appInitService.registerTask({
|
|
1982
|
-
name: 'Settings',
|
|
1983
|
-
statusText: 'Loading Settings ...',
|
|
1984
|
-
run: async () => {
|
|
1985
|
-
await settingsService.load();
|
|
1986
|
-
}
|
|
1987
|
-
});
|
|
1988
|
-
//
|
|
1989
|
-
//
|
|
1990
|
-
appInitService.registerTask({
|
|
1991
|
-
name: 'Seeder',
|
|
1992
|
-
statusText: 'Seed Data ...',
|
|
1993
|
-
run: async () => {
|
|
1994
|
-
await seederService.seed();
|
|
1995
|
-
},
|
|
1996
|
-
});
|
|
1997
|
-
}
|
|
1998
|
-
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 }); }
|
|
1999
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: AXPCommonModule, imports: [i1$1.EffectsFeatureModule, i5$1.StoreFeatureModule, i6.AXPWorkflowModule, AXPopupModule,
|
|
2000
|
-
AXDateTimeModule,
|
|
2001
|
-
AXToastModule], exports: [RouterModule] }); }
|
|
2002
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPCommonModule, providers: [
|
|
2003
|
-
AXPAppStartUpProvider,
|
|
2004
|
-
{
|
|
2005
|
-
provide: ErrorHandler,
|
|
2006
|
-
useClass: AXPGlobalErrorHandler,
|
|
2007
|
-
},
|
|
2008
|
-
], imports: [EffectsModule.forFeature([AXPCommonEffects, AXPLayoutEffects]),
|
|
2009
|
-
StoreModule.forFeature(AXPLayoutFeature),
|
|
2010
|
-
AXPWorkflowModule.forChild({
|
|
2011
|
-
actions: {
|
|
2012
|
-
navigate: AXPDialogConfirmAction,
|
|
2013
|
-
'show-prompt-dialog': AXPDialogConfirmAction,
|
|
2014
|
-
'show-toast': AXPToastAction,
|
|
2015
|
-
},
|
|
2016
|
-
}),
|
|
2017
|
-
AXPopupModule,
|
|
2018
|
-
AXDateTimeModule,
|
|
2019
|
-
AXToastModule, RouterModule] }); }
|
|
2020
|
-
}
|
|
2021
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPCommonModule, decorators: [{
|
|
2022
|
-
type: NgModule,
|
|
2023
|
-
args: [{
|
|
2024
|
-
imports: [
|
|
2025
|
-
EffectsModule.forFeature([AXPCommonEffects, AXPLayoutEffects]),
|
|
2026
|
-
StoreModule.forFeature(AXPLayoutFeature),
|
|
2027
|
-
AXPWorkflowModule.forChild({
|
|
2028
|
-
actions: {
|
|
2029
|
-
navigate: AXPDialogConfirmAction,
|
|
2030
|
-
'show-prompt-dialog': AXPDialogConfirmAction,
|
|
2031
|
-
'show-toast': AXPToastAction,
|
|
2032
|
-
},
|
|
2033
|
-
}),
|
|
2034
|
-
AXPopupModule,
|
|
2035
|
-
AXDateTimeModule,
|
|
2036
|
-
AXToastModule,
|
|
2037
|
-
],
|
|
2038
|
-
exports: [RouterModule],
|
|
2039
|
-
providers: [
|
|
2040
|
-
AXPAppStartUpProvider,
|
|
2041
|
-
{
|
|
2042
|
-
provide: ErrorHandler,
|
|
2043
|
-
useClass: AXPGlobalErrorHandler,
|
|
2044
|
-
},
|
|
2045
|
-
],
|
|
2046
|
-
}]
|
|
2047
|
-
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
2048
|
-
type: Inject,
|
|
2049
|
-
args: ['AXPCommonModuleFactory']
|
|
2050
|
-
}] }, { type: AXPAppStartUpService }, { type: AXPSettingsService }, { type: AXPDataSeederService }] });
|
|
2051
|
-
|
|
2052
|
-
const ENVIRONMENT = new InjectionToken('ENVIRONMENT');
|
|
2053
|
-
const AXP_PLATFORM_CONFIG_TOKEN = new InjectionToken('AXP_PLATFORM_CONFIG_TOKEN', {
|
|
2054
|
-
providedIn: 'root',
|
|
2055
|
-
factory: () => {
|
|
2056
|
-
return AXPPlatformDefaultConfigs;
|
|
2057
|
-
},
|
|
2058
|
-
});
|
|
2059
|
-
const AXPPlatformDefaultConfigs = {
|
|
2060
|
-
copyright: 'ACoreX @ 2023',
|
|
2061
|
-
title: 'ACoreX Platform',
|
|
2062
|
-
logo: {
|
|
2063
|
-
dark: new AXPTextLogoConfig('ACoreX'),
|
|
2064
|
-
light: new AXPTextLogoConfig('ACoreX'),
|
|
2065
|
-
colored: new AXPTextLogoConfig('ACoreX'),
|
|
2066
|
-
},
|
|
2067
|
-
useLocalData: false,
|
|
2068
|
-
network: {
|
|
2069
|
-
timeOut: 5000,
|
|
2070
|
-
}
|
|
2071
|
-
};
|
|
2072
|
-
function configPlatform(config = AXPPlatformDefaultConfigs) {
|
|
2073
|
-
return merge(AXPPlatformDefaultConfigs, config);
|
|
2074
|
-
}
|
|
2075
|
-
|
|
2076
|
-
const AXP_ROOT_CONFIG_TOKEN = new InjectionToken('AXP_ROOT_CONFIG_TOKEN');
|
|
2077
|
-
|
|
2078
1939
|
class AXPSchemaRegistryService {
|
|
2079
1940
|
constructor() {
|
|
2080
1941
|
this.types = new Map();
|
|
@@ -2173,7 +2034,7 @@ class AXPWidgetColumnRendererComponent extends AXDataTableColumnComponent {
|
|
|
2173
2034
|
}
|
|
2174
2035
|
</ng-template>
|
|
2175
2036
|
<ng-template #footer></ng-template>
|
|
2176
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2037
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1$1.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2177
2038
|
}
|
|
2178
2039
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPWidgetColumnRendererComponent, decorators: [{
|
|
2179
2040
|
type: Component,
|
|
@@ -2744,16 +2605,16 @@ class AXPCommonWidgetModule {
|
|
|
2744
2605
|
service.register({
|
|
2745
2606
|
component: {
|
|
2746
2607
|
view: {
|
|
2747
|
-
component: () => import('./acorex-platform-common-text-widget-view.component-
|
|
2608
|
+
component: () => import('./acorex-platform-common-text-widget-view.component-BK3HZGgb.mjs').then((c) => c.AXPTextWidgetViewComponent),
|
|
2748
2609
|
},
|
|
2749
2610
|
filter: {
|
|
2750
|
-
component: () => import('./acorex-platform-common-string-widget-filter.component-
|
|
2611
|
+
component: () => import('./acorex-platform-common-string-widget-filter.component-DAqR2PUN.mjs').then((c) => c.AXPStringWidgetFilterComponent),
|
|
2751
2612
|
},
|
|
2752
2613
|
edit: {
|
|
2753
|
-
component: () => import('./acorex-platform-common-text-widget-edit.component-
|
|
2614
|
+
component: () => import('./acorex-platform-common-text-widget-edit.component-DC_GnFhe.mjs').then((c) => c.AXPTextWidgetEditComponent),
|
|
2754
2615
|
},
|
|
2755
2616
|
column: {
|
|
2756
|
-
component: () => import('./acorex-platform-common-text-widget-column.component-
|
|
2617
|
+
component: () => import('./acorex-platform-common-text-widget-column.component-DVczwvKA.mjs').then((c) => c.AXPTextWidgetColumnComponent),
|
|
2757
2618
|
options: { allowResizing: true },
|
|
2758
2619
|
},
|
|
2759
2620
|
},
|
|
@@ -2768,7 +2629,7 @@ class AXPCommonWidgetModule {
|
|
|
2768
2629
|
name: widgetSchemas.largetext,
|
|
2769
2630
|
component: {
|
|
2770
2631
|
edit: {
|
|
2771
|
-
component: () => import('./acorex-platform-common-largetext-widget-edit.component-
|
|
2632
|
+
component: () => import('./acorex-platform-common-largetext-widget-edit.component-DGMxpnsr.mjs').then((c) => c.AXPLargeTextWidgetEditComponent),
|
|
2772
2633
|
},
|
|
2773
2634
|
column: {
|
|
2774
2635
|
options: {
|
|
@@ -2781,16 +2642,16 @@ class AXPCommonWidgetModule {
|
|
|
2781
2642
|
service.register({
|
|
2782
2643
|
component: {
|
|
2783
2644
|
view: {
|
|
2784
|
-
component: () => import('./acorex-platform-common-number-widget-view.component-
|
|
2645
|
+
component: () => import('./acorex-platform-common-number-widget-view.component-DGfLSGw1.mjs').then((c) => c.AXPNumberWidgetViewComponent),
|
|
2785
2646
|
},
|
|
2786
2647
|
filter: {
|
|
2787
|
-
component: () => import('./acorex-platform-common-number-widget-filter.component-
|
|
2648
|
+
component: () => import('./acorex-platform-common-number-widget-filter.component-DxfJ90n4.mjs').then((c) => c.AXPNumberWidgetFilterComponent),
|
|
2788
2649
|
},
|
|
2789
2650
|
edit: {
|
|
2790
|
-
component: () => import('./acorex-platform-common-number-widget-edit.component-
|
|
2651
|
+
component: () => import('./acorex-platform-common-number-widget-edit.component-Bc5-ZUw4.mjs').then((c) => c.AXPNumberWidgetEditComponent),
|
|
2791
2652
|
},
|
|
2792
2653
|
column: {
|
|
2793
|
-
component: () => import('./acorex-platform-common-number-widget-view.component-
|
|
2654
|
+
component: () => import('./acorex-platform-common-number-widget-view.component-DGfLSGw1.mjs').then((c) => c.AXPNumberWidgetViewComponent),
|
|
2794
2655
|
options: { allowResizing: true },
|
|
2795
2656
|
},
|
|
2796
2657
|
},
|
|
@@ -2818,17 +2679,17 @@ class AXPCommonWidgetModule {
|
|
|
2818
2679
|
service.register({
|
|
2819
2680
|
component: {
|
|
2820
2681
|
view: {
|
|
2821
|
-
component: () => import('./acorex-platform-common-phone-widget-view.component-
|
|
2682
|
+
component: () => import('./acorex-platform-common-phone-widget-view.component-BlFVuoNN.mjs').then((c) => c.AXPPhoneWidgetViewComponent),
|
|
2822
2683
|
},
|
|
2823
2684
|
column: {
|
|
2824
|
-
component: () => import('./acorex-platform-common-phone-widget-column.component-
|
|
2685
|
+
component: () => import('./acorex-platform-common-phone-widget-column.component-D99ncxxJ.mjs').then((c) => c.AXPPhoneWidgetColumnComponent),
|
|
2825
2686
|
options: { allowResizing: true },
|
|
2826
2687
|
},
|
|
2827
2688
|
edit: {
|
|
2828
|
-
component: () => import('./acorex-platform-common-phone-widget-edit.component-
|
|
2689
|
+
component: () => import('./acorex-platform-common-phone-widget-edit.component-a5EAI9FK.mjs').then((c) => c.AXPPhoneWidgetEditComponent),
|
|
2829
2690
|
},
|
|
2830
2691
|
filter: {
|
|
2831
|
-
component: () => import('./acorex-platform-common-string-widget-filter.component-
|
|
2692
|
+
component: () => import('./acorex-platform-common-string-widget-filter.component-DAqR2PUN.mjs').then((c) => c.AXPStringWidgetFilterComponent),
|
|
2832
2693
|
},
|
|
2833
2694
|
},
|
|
2834
2695
|
name: widgetSchemas.phone,
|
|
@@ -2842,16 +2703,16 @@ class AXPCommonWidgetModule {
|
|
|
2842
2703
|
service.register({
|
|
2843
2704
|
component: {
|
|
2844
2705
|
view: {
|
|
2845
|
-
component: () => import('./acorex-platform-common-email-widget-view.component-
|
|
2706
|
+
component: () => import('./acorex-platform-common-email-widget-view.component-C3AUr1HO.mjs').then((c) => c.AXPEmailWidgetViewComponent),
|
|
2846
2707
|
},
|
|
2847
2708
|
edit: {
|
|
2848
|
-
component: () => import('./acorex-platform-common-email-widget-edit.component
|
|
2709
|
+
component: () => import('./acorex-platform-common-email-widget-edit.component--0gaRm4s.mjs').then((c) => c.AXPEmailWidgetEditComponent),
|
|
2849
2710
|
},
|
|
2850
2711
|
filter: {
|
|
2851
|
-
component: () => import('./acorex-platform-common-string-widget-filter.component-
|
|
2712
|
+
component: () => import('./acorex-platform-common-string-widget-filter.component-DAqR2PUN.mjs').then((c) => c.AXPStringWidgetFilterComponent),
|
|
2852
2713
|
},
|
|
2853
2714
|
column: {
|
|
2854
|
-
component: () => import('./acorex-platform-common-email-widget-column.component-
|
|
2715
|
+
component: () => import('./acorex-platform-common-email-widget-column.component-CLNqSuB7.mjs').then((c) => c.AXPEmailWidgetColumnComponent),
|
|
2855
2716
|
options: { allowResizing: true },
|
|
2856
2717
|
},
|
|
2857
2718
|
},
|
|
@@ -2866,16 +2727,16 @@ class AXPCommonWidgetModule {
|
|
|
2866
2727
|
service.register({
|
|
2867
2728
|
component: {
|
|
2868
2729
|
view: {
|
|
2869
|
-
component: () => import('./acorex-platform-common-dateTime-widget-view.component-
|
|
2730
|
+
component: () => import('./acorex-platform-common-dateTime-widget-view.component-KGgJkiKB.mjs').then((c) => c.AXPDateTimeWidgetViewComponent),
|
|
2870
2731
|
},
|
|
2871
2732
|
edit: {
|
|
2872
|
-
component: () => import('./acorex-platform-common-dateTime-widget-edit.component-
|
|
2733
|
+
component: () => import('./acorex-platform-common-dateTime-widget-edit.component-D8W-XEcx.mjs').then((c) => c.AXPDateTimeWidgetEditComponent),
|
|
2873
2734
|
},
|
|
2874
2735
|
filter: {
|
|
2875
|
-
component: () => import('./acorex-platform-common-dateTime-widget-filter.component-
|
|
2736
|
+
component: () => import('./acorex-platform-common-dateTime-widget-filter.component-DngCKwFY.mjs').then((c) => c.AXPDateTimeWidgetFilterComponent),
|
|
2876
2737
|
},
|
|
2877
2738
|
column: {
|
|
2878
|
-
component: () => import('./acorex-platform-common-dateTime-widget-column.component-
|
|
2739
|
+
component: () => import('./acorex-platform-common-dateTime-widget-column.component-DG0leXAo.mjs').then((c) => c.AXPDateTimeWidgetColumnComponent),
|
|
2879
2740
|
options: {
|
|
2880
2741
|
width: '200px',
|
|
2881
2742
|
allowResizing: true,
|
|
@@ -2922,16 +2783,16 @@ class AXPCommonWidgetModule {
|
|
|
2922
2783
|
service.register({
|
|
2923
2784
|
component: {
|
|
2924
2785
|
view: {
|
|
2925
|
-
component: () => import('./acorex-platform-common-toggle-widget-view.component-
|
|
2786
|
+
component: () => import('./acorex-platform-common-toggle-widget-view.component-BTaXXZ88.mjs').then((c) => c.AXPToggleWidgetViewComponent),
|
|
2926
2787
|
},
|
|
2927
2788
|
edit: {
|
|
2928
|
-
component: () => import('./acorex-platform-common-toggle-widget-edit.component-
|
|
2789
|
+
component: () => import('./acorex-platform-common-toggle-widget-edit.component-D64m4agx.mjs').then((c) => c.AXPToggleWidgetEditComponent),
|
|
2929
2790
|
},
|
|
2930
2791
|
filter: {
|
|
2931
|
-
component: () => import('./acorex-platform-common-boolean-widget-filter.component-
|
|
2792
|
+
component: () => import('./acorex-platform-common-boolean-widget-filter.component-S4-3SmKA.mjs').then((c) => c.AXPBooleanWidgetFilterComponent),
|
|
2932
2793
|
},
|
|
2933
2794
|
column: {
|
|
2934
|
-
component: () => import('./acorex-platform-common-toggle-widget-column.component-
|
|
2795
|
+
component: () => import('./acorex-platform-common-toggle-widget-column.component-Bp1d7SAE.mjs').then((c) => c.AXPToggleWidgetColumnComponent),
|
|
2935
2796
|
options: {
|
|
2936
2797
|
width: '100px',
|
|
2937
2798
|
allowResizing: true,
|
|
@@ -2949,16 +2810,16 @@ class AXPCommonWidgetModule {
|
|
|
2949
2810
|
service.register({
|
|
2950
2811
|
component: {
|
|
2951
2812
|
view: {
|
|
2952
|
-
component: () => import('./acorex-platform-common-checkbox-widget-view.component-
|
|
2813
|
+
component: () => import('./acorex-platform-common-checkbox-widget-view.component-CKz8XnjT.mjs').then((c) => c.AXPCheckboxWidgetViewComponent),
|
|
2953
2814
|
},
|
|
2954
2815
|
edit: {
|
|
2955
|
-
component: () => import('./acorex-platform-common-checkbox-widget-edit.component-
|
|
2816
|
+
component: () => import('./acorex-platform-common-checkbox-widget-edit.component-PFRq-XS-.mjs').then((c) => c.AXPCheckboxWidgetEditComponent),
|
|
2956
2817
|
},
|
|
2957
2818
|
filter: {
|
|
2958
|
-
component: () => import('./acorex-platform-common-boolean-widget-filter.component-
|
|
2819
|
+
component: () => import('./acorex-platform-common-boolean-widget-filter.component-S4-3SmKA.mjs').then((c) => c.AXPBooleanWidgetFilterComponent),
|
|
2959
2820
|
},
|
|
2960
2821
|
column: {
|
|
2961
|
-
component: () => import('./acorex-platform-common-checkbox-widget-column.component-
|
|
2822
|
+
component: () => import('./acorex-platform-common-checkbox-widget-column.component-DOoneR7g.mjs').then((c) => c.AXPCheckboxWidgetColumnComponent),
|
|
2962
2823
|
options: {
|
|
2963
2824
|
width: '100px',
|
|
2964
2825
|
allowResizing: true,
|
|
@@ -2976,16 +2837,16 @@ class AXPCommonWidgetModule {
|
|
|
2976
2837
|
service.register({
|
|
2977
2838
|
component: {
|
|
2978
2839
|
view: {
|
|
2979
|
-
component: () => import('./acorex-platform-common-password-widget-view.component-
|
|
2840
|
+
component: () => import('./acorex-platform-common-password-widget-view.component-B_HU-3J1.mjs').then((c) => c.AXPPasswordWidgetViewComponent),
|
|
2980
2841
|
},
|
|
2981
2842
|
column: {
|
|
2982
|
-
component: () => import('./acorex-platform-common-password-widget-column.component-
|
|
2843
|
+
component: () => import('./acorex-platform-common-password-widget-column.component-DEHaVLGK.mjs').then((c) => c.AXPPasswordWidgetColumnComponent),
|
|
2983
2844
|
options: {
|
|
2984
2845
|
allowResizing: true,
|
|
2985
2846
|
},
|
|
2986
2847
|
},
|
|
2987
2848
|
edit: {
|
|
2988
|
-
component: () => import('./acorex-platform-common-password-widget-edit.component-
|
|
2849
|
+
component: () => import('./acorex-platform-common-password-widget-edit.component-DrYyu5v-.mjs').then((c) => c.AXPPasswordWidgetEditComponent),
|
|
2989
2850
|
},
|
|
2990
2851
|
},
|
|
2991
2852
|
filterOptions: {
|
|
@@ -2999,19 +2860,19 @@ class AXPCommonWidgetModule {
|
|
|
2999
2860
|
service.register({
|
|
3000
2861
|
component: {
|
|
3001
2862
|
view: {
|
|
3002
|
-
component: () => import('./acorex-platform-common-file-widget-view.component-
|
|
2863
|
+
component: () => import('./acorex-platform-common-file-widget-view.component-BvMzrs5C.mjs').then((c) => c.AXPFileWidgetViewComponent),
|
|
3003
2864
|
},
|
|
3004
2865
|
column: {
|
|
3005
|
-
component: () => import('./acorex-platform-common-file-widget-column.component-
|
|
2866
|
+
component: () => import('./acorex-platform-common-file-widget-column.component-C9AHk2UP.mjs').then((c) => c.AXPFileWidgetColumnComponent),
|
|
3006
2867
|
options: {
|
|
3007
2868
|
allowResizing: true,
|
|
3008
2869
|
},
|
|
3009
2870
|
},
|
|
3010
2871
|
edit: {
|
|
3011
|
-
component: () => import('./acorex-platform-common-file-widget-edit.component-
|
|
2872
|
+
component: () => import('./acorex-platform-common-file-widget-edit.component-L7bln9k0.mjs').then((c) => c.AXPFileWidgetEditComponent),
|
|
3012
2873
|
},
|
|
3013
2874
|
filter: {
|
|
3014
|
-
component: () => import('./acorex-platform-common-file-widget-filter.component-
|
|
2875
|
+
component: () => import('./acorex-platform-common-file-widget-filter.component-Ce35mqny.mjs').then((c) => c.AXPFileWidgetFilterComponent),
|
|
3015
2876
|
},
|
|
3016
2877
|
},
|
|
3017
2878
|
filterOptions: {
|
|
@@ -3025,16 +2886,16 @@ class AXPCommonWidgetModule {
|
|
|
3025
2886
|
service.register({
|
|
3026
2887
|
component: {
|
|
3027
2888
|
view: {
|
|
3028
|
-
component: () => import('./acorex-platform-common-lookup-widget-view.component-
|
|
2889
|
+
component: () => import('./acorex-platform-common-lookup-widget-view.component-DYAg76YH.mjs').then((c) => c.AXPLookupWidgetViewComponent),
|
|
3029
2890
|
},
|
|
3030
2891
|
edit: {
|
|
3031
|
-
component: () => import('./acorex-platform-common-lookup-widget-edit.component-
|
|
2892
|
+
component: () => import('./acorex-platform-common-lookup-widget-edit.component-DqB_g9Zz.mjs').then((c) => c.AXPLookupWidgetEditComponent),
|
|
3032
2893
|
},
|
|
3033
2894
|
filter: {
|
|
3034
|
-
component: () => import('./acorex-platform-common-lookup-widget-filter.component-
|
|
2895
|
+
component: () => import('./acorex-platform-common-lookup-widget-filter.component-0TPWNWSd.mjs').then((c) => c.AXPLookupWidgetFilterComponent),
|
|
3035
2896
|
},
|
|
3036
2897
|
column: {
|
|
3037
|
-
component: () => import('./acorex-platform-common-lookup-widget-column.component-
|
|
2898
|
+
component: () => import('./acorex-platform-common-lookup-widget-column.component-B-cEaNjv.mjs').then((c) => c.AXPLookupWidgetColumnComponent),
|
|
3038
2899
|
options: {
|
|
3039
2900
|
allowResizing: true,
|
|
3040
2901
|
},
|
|
@@ -3051,19 +2912,19 @@ class AXPCommonWidgetModule {
|
|
|
3051
2912
|
service.register({
|
|
3052
2913
|
component: {
|
|
3053
2914
|
view: {
|
|
3054
|
-
component: () => import('./acorex-platform-common-selection-list-widget-view.component-
|
|
2915
|
+
component: () => import('./acorex-platform-common-selection-list-widget-view.component-3hinF85C.mjs').then((c) => c.AXPSelectionListWidgetViewComponent),
|
|
3055
2916
|
},
|
|
3056
2917
|
edit: {
|
|
3057
|
-
component: () => import('./acorex-platform-common-selection-list-widget-edit.component-
|
|
2918
|
+
component: () => import('./acorex-platform-common-selection-list-widget-edit.component-BmbDQ1LH.mjs').then((c) => c.AXPSelectionListWidgetEditComponent),
|
|
3058
2919
|
},
|
|
3059
2920
|
column: {
|
|
3060
|
-
component: () => import('./acorex-platform-common-selection-list-widget-column.component-
|
|
2921
|
+
component: () => import('./acorex-platform-common-selection-list-widget-column.component-CkOuYy0Z.mjs').then((c) => c.AXPSelectionListWidgetColumnComponent),
|
|
3061
2922
|
options: {
|
|
3062
2923
|
allowResizing: true,
|
|
3063
2924
|
},
|
|
3064
2925
|
},
|
|
3065
2926
|
filter: {
|
|
3066
|
-
component: () => import('./acorex-platform-common-selection-list-widget-filter.component-
|
|
2927
|
+
component: () => import('./acorex-platform-common-selection-list-widget-filter.component-Dm_1-7eT.mjs').then((c) => c.AXPSelectionListWidgetFilterComponent),
|
|
3067
2928
|
},
|
|
3068
2929
|
},
|
|
3069
2930
|
filterOptions: {
|
|
@@ -3077,22 +2938,22 @@ class AXPCommonWidgetModule {
|
|
|
3077
2938
|
service.register({
|
|
3078
2939
|
component: {
|
|
3079
2940
|
view: {
|
|
3080
|
-
component: () => import('./acorex-platform-common-rich-text-widget-view.component-
|
|
2941
|
+
component: () => import('./acorex-platform-common-rich-text-widget-view.component-B9WB-mx9.mjs').then((c) => c.AXPRichTextWidgetViewComponent),
|
|
3081
2942
|
},
|
|
3082
2943
|
edit: {
|
|
3083
|
-
component: () => import('./acorex-platform-common-rich-text-widget-edit.component-
|
|
2944
|
+
component: () => import('./acorex-platform-common-rich-text-widget-edit.component-DL5UyAqe.mjs').then((c) => c.AXPRichTextWidgetEditComponent),
|
|
3084
2945
|
options: {
|
|
3085
2946
|
allowResizing: true,
|
|
3086
2947
|
},
|
|
3087
2948
|
},
|
|
3088
2949
|
column: {
|
|
3089
|
-
component: () => import('./acorex-platform-common-rich-text-widget-column.component-
|
|
2950
|
+
component: () => import('./acorex-platform-common-rich-text-widget-column.component-DOdv5I2s.mjs').then((c) => c.AXPRichTextWidgetColumnComponent),
|
|
3090
2951
|
options: {
|
|
3091
2952
|
width: '400px',
|
|
3092
2953
|
},
|
|
3093
2954
|
},
|
|
3094
2955
|
filter: {
|
|
3095
|
-
component: () => import('./acorex-platform-common-string-widget-filter.component-
|
|
2956
|
+
component: () => import('./acorex-platform-common-string-widget-filter.component-DAqR2PUN.mjs').then((c) => c.AXPStringWidgetFilterComponent),
|
|
3096
2957
|
},
|
|
3097
2958
|
},
|
|
3098
2959
|
filterOptions: {
|
|
@@ -3106,10 +2967,10 @@ class AXPCommonWidgetModule {
|
|
|
3106
2967
|
service.register({
|
|
3107
2968
|
component: {
|
|
3108
2969
|
view: {
|
|
3109
|
-
component: () => import('./acorex-platform-common-map-widget-view.component-
|
|
2970
|
+
component: () => import('./acorex-platform-common-map-widget-view.component-C-DCNaJi.mjs').then((c) => c.AXPMapWidgetViewComponent),
|
|
3110
2971
|
},
|
|
3111
2972
|
edit: {
|
|
3112
|
-
component: () => import('./acorex-platform-common-map-widget-edit.component-
|
|
2973
|
+
component: () => import('./acorex-platform-common-map-widget-edit.component-C3cpsXD5.mjs').then((c) => c.AXPMapWidgetEditComponent),
|
|
3113
2974
|
},
|
|
3114
2975
|
},
|
|
3115
2976
|
filterOptions: {
|
|
@@ -3123,10 +2984,10 @@ class AXPCommonWidgetModule {
|
|
|
3123
2984
|
service.register({
|
|
3124
2985
|
component: {
|
|
3125
2986
|
view: {
|
|
3126
|
-
component: () => import('./acorex-platform-common-avatar-widget-view.component-
|
|
2987
|
+
component: () => import('./acorex-platform-common-avatar-widget-view.component-BOIV0Be1.mjs').then((c) => c.AXPAvatarWidgetViewComponent),
|
|
3127
2988
|
},
|
|
3128
2989
|
edit: {
|
|
3129
|
-
component: () => import('./acorex-platform-common-avatar-widget-edit.component-
|
|
2990
|
+
component: () => import('./acorex-platform-common-avatar-widget-edit.component-DtC2IaE8.mjs').then((c) => c.AXPAvatarWidgetEditComponent),
|
|
3130
2991
|
},
|
|
3131
2992
|
},
|
|
3132
2993
|
filterOptions: {
|
|
@@ -3140,13 +3001,13 @@ class AXPCommonWidgetModule {
|
|
|
3140
3001
|
service.register({
|
|
3141
3002
|
component: {
|
|
3142
3003
|
view: {
|
|
3143
|
-
component: () => import('./acorex-platform-common-messenger-widget-view.component-
|
|
3004
|
+
component: () => import('./acorex-platform-common-messenger-widget-view.component-B6FavkmG.mjs').then((c) => c.AXPMessengerWidgetViewComponent),
|
|
3144
3005
|
},
|
|
3145
3006
|
edit: {
|
|
3146
|
-
component: () => import('./acorex-platform-common-messenger-widget-edit.component-
|
|
3007
|
+
component: () => import('./acorex-platform-common-messenger-widget-edit.component-DC8vQDo0.mjs').then((c) => c.AXPMessengerWidgetEditComponent),
|
|
3147
3008
|
},
|
|
3148
3009
|
column: {
|
|
3149
|
-
component: () => import('./acorex-platform-common-messenger-widget-column.component-
|
|
3010
|
+
component: () => import('./acorex-platform-common-messenger-widget-column.component-B2A7ZBEP.mjs').then((c) => c.AXPMessengerWidgetColumnComponent),
|
|
3150
3011
|
options: {
|
|
3151
3012
|
allowResizing: true,
|
|
3152
3013
|
},
|
|
@@ -3164,13 +3025,13 @@ class AXPCommonWidgetModule {
|
|
|
3164
3025
|
service.register({
|
|
3165
3026
|
component: {
|
|
3166
3027
|
view: {
|
|
3167
|
-
component: () => import('./acorex-platform-common-gallery-widget-view.component-
|
|
3028
|
+
component: () => import('./acorex-platform-common-gallery-widget-view.component-D8YmSi9C.mjs').then((c) => c.AXPGalleryWidgetViewComponent),
|
|
3168
3029
|
},
|
|
3169
3030
|
edit: {
|
|
3170
|
-
component: () => import('./acorex-platform-common-gallery-widget-edit.component-
|
|
3031
|
+
component: () => import('./acorex-platform-common-gallery-widget-edit.component-BVuV2Ib8.mjs').then((c) => c.AXPGalleryWidgetEditComponent),
|
|
3171
3032
|
},
|
|
3172
3033
|
filter: {
|
|
3173
|
-
component: () => import('./acorex-platform-common-gallery-widget-filter.component-
|
|
3034
|
+
component: () => import('./acorex-platform-common-gallery-widget-filter.component-C8tdM6PX.mjs').then((c) => c.AXPGalleryWidgetFilterComponent),
|
|
3174
3035
|
},
|
|
3175
3036
|
},
|
|
3176
3037
|
filterOptions: {
|
|
@@ -3184,10 +3045,10 @@ class AXPCommonWidgetModule {
|
|
|
3184
3045
|
service.register({
|
|
3185
3046
|
component: {
|
|
3186
3047
|
view: {
|
|
3187
|
-
component: () => import('./acorex-platform-common-signature-pad-widget-view.component-
|
|
3048
|
+
component: () => import('./acorex-platform-common-signature-pad-widget-view.component-DkFaMNk8.mjs').then((c) => c.AXPSignaturePadWidgetViewComponent),
|
|
3188
3049
|
},
|
|
3189
3050
|
edit: {
|
|
3190
|
-
component: () => import('./acorex-platform-common-signature-pad-widget-edit.component-
|
|
3051
|
+
component: () => import('./acorex-platform-common-signature-pad-widget-edit.component-DmmPbw-A.mjs').then((c) => c.AXPSignaturePadWidgetEditComponent),
|
|
3191
3052
|
},
|
|
3192
3053
|
},
|
|
3193
3054
|
filterOptions: {
|
|
@@ -3217,5 +3078,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
|
3217
3078
|
* Generated bundle index. Do not edit.
|
|
3218
3079
|
*/
|
|
3219
3080
|
|
|
3220
|
-
export { AXEntityLoaderDefault, AXMEntityCrudService, AXMEntityCrudServiceImpl, AXMWorkflowErrorHandler, 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,
|
|
3081
|
+
export { ALL_DEFAULT_OPERATORS, AXEntityLoaderDefault, AXMEntityCrudService, AXMEntityCrudServiceImpl, AXMWorkflowErrorHandler, AXPAppStartUpProvider, AXPAppStartUpService, AXPClipBoardService, AXPCommonEffects, AXPCommonModule, AXPCommonWidgetModule, AXPComponentLogoConfig, AXPComponentSlotDirective, AXPComponentSlotLoaderService, AXPComponentSlotModule, AXPComponentSlotRegistryService, AXPCustomOperatorService, AXPCustomOperatorServiceImpl, AXPDataGenerator, AXPDataProvider, AXPDataSeederService, AXPDexieEntityStorageService, AXPDialogConfirmAction, AXPEntityCommandScope, AXPEntityDataProvider, AXPEntityDataProviderImpl, AXPEntityListViewConfigEmpty, AXPEntityQueryType, AXPEntityRegistryService, AXPEntityStorageService, AXPErrorHandlerRegistryService, AXPFilterOperatorMiddlewareService, AXPFilterOperatorMiddlewareServiceImpl, AXPFontIconLogoConfig, AXPFooterTextSlotComponent, AXPGlobalErrorHandler, AXPGridLayoutDirective, AXPImageUrlLogoConfig, AXPLogoComponent, AXPMenuProviderService, AXPMenuService, AXPNavBarSlotComponent, AXPNavigateAction, AXPPdfPageSize, AXPPdfService, AXPPlatformDefaultConfigs, AXPRedirectEvent, AXPRelationshipCardinality, AXPRelationshipKind, AXPSchemaModule, AXPSchemaRegistryService, AXPSettingDefinitionProviderService, AXPSettingsService, AXPSignInAction, AXPSignOutAction, AXPStickyDirective, AXPTextLogoConfig, AXPToastAction, AXPWidgetBase, AXPWidgetColumnRendererComponent, AXPWidgetEditBase, AXPWidgetFilterBase, AXPWidgetFilterRendererComponent, AXPWidgetRendererComponent, AXPWorkflowNavigateAction, AXP_DATA_SEEDER_TOKEN, AXP_ENTITY_LOADER, AXP_MENU_PROVIDER, AXP_PLATFORM_CONFIG_TOKEN, AXP_ROOT_CONFIG_TOKEN, AXP_SETTINGS_PROVIDER, AXP_SETTING_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, getEntityInfo, resolveActionLook, widgetSchemas };
|
|
3221
3082
|
//# sourceMappingURL=acorex-platform-common.mjs.map
|