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