@acorex/platform 19.1.6 → 19.1.7
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/auth/lib/permission/index.d.ts +4 -3
- package/auth/lib/permission/permission.service.d.ts +18 -0
- package/auth/lib/permission/permission.types.d.ts +5 -0
- package/common/index.d.ts +3 -2
- package/common/lib/app/application.types.d.ts +16 -4
- package/common/lib/layout/menu/index.d.ts +4 -2
- package/common/lib/layout/menu/search-definition.provider.d.ts +4 -0
- package/common/lib/layout/menu/search.provider.d.ts +20 -0
- package/common/lib/search/index.d.ts +5 -0
- package/common/lib/search/search-definition.builder.d.ts +23 -0
- package/common/lib/search/search-definition.provider.d.ts +18 -0
- package/common/lib/search/search.provider.d.ts +4 -0
- package/common/lib/search/search.service.d.ts +12 -0
- package/common/lib/search/search.types.d.ts +42 -0
- package/common/lib/settings/search-definition.provider.d.ts +4 -0
- package/common/lib/settings/search.provider.d.ts +10 -0
- package/fesm2022/acorex-platform-auth.mjs +78 -43
- package/fesm2022/acorex-platform-auth.mjs.map +1 -1
- package/fesm2022/acorex-platform-common.mjs +1439 -2234
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +14 -5
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-search.mjs +183 -0
- package/fesm2022/acorex-platform-layout-search.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-setting.mjs +21 -20
- package/fesm2022/acorex-platform-layout-setting.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-K9B_-q_K.mjs → acorex-platform-themes-default-entity-master-create-view.component-DpWOMxW9.mjs} +5 -5
- package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-K9B_-q_K.mjs.map → acorex-platform-themes-default-entity-master-create-view.component-DpWOMxW9.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-list-view.component-CtpkzjOm.mjs → acorex-platform-themes-default-entity-master-list-view.component-BUL6ti4U.mjs} +12 -12
- package/fesm2022/{acorex-platform-themes-default-entity-master-list-view.component-CtpkzjOm.mjs.map → acorex-platform-themes-default-entity-master-list-view.component-BUL6ti4U.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-modify-view.component-Cd2gxLZt.mjs → acorex-platform-themes-default-entity-master-modify-view.component-C1kGZwYp.mjs} +3 -3
- package/fesm2022/{acorex-platform-themes-default-entity-master-modify-view.component-Cd2gxLZt.mjs.map → acorex-platform-themes-default-entity-master-modify-view.component-C1kGZwYp.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-single-view.component-6sZdw013.mjs → acorex-platform-themes-default-entity-master-single-view.component-CAgt5S3B.mjs} +4 -4
- package/fesm2022/{acorex-platform-themes-default-entity-master-single-view.component-6sZdw013.mjs.map → acorex-platform-themes-default-entity-master-single-view.component-CAgt5S3B.mjs.map} +1 -1
- package/fesm2022/acorex-platform-themes-default-search-popup.component-Blpan821.mjs +62 -0
- package/fesm2022/acorex-platform-themes-default-search-popup.component-Blpan821.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-setting-page.component-BYpCgHZb.mjs → acorex-platform-themes-default-setting-page.component-BXwdFLy4.mjs} +3 -3
- package/fesm2022/{acorex-platform-themes-default-setting-page.component-BYpCgHZb.mjs.map → acorex-platform-themes-default-setting-page.component-BXwdFLy4.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-default-setting-view.component-CdmIphX1.mjs → acorex-platform-themes-default-setting-view.component-BXsmvaIi.mjs} +5 -5
- package/fesm2022/{acorex-platform-themes-default-setting-view.component-CdmIphX1.mjs.map → acorex-platform-themes-default-setting-view.component-BXsmvaIi.mjs.map} +1 -1
- package/fesm2022/acorex-platform-themes-default.mjs +28 -15
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
- package/fesm2022/acorex-platform-themes-shared.mjs +2 -2
- package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -1
- package/fesm2022/acorex-platform-widgets.mjs +74 -85
- package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
- package/layout/search/README.md +3 -0
- package/layout/search/index.d.ts +1 -0
- package/layout/search/lib/index.d.ts +3 -0
- package/layout/search/lib/search-slot.component.d.ts +9 -0
- package/layout/search/lib/search.config.d.ts +5 -0
- package/layout/search/lib/search.module.d.ts +11 -0
- package/layout/search/lib/search.viewmodel.d.ts +13 -0
- package/layout/search/lib/workflows/search.workflow.d.ts +10 -0
- package/layout/setting/lib/setting.viewmodel.d.ts +1 -1
- package/package.json +12 -8
- package/themes/default/lib/layouts/search-layout/search-popup.component.d.ts +11 -0
- package/themes/shared/index.d.ts +1 -1
- package/themes/shared/lib/components/layout-elements/layout-list.component.d.ts +1 -1
- package/themes/shared/lib/components/{theme-slot.component.d.ts → slots/theme-slot.component.d.ts} +7 -7
- package/widgets/lib/widgets/layout/block/block-widget-designer.component.d.ts +0 -1
- package/widgets/lib/widgets/property-editors/flex-options/flex-options-widget-editor.component.d.ts +6 -4
- package/widgets/lib/widgets/property-editors/property-editor-helper.d.ts +6 -5
- package/common/lib/schema/component-loader.d.ts +0 -24
- package/common/lib/schema/entity/entity-registery.service.d.ts +0 -34
- package/common/lib/schema/entity/entity.class.d.ts +0 -161
- package/common/lib/schema/entity/entity.loader.d.ts +0 -9
- package/common/lib/schema/entity/index.d.ts +0 -3
- package/common/lib/schema/formats.d.ts +0 -8
- package/common/lib/schema/index.d.ts +0 -8
- package/common/lib/schema/schema-registery.service.d.ts +0 -20
- package/common/lib/schema/schema.module.d.ts +0 -12
- package/common/lib/schema/schema.types.d.ts +0 -16
- package/common/lib/schema/widget/index.d.ts +0 -5
- package/common/lib/schema/widget/widget-base.d.ts +0 -45
- package/common/lib/schema/widget/widget-column-renderer.d.ts +0 -34
- package/common/lib/schema/widget/widget-filter-renderer.d.ts +0 -30
- package/common/lib/schema/widget/widget-renderer.d.ts +0 -27
- package/common/lib/schema/widget/widget-token.d.ts +0 -16
- package/common/lib/schema/widgets/avatar/avatar-widget-edit.component.d.ts +0 -16
- package/common/lib/schema/widgets/avatar/avatar-widget-view.component.d.ts +0 -13
- package/common/lib/schema/widgets/checkbox/checkbox-widget-column.component.d.ts +0 -11
- package/common/lib/schema/widgets/checkbox/checkbox-widget-edit.component.d.ts +0 -6
- package/common/lib/schema/widgets/checkbox/checkbox-widget-view.component.d.ts +0 -11
- package/common/lib/schema/widgets/common-widget-filter/boolean-widget-filter.component.d.ts +0 -18
- package/common/lib/schema/widgets/common-widget-filter/number-widget-filter.component.d.ts +0 -12
- package/common/lib/schema/widgets/common-widget-filter/string-widget-filter.component.d.ts +0 -12
- package/common/lib/schema/widgets/common-widgets.module.d.ts +0 -32
- package/common/lib/schema/widgets/dateTime/dateTime-widget-column.component.d.ts +0 -11
- package/common/lib/schema/widgets/dateTime/dateTime-widget-edit.component.d.ts +0 -24
- package/common/lib/schema/widgets/dateTime/dateTime-widget-filter.component.d.ts +0 -19
- package/common/lib/schema/widgets/dateTime/dateTime-widget-view.component.d.ts +0 -11
- package/common/lib/schema/widgets/email/email-widget-column.component.d.ts +0 -16
- package/common/lib/schema/widgets/email/email-widget-edit.component.d.ts +0 -26
- package/common/lib/schema/widgets/email/email-widget-view.component.d.ts +0 -16
- package/common/lib/schema/widgets/file/file-widget-column.component.d.ts +0 -8
- package/common/lib/schema/widgets/file/file-widget-edit.component.d.ts +0 -17
- package/common/lib/schema/widgets/file/file-widget-filter.component.d.ts +0 -6
- package/common/lib/schema/widgets/file/file-widget-view.component.d.ts +0 -17
- package/common/lib/schema/widgets/gallery/gallery-widget-edit.component.d.ts +0 -15
- package/common/lib/schema/widgets/gallery/gallery-widget-filter.component.d.ts +0 -6
- package/common/lib/schema/widgets/gallery/gallery-widget-types.d.ts +0 -10
- package/common/lib/schema/widgets/gallery/gallery-widget-view.component.d.ts +0 -16
- package/common/lib/schema/widgets/index.d.ts +0 -1
- package/common/lib/schema/widgets/lookup/lookup-widget-column.component.d.ts +0 -17
- package/common/lib/schema/widgets/lookup/lookup-widget-edit.component.d.ts +0 -18
- package/common/lib/schema/widgets/lookup/lookup-widget-filter.component.d.ts +0 -17
- package/common/lib/schema/widgets/lookup/lookup-widget-view.component.d.ts +0 -18
- package/common/lib/schema/widgets/map/map-widget-edit.component.d.ts +0 -15
- package/common/lib/schema/widgets/map/map-widget-view.component.d.ts +0 -17
- package/common/lib/schema/widgets/messenger/messenger-widget-column.component.d.ts +0 -15
- package/common/lib/schema/widgets/messenger/messenger-widget-edit.component.d.ts +0 -14
- package/common/lib/schema/widgets/messenger/messenger-widget-view.component.d.ts +0 -17
- package/common/lib/schema/widgets/number/number-widget-edit.component.d.ts +0 -7
- package/common/lib/schema/widgets/number/number-widget-view.component.d.ts +0 -8
- package/common/lib/schema/widgets/password/change-password.component.d.ts +0 -16
- package/common/lib/schema/widgets/password/password-widget-column.component.d.ts +0 -14
- package/common/lib/schema/widgets/password/password-widget-edit.component.d.ts +0 -6
- package/common/lib/schema/widgets/password/password-widget-view.component.d.ts +0 -18
- package/common/lib/schema/widgets/phone/phone-widget-column.component.d.ts +0 -15
- package/common/lib/schema/widgets/phone/phone-widget-edit.component.d.ts +0 -29
- package/common/lib/schema/widgets/phone/phone-widget-view.component.d.ts +0 -18
- package/common/lib/schema/widgets/rich-text/rich-text-widget-column.component.d.ts +0 -11
- package/common/lib/schema/widgets/rich-text/rich-text-widget-edit.component.d.ts +0 -33
- package/common/lib/schema/widgets/rich-text/rich-text-widget-view.component.d.ts +0 -10
- package/common/lib/schema/widgets/selection-list/selection-list-widget-column.component.d.ts +0 -16
- package/common/lib/schema/widgets/selection-list/selection-list-widget-edit.component.d.ts +0 -12
- package/common/lib/schema/widgets/selection-list/selection-list-widget-filter.component.d.ts +0 -9
- package/common/lib/schema/widgets/selection-list/selection-list-widget-view.component.d.ts +0 -15
- package/common/lib/schema/widgets/signature-pad/signature-pad-widget-edit.component.d.ts +0 -19
- package/common/lib/schema/widgets/signature-pad/signature-pad-widget-view.component.d.ts +0 -8
- package/common/lib/schema/widgets/text/largetext-widget-edit.component.d.ts +0 -6
- package/common/lib/schema/widgets/text/text-widget-column.component.d.ts +0 -12
- package/common/lib/schema/widgets/text/text-widget-edit.component.d.ts +0 -21
- package/common/lib/schema/widgets/text/text-widget-view.component.d.ts +0 -11
- package/common/lib/schema/widgets/toggle/toggle-widget-column.component.d.ts +0 -11
- package/common/lib/schema/widgets/toggle/toggle-widget-edit.component.d.ts +0 -6
- package/common/lib/schema/widgets/toggle/toggle-widget-view.component.d.ts +0 -11
- package/fesm2022/acorex-platform-common-avatar-widget-edit.component-syRKKn21.mjs +0 -166
- package/fesm2022/acorex-platform-common-avatar-widget-edit.component-syRKKn21.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-avatar-widget-view.component-DSju_bgg.mjs +0 -64
- package/fesm2022/acorex-platform-common-avatar-widget-view.component-DSju_bgg.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-boolean-widget-filter.component-aaKT0FyC.mjs +0 -155
- package/fesm2022/acorex-platform-common-boolean-widget-filter.component-aaKT0FyC.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-change-password.component-DFoC5nP2.mjs +0 -176
- package/fesm2022/acorex-platform-common-change-password.component-DFoC5nP2.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-checkbox-widget-column.component-DZxykkVr.mjs +0 -55
- package/fesm2022/acorex-platform-common-checkbox-widget-column.component-DZxykkVr.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-checkbox-widget-edit.component-CNmYVpMu.mjs +0 -24
- package/fesm2022/acorex-platform-common-checkbox-widget-edit.component-CNmYVpMu.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-checkbox-widget-view.component-3XLnJx9A.mjs +0 -49
- package/fesm2022/acorex-platform-common-checkbox-widget-view.component-3XLnJx9A.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-dateTime-widget-column.component-CKaMC189.mjs +0 -46
- package/fesm2022/acorex-platform-common-dateTime-widget-column.component-CKaMC189.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-dateTime-widget-edit.component-B50J-bwp.mjs +0 -178
- package/fesm2022/acorex-platform-common-dateTime-widget-edit.component-B50J-bwp.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-dateTime-widget-filter.component-CTV2a3c0.mjs +0 -286
- package/fesm2022/acorex-platform-common-dateTime-widget-filter.component-CTV2a3c0.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-dateTime-widget-view.component-C7hmUXLz.mjs +0 -73
- package/fesm2022/acorex-platform-common-dateTime-widget-view.component-C7hmUXLz.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-email-widget-column.component-BPoSZTqM.mjs +0 -75
- package/fesm2022/acorex-platform-common-email-widget-column.component-BPoSZTqM.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-email-widget-edit.component-aLPGOG3r.mjs +0 -249
- package/fesm2022/acorex-platform-common-email-widget-edit.component-aLPGOG3r.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-email-widget-view.component-dMByK5bc.mjs +0 -109
- package/fesm2022/acorex-platform-common-email-widget-view.component-dMByK5bc.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-file-widget-column.component-Dafc2zLc.mjs +0 -29
- package/fesm2022/acorex-platform-common-file-widget-column.component-Dafc2zLc.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-file-widget-edit.component-C31kfJSw.mjs +0 -202
- package/fesm2022/acorex-platform-common-file-widget-edit.component-C31kfJSw.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-file-widget-filter.component-BNCcBun4.mjs +0 -29
- package/fesm2022/acorex-platform-common-file-widget-filter.component-BNCcBun4.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-file-widget-view.component-T3r6musY.mjs +0 -155
- package/fesm2022/acorex-platform-common-file-widget-view.component-T3r6musY.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-gallery-widget-edit.component-zBsaBkzu.mjs +0 -191
- package/fesm2022/acorex-platform-common-gallery-widget-edit.component-zBsaBkzu.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-gallery-widget-filter.component-BhLYuB6p.mjs +0 -29
- package/fesm2022/acorex-platform-common-gallery-widget-filter.component-BhLYuB6p.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-gallery-widget-view.component-Dxf4Oj1E.mjs +0 -175
- package/fesm2022/acorex-platform-common-gallery-widget-view.component-Dxf4Oj1E.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-largetext-widget-edit.component-BYMIaLCI.mjs +0 -38
- package/fesm2022/acorex-platform-common-largetext-widget-edit.component-BYMIaLCI.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-lookup-widget-column.component-BB0Mdx2u.mjs +0 -45
- package/fesm2022/acorex-platform-common-lookup-widget-column.component-BB0Mdx2u.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-lookup-widget-edit.component-DUPsS_ZW.mjs +0 -96
- package/fesm2022/acorex-platform-common-lookup-widget-edit.component-DUPsS_ZW.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-lookup-widget-filter.component-CLyl94AJ.mjs +0 -161
- package/fesm2022/acorex-platform-common-lookup-widget-filter.component-CLyl94AJ.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-lookup-widget-view.component-CJijszjn.mjs +0 -56
- package/fesm2022/acorex-platform-common-lookup-widget-view.component-CJijszjn.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-map-widget-edit.component-BTHORlG5.mjs +0 -94
- package/fesm2022/acorex-platform-common-map-widget-edit.component-BTHORlG5.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-map-widget-view.component-CQzW1ZeD.mjs +0 -66
- package/fesm2022/acorex-platform-common-map-widget-view.component-CQzW1ZeD.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-messenger-widget-column.component-Brm4vLGA.mjs +0 -73
- package/fesm2022/acorex-platform-common-messenger-widget-column.component-Brm4vLGA.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-messenger-widget-edit.component-CJHvut2C.mjs +0 -138
- package/fesm2022/acorex-platform-common-messenger-widget-edit.component-CJHvut2C.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-messenger-widget-view.component-DVylp_2t.mjs +0 -133
- package/fesm2022/acorex-platform-common-messenger-widget-view.component-DVylp_2t.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-number-widget-edit.component-DZf-n-yr.mjs +0 -48
- package/fesm2022/acorex-platform-common-number-widget-edit.component-DZf-n-yr.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-number-widget-filter.component-womVAhSr.mjs +0 -137
- package/fesm2022/acorex-platform-common-number-widget-filter.component-womVAhSr.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-number-widget-view.component-L2pxAqqz.mjs +0 -33
- package/fesm2022/acorex-platform-common-number-widget-view.component-L2pxAqqz.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-password-widget-column.component-3ubqJk-d.mjs +0 -68
- package/fesm2022/acorex-platform-common-password-widget-column.component-3ubqJk-d.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-password-widget-edit.component-BokyEDfK.mjs +0 -43
- package/fesm2022/acorex-platform-common-password-widget-edit.component-BokyEDfK.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-password-widget-view.component-BuFoE2fz.mjs +0 -110
- package/fesm2022/acorex-platform-common-password-widget-view.component-BuFoE2fz.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-phone-widget-column.component-79Me_VNP.mjs +0 -93
- package/fesm2022/acorex-platform-common-phone-widget-column.component-79Me_VNP.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-phone-widget-edit.component-CIayMoT1.mjs +0 -249
- package/fesm2022/acorex-platform-common-phone-widget-edit.component-CIayMoT1.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-phone-widget-view.component-B1Xu_rxC.mjs +0 -124
- package/fesm2022/acorex-platform-common-phone-widget-view.component-B1Xu_rxC.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-rich-text-widget-column.component-Dbn3JMOu.mjs +0 -63
- package/fesm2022/acorex-platform-common-rich-text-widget-column.component-Dbn3JMOu.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-rich-text-widget-edit.component-CJZJzh1K.mjs +0 -69
- package/fesm2022/acorex-platform-common-rich-text-widget-edit.component-CJZJzh1K.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-rich-text-widget-view.component-qvUpx39D.mjs +0 -37
- package/fesm2022/acorex-platform-common-rich-text-widget-view.component-qvUpx39D.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-selection-list-widget-column.component-E7yRTViz.mjs +0 -47
- package/fesm2022/acorex-platform-common-selection-list-widget-column.component-E7yRTViz.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-selection-list-widget-edit.component-B8dmJ_jJ.mjs +0 -55
- package/fesm2022/acorex-platform-common-selection-list-widget-edit.component-B8dmJ_jJ.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-selection-list-widget-filter.component-i4syx0Bj.mjs +0 -47
- package/fesm2022/acorex-platform-common-selection-list-widget-filter.component-i4syx0Bj.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-selection-list-widget-view.component-B7disiIF.mjs +0 -47
- package/fesm2022/acorex-platform-common-selection-list-widget-view.component-B7disiIF.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-signature-pad-widget-edit.component-CMoiIhgJ.mjs +0 -130
- package/fesm2022/acorex-platform-common-signature-pad-widget-edit.component-CMoiIhgJ.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-signature-pad-widget-view.component-HfArY6VQ.mjs +0 -43
- package/fesm2022/acorex-platform-common-signature-pad-widget-view.component-HfArY6VQ.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-string-widget-filter.component-CDssxMLR.mjs +0 -127
- package/fesm2022/acorex-platform-common-string-widget-filter.component-CDssxMLR.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-text-widget-column.component-7yp4qqIb.mjs +0 -49
- package/fesm2022/acorex-platform-common-text-widget-column.component-7yp4qqIb.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-text-widget-edit.component-5koh5Aws.mjs +0 -162
- package/fesm2022/acorex-platform-common-text-widget-edit.component-5koh5Aws.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-text-widget-view.component-BH0LTD80.mjs +0 -69
- package/fesm2022/acorex-platform-common-text-widget-view.component-BH0LTD80.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-toggle-widget-column.component-C5dMjerm.mjs +0 -59
- package/fesm2022/acorex-platform-common-toggle-widget-column.component-C5dMjerm.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-toggle-widget-edit.component-JOnGMn-9.mjs +0 -27
- package/fesm2022/acorex-platform-common-toggle-widget-edit.component-JOnGMn-9.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-toggle-widget-view.component-DguoIz_c.mjs +0 -51
- package/fesm2022/acorex-platform-common-toggle-widget-view.component-DguoIz_c.mjs.map +0 -1
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import * as i5 from '@acorex/components/decorators';
|
|
2
|
-
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
3
|
-
import * as i0 from '@angular/core';
|
|
4
|
-
import { Component, ChangeDetectionStrategy } from '@angular/core';
|
|
5
|
-
import { AXPWidgetBase } from './acorex-platform-common.mjs';
|
|
6
|
-
|
|
7
|
-
class AXPCheckboxWidgetViewComponent extends AXPWidgetBase {
|
|
8
|
-
render() {
|
|
9
|
-
this.value = !!this.rawValue;
|
|
10
|
-
}
|
|
11
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPCheckboxWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
12
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPCheckboxWidgetViewComponent, isStandalone: true, selector: "ng-component", inputs: { trulyText: "trulyText", falsyText: "falsyText", negative: "negative" }, usesInheritance: true, ngImport: i0, template: ` <div>
|
|
13
|
-
@if(value){ @if(trulyText){
|
|
14
|
-
<span [class]="negative ? 'ax-text-danger' : 'ax-text-success'">{{ trulyText }}</span>
|
|
15
|
-
}@else {
|
|
16
|
-
|
|
17
|
-
<ax-icon class="fa-solid fa-check ax-text-success"> </ax-icon>
|
|
18
|
-
} }@else { @if(falsyText){
|
|
19
|
-
<span [class]="negative ? 'ax-text-success' : 'ax-text-danger'">{{ falsyText }}</span>
|
|
20
|
-
}@else {
|
|
21
|
-
|
|
22
|
-
<ax-icon class="fa-solid fa-xmark ax-text-danger"> </ax-icon>
|
|
23
|
-
} }
|
|
24
|
-
</div>`, isInline: true, dependencies: [{ kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i5.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
25
|
-
}
|
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPCheckboxWidgetViewComponent, decorators: [{
|
|
27
|
-
type: Component,
|
|
28
|
-
args: [{
|
|
29
|
-
template: ` <div>
|
|
30
|
-
@if(value){ @if(trulyText){
|
|
31
|
-
<span [class]="negative ? 'ax-text-danger' : 'ax-text-success'">{{ trulyText }}</span>
|
|
32
|
-
}@else {
|
|
33
|
-
|
|
34
|
-
<ax-icon class="fa-solid fa-check ax-text-success"> </ax-icon>
|
|
35
|
-
} }@else { @if(falsyText){
|
|
36
|
-
<span [class]="negative ? 'ax-text-success' : 'ax-text-danger'">{{ falsyText }}</span>
|
|
37
|
-
}@else {
|
|
38
|
-
|
|
39
|
-
<ax-icon class="fa-solid fa-xmark ax-text-danger"> </ax-icon>
|
|
40
|
-
} }
|
|
41
|
-
</div>`,
|
|
42
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
43
|
-
imports: [AXDecoratorModule],
|
|
44
|
-
inputs: ['trulyText', 'falsyText', 'negative']
|
|
45
|
-
}]
|
|
46
|
-
}] });
|
|
47
|
-
|
|
48
|
-
export { AXPCheckboxWidgetViewComponent };
|
|
49
|
-
//# sourceMappingURL=acorex-platform-common-checkbox-widget-view.component-3XLnJx9A.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-common-checkbox-widget-view.component-3XLnJx9A.mjs","sources":["../../../../libs/platform/common/src/lib/schema/widgets/checkbox/checkbox-widget-view.component.ts"],"sourcesContent":["import { AXDecoratorModule } from '@acorex/components/decorators';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { AXPWidgetBase } from '../../widget/widget-base';\n@Component({\n template: ` <div>\n @if(value){ @if(trulyText){\n <span [class]=\"negative ? 'ax-text-danger' : 'ax-text-success'\">{{ trulyText }}</span>\n }@else {\n\n <ax-icon class=\"fa-solid fa-check ax-text-success\"> </ax-icon>\n } }@else { @if(falsyText){\n <span [class]=\"negative ? 'ax-text-success' : 'ax-text-danger'\">{{ falsyText }}</span>\n }@else {\n\n <ax-icon class=\"fa-solid fa-xmark ax-text-danger\"> </ax-icon>\n } }\n </div>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [AXDecoratorModule],\n inputs: ['trulyText', 'falsyText', 'negative']\n})\nexport class AXPCheckboxWidgetViewComponent extends AXPWidgetBase {\n protected value!: boolean;\n protected negative!: boolean;\n protected trulyText!: boolean;\n protected falsyText!: boolean;\n\n protected override render(): void {\n this.value = !!this.rawValue;\n }\n}\n"],"names":["i1"],"mappings":";;;;;;AAqBM,MAAO,8BAA+B,SAAQ,aAAa,CAAA;IAM5C,MAAM,GAAA;QACvB,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,IAAI,CAAC,QAAQ;;8GAPnB,8BAA8B,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA9B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,8BAA8B,EAjB7B,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,EAAA,SAAA,EAAA,WAAA,EAAA,SAAA,EAAA,WAAA,EAAA,QAAA,EAAA,UAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;AAYL,QAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAEK,iBAAiB,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAA,EAAA,CAAA,wBAAA,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,MAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAGlB,8BAA8B,EAAA,UAAA,EAAA,CAAA;kBAlB1C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;;;;AAYL,QAAA,CAAA;oBACL,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,OAAO,EAAE,CAAC,iBAAiB,CAAC;AAC5B,oBAAA,MAAM,EAAE,CAAC,WAAW,EAAE,WAAW,EAAE,UAAU;AAChD,iBAAA;;;;;"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { AXDateTimeModule } from '@acorex/core/date-time';
|
|
2
|
-
import { AXFormatModule } from '@acorex/core/format';
|
|
3
|
-
import * as i0 from '@angular/core';
|
|
4
|
-
import { Component, ChangeDetectionStrategy } from '@angular/core';
|
|
5
|
-
import { AXPWidgetBase } from './acorex-platform-common.mjs';
|
|
6
|
-
|
|
7
|
-
class AXPDateTimeWidgetColumnComponent extends AXPWidgetBase {
|
|
8
|
-
render() {
|
|
9
|
-
const rawValue = this.rawValue;
|
|
10
|
-
if (rawValue == null) {
|
|
11
|
-
this.convertedValue = null;
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
if (this.isArray(rawValue)) {
|
|
15
|
-
this.convertedValue = rawValue.map((item) => this.formatValue(new Date(item))).join(', ');
|
|
16
|
-
}
|
|
17
|
-
else {
|
|
18
|
-
this.convertedValue = this.formatValue(new Date(rawValue));
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
formatValue(value) {
|
|
22
|
-
if (this.formats?.default) {
|
|
23
|
-
return this.formatService.format(value, 'datetime', { format: this.formats.default });
|
|
24
|
-
}
|
|
25
|
-
else {
|
|
26
|
-
return value.toISOString();
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
isArray(val) {
|
|
30
|
-
return Array.isArray(val);
|
|
31
|
-
}
|
|
32
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPDateTimeWidgetColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
33
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: AXPDateTimeWidgetColumnComponent, isStandalone: true, selector: "ng-component", inputs: { context: "context", value: "value", multiple: "multiple", width: "width", format: "format", allowResizing: "allowResizing" }, usesInheritance: true, ngImport: i0, template: ` <span [title]="convertedValue">{{ convertedValue }}</span> `, isInline: true, dependencies: [{ kind: "ngmodule", type: AXFormatModule }, { kind: "ngmodule", type: AXDateTimeModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
34
|
-
}
|
|
35
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPDateTimeWidgetColumnComponent, decorators: [{
|
|
36
|
-
type: Component,
|
|
37
|
-
args: [{
|
|
38
|
-
template: ` <span [title]="convertedValue">{{ convertedValue }}</span> `,
|
|
39
|
-
imports: [AXFormatModule, AXDateTimeModule],
|
|
40
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
41
|
-
inputs: ['context', 'value', 'multiple', 'width', 'format', 'allowResizing']
|
|
42
|
-
}]
|
|
43
|
-
}] });
|
|
44
|
-
|
|
45
|
-
export { AXPDateTimeWidgetColumnComponent };
|
|
46
|
-
//# sourceMappingURL=acorex-platform-common-dateTime-widget-column.component-CKaMC189.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-common-dateTime-widget-column.component-CKaMC189.mjs","sources":["../../../../libs/platform/common/src/lib/schema/widgets/dateTime/dateTime-widget-column.component.ts"],"sourcesContent":["import { AXDateTimeModule } from '@acorex/core/date-time';\nimport { AXFormatModule } from '@acorex/core/format';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { AXPWidgetBase } from '../../widget/widget-base';\n\n@Component({\n template: ` <span [title]=\"convertedValue\">{{ convertedValue }}</span> `,\n imports: [AXFormatModule, AXDateTimeModule],\n changeDetection: ChangeDetectionStrategy.OnPush,\n inputs: ['context', 'value', 'multiple', 'width', 'format', 'allowResizing']\n})\nexport class AXPDateTimeWidgetColumnComponent extends AXPWidgetBase {\n protected convertedValue!: string | null;\n protected multiple!: boolean;\n\n override render() {\n const rawValue = this.rawValue;\n if (rawValue == null) {\n this.convertedValue = null;\n return;\n }\n if (this.isArray(rawValue)) {\n this.convertedValue = rawValue.map((item: Date) => this.formatValue(new Date(item))).join(', ');\n } else {\n this.convertedValue = this.formatValue(new Date(rawValue));\n }\n }\n\n protected formatValue(value: Date) {\n if (this.formats?.default) {\n return this.formatService.format(value, 'datetime', { format: this.formats.default });\n } else {\n return value.toISOString();\n }\n }\n\n protected isArray(val: any) {\n return Array.isArray(val);\n }\n}\n"],"names":[],"mappings":";;;;;;AAWM,MAA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,OAAA,EAAA,SAAA,EAAA,KAAA,EAAA,OAAA,EAAA,QAAA,EAAA,UAAA,EAAA,KAAA,EAAA,OAAA,EAAA,MAAA,EAAA,QAAA,EAAA,aAAA,EAAA,eAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA,4DAAA,CAA8D,EAC9D,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,cAAc,8BAAE,gBAAgB,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAIjC,gCAAgC,EAAA,UAAA,EAAA,CAAA;kBAN5C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,CAA8D,4DAAA,CAAA;AACxE,oBAAA,OAAO,EAAE,CAAC,cAAc,EAAE,gBAAgB,CAAC;oBAC3C,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,MAAM,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,eAAe;AAC9E,iBAAA;;;;;"}
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
import * as i2$1 from '@acorex/components/button';
|
|
2
|
-
import { AXButtonModule } from '@acorex/components/button';
|
|
3
|
-
import * as i3 from '@acorex/components/datetime-box';
|
|
4
|
-
import { AXDateTimeBoxModule } from '@acorex/components/datetime-box';
|
|
5
|
-
import * as i5 from '@acorex/components/decorators';
|
|
6
|
-
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
7
|
-
import * as i3$1 from '@acorex/components/form';
|
|
8
|
-
import { AXFormModule } from '@acorex/components/form';
|
|
9
|
-
import { AXFormatModule } from '@acorex/core/format';
|
|
10
|
-
import * as i1 from '@angular/common';
|
|
11
|
-
import { CommonModule } from '@angular/common';
|
|
12
|
-
import * as i0 from '@angular/core';
|
|
13
|
-
import { signal, effect, Component, ChangeDetectionStrategy } from '@angular/core';
|
|
14
|
-
import * as i2 from '@angular/forms';
|
|
15
|
-
import { FormsModule } from '@angular/forms';
|
|
16
|
-
import { AXPWidgetEditBase, AXPDataGenerator } from './acorex-platform-common.mjs';
|
|
17
|
-
|
|
18
|
-
class AXPDateTimeWidgetEditComponent extends AXPWidgetEditBase {
|
|
19
|
-
constructor() {
|
|
20
|
-
super(...arguments);
|
|
21
|
-
this.format = 'dateTime';
|
|
22
|
-
this.convertedValue = signal([]);
|
|
23
|
-
this.changeValueEffect = effect(() => {
|
|
24
|
-
if (this.multiple) {
|
|
25
|
-
this.value = this.convertedValue().map((i) => i.value);
|
|
26
|
-
}
|
|
27
|
-
else {
|
|
28
|
-
this.value = this.convertedValue().map((i) => i.value)[0];
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
ngOnInit() {
|
|
33
|
-
// ****** Set Format ******
|
|
34
|
-
if (this.format === 'date')
|
|
35
|
-
this.calendarFormat = 'dd/MM/yyyy';
|
|
36
|
-
else if (this.format === 'time')
|
|
37
|
-
this.calendarFormat = 'HH:mm';
|
|
38
|
-
else
|
|
39
|
-
this.calendarFormat = 'dd/MM/yyyy HH:mm';
|
|
40
|
-
// ****** Set Value ******
|
|
41
|
-
if (!this.value || this.value?.length == 0) {
|
|
42
|
-
this.convertedValue.set([{ value: this.getInitValue(), id: AXPDataGenerator.uuid() }]);
|
|
43
|
-
}
|
|
44
|
-
else if (Array.isArray(this.value)) {
|
|
45
|
-
this.convertedValue.set(this.value.map((item) => ({ value: item ? new Date(item) : this.getInitValue(), id: AXPDataGenerator.uuid() })));
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
this.convertedValue.set([{ value: this.value ? new Date(this.value) : this.getInitValue(), id: AXPDataGenerator.uuid() }]);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
handleAddItem() {
|
|
52
|
-
this.convertedValue.update((prev) => [...prev, { value: this.getInitValue(), id: AXPDataGenerator.uuid() }]);
|
|
53
|
-
}
|
|
54
|
-
handleRemoveItem(item) {
|
|
55
|
-
this.convertedValue.update((prev) => prev.filter((c) => c != item));
|
|
56
|
-
}
|
|
57
|
-
handleValueChange(e, id) {
|
|
58
|
-
if (e.isUserInteraction) {
|
|
59
|
-
this.convertedValue.update((prev) => prev.map((i) => (i.id === id ? { value: e.value, id: i.id } : i)));
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
getInitValue() {
|
|
63
|
-
return this.autoSetToday ? new Date() : null;
|
|
64
|
-
}
|
|
65
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPDateTimeWidgetEditComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
66
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPDateTimeWidgetEditComponent, isStandalone: true, selector: "axp-datetime-widget-edit", inputs: { multiple: "multiple" }, usesInheritance: true, ngImport: i0, template: `
|
|
67
|
-
<div class="ax-grid ax-grid-cols-12 ax-gap-4">
|
|
68
|
-
@if(multiple){ @for(item of convertedValue();track $index){
|
|
69
|
-
<ng-container [ngTemplateOutlet]="textBoxTemplate" [ngTemplateOutletContext]="{ $implicit: item }"></ng-container>
|
|
70
|
-
} } @else {
|
|
71
|
-
<ng-container
|
|
72
|
-
[ngTemplateOutlet]="textBoxTemplate"
|
|
73
|
-
[ngTemplateOutletContext]="{ $implicit: convertedValue()[0] }"
|
|
74
|
-
></ng-container>
|
|
75
|
-
}
|
|
76
|
-
<ng-template #textBoxTemplate let-item>
|
|
77
|
-
<ax-datetime-box
|
|
78
|
-
[(ngModel)]="item.value"
|
|
79
|
-
(onValueChanged)="handleValueChange($event, item.id)"
|
|
80
|
-
[format]="calendarFormat"
|
|
81
|
-
[minValue]="minValue"
|
|
82
|
-
[maxValue]="maxValue"
|
|
83
|
-
[placeholder]="prop.description"
|
|
84
|
-
[class]="multiple ? 'ax-col-start-1 ax-col-end-11 lg:ax-col-end-12' : 'ax-col-start-1 ax-col-end-13'"
|
|
85
|
-
>
|
|
86
|
-
@for(vl of validations;track $index) {
|
|
87
|
-
<ax-validation-rule [rule]="vl.rule" [options]="vl.options"></ax-validation-rule>
|
|
88
|
-
}
|
|
89
|
-
<ax-clear-button></ax-clear-button>
|
|
90
|
-
</ax-datetime-box>
|
|
91
|
-
@if(multiple){
|
|
92
|
-
<ax-button
|
|
93
|
-
look="twotone"
|
|
94
|
-
color="danger"
|
|
95
|
-
(onClick)="handleRemoveItem(item)"
|
|
96
|
-
class=" ax-col-start-11 lg:ax-col-start-12 ax-col-end-13 ax-justify-self-end"
|
|
97
|
-
>
|
|
98
|
-
<ax-icon icon="fa-regular fa-xmark"></ax-icon>
|
|
99
|
-
</ax-button>
|
|
100
|
-
}
|
|
101
|
-
</ng-template>
|
|
102
|
-
@if(multiple){
|
|
103
|
-
<ax-button
|
|
104
|
-
[text]="!convertedValue().length ? 'Add New' : 'Add Another'"
|
|
105
|
-
look="twotone"
|
|
106
|
-
(onClick)="handleAddItem()"
|
|
107
|
-
class="ax-col-start-8 lg:ax-col-start-10 2xl:ax-col-start-10 ax-col-end-13"
|
|
108
|
-
>
|
|
109
|
-
<ax-prefix>
|
|
110
|
-
<ax-icon class="fa-solid fa-add"></ax-icon>
|
|
111
|
-
</ax-prefix>
|
|
112
|
-
</ax-button>
|
|
113
|
-
}
|
|
114
|
-
</div>
|
|
115
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXFormatModule }, { kind: "ngmodule", type: AXDateTimeBoxModule }, { kind: "component", type: i3.AXDateTimeBoxComponent, selector: "ax-datetime-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "minValue", "maxValue", "value", "state", "name", "depth", "id", "type", "look", "holidayDates", "allowTyping", "format"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "onOpened", "onClosed", "readonlyChange", "disabledChange", "formatChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i5.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i5.AXDecoratorClearButtonComponent, selector: "ax-clear-button", inputs: ["icon"] }, { kind: "component", type: i5.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-sub-title, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i2$1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type", "responsiveOn", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "responsiveOnChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXFormModule }, { kind: "directive", type: i3$1.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
116
|
-
}
|
|
117
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPDateTimeWidgetEditComponent, decorators: [{
|
|
118
|
-
type: Component,
|
|
119
|
-
args: [{
|
|
120
|
-
selector: 'axp-datetime-widget-edit',
|
|
121
|
-
template: `
|
|
122
|
-
<div class="ax-grid ax-grid-cols-12 ax-gap-4">
|
|
123
|
-
@if(multiple){ @for(item of convertedValue();track $index){
|
|
124
|
-
<ng-container [ngTemplateOutlet]="textBoxTemplate" [ngTemplateOutletContext]="{ $implicit: item }"></ng-container>
|
|
125
|
-
} } @else {
|
|
126
|
-
<ng-container
|
|
127
|
-
[ngTemplateOutlet]="textBoxTemplate"
|
|
128
|
-
[ngTemplateOutletContext]="{ $implicit: convertedValue()[0] }"
|
|
129
|
-
></ng-container>
|
|
130
|
-
}
|
|
131
|
-
<ng-template #textBoxTemplate let-item>
|
|
132
|
-
<ax-datetime-box
|
|
133
|
-
[(ngModel)]="item.value"
|
|
134
|
-
(onValueChanged)="handleValueChange($event, item.id)"
|
|
135
|
-
[format]="calendarFormat"
|
|
136
|
-
[minValue]="minValue"
|
|
137
|
-
[maxValue]="maxValue"
|
|
138
|
-
[placeholder]="prop.description"
|
|
139
|
-
[class]="multiple ? 'ax-col-start-1 ax-col-end-11 lg:ax-col-end-12' : 'ax-col-start-1 ax-col-end-13'"
|
|
140
|
-
>
|
|
141
|
-
@for(vl of validations;track $index) {
|
|
142
|
-
<ax-validation-rule [rule]="vl.rule" [options]="vl.options"></ax-validation-rule>
|
|
143
|
-
}
|
|
144
|
-
<ax-clear-button></ax-clear-button>
|
|
145
|
-
</ax-datetime-box>
|
|
146
|
-
@if(multiple){
|
|
147
|
-
<ax-button
|
|
148
|
-
look="twotone"
|
|
149
|
-
color="danger"
|
|
150
|
-
(onClick)="handleRemoveItem(item)"
|
|
151
|
-
class=" ax-col-start-11 lg:ax-col-start-12 ax-col-end-13 ax-justify-self-end"
|
|
152
|
-
>
|
|
153
|
-
<ax-icon icon="fa-regular fa-xmark"></ax-icon>
|
|
154
|
-
</ax-button>
|
|
155
|
-
}
|
|
156
|
-
</ng-template>
|
|
157
|
-
@if(multiple){
|
|
158
|
-
<ax-button
|
|
159
|
-
[text]="!convertedValue().length ? 'Add New' : 'Add Another'"
|
|
160
|
-
look="twotone"
|
|
161
|
-
(onClick)="handleAddItem()"
|
|
162
|
-
class="ax-col-start-8 lg:ax-col-start-10 2xl:ax-col-start-10 ax-col-end-13"
|
|
163
|
-
>
|
|
164
|
-
<ax-prefix>
|
|
165
|
-
<ax-icon class="fa-solid fa-add"></ax-icon>
|
|
166
|
-
</ax-prefix>
|
|
167
|
-
</ax-button>
|
|
168
|
-
}
|
|
169
|
-
</div>
|
|
170
|
-
`,
|
|
171
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
172
|
-
imports: [CommonModule, FormsModule, AXFormatModule, AXDateTimeBoxModule, AXDecoratorModule, AXButtonModule, AXFormModule],
|
|
173
|
-
inputs: ['multiple']
|
|
174
|
-
}]
|
|
175
|
-
}] });
|
|
176
|
-
|
|
177
|
-
export { AXPDateTimeWidgetEditComponent };
|
|
178
|
-
//# sourceMappingURL=acorex-platform-common-dateTime-widget-edit.component-B50J-bwp.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-common-dateTime-widget-edit.component-B50J-bwp.mjs","sources":["../../../../libs/platform/common/src/lib/schema/widgets/dateTime/dateTime-widget-edit.component.ts"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXValueChangedEvent } from '@acorex/components/common';\nimport { AXDateTimeBoxModule } from '@acorex/components/datetime-box';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXFormModule } from '@acorex/components/form';\nimport { AXFormatModule } from '@acorex/core/format';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, WritableSignal, effect, inject, signal } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { AXPWidgetEditBase } from '../../widget/widget-base';\nimport { AXPDataGenerator } from '../../../utils';\n\n@Component({\n selector: 'axp-datetime-widget-edit',\n template: `\n <div class=\"ax-grid ax-grid-cols-12 ax-gap-4\">\n @if(multiple){ @for(item of convertedValue();track $index){\n <ng-container [ngTemplateOutlet]=\"textBoxTemplate\" [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-container>\n } } @else {\n <ng-container\n [ngTemplateOutlet]=\"textBoxTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: convertedValue()[0] }\"\n ></ng-container>\n }\n <ng-template #textBoxTemplate let-item>\n <ax-datetime-box\n [(ngModel)]=\"item.value\"\n (onValueChanged)=\"handleValueChange($event, item.id)\"\n [format]=\"calendarFormat\"\n [minValue]=\"minValue\"\n [maxValue]=\"maxValue\"\n [placeholder]=\"prop.description\"\n [class]=\"multiple ? 'ax-col-start-1 ax-col-end-11 lg:ax-col-end-12' : 'ax-col-start-1 ax-col-end-13'\"\n >\n @for(vl of validations;track $index) {\n <ax-validation-rule [rule]=\"vl.rule\" [options]=\"vl.options\"></ax-validation-rule>\n }\n <ax-clear-button></ax-clear-button>\n </ax-datetime-box>\n @if(multiple){\n <ax-button\n look=\"twotone\"\n color=\"danger\"\n (onClick)=\"handleRemoveItem(item)\"\n class=\" ax-col-start-11 lg:ax-col-start-12 ax-col-end-13 ax-justify-self-end\"\n >\n <ax-icon icon=\"fa-regular fa-xmark\"></ax-icon>\n </ax-button>\n }\n </ng-template>\n @if(multiple){\n <ax-button\n [text]=\"!convertedValue().length ? 'Add New' : 'Add Another'\"\n look=\"twotone\"\n (onClick)=\"handleAddItem()\"\n class=\"ax-col-start-8 lg:ax-col-start-10 2xl:ax-col-start-10 ax-col-end-13\"\n >\n <ax-prefix>\n <ax-icon class=\"fa-solid fa-add\"></ax-icon>\n </ax-prefix>\n </ax-button>\n }\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule, FormsModule, AXFormatModule, AXDateTimeBoxModule, AXDecoratorModule, AXButtonModule, AXFormModule],\n inputs: ['multiple']\n})\nexport class AXPDateTimeWidgetEditComponent extends AXPWidgetEditBase {\n\n public multiple!: boolean;\n public autoSetToday!: boolean;\n\n\n protected minValue: any;\n protected maxValue: any;\n protected format: string = 'dateTime';\n protected calendarFormat!: string;\n protected convertedValue: WritableSignal<{ value: Date | null; id: string }[]> = signal([]);\n\n private changeValueEffect = effect(() => {\n if (this.multiple) {\n this.value = this.convertedValue().map((i) => i.value);\n } else {\n this.value = this.convertedValue().map((i) => i.value)[0];\n }\n });\n\n ngOnInit(): void {\n // ****** Set Format ******\n if (this.format === 'date') this.calendarFormat = 'dd/MM/yyyy';\n else if (this.format === 'time') this.calendarFormat = 'HH:mm';\n else this.calendarFormat = 'dd/MM/yyyy HH:mm';\n // ****** Set Value ******\n if (!this.value || this.value?.length == 0) {\n this.convertedValue.set([{ value: this.getInitValue(), id: AXPDataGenerator.uuid() }]);\n } else if (Array.isArray(this.value)) {\n this.convertedValue.set(this.value.map((item) => ({ value: item ? new Date(item) : this.getInitValue(), id: AXPDataGenerator.uuid() })));\n } else {\n this.convertedValue.set([{ value: this.value ? new Date(this.value) : this.getInitValue(), id: AXPDataGenerator.uuid() }]);\n }\n }\n\n protected handleAddItem() {\n this.convertedValue.update((prev) => [...prev, { value: this.getInitValue(), id: AXPDataGenerator.uuid() }]);\n }\n\n protected handleRemoveItem(item: any) {\n this.convertedValue.update((prev) => prev.filter((c: any) => c != item));\n }\n protected handleValueChange(e: AXValueChangedEvent, id: string) {\n if (e.isUserInteraction) {\n this.convertedValue.update((prev) => prev.map((i) => (i.id === id ? { value: e.value, id: i.id } : i)));\n }\n }\n\n private getInitValue(): Date | null {\n return this.autoSetToday ? new Date() : null;\n }\n}\n"],"names":["i4","i5","i6"],"mappings":";;;;;;;;;;;;;;;;;AAoEM,MAAO,8BAA+B,SAAQ,iBAAiB,CAAA;AAxDrE,IAAA,WAAA,GAAA;;QAgEY,IAAM,CAAA,MAAA,GAAW,UAAU;AAE3B,QAAA,IAAA,CAAA,cAAc,GAAyD,MAAM,CAAC,EAAE,CAAC;AAEnF,QAAA,IAAA,CAAA,iBAAiB,GAAG,MAAM,CAAC,MAAK;AACtC,YAAA,IAAI,IAAI,CAAC,QAAQ,EAAE;AACjB,gBAAA,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BAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,SAAA,EAAA,SAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAGhH,8BAA8B,EAAA,UAAA,EAAA,CAAA;kBAxD1C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,0BAA0B;AACpC,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiDX,EAAA,CAAA;oBACC,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,cAAc,EAAE,YAAY,CAAC;oBAC1H,MAAM,EAAE,CAAC,UAAU;AACtB,iBAAA;;;;;"}
|
|
@@ -1,286 +0,0 @@
|
|
|
1
|
-
import * as i3$1 from '@acorex/components/datetime-box';
|
|
2
|
-
import { AXDateTimeBoxModule } from '@acorex/components/datetime-box';
|
|
3
|
-
import * as i5 from '@acorex/components/decorators';
|
|
4
|
-
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
5
|
-
import * as i6 from '@acorex/components/select-box';
|
|
6
|
-
import { AXSelectBoxModule } from '@acorex/components/select-box';
|
|
7
|
-
import { AXCalendarService } from '@acorex/core/date-time';
|
|
8
|
-
import { AXFormatModule } from '@acorex/core/format';
|
|
9
|
-
import * as i3 from '@acorex/core/translation';
|
|
10
|
-
import { AXTranslationModule } from '@acorex/core/translation';
|
|
11
|
-
import * as i1 from '@angular/common';
|
|
12
|
-
import { CommonModule } from '@angular/common';
|
|
13
|
-
import * as i0 from '@angular/core';
|
|
14
|
-
import { signal, inject, effect, Component, ChangeDetectionStrategy } from '@angular/core';
|
|
15
|
-
import * as i2 from '@angular/forms';
|
|
16
|
-
import { FormsModule } from '@angular/forms';
|
|
17
|
-
import { AXPWidgetFilterBase } from './acorex-platform-common.mjs';
|
|
18
|
-
|
|
19
|
-
class AXPDateTimeWidgetFilterComponent extends AXPWidgetFilterBase {
|
|
20
|
-
constructor() {
|
|
21
|
-
super(...arguments);
|
|
22
|
-
this.selectedItem = signal('');
|
|
23
|
-
this.dataSource = [];
|
|
24
|
-
this.filterFieldFrom = '';
|
|
25
|
-
this.filterFieldTo = '';
|
|
26
|
-
this.calendarService = inject(AXCalendarService);
|
|
27
|
-
this.changeValueEffect = effect(() => {
|
|
28
|
-
this.getSelectedItemValue(this.selectedItem());
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
handleChangeValue(val, type) {
|
|
32
|
-
switch (type) {
|
|
33
|
-
case 'self':
|
|
34
|
-
this.value = val.toISOString();
|
|
35
|
-
break;
|
|
36
|
-
case 'to':
|
|
37
|
-
this.value.to = val.toISOString();
|
|
38
|
-
break;
|
|
39
|
-
case 'from':
|
|
40
|
-
this.value.from = val.toISOString();
|
|
41
|
-
break;
|
|
42
|
-
default:
|
|
43
|
-
break;
|
|
44
|
-
}
|
|
45
|
-
console.log(this.value);
|
|
46
|
-
}
|
|
47
|
-
ngOnInit() {
|
|
48
|
-
if (this.operator == 'greaterThan' || this.operator == 'lessThan') {
|
|
49
|
-
this.selectedItem.set(this.convertToTitleCase(this.operator));
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
this.selectedItem.set(this.convertToTitleCase(this.value));
|
|
53
|
-
}
|
|
54
|
-
this.dataSource = [
|
|
55
|
-
'Today',
|
|
56
|
-
'This Week',
|
|
57
|
-
'This Month',
|
|
58
|
-
'Yesterday',
|
|
59
|
-
'Last Week',
|
|
60
|
-
'Last Month',
|
|
61
|
-
'Tomorrow',
|
|
62
|
-
'Next Week',
|
|
63
|
-
'Next Month',
|
|
64
|
-
'Between',
|
|
65
|
-
'Greater Than',
|
|
66
|
-
'Less Than',
|
|
67
|
-
];
|
|
68
|
-
}
|
|
69
|
-
changeSelectedItem(e) {
|
|
70
|
-
if (e.isUserInteraction) {
|
|
71
|
-
this.selectedItem.set(e.value);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
getSelectedItemValue(itemTitle) {
|
|
75
|
-
this.operator = 'between';
|
|
76
|
-
const currentDate = this.calendarService.now().date;
|
|
77
|
-
const calendar = this.calendarService.calendar;
|
|
78
|
-
switch (itemTitle) {
|
|
79
|
-
case 'Today':
|
|
80
|
-
this.value = {
|
|
81
|
-
from: calendar.startOf(currentDate, 'day').date.toISOString(),
|
|
82
|
-
to: calendar.endOf(currentDate, 'day').date.toISOString(),
|
|
83
|
-
filterFieldFrom: this.filterFieldFrom || this.schema.name,
|
|
84
|
-
filterFieldTo: this.filterFieldTo || this.schema.name,
|
|
85
|
-
};
|
|
86
|
-
break;
|
|
87
|
-
case 'This Week':
|
|
88
|
-
this.value = {
|
|
89
|
-
from: calendar.startOf(currentDate, 'week').date.toISOString(),
|
|
90
|
-
to: calendar.endOf(currentDate, 'week').date.toISOString(),
|
|
91
|
-
filterFieldFrom: this.filterFieldFrom || this.schema.name,
|
|
92
|
-
filterFieldTo: this.filterFieldTo || this.schema.name,
|
|
93
|
-
};
|
|
94
|
-
break;
|
|
95
|
-
case 'This Month':
|
|
96
|
-
this.value = {
|
|
97
|
-
from: calendar.startOf(currentDate, 'month').date.toISOString(),
|
|
98
|
-
to: calendar.endOf(currentDate, 'month').date.toISOString(),
|
|
99
|
-
filterFieldFrom: this.filterFieldFrom || this.schema.name,
|
|
100
|
-
filterFieldTo: this.filterFieldTo || this.schema.name,
|
|
101
|
-
};
|
|
102
|
-
break;
|
|
103
|
-
case 'Yesterday':
|
|
104
|
-
const yesterDay = calendar.add(currentDate, 'day', -1);
|
|
105
|
-
this.value = {
|
|
106
|
-
from: yesterDay.startOf('day').date.toISOString(),
|
|
107
|
-
to: yesterDay.endOf('day').date.toISOString(),
|
|
108
|
-
filterFieldFrom: this.filterFieldFrom || this.schema.name,
|
|
109
|
-
filterFieldTo: this.filterFieldTo || this.schema.name,
|
|
110
|
-
};
|
|
111
|
-
break;
|
|
112
|
-
case 'Last Week':
|
|
113
|
-
const lastWeek = calendar.add(currentDate, 'week', -1);
|
|
114
|
-
this.value = {
|
|
115
|
-
from: lastWeek.startOf('week').date.toISOString(),
|
|
116
|
-
to: lastWeek.endOf('week').date.toISOString(),
|
|
117
|
-
filterFieldFrom: this.filterFieldFrom || this.schema.name,
|
|
118
|
-
filterFieldTo: this.filterFieldTo || this.schema.name,
|
|
119
|
-
};
|
|
120
|
-
break;
|
|
121
|
-
case 'Last Month':
|
|
122
|
-
const lastMonth = calendar.add(currentDate, 'month', -1);
|
|
123
|
-
this.value = {
|
|
124
|
-
from: lastMonth.startOf('month').date.toISOString(),
|
|
125
|
-
to: lastMonth.endOf('month').date.toISOString(),
|
|
126
|
-
filterFieldFrom: this.filterFieldFrom || this.schema.name,
|
|
127
|
-
filterFieldTo: this.filterFieldTo || this.schema.name,
|
|
128
|
-
};
|
|
129
|
-
break;
|
|
130
|
-
case 'Tomorrow':
|
|
131
|
-
const tomorrow = calendar.add(currentDate, 'day', 1);
|
|
132
|
-
this.value = {
|
|
133
|
-
from: tomorrow.startOf('day').date.toISOString(),
|
|
134
|
-
to: tomorrow.endOf('day').date.toISOString(),
|
|
135
|
-
filterFieldFrom: this.filterFieldFrom || this.schema.name,
|
|
136
|
-
filterFieldTo: this.filterFieldTo || this.schema.name,
|
|
137
|
-
};
|
|
138
|
-
break;
|
|
139
|
-
case 'Next Week':
|
|
140
|
-
const nextWeek = calendar.add(currentDate, 'week', 1);
|
|
141
|
-
this.value = {
|
|
142
|
-
from: nextWeek.startOf('week').date.toISOString(),
|
|
143
|
-
to: nextWeek.endOf('week').date.toISOString(),
|
|
144
|
-
filterFieldFrom: this.filterFieldFrom || this.schema.name,
|
|
145
|
-
filterFieldTo: this.filterFieldTo || this.schema.name,
|
|
146
|
-
};
|
|
147
|
-
break;
|
|
148
|
-
case 'Next Month':
|
|
149
|
-
const nextMonth = calendar.add(currentDate, 'month', -1);
|
|
150
|
-
this.value = {
|
|
151
|
-
from: nextMonth.startOf('month').date.toISOString(),
|
|
152
|
-
to: nextMonth.endOf('month').date.toISOString(),
|
|
153
|
-
filterFieldFrom: this.filterFieldFrom || this.schema.name,
|
|
154
|
-
filterFieldTo: this.filterFieldTo || this.schema.name,
|
|
155
|
-
};
|
|
156
|
-
break;
|
|
157
|
-
case 'Between':
|
|
158
|
-
this.value = {
|
|
159
|
-
from: '',
|
|
160
|
-
to: '',
|
|
161
|
-
filterFieldFrom: this.filterFieldFrom || this.schema.name,
|
|
162
|
-
filterFieldTo: this.filterFieldTo || this.schema.name,
|
|
163
|
-
};
|
|
164
|
-
break;
|
|
165
|
-
case 'Greater Than':
|
|
166
|
-
this.operator = 'greaterThan';
|
|
167
|
-
break;
|
|
168
|
-
case 'Less Than':
|
|
169
|
-
this.operator = 'lessThan';
|
|
170
|
-
break;
|
|
171
|
-
default:
|
|
172
|
-
break;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
convertToTitleCase(str) {
|
|
176
|
-
return str
|
|
177
|
-
?.replace(/[A-Z]/g, (match) => ` ${match}`)
|
|
178
|
-
?.trim()
|
|
179
|
-
?.replace(/^\w/, (match) => match.toUpperCase())
|
|
180
|
-
?.replace(/\b\w/g, (match) => match.toUpperCase());
|
|
181
|
-
}
|
|
182
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPDateTimeWidgetFilterComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
183
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPDateTimeWidgetFilterComponent, isStandalone: true, selector: "axp-datetime-widget-filter", inputs: { value: "value", operator: "operator" }, outputs: { valueChange: "valueChange", operatorChange: "operatorChange" }, usesInheritance: true, ngImport: i0, template: `
|
|
184
|
-
<div class="ax-flex-1">
|
|
185
|
-
<ax-select-box
|
|
186
|
-
[ngModel]="selectedItem()"
|
|
187
|
-
[placeholder]="('select' | translate | async) ?? 'Select...'"
|
|
188
|
-
(onValueChanged)="changeSelectedItem($event)"
|
|
189
|
-
[dataSource]="dataSource"
|
|
190
|
-
>
|
|
191
|
-
</ax-select-box>
|
|
192
|
-
@if(selectedItem()=="Between"){
|
|
193
|
-
<div class="ax-flex ax-gap-2 ax-mt-2">
|
|
194
|
-
<ax-datetime-box
|
|
195
|
-
placeholder="From"
|
|
196
|
-
[ngModel]="value.from"
|
|
197
|
-
(ngModelChange)="handleChangeValue($event, 'from')"
|
|
198
|
-
class="ax-col-start-1 ax-col-end-13 lg:ax-col-end-5 xl:ax-col-end-4 2xl:ax-col-end-3"
|
|
199
|
-
>
|
|
200
|
-
<ax-clear-button></ax-clear-button>
|
|
201
|
-
</ax-datetime-box>
|
|
202
|
-
<ax-datetime-box
|
|
203
|
-
placeholder="To"
|
|
204
|
-
[ngModel]="value.to"
|
|
205
|
-
(ngModelChange)="handleChangeValue($event, 'to')"
|
|
206
|
-
class="ax-col-start-1 ax-col-end-13 lg:ax-col-end-5 xl:ax-col-end-4 2xl:ax-col-end-3"
|
|
207
|
-
>
|
|
208
|
-
<ax-clear-button></ax-clear-button>
|
|
209
|
-
</ax-datetime-box>
|
|
210
|
-
</div>
|
|
211
|
-
} @if(selectedItem()=="Greater Than" || selectedItem()=="Less Than"){
|
|
212
|
-
<div class="ax-mt-2">
|
|
213
|
-
<ax-datetime-box
|
|
214
|
-
[ngModel]="value"
|
|
215
|
-
(ngModelChange)="handleChangeValue($event, 'self')"
|
|
216
|
-
class="ax-col-start-1 ax-col-end-13 lg:ax-col-end-5 xl:ax-col-end-4 2xl:ax-col-end-3"
|
|
217
|
-
>
|
|
218
|
-
<ax-clear-button></ax-clear-button>
|
|
219
|
-
</ax-datetime-box>
|
|
220
|
-
</div>
|
|
221
|
-
}
|
|
222
|
-
</div>
|
|
223
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXFormatModule }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i3.AXTranslatorPipe, name: "translate" }, { kind: "ngmodule", type: AXDateTimeBoxModule }, { kind: "component", type: i3$1.AXDateTimeBoxComponent, selector: "ax-datetime-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "minValue", "maxValue", "value", "state", "name", "depth", "id", "type", "look", "holidayDates", "allowTyping", "format"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "onOpened", "onClosed", "readonlyChange", "disabledChange", "formatChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i5.AXDecoratorClearButtonComponent, selector: "ax-clear-button", inputs: ["icon"] }, { kind: "ngmodule", type: AXSelectBoxModule }, { kind: "component", type: i6.AXSelectBoxComponent, selector: "ax-select-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "minValue", "maxValue", "value", "state", "name", "id", "type", "look", "multiple", "valueField", "textField", "textTemplate", "dataSource", "caption", "itemTemplate", "selectedTemplate", "emptyTemplate", "loadingTemplate", "dropdownWidth"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onOpened", "onClosed"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
224
|
-
}
|
|
225
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPDateTimeWidgetFilterComponent, decorators: [{
|
|
226
|
-
type: Component,
|
|
227
|
-
args: [{
|
|
228
|
-
selector: 'axp-datetime-widget-filter',
|
|
229
|
-
template: `
|
|
230
|
-
<div class="ax-flex-1">
|
|
231
|
-
<ax-select-box
|
|
232
|
-
[ngModel]="selectedItem()"
|
|
233
|
-
[placeholder]="('select' | translate | async) ?? 'Select...'"
|
|
234
|
-
(onValueChanged)="changeSelectedItem($event)"
|
|
235
|
-
[dataSource]="dataSource"
|
|
236
|
-
>
|
|
237
|
-
</ax-select-box>
|
|
238
|
-
@if(selectedItem()=="Between"){
|
|
239
|
-
<div class="ax-flex ax-gap-2 ax-mt-2">
|
|
240
|
-
<ax-datetime-box
|
|
241
|
-
placeholder="From"
|
|
242
|
-
[ngModel]="value.from"
|
|
243
|
-
(ngModelChange)="handleChangeValue($event, 'from')"
|
|
244
|
-
class="ax-col-start-1 ax-col-end-13 lg:ax-col-end-5 xl:ax-col-end-4 2xl:ax-col-end-3"
|
|
245
|
-
>
|
|
246
|
-
<ax-clear-button></ax-clear-button>
|
|
247
|
-
</ax-datetime-box>
|
|
248
|
-
<ax-datetime-box
|
|
249
|
-
placeholder="To"
|
|
250
|
-
[ngModel]="value.to"
|
|
251
|
-
(ngModelChange)="handleChangeValue($event, 'to')"
|
|
252
|
-
class="ax-col-start-1 ax-col-end-13 lg:ax-col-end-5 xl:ax-col-end-4 2xl:ax-col-end-3"
|
|
253
|
-
>
|
|
254
|
-
<ax-clear-button></ax-clear-button>
|
|
255
|
-
</ax-datetime-box>
|
|
256
|
-
</div>
|
|
257
|
-
} @if(selectedItem()=="Greater Than" || selectedItem()=="Less Than"){
|
|
258
|
-
<div class="ax-mt-2">
|
|
259
|
-
<ax-datetime-box
|
|
260
|
-
[ngModel]="value"
|
|
261
|
-
(ngModelChange)="handleChangeValue($event, 'self')"
|
|
262
|
-
class="ax-col-start-1 ax-col-end-13 lg:ax-col-end-5 xl:ax-col-end-4 2xl:ax-col-end-3"
|
|
263
|
-
>
|
|
264
|
-
<ax-clear-button></ax-clear-button>
|
|
265
|
-
</ax-datetime-box>
|
|
266
|
-
</div>
|
|
267
|
-
}
|
|
268
|
-
</div>
|
|
269
|
-
`,
|
|
270
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
271
|
-
imports: [
|
|
272
|
-
CommonModule,
|
|
273
|
-
FormsModule,
|
|
274
|
-
AXFormatModule,
|
|
275
|
-
AXTranslationModule,
|
|
276
|
-
AXDateTimeBoxModule,
|
|
277
|
-
AXDecoratorModule,
|
|
278
|
-
AXSelectBoxModule,
|
|
279
|
-
],
|
|
280
|
-
outputs: ['valueChange', 'operatorChange'],
|
|
281
|
-
inputs: ['value', 'operator']
|
|
282
|
-
}]
|
|
283
|
-
}] });
|
|
284
|
-
|
|
285
|
-
export { AXPDateTimeWidgetFilterComponent };
|
|
286
|
-
//# sourceMappingURL=acorex-platform-common-dateTime-widget-filter.component-CTV2a3c0.mjs.map
|