@acorex/platform 18.2.3 → 19.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common/lib/app/app-startup.service.d.ts +1 -2
- package/common/lib/app/application.types.d.ts +3 -3
- package/common/lib/schema/entity/entity.class.d.ts +1 -1
- package/core/index.d.ts +1 -0
- package/core/utils/highlighter.d.ts +43 -0
- package/fesm2022/acorex-platform-auth.mjs +27 -29
- package/fesm2022/acorex-platform-auth.mjs.map +1 -1
- package/fesm2022/{acorex-platform-common-avatar-widget-edit.component-DtC2IaE8.mjs → acorex-platform-common-avatar-widget-edit.component-syRKKn21.mjs} +6 -26
- package/fesm2022/acorex-platform-common-avatar-widget-edit.component-syRKKn21.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-avatar-widget-view.component-BOIV0Be1.mjs → acorex-platform-common-avatar-widget-view.component-DSju_bgg.mjs} +6 -28
- package/fesm2022/acorex-platform-common-avatar-widget-view.component-DSju_bgg.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-boolean-widget-filter.component-S4-3SmKA.mjs → acorex-platform-common-boolean-widget-filter.component-aaKT0FyC.mjs} +6 -26
- package/fesm2022/acorex-platform-common-boolean-widget-filter.component-aaKT0FyC.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-change-password.component-g_GEw3IZ.mjs → acorex-platform-common-change-password.component-DFoC5nP2.mjs} +7 -8
- package/fesm2022/acorex-platform-common-change-password.component-DFoC5nP2.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-checkbox-widget-column.component-DOoneR7g.mjs → acorex-platform-common-checkbox-widget-column.component-DZxykkVr.mjs} +6 -28
- package/fesm2022/acorex-platform-common-checkbox-widget-column.component-DZxykkVr.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-checkbox-widget-edit.component-PFRq-XS-.mjs → acorex-platform-common-checkbox-widget-edit.component-CNmYVpMu.mjs} +6 -29
- package/fesm2022/acorex-platform-common-checkbox-widget-edit.component-CNmYVpMu.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-checkbox-widget-view.component-CKz8XnjT.mjs → acorex-platform-common-checkbox-widget-view.component-3XLnJx9A.mjs} +6 -28
- package/fesm2022/acorex-platform-common-checkbox-widget-view.component-3XLnJx9A.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-dateTime-widget-column.component-DG0leXAo.mjs → acorex-platform-common-dateTime-widget-column.component-CKaMC189.mjs} +6 -27
- package/fesm2022/acorex-platform-common-dateTime-widget-column.component-CKaMC189.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-dateTime-widget-edit.component-D8W-XEcx.mjs → acorex-platform-common-dateTime-widget-edit.component-B50J-bwp.mjs} +6 -26
- package/fesm2022/acorex-platform-common-dateTime-widget-edit.component-B50J-bwp.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-dateTime-widget-filter.component-DngCKwFY.mjs → acorex-platform-common-dateTime-widget-filter.component-CTV2a3c0.mjs} +6 -24
- package/fesm2022/acorex-platform-common-dateTime-widget-filter.component-CTV2a3c0.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-dateTime-widget-view.component-KGgJkiKB.mjs → acorex-platform-common-dateTime-widget-view.component-C7hmUXLz.mjs} +6 -27
- package/fesm2022/acorex-platform-common-dateTime-widget-view.component-C7hmUXLz.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-email-widget-column.component-CLNqSuB7.mjs → acorex-platform-common-email-widget-column.component-BPoSZTqM.mjs} +6 -29
- package/fesm2022/acorex-platform-common-email-widget-column.component-BPoSZTqM.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-email-widget-edit.component--0gaRm4s.mjs → acorex-platform-common-email-widget-edit.component-aLPGOG3r.mjs} +6 -27
- package/fesm2022/acorex-platform-common-email-widget-edit.component-aLPGOG3r.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-email-widget-view.component-C3AUr1HO.mjs → acorex-platform-common-email-widget-view.component-dMByK5bc.mjs} +5 -27
- package/fesm2022/acorex-platform-common-email-widget-view.component-dMByK5bc.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-file-widget-column.component-C9AHk2UP.mjs → acorex-platform-common-file-widget-column.component-Dafc2zLc.mjs} +6 -27
- package/fesm2022/acorex-platform-common-file-widget-column.component-Dafc2zLc.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-file-widget-edit.component-L7bln9k0.mjs → acorex-platform-common-file-widget-edit.component-C31kfJSw.mjs} +6 -27
- package/fesm2022/acorex-platform-common-file-widget-edit.component-C31kfJSw.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-file-widget-filter.component-Ce35mqny.mjs → acorex-platform-common-file-widget-filter.component-BNCcBun4.mjs} +6 -29
- package/fesm2022/acorex-platform-common-file-widget-filter.component-BNCcBun4.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-file-widget-view.component-BvMzrs5C.mjs → acorex-platform-common-file-widget-view.component-T3r6musY.mjs} +6 -27
- package/fesm2022/acorex-platform-common-file-widget-view.component-T3r6musY.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-gallery-widget-edit.component-BVuV2Ib8.mjs → acorex-platform-common-gallery-widget-edit.component-zBsaBkzu.mjs} +6 -26
- package/fesm2022/acorex-platform-common-gallery-widget-edit.component-zBsaBkzu.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-gallery-widget-filter.component-C8tdM6PX.mjs → acorex-platform-common-gallery-widget-filter.component-BhLYuB6p.mjs} +6 -28
- package/fesm2022/acorex-platform-common-gallery-widget-filter.component-BhLYuB6p.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-gallery-widget-view.component-D8YmSi9C.mjs → acorex-platform-common-gallery-widget-view.component-Dxf4Oj1E.mjs} +6 -26
- package/fesm2022/acorex-platform-common-gallery-widget-view.component-Dxf4Oj1E.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-largetext-widget-edit.component-DGMxpnsr.mjs → acorex-platform-common-largetext-widget-edit.component-BYMIaLCI.mjs} +5 -27
- package/fesm2022/acorex-platform-common-largetext-widget-edit.component-BYMIaLCI.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-lookup-widget-column.component-B-cEaNjv.mjs → acorex-platform-common-lookup-widget-column.component-BB0Mdx2u.mjs} +6 -28
- package/fesm2022/acorex-platform-common-lookup-widget-column.component-BB0Mdx2u.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-lookup-widget-edit.component-DqB_g9Zz.mjs → acorex-platform-common-lookup-widget-edit.component-DUPsS_ZW.mjs} +6 -28
- package/fesm2022/acorex-platform-common-lookup-widget-edit.component-DUPsS_ZW.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-lookup-widget-filter.component-0TPWNWSd.mjs → acorex-platform-common-lookup-widget-filter.component-CLyl94AJ.mjs} +6 -26
- package/fesm2022/acorex-platform-common-lookup-widget-filter.component-CLyl94AJ.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-lookup-widget-view.component-DYAg76YH.mjs → acorex-platform-common-lookup-widget-view.component-CJijszjn.mjs} +6 -28
- package/fesm2022/acorex-platform-common-lookup-widget-view.component-CJijszjn.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-map-widget-edit.component-C3cpsXD5.mjs → acorex-platform-common-map-widget-edit.component-BTHORlG5.mjs} +6 -27
- package/fesm2022/acorex-platform-common-map-widget-edit.component-BTHORlG5.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-map-widget-view.component-C-DCNaJi.mjs → acorex-platform-common-map-widget-view.component-CQzW1ZeD.mjs} +6 -27
- package/fesm2022/acorex-platform-common-map-widget-view.component-CQzW1ZeD.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-messenger-widget-column.component-B2A7ZBEP.mjs → acorex-platform-common-messenger-widget-column.component-Brm4vLGA.mjs} +6 -29
- package/fesm2022/acorex-platform-common-messenger-widget-column.component-Brm4vLGA.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-messenger-widget-edit.component-DC8vQDo0.mjs → acorex-platform-common-messenger-widget-edit.component-CJHvut2C.mjs} +6 -27
- package/fesm2022/acorex-platform-common-messenger-widget-edit.component-CJHvut2C.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-messenger-widget-view.component-B6FavkmG.mjs → acorex-platform-common-messenger-widget-view.component-DVylp_2t.mjs} +6 -28
- package/fesm2022/acorex-platform-common-messenger-widget-view.component-DVylp_2t.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-number-widget-edit.component-Bc5-ZUw4.mjs → acorex-platform-common-number-widget-edit.component-DZf-n-yr.mjs} +6 -27
- package/fesm2022/acorex-platform-common-number-widget-edit.component-DZf-n-yr.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-number-widget-filter.component-DxfJ90n4.mjs → acorex-platform-common-number-widget-filter.component-womVAhSr.mjs} +6 -28
- package/fesm2022/acorex-platform-common-number-widget-filter.component-womVAhSr.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-number-widget-view.component-DGfLSGw1.mjs → acorex-platform-common-number-widget-view.component-L2pxAqqz.mjs} +5 -27
- package/fesm2022/acorex-platform-common-number-widget-view.component-L2pxAqqz.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-password-widget-column.component-DEHaVLGK.mjs → acorex-platform-common-password-widget-column.component-3ubqJk-d.mjs} +6 -28
- package/fesm2022/acorex-platform-common-password-widget-column.component-3ubqJk-d.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-password-widget-edit.component-DrYyu5v-.mjs → acorex-platform-common-password-widget-edit.component-BokyEDfK.mjs} +6 -28
- package/fesm2022/acorex-platform-common-password-widget-edit.component-BokyEDfK.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-password-widget-view.component-B_HU-3J1.mjs → acorex-platform-common-password-widget-view.component-BuFoE2fz.mjs} +7 -28
- package/fesm2022/acorex-platform-common-password-widget-view.component-BuFoE2fz.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-phone-widget-column.component-D99ncxxJ.mjs → acorex-platform-common-phone-widget-column.component-79Me_VNP.mjs} +6 -29
- package/fesm2022/acorex-platform-common-phone-widget-column.component-79Me_VNP.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-phone-widget-edit.component-a5EAI9FK.mjs → acorex-platform-common-phone-widget-edit.component-CIayMoT1.mjs} +6 -26
- package/fesm2022/acorex-platform-common-phone-widget-edit.component-CIayMoT1.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-phone-widget-view.component-BlFVuoNN.mjs → acorex-platform-common-phone-widget-view.component-B1Xu_rxC.mjs} +6 -28
- package/fesm2022/acorex-platform-common-phone-widget-view.component-B1Xu_rxC.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-rich-text-widget-column.component-DOdv5I2s.mjs → acorex-platform-common-rich-text-widget-column.component-Dbn3JMOu.mjs} +6 -29
- package/fesm2022/acorex-platform-common-rich-text-widget-column.component-Dbn3JMOu.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-rich-text-widget-edit.component-DL5UyAqe.mjs → acorex-platform-common-rich-text-widget-edit.component-CHT12edE.mjs} +6 -27
- package/fesm2022/acorex-platform-common-rich-text-widget-edit.component-CHT12edE.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-rich-text-widget-view.component-B9WB-mx9.mjs → acorex-platform-common-rich-text-widget-view.component-qvUpx39D.mjs} +5 -27
- package/fesm2022/acorex-platform-common-rich-text-widget-view.component-qvUpx39D.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-selection-list-widget-column.component-CkOuYy0Z.mjs → acorex-platform-common-selection-list-widget-column.component-E7yRTViz.mjs} +6 -29
- package/fesm2022/acorex-platform-common-selection-list-widget-column.component-E7yRTViz.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-selection-list-widget-edit.component-BmbDQ1LH.mjs → acorex-platform-common-selection-list-widget-edit.component-B8dmJ_jJ.mjs} +6 -28
- package/fesm2022/acorex-platform-common-selection-list-widget-edit.component-B8dmJ_jJ.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-selection-list-widget-filter.component-Dm_1-7eT.mjs → acorex-platform-common-selection-list-widget-filter.component-i4syx0Bj.mjs} +6 -27
- package/fesm2022/acorex-platform-common-selection-list-widget-filter.component-i4syx0Bj.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-selection-list-widget-view.component-3hinF85C.mjs → acorex-platform-common-selection-list-widget-view.component-B7disiIF.mjs} +6 -29
- package/fesm2022/acorex-platform-common-selection-list-widget-view.component-B7disiIF.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-signature-pad-widget-edit.component-DmmPbw-A.mjs → acorex-platform-common-signature-pad-widget-edit.component-CMoiIhgJ.mjs} +6 -26
- package/fesm2022/acorex-platform-common-signature-pad-widget-edit.component-CMoiIhgJ.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-signature-pad-widget-view.component-DkFaMNk8.mjs → acorex-platform-common-signature-pad-widget-view.component-HfArY6VQ.mjs} +6 -27
- package/fesm2022/acorex-platform-common-signature-pad-widget-view.component-HfArY6VQ.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-string-widget-filter.component-DAqR2PUN.mjs → acorex-platform-common-string-widget-filter.component-CDssxMLR.mjs} +6 -28
- package/fesm2022/acorex-platform-common-string-widget-filter.component-CDssxMLR.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-text-widget-column.component-DVczwvKA.mjs → acorex-platform-common-text-widget-column.component-7yp4qqIb.mjs} +5 -27
- package/fesm2022/acorex-platform-common-text-widget-column.component-7yp4qqIb.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-text-widget-edit.component-DC_GnFhe.mjs → acorex-platform-common-text-widget-edit.component-5koh5Aws.mjs} +6 -27
- package/fesm2022/acorex-platform-common-text-widget-edit.component-5koh5Aws.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-text-widget-view.component-BK3HZGgb.mjs → acorex-platform-common-text-widget-view.component-BH0LTD80.mjs} +5 -27
- package/fesm2022/{acorex-platform-common-text-widget-view.component-BK3HZGgb.mjs.map → acorex-platform-common-text-widget-view.component-BH0LTD80.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-common-toggle-widget-column.component-Bp1d7SAE.mjs → acorex-platform-common-toggle-widget-column.component-C5dMjerm.mjs} +6 -28
- package/fesm2022/acorex-platform-common-toggle-widget-column.component-C5dMjerm.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-toggle-widget-edit.component-D64m4agx.mjs → acorex-platform-common-toggle-widget-edit.component-JOnGMn-9.mjs} +6 -27
- package/fesm2022/acorex-platform-common-toggle-widget-edit.component-JOnGMn-9.mjs.map +1 -0
- package/fesm2022/{acorex-platform-common-toggle-widget-view.component-BTaXXZ88.mjs → acorex-platform-common-toggle-widget-view.component-DguoIz_c.mjs} +6 -28
- package/fesm2022/acorex-platform-common-toggle-widget-view.component-DguoIz_c.mjs.map +1 -0
- package/fesm2022/acorex-platform-common.mjs +197 -190
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-core.mjs +114 -7
- package/fesm2022/acorex-platform-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-builder.mjs +72 -61
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-designer.mjs +374 -234
- package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +916 -897
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-setting.mjs +247 -44
- package/fesm2022/acorex-platform-layout-setting.mjs.map +1 -1
- package/fesm2022/{acorex-platform-layouts-entity-create-view.component-JsGlDx_S.mjs → acorex-platform-layouts-entity-create-view.component-1Yw4H3CW.mjs} +6 -6
- package/fesm2022/acorex-platform-layouts-entity-create-view.component-1Yw4H3CW.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layouts-entity-import-view.component-9FK_Iro9.mjs → acorex-platform-layouts-entity-import-view.component-BIHTWoXR.mjs} +7 -9
- package/fesm2022/acorex-platform-layouts-entity-import-view.component-BIHTWoXR.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layouts-entity-modify-view.component-CNbc8ewu.mjs → acorex-platform-layouts-entity-modify-view.component-Cb2Yvtav.mjs} +7 -9
- package/fesm2022/acorex-platform-layouts-entity-modify-view.component-Cb2Yvtav.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts.mjs +99 -88
- package/fesm2022/acorex-platform-layouts.mjs.map +1 -1
- package/fesm2022/acorex-platform-native.mjs +7 -7
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-Bw-rbKbL.mjs +108 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-Bw-rbKbL.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-DJYTC375.mjs +305 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-DJYTC375.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-entity-master-modify-view.component-wPZPhMgy.mjs → acorex-platform-themes-default-entity-master-modify-view.component-DoeGBemE.mjs} +17 -18
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-DoeGBemE.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-D8UjpvuI.mjs +130 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-D8UjpvuI.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-error-401.component-D5QQ2HAv.mjs → acorex-platform-themes-default-error-401.component-CRMYVnTw.mjs} +5 -5
- package/fesm2022/acorex-platform-themes-default-error-401.component-CRMYVnTw.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-error-404.component-DSY_D3Iq.mjs → acorex-platform-themes-default-error-404.component-Dc_IGKXu.mjs} +5 -5
- package/fesm2022/acorex-platform-themes-default-error-404.component-Dc_IGKXu.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-error-offline.component-B6wSkMdd.mjs → acorex-platform-themes-default-error-offline.component-C6raiMLq.mjs} +5 -5
- package/fesm2022/acorex-platform-themes-default-error-offline.component-C6raiMLq.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default.mjs +182 -286
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
- package/fesm2022/acorex-platform-themes-shared.mjs +8 -9
- package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -1
- package/fesm2022/{acorex-platform-widgets-button-widget-designer.component-CPFA79Gx.mjs → acorex-platform-widgets-button-widget-designer.component-BQe1zP7P.mjs} +6 -7
- package/fesm2022/acorex-platform-widgets-button-widget-designer.component-BQe1zP7P.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-checkbox-widget-column.component-MInF2GVN.mjs → acorex-platform-widgets-checkbox-widget-column.component-05nKV-UV.mjs} +6 -7
- package/fesm2022/acorex-platform-widgets-checkbox-widget-column.component-05nKV-UV.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-checkbox-widget-designer.component-B7Qv2aYx.mjs → acorex-platform-widgets-checkbox-widget-designer.component-RCi5IJOR.mjs} +6 -7
- package/fesm2022/acorex-platform-widgets-checkbox-widget-designer.component-RCi5IJOR.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-checkbox-widget-view.component-DP4kITs-.mjs → acorex-platform-widgets-checkbox-widget-view.component-BkWcZ4K9.mjs} +6 -7
- package/fesm2022/acorex-platform-widgets-checkbox-widget-view.component-BkWcZ4K9.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-color-box-widget-designer.component-uQBHAspe.mjs → acorex-platform-widgets-color-box-widget-designer.component-CWhbgmDV.mjs} +6 -7
- package/fesm2022/acorex-platform-widgets-color-box-widget-designer.component-CWhbgmDV.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-contact-widget-filter.component-DnQZon-E.mjs → acorex-platform-widgets-contact-widget-filter.component-B1HiCGC6.mjs} +5 -6
- package/fesm2022/acorex-platform-widgets-contact-widget-filter.component-B1HiCGC6.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-page-widget-designer.component-DOulAanE.mjs → acorex-platform-widgets-page-widget-designer.component-DGNcuRbs.mjs} +21 -11
- package/fesm2022/acorex-platform-widgets-page-widget-designer.component-DGNcuRbs.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-rich-text-popup.component-C8KmObPV.mjs → acorex-platform-widgets-rich-text-popup.component-D7LZqQIO.mjs} +6 -7
- package/fesm2022/acorex-platform-widgets-rich-text-popup.component-D7LZqQIO.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-text-block-widget-designer.component-BE6goaZc.mjs → acorex-platform-widgets-text-block-widget-designer.component-BToPbMjj.mjs} +6 -7
- package/fesm2022/acorex-platform-widgets-text-block-widget-designer.component-BToPbMjj.mjs.map +1 -0
- package/fesm2022/acorex-platform-widgets.mjs +576 -876
- package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
- package/fesm2022/acorex-platform-workflow.mjs +23 -23
- package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
- package/layout/builder/lib/builder/widget-column-renderer.d.ts +1 -1
- package/layout/builder/lib/builder/widget.types.d.ts +21 -5
- package/layout/designer/lib/designer/components/add-widget-button/add-widget-mini-button.component.d.ts +3 -1
- package/layout/designer/lib/designer/components/board/board.component.d.ts +4 -3
- package/layout/designer/lib/designer/designer.component.d.ts +1 -1
- package/layout/designer/lib/designer/shared/designer-connector.service.d.ts +2 -2
- package/layout/designer/lib/designer/shared/designer.service.d.ts +10 -4
- package/layout/designer/lib/designer/shared/designer.types.d.ts +11 -0
- package/layout/designer/lib/designer/shared/generic-commands.types.d.ts +1 -0
- package/layout/designer/lib/designer/shared/widget-designer-renderer.directive.d.ts +7 -5
- package/layout/designer/lib/property-viewer/widget-property-viewer.component.d.ts +1 -1
- package/layout/entity/lib/entity-master-create.viewmodel.d.ts +10 -5
- package/layout/entity/lib/entity-master-list.viewmodel.d.ts +11 -4
- package/layout/entity/lib/index.d.ts +4 -3
- package/layout/entity/lib/workflows/create-entity.workflow.d.ts +2 -0
- package/layout/setting/README.md +2 -3
- package/{themes/default/lib/layouts/setting-layout → layout/setting/lib}/convert-setting-data.d.ts +7 -6
- package/layout/setting/lib/setting.viewmodel.d.ts +38 -9
- package/layouts/lib/admin/entity-layout/entity-list-view/entity-list-view.component.d.ts +12 -0
- package/layouts/lib/admin/entity-layout/workflows/create-entity.workflow.d.ts +2 -0
- package/package.json +8 -36
- package/themes/default/lib/default.module.d.ts +3 -4
- package/themes/default/lib/layouts/entity-layouts/entity-master-list-view/entity-master-list-view.component.d.ts +1 -4
- package/themes/default/lib/layouts/entity-layouts/entity-master-list-view/list-view-option-columns/list-view-option-columns.component.d.ts +3 -0
- package/themes/default/lib/layouts/entity-layouts/entity-master-modify-view/entity-master-modify-view.component.d.ts +1 -1
- package/themes/default/lib/layouts/setting-layout/index.d.ts +2 -2
- package/themes/default/lib/layouts/setting-layout/setting-menu/setting-menu.component.d.ts +12 -0
- package/themes/default/lib/layouts/setting-layout/setting-view/setting-view.component.d.ts +7 -0
- package/widgets/lib/properties/editors.props.d.ts +1 -0
- package/widgets/lib/widgets/advance/cron-job/cron-job-widget-edit.component.d.ts +1 -2
- package/widgets/lib/widgets/advance/file/file-box-widget-view.component.d.ts +1 -1
- package/widgets/lib/widgets/editors/select/select-box-widget-edit.component.d.ts +1 -0
- package/widgets/lib/widgets/index.d.ts +0 -1
- package/widgets/lib/widgets/layout/block/block-widget.config.d.ts +4 -6
- package/workflow/lib/workflow.service.d.ts +1 -1
- package/esm2022/acorex-platform.mjs +0 -5
- package/esm2022/auth/acorex-platform-auth.mjs +0 -5
- package/esm2022/auth/index.mjs +0 -14
- package/esm2022/auth/lib/application/application.loader.mjs +0 -23
- package/esm2022/auth/lib/application/application.types.mjs +0 -2
- package/esm2022/auth/lib/auth-registry.service.mjs +0 -29
- package/esm2022/auth/lib/auth.guard.mjs +0 -16
- package/esm2022/auth/lib/auth.module.mjs +0 -90
- package/esm2022/auth/lib/auth.strategy.mjs +0 -2
- package/esm2022/auth/lib/errors.types.mjs +0 -15
- package/esm2022/auth/lib/feature/feature.directive.mjs +0 -55
- package/esm2022/auth/lib/feature/feature.guard.mjs +0 -19
- package/esm2022/auth/lib/feature/feature.loader.mjs +0 -14
- package/esm2022/auth/lib/feature/feature.types.mjs +0 -2
- package/esm2022/auth/lib/feature/index.mjs +0 -5
- package/esm2022/auth/lib/permission/index.mjs +0 -5
- package/esm2022/auth/lib/permission/permission.directive.mjs +0 -54
- package/esm2022/auth/lib/permission/permission.guard.mjs +0 -19
- package/esm2022/auth/lib/permission/permission.loader.mjs +0 -14
- package/esm2022/auth/lib/permission/permission.types.mjs +0 -2
- package/esm2022/auth/lib/session.service.mjs +0 -265
- package/esm2022/auth/lib/session.types.mjs +0 -29
- package/esm2022/auth/lib/tenant/tenant.loader.mjs +0 -20
- package/esm2022/auth/lib/tenant/tenant.types.mjs +0 -2
- package/esm2022/auth/lib/user/user.types.mjs +0 -2
- package/esm2022/common/acorex-platform-common.mjs +0 -5
- package/esm2022/common/index.mjs +0 -13
- package/esm2022/common/lib/app/app-startup.service.mjs +0 -40
- package/esm2022/common/lib/app/application.types.mjs +0 -55
- package/esm2022/common/lib/app/index.mjs +0 -4
- package/esm2022/common/lib/app/operators.mjs +0 -65
- package/esm2022/common/lib/common.module.mjs +0 -155
- package/esm2022/common/lib/configs/app.config.mjs +0 -27
- package/esm2022/common/lib/configs/config.types.mjs +0 -3
- package/esm2022/common/lib/data/data-provider.types.mjs +0 -3
- package/esm2022/common/lib/data/data.types.mjs +0 -2
- package/esm2022/common/lib/data/dexie-storage.service.mjs +0 -130
- package/esm2022/common/lib/data/entity-data-seeder.mjs +0 -25
- package/esm2022/common/lib/data/entity-storage-service.mjs +0 -63
- package/esm2022/common/lib/data/filter-middleware.service.mjs +0 -53
- package/esm2022/common/lib/data/index.mjs +0 -8
- package/esm2022/common/lib/data/operators.service.mjs +0 -15
- package/esm2022/common/lib/errors/error-handler-registry.service.mjs +0 -29
- package/esm2022/common/lib/errors/error-handler.types.mjs +0 -2
- package/esm2022/common/lib/errors/global-error-handler.mjs +0 -36
- package/esm2022/common/lib/errors/index.mjs +0 -4
- package/esm2022/common/lib/layout/beardcrumb.type.mjs +0 -2
- package/esm2022/common/lib/layout/component-slot/component-slot-loader.service.mjs +0 -57
- package/esm2022/common/lib/layout/component-slot/component-slot-registery.service.mjs +0 -28
- package/esm2022/common/lib/layout/component-slot/component-slot.directive.mjs +0 -24
- package/esm2022/common/lib/layout/component-slot/component-slot.module.mjs +0 -72
- package/esm2022/common/lib/layout/component-slot/component-slot.types.mjs +0 -2
- package/esm2022/common/lib/layout/component-slot/index.mjs +0 -6
- package/esm2022/common/lib/layout/grid-layout/grid-layout.directive.mjs +0 -61
- package/esm2022/common/lib/layout/grid-layout/grid-layout.types.mjs +0 -2
- package/esm2022/common/lib/layout/grid-layout/index.mjs +0 -3
- package/esm2022/common/lib/layout/index.mjs +0 -8
- package/esm2022/common/lib/layout/logo/index.mjs +0 -3
- package/esm2022/common/lib/layout/logo/logo.component.mjs +0 -38
- package/esm2022/common/lib/layout/logo/logo.types.mjs +0 -21
- package/esm2022/common/lib/layout/menu/index.mjs +0 -4
- package/esm2022/common/lib/layout/menu/menu.provider.mjs +0 -137
- package/esm2022/common/lib/layout/menu/menu.service.mjs +0 -105
- package/esm2022/common/lib/layout/menu/menu.types.mjs +0 -2
- package/esm2022/common/lib/layout/sticky.directive.mjs +0 -78
- package/esm2022/common/lib/layout/theme/components/slots/footer-text-slot.component.mjs +0 -20
- package/esm2022/common/lib/layout/theme/components/slots/index.mjs +0 -3
- package/esm2022/common/lib/layout/theme/components/slots/navbar-slot.component.mjs +0 -36
- package/esm2022/common/lib/schema/component-loader.mjs +0 -2
- package/esm2022/common/lib/schema/entity/entity-registery.service.mjs +0 -70
- package/esm2022/common/lib/schema/entity/entity.class.mjs +0 -32
- package/esm2022/common/lib/schema/entity/entity.loader.mjs +0 -13
- package/esm2022/common/lib/schema/entity/index.mjs +0 -4
- package/esm2022/common/lib/schema/formats.mjs +0 -2
- package/esm2022/common/lib/schema/index.mjs +0 -9
- package/esm2022/common/lib/schema/schema-registery.service.mjs +0 -33
- package/esm2022/common/lib/schema/schema.module.mjs +0 -23
- package/esm2022/common/lib/schema/schema.types.mjs +0 -2
- package/esm2022/common/lib/schema/widget/index.mjs +0 -6
- package/esm2022/common/lib/schema/widget/widget-base.mjs +0 -113
- package/esm2022/common/lib/schema/widget/widget-column-renderer.mjs +0 -118
- package/esm2022/common/lib/schema/widget/widget-filter-renderer.mjs +0 -133
- package/esm2022/common/lib/schema/widget/widget-renderer.mjs +0 -148
- package/esm2022/common/lib/schema/widget/widget-token.mjs +0 -3
- package/esm2022/common/lib/schema/widgets/avatar/avatar-widget-edit.component.mjs +0 -166
- package/esm2022/common/lib/schema/widgets/avatar/avatar-widget-view.component.mjs +0 -63
- package/esm2022/common/lib/schema/widgets/checkbox/checkbox-widget-column.component.mjs +0 -53
- package/esm2022/common/lib/schema/widgets/checkbox/checkbox-widget-edit.component.mjs +0 -22
- package/esm2022/common/lib/schema/widgets/checkbox/checkbox-widget-view.component.mjs +0 -47
- package/esm2022/common/lib/schema/widgets/common-widget-filter/boolean-widget-filter.component.mjs +0 -153
- package/esm2022/common/lib/schema/widgets/common-widget-filter/number-widget-filter.component.mjs +0 -135
- package/esm2022/common/lib/schema/widgets/common-widget-filter/string-widget-filter.component.mjs +0 -125
- package/esm2022/common/lib/schema/widgets/common-widgets.module.mjs +0 -505
- package/esm2022/common/lib/schema/widgets/dateTime/dateTime-widget-column.component.mjs +0 -44
- package/esm2022/common/lib/schema/widgets/dateTime/dateTime-widget-edit.component.mjs +0 -177
- package/esm2022/common/lib/schema/widgets/dateTime/dateTime-widget-filter.component.mjs +0 -284
- package/esm2022/common/lib/schema/widgets/dateTime/dateTime-widget-view.component.mjs +0 -71
- package/esm2022/common/lib/schema/widgets/email/email-widget-column.component.mjs +0 -73
- package/esm2022/common/lib/schema/widgets/email/email-widget-edit.component.mjs +0 -248
- package/esm2022/common/lib/schema/widgets/email/email-widget-view.component.mjs +0 -108
- package/esm2022/common/lib/schema/widgets/file/file-widget-column.component.mjs +0 -27
- package/esm2022/common/lib/schema/widgets/file/file-widget-edit.component.mjs +0 -200
- package/esm2022/common/lib/schema/widgets/file/file-widget-filter.component.mjs +0 -27
- package/esm2022/common/lib/schema/widgets/file/file-widget-view.component.mjs +0 -153
- package/esm2022/common/lib/schema/widgets/gallery/gallery-widget-edit.component.mjs +0 -189
- package/esm2022/common/lib/schema/widgets/gallery/gallery-widget-filter.component.mjs +0 -27
- package/esm2022/common/lib/schema/widgets/gallery/gallery-widget-types.mjs +0 -2
- package/esm2022/common/lib/schema/widgets/gallery/gallery-widget-view.component.mjs +0 -173
- package/esm2022/common/lib/schema/widgets/index.mjs +0 -2
- package/esm2022/common/lib/schema/widgets/lookup/lookup-widget-column.component.mjs +0 -43
- package/esm2022/common/lib/schema/widgets/lookup/lookup-widget-edit.component.mjs +0 -95
- package/esm2022/common/lib/schema/widgets/lookup/lookup-widget-filter.component.mjs +0 -160
- package/esm2022/common/lib/schema/widgets/lookup/lookup-widget-view.component.mjs +0 -54
- package/esm2022/common/lib/schema/widgets/map/map-widget-edit.component.mjs +0 -91
- package/esm2022/common/lib/schema/widgets/map/map-widget-view.component.mjs +0 -63
- package/esm2022/common/lib/schema/widgets/messenger/messenger-widget-column.component.mjs +0 -71
- package/esm2022/common/lib/schema/widgets/messenger/messenger-widget-edit.component.mjs +0 -136
- package/esm2022/common/lib/schema/widgets/messenger/messenger-widget-view.component.mjs +0 -132
- package/esm2022/common/lib/schema/widgets/number/number-widget-edit.component.mjs +0 -46
- package/esm2022/common/lib/schema/widgets/number/number-widget-view.component.mjs +0 -30
- package/esm2022/common/lib/schema/widgets/password/change-password.component.mjs +0 -174
- package/esm2022/common/lib/schema/widgets/password/password-widget-column.component.mjs +0 -67
- package/esm2022/common/lib/schema/widgets/password/password-widget-edit.component.mjs +0 -41
- package/esm2022/common/lib/schema/widgets/password/password-widget-view.component.mjs +0 -109
- package/esm2022/common/lib/schema/widgets/phone/phone-widget-column.component.mjs +0 -91
- package/esm2022/common/lib/schema/widgets/phone/phone-widget-edit.component.mjs +0 -248
- package/esm2022/common/lib/schema/widgets/phone/phone-widget-view.component.mjs +0 -123
- package/esm2022/common/lib/schema/widgets/rich-text/rich-text-widget-column.component.mjs +0 -61
- package/esm2022/common/lib/schema/widgets/rich-text/rich-text-widget-edit.component.mjs +0 -66
- package/esm2022/common/lib/schema/widgets/rich-text/rich-text-widget-view.component.mjs +0 -34
- package/esm2022/common/lib/schema/widgets/selection-list/selection-list-widget-column.component.mjs +0 -45
- package/esm2022/common/lib/schema/widgets/selection-list/selection-list-widget-edit.component.mjs +0 -53
- package/esm2022/common/lib/schema/widgets/selection-list/selection-list-widget-filter.component.mjs +0 -45
- package/esm2022/common/lib/schema/widgets/selection-list/selection-list-widget-view.component.mjs +0 -45
- package/esm2022/common/lib/schema/widgets/signature-pad/signature-pad-widget-edit.component.mjs +0 -128
- package/esm2022/common/lib/schema/widgets/signature-pad/signature-pad-widget-view.component.mjs +0 -41
- package/esm2022/common/lib/schema/widgets/text/largetext-widget-edit.component.mjs +0 -36
- package/esm2022/common/lib/schema/widgets/text/text-widget-column.component.mjs +0 -46
- package/esm2022/common/lib/schema/widgets/text/text-widget-edit.component.mjs +0 -161
- package/esm2022/common/lib/schema/widgets/text/text-widget-view.component.mjs +0 -66
- package/esm2022/common/lib/schema/widgets/toggle/toggle-widget-column.component.mjs +0 -57
- package/esm2022/common/lib/schema/widgets/toggle/toggle-widget-edit.component.mjs +0 -25
- package/esm2022/common/lib/schema/widgets/toggle/toggle-widget-view.component.mjs +0 -49
- package/esm2022/common/lib/settings/index.mjs +0 -5
- package/esm2022/common/lib/settings/setting-definition.provider.mjs +0 -183
- package/esm2022/common/lib/settings/settings.provider.mjs +0 -35
- package/esm2022/common/lib/settings/settings.service.mjs +0 -53
- package/esm2022/common/lib/settings/settings.types.mjs +0 -2
- package/esm2022/common/lib/store/common.actions.mjs +0 -5
- package/esm2022/common/lib/store/common.effects.mjs +0 -34
- package/esm2022/common/lib/store/index.mjs +0 -3
- package/esm2022/common/lib/utils/clipboard-service.mjs +0 -26
- package/esm2022/common/lib/utils/data-generator.mjs +0 -133
- package/esm2022/common/lib/utils/index.mjs +0 -4
- package/esm2022/common/lib/utils/pdf.service.mjs +0 -85
- package/esm2022/common/lib/workflows/common.workflow.mjs +0 -73
- package/esm2022/common/lib/workflows/error-handler.mjs +0 -24
- package/esm2022/common/lib/workflows/index.mjs +0 -3
- package/esm2022/core/acorex-platform-core.mjs +0 -5
- package/esm2022/core/index.mjs +0 -5
- package/esm2022/core/lib/types.mjs +0 -13
- package/esm2022/core/utils/countdown-timer.mjs +0 -49
- package/esm2022/core/utils/data-conditioner.mjs +0 -138
- package/esm2022/core/utils/html-utils.mjs +0 -27
- package/esm2022/index.mjs +0 -2
- package/esm2022/layout/builder/acorex-platform-layout-builder.mjs +0 -5
- package/esm2022/layout/builder/index.mjs +0 -2
- package/esm2022/layout/builder/lib/builder/builder.module.mjs +0 -68
- package/esm2022/layout/builder/lib/builder/builder.service.mjs +0 -105
- package/esm2022/layout/builder/lib/builder/datasource-provider.service.mjs +0 -27
- package/esm2022/layout/builder/lib/builder/index.mjs +0 -12
- package/esm2022/layout/builder/lib/builder/widget-catalog.mjs +0 -39
- package/esm2022/layout/builder/lib/builder/widget-column-renderer.mjs +0 -117
- package/esm2022/layout/builder/lib/builder/widget-container.component.mjs +0 -46
- package/esm2022/layout/builder/lib/builder/widget-groups.mjs +0 -27
- package/esm2022/layout/builder/lib/builder/widget-registery.service.mjs +0 -36
- package/esm2022/layout/builder/lib/builder/widget-renderer.component.directive.mjs +0 -313
- package/esm2022/layout/builder/lib/builder/widget-renderer.component.mjs +0 -320
- package/esm2022/layout/builder/lib/builder/widget.types.mjs +0 -264
- package/esm2022/layout/designer/acorex-platform-layout-designer.mjs +0 -5
- package/esm2022/layout/designer/index.mjs +0 -5
- package/esm2022/layout/designer/lib/designer/components/add-widget-button/add-widget-button.component.mjs +0 -37
- package/esm2022/layout/designer/lib/designer/components/add-widget-button/add-widget-line-button.component.mjs +0 -49
- package/esm2022/layout/designer/lib/designer/components/add-widget-button/add-widget-mini-button.component.mjs +0 -53
- package/esm2022/layout/designer/lib/designer/components/add-widget-button/index.mjs +0 -4
- package/esm2022/layout/designer/lib/designer/components/board/board.component.mjs +0 -139
- package/esm2022/layout/designer/lib/designer/components/breadcrumbs/breadcrumbs.component.mjs +0 -59
- package/esm2022/layout/designer/lib/designer/components/drawers/data-sources/data-sources.component.mjs +0 -33
- package/esm2022/layout/designer/lib/designer/components/drawers/history/history.component.mjs +0 -30
- package/esm2022/layout/designer/lib/designer/components/drawers/outline/outline.component.mjs +0 -61
- package/esm2022/layout/designer/lib/designer/components/drawers/pages/pages.component.mjs +0 -28
- package/esm2022/layout/designer/lib/designer/components/grid-drawer/grid-drawer.component.mjs +0 -82
- package/esm2022/layout/designer/lib/designer/components/header-menu/header-menu.component.mjs +0 -105
- package/esm2022/layout/designer/lib/designer/components/size-mode/view-size-toolbar.component.mjs +0 -54
- package/esm2022/layout/designer/lib/designer/components/widget-picker/widget-picker.component.mjs +0 -121
- package/esm2022/layout/designer/lib/designer/designer.component.mjs +0 -81
- package/esm2022/layout/designer/lib/designer/index.mjs +0 -10
- package/esm2022/layout/designer/lib/designer/shared/command.mjs +0 -185
- package/esm2022/layout/designer/lib/designer/shared/designer-connector.service.mjs +0 -10
- package/esm2022/layout/designer/lib/designer/shared/designer.service.mjs +0 -603
- package/esm2022/layout/designer/lib/designer/shared/designer.types.mjs +0 -6
- package/esm2022/layout/designer/lib/designer/shared/drawer-content/drawer-content.component.mjs +0 -16
- package/esm2022/layout/designer/lib/designer/shared/generic-commands.types.mjs +0 -52
- package/esm2022/layout/designer/lib/designer/shared/widget-designer-renderer.directive.mjs +0 -220
- package/esm2022/layout/designer/lib/preview/preview-frame.component.mjs +0 -75
- package/esm2022/layout/designer/lib/preview/preview-viewer.component.mjs +0 -67
- package/esm2022/layout/designer/lib/preview/preview.component.mjs +0 -79
- package/esm2022/layout/designer/lib/property-viewer/widget-property-viewer.component.mjs +0 -119
- package/esm2022/layout/entity/acorex-platform-layout-entity.mjs +0 -5
- package/esm2022/layout/entity/index.mjs +0 -2
- package/esm2022/layout/entity/lib/entity-detail-list.viewmodel.mjs +0 -182
- package/esm2022/layout/entity/lib/entity-master-create.viewmodel.mjs +0 -143
- package/esm2022/layout/entity/lib/entity-master-list.viewmodel.mjs +0 -325
- package/esm2022/layout/entity/lib/entity-master-single.viewmodel.mjs +0 -227
- package/esm2022/layout/entity/lib/entity-master-update.viewmodel.mjs +0 -103
- package/esm2022/layout/entity/lib/entity-registery.service.mjs +0 -69
- package/esm2022/layout/entity/lib/entity.config.mjs +0 -30
- package/esm2022/layout/entity/lib/entity.module.mjs +0 -154
- package/esm2022/layout/entity/lib/entity.service.mjs +0 -18
- package/esm2022/layout/entity/lib/entity.viewmodel.mjs +0 -34
- package/esm2022/layout/entity/lib/index.mjs +0 -10
- package/esm2022/layout/entity/lib/widgets/lookup-widget/index.mjs +0 -7
- package/esm2022/layout/entity/lib/widgets/lookup-widget/lookup-widget-column.component.mjs +0 -25
- package/esm2022/layout/entity/lib/widgets/lookup-widget/lookup-widget-edit.component.mjs +0 -267
- package/esm2022/layout/entity/lib/widgets/lookup-widget/lookup-widget-filter.component.mjs +0 -20
- package/esm2022/layout/entity/lib/widgets/lookup-widget/lookup-widget-print.component.mjs +0 -19
- package/esm2022/layout/entity/lib/widgets/lookup-widget/lookup-widget-selector.component.mjs +0 -208
- package/esm2022/layout/entity/lib/widgets/lookup-widget/lookup-widget-selector.viewmodel.mjs +0 -109
- package/esm2022/layout/entity/lib/widgets/lookup-widget/lookup-widget-view.component.mjs +0 -110
- package/esm2022/layout/entity/lib/widgets/lookup-widget/lookup-widget.config.mjs +0 -62
- package/esm2022/layout/entity/lib/widgets/widget-selector/index.mjs +0 -4
- package/esm2022/layout/entity/lib/widgets/widget-selector/widget-selector-widget-edit.component.mjs +0 -130
- package/esm2022/layout/entity/lib/widgets/widget-selector/widget-selector-widget-view.component.mjs +0 -18
- package/esm2022/layout/entity/lib/widgets/widget-selector/widget-selector-widget.config.mjs +0 -20
- package/esm2022/layout/entity/lib/workflows/create-entity.workflow.mjs +0 -92
- package/esm2022/layout/entity/lib/workflows/delete-entity.workflow.mjs +0 -130
- package/esm2022/layout/entity/lib/workflows/modify-section.workflow.mjs +0 -94
- package/esm2022/layout/entity/lib/workflows/show-details.workflow.mjs +0 -35
- package/esm2022/layout/entity/lib/workflows/show-list.workflow.mjs +0 -35
- package/esm2022/layout/setting/acorex-platform-layout-setting.mjs +0 -5
- package/esm2022/layout/setting/index.mjs +0 -2
- package/esm2022/layout/setting/lib/setting.viewmodel.mjs +0 -50
- package/esm2022/layouts/acorex-platform-layouts.mjs +0 -5
- package/esm2022/layouts/index.mjs +0 -3
- package/esm2022/layouts/lib/admin/admin.module.mjs +0 -94
- package/esm2022/layouts/lib/admin/admin.routes.mjs +0 -48
- package/esm2022/layouts/lib/admin/custom-reuse.strategy.mjs +0 -20
- package/esm2022/layouts/lib/admin/entity-layout/entity-create-view/entity-create-view.component.mjs +0 -119
- package/esm2022/layouts/lib/admin/entity-layout/entity-create-view/entity-create-view.config.mjs +0 -138
- package/esm2022/layouts/lib/admin/entity-layout/entity-details-view/detail-view.config.mjs +0 -126
- package/esm2022/layouts/lib/admin/entity-layout/entity-details-view/entity-details-view.component.mjs +0 -164
- package/esm2022/layouts/lib/admin/entity-layout/entity-details-view/index.mjs +0 -3
- package/esm2022/layouts/lib/admin/entity-layout/entity-import-view/entity-import-view.component.mjs +0 -91
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/components/entity-custom-view/entity-custom-view.component.mjs +0 -201
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/components/index.mjs +0 -6
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-columns/list-view-option-columns.component.mjs +0 -53
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-conditions/list-view-option-conditions.component.mjs +0 -105
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-conditions/list-view-option-filter-operator.component.mjs +0 -76
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-sorting/list-view-option-sorting.component.mjs +0 -56
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/entity-list-view.component.mjs +0 -295
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/index.mjs +0 -5
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/list-view.config.mjs +0 -341
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/list-view.module.mjs +0 -163
- package/esm2022/layouts/lib/admin/entity-layout/entity-modify-view/entity-modify-view.component.mjs +0 -95
- package/esm2022/layouts/lib/admin/entity-layout/entity-modify-view/entity-modify-view.config.mjs +0 -67
- package/esm2022/layouts/lib/admin/entity-layout/entity-quick-view/entity-quick-view.component.mjs +0 -77
- package/esm2022/layouts/lib/admin/entity-layout/entity-quick-view/index.mjs +0 -2
- package/esm2022/layouts/lib/admin/entity-layout/index.mjs +0 -5
- package/esm2022/layouts/lib/admin/entity-layout/workflows/create-entity.workflow.mjs +0 -93
- package/esm2022/layouts/lib/admin/entity-layout/workflows/delete-entity.workflow.mjs +0 -139
- package/esm2022/layouts/lib/admin/entity-layout/workflows/import-entity.workflow.mjs +0 -77
- package/esm2022/layouts/lib/admin/entity-layout/workflows/index.mjs +0 -7
- package/esm2022/layouts/lib/admin/entity-layout/workflows/modify-entity.workflow.mjs +0 -100
- package/esm2022/layouts/lib/admin/entity-layout/workflows/modify-section.workflow.mjs +0 -85
- package/esm2022/layouts/lib/admin/entity-layout/workflows/show-details.workflow.mjs +0 -36
- package/esm2022/layouts/lib/admin/entity-layout/workflows/show-list.workflow.mjs +0 -35
- package/esm2022/layouts/lib/admin/entity-layout/workflows/show-quick-view.workflow.mjs +0 -50
- package/esm2022/layouts/lib/admin/entity.resolver.mjs +0 -17
- package/esm2022/layouts/lib/admin/index.mjs +0 -6
- package/esm2022/layouts/lib/layout.module.mjs +0 -43
- package/esm2022/native/acorex-platform-native.mjs +0 -5
- package/esm2022/native/index.mjs +0 -3
- package/esm2022/native/lib/native.module.mjs +0 -16
- package/esm2022/native/lib/native.service.mjs +0 -133
- package/esm2022/themes/default/acorex-platform-themes-default.mjs +0 -5
- package/esm2022/themes/default/index.mjs +0 -5
- package/esm2022/themes/default/lib/default.module.mjs +0 -78
- package/esm2022/themes/default/lib/entity-reuse.strategy.mjs +0 -19
- package/esm2022/themes/default/lib/layout.routes.mjs +0 -20
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-detail-list-view/entity-detail-list-view.component.mjs +0 -160
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-create-view/entity-master-create-view.component.mjs +0 -106
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-list-view/entity-master-list-view.component.mjs +0 -190
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-list-view/list-view-option-columns/list-view-option-columns.component.mjs +0 -64
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-list-view/list-view-option-sorting/list-view-option-sorting.component.mjs +0 -72
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-modify-view/entity-master-modify-view.component.mjs +0 -85
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-single-view/entity-master-single-view.component.mjs +0 -84
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-single-view/overview/entity-single-overview.component.mjs +0 -70
- package/esm2022/themes/default/lib/layouts/entity-layouts/index.mjs +0 -2
- package/esm2022/themes/default/lib/layouts/root-layout/components/footer/footer.component.mjs +0 -14
- package/esm2022/themes/default/lib/layouts/root-layout/components/header/header.component.mjs +0 -27
- package/esm2022/themes/default/lib/layouts/root-layout/components/menu/root-menu.component.mjs +0 -40
- package/esm2022/themes/default/lib/layouts/root-layout/index.mjs +0 -6
- package/esm2022/themes/default/lib/layouts/root-layout/root-layout.component.mjs +0 -36
- package/esm2022/themes/default/lib/layouts/root-layout/root-layout.module.mjs +0 -99
- package/esm2022/themes/default/lib/layouts/setting-layout/convert-setting-data.mjs +0 -49
- package/esm2022/themes/default/lib/layouts/setting-layout/index.mjs +0 -3
- package/esm2022/themes/default/lib/layouts/setting-layout/setting-preview/setting-preview.component.mjs +0 -104
- package/esm2022/themes/default/lib/layouts/setting-layout/setting-view/setting-menu.component.mjs +0 -44
- package/esm2022/themes/default/lib/pages/errors/error-401/error-401.component.mjs +0 -28
- package/esm2022/themes/default/lib/pages/errors/error-404/error-404.component.mjs +0 -22
- package/esm2022/themes/default/lib/pages/errors/error-offline/error-offline.component.mjs +0 -16
- package/esm2022/themes/shared/acorex-platform-themes-shared.mjs +0 -5
- package/esm2022/themes/shared/index.mjs +0 -4
- package/esm2022/themes/shared/lib/components/theme-slot.component.mjs +0 -116
- package/esm2022/themes/shared/lib/services/theme.service.mjs +0 -250
- package/esm2022/themes/shared/lib/shared.module.mjs +0 -39
- package/esm2022/widgets/acorex-platform-widgets.mjs +0 -5
- package/esm2022/widgets/index.mjs +0 -4
- package/esm2022/widgets/lib/properties/data-source.props.mjs +0 -21
- package/esm2022/widgets/lib/properties/editors.props.mjs +0 -252
- package/esm2022/widgets/lib/properties/general.props.mjs +0 -115
- package/esm2022/widgets/lib/properties/groups.mjs +0 -21
- package/esm2022/widgets/lib/properties/index.mjs +0 -7
- package/esm2022/widgets/lib/properties/layout.props.mjs +0 -270
- package/esm2022/widgets/lib/properties/table-column.props.mjs +0 -33
- package/esm2022/widgets/lib/widgets/actions/button/button-widget-designer.component.mjs +0 -69
- package/esm2022/widgets/lib/widgets/actions/button/button-widget-view.component.mjs +0 -68
- package/esm2022/widgets/lib/widgets/actions/button/button-widget.config.mjs +0 -31
- package/esm2022/widgets/lib/widgets/actions/button/index.mjs +0 -3
- package/esm2022/widgets/lib/widgets/advance/cron-job/cron-job-widget-column.component.mjs +0 -20
- package/esm2022/widgets/lib/widgets/advance/cron-job/cron-job-widget-designer.component.mjs +0 -18
- package/esm2022/widgets/lib/widgets/advance/cron-job/cron-job-widget-edit.component.mjs +0 -24
- package/esm2022/widgets/lib/widgets/advance/cron-job/cron-job-widget-filter.component.mjs +0 -20
- package/esm2022/widgets/lib/widgets/advance/cron-job/cron-job-widget-print.component.mjs +0 -19
- package/esm2022/widgets/lib/widgets/advance/cron-job/cron-job-widget-view.component.mjs +0 -22
- package/esm2022/widgets/lib/widgets/advance/cron-job/cron-job-widget.config.mjs +0 -31
- package/esm2022/widgets/lib/widgets/advance/cron-job/index.mjs +0 -8
- package/esm2022/widgets/lib/widgets/advance/file/file-box-widget-column.component.mjs +0 -19
- package/esm2022/widgets/lib/widgets/advance/file/file-box-widget-edit.component.mjs +0 -131
- package/esm2022/widgets/lib/widgets/advance/file/file-box-widget-filter.component.mjs +0 -20
- package/esm2022/widgets/lib/widgets/advance/file/file-box-widget-print.component.mjs +0 -19
- package/esm2022/widgets/lib/widgets/advance/file/file-box-widget-view.component.mjs +0 -215
- package/esm2022/widgets/lib/widgets/advance/file/file-box-widget.config.mjs +0 -53
- package/esm2022/widgets/lib/widgets/advance/file/file-box-widget.service.mjs +0 -3
- package/esm2022/widgets/lib/widgets/advance/file/index.mjs +0 -8
- package/esm2022/widgets/lib/widgets/advance/gallery/gallery-widget-column.component.mjs +0 -19
- package/esm2022/widgets/lib/widgets/advance/gallery/gallery-widget-edit.component.mjs +0 -182
- package/esm2022/widgets/lib/widgets/advance/gallery/gallery-widget-filter.component.mjs +0 -20
- package/esm2022/widgets/lib/widgets/advance/gallery/gallery-widget-print.component.mjs +0 -19
- package/esm2022/widgets/lib/widgets/advance/gallery/gallery-widget-types.mjs +0 -2
- package/esm2022/widgets/lib/widgets/advance/gallery/gallery-widget-view.component.mjs +0 -160
- package/esm2022/widgets/lib/widgets/advance/gallery/gallery-widget.config.mjs +0 -30
- package/esm2022/widgets/lib/widgets/advance/gallery/index.mjs +0 -7
- package/esm2022/widgets/lib/widgets/advance/map/index.mjs +0 -4
- package/esm2022/widgets/lib/widgets/advance/map/map-box-widget-edit.component.mjs +0 -77
- package/esm2022/widgets/lib/widgets/advance/map/map-box-widget-view.component.mjs +0 -52
- package/esm2022/widgets/lib/widgets/advance/map/map-box-widget.config.mjs +0 -120
- package/esm2022/widgets/lib/widgets/advance/qrcode/index.mjs +0 -3
- package/esm2022/widgets/lib/widgets/advance/qrcode/qrcode-widget-view.component.mjs +0 -60
- package/esm2022/widgets/lib/widgets/advance/qrcode/qrcode-widget.config.mjs +0 -64
- package/esm2022/widgets/lib/widgets/advance/signature/index.mjs +0 -7
- package/esm2022/widgets/lib/widgets/advance/signature/signature-pad-widget-column.component.mjs +0 -19
- package/esm2022/widgets/lib/widgets/advance/signature/signature-pad-widget-edit.component.mjs +0 -151
- package/esm2022/widgets/lib/widgets/advance/signature/signature-pad-widget-filter.component.mjs +0 -20
- package/esm2022/widgets/lib/widgets/advance/signature/signature-pad-widget-print.component.mjs +0 -19
- package/esm2022/widgets/lib/widgets/advance/signature/signature-pad-widget-view.component.mjs +0 -43
- package/esm2022/widgets/lib/widgets/advance/signature/signature-pad-widget.config.mjs +0 -30
- package/esm2022/widgets/lib/widgets/editors/checkbox/checkbox-widget-column.component.mjs +0 -51
- package/esm2022/widgets/lib/widgets/editors/checkbox/checkbox-widget-designer.component.mjs +0 -54
- package/esm2022/widgets/lib/widgets/editors/checkbox/checkbox-widget-edit.component.mjs +0 -72
- package/esm2022/widgets/lib/widgets/editors/checkbox/checkbox-widget-view.component.mjs +0 -70
- package/esm2022/widgets/lib/widgets/editors/checkbox/checkbox-widget.config.mjs +0 -41
- package/esm2022/widgets/lib/widgets/editors/checkbox/index.mjs +0 -3
- package/esm2022/widgets/lib/widgets/editors/color/color-box-widget-column.component.mjs +0 -40
- package/esm2022/widgets/lib/widgets/editors/color/color-box-widget-designer.component.mjs +0 -54
- package/esm2022/widgets/lib/widgets/editors/color/color-box-widget-edit.component.mjs +0 -61
- package/esm2022/widgets/lib/widgets/editors/color/color-box-widget-filter.component.mjs +0 -20
- package/esm2022/widgets/lib/widgets/editors/color/color-box-widget-print.component.mjs +0 -19
- package/esm2022/widgets/lib/widgets/editors/color/color-box-widget-view.component.mjs +0 -41
- package/esm2022/widgets/lib/widgets/editors/color/color-box-widget.config.mjs +0 -40
- package/esm2022/widgets/lib/widgets/editors/color/index.mjs +0 -7
- package/esm2022/widgets/lib/widgets/editors/contact/contact-widget-column.component.mjs +0 -50
- package/esm2022/widgets/lib/widgets/editors/contact/contact-widget-edit.component.mjs +0 -322
- package/esm2022/widgets/lib/widgets/editors/contact/contact-widget-filter.component.mjs +0 -20
- package/esm2022/widgets/lib/widgets/editors/contact/contact-widget-print.component.mjs +0 -19
- package/esm2022/widgets/lib/widgets/editors/contact/contact-widget-view.component.mjs +0 -122
- package/esm2022/widgets/lib/widgets/editors/contact/contact-widget.config.mjs +0 -59
- package/esm2022/widgets/lib/widgets/editors/contact/contact.type.mjs +0 -2
- package/esm2022/widgets/lib/widgets/editors/contact/index.mjs +0 -6
- package/esm2022/widgets/lib/widgets/editors/contact/popup-component.mjs +0 -78
- package/esm2022/widgets/lib/widgets/editors/date-time/date-time-box-widget-column.component.mjs +0 -64
- package/esm2022/widgets/lib/widgets/editors/date-time/date-time-box-widget-edit.component.mjs +0 -172
- package/esm2022/widgets/lib/widgets/editors/date-time/date-time-box-widget-filter.component.mjs +0 -20
- package/esm2022/widgets/lib/widgets/editors/date-time/date-time-box-widget-print.component.mjs +0 -19
- package/esm2022/widgets/lib/widgets/editors/date-time/date-time-box-widget-view.component.mjs +0 -63
- package/esm2022/widgets/lib/widgets/editors/date-time/date-time-box-widget.config.mjs +0 -43
- package/esm2022/widgets/lib/widgets/editors/date-time/index.mjs +0 -7
- package/esm2022/widgets/lib/widgets/editors/email/email-box-widget-column.component.mjs +0 -66
- package/esm2022/widgets/lib/widgets/editors/email/email-box-widget-edit.component.mjs +0 -258
- package/esm2022/widgets/lib/widgets/editors/email/email-box-widget-filter.component.mjs +0 -20
- package/esm2022/widgets/lib/widgets/editors/email/email-box-widget-print.component.mjs +0 -19
- package/esm2022/widgets/lib/widgets/editors/email/email-box-widget-view.component.mjs +0 -115
- package/esm2022/widgets/lib/widgets/editors/email/email-box-widget.config.mjs +0 -41
- package/esm2022/widgets/lib/widgets/editors/email/index.mjs +0 -7
- package/esm2022/widgets/lib/widgets/editors/large-text/index.mjs +0 -7
- package/esm2022/widgets/lib/widgets/editors/large-text/large-text-widget-column.component.mjs +0 -23
- package/esm2022/widgets/lib/widgets/editors/large-text/large-text-widget-edit.component.mjs +0 -79
- package/esm2022/widgets/lib/widgets/editors/large-text/large-text-widget-filter.component.mjs +0 -20
- package/esm2022/widgets/lib/widgets/editors/large-text/large-text-widget-print.component.mjs +0 -19
- package/esm2022/widgets/lib/widgets/editors/large-text/large-text-widget-view.component.mjs +0 -31
- package/esm2022/widgets/lib/widgets/editors/large-text/large-text-widget.config.mjs +0 -42
- package/esm2022/widgets/lib/widgets/editors/link/index.mjs +0 -7
- package/esm2022/widgets/lib/widgets/editors/link/link-widget-column.component.mjs +0 -19
- package/esm2022/widgets/lib/widgets/editors/link/link-widget-edit.component.mjs +0 -399
- package/esm2022/widgets/lib/widgets/editors/link/link-widget-filter.component.mjs +0 -20
- package/esm2022/widgets/lib/widgets/editors/link/link-widget-print.component.mjs +0 -19
- package/esm2022/widgets/lib/widgets/editors/link/link-widget-view.component.mjs +0 -120
- package/esm2022/widgets/lib/widgets/editors/link/link-widget.config.mjs +0 -30
- package/esm2022/widgets/lib/widgets/editors/number/index.mjs +0 -7
- package/esm2022/widgets/lib/widgets/editors/number/number-box-widget-column.component.mjs +0 -38
- package/esm2022/widgets/lib/widgets/editors/number/number-box-widget-edit.component.mjs +0 -159
- package/esm2022/widgets/lib/widgets/editors/number/number-box-widget-filter.component.mjs +0 -20
- package/esm2022/widgets/lib/widgets/editors/number/number-box-widget-print.component.mjs +0 -19
- package/esm2022/widgets/lib/widgets/editors/number/number-box-widget-view.component.mjs +0 -50
- package/esm2022/widgets/lib/widgets/editors/number/number-box-widget.config.mjs +0 -42
- package/esm2022/widgets/lib/widgets/editors/password/index.mjs +0 -7
- package/esm2022/widgets/lib/widgets/editors/password/password-box-widget-column.component.mjs +0 -56
- package/esm2022/widgets/lib/widgets/editors/password/password-box-widget-edit.component.mjs +0 -56
- package/esm2022/widgets/lib/widgets/editors/password/password-box-widget-filter.component.mjs +0 -20
- package/esm2022/widgets/lib/widgets/editors/password/password-box-widget-print.component.mjs +0 -19
- package/esm2022/widgets/lib/widgets/editors/password/password-box-widget-view.component.mjs +0 -82
- package/esm2022/widgets/lib/widgets/editors/password/password-box-widget.config.mjs +0 -40
- package/esm2022/widgets/lib/widgets/editors/phone/index.mjs +0 -7
- package/esm2022/widgets/lib/widgets/editors/phone/phone-box-widget-column.component.mjs +0 -66
- package/esm2022/widgets/lib/widgets/editors/phone/phone-box-widget-edit.component.mjs +0 -230
- package/esm2022/widgets/lib/widgets/editors/phone/phone-box-widget-filter.component.mjs +0 -20
- package/esm2022/widgets/lib/widgets/editors/phone/phone-box-widget-print.component.mjs +0 -19
- package/esm2022/widgets/lib/widgets/editors/phone/phone-box-widget-view.component.mjs +0 -115
- package/esm2022/widgets/lib/widgets/editors/phone/phone-box-widget.config.mjs +0 -33
- package/esm2022/widgets/lib/widgets/editors/rich-text/index.mjs +0 -7
- package/esm2022/widgets/lib/widgets/editors/rich-text/rich-text-popup.component.mjs +0 -38
- package/esm2022/widgets/lib/widgets/editors/rich-text/rich-text-widget-column.component.mjs +0 -46
- package/esm2022/widgets/lib/widgets/editors/rich-text/rich-text-widget-edit.component.mjs +0 -92
- package/esm2022/widgets/lib/widgets/editors/rich-text/rich-text-widget-filter.component.mjs +0 -20
- package/esm2022/widgets/lib/widgets/editors/rich-text/rich-text-widget-print.component.mjs +0 -19
- package/esm2022/widgets/lib/widgets/editors/rich-text/rich-text-widget-view.component.mjs +0 -47
- package/esm2022/widgets/lib/widgets/editors/rich-text/rich-text-widget.config.mjs +0 -41
- package/esm2022/widgets/lib/widgets/editors/select/index.mjs +0 -7
- package/esm2022/widgets/lib/widgets/editors/select/select-box-widget-column.component.mjs +0 -49
- package/esm2022/widgets/lib/widgets/editors/select/select-box-widget-edit.component.mjs +0 -108
- package/esm2022/widgets/lib/widgets/editors/select/select-box-widget-filter.component.mjs +0 -19
- package/esm2022/widgets/lib/widgets/editors/select/select-box-widget-print.component.mjs +0 -19
- package/esm2022/widgets/lib/widgets/editors/select/select-box-widget-view.component.mjs +0 -60
- package/esm2022/widgets/lib/widgets/editors/select/select-box-widget.config.mjs +0 -41
- package/esm2022/widgets/lib/widgets/editors/selection-list/index.mjs +0 -8
- package/esm2022/widgets/lib/widgets/editors/selection-list/selection-list-widget-column.component.mjs +0 -56
- package/esm2022/widgets/lib/widgets/editors/selection-list/selection-list-widget-designer.component.mjs +0 -88
- package/esm2022/widgets/lib/widgets/editors/selection-list/selection-list-widget-edit.component.mjs +0 -99
- package/esm2022/widgets/lib/widgets/editors/selection-list/selection-list-widget-filter.component.mjs +0 -20
- package/esm2022/widgets/lib/widgets/editors/selection-list/selection-list-widget-print.component.mjs +0 -19
- package/esm2022/widgets/lib/widgets/editors/selection-list/selection-list-widget-view.component.mjs +0 -52
- package/esm2022/widgets/lib/widgets/editors/selection-list/selection-list-widget.config.mjs +0 -44
- package/esm2022/widgets/lib/widgets/editors/text/index.mjs +0 -7
- package/esm2022/widgets/lib/widgets/editors/text/text-box-widget-column.component.mjs +0 -20
- package/esm2022/widgets/lib/widgets/editors/text/text-box-widget-edit.component.mjs +0 -130
- package/esm2022/widgets/lib/widgets/editors/text/text-box-widget-filter.component.mjs +0 -20
- package/esm2022/widgets/lib/widgets/editors/text/text-box-widget-print.component.mjs +0 -19
- package/esm2022/widgets/lib/widgets/editors/text/text-box-widget-view.component.mjs +0 -47
- package/esm2022/widgets/lib/widgets/editors/text/text-box-widget.config.mjs +0 -43
- package/esm2022/widgets/lib/widgets/editors/toggle/index.mjs +0 -7
- package/esm2022/widgets/lib/widgets/editors/toggle/toggle-widget-column.component.mjs +0 -53
- package/esm2022/widgets/lib/widgets/editors/toggle/toggle-widget-edit.component.mjs +0 -48
- package/esm2022/widgets/lib/widgets/editors/toggle/toggle-widget-filter.component.mjs +0 -20
- package/esm2022/widgets/lib/widgets/editors/toggle/toggle-widget-print.component.mjs +0 -20
- package/esm2022/widgets/lib/widgets/editors/toggle/toggle-widget-view.component.mjs +0 -55
- package/esm2022/widgets/lib/widgets/editors/toggle/toggle-widget.config.mjs +0 -42
- package/esm2022/widgets/lib/widgets/index.mjs +0 -27
- package/esm2022/widgets/lib/widgets/layout/block/block-widget-designer.component.mjs +0 -98
- package/esm2022/widgets/lib/widgets/layout/block/block-widget-view.component.mjs +0 -83
- package/esm2022/widgets/lib/widgets/layout/block/block-widget.config.mjs +0 -31
- package/esm2022/widgets/lib/widgets/layout/block/index.mjs +0 -4
- package/esm2022/widgets/lib/widgets/layout/document/document-widget.config.mjs +0 -13
- package/esm2022/widgets/lib/widgets/layout/form-field/form-field-widget-designer.component.mjs +0 -67
- package/esm2022/widgets/lib/widgets/layout/form-field/form-field-widget-view.component.mjs +0 -51
- package/esm2022/widgets/lib/widgets/layout/form-field/form-field-widget.config.mjs +0 -30
- package/esm2022/widgets/lib/widgets/layout/form-field/index.mjs +0 -4
- package/esm2022/widgets/lib/widgets/layout/grid/grid-widget-designer.component.mjs +0 -91
- package/esm2022/widgets/lib/widgets/layout/grid/grid-widget-print.component.mjs +0 -19
- package/esm2022/widgets/lib/widgets/layout/grid/grid-widget-view.component.mjs +0 -38
- package/esm2022/widgets/lib/widgets/layout/grid/grid-widget.config.mjs +0 -29
- package/esm2022/widgets/lib/widgets/layout/grid/index.mjs +0 -5
- package/esm2022/widgets/lib/widgets/layout/grid-item/grid-item-widget-designer.component.mjs +0 -100
- package/esm2022/widgets/lib/widgets/layout/grid-item/grid-item-widget-print.component.mjs +0 -19
- package/esm2022/widgets/lib/widgets/layout/grid-item/grid-item-widget-view.component.mjs +0 -89
- package/esm2022/widgets/lib/widgets/layout/grid-item/grid-item-widget.config.mjs +0 -31
- package/esm2022/widgets/lib/widgets/layout/grid-item/index.mjs +0 -5
- package/esm2022/widgets/lib/widgets/layout/grid-row/grid-row-widget-designer.component.mjs +0 -85
- package/esm2022/widgets/lib/widgets/layout/grid-row/grid-row-widget-print.component.mjs +0 -19
- package/esm2022/widgets/lib/widgets/layout/grid-row/grid-row-widget-view.component.mjs +0 -38
- package/esm2022/widgets/lib/widgets/layout/grid-row/grid-row-widget.config.mjs +0 -28
- package/esm2022/widgets/lib/widgets/layout/grid-row/index.mjs +0 -5
- package/esm2022/widgets/lib/widgets/layout/page/index.mjs +0 -3
- package/esm2022/widgets/lib/widgets/layout/page/page-widget-designer.component.mjs +0 -148
- package/esm2022/widgets/lib/widgets/layout/page/page-widget-view.component.mjs +0 -41
- package/esm2022/widgets/lib/widgets/layout/page/page-widget.config.mjs +0 -46
- package/esm2022/widgets/lib/widgets/layout/repeater/index.mjs +0 -6
- package/esm2022/widgets/lib/widgets/layout/repeater/repeater-widget-designer.component.mjs +0 -125
- package/esm2022/widgets/lib/widgets/layout/repeater/repeater-widget-edit.component.mjs +0 -170
- package/esm2022/widgets/lib/widgets/layout/repeater/repeater-widget-print.component.mjs +0 -20
- package/esm2022/widgets/lib/widgets/layout/repeater/repeater-widget-view.component.mjs +0 -44
- package/esm2022/widgets/lib/widgets/layout/repeater/repeater-widget.config.mjs +0 -37
- package/esm2022/widgets/lib/widgets/layout/template/index.mjs +0 -5
- package/esm2022/widgets/lib/widgets/layout/template/template-picker/template-picker.component.mjs +0 -120
- package/esm2022/widgets/lib/widgets/layout/template/template-widget-designer.component.mjs +0 -70
- package/esm2022/widgets/lib/widgets/layout/template/template-widget-edit.component.mjs +0 -96
- package/esm2022/widgets/lib/widgets/layout/template/template-widget-view.component.mjs +0 -62
- package/esm2022/widgets/lib/widgets/layout/template/template-widget.config.mjs +0 -30
- package/esm2022/widgets/lib/widgets/layout/template/template.provider.mjs +0 -58
- package/esm2022/widgets/lib/widgets/layout/text-block/index.mjs +0 -3
- package/esm2022/widgets/lib/widgets/layout/text-block/text-block-widget-designer.component.mjs +0 -38
- package/esm2022/widgets/lib/widgets/layout/text-block/text-block-widget-view.component.mjs +0 -30
- package/esm2022/widgets/lib/widgets/layout/text-block/text-block-widget.config.mjs +0 -43
- package/esm2022/widgets/lib/widgets.module.mjs +0 -113
- package/esm2022/workflow/acorex-platform-workflow.mjs +0 -5
- package/esm2022/workflow/index.mjs +0 -7
- package/esm2022/workflow/lib/actions/start-workflow.action.mjs +0 -32
- package/esm2022/workflow/lib/errors.types.mjs +0 -8
- package/esm2022/workflow/lib/workflow-event-dispatcher.service.mjs +0 -23
- package/esm2022/workflow/lib/workflow-registery.service.mjs +0 -39
- package/esm2022/workflow/lib/workflow.module.mjs +0 -101
- package/esm2022/workflow/lib/workflow.service.mjs +0 -188
- package/esm2022/workflow/lib/workflow.types.mjs +0 -59
- package/fesm2022/acorex-platform-common-avatar-widget-edit.component-DtC2IaE8.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-avatar-widget-view.component-BOIV0Be1.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-boolean-widget-filter.component-S4-3SmKA.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-change-password.component-g_GEw3IZ.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-checkbox-widget-column.component-DOoneR7g.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-checkbox-widget-edit.component-PFRq-XS-.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-checkbox-widget-view.component-CKz8XnjT.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-dateTime-widget-column.component-DG0leXAo.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-dateTime-widget-edit.component-D8W-XEcx.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-dateTime-widget-filter.component-DngCKwFY.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-dateTime-widget-view.component-KGgJkiKB.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-email-widget-column.component-CLNqSuB7.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-email-widget-edit.component--0gaRm4s.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-email-widget-view.component-C3AUr1HO.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-file-widget-column.component-C9AHk2UP.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-file-widget-edit.component-L7bln9k0.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-file-widget-filter.component-Ce35mqny.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-file-widget-view.component-BvMzrs5C.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-gallery-widget-edit.component-BVuV2Ib8.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-gallery-widget-filter.component-C8tdM6PX.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-gallery-widget-view.component-D8YmSi9C.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-largetext-widget-edit.component-DGMxpnsr.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-lookup-widget-column.component-B-cEaNjv.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-lookup-widget-edit.component-DqB_g9Zz.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-lookup-widget-filter.component-0TPWNWSd.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-lookup-widget-view.component-DYAg76YH.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-map-widget-edit.component-C3cpsXD5.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-map-widget-view.component-C-DCNaJi.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-messenger-widget-column.component-B2A7ZBEP.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-messenger-widget-edit.component-DC8vQDo0.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-messenger-widget-view.component-B6FavkmG.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-number-widget-edit.component-Bc5-ZUw4.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-number-widget-filter.component-DxfJ90n4.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-number-widget-view.component-DGfLSGw1.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-password-widget-column.component-DEHaVLGK.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-password-widget-edit.component-DrYyu5v-.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-password-widget-view.component-B_HU-3J1.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-phone-widget-column.component-D99ncxxJ.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-phone-widget-edit.component-a5EAI9FK.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-phone-widget-view.component-BlFVuoNN.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-rich-text-widget-column.component-DOdv5I2s.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-rich-text-widget-edit.component-DL5UyAqe.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-rich-text-widget-view.component-B9WB-mx9.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-selection-list-widget-column.component-CkOuYy0Z.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-selection-list-widget-edit.component-BmbDQ1LH.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-selection-list-widget-filter.component-Dm_1-7eT.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-selection-list-widget-view.component-3hinF85C.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-signature-pad-widget-edit.component-DmmPbw-A.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-signature-pad-widget-view.component-DkFaMNk8.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-string-widget-filter.component-DAqR2PUN.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-text-widget-column.component-DVczwvKA.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-text-widget-edit.component-DC_GnFhe.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-toggle-widget-column.component-Bp1d7SAE.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-toggle-widget-edit.component-D64m4agx.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-toggle-widget-view.component-BTaXXZ88.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-entity-create-view.component-JsGlDx_S.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-entity-import-view.component-9FK_Iro9.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-entity-modify-view.component-CNbc8ewu.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-CJY8R3sa.mjs +0 -109
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-CJY8R3sa.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-C6zgLyry.mjs +0 -301
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-C6zgLyry.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-wPZPhMgy.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-DNXWb6ij.mjs +0 -148
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-DNXWb6ij.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-error-401.component-D5QQ2HAv.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-error-404.component-DSY_D3Iq.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-error-offline.component-B6wSkMdd.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-button-widget-designer.component-CPFA79Gx.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-checkbox-widget-column.component-MInF2GVN.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-checkbox-widget-designer.component-B7Qv2aYx.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-checkbox-widget-view.component-DP4kITs-.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-color-box-widget-designer.component-uQBHAspe.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-contact-widget-filter.component-DnQZon-E.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-page-widget-designer.component-DOulAanE.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-rich-text-popup.component-C8KmObPV.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-template-picker.component-DPlvwgbu.mjs +0 -123
- package/fesm2022/acorex-platform-widgets-template-picker.component-DPlvwgbu.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-template-widget-edit.component-DwPYeF0y.mjs +0 -136
- package/fesm2022/acorex-platform-widgets-template-widget-edit.component-DwPYeF0y.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-text-block-widget-designer.component-BE6goaZc.mjs.map +0 -1
- package/themes/default/lib/layout.routes.d.ts +0 -2
- package/themes/default/lib/layouts/setting-layout/setting-preview/setting-preview.component.d.ts +0 -24
- package/themes/default/lib/layouts/setting-layout/setting-view/setting-menu.component.d.ts +0 -20
- package/widgets/lib/widgets/layout/template/index.d.ts +0 -4
- package/widgets/lib/widgets/layout/template/template-picker/template-picker.component.d.ts +0 -30
- package/widgets/lib/widgets/layout/template/template-widget-designer.component.d.ts +0 -11
- package/widgets/lib/widgets/layout/template/template-widget-edit.component.d.ts +0 -13
- package/widgets/lib/widgets/layout/template/template-widget-view.component.d.ts +0 -11
- package/widgets/lib/widgets/layout/template/template-widget.config.d.ts +0 -7
- package/widgets/lib/widgets/layout/template/template.provider.d.ts +0 -24
|
@@ -1,23 +1,23 @@
|
|
|
1
|
+
import * as i2$1 from '@acorex/components/common';
|
|
2
|
+
import { AXDataSource, AXCommonModule } from '@acorex/components/common';
|
|
1
3
|
import { AXFormatService } from '@acorex/core/format';
|
|
2
|
-
import {
|
|
3
|
-
import * as i0 from '@angular/core';
|
|
4
|
-
import { InjectionToken, inject, Injectable, computed, signal, Injector, effect, HostBinding, ChangeDetectionStrategy, Component, DestroyRef, ViewChild, NgModule } from '@angular/core';
|
|
4
|
+
import { resolveActionLook, AXPFilterOperatorMiddlewareService, AXPEntityCommandScope, getEntityInfo, AXPSettingsService, AXPWorkflowNavigateAction } from '@acorex/platform/common';
|
|
5
5
|
import * as i1$3 from '@acorex/platform/workflow';
|
|
6
|
-
import { createWorkFlowEvent, AXPWorkflowAction,
|
|
6
|
+
import { AXPWorkflowService, createWorkFlowEvent, AXPWorkflowAction, ofType, AXPWorkflowModule } from '@acorex/platform/workflow';
|
|
7
|
+
import * as i0 from '@angular/core';
|
|
8
|
+
import { InjectionToken, inject, Injectable, computed, signal, Injector, effect, Component, ChangeDetectionStrategy, HostBinding, DestroyRef, ViewChild, NgModule } from '@angular/core';
|
|
9
|
+
import { cloneDeep, set, merge, isNil, get, sortBy } from 'lodash-es';
|
|
10
|
+
import { AXPLayoutThemeService } from '@acorex/platform/themes/shared';
|
|
7
11
|
import { AXPSessionService, AXPAuthGuard } from '@acorex/platform/auth';
|
|
8
|
-
import {
|
|
12
|
+
import { Subject, takeUntil } from 'rxjs';
|
|
9
13
|
import { AXDialogService } from '@acorex/components/dialog';
|
|
10
14
|
import { AXLoadingDialogService } from '@acorex/components/loading-dialog';
|
|
11
15
|
import * as i8 from '@acorex/core/translation';
|
|
12
16
|
import { AXTranslationService, AXTranslationModule } from '@acorex/core/translation';
|
|
13
17
|
import { AXPopupService } from '@acorex/components/popup';
|
|
14
18
|
import { AXPlatform } from '@acorex/core/platform';
|
|
15
|
-
import { AXPLayoutThemeService } from '@acorex/platform/themes/shared';
|
|
16
|
-
import * as i2$1 from '@acorex/components/common';
|
|
17
|
-
import { AXDataSource, AXCommonModule } from '@acorex/components/common';
|
|
18
|
-
import { Subject, takeUntil } from 'rxjs';
|
|
19
19
|
import * as i7 from '@acorex/platform/layout/builder';
|
|
20
|
-
import { AXPWidgetComponent, AXPLayoutBuilderModule, AXPLayoutBuilderService, AXPColumnWidgetComponent,
|
|
20
|
+
import { AXPWidgetComponent, AXPLayoutBuilderModule, AXPLayoutBuilderService, AXPColumnWidgetComponent, AXP_WIDGETS_EDITOR_GROUP, AXPWidgetsCatalog, AXPWidgetRegistryService } from '@acorex/platform/layout/builder';
|
|
21
21
|
import { RouterModule, ROUTES } from '@angular/router';
|
|
22
22
|
import * as i1 from '@acorex/components/loading';
|
|
23
23
|
import { AXLoadingModule } from '@acorex/components/loading';
|
|
@@ -33,7 +33,7 @@ import * as i6$1 from '@acorex/components/form';
|
|
|
33
33
|
import { AXFormModule } from '@acorex/components/form';
|
|
34
34
|
import { AXSelectBoxModule } from '@acorex/components/select-box';
|
|
35
35
|
import * as i2$2 from '@acorex/components/text-box';
|
|
36
|
-
import {
|
|
36
|
+
import { AXTextBoxComponent, AXTextBoxModule } from '@acorex/components/text-box';
|
|
37
37
|
import { AXValidationModule } from '@acorex/core/validation';
|
|
38
38
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
39
39
|
import * as i1$2 from '@angular/forms';
|
|
@@ -67,14 +67,220 @@ class AXPEntityResolver {
|
|
|
67
67
|
}
|
|
68
68
|
return null;
|
|
69
69
|
}
|
|
70
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
71
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
70
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPEntityResolver, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
71
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPEntityResolver, providedIn: 'root' }); }
|
|
72
72
|
}
|
|
73
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
73
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPEntityResolver, decorators: [{
|
|
74
74
|
type: Injectable,
|
|
75
75
|
args: [{ providedIn: 'root' }]
|
|
76
76
|
}] });
|
|
77
77
|
|
|
78
|
+
class AXPEntityCommandTriggerViewModel {
|
|
79
|
+
constructor(entity, action) {
|
|
80
|
+
this.name = action.command;
|
|
81
|
+
const resolvedLook = resolveActionLook(action);
|
|
82
|
+
this.priority = action.priority;
|
|
83
|
+
this.title = action.title;
|
|
84
|
+
this.separated = action.separated ?? false;
|
|
85
|
+
this.color = action.color ?? resolvedLook.color;
|
|
86
|
+
this.icon = action.icon ?? resolvedLook.icon;
|
|
87
|
+
this.scope = action.scope;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
class AXPEntityListViewColumnViewModel {
|
|
91
|
+
constructor(property, column) {
|
|
92
|
+
this.property = property;
|
|
93
|
+
this.column = column;
|
|
94
|
+
this.name = this.property.name;
|
|
95
|
+
this.title = this.column.title ?? this.property.title;
|
|
96
|
+
this.visible = this.column?.options?.visible ?? true;
|
|
97
|
+
this.dir = this.column.sort?.dir;
|
|
98
|
+
this.sortEnabled = this.property.options?.sort?.enabled;
|
|
99
|
+
this.node = computed(() => {
|
|
100
|
+
const widget = this.property.schema.interface;
|
|
101
|
+
return {
|
|
102
|
+
path: this.column.options?.dataPath ?? this.name,
|
|
103
|
+
type: widget.type,
|
|
104
|
+
options: { ...widget?.options, ...this.column?.options },
|
|
105
|
+
};
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
class AXPEntityDetailListViewModel {
|
|
111
|
+
constructor(injector, detailEntityConfig, parent) {
|
|
112
|
+
this.injector = injector;
|
|
113
|
+
this.detailEntityConfig = detailEntityConfig;
|
|
114
|
+
this.parent = parent;
|
|
115
|
+
this.detailEntity = signal(null);
|
|
116
|
+
this.formatService = this.injector.get(AXFormatService);
|
|
117
|
+
this.workflow = this.injector.get(AXPWorkflowService);
|
|
118
|
+
this.filterOperatorMiddleware = this.injector.get(AXPFilterOperatorMiddlewareService);
|
|
119
|
+
this.dataSource = new AXDataSource({
|
|
120
|
+
byKey: (key) => {
|
|
121
|
+
const func = this.detailEntity()?.queries.byKey.execute;
|
|
122
|
+
return func();
|
|
123
|
+
},
|
|
124
|
+
load: (e) => {
|
|
125
|
+
const func = this.detailEntity()?.queries.list?.execute;
|
|
126
|
+
return func(e);
|
|
127
|
+
},
|
|
128
|
+
pageSize: 5,
|
|
129
|
+
key: 'id',
|
|
130
|
+
});
|
|
131
|
+
this.selectedItems = signal([]);
|
|
132
|
+
this.hasSelectedItems = computed(() => {
|
|
133
|
+
return this.selectedItems().length > 0;
|
|
134
|
+
});
|
|
135
|
+
//****************** Title ******************//
|
|
136
|
+
this.title = computed(() => {
|
|
137
|
+
return (this.detailEntityConfig.title ??
|
|
138
|
+
this.detailEntity()?.interfaces?.detail?.list?.title ??
|
|
139
|
+
this.detailEntity()?.formats.plural);
|
|
140
|
+
});
|
|
141
|
+
//****************** Inline filter ******************//
|
|
142
|
+
this.inlineFiltersPlaceholders = computed(() => {
|
|
143
|
+
//return this.entityDef.properties.filter(p => p.options?.filter?.inline?.enabled).map(c => c.title);
|
|
144
|
+
return [];
|
|
145
|
+
});
|
|
146
|
+
this.hasInlineFilters = computed(() => {
|
|
147
|
+
return this.inlineFiltersPlaceholders().length > 0;
|
|
148
|
+
});
|
|
149
|
+
//****************** Actions ******************//
|
|
150
|
+
this.allActions = computed(() => {
|
|
151
|
+
const list = this.detailEntity()?.interfaces?.master?.list?.actions ?? [];
|
|
152
|
+
return list.map((tr) => new AXPEntityCommandTriggerViewModel(this.detailEntity(), tr)) ?? [];
|
|
153
|
+
});
|
|
154
|
+
this.primaryActions = computed(() => {
|
|
155
|
+
return this.allActions().filter((a) => a.priority == 'primary' &&
|
|
156
|
+
((a.scope == AXPEntityCommandScope.Selected && this.hasSelectedItems()) ||
|
|
157
|
+
(a.scope == AXPEntityCommandScope.TypeLevel && !this.hasSelectedItems())));
|
|
158
|
+
});
|
|
159
|
+
this.secondaryActions = computed(() => {
|
|
160
|
+
return this.allActions().filter((a) => a.priority == 'secondary' &&
|
|
161
|
+
((a.scope == AXPEntityCommandScope.Selected && this.hasSelectedItems()) ||
|
|
162
|
+
(a.scope == AXPEntityCommandScope.TypeLevel && !this.hasSelectedItems())));
|
|
163
|
+
});
|
|
164
|
+
this.primaryRowActions = computed(() => this.allActions().filter((a) => a.scope == AXPEntityCommandScope.Individual && a.priority === 'primary'));
|
|
165
|
+
this.secondaryRowActions = computed(() => this.allActions().filter((a) => a.scope == AXPEntityCommandScope.Individual && a.priority === 'secondary'));
|
|
166
|
+
//****************** Filter ******************//
|
|
167
|
+
this.inlineFilters = {
|
|
168
|
+
field: null,
|
|
169
|
+
logic: 'or',
|
|
170
|
+
operator: null,
|
|
171
|
+
filters: [],
|
|
172
|
+
};
|
|
173
|
+
//****************** Columns ******************//
|
|
174
|
+
this.columns = computed(() => {
|
|
175
|
+
if (this.detailEntity()) {
|
|
176
|
+
const detailColumns = this.detailEntityConfig.columns ?? [];
|
|
177
|
+
const columns = this.detailEntity()?.columns?.map((c) => c.name) ?? [];
|
|
178
|
+
const props = this.detailEntity()?.properties.filter((p) => p.schema.hidden != true && (detailColumns?.length == 0 || detailColumns?.includes(p.name))) ?? [];
|
|
179
|
+
const displayColumns = props.filter((p) => columns.some((c) => c == p.name));
|
|
180
|
+
return displayColumns.map((p) => {
|
|
181
|
+
return new AXPEntityListViewColumnViewModel(p, this.detailEntity()?.columns?.find((c) => c.name == p.name));
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
return [];
|
|
185
|
+
});
|
|
186
|
+
this.initialize();
|
|
187
|
+
}
|
|
188
|
+
async initialize() {
|
|
189
|
+
const entityResolver = this.injector.get(AXPEntityResolver);
|
|
190
|
+
const [moduleName, entityName] = this.detailEntityConfig.entity.split('.');
|
|
191
|
+
const entity = await entityResolver.get(moduleName, entityName);
|
|
192
|
+
if (!entity) {
|
|
193
|
+
throw Error(`Invalid enitity name: ${this.detailEntityConfig.entity}`);
|
|
194
|
+
}
|
|
195
|
+
this.detailEntity.set(entity);
|
|
196
|
+
this.applyFilterAndSort();
|
|
197
|
+
}
|
|
198
|
+
clearSelection() {
|
|
199
|
+
this.selectedItems.set([]);
|
|
200
|
+
}
|
|
201
|
+
applyInlineFilter(value) {
|
|
202
|
+
// const props = this.entityDef.properties.filter(c => c.options?.filter?.inline?.enabled);
|
|
203
|
+
// this.inlineFilters.filters = [];
|
|
204
|
+
// if (value) {
|
|
205
|
+
// props.forEach(p => {
|
|
206
|
+
// this.inlineFilters.filters?.push({
|
|
207
|
+
// field: p.name,
|
|
208
|
+
// operator: {
|
|
209
|
+
// type: 'contains'
|
|
210
|
+
// },
|
|
211
|
+
// value
|
|
212
|
+
// })
|
|
213
|
+
// })
|
|
214
|
+
// }
|
|
215
|
+
this.applyFilterAndSort();
|
|
216
|
+
}
|
|
217
|
+
applyFilterAndSort() {
|
|
218
|
+
this.dataSource.clearFilter();
|
|
219
|
+
//
|
|
220
|
+
//this.dataSource.sort(...this.detailEntity.().map(s => ({ dir: s.dir, field: s.name } as AXDataSourceSortOption)));
|
|
221
|
+
//
|
|
222
|
+
const parentFilters = this.detailEntityConfig.conditions?.map((c) => {
|
|
223
|
+
return {
|
|
224
|
+
field: c.name,
|
|
225
|
+
operator: c.operator,
|
|
226
|
+
value: this.parent.data?.id,
|
|
227
|
+
};
|
|
228
|
+
}) ?? [];
|
|
229
|
+
const parentFilterWrapper = {
|
|
230
|
+
field: null,
|
|
231
|
+
logic: 'and',
|
|
232
|
+
operator: null,
|
|
233
|
+
filters: parentFilters,
|
|
234
|
+
};
|
|
235
|
+
//
|
|
236
|
+
const inline = this.inlineFilters.filters?.length ?? 0;
|
|
237
|
+
const parent = parentFilterWrapper.filters?.length ?? 0;
|
|
238
|
+
//
|
|
239
|
+
if (inline) {
|
|
240
|
+
this.dataSource.filter(this.filterOperatorMiddleware.transformFilter(this.inlineFilters));
|
|
241
|
+
}
|
|
242
|
+
else if (!inline && parent) {
|
|
243
|
+
this.dataSource.filter(this.filterOperatorMiddleware.transformFilter(parentFilterWrapper));
|
|
244
|
+
}
|
|
245
|
+
else if (inline && parent) {
|
|
246
|
+
this.dataSource.filter(this.filterOperatorMiddleware.transformFilter({
|
|
247
|
+
field: null,
|
|
248
|
+
logic: 'and',
|
|
249
|
+
operator: null,
|
|
250
|
+
filters: [this.inlineFilters, parentFilterWrapper],
|
|
251
|
+
}));
|
|
252
|
+
}
|
|
253
|
+
//
|
|
254
|
+
this.dataSource.refresh();
|
|
255
|
+
}
|
|
256
|
+
//****************** Commands ******************//
|
|
257
|
+
async executeCommand(commandName, data = null) {
|
|
258
|
+
const action = this.allActions().find((c) => c.name == commandName &&
|
|
259
|
+
((this.selectedItems().length
|
|
260
|
+
? c.scope == AXPEntityCommandScope.Selected
|
|
261
|
+
: c.scope == AXPEntityCommandScope.Individual) ||
|
|
262
|
+
c.scope == AXPEntityCommandScope.TypeLevel));
|
|
263
|
+
if (action?.scope == AXPEntityCommandScope.TypeLevel) {
|
|
264
|
+
if (data == null) {
|
|
265
|
+
data = {};
|
|
266
|
+
}
|
|
267
|
+
let relatedColumn = null;
|
|
268
|
+
this.detailEntityConfig.conditions?.forEach((condition) => {
|
|
269
|
+
if (condition.value == 'id') {
|
|
270
|
+
relatedColumn = condition.name;
|
|
271
|
+
}
|
|
272
|
+
});
|
|
273
|
+
if (relatedColumn != null) {
|
|
274
|
+
data[relatedColumn] = this.parent.data['id'];
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
await this.workflow.execute(commandName, {
|
|
278
|
+
entity: getEntityInfo(this.detailEntity()).source,
|
|
279
|
+
data: action?.scope == AXPEntityCommandScope.Selected ? this.selectedItems() : data,
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
|
|
78
284
|
class AXPEntityDefinitionRegistryService {
|
|
79
285
|
constructor() {
|
|
80
286
|
// Stores AXPEntityConfig objects, keyed by a combination of module and entity name.
|
|
@@ -131,47 +337,156 @@ class AXPEntityDefinitionRegistryService {
|
|
|
131
337
|
createEntityKey(moduleName, entityName) {
|
|
132
338
|
return `${moduleName}.${entityName}`;
|
|
133
339
|
}
|
|
134
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
135
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
340
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPEntityDefinitionRegistryService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
341
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPEntityDefinitionRegistryService, providedIn: 'root' }); }
|
|
136
342
|
}
|
|
137
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
343
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPEntityDefinitionRegistryService, decorators: [{
|
|
138
344
|
type: Injectable,
|
|
139
345
|
args: [{
|
|
140
346
|
providedIn: 'root',
|
|
141
347
|
}]
|
|
142
348
|
}] });
|
|
143
349
|
|
|
144
|
-
class
|
|
145
|
-
constructor(entity,
|
|
146
|
-
this.
|
|
147
|
-
|
|
148
|
-
this.
|
|
149
|
-
this.
|
|
150
|
-
this.
|
|
151
|
-
|
|
152
|
-
this.icon = action.icon ?? resolvedLook.icon;
|
|
153
|
-
this.scope = action.scope;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
class AXPEntityListViewColumnViewModel {
|
|
157
|
-
constructor(property, column) {
|
|
158
|
-
this.property = property;
|
|
159
|
-
this.column = column;
|
|
160
|
-
this.name = this.property.name;
|
|
161
|
-
this.title = this.column.title ?? this.property.title;
|
|
162
|
-
this.visible = this.column?.options?.visible ?? true;
|
|
163
|
-
this.dir = this.column.sort?.dir;
|
|
164
|
-
this.sortEnabled = this.property.options?.sort?.enabled;
|
|
165
|
-
this.node = computed(() => {
|
|
166
|
-
const widget = this.property.schema.interface;
|
|
167
|
-
return {
|
|
168
|
-
path: this.column.options?.dataPath ?? this.name,
|
|
169
|
-
type: widget.type,
|
|
170
|
-
options: { ...widget?.options, ...this.column?.options },
|
|
171
|
-
};
|
|
350
|
+
class AXPEntityCreateViewSectionViewModel {
|
|
351
|
+
constructor(entity, section) {
|
|
352
|
+
this.entity = entity;
|
|
353
|
+
this.section = section;
|
|
354
|
+
this.group = this.entity.groups?.find(c => c.id == this.section.id);
|
|
355
|
+
this.name = signal(this.group.id);
|
|
356
|
+
this.title = computed(() => {
|
|
357
|
+
return this.group.title ?? this.group.id;
|
|
172
358
|
});
|
|
173
|
-
|
|
174
|
-
|
|
359
|
+
this.description = computed(() => {
|
|
360
|
+
return this.group.description;
|
|
361
|
+
;
|
|
362
|
+
});
|
|
363
|
+
this.layout = computed(() => {
|
|
364
|
+
const source = cloneDeep(this.section.layout ?? {});
|
|
365
|
+
set(source, "positions.default.colSpan", 12);
|
|
366
|
+
return source;
|
|
367
|
+
});
|
|
368
|
+
this.elements = computed(() => {
|
|
369
|
+
const { interfaces, properties } = this.entity;
|
|
370
|
+
const createProps = interfaces?.master?.create?.properties ?? [];
|
|
371
|
+
const createPropNames = new Set(createProps.map(({ name }) => name));
|
|
372
|
+
const filteredProperties = properties.filter(({ groupId, schema, name }) => groupId === this.group.id &&
|
|
373
|
+
!schema.hidden &&
|
|
374
|
+
createPropNames.has(name));
|
|
375
|
+
return filteredProperties.map(property => {
|
|
376
|
+
const createProp = createProps.find(({ name }) => name === property.name);
|
|
377
|
+
return new AXPEntityCreateViewElementViewModel(this.entity, this, property, createProp);
|
|
378
|
+
});
|
|
379
|
+
});
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
class AXPEntityCreateViewElementViewModel {
|
|
383
|
+
constructor(entity, section, property, createProp) {
|
|
384
|
+
this.entity = entity;
|
|
385
|
+
this.section = section;
|
|
386
|
+
this.property = property;
|
|
387
|
+
this.createProp = createProp;
|
|
388
|
+
this.name = signal(this.property.name);
|
|
389
|
+
this.title = signal(this.property.title);
|
|
390
|
+
this.description = signal(this.property.description);
|
|
391
|
+
this.editable = computed(() => {
|
|
392
|
+
return !(this.property.schema.readonly ?? false);
|
|
393
|
+
});
|
|
394
|
+
this.isRequired = computed(() => {
|
|
395
|
+
return this.property.validations?.some(c => c.rule == 'required') || false;
|
|
396
|
+
});
|
|
397
|
+
this.layout = computed(() => {
|
|
398
|
+
const source = cloneDeep(this.createProp.layout ?? {});
|
|
399
|
+
set(source, "positions.default.colSpan", 12);
|
|
400
|
+
return source;
|
|
401
|
+
});
|
|
402
|
+
this.node = computed(() => {
|
|
403
|
+
const schema = this.property.schema;
|
|
404
|
+
const widget = schema.interface;
|
|
405
|
+
return {
|
|
406
|
+
type: widget.type,
|
|
407
|
+
mode: this.editable() ? 'edit' : 'view',
|
|
408
|
+
path: this.name(),
|
|
409
|
+
children: widget.children,
|
|
410
|
+
formula: widget.formula,
|
|
411
|
+
triggers: widget.triggers,
|
|
412
|
+
options: merge(schema.interface?.options,
|
|
413
|
+
//this.property.options?.create?.widget,
|
|
414
|
+
{ validationRules: this.property.validations })
|
|
415
|
+
};
|
|
416
|
+
});
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
class AXPEntityMasterCreateViewModel {
|
|
420
|
+
constructor(injector, config, initialData = {}, canCreateNewOne = true, redirect = false) {
|
|
421
|
+
this.injector = injector;
|
|
422
|
+
this.config = config;
|
|
423
|
+
this.initialData = initialData;
|
|
424
|
+
this.entityDef = cloneDeep(this.config);
|
|
425
|
+
this.workflow = this.injector.get(AXPWorkflowService);
|
|
426
|
+
this.context = signal(this.initialData ?? {});
|
|
427
|
+
this.isInProgress = signal(false);
|
|
428
|
+
this.canCreateNewOne = signal(false);
|
|
429
|
+
this.redirect = signal(false);
|
|
430
|
+
this.sections = computed(() => {
|
|
431
|
+
const { interfaces, properties } = this.entityDef;
|
|
432
|
+
const createProps = interfaces?.master?.create?.properties?.map(({ name }) => name) ?? [];
|
|
433
|
+
const visibleProperties = properties.filter(({ groupId, schema, name }) => groupId && !schema.hidden && createProps.includes(name));
|
|
434
|
+
const sections = interfaces?.master?.create?.sections?.filter(({ id }) => visibleProperties.some(({ groupId }) => groupId === id)) ?? [];
|
|
435
|
+
return sections.map(section => new AXPEntityCreateViewSectionViewModel(this.entityDef, section));
|
|
436
|
+
});
|
|
437
|
+
if (!initialData)
|
|
438
|
+
initialData = {};
|
|
439
|
+
this.config.properties
|
|
440
|
+
.filter(c => c.schema.defaultValue != null)
|
|
441
|
+
.forEach(p => {
|
|
442
|
+
if (typeof p.schema.defaultValue === 'function') {
|
|
443
|
+
const func = p.schema.defaultValue;
|
|
444
|
+
set(initialData, p.name, func(initialData));
|
|
445
|
+
}
|
|
446
|
+
else {
|
|
447
|
+
set(initialData, p.name, p.schema.defaultValue);
|
|
448
|
+
}
|
|
449
|
+
});
|
|
450
|
+
this.context.set(initialData);
|
|
451
|
+
//
|
|
452
|
+
this.canCreateNewOne.set(canCreateNewOne);
|
|
453
|
+
this.redirect.set(redirect);
|
|
454
|
+
}
|
|
455
|
+
async save() {
|
|
456
|
+
try {
|
|
457
|
+
this.isInProgress.set(true);
|
|
458
|
+
const exec = this.entityDef.commands?.create?.execute;
|
|
459
|
+
return await exec((this.context()));
|
|
460
|
+
}
|
|
461
|
+
finally {
|
|
462
|
+
this.isInProgress.set(false);
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
async createNewOne() {
|
|
466
|
+
await this.workflow.execute('create-entity', {
|
|
467
|
+
entity: getEntityInfo(this.entityDef).source
|
|
468
|
+
});
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
class AXPEntityCreateViewModelFactory {
|
|
472
|
+
constructor() {
|
|
473
|
+
this.entityService = inject(AXPEntityDefinitionRegistryService);
|
|
474
|
+
this.layout = inject(AXPLayoutThemeService);
|
|
475
|
+
this.injector = inject(Injector);
|
|
476
|
+
}
|
|
477
|
+
async create(moduleName, entityName, initialData = null, options = { canCreateNewOne: false, redirect: true }) {
|
|
478
|
+
this.layout.setNavigationLoading(true);
|
|
479
|
+
const config = await this.entityService.resolve(moduleName, entityName);
|
|
480
|
+
this.layout.setNavigationLoading(false);
|
|
481
|
+
return new AXPEntityMasterCreateViewModel(this.injector, config, initialData, options.canCreateNewOne, options.redirect);
|
|
482
|
+
}
|
|
483
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPEntityCreateViewModelFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
484
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPEntityCreateViewModelFactory, providedIn: 'root' }); }
|
|
485
|
+
}
|
|
486
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPEntityCreateViewModelFactory, decorators: [{
|
|
487
|
+
type: Injectable,
|
|
488
|
+
args: [{ providedIn: 'root' }]
|
|
489
|
+
}] });
|
|
175
490
|
|
|
176
491
|
const AXPEntityDeletedEvent = createWorkFlowEvent('[Entity] Deleted');
|
|
177
492
|
class AXPEntityPerformDeleteAction extends AXPWorkflowAction {
|
|
@@ -262,10 +577,10 @@ class AXPEntityPerformDeleteAction extends AXPWorkflowAction {
|
|
|
262
577
|
throw new Error(`The delete operation cannot be performed on ${entity.title}. This action might be restricted or not applicable for the selected item.`);
|
|
263
578
|
}
|
|
264
579
|
}
|
|
265
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
266
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
580
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPEntityPerformDeleteAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
581
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPEntityPerformDeleteAction }); }
|
|
267
582
|
}
|
|
268
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
583
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPEntityPerformDeleteAction, decorators: [{
|
|
269
584
|
type: Injectable
|
|
270
585
|
}] });
|
|
271
586
|
const AXPDeleteEntityWorkflow = {
|
|
@@ -296,206 +611,69 @@ const AXPDeleteEntityWorkflow = {
|
|
|
296
611
|
},
|
|
297
612
|
};
|
|
298
613
|
|
|
299
|
-
class
|
|
300
|
-
constructor(entity,
|
|
614
|
+
class AXPEntityMasterListViewQueryViewModel {
|
|
615
|
+
constructor(entity, section, view) {
|
|
301
616
|
this.entity = entity;
|
|
302
|
-
this.
|
|
303
|
-
this.
|
|
304
|
-
this.
|
|
305
|
-
this.
|
|
306
|
-
this.
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
this.
|
|
310
|
-
|
|
311
|
-
});
|
|
312
|
-
this.layout = computed(() => {
|
|
313
|
-
const updateProp = this.entity.interfaces?.master?.update?.properties?.find(c => c.name == this.property.name);
|
|
314
|
-
const source = cloneDeep(updateProp?.layout ?? {});
|
|
315
|
-
set(source, "positions.default.colSpan", 12);
|
|
316
|
-
return source;
|
|
317
|
-
});
|
|
318
|
-
this.node = computed(() => {
|
|
319
|
-
const schema = this.property.schema;
|
|
320
|
-
const widget = schema.interface;
|
|
321
|
-
return {
|
|
322
|
-
type: widget.type,
|
|
323
|
-
mode: this.editable() ? 'edit' : 'view',
|
|
324
|
-
path: this.name(),
|
|
325
|
-
children: widget.children,
|
|
326
|
-
formula: widget.formula,
|
|
327
|
-
triggers: widget.triggers,
|
|
328
|
-
options: merge(schema.interface?.options,
|
|
329
|
-
//this.property.options?.create?.widget,
|
|
330
|
-
{ validationRules: this.property.validations })
|
|
331
|
-
};
|
|
332
|
-
});
|
|
617
|
+
this.section = section;
|
|
618
|
+
this.view = view;
|
|
619
|
+
this.name = this.view.name;
|
|
620
|
+
this.title = this.view.title;
|
|
621
|
+
this.sorts = this.view.sorts;
|
|
622
|
+
this.columns = this.view.columns;
|
|
623
|
+
this.conditions = this.view.conditions;
|
|
624
|
+
this.indexCol = this.view.indexCol;
|
|
625
|
+
this.pageSize = this.view.pageSize;
|
|
333
626
|
}
|
|
334
627
|
}
|
|
335
|
-
class
|
|
336
|
-
|
|
628
|
+
class AXPEntityMasterListViewModel {
|
|
629
|
+
async setView(viewName = null) {
|
|
630
|
+
this.settingSelectedViewKey = `${this.config.module}:${this.config.name}:selected-view`;
|
|
631
|
+
const savedViewName = await this.settings.get(this.settingSelectedViewKey);
|
|
632
|
+
// this.settings.set()
|
|
633
|
+
if (viewName != this.view().name) {
|
|
634
|
+
this.view.set(this.views().find((c) => c.name == (viewName || savedViewName)) ?? this.views()[0]);
|
|
635
|
+
this.settings.set(this.settingSelectedViewKey, this.view().name);
|
|
636
|
+
this.applyViewSorts();
|
|
637
|
+
this.applyViewColumns();
|
|
638
|
+
this.applyFilterAndSort();
|
|
639
|
+
this.applySettings();
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
constructor(injector, config) {
|
|
337
643
|
this.injector = injector;
|
|
338
644
|
this.config = config;
|
|
339
|
-
this.entityData = entityData;
|
|
340
|
-
this.props = props;
|
|
341
645
|
this.entityDef = cloneDeep(this.config);
|
|
646
|
+
this._viewDef = cloneDeep(this.entityDef.interfaces?.master?.list);
|
|
647
|
+
this.formatService = this.injector.get(AXFormatService);
|
|
648
|
+
this.session = this.injector.get(AXPSessionService);
|
|
342
649
|
this.workflow = this.injector.get(AXPWorkflowService);
|
|
343
|
-
this.
|
|
344
|
-
this.
|
|
345
|
-
this.
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
650
|
+
this.settings = this.injector.get(AXPSettingsService);
|
|
651
|
+
this.filterOperatorMiddleware = this.injector.get(AXPFilterOperatorMiddlewareService);
|
|
652
|
+
this.settingListViewKey = '';
|
|
653
|
+
this.settingSelectedViewKey = '';
|
|
654
|
+
this.destroyed = new Subject();
|
|
655
|
+
this.events$ = new Subject();
|
|
656
|
+
//****************** Views ******************//
|
|
657
|
+
this.views = computed(() => {
|
|
658
|
+
const views = this.entityDef.interfaces?.master?.list?.views ?? [];
|
|
659
|
+
console.log(views.map((v) => {
|
|
660
|
+
return new AXPEntityMasterListViewQueryViewModel(this.entityDef, this, v);
|
|
661
|
+
}));
|
|
662
|
+
return views.map((v) => {
|
|
663
|
+
return new AXPEntityMasterListViewQueryViewModel(this.entityDef, this, v);
|
|
350
664
|
});
|
|
351
665
|
});
|
|
352
|
-
|
|
353
|
-
async save() {
|
|
354
|
-
this.isInProgress.set(true);
|
|
355
|
-
try {
|
|
356
|
-
const com = this.entityDef.commands?.update;
|
|
357
|
-
if (com) {
|
|
358
|
-
const exec = com.execute;
|
|
359
|
-
return await exec(this.context());
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
finally {
|
|
363
|
-
this.isInProgress.set(false);
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
reset() {
|
|
367
|
-
this.context.set(cloneDeep(this.entityData));
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
class AXPEntityMasterUpdateViewModelFactory {
|
|
371
|
-
constructor() {
|
|
372
|
-
this.entityService = inject(AXPEntityDefinitionRegistryService);
|
|
373
|
-
this.layout = inject(AXPLayoutThemeService);
|
|
374
|
-
this.injector = inject(Injector);
|
|
375
|
-
}
|
|
376
|
-
async create(moduleName, entityName, id, props) {
|
|
377
|
-
const config = await this.entityService.resolve(moduleName, entityName);
|
|
378
|
-
this.layout.setNavigationLoading(true);
|
|
379
|
-
if (config.queries.byKey) {
|
|
380
|
-
const func = config.queries.byKey.execute;
|
|
381
|
-
const data = await func(id);
|
|
382
|
-
this.layout.setNavigationLoading(false);
|
|
383
|
-
return new AXPEntityMasterUpdateViewModel(this.injector, config, data, props);
|
|
384
|
-
}
|
|
385
|
-
this.layout.setNavigationLoading(false);
|
|
386
|
-
return Promise.reject('cannot fetch ');
|
|
387
|
-
}
|
|
388
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPEntityMasterUpdateViewModelFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
389
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPEntityMasterUpdateViewModelFactory, providedIn: 'root' }); }
|
|
390
|
-
}
|
|
391
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPEntityMasterUpdateViewModelFactory, decorators: [{
|
|
392
|
-
type: Injectable,
|
|
393
|
-
args: [{ providedIn: 'root' }]
|
|
394
|
-
}] });
|
|
395
|
-
|
|
396
|
-
const AXPEntityModifyEvent = createWorkFlowEvent('[Entity] Modified');
|
|
397
|
-
class AXPEntityModifySectionPopupAction extends AXPWorkflowAction {
|
|
398
|
-
constructor() {
|
|
399
|
-
super(...arguments);
|
|
400
|
-
this.popupService = inject(AXPopupService);
|
|
401
|
-
this.platform = inject(AXPlatform);
|
|
402
|
-
this.translateService = inject(AXTranslationService);
|
|
403
|
-
this.entityRegistery = inject(AXPEntityDefinitionRegistryService);
|
|
404
|
-
this.config = inject(AXP_ENTITY_CONFIG_TOKEN);
|
|
405
|
-
this.factory = inject(AXPEntityMasterUpdateViewModelFactory);
|
|
406
|
-
}
|
|
407
|
-
async execute(context) {
|
|
408
|
-
const [moduleName, entityName] = context.getVariable('entity').split('.');
|
|
409
|
-
const { properties, id, title } = context.getVariable('data');
|
|
410
|
-
const entityRef = await this.entityRegistery.resolve(moduleName, entityName);
|
|
411
|
-
const vm = await this.factory.create(moduleName, entityName, id, properties);
|
|
412
|
-
const com = await this.config.viewers.master.modify();
|
|
413
|
-
const popup = await this.popupService.open(com, {
|
|
414
|
-
title: title ?? `${this.translateService.translateSync('entity.modify')} ${this.translateService.translateSync(entityRef.formats.individual)}`,
|
|
415
|
-
size: this.platform.is('Mobile') || this.platform.is('SM') ? 'full' : 'md',
|
|
416
|
-
data: {
|
|
417
|
-
vm,
|
|
418
|
-
properties,
|
|
419
|
-
entity: entityRef,
|
|
420
|
-
},
|
|
421
|
-
});
|
|
422
|
-
context.setOutput('result', false);
|
|
423
|
-
if (popup.data?.result == true) {
|
|
424
|
-
context.setOutput('result', true);
|
|
425
|
-
context.setVariable('data', cloneDeep(popup.data.context));
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPEntityModifySectionPopupAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
429
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPEntityModifySectionPopupAction }); }
|
|
430
|
-
}
|
|
431
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPEntityModifySectionPopupAction, decorators: [{
|
|
432
|
-
type: Injectable
|
|
433
|
-
}] });
|
|
434
|
-
class AXPEntityModifyConfirmedAction extends AXPWorkflowAction {
|
|
435
|
-
async execute(context) {
|
|
436
|
-
const updatedData = context.getVariable('data');
|
|
437
|
-
this.dispatch(AXPEntityModifyEvent({ entity: context.getVariable('entity'), values: updatedData }));
|
|
438
|
-
}
|
|
439
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPEntityModifyConfirmedAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
440
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPEntityModifyConfirmedAction }); }
|
|
441
|
-
}
|
|
442
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPEntityModifyConfirmedAction, decorators: [{
|
|
443
|
-
type: Injectable
|
|
444
|
-
}] });
|
|
445
|
-
const AXPModifyEntitySectionWorkflow = {
|
|
446
|
-
startStepId: 'modifyPopup',
|
|
447
|
-
steps: {
|
|
448
|
-
modifyPopup: {
|
|
449
|
-
id: 'modifyPopup',
|
|
450
|
-
action: 'AXPEntityModifySectionPopupAction',
|
|
451
|
-
nextSteps: [
|
|
452
|
-
{
|
|
453
|
-
conditions: [{ type: 'SINGLE', expression: 'context.getOutput("result") == true' }],
|
|
454
|
-
nextStepId: 'successToast',
|
|
455
|
-
},
|
|
456
|
-
],
|
|
457
|
-
},
|
|
458
|
-
successToast: {
|
|
459
|
-
id: 'successToast',
|
|
460
|
-
action: 'AXPToastAction',
|
|
461
|
-
input: {
|
|
462
|
-
color: 'success',
|
|
463
|
-
title: 'workflow.entity-modified-title',
|
|
464
|
-
content: 'workflow.entity-modified-body',
|
|
465
|
-
},
|
|
466
|
-
nextSteps: [
|
|
467
|
-
{
|
|
468
|
-
conditions: [],
|
|
469
|
-
nextStepId: 'modifyConfirmed',
|
|
470
|
-
},
|
|
471
|
-
],
|
|
472
|
-
},
|
|
473
|
-
modifyConfirmed: {
|
|
474
|
-
id: 'modifyConfirmed',
|
|
475
|
-
action: 'AXPEntityModifyConfirmedAction',
|
|
476
|
-
},
|
|
477
|
-
},
|
|
478
|
-
};
|
|
479
|
-
|
|
480
|
-
class AXPEntityDetailListViewModel {
|
|
481
|
-
constructor(injector, detailEntityConfig, parent) {
|
|
482
|
-
this.injector = injector;
|
|
483
|
-
this.detailEntityConfig = detailEntityConfig;
|
|
484
|
-
this.parent = parent;
|
|
485
|
-
this.detailEntity = signal(null);
|
|
486
|
-
this.formatService = this.injector.get(AXFormatService);
|
|
487
|
-
this.workflow = this.injector.get(AXPWorkflowService);
|
|
488
|
-
this.filterOperatorMiddleware = this.injector.get(AXPFilterOperatorMiddlewareService);
|
|
666
|
+
this.view = signal(this.views()[0]);
|
|
489
667
|
this.dataSource = new AXDataSource({
|
|
490
668
|
byKey: (key) => {
|
|
491
|
-
const func = this.
|
|
669
|
+
const func = this.entityDef.queries.byKey.execute;
|
|
492
670
|
return func();
|
|
493
671
|
},
|
|
494
672
|
load: (e) => {
|
|
495
|
-
const func = this.
|
|
673
|
+
const func = this.entityDef.queries.list?.execute;
|
|
496
674
|
return func(e);
|
|
497
675
|
},
|
|
498
|
-
pageSize:
|
|
676
|
+
pageSize: this.view().pageSize || 10,
|
|
499
677
|
key: 'id',
|
|
500
678
|
});
|
|
501
679
|
this.selectedItems = signal([]);
|
|
@@ -504,22 +682,44 @@ class AXPEntityDetailListViewModel {
|
|
|
504
682
|
});
|
|
505
683
|
//****************** Title ******************//
|
|
506
684
|
this.title = computed(() => {
|
|
507
|
-
return
|
|
508
|
-
|
|
509
|
-
|
|
685
|
+
return this._viewDef.title ?? this.entityDef.formats.plural;
|
|
686
|
+
});
|
|
687
|
+
//****************** Description ******************//
|
|
688
|
+
this.description = computed(() => {
|
|
689
|
+
return this._viewDef.description ?? null;
|
|
510
690
|
});
|
|
511
691
|
//****************** Inline filter ******************//
|
|
512
692
|
this.inlineFiltersPlaceholders = computed(() => {
|
|
513
|
-
|
|
514
|
-
return [];
|
|
693
|
+
return this.entityDef.properties.filter((p) => p.options?.filter?.inline?.enabled).map((c) => c.title ?? c.name);
|
|
515
694
|
});
|
|
516
695
|
this.hasInlineFilters = computed(() => {
|
|
517
696
|
return this.inlineFiltersPlaceholders().length > 0;
|
|
518
697
|
});
|
|
698
|
+
//****************** Beardcrumbs ******************//
|
|
699
|
+
this.beardcrumbs = computed(() => {
|
|
700
|
+
return [
|
|
701
|
+
{
|
|
702
|
+
title: 'entity.home',
|
|
703
|
+
icon: 'fa-solid fa-home ax-text-xs ax-me-2',
|
|
704
|
+
url: [`/${this.session.application?.name}`],
|
|
705
|
+
},
|
|
706
|
+
{
|
|
707
|
+
title: this.title(),
|
|
708
|
+
url: [
|
|
709
|
+
`/${this.session.application?.name}`,
|
|
710
|
+
'm',
|
|
711
|
+
`${this.entityDef.module}`,
|
|
712
|
+
'e',
|
|
713
|
+
`${this.entityDef.name}`,
|
|
714
|
+
'list',
|
|
715
|
+
],
|
|
716
|
+
},
|
|
717
|
+
];
|
|
718
|
+
});
|
|
519
719
|
//****************** Actions ******************//
|
|
520
720
|
this.allActions = computed(() => {
|
|
521
|
-
const list = this.
|
|
522
|
-
return list.map((tr) => new AXPEntityCommandTriggerViewModel(this.
|
|
721
|
+
const list = this.entityDef.interfaces?.master?.list?.actions ?? [];
|
|
722
|
+
return list.map((tr) => new AXPEntityCommandTriggerViewModel(this.entityDef, tr)) ?? [];
|
|
523
723
|
});
|
|
524
724
|
this.primaryActions = computed(() => {
|
|
525
725
|
return this.allActions().filter((a) => a.priority == 'primary' &&
|
|
@@ -531,6 +731,9 @@ class AXPEntityDetailListViewModel {
|
|
|
531
731
|
((a.scope == AXPEntityCommandScope.Selected && this.hasSelectedItems()) ||
|
|
532
732
|
(a.scope == AXPEntityCommandScope.TypeLevel && !this.hasSelectedItems())));
|
|
533
733
|
});
|
|
734
|
+
this.selectedScopeActionsCount = computed(() => {
|
|
735
|
+
return this.allActions().filter((a) => a.scope == AXPEntityCommandScope.Selected).length;
|
|
736
|
+
});
|
|
534
737
|
this.primaryRowActions = computed(() => this.allActions().filter((a) => a.scope == AXPEntityCommandScope.Individual && a.priority === 'primary'));
|
|
535
738
|
this.secondaryRowActions = computed(() => this.allActions().filter((a) => a.scope == AXPEntityCommandScope.Individual && a.priority === 'secondary'));
|
|
536
739
|
//****************** Filter ******************//
|
|
@@ -540,117 +743,398 @@ class AXPEntityDetailListViewModel {
|
|
|
540
743
|
operator: null,
|
|
541
744
|
filters: [],
|
|
542
745
|
};
|
|
746
|
+
this.advanceFilters = {
|
|
747
|
+
field: null,
|
|
748
|
+
logic: 'and',
|
|
749
|
+
operator: null,
|
|
750
|
+
filters: [],
|
|
751
|
+
};
|
|
543
752
|
//****************** Columns ******************//
|
|
544
|
-
this.
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
753
|
+
this.allAvailableColumns = () => {
|
|
754
|
+
const { columns = [], properties } = this.entityDef;
|
|
755
|
+
const visibleProperties = properties.filter(({ schema }) => !schema?.hidden);
|
|
756
|
+
const visiblePropNames = new Set(visibleProperties.map(({ name }) => name));
|
|
757
|
+
return columns
|
|
758
|
+
.filter(({ name }) => visiblePropNames.has(name))
|
|
759
|
+
.map((column) => {
|
|
760
|
+
const property = visibleProperties.find(({ name }) => name === column.name);
|
|
761
|
+
return new AXPEntityListViewColumnViewModel(property, column);
|
|
762
|
+
});
|
|
763
|
+
};
|
|
764
|
+
this.visibleColumnCount = () => {
|
|
765
|
+
return this.columns().filter((c) => c.visible == true).length;
|
|
766
|
+
};
|
|
767
|
+
this.columns = signal([]);
|
|
768
|
+
//****************** Sort ******************//
|
|
769
|
+
this.sortableFields = () => {
|
|
770
|
+
const props = this.entityDef.properties.filter((c) => c.options?.sort?.enabled);
|
|
771
|
+
return props.map((e) => {
|
|
772
|
+
return {
|
|
773
|
+
name: e.name,
|
|
774
|
+
title: e.title,
|
|
775
|
+
dir: undefined,
|
|
776
|
+
};
|
|
777
|
+
});
|
|
778
|
+
};
|
|
779
|
+
this.sortableFieldsCount = () => {
|
|
780
|
+
return this.entityDef.properties.filter((c) => c.options?.sort?.enabled).length ?? 0;
|
|
781
|
+
};
|
|
782
|
+
this.canSort = () => {
|
|
783
|
+
return this.sortableFieldsCount() > 0;
|
|
784
|
+
};
|
|
785
|
+
this.canAddMoreSort = () => {
|
|
786
|
+
return this.sortedCount() < this.sortableFieldsCount();
|
|
787
|
+
};
|
|
788
|
+
this.sortedCount = () => {
|
|
789
|
+
return this.sortedFields().filter((i) => i.dir).length;
|
|
790
|
+
};
|
|
791
|
+
this.sortedFields = signal([]);
|
|
792
|
+
this.workflow.events$
|
|
793
|
+
.pipe(ofType(AXPEntityDeletedEvent))
|
|
794
|
+
.pipe(takeUntil(this.destroyed))
|
|
795
|
+
.subscribe((event) => {
|
|
796
|
+
if (event.payload.entity == getEntityInfo(this.entityDef).source) {
|
|
797
|
+
this.selectedItems.set([]);
|
|
798
|
+
this.events$.next({ action: 'refresh' });
|
|
553
799
|
}
|
|
554
|
-
return [];
|
|
555
800
|
});
|
|
556
|
-
this.
|
|
801
|
+
this.sortedFields.set(this.sortableFields());
|
|
557
802
|
}
|
|
558
|
-
async
|
|
559
|
-
|
|
560
|
-
const
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
803
|
+
async applySettings() {
|
|
804
|
+
this.settingListViewKey = `${this.config.module}:${this.config.name}:list-view:${this.view().name}`;
|
|
805
|
+
const listViewSetting = await this.settings.get(this.settingListViewKey);
|
|
806
|
+
if (listViewSetting) {
|
|
807
|
+
const columnVisibilityMap = new Map(listViewSetting.columns.map((col) => [col.name, col.visible]));
|
|
808
|
+
this.columns.update((prev) => prev
|
|
809
|
+
.map((c) => ({ ...c, visible: columnVisibilityMap.get(c.name) ?? c.visible })) // Update visibility
|
|
810
|
+
.sort((a, b) => listViewSetting.columns.findIndex((col) => col.name === a.name) -
|
|
811
|
+
listViewSetting.columns.findIndex((col) => col.name === b.name)));
|
|
564
812
|
}
|
|
565
|
-
this.detailEntity.set(entity);
|
|
566
|
-
this.applyFilterAndSort();
|
|
567
813
|
}
|
|
568
814
|
clearSelection() {
|
|
569
815
|
this.selectedItems.set([]);
|
|
570
816
|
}
|
|
571
817
|
applyInlineFilter(value) {
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
818
|
+
const props = this.entityDef.properties.filter((c) => c.options?.filter?.inline?.enabled);
|
|
819
|
+
this.inlineFilters.filters = [];
|
|
820
|
+
if (value) {
|
|
821
|
+
props.forEach((p) => {
|
|
822
|
+
this.inlineFilters.filters?.push({
|
|
823
|
+
field: p.name,
|
|
824
|
+
operator: {
|
|
825
|
+
type: 'contains',
|
|
826
|
+
},
|
|
827
|
+
value,
|
|
828
|
+
});
|
|
829
|
+
});
|
|
830
|
+
}
|
|
585
831
|
this.applyFilterAndSort();
|
|
586
832
|
}
|
|
587
833
|
applyFilterAndSort() {
|
|
588
834
|
this.dataSource.clearFilter();
|
|
589
835
|
//
|
|
590
|
-
|
|
836
|
+
this.dataSource.sort(...this.sortedFields().map((s) => ({ dir: s.dir, field: s.name })));
|
|
591
837
|
//
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
};
|
|
598
|
-
}) ?? [];
|
|
599
|
-
const parentFilterWrapper = {
|
|
600
|
-
field: null,
|
|
601
|
-
logic: 'and',
|
|
602
|
-
operator: null,
|
|
603
|
-
filters: parentFilters,
|
|
604
|
-
};
|
|
838
|
+
this.advanceFilters.filters = this.view().conditions.map((f) => ({
|
|
839
|
+
field: f.name,
|
|
840
|
+
operator: f.operator,
|
|
841
|
+
value: f.value,
|
|
842
|
+
}));
|
|
605
843
|
//
|
|
606
844
|
const inline = this.inlineFilters.filters?.length ?? 0;
|
|
607
|
-
const
|
|
608
|
-
|
|
609
|
-
debugger;
|
|
610
|
-
if (inline) {
|
|
845
|
+
const advance = this.advanceFilters.filters?.length ?? 0;
|
|
846
|
+
if (inline && !advance) {
|
|
611
847
|
this.dataSource.filter(this.filterOperatorMiddleware.transformFilter(this.inlineFilters));
|
|
612
848
|
}
|
|
613
|
-
else if (!inline &&
|
|
614
|
-
this.dataSource.filter(this.filterOperatorMiddleware.transformFilter(
|
|
849
|
+
else if (!inline && advance) {
|
|
850
|
+
this.dataSource.filter(this.filterOperatorMiddleware.transformFilter(this.advanceFilters));
|
|
615
851
|
}
|
|
616
|
-
else if (inline &&
|
|
852
|
+
else if (inline && advance) {
|
|
617
853
|
this.dataSource.filter(this.filterOperatorMiddleware.transformFilter({
|
|
618
854
|
field: null,
|
|
619
855
|
logic: 'and',
|
|
620
856
|
operator: null,
|
|
621
|
-
filters: [this.inlineFilters,
|
|
857
|
+
filters: [this.inlineFilters, this.advanceFilters],
|
|
622
858
|
}));
|
|
623
859
|
}
|
|
624
860
|
//
|
|
625
861
|
this.dataSource.refresh();
|
|
626
862
|
}
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
data = {};
|
|
637
|
-
}
|
|
638
|
-
let relatedColumn = null;
|
|
639
|
-
this.detailEntityConfig.conditions?.forEach((condition) => {
|
|
640
|
-
if (condition.value == 'id') {
|
|
641
|
-
relatedColumn = condition.name;
|
|
642
|
-
}
|
|
863
|
+
resetColumns() {
|
|
864
|
+
this.applyViewColumns();
|
|
865
|
+
}
|
|
866
|
+
async onColumnsChanged(columns) {
|
|
867
|
+
const listViewSetting = await this.settings.get(this.settingListViewKey);
|
|
868
|
+
if (this.settingListViewKey) {
|
|
869
|
+
this.settings.set(this.settingListViewKey, {
|
|
870
|
+
...listViewSetting,
|
|
871
|
+
columns: columns.map((c) => ({ name: c.name, visible: c.visible })),
|
|
643
872
|
});
|
|
644
|
-
if (relatedColumn != null) {
|
|
645
|
-
data[relatedColumn] = this.parent.data['id'];
|
|
646
|
-
}
|
|
647
873
|
}
|
|
874
|
+
}
|
|
875
|
+
applyViewColumns() {
|
|
876
|
+
const cols = this.view().columns;
|
|
877
|
+
const cloned = this.allAvailableColumns().map((c) => {
|
|
878
|
+
const column = this.entityDef.columns?.find((cc) => cc.name == c.name);
|
|
879
|
+
const prop = this.entityDef.properties.find((p) => p.name == c.name);
|
|
880
|
+
const col = new AXPEntityListViewColumnViewModel(prop, column);
|
|
881
|
+
col.visible = !cols.some((c) => c == col.name) && col.visible != false;
|
|
882
|
+
return col;
|
|
883
|
+
});
|
|
884
|
+
this.columns.set(cloned);
|
|
885
|
+
}
|
|
886
|
+
resetSorts() {
|
|
887
|
+
this.applyViewSorts();
|
|
888
|
+
}
|
|
889
|
+
applySorts() {
|
|
890
|
+
this.applyFilterAndSort();
|
|
891
|
+
}
|
|
892
|
+
addSort() {
|
|
893
|
+
const prop = this.sortableFields().find((c) => !this.sortedFields().some((s) => s.name == c.name));
|
|
894
|
+
if (prop) {
|
|
895
|
+
this.sortedFields.set([...this.sortedFields(), ...[prop]]);
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
removeSort(name) {
|
|
899
|
+
this.sortedFields.set(this.sortedFields().filter((c) => c.name != name));
|
|
900
|
+
}
|
|
901
|
+
applyViewSorts() {
|
|
902
|
+
const viewSorts = this.view().sorts;
|
|
903
|
+
this.sortedFields.update((prev) => {
|
|
904
|
+
const viewSortsMap = new Map(viewSorts.map((vs) => [vs.name, vs]));
|
|
905
|
+
return prev.map((sf) => {
|
|
906
|
+
const updatedSort = viewSortsMap.get(sf.name);
|
|
907
|
+
if (updatedSort) {
|
|
908
|
+
return { ...updatedSort, title: sf.title };
|
|
909
|
+
}
|
|
910
|
+
return sf;
|
|
911
|
+
});
|
|
912
|
+
});
|
|
913
|
+
}
|
|
914
|
+
//****************** Commands ******************//
|
|
915
|
+
async executeCommand(commandName, data = null) {
|
|
916
|
+
const action = this.allActions().find((c) => c.name == commandName &&
|
|
917
|
+
((this.selectedItems().length
|
|
918
|
+
? c.scope == AXPEntityCommandScope.Selected
|
|
919
|
+
: c.scope == AXPEntityCommandScope.Individual) ||
|
|
920
|
+
c.scope == AXPEntityCommandScope.TypeLevel));
|
|
648
921
|
await this.workflow.execute(commandName, {
|
|
649
|
-
entity: getEntityInfo(this.
|
|
922
|
+
entity: getEntityInfo(this.entityDef).source,
|
|
650
923
|
data: action?.scope == AXPEntityCommandScope.Selected ? this.selectedItems() : data,
|
|
651
924
|
});
|
|
652
925
|
}
|
|
926
|
+
//
|
|
927
|
+
destroy() {
|
|
928
|
+
this.destroyed.next();
|
|
929
|
+
this.destroyed.complete();
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
class AXPEntityListViewModelFactory {
|
|
933
|
+
constructor() {
|
|
934
|
+
this.entityService = inject(AXPEntityDefinitionRegistryService);
|
|
935
|
+
this.layout = inject(AXPLayoutThemeService);
|
|
936
|
+
this.injector = inject(Injector);
|
|
937
|
+
}
|
|
938
|
+
async create(moduleName, entityName) {
|
|
939
|
+
this.layout.setNavigationLoading(true);
|
|
940
|
+
const config = await this.entityService.resolve(moduleName, entityName);
|
|
941
|
+
this.layout.setNavigationLoading(false);
|
|
942
|
+
return new AXPEntityMasterListViewModel(this.injector, config);
|
|
943
|
+
}
|
|
944
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPEntityListViewModelFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
945
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPEntityListViewModelFactory, providedIn: 'root' }); }
|
|
946
|
+
}
|
|
947
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPEntityListViewModelFactory, decorators: [{
|
|
948
|
+
type: Injectable,
|
|
949
|
+
args: [{ providedIn: 'root' }]
|
|
950
|
+
}] });
|
|
951
|
+
const AXPEntityListViewModelResolver = (route, state, service = inject(AXPEntityListViewModelFactory)) => {
|
|
952
|
+
const moduleName = route.parent?.paramMap.get('module');
|
|
953
|
+
const entityName = route.paramMap.get('entity');
|
|
954
|
+
//
|
|
955
|
+
return service.create(moduleName, entityName);
|
|
956
|
+
};
|
|
957
|
+
|
|
958
|
+
class AXPEntityMasterUpdateElementViewModel {
|
|
959
|
+
constructor(entity, property) {
|
|
960
|
+
this.entity = entity;
|
|
961
|
+
this.property = property;
|
|
962
|
+
this.name = signal(this.property.name);
|
|
963
|
+
this.title = signal(this.property.title);
|
|
964
|
+
this.description = signal(this.property.description);
|
|
965
|
+
this.editable = computed(() => {
|
|
966
|
+
return !(this.property.schema.readonly ?? false);
|
|
967
|
+
});
|
|
968
|
+
this.isRequired = computed(() => {
|
|
969
|
+
return this.property.validations?.some(c => c.rule == 'required') || false;
|
|
970
|
+
});
|
|
971
|
+
this.layout = computed(() => {
|
|
972
|
+
const updateProp = this.entity.interfaces?.master?.update?.properties?.find(c => c.name == this.property.name);
|
|
973
|
+
const source = cloneDeep(updateProp?.layout ?? {});
|
|
974
|
+
set(source, "positions.default.colSpan", 12);
|
|
975
|
+
return source;
|
|
976
|
+
});
|
|
977
|
+
this.node = computed(() => {
|
|
978
|
+
const schema = this.property.schema;
|
|
979
|
+
const widget = schema.interface;
|
|
980
|
+
return {
|
|
981
|
+
type: widget.type,
|
|
982
|
+
mode: this.editable() ? 'edit' : 'view',
|
|
983
|
+
path: this.name(),
|
|
984
|
+
children: widget.children,
|
|
985
|
+
formula: widget.formula,
|
|
986
|
+
triggers: widget.triggers,
|
|
987
|
+
options: merge(schema.interface?.options,
|
|
988
|
+
//this.property.options?.create?.widget,
|
|
989
|
+
{ validationRules: this.property.validations })
|
|
990
|
+
};
|
|
991
|
+
});
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
class AXPEntityMasterUpdateViewModel {
|
|
995
|
+
constructor(injector, config, entityData, props) {
|
|
996
|
+
this.injector = injector;
|
|
997
|
+
this.config = config;
|
|
998
|
+
this.entityData = entityData;
|
|
999
|
+
this.props = props;
|
|
1000
|
+
this.entityDef = cloneDeep(this.config);
|
|
1001
|
+
this.workflow = this.injector.get(AXPWorkflowService);
|
|
1002
|
+
this.isInProgress = signal(false);
|
|
1003
|
+
this.context = signal(cloneDeep(this.entityData));
|
|
1004
|
+
this.elements = computed(() => {
|
|
1005
|
+
const props = this.entityDef.properties.filter(c => this.props.includes(c.name) &&
|
|
1006
|
+
c.schema.hidden != true);
|
|
1007
|
+
return props.map(e => {
|
|
1008
|
+
return new AXPEntityMasterUpdateElementViewModel(this.entityDef, e);
|
|
1009
|
+
});
|
|
1010
|
+
});
|
|
1011
|
+
}
|
|
1012
|
+
async save() {
|
|
1013
|
+
this.isInProgress.set(true);
|
|
1014
|
+
try {
|
|
1015
|
+
const com = this.entityDef.commands?.update;
|
|
1016
|
+
if (com) {
|
|
1017
|
+
const exec = com.execute;
|
|
1018
|
+
return await exec(this.context());
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1021
|
+
finally {
|
|
1022
|
+
this.isInProgress.set(false);
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
1025
|
+
reset() {
|
|
1026
|
+
this.context.set(cloneDeep(this.entityData));
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
class AXPEntityMasterUpdateViewModelFactory {
|
|
1030
|
+
constructor() {
|
|
1031
|
+
this.entityService = inject(AXPEntityDefinitionRegistryService);
|
|
1032
|
+
this.layout = inject(AXPLayoutThemeService);
|
|
1033
|
+
this.injector = inject(Injector);
|
|
1034
|
+
}
|
|
1035
|
+
async create(moduleName, entityName, id, props) {
|
|
1036
|
+
const config = await this.entityService.resolve(moduleName, entityName);
|
|
1037
|
+
this.layout.setNavigationLoading(true);
|
|
1038
|
+
if (config.queries.byKey) {
|
|
1039
|
+
const func = config.queries.byKey.execute;
|
|
1040
|
+
const data = await func(id);
|
|
1041
|
+
this.layout.setNavigationLoading(false);
|
|
1042
|
+
return new AXPEntityMasterUpdateViewModel(this.injector, config, data, props);
|
|
1043
|
+
}
|
|
1044
|
+
this.layout.setNavigationLoading(false);
|
|
1045
|
+
return Promise.reject('cannot fetch ');
|
|
1046
|
+
}
|
|
1047
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPEntityMasterUpdateViewModelFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1048
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPEntityMasterUpdateViewModelFactory, providedIn: 'root' }); }
|
|
1049
|
+
}
|
|
1050
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPEntityMasterUpdateViewModelFactory, decorators: [{
|
|
1051
|
+
type: Injectable,
|
|
1052
|
+
args: [{ providedIn: 'root' }]
|
|
1053
|
+
}] });
|
|
1054
|
+
|
|
1055
|
+
const AXPEntityModifyEvent = createWorkFlowEvent('[Entity] Modified');
|
|
1056
|
+
class AXPEntityModifySectionPopupAction extends AXPWorkflowAction {
|
|
1057
|
+
constructor() {
|
|
1058
|
+
super(...arguments);
|
|
1059
|
+
this.popupService = inject(AXPopupService);
|
|
1060
|
+
this.platform = inject(AXPlatform);
|
|
1061
|
+
this.translateService = inject(AXTranslationService);
|
|
1062
|
+
this.entityRegistery = inject(AXPEntityDefinitionRegistryService);
|
|
1063
|
+
this.config = inject(AXP_ENTITY_CONFIG_TOKEN);
|
|
1064
|
+
this.factory = inject(AXPEntityMasterUpdateViewModelFactory);
|
|
1065
|
+
}
|
|
1066
|
+
async execute(context) {
|
|
1067
|
+
const [moduleName, entityName] = context.getVariable('entity').split('.');
|
|
1068
|
+
const { properties, id, title } = context.getVariable('data');
|
|
1069
|
+
const entityRef = await this.entityRegistery.resolve(moduleName, entityName);
|
|
1070
|
+
const vm = await this.factory.create(moduleName, entityName, id, properties);
|
|
1071
|
+
const com = await this.config.viewers.master.modify();
|
|
1072
|
+
const popup = await this.popupService.open(com, {
|
|
1073
|
+
title: title ?? `${this.translateService.translateSync('entity.modify')} ${this.translateService.translateSync(entityRef.formats.individual)}`,
|
|
1074
|
+
size: this.platform.is('Mobile') || this.platform.is('SM') ? 'full' : 'md',
|
|
1075
|
+
data: {
|
|
1076
|
+
vm,
|
|
1077
|
+
properties,
|
|
1078
|
+
entity: entityRef,
|
|
1079
|
+
},
|
|
1080
|
+
});
|
|
1081
|
+
context.setOutput('result', false);
|
|
1082
|
+
if (popup.data?.result == true) {
|
|
1083
|
+
context.setOutput('result', true);
|
|
1084
|
+
context.setVariable('data', cloneDeep(popup.data.context));
|
|
1085
|
+
}
|
|
1086
|
+
}
|
|
1087
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPEntityModifySectionPopupAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1088
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPEntityModifySectionPopupAction }); }
|
|
1089
|
+
}
|
|
1090
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPEntityModifySectionPopupAction, decorators: [{
|
|
1091
|
+
type: Injectable
|
|
1092
|
+
}] });
|
|
1093
|
+
class AXPEntityModifyConfirmedAction extends AXPWorkflowAction {
|
|
1094
|
+
async execute(context) {
|
|
1095
|
+
const updatedData = context.getVariable('data');
|
|
1096
|
+
this.dispatch(AXPEntityModifyEvent({ entity: context.getVariable('entity'), values: updatedData }));
|
|
1097
|
+
}
|
|
1098
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPEntityModifyConfirmedAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1099
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPEntityModifyConfirmedAction }); }
|
|
653
1100
|
}
|
|
1101
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPEntityModifyConfirmedAction, decorators: [{
|
|
1102
|
+
type: Injectable
|
|
1103
|
+
}] });
|
|
1104
|
+
const AXPModifyEntitySectionWorkflow = {
|
|
1105
|
+
startStepId: 'modifyPopup',
|
|
1106
|
+
steps: {
|
|
1107
|
+
modifyPopup: {
|
|
1108
|
+
id: 'modifyPopup',
|
|
1109
|
+
action: 'AXPEntityModifySectionPopupAction',
|
|
1110
|
+
nextSteps: [
|
|
1111
|
+
{
|
|
1112
|
+
conditions: [{ type: 'SINGLE', expression: 'context.getOutput("result") == true' }],
|
|
1113
|
+
nextStepId: 'successToast',
|
|
1114
|
+
},
|
|
1115
|
+
],
|
|
1116
|
+
},
|
|
1117
|
+
successToast: {
|
|
1118
|
+
id: 'successToast',
|
|
1119
|
+
action: 'AXPToastAction',
|
|
1120
|
+
input: {
|
|
1121
|
+
color: 'success',
|
|
1122
|
+
title: 'workflow.entity-modified-title',
|
|
1123
|
+
content: 'workflow.entity-modified-body',
|
|
1124
|
+
},
|
|
1125
|
+
nextSteps: [
|
|
1126
|
+
{
|
|
1127
|
+
conditions: [],
|
|
1128
|
+
nextStepId: 'modifyConfirmed',
|
|
1129
|
+
},
|
|
1130
|
+
],
|
|
1131
|
+
},
|
|
1132
|
+
modifyConfirmed: {
|
|
1133
|
+
id: 'modifyConfirmed',
|
|
1134
|
+
action: 'AXPEntityModifyConfirmedAction',
|
|
1135
|
+
},
|
|
1136
|
+
},
|
|
1137
|
+
};
|
|
654
1138
|
|
|
655
1139
|
class AXPEntityMasterSingleViewGroupViewModel {
|
|
656
1140
|
constructor(entity, section) {
|
|
@@ -768,548 +1252,100 @@ class AXPEntityMasterSingleViewModel {
|
|
|
768
1252
|
icon: "fa-solid fa-home ax-text-xs ax-me-2",
|
|
769
1253
|
url: [`/${this.session.application?.name}`]
|
|
770
1254
|
},
|
|
771
|
-
{
|
|
772
|
-
title: this.entityDef.formats.plural ?? this.entityDef.formats.individual,
|
|
773
|
-
url: [`/${this.session.application?.name}`, 'm', `${this.entityDef.module}`, 'e', `${this.entityDef.name}`, 'list']
|
|
774
|
-
},
|
|
775
|
-
{
|
|
776
|
-
title: this.title(),
|
|
777
|
-
}
|
|
778
|
-
];
|
|
779
|
-
});
|
|
780
|
-
this.relatedEntities = computed(() => {
|
|
781
|
-
return this.entityDef.relatedEntities?.map(re => new AXPEntityDetailListViewModel(this.injector, re, { entity: this.entityDef, data: this.entityData })) ?? [];
|
|
782
|
-
});
|
|
783
|
-
this.workflow.events$
|
|
784
|
-
.pipe(ofType(AXPEntityDeletedEvent))
|
|
785
|
-
.pipe(takeUntil(this.destroyed))
|
|
786
|
-
.subscribe((event) => {
|
|
787
|
-
if (event.payload.entity == getEntityInfo(this.entityDef).source &&
|
|
788
|
-
event.payload.ids.includes(this.context().id)) {
|
|
789
|
-
this.workflow.execute('show-list-view', {
|
|
790
|
-
entity: getEntityInfo(this.entityDef).source
|
|
791
|
-
});
|
|
792
|
-
}
|
|
793
|
-
});
|
|
794
|
-
this.workflow.events$
|
|
795
|
-
.pipe(ofType(AXPEntityModifyEvent))
|
|
796
|
-
.pipe(takeUntil(this.destroyed))
|
|
797
|
-
.subscribe(async (event) => {
|
|
798
|
-
if (event.payload.entity == getEntityInfo(this.entityDef).source &&
|
|
799
|
-
event.payload.values.id === this.context().id) {
|
|
800
|
-
this.context.set(event.payload.values);
|
|
801
|
-
}
|
|
802
|
-
});
|
|
803
|
-
}
|
|
804
|
-
async executeCommand(commandName, data = null) {
|
|
805
|
-
//TODO: syntact for workflow
|
|
806
|
-
switch (commandName) {
|
|
807
|
-
case 'modify-entity-section': {
|
|
808
|
-
this.workflow.execute('modify-entity-section', {
|
|
809
|
-
entity: getEntityInfo(this.entityDef).source,
|
|
810
|
-
data: {
|
|
811
|
-
id: this.context().id,
|
|
812
|
-
properties: data.editableProps().map(m => m.name()),
|
|
813
|
-
},
|
|
814
|
-
});
|
|
815
|
-
break;
|
|
816
|
-
}
|
|
817
|
-
default:
|
|
818
|
-
{
|
|
819
|
-
const action = this.actions().find(c => c.name == commandName);
|
|
820
|
-
this.workflow.execute(commandName, {
|
|
821
|
-
entity: getEntityInfo(this.entityDef).source,
|
|
822
|
-
data: action?.scope == AXPEntityCommandScope.Individual ? this.context() : null
|
|
823
|
-
});
|
|
824
|
-
}
|
|
825
|
-
}
|
|
826
|
-
}
|
|
827
|
-
//
|
|
828
|
-
//
|
|
829
|
-
destroy() {
|
|
830
|
-
this.destroyed.next();
|
|
831
|
-
this.destroyed.complete();
|
|
832
|
-
}
|
|
833
|
-
}
|
|
834
|
-
class AXPEntityDetailViewModelFactory {
|
|
835
|
-
constructor() {
|
|
836
|
-
this.entityService = inject(AXPEntityDefinitionRegistryService);
|
|
837
|
-
this.layout = inject(AXPLayoutThemeService);
|
|
838
|
-
this.injector = inject(Injector);
|
|
839
|
-
}
|
|
840
|
-
async create(moduleName, entityName, id) {
|
|
841
|
-
const config = await this.entityService.resolve(moduleName, entityName);
|
|
842
|
-
this.layout.setNavigationLoading(true);
|
|
843
|
-
if (config.queries.byKey) {
|
|
844
|
-
const func = config.queries.byKey.execute;
|
|
845
|
-
const data = await func(id);
|
|
846
|
-
this.layout.setNavigationLoading(false);
|
|
847
|
-
return new AXPEntityMasterSingleViewModel(this.injector, config, data);
|
|
848
|
-
}
|
|
849
|
-
this.layout.setNavigationLoading(false);
|
|
850
|
-
return Promise.reject('cannot fetch ');
|
|
851
|
-
}
|
|
852
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPEntityDetailViewModelFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
853
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPEntityDetailViewModelFactory, providedIn: 'root' }); }
|
|
854
|
-
}
|
|
855
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPEntityDetailViewModelFactory, decorators: [{
|
|
856
|
-
type: Injectable,
|
|
857
|
-
args: [{ providedIn: 'root' }]
|
|
858
|
-
}] });
|
|
859
|
-
const AXPEntityDetailViewModelResolver = (route, state, service = inject(AXPEntityDetailViewModelFactory)) => {
|
|
860
|
-
const moduleName = route.parent?.paramMap.get('module');
|
|
861
|
-
const entityName = route.paramMap.get('entity');
|
|
862
|
-
const id = route.paramMap.get('id');
|
|
863
|
-
//
|
|
864
|
-
return service.create(moduleName, entityName, id);
|
|
865
|
-
};
|
|
866
|
-
|
|
867
|
-
class AXPEntityCreateViewSectionViewModel {
|
|
868
|
-
constructor(entity, section) {
|
|
869
|
-
this.entity = entity;
|
|
870
|
-
this.section = section;
|
|
871
|
-
this.group = this.entity.groups?.find(c => c.id == this.section.id);
|
|
872
|
-
this.name = signal(this.group.id);
|
|
873
|
-
this.title = computed(() => {
|
|
874
|
-
return this.group.title ?? this.group.id;
|
|
875
|
-
});
|
|
876
|
-
this.description = computed(() => {
|
|
877
|
-
return this.group.description;
|
|
878
|
-
;
|
|
879
|
-
});
|
|
880
|
-
this.layout = computed(() => {
|
|
881
|
-
const source = cloneDeep(this.section.layout ?? {});
|
|
882
|
-
set(source, "positions.default.colSpan", 12);
|
|
883
|
-
return source;
|
|
884
|
-
});
|
|
885
|
-
this.elements = computed(() => {
|
|
886
|
-
const { interfaces, properties } = this.entity;
|
|
887
|
-
const createProps = interfaces?.master?.create?.properties ?? [];
|
|
888
|
-
const createPropNames = new Set(createProps.map(({ name }) => name));
|
|
889
|
-
const filteredProperties = properties.filter(({ groupId, schema, name }) => groupId === this.group.id &&
|
|
890
|
-
!schema.hidden &&
|
|
891
|
-
createPropNames.has(name));
|
|
892
|
-
return filteredProperties.map(property => {
|
|
893
|
-
const createProp = createProps.find(({ name }) => name === property.name);
|
|
894
|
-
return new AXPEntityCreateViewElementViewModel(this.entity, this, property, createProp);
|
|
895
|
-
});
|
|
896
|
-
});
|
|
897
|
-
}
|
|
898
|
-
}
|
|
899
|
-
class AXPEntityCreateViewElementViewModel {
|
|
900
|
-
constructor(entity, section, property, createProp) {
|
|
901
|
-
this.entity = entity;
|
|
902
|
-
this.section = section;
|
|
903
|
-
this.property = property;
|
|
904
|
-
this.createProp = createProp;
|
|
905
|
-
this.name = signal(this.property.name);
|
|
906
|
-
this.title = signal(this.property.title);
|
|
907
|
-
this.description = signal(this.property.description);
|
|
908
|
-
this.editable = computed(() => {
|
|
909
|
-
return !(this.property.schema.readonly ?? false);
|
|
910
|
-
});
|
|
911
|
-
this.isRequired = computed(() => {
|
|
912
|
-
return this.property.validations?.some(c => c.rule == 'required') || false;
|
|
913
|
-
});
|
|
914
|
-
this.layout = computed(() => {
|
|
915
|
-
const source = cloneDeep(this.createProp.layout ?? {});
|
|
916
|
-
set(source, "positions.default.colSpan", 12);
|
|
917
|
-
return source;
|
|
918
|
-
});
|
|
919
|
-
this.node = computed(() => {
|
|
920
|
-
const schema = this.property.schema;
|
|
921
|
-
const widget = schema.interface;
|
|
922
|
-
return {
|
|
923
|
-
type: widget.type,
|
|
924
|
-
mode: this.editable() ? 'edit' : 'view',
|
|
925
|
-
path: this.name(),
|
|
926
|
-
children: widget.children,
|
|
927
|
-
formula: widget.formula,
|
|
928
|
-
triggers: widget.triggers,
|
|
929
|
-
options: merge(schema.interface?.options,
|
|
930
|
-
//this.property.options?.create?.widget,
|
|
931
|
-
{ validationRules: this.property.validations })
|
|
932
|
-
};
|
|
933
|
-
});
|
|
934
|
-
}
|
|
935
|
-
}
|
|
936
|
-
class AXPEntityMasterCreateViewModel {
|
|
937
|
-
constructor(injector, config, initialData = {}) {
|
|
938
|
-
this.injector = injector;
|
|
939
|
-
this.config = config;
|
|
940
|
-
this.initialData = initialData;
|
|
941
|
-
this.entityDef = cloneDeep(this.config);
|
|
942
|
-
this.workflow = this.injector.get(AXPWorkflowService);
|
|
943
|
-
this.context = signal(this.initialData ?? {});
|
|
944
|
-
this.isInProgress = signal(false);
|
|
945
|
-
this.sections = computed(() => {
|
|
946
|
-
const { interfaces, properties } = this.entityDef;
|
|
947
|
-
const createProps = interfaces?.master?.create?.properties?.map(({ name }) => name) ?? [];
|
|
948
|
-
const visibleProperties = properties.filter(({ groupId, schema, name }) => groupId && !schema.hidden && createProps.includes(name));
|
|
949
|
-
const sections = interfaces?.master?.create?.sections?.filter(({ id }) => visibleProperties.some(({ groupId }) => groupId === id)) ?? [];
|
|
950
|
-
return sections.map(section => new AXPEntityCreateViewSectionViewModel(this.entityDef, section));
|
|
951
|
-
});
|
|
952
|
-
if (!initialData)
|
|
953
|
-
initialData = {};
|
|
954
|
-
this.config.properties
|
|
955
|
-
.filter(c => c.schema.defaultValue != null)
|
|
956
|
-
.forEach(p => {
|
|
957
|
-
if (typeof p.schema.defaultValue === 'function') {
|
|
958
|
-
const func = p.schema.defaultValue;
|
|
959
|
-
set(initialData, p.name, func(initialData));
|
|
960
|
-
}
|
|
961
|
-
else {
|
|
962
|
-
set(initialData, p.name, p.schema.defaultValue);
|
|
963
|
-
}
|
|
964
|
-
});
|
|
965
|
-
this.context.set(initialData);
|
|
966
|
-
}
|
|
967
|
-
async save() {
|
|
968
|
-
try {
|
|
969
|
-
this.isInProgress.set(true);
|
|
970
|
-
const exec = this.entityDef.commands?.create?.execute;
|
|
971
|
-
return await exec((this.context()));
|
|
972
|
-
}
|
|
973
|
-
finally {
|
|
974
|
-
this.isInProgress.set(false);
|
|
975
|
-
}
|
|
976
|
-
}
|
|
977
|
-
async createNewOne() {
|
|
978
|
-
await this.workflow.execute('create-entity', {
|
|
979
|
-
entity: getEntityInfo(this.entityDef).source
|
|
980
|
-
});
|
|
981
|
-
}
|
|
982
|
-
}
|
|
983
|
-
class AXPEntityCreateViewModelFactory {
|
|
984
|
-
constructor() {
|
|
985
|
-
this.entityService = inject(AXPEntityDefinitionRegistryService);
|
|
986
|
-
this.layout = inject(AXPLayoutThemeService);
|
|
987
|
-
this.injector = inject(Injector);
|
|
988
|
-
}
|
|
989
|
-
async create(moduleName, entityName, initialData = null) {
|
|
990
|
-
this.layout.setNavigationLoading(true);
|
|
991
|
-
const config = await this.entityService.resolve(moduleName, entityName);
|
|
992
|
-
this.layout.setNavigationLoading(false);
|
|
993
|
-
return new AXPEntityMasterCreateViewModel(this.injector, config, initialData);
|
|
994
|
-
}
|
|
995
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPEntityCreateViewModelFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
996
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPEntityCreateViewModelFactory, providedIn: 'root' }); }
|
|
997
|
-
}
|
|
998
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPEntityCreateViewModelFactory, decorators: [{
|
|
999
|
-
type: Injectable,
|
|
1000
|
-
args: [{ providedIn: 'root' }]
|
|
1001
|
-
}] });
|
|
1002
|
-
|
|
1003
|
-
class AXPEntityMasterListViewQueryViewModel {
|
|
1004
|
-
constructor(entity, section, view) {
|
|
1005
|
-
this.entity = entity;
|
|
1006
|
-
this.section = section;
|
|
1007
|
-
this.view = view;
|
|
1008
|
-
this.name = this.view.name;
|
|
1009
|
-
this.title = this.view.title;
|
|
1010
|
-
this.sorts = this.view.sorts;
|
|
1011
|
-
this.columns = this.view.columns;
|
|
1012
|
-
this.conditions = this.view.conditions;
|
|
1013
|
-
}
|
|
1014
|
-
}
|
|
1015
|
-
class AXPEntityMasterListViewModel {
|
|
1016
|
-
constructor(injector, config) {
|
|
1017
|
-
this.injector = injector;
|
|
1018
|
-
this.config = config;
|
|
1019
|
-
this.entityDef = cloneDeep(this.config);
|
|
1020
|
-
this._viewDef = cloneDeep(this.entityDef.interfaces?.master?.list);
|
|
1021
|
-
this.formatService = this.injector.get(AXFormatService);
|
|
1022
|
-
this.session = this.injector.get(AXPSessionService);
|
|
1023
|
-
this.workflow = this.injector.get(AXPWorkflowService);
|
|
1024
|
-
this.filterOperatorMiddleware = this.injector.get(AXPFilterOperatorMiddlewareService);
|
|
1025
|
-
this.destroyed = new Subject();
|
|
1026
|
-
this.events$ = new Subject();
|
|
1027
|
-
this.dataSource = new AXDataSource({
|
|
1028
|
-
byKey: (key) => {
|
|
1029
|
-
const func = this.entityDef.queries.byKey.execute;
|
|
1030
|
-
return func();
|
|
1031
|
-
},
|
|
1032
|
-
load: (e) => {
|
|
1033
|
-
const func = this.entityDef.queries.list?.execute;
|
|
1034
|
-
return func(e);
|
|
1035
|
-
},
|
|
1036
|
-
pageSize: 10,
|
|
1037
|
-
key: 'id',
|
|
1038
|
-
});
|
|
1039
|
-
this.selectedItems = signal([]);
|
|
1040
|
-
this.hasSelectedItems = computed(() => {
|
|
1041
|
-
return this.selectedItems().length > 0;
|
|
1042
|
-
});
|
|
1043
|
-
//****************** Title ******************//
|
|
1044
|
-
this.title = computed(() => {
|
|
1045
|
-
return this._viewDef.title ?? this.entityDef.formats.plural;
|
|
1046
|
-
});
|
|
1047
|
-
//****************** Description ******************//
|
|
1048
|
-
this.description = computed(() => {
|
|
1049
|
-
return this._viewDef.description ?? null;
|
|
1050
|
-
});
|
|
1051
|
-
//****************** Inline filter ******************//
|
|
1052
|
-
this.inlineFiltersPlaceholders = computed(() => {
|
|
1053
|
-
return this.entityDef.properties.filter((p) => p.options?.filter?.inline?.enabled).map((c) => c.title ?? c.name);
|
|
1054
|
-
});
|
|
1055
|
-
this.hasInlineFilters = computed(() => {
|
|
1056
|
-
return this.inlineFiltersPlaceholders().length > 0;
|
|
1057
|
-
});
|
|
1058
|
-
//****************** Beardcrumbs ******************//
|
|
1059
|
-
this.beardcrumbs = computed(() => {
|
|
1060
|
-
return [
|
|
1061
|
-
{
|
|
1062
|
-
title: 'entity.home',
|
|
1063
|
-
icon: 'fa-solid fa-home ax-text-xs ax-me-2',
|
|
1064
|
-
url: [`/${this.session.application?.name}`],
|
|
1065
|
-
},
|
|
1066
|
-
{
|
|
1067
|
-
title: this.title(),
|
|
1068
|
-
url: [
|
|
1069
|
-
`/${this.session.application?.name}`,
|
|
1070
|
-
'm',
|
|
1071
|
-
`${this.entityDef.module}`,
|
|
1072
|
-
'e',
|
|
1073
|
-
`${this.entityDef.name}`,
|
|
1074
|
-
'list',
|
|
1075
|
-
],
|
|
1076
|
-
},
|
|
1255
|
+
{
|
|
1256
|
+
title: this.entityDef.formats.plural ?? this.entityDef.formats.individual,
|
|
1257
|
+
url: [`/${this.session.application?.name}`, 'm', `${this.entityDef.module}`, 'e', `${this.entityDef.name}`, 'list']
|
|
1258
|
+
},
|
|
1259
|
+
{
|
|
1260
|
+
title: this.title(),
|
|
1261
|
+
}
|
|
1077
1262
|
];
|
|
1078
1263
|
});
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
const list = this.entityDef.interfaces?.master?.list?.actions ?? [];
|
|
1082
|
-
return list.map((tr) => new AXPEntityCommandTriggerViewModel(this.entityDef, tr)) ?? [];
|
|
1083
|
-
});
|
|
1084
|
-
this.primaryActions = computed(() => {
|
|
1085
|
-
return this.allActions().filter((a) => a.priority == 'primary' &&
|
|
1086
|
-
((a.scope == AXPEntityCommandScope.Selected && this.hasSelectedItems()) ||
|
|
1087
|
-
(a.scope == AXPEntityCommandScope.TypeLevel && !this.hasSelectedItems())));
|
|
1088
|
-
});
|
|
1089
|
-
this.secondaryActions = computed(() => {
|
|
1090
|
-
return this.allActions().filter((a) => a.priority == 'secondary' &&
|
|
1091
|
-
((a.scope == AXPEntityCommandScope.Selected && this.hasSelectedItems()) ||
|
|
1092
|
-
(a.scope == AXPEntityCommandScope.TypeLevel && !this.hasSelectedItems())));
|
|
1093
|
-
});
|
|
1094
|
-
this.primaryRowActions = computed(() => this.allActions().filter((a) => a.scope == AXPEntityCommandScope.Individual && a.priority === 'primary'));
|
|
1095
|
-
this.secondaryRowActions = computed(() => this.allActions().filter((a) => a.scope == AXPEntityCommandScope.Individual && a.priority === 'secondary'));
|
|
1096
|
-
//****************** Filter ******************//
|
|
1097
|
-
this.inlineFilters = {
|
|
1098
|
-
field: null,
|
|
1099
|
-
logic: 'or',
|
|
1100
|
-
operator: null,
|
|
1101
|
-
filters: [],
|
|
1102
|
-
};
|
|
1103
|
-
this.advanceFilters = {
|
|
1104
|
-
field: null,
|
|
1105
|
-
logic: 'and',
|
|
1106
|
-
operator: null,
|
|
1107
|
-
filters: [],
|
|
1108
|
-
};
|
|
1109
|
-
//****************** Columns ******************//
|
|
1110
|
-
this.allAvailableColumns = () => {
|
|
1111
|
-
const { columns = [], properties } = this.entityDef;
|
|
1112
|
-
const visibleProperties = properties.filter(({ schema }) => !schema?.hidden);
|
|
1113
|
-
const visiblePropNames = new Set(visibleProperties.map(({ name }) => name));
|
|
1114
|
-
return columns
|
|
1115
|
-
.filter(({ name }) => visiblePropNames.has(name))
|
|
1116
|
-
.map((column) => {
|
|
1117
|
-
const property = visibleProperties.find(({ name }) => name === column.name);
|
|
1118
|
-
return new AXPEntityListViewColumnViewModel(property, column);
|
|
1119
|
-
});
|
|
1120
|
-
};
|
|
1121
|
-
this.visibleColumnCount = () => {
|
|
1122
|
-
return this.columns().filter((c) => c.visible == true).length;
|
|
1123
|
-
};
|
|
1124
|
-
this.columns = signal([]);
|
|
1125
|
-
//****************** Sort ******************//
|
|
1126
|
-
this.sortableFields = () => {
|
|
1127
|
-
const props = this.entityDef.properties.filter((c) => c.options?.sort?.enabled);
|
|
1128
|
-
return props.map((e) => {
|
|
1129
|
-
return {
|
|
1130
|
-
name: e.name,
|
|
1131
|
-
title: e.title,
|
|
1132
|
-
dir: undefined,
|
|
1133
|
-
};
|
|
1134
|
-
});
|
|
1135
|
-
};
|
|
1136
|
-
this.sortableFieldsCount = () => {
|
|
1137
|
-
return this.entityDef.properties.filter((c) => c.options?.sort?.enabled).length ?? 0;
|
|
1138
|
-
};
|
|
1139
|
-
this.canSort = () => {
|
|
1140
|
-
return this.sortableFieldsCount() > 0;
|
|
1141
|
-
};
|
|
1142
|
-
this.canAddMoreSort = () => {
|
|
1143
|
-
return this.sortedCount() < this.sortableFieldsCount();
|
|
1144
|
-
};
|
|
1145
|
-
this.sortedCount = () => {
|
|
1146
|
-
return this.sortedFields().filter((i) => i.dir).length;
|
|
1147
|
-
};
|
|
1148
|
-
this.sortedFields = signal([]);
|
|
1149
|
-
this.views = computed(() => {
|
|
1150
|
-
const views = this.entityDef.interfaces?.master?.list?.views ?? [];
|
|
1151
|
-
return views.map((v) => {
|
|
1152
|
-
return new AXPEntityMasterListViewQueryViewModel(this.entityDef, this, v);
|
|
1153
|
-
});
|
|
1264
|
+
this.relatedEntities = computed(() => {
|
|
1265
|
+
return this.entityDef.relatedEntities?.map(re => new AXPEntityDetailListViewModel(this.injector, re, { entity: this.entityDef, data: this.entityData })) ?? [];
|
|
1154
1266
|
});
|
|
1155
|
-
this.view = signal(this.views()[0]);
|
|
1156
1267
|
this.workflow.events$
|
|
1157
1268
|
.pipe(ofType(AXPEntityDeletedEvent))
|
|
1158
1269
|
.pipe(takeUntil(this.destroyed))
|
|
1159
1270
|
.subscribe((event) => {
|
|
1160
|
-
if (event.payload.entity == getEntityInfo(this.entityDef).source
|
|
1161
|
-
|
|
1162
|
-
this.
|
|
1271
|
+
if (event.payload.entity == getEntityInfo(this.entityDef).source &&
|
|
1272
|
+
event.payload.ids.includes(this.context().id)) {
|
|
1273
|
+
this.workflow.execute('show-list-view', {
|
|
1274
|
+
entity: getEntityInfo(this.entityDef).source
|
|
1275
|
+
});
|
|
1276
|
+
}
|
|
1277
|
+
});
|
|
1278
|
+
this.workflow.events$
|
|
1279
|
+
.pipe(ofType(AXPEntityModifyEvent))
|
|
1280
|
+
.pipe(takeUntil(this.destroyed))
|
|
1281
|
+
.subscribe(async (event) => {
|
|
1282
|
+
if (event.payload.entity == getEntityInfo(this.entityDef).source &&
|
|
1283
|
+
event.payload.values.id === this.context().id) {
|
|
1284
|
+
this.context.set(event.payload.values);
|
|
1163
1285
|
}
|
|
1164
1286
|
});
|
|
1165
|
-
console.log(this.sortableFields());
|
|
1166
|
-
this.sortedFields.set(this.sortableFields());
|
|
1167
|
-
}
|
|
1168
|
-
clearSelection() {
|
|
1169
|
-
this.selectedItems.set([]);
|
|
1170
1287
|
}
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1288
|
+
async executeCommand(commandName, data = null) {
|
|
1289
|
+
//TODO: syntact for workflow
|
|
1290
|
+
switch (commandName) {
|
|
1291
|
+
case 'modify-entity-section': {
|
|
1292
|
+
this.workflow.execute('modify-entity-section', {
|
|
1293
|
+
entity: getEntityInfo(this.entityDef).source,
|
|
1294
|
+
data: {
|
|
1295
|
+
id: this.context().id,
|
|
1296
|
+
properties: data.editableProps().map(m => m.name()),
|
|
1180
1297
|
},
|
|
1181
|
-
value,
|
|
1182
1298
|
});
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
this.advanceFilters.filters = this.view().conditions.map((f) => ({
|
|
1193
|
-
field: f.name,
|
|
1194
|
-
operator: f.operator,
|
|
1195
|
-
value: f.value,
|
|
1196
|
-
}));
|
|
1197
|
-
//
|
|
1198
|
-
const inline = this.inlineFilters.filters?.length ?? 0;
|
|
1199
|
-
const advance = this.advanceFilters.filters?.length ?? 0;
|
|
1200
|
-
if (inline && !advance) {
|
|
1201
|
-
this.dataSource.filter(this.filterOperatorMiddleware.transformFilter(this.inlineFilters));
|
|
1202
|
-
}
|
|
1203
|
-
else if (!inline && advance) {
|
|
1204
|
-
this.dataSource.filter(this.filterOperatorMiddleware.transformFilter(this.advanceFilters));
|
|
1205
|
-
}
|
|
1206
|
-
else if (inline && advance) {
|
|
1207
|
-
this.dataSource.filter(this.filterOperatorMiddleware.transformFilter({
|
|
1208
|
-
field: null,
|
|
1209
|
-
logic: 'and',
|
|
1210
|
-
operator: null,
|
|
1211
|
-
filters: [this.inlineFilters, this.advanceFilters],
|
|
1212
|
-
}));
|
|
1213
|
-
}
|
|
1214
|
-
//
|
|
1215
|
-
this.dataSource.refresh();
|
|
1216
|
-
}
|
|
1217
|
-
resetColumns() {
|
|
1218
|
-
this.applyViewColumns();
|
|
1219
|
-
}
|
|
1220
|
-
applyColumns() {
|
|
1221
|
-
//this.columns.set(this.clonedColumns())
|
|
1222
|
-
}
|
|
1223
|
-
applyViewColumns() {
|
|
1224
|
-
const cols = this.view().columns;
|
|
1225
|
-
const cloned = this.allAvailableColumns().map((c) => {
|
|
1226
|
-
const column = this.entityDef.columns?.find((cc) => cc.name == c.name);
|
|
1227
|
-
const prop = this.entityDef.properties.find((p) => p.name == c.name);
|
|
1228
|
-
const col = new AXPEntityListViewColumnViewModel(prop, column);
|
|
1229
|
-
col.visible = !cols.some((c) => c == col.name) && col.visible != false;
|
|
1230
|
-
return col;
|
|
1231
|
-
});
|
|
1232
|
-
this.columns.set(cloned);
|
|
1233
|
-
}
|
|
1234
|
-
resetSorts() {
|
|
1235
|
-
this.applyViewSorts();
|
|
1236
|
-
}
|
|
1237
|
-
applySorts() {
|
|
1238
|
-
this.applyFilterAndSort();
|
|
1239
|
-
}
|
|
1240
|
-
addSort() {
|
|
1241
|
-
const prop = this.sortableFields().find((c) => !this.sortedFields().some((s) => s.name == c.name));
|
|
1242
|
-
if (prop) {
|
|
1243
|
-
this.sortedFields.set([...this.sortedFields(), ...[prop]]);
|
|
1244
|
-
}
|
|
1245
|
-
}
|
|
1246
|
-
removeSort(name) {
|
|
1247
|
-
this.sortedFields.set(this.sortedFields().filter((c) => c.name != name));
|
|
1248
|
-
}
|
|
1249
|
-
applyViewSorts() {
|
|
1250
|
-
const viewSorts = this.view().sorts;
|
|
1251
|
-
this.sortedFields.update((prev) => {
|
|
1252
|
-
const viewSortsMap = new Map(viewSorts.map((vs) => [vs.name, vs]));
|
|
1253
|
-
return prev.map((sf) => {
|
|
1254
|
-
const updatedSort = viewSortsMap.get(sf.name);
|
|
1255
|
-
if (updatedSort) {
|
|
1256
|
-
return { ...updatedSort, title: sf.title };
|
|
1299
|
+
break;
|
|
1300
|
+
}
|
|
1301
|
+
default:
|
|
1302
|
+
{
|
|
1303
|
+
const action = this.actions().find(c => c.name == commandName);
|
|
1304
|
+
this.workflow.execute(commandName, {
|
|
1305
|
+
entity: getEntityInfo(this.entityDef).source,
|
|
1306
|
+
data: action?.scope == AXPEntityCommandScope.Individual ? this.context() : null
|
|
1307
|
+
});
|
|
1257
1308
|
}
|
|
1258
|
-
return sf;
|
|
1259
|
-
});
|
|
1260
|
-
});
|
|
1261
|
-
}
|
|
1262
|
-
//****************** Views ******************//
|
|
1263
|
-
setView(viewName = null) {
|
|
1264
|
-
if (viewName != this.view().name) {
|
|
1265
|
-
this.view.set(this.views().find((c) => c.name == viewName) ?? this.views()[0]);
|
|
1266
|
-
this.applyViewSorts();
|
|
1267
|
-
this.applyViewColumns();
|
|
1268
|
-
this.applyFilterAndSort();
|
|
1269
1309
|
}
|
|
1270
1310
|
}
|
|
1271
|
-
|
|
1272
|
-
async executeCommand(commandName, data = null) {
|
|
1273
|
-
const action = this.allActions().find((c) => c.name == commandName &&
|
|
1274
|
-
((this.selectedItems().length
|
|
1275
|
-
? c.scope == AXPEntityCommandScope.Selected
|
|
1276
|
-
: c.scope == AXPEntityCommandScope.Individual) ||
|
|
1277
|
-
c.scope == AXPEntityCommandScope.TypeLevel));
|
|
1278
|
-
await this.workflow.execute(commandName, {
|
|
1279
|
-
entity: getEntityInfo(this.entityDef).source,
|
|
1280
|
-
data: action?.scope == AXPEntityCommandScope.Selected ? this.selectedItems() : data,
|
|
1281
|
-
});
|
|
1282
|
-
}
|
|
1311
|
+
//
|
|
1283
1312
|
//
|
|
1284
1313
|
destroy() {
|
|
1285
1314
|
this.destroyed.next();
|
|
1286
1315
|
this.destroyed.complete();
|
|
1287
1316
|
}
|
|
1288
1317
|
}
|
|
1289
|
-
class
|
|
1318
|
+
class AXPEntityDetailViewModelFactory {
|
|
1290
1319
|
constructor() {
|
|
1291
1320
|
this.entityService = inject(AXPEntityDefinitionRegistryService);
|
|
1292
1321
|
this.layout = inject(AXPLayoutThemeService);
|
|
1293
1322
|
this.injector = inject(Injector);
|
|
1294
1323
|
}
|
|
1295
|
-
async create(moduleName, entityName) {
|
|
1296
|
-
this.layout.setNavigationLoading(true);
|
|
1324
|
+
async create(moduleName, entityName, id) {
|
|
1297
1325
|
const config = await this.entityService.resolve(moduleName, entityName);
|
|
1326
|
+
this.layout.setNavigationLoading(true);
|
|
1327
|
+
if (config.queries.byKey) {
|
|
1328
|
+
const func = config.queries.byKey.execute;
|
|
1329
|
+
const data = await func(id);
|
|
1330
|
+
this.layout.setNavigationLoading(false);
|
|
1331
|
+
return new AXPEntityMasterSingleViewModel(this.injector, config, data);
|
|
1332
|
+
}
|
|
1298
1333
|
this.layout.setNavigationLoading(false);
|
|
1299
|
-
return
|
|
1334
|
+
return Promise.reject('cannot fetch ');
|
|
1300
1335
|
}
|
|
1301
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1302
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1336
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPEntityDetailViewModelFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1337
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPEntityDetailViewModelFactory, providedIn: 'root' }); }
|
|
1303
1338
|
}
|
|
1304
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1339
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPEntityDetailViewModelFactory, decorators: [{
|
|
1305
1340
|
type: Injectable,
|
|
1306
1341
|
args: [{ providedIn: 'root' }]
|
|
1307
1342
|
}] });
|
|
1308
|
-
const
|
|
1343
|
+
const AXPEntityDetailViewModelResolver = (route, state, service = inject(AXPEntityDetailViewModelFactory)) => {
|
|
1309
1344
|
const moduleName = route.parent?.paramMap.get('module');
|
|
1310
1345
|
const entityName = route.paramMap.get('entity');
|
|
1346
|
+
const id = route.paramMap.get('id');
|
|
1311
1347
|
//
|
|
1312
|
-
return service.create(moduleName, entityName);
|
|
1348
|
+
return service.create(moduleName, entityName, id);
|
|
1313
1349
|
};
|
|
1314
1350
|
|
|
1315
1351
|
class AXPLookupWidgetViewComponent extends AXPWidgetComponent {
|
|
@@ -1330,7 +1366,7 @@ class AXPLookupWidgetViewComponent extends AXPWidgetComponent {
|
|
|
1330
1366
|
this.efEntity = effect(async () => {
|
|
1331
1367
|
const [module, entity] = this.entity().split('.');
|
|
1332
1368
|
this.entityDef.set(await this.entityResolver.get(module, entity));
|
|
1333
|
-
}
|
|
1369
|
+
});
|
|
1334
1370
|
this.efDisplay = effect(async () => {
|
|
1335
1371
|
const value = this.getValue();
|
|
1336
1372
|
if (isNil(value)) {
|
|
@@ -1342,7 +1378,7 @@ class AXPLookupWidgetViewComponent extends AXPWidgetComponent {
|
|
|
1342
1378
|
: [await this.extractItem(value)];
|
|
1343
1379
|
this.displayItems.set(items);
|
|
1344
1380
|
}
|
|
1345
|
-
}
|
|
1381
|
+
});
|
|
1346
1382
|
}
|
|
1347
1383
|
async extractItem(item) {
|
|
1348
1384
|
if (typeof item == 'object') {
|
|
@@ -1374,8 +1410,8 @@ class AXPLookupWidgetViewComponent extends AXPWidgetComponent {
|
|
|
1374
1410
|
cls[`ax-gap-1`] = true;
|
|
1375
1411
|
return cls;
|
|
1376
1412
|
}
|
|
1377
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1378
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1413
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPLookupWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1414
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPLookupWidgetViewComponent, isStandalone: true, selector: "axp-lookup-widget-view", host: { properties: { "class": "this.__class" } }, usesInheritance: true, ngImport: i0, template: `
|
|
1379
1415
|
@if(loading())
|
|
1380
1416
|
{
|
|
1381
1417
|
<ax-loading></ax-loading>
|
|
@@ -1387,7 +1423,7 @@ class AXPLookupWidgetViewComponent extends AXPWidgetComponent {
|
|
|
1387
1423
|
}
|
|
1388
1424
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i1.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXBadgeModule }, { kind: "component", type: i2.AXBadgeComponent, selector: "ax-badge", inputs: ["color", "look", "text"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1389
1425
|
}
|
|
1390
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1426
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPLookupWidgetViewComponent, decorators: [{
|
|
1391
1427
|
type: Component,
|
|
1392
1428
|
args: [{
|
|
1393
1429
|
selector: 'axp-lookup-widget-view',
|
|
@@ -1402,9 +1438,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
|
1402
1438
|
}
|
|
1403
1439
|
}
|
|
1404
1440
|
`,
|
|
1405
|
-
standalone: true,
|
|
1406
1441
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1407
|
-
imports: [CommonModule, AXLoadingModule, AXBadgeModule]
|
|
1442
|
+
imports: [CommonModule, AXLoadingModule, AXBadgeModule]
|
|
1408
1443
|
}]
|
|
1409
1444
|
}], propDecorators: { __class: [{
|
|
1410
1445
|
type: HostBinding,
|
|
@@ -1454,8 +1489,8 @@ class AXPLookupWidgetSelectorComponent extends AXBasePageComponent {
|
|
|
1454
1489
|
this.close({ items: [this.focusedRow] });
|
|
1455
1490
|
}
|
|
1456
1491
|
}
|
|
1457
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1458
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1492
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPLookupWidgetSelectorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1493
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPLookupWidgetSelectorComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
|
|
1459
1494
|
<div class="ax-p-4 ax-flex ax-flex-col ax-gap-4 ax-overflow-hidden">
|
|
1460
1495
|
@if(vm.hasInlineFilters()) {
|
|
1461
1496
|
<div class="ax-w-full">
|
|
@@ -1519,7 +1554,7 @@ class AXPLookupWidgetSelectorComponent extends AXBasePageComponent {
|
|
|
1519
1554
|
</ax-footer>
|
|
1520
1555
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: AXCommonModule }, { kind: "directive", type: i2$1.AXAutoFocusDirective, selector: "[axAutoFocus]", inputs: ["axAutoFocus", "axAutoFocusTime"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i3.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type", "responsiveOn", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "responsiveOnChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXFormModule }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i4.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i4.AXDecoratorClearButtonComponent, selector: "ax-clear-button", inputs: ["icon"] }, { kind: "component", type: i4.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-sub-title, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXDropdownButtonModule }, { kind: "ngmodule", type: AXDataTableModule }, { kind: "component", type: i5.AXDataTableComponent, selector: "ax-data-table", inputs: ["dataSource", "rowTemplate", "emptyTemplate", "alternative", "showHeader", "fixedHeader", "showFooter", "fixedFooter", "itemHeight", "allowReordering", "paging", "fetchDataMode", "loading", "focusedRow"], outputs: ["selectedRowsChange", "focusedRowChange", "onRowClick", "onRowDbClick", "onColumnsOrderChanged"] }, { kind: "ngmodule", type: AXSearchBoxModule }, { kind: "component", type: i6.AXSearchBoxComponent, selector: "ax-search-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "delayTime"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXPLayoutBuilderModule }, { kind: "component", type: i7.AXPWidgetColumnRendererComponent, selector: "axp-widget-column-renderer", inputs: ["caption", "node", "footerTemplate", "cellTemplate", "headerTemplate"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i8.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1521
1556
|
}
|
|
1522
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1557
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPLookupWidgetSelectorComponent, decorators: [{
|
|
1523
1558
|
type: Component,
|
|
1524
1559
|
args: [{
|
|
1525
1560
|
template: `
|
|
@@ -1585,7 +1620,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
|
1585
1620
|
</ax-suffix>
|
|
1586
1621
|
</ax-footer>
|
|
1587
1622
|
`,
|
|
1588
|
-
standalone: true,
|
|
1589
1623
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1590
1624
|
imports: [
|
|
1591
1625
|
CommonModule,
|
|
@@ -1599,7 +1633,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
|
1599
1633
|
AXPLayoutBuilderModule,
|
|
1600
1634
|
AXTranslationModule,
|
|
1601
1635
|
],
|
|
1602
|
-
inputs: []
|
|
1636
|
+
inputs: []
|
|
1603
1637
|
}]
|
|
1604
1638
|
}] });
|
|
1605
1639
|
|
|
@@ -1744,12 +1778,12 @@ class AXPLookupWidgetEditComponent extends AXPWidgetComponent {
|
|
|
1744
1778
|
else if (value != null) {
|
|
1745
1779
|
await this.findByValue();
|
|
1746
1780
|
}
|
|
1747
|
-
}
|
|
1781
|
+
});
|
|
1748
1782
|
this.efEntity = effect(async () => {
|
|
1749
1783
|
const [module, entity] = this.entity().split('.');
|
|
1750
1784
|
this.entityDef.set(await this.entityResolver.get(module, entity));
|
|
1751
1785
|
this.vm.set(new AXPLookupWidgetSelectorViewModel(this.injector, this.entityDef(), this.filter));
|
|
1752
|
-
}
|
|
1786
|
+
});
|
|
1753
1787
|
}
|
|
1754
1788
|
ngOnInit() {
|
|
1755
1789
|
super.ngOnInit();
|
|
@@ -1867,8 +1901,8 @@ class AXPLookupWidgetEditComponent extends AXPWidgetComponent {
|
|
|
1867
1901
|
this.searchTerm.set('');
|
|
1868
1902
|
this.selectedItem.set(null);
|
|
1869
1903
|
}
|
|
1870
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1871
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1904
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPLookupWidgetEditComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1905
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPLookupWidgetEditComponent, isStandalone: true, selector: "axp-lookup-widget-edit", viewQueries: [{ propertyName: "textbox", first: true, predicate: AXTextBoxComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
1872
1906
|
<ax-text-box
|
|
1873
1907
|
[ngModel]="displayText()"
|
|
1874
1908
|
(onValueChanged)="handleValueChange($event)"
|
|
@@ -1897,7 +1931,7 @@ class AXPLookupWidgetEditComponent extends AXPWidgetComponent {
|
|
|
1897
1931
|
</ax-text-box>
|
|
1898
1932
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXSelectBoxModule }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "component", type: i2$2.AXTextBoxComponent, selector: "ax-text-box", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "id", "placeholder", "maxLength", "allowNull", "type", "autoComplete", "look", "mask-options", "class"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i3.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type", "responsiveOn", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "responsiveOnChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i4.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i4.AXDecoratorClearButtonComponent, selector: "ax-clear-button", inputs: ["icon"] }, { kind: "component", type: i4.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-sub-title, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i1.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXValidationModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "directive", type: i6$1.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1899
1933
|
}
|
|
1900
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1934
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPLookupWidgetEditComponent, decorators: [{
|
|
1901
1935
|
type: Component,
|
|
1902
1936
|
args: [{
|
|
1903
1937
|
selector: 'axp-lookup-widget-edit',
|
|
@@ -1929,7 +1963,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
|
1929
1963
|
</ax-suffix>
|
|
1930
1964
|
</ax-text-box>
|
|
1931
1965
|
`,
|
|
1932
|
-
standalone: true,
|
|
1933
1966
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1934
1967
|
imports: [
|
|
1935
1968
|
CommonModule,
|
|
@@ -1941,7 +1974,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
|
1941
1974
|
AXLoadingModule,
|
|
1942
1975
|
AXValidationModule,
|
|
1943
1976
|
AXFormModule,
|
|
1944
|
-
]
|
|
1977
|
+
]
|
|
1945
1978
|
}]
|
|
1946
1979
|
}], propDecorators: { textbox: [{
|
|
1947
1980
|
type: ViewChild,
|
|
@@ -1954,14 +1987,13 @@ var lookupWidgetEdit_component = /*#__PURE__*/Object.freeze({
|
|
|
1954
1987
|
});
|
|
1955
1988
|
|
|
1956
1989
|
class AXPLookupWidgetFilterComponent extends AXPWidgetComponent {
|
|
1957
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1958
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1990
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPLookupWidgetFilterComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1991
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: AXPLookupWidgetFilterComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: ``, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1959
1992
|
}
|
|
1960
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1993
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPLookupWidgetFilterComponent, decorators: [{
|
|
1961
1994
|
type: Component,
|
|
1962
1995
|
args: [{
|
|
1963
1996
|
template: ``,
|
|
1964
|
-
standalone: true,
|
|
1965
1997
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1966
1998
|
imports: [CommonModule, FormsModule],
|
|
1967
1999
|
inputs: []
|
|
@@ -1974,18 +2006,17 @@ var lookupWidgetFilter_component = /*#__PURE__*/Object.freeze({
|
|
|
1974
2006
|
});
|
|
1975
2007
|
|
|
1976
2008
|
class AXPLookupWidgetColumnComponent extends AXPColumnWidgetComponent {
|
|
1977
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1978
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2009
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPLookupWidgetColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
2010
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: AXPLookupWidgetColumnComponent, isStandalone: true, selector: "ng-component", inputs: { rawValue: "rawValue" }, usesInheritance: true, ngImport: i0, template: `
|
|
1979
2011
|
<ax-badge [look]="'twotone'" [text]="rawValue" color="primary"></ax-badge>
|
|
1980
2012
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXBadgeModule }, { kind: "component", type: i2.AXBadgeComponent, selector: "ax-badge", inputs: ["color", "look", "text"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1981
2013
|
}
|
|
1982
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2014
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPLookupWidgetColumnComponent, decorators: [{
|
|
1983
2015
|
type: Component,
|
|
1984
2016
|
args: [{
|
|
1985
2017
|
template: `
|
|
1986
2018
|
<ax-badge [look]="'twotone'" [text]="rawValue" color="primary"></ax-badge>
|
|
1987
2019
|
`,
|
|
1988
|
-
standalone: true,
|
|
1989
2020
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1990
2021
|
imports: [CommonModule, AXBadgeModule],
|
|
1991
2022
|
inputs: ['rawValue']
|
|
@@ -1998,14 +2029,13 @@ var lookupWidgetColumn_component = /*#__PURE__*/Object.freeze({
|
|
|
1998
2029
|
});
|
|
1999
2030
|
|
|
2000
2031
|
class AXPLookupWidgetPrintComponent extends AXPWidgetComponent {
|
|
2001
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2002
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2032
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPLookupWidgetPrintComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
2033
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: AXPLookupWidgetPrintComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: ``, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2003
2034
|
}
|
|
2004
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2035
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPLookupWidgetPrintComponent, decorators: [{
|
|
2005
2036
|
type: Component,
|
|
2006
2037
|
args: [{
|
|
2007
2038
|
template: ``,
|
|
2008
|
-
standalone: true,
|
|
2009
2039
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2010
2040
|
imports: [CommonModule],
|
|
2011
2041
|
inputs: []
|
|
@@ -2122,8 +2152,8 @@ class AXPWidgetSelectorWidgetEditComponent extends AXPWidgetComponent {
|
|
|
2122
2152
|
const widget = this.widgetRegisteryService.resolve(e.values.type);
|
|
2123
2153
|
this.setValue({ title: widget?.title, ...e.values });
|
|
2124
2154
|
}
|
|
2125
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2126
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2155
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPWidgetSelectorWidgetEditComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
2156
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPWidgetSelectorWidgetEditComponent, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "textbox", first: true, predicate: AXTextBoxComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
2127
2157
|
<ax-text-box [ngModel]="displayText()" [placeholder]="placeholder()" [readonly]="true">
|
|
2128
2158
|
@for (validation of validationRules(); track $index) {
|
|
2129
2159
|
<ax-validation-rule
|
|
@@ -2144,7 +2174,7 @@ class AXPWidgetSelectorWidgetEditComponent extends AXPWidgetComponent {
|
|
|
2144
2174
|
}
|
|
2145
2175
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXSelectBoxModule }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "component", type: i2$2.AXTextBoxComponent, selector: "ax-text-box", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "id", "placeholder", "maxLength", "allowNull", "type", "autoComplete", "look", "mask-options", "class"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i3.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type", "responsiveOn", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "responsiveOnChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i4.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i4.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-sub-title, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "ngmodule", type: AXValidationModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "directive", type: i6$1.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message"] }, { kind: "component", type: AXPWidgetPropertyViewerComponent, selector: "axp-widget-property-viewer", inputs: ["widget"], outputs: ["onChanged"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2146
2176
|
}
|
|
2147
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2177
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPWidgetSelectorWidgetEditComponent, decorators: [{
|
|
2148
2178
|
type: Component,
|
|
2149
2179
|
args: [{
|
|
2150
2180
|
template: `
|
|
@@ -2167,7 +2197,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
|
2167
2197
|
</axp-widget-property-viewer>
|
|
2168
2198
|
}
|
|
2169
2199
|
`,
|
|
2170
|
-
standalone: true,
|
|
2171
2200
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2172
2201
|
imports: [
|
|
2173
2202
|
CommonModule,
|
|
@@ -2180,7 +2209,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
|
2180
2209
|
AXValidationModule,
|
|
2181
2210
|
AXFormModule,
|
|
2182
2211
|
AXPWidgetPropertyViewerComponent,
|
|
2183
|
-
]
|
|
2212
|
+
]
|
|
2184
2213
|
}]
|
|
2185
2214
|
}], propDecorators: { textbox: [{
|
|
2186
2215
|
type: ViewChild,
|
|
@@ -2193,16 +2222,15 @@ var widgetSelectorWidgetEdit_component = /*#__PURE__*/Object.freeze({
|
|
|
2193
2222
|
});
|
|
2194
2223
|
|
|
2195
2224
|
class AXPWidgetSelectorWidgetViewComponent extends AXPWidgetComponent {
|
|
2196
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2197
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2225
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPWidgetSelectorWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
2226
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: AXPWidgetSelectorWidgetViewComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `{{ getValue()?.title }}`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2198
2227
|
}
|
|
2199
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2228
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPWidgetSelectorWidgetViewComponent, decorators: [{
|
|
2200
2229
|
type: Component,
|
|
2201
2230
|
args: [{
|
|
2202
2231
|
template: `{{ getValue()?.title }}`,
|
|
2203
|
-
standalone: true,
|
|
2204
2232
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2205
|
-
imports: [CommonModule]
|
|
2233
|
+
imports: [CommonModule]
|
|
2206
2234
|
}]
|
|
2207
2235
|
}] });
|
|
2208
2236
|
|
|
@@ -2243,13 +2271,15 @@ class AXPEntityCreatePopupAction extends AXPWorkflowAction {
|
|
|
2243
2271
|
async execute(context) {
|
|
2244
2272
|
const [module, entity] = context.getVariable('entity').split('.');
|
|
2245
2273
|
const data = context.getVariable('data');
|
|
2274
|
+
const canCreateNewOne = context.getVariable('canCreateNewOne') ?? false;
|
|
2275
|
+
const redirect = context.getVariable('redirect') ?? true;
|
|
2246
2276
|
const entityRef = await this.entityRegistery.resolve(module, entity);
|
|
2247
2277
|
const com = await this.config.viewers.master.create();
|
|
2248
2278
|
const result = await this.popupService.open(com, {
|
|
2249
|
-
title: this.translateService.
|
|
2279
|
+
title: `${await this.translateService.translateAsync('create-new')} ${await this.translateService.translateAsync(entityRef.formats.individual)}`,
|
|
2250
2280
|
size: this.platform.is('Mobile') || this.platform.is('SM') ? 'full' : 'md',
|
|
2251
2281
|
data: {
|
|
2252
|
-
vm: await this.factory.create(module, entity, data),
|
|
2282
|
+
vm: await this.factory.create(module, entity, data, { canCreateNewOne, redirect }),
|
|
2253
2283
|
entity,
|
|
2254
2284
|
},
|
|
2255
2285
|
});
|
|
@@ -2260,17 +2290,22 @@ class AXPEntityCreatePopupAction extends AXPWorkflowAction {
|
|
|
2260
2290
|
context.setVariable('data', { ...prevData, ...result.data.item });
|
|
2261
2291
|
}
|
|
2262
2292
|
}
|
|
2263
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2264
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2293
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPEntityCreatePopupAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2294
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPEntityCreatePopupAction }); }
|
|
2265
2295
|
}
|
|
2266
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2296
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPEntityCreatePopupAction, decorators: [{
|
|
2267
2297
|
type: Injectable
|
|
2268
2298
|
}] });
|
|
2269
2299
|
class AXPEntityCreateSubmittedAction extends AXPWorkflowAction {
|
|
2270
2300
|
async execute(context) {
|
|
2271
2301
|
this.dispatch(AXPEntityCreateEvent({ entity: context.getVariable('entity'), meta: context.getVariable('meta') }));
|
|
2272
2302
|
}
|
|
2303
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPEntityCreateSubmittedAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2304
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPEntityCreateSubmittedAction }); }
|
|
2273
2305
|
}
|
|
2306
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPEntityCreateSubmittedAction, decorators: [{
|
|
2307
|
+
type: Injectable
|
|
2308
|
+
}] });
|
|
2274
2309
|
const AXPCreateEntityWorkflow = {
|
|
2275
2310
|
startStepId: 'show-popup',
|
|
2276
2311
|
steps: {
|
|
@@ -2327,10 +2362,10 @@ class AXPShowDetailViewAction extends AXPWorkflowAction {
|
|
|
2327
2362
|
context.setVariable('payload', newPayload);
|
|
2328
2363
|
this.navigation.execute(context);
|
|
2329
2364
|
}
|
|
2330
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2331
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2365
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPShowDetailViewAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2366
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPShowDetailViewAction }); }
|
|
2332
2367
|
}
|
|
2333
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2368
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPShowDetailViewAction, decorators: [{
|
|
2334
2369
|
type: Injectable
|
|
2335
2370
|
}] });
|
|
2336
2371
|
const AXPShowDetailsViewWorkflow = {
|
|
@@ -2356,10 +2391,10 @@ class AXPShowListViewAction extends AXPWorkflowAction {
|
|
|
2356
2391
|
context.setVariable('payload', newPayload);
|
|
2357
2392
|
this.navigation.execute(context);
|
|
2358
2393
|
}
|
|
2359
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2360
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2394
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPShowListViewAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2395
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPShowListViewAction }); }
|
|
2361
2396
|
}
|
|
2362
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2397
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPShowListViewAction, decorators: [{
|
|
2363
2398
|
type: Injectable
|
|
2364
2399
|
}] });
|
|
2365
2400
|
const AXPShowListViewWorkflow = {
|
|
@@ -2384,22 +2419,6 @@ function routesFacory() {
|
|
|
2384
2419
|
{
|
|
2385
2420
|
path: ':module',
|
|
2386
2421
|
children: [
|
|
2387
|
-
// {
|
|
2388
|
-
// path: 'e/:entity/:id/view/:section',
|
|
2389
|
-
// resolve: { loader: AXPEntityDetailViewLoaderResolver },
|
|
2390
|
-
// component: AXPEntityDetailsViewComponent,
|
|
2391
|
-
// },
|
|
2392
|
-
// {
|
|
2393
|
-
// path: 'settings',
|
|
2394
|
-
// component: AXPSettingsMenuComponent,
|
|
2395
|
-
// data: { reuse: true },
|
|
2396
|
-
// children: [
|
|
2397
|
-
// {
|
|
2398
|
-
// path: ':group',
|
|
2399
|
-
// component: AXPSettingsPreviewComponent,
|
|
2400
|
-
// },
|
|
2401
|
-
// ],
|
|
2402
|
-
// },
|
|
2403
2422
|
{
|
|
2404
2423
|
path: 'e/:entity/list',
|
|
2405
2424
|
loadComponent: () => {
|
|
@@ -2436,9 +2455,9 @@ function routesFacory() {
|
|
|
2436
2455
|
return routes;
|
|
2437
2456
|
}
|
|
2438
2457
|
class AXPEntityModule {
|
|
2439
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2440
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
2441
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
2458
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPEntityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2459
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXPEntityModule, imports: [RouterModule, i1$3.AXPWorkflowModule, i7.AXPLayoutBuilderModule] }); }
|
|
2460
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPEntityModule, providers: [
|
|
2442
2461
|
{
|
|
2443
2462
|
provide: ROUTES,
|
|
2444
2463
|
multi: true,
|
|
@@ -2468,7 +2487,7 @@ class AXPEntityModule {
|
|
|
2468
2487
|
widgets: [AXPLookupWidget, AXPWidgetSelectorWidget],
|
|
2469
2488
|
})] }); }
|
|
2470
2489
|
}
|
|
2471
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2490
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPEntityModule, decorators: [{
|
|
2472
2491
|
type: NgModule,
|
|
2473
2492
|
args: [{
|
|
2474
2493
|
imports: [
|
|
@@ -2515,10 +2534,10 @@ class AXPEntityService {
|
|
|
2515
2534
|
createPath(module, entity, path = 'list') {
|
|
2516
2535
|
return `/${this.sessionService.application?.name}/m/${module}/e/${entity}/${path}`;
|
|
2517
2536
|
}
|
|
2518
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2519
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2537
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPEntityService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2538
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPEntityService, providedIn: 'root' }); }
|
|
2520
2539
|
}
|
|
2521
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2540
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPEntityService, decorators: [{
|
|
2522
2541
|
type: Injectable,
|
|
2523
2542
|
args: [{ providedIn: 'root' }]
|
|
2524
2543
|
}] });
|
|
@@ -2527,5 +2546,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
|
2527
2546
|
* Generated bundle index. Do not edit.
|
|
2528
2547
|
*/
|
|
2529
2548
|
|
|
2530
|
-
export { AXPEntityCreateViewElementViewModel, AXPEntityCreateViewModelFactory, AXPEntityCreateViewSectionViewModel, AXPEntityDefinitionRegistryService, AXPEntityDetailListViewModel, AXPEntityDetailViewModelFactory, AXPEntityDetailViewModelResolver, AXPEntityListViewModelFactory, AXPEntityListViewModelResolver, AXPEntityMasterCreateViewModel, AXPEntityMasterListViewModel, AXPEntityMasterListViewQueryViewModel, AXPEntityMasterSingleElementViewModel, AXPEntityMasterSingleViewGroupViewModel, AXPEntityMasterSingleViewModel, AXPEntityMasterUpdateElementViewModel, AXPEntityMasterUpdateViewModel, AXPEntityMasterUpdateViewModelFactory, AXPEntityModule, AXPEntityResolver, AXPEntityService, AXP_ENTITY_CONFIG_TOKEN, AXP_ENTITY_DEFINITION_LOADER };
|
|
2549
|
+
export { AXPEntityCommandTriggerViewModel, AXPEntityCreateViewElementViewModel, AXPEntityCreateViewModelFactory, AXPEntityCreateViewSectionViewModel, AXPEntityDefinitionRegistryService, AXPEntityDetailListViewModel, AXPEntityDetailViewModelFactory, AXPEntityDetailViewModelResolver, AXPEntityListViewColumnViewModel, AXPEntityListViewModelFactory, AXPEntityListViewModelResolver, AXPEntityMasterCreateViewModel, AXPEntityMasterListViewModel, AXPEntityMasterListViewQueryViewModel, AXPEntityMasterSingleElementViewModel, AXPEntityMasterSingleViewGroupViewModel, AXPEntityMasterSingleViewModel, AXPEntityMasterUpdateElementViewModel, AXPEntityMasterUpdateViewModel, AXPEntityMasterUpdateViewModelFactory, AXPEntityModule, AXPEntityResolver, AXPEntityService, AXP_ENTITY_CONFIG_TOKEN, AXP_ENTITY_DEFINITION_LOADER };
|
|
2531
2550
|
//# sourceMappingURL=acorex-platform-layout-entity.mjs.map
|