@acorex/platform 19.1.5 → 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 +20 -7
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-filters.mjs +0 -2
- package/fesm2022/acorex-platform-layout-filters.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-xlBBA76O.mjs → acorex-platform-themes-default-entity-master-list-view.component-BUL6ti4U.mjs} +14 -14
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-BUL6ti4U.mjs.map +1 -0
- 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 +29 -17
- 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 +164 -99
- package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
- package/layout/entity/lib/index.d.ts +1 -0
- package/{layouts/lib/admin/entity-layout → layout/entity/lib}/workflows/index.d.ts +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 +13 -13
- 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/index.d.ts +1 -1
- package/themes/shared/lib/components/layout-elements/{layout-list-component.d.ts → 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/filters/date-time-filter/date-time-filter-widget-edit.component.d.ts +2 -3
- package/widgets/lib/widgets/filters/select-filter/select-filter-widget-edit.component.d.ts +1 -1
- package/widgets/lib/widgets/property-editors/flex-options/flex-options-widget-editor.component.d.ts +15 -9
- package/widgets/lib/widgets/property-editors/property-editor-helper.d.ts +6 -5
- package/widgets/lib/widgets/property-editors/spacing/spacing-widget-editor.component.d.ts +1 -0
- 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-CHT12edE.mjs +0 -69
- package/fesm2022/acorex-platform-common-rich-text-widget-edit.component-CHT12edE.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
- package/fesm2022/acorex-platform-layouts-entity-create-view.component-1Yw4H3CW.mjs +0 -121
- package/fesm2022/acorex-platform-layouts-entity-create-view.component-1Yw4H3CW.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-entity-import-view.component-BIHTWoXR.mjs +0 -91
- package/fesm2022/acorex-platform-layouts-entity-import-view.component-BIHTWoXR.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-entity-modify-view.component-Cb2Yvtav.mjs +0 -96
- package/fesm2022/acorex-platform-layouts-entity-modify-view.component-Cb2Yvtav.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts.mjs +0 -2483
- package/fesm2022/acorex-platform-layouts.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-xlBBA76O.mjs.map +0 -1
- package/layouts/README.md +0 -3
- package/layouts/index.d.ts +0 -2
- package/layouts/lib/admin/admin.module.d.ts +0 -11
- package/layouts/lib/admin/admin.routes.d.ts +0 -2
- package/layouts/lib/admin/custom-reuse.strategy.d.ts +0 -8
- package/layouts/lib/admin/entity-layout/entity-create-view/entity-create-view.component.d.ts +0 -20
- package/layouts/lib/admin/entity-layout/entity-create-view/entity-create-view.config.d.ts +0 -54
- package/layouts/lib/admin/entity-layout/entity-details-view/detail-view.config.d.ts +0 -48
- package/layouts/lib/admin/entity-layout/entity-details-view/entity-details-view.component.d.ts +0 -83
- package/layouts/lib/admin/entity-layout/entity-details-view/index.d.ts +0 -2
- package/layouts/lib/admin/entity-layout/entity-import-view/entity-import-view.component.d.ts +0 -27
- package/layouts/lib/admin/entity-layout/entity-list-view/components/entity-custom-view/entity-custom-view.component.d.ts +0 -46
- package/layouts/lib/admin/entity-layout/entity-list-view/components/index.d.ts +0 -5
- package/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-columns/list-view-option-columns.component.d.ts +0 -20
- package/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-conditions/list-view-option-conditions.component.d.ts +0 -33
- package/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-conditions/list-view-option-filter-operator.component.d.ts +0 -18
- package/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-sorting/list-view-option-sorting.component.d.ts +0 -21
- package/layouts/lib/admin/entity-layout/entity-list-view/entity-list-view.component.d.ts +0 -79
- package/layouts/lib/admin/entity-layout/entity-list-view/index.d.ts +0 -4
- package/layouts/lib/admin/entity-layout/entity-list-view/list-view.config.d.ts +0 -113
- package/layouts/lib/admin/entity-layout/entity-list-view/list-view.module.d.ts +0 -42
- package/layouts/lib/admin/entity-layout/entity-modify-view/entity-modify-view.component.d.ts +0 -25
- package/layouts/lib/admin/entity-layout/entity-modify-view/entity-modify-view.config.d.ts +0 -31
- package/layouts/lib/admin/entity-layout/entity-quick-view/entity-quick-view.component.d.ts +0 -24
- package/layouts/lib/admin/entity-layout/entity-quick-view/index.d.ts +0 -1
- package/layouts/lib/admin/entity-layout/index.d.ts +0 -4
- package/layouts/lib/admin/entity-layout/workflows/create-entity.workflow.d.ts +0 -31
- package/layouts/lib/admin/entity-layout/workflows/delete-entity.workflow.d.ts +0 -33
- package/layouts/lib/admin/entity-layout/workflows/import-entity.workflow.d.ts +0 -27
- package/layouts/lib/admin/entity-layout/workflows/modify-entity.workflow.d.ts +0 -32
- package/layouts/lib/admin/entity-layout/workflows/modify-section.workflow.d.ts +0 -12
- package/layouts/lib/admin/entity-layout/workflows/show-details.workflow.d.ts +0 -10
- package/layouts/lib/admin/entity-layout/workflows/show-list.workflow.d.ts +0 -10
- package/layouts/lib/admin/entity-layout/workflows/show-quick-view.workflow.d.ts +0 -12
- package/layouts/lib/admin/entity.resolver.d.ts +0 -4
- package/layouts/lib/admin/index.d.ts +0 -5
- package/layouts/lib/layout.module.d.ts +0 -9
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import * as i2 from '@acorex/components/button';
|
|
2
|
-
import { AXButtonModule } from '@acorex/components/button';
|
|
3
|
-
import { AXPopupService } from '@acorex/components/popup';
|
|
4
|
-
import { AXPlatform } from '@acorex/core/platform';
|
|
5
|
-
import { AXPWidgetBase, AXPClipBoardService } from './acorex-platform-common.mjs';
|
|
6
|
-
import { CommonModule } from '@angular/common';
|
|
7
|
-
import * as i0 from '@angular/core';
|
|
8
|
-
import { inject, Component, ChangeDetectionStrategy } from '@angular/core';
|
|
9
|
-
|
|
10
|
-
class AXPPasswordWidgetViewComponent extends AXPWidgetBase {
|
|
11
|
-
constructor() {
|
|
12
|
-
super(...arguments);
|
|
13
|
-
this.clipboard = inject(AXPClipBoardService);
|
|
14
|
-
this.platform = inject(AXPlatform);
|
|
15
|
-
this.popopService = inject(AXPopupService);
|
|
16
|
-
this.showPass = false;
|
|
17
|
-
}
|
|
18
|
-
toggleEye() {
|
|
19
|
-
this.showPass = !this.showPass;
|
|
20
|
-
}
|
|
21
|
-
async openPasswordPopup() {
|
|
22
|
-
const compnent = await import('./acorex-platform-common-change-password.component-DFoC5nP2.mjs');
|
|
23
|
-
this.popopService.open(compnent.ChangePassword, {
|
|
24
|
-
title: 'Change Password',
|
|
25
|
-
draggable: true,
|
|
26
|
-
header: true,
|
|
27
|
-
size: this.platform.is('Mobile') || this.platform.is('SM') ? 'full' : 'md',
|
|
28
|
-
hasBackdrop: true,
|
|
29
|
-
closeButton: true,
|
|
30
|
-
closeOnBackdropClick: true,
|
|
31
|
-
data: {
|
|
32
|
-
password: this.password,
|
|
33
|
-
currentPass: this.currentPass,
|
|
34
|
-
},
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
render() {
|
|
38
|
-
this.password = this.rawValue;
|
|
39
|
-
}
|
|
40
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPPasswordWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
41
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPPasswordWidgetViewComponent, isStandalone: true, selector: "ng-component", inputs: { hasEye: "hasEye", hasCopy: "hasCopy", currentPass: "currentPass" }, usesInheritance: true, ngImport: i0, template: `<div class="ax-flex ax-justify-between ">
|
|
42
|
-
<div class="ax-col-start-1 ax-col-end-10 lg:ax-col-end-7">
|
|
43
|
-
<div class="ax-flex ax-flex-1 ax-gap-3 ax-group ax-items-start ax-w-max">
|
|
44
|
-
<span>{{ showPass ? password : '*******' }}</span>
|
|
45
|
-
@if(hasEye){
|
|
46
|
-
<span
|
|
47
|
-
class="ax-text-neutral-400 ax-cursor-pointer ax-invisible group-hover:ax-visible hover:!ax-text-primary-500"
|
|
48
|
-
(click)="toggleEye()"
|
|
49
|
-
>
|
|
50
|
-
@if(!showPass){
|
|
51
|
-
<i class="fa-solid fa-eye"></i>
|
|
52
|
-
}@else {
|
|
53
|
-
<i class="fa-solid fa-eye-slash"></i>
|
|
54
|
-
}
|
|
55
|
-
</span>
|
|
56
|
-
} @if(hasCopy && hasEye){
|
|
57
|
-
<span
|
|
58
|
-
class="ax-text-neutral-400 ax-cursor-pointer ax-invisible group-hover:ax-visible hover:!ax-text-primary-500"
|
|
59
|
-
(click)="clipboard.copy('Password', password)"
|
|
60
|
-
>
|
|
61
|
-
<i class="fa-solid fa-copy "></i>
|
|
62
|
-
</span>
|
|
63
|
-
}
|
|
64
|
-
</div>
|
|
65
|
-
</div>
|
|
66
|
-
@if(!this.prop.canEdit){
|
|
67
|
-
<ax-button (onClick)="openPasswordPopup()" color="ghost" text="Change Password"></ax-button>
|
|
68
|
-
}
|
|
69
|
-
</div>`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i2.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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
70
|
-
}
|
|
71
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPPasswordWidgetViewComponent, decorators: [{
|
|
72
|
-
type: Component,
|
|
73
|
-
args: [{
|
|
74
|
-
template: `<div class="ax-flex ax-justify-between ">
|
|
75
|
-
<div class="ax-col-start-1 ax-col-end-10 lg:ax-col-end-7">
|
|
76
|
-
<div class="ax-flex ax-flex-1 ax-gap-3 ax-group ax-items-start ax-w-max">
|
|
77
|
-
<span>{{ showPass ? password : '*******' }}</span>
|
|
78
|
-
@if(hasEye){
|
|
79
|
-
<span
|
|
80
|
-
class="ax-text-neutral-400 ax-cursor-pointer ax-invisible group-hover:ax-visible hover:!ax-text-primary-500"
|
|
81
|
-
(click)="toggleEye()"
|
|
82
|
-
>
|
|
83
|
-
@if(!showPass){
|
|
84
|
-
<i class="fa-solid fa-eye"></i>
|
|
85
|
-
}@else {
|
|
86
|
-
<i class="fa-solid fa-eye-slash"></i>
|
|
87
|
-
}
|
|
88
|
-
</span>
|
|
89
|
-
} @if(hasCopy && hasEye){
|
|
90
|
-
<span
|
|
91
|
-
class="ax-text-neutral-400 ax-cursor-pointer ax-invisible group-hover:ax-visible hover:!ax-text-primary-500"
|
|
92
|
-
(click)="clipboard.copy('Password', password)"
|
|
93
|
-
>
|
|
94
|
-
<i class="fa-solid fa-copy "></i>
|
|
95
|
-
</span>
|
|
96
|
-
}
|
|
97
|
-
</div>
|
|
98
|
-
</div>
|
|
99
|
-
@if(!this.prop.canEdit){
|
|
100
|
-
<ax-button (onClick)="openPasswordPopup()" color="ghost" text="Change Password"></ax-button>
|
|
101
|
-
}
|
|
102
|
-
</div>`,
|
|
103
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
104
|
-
imports: [CommonModule, AXButtonModule],
|
|
105
|
-
inputs: ['hasEye', 'hasCopy', 'currentPass']
|
|
106
|
-
}]
|
|
107
|
-
}] });
|
|
108
|
-
|
|
109
|
-
export { AXPPasswordWidgetViewComponent };
|
|
110
|
-
//# sourceMappingURL=acorex-platform-common-password-widget-view.component-BuFoE2fz.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-common-password-widget-view.component-BuFoE2fz.mjs","sources":["../../../../libs/platform/common/src/lib/schema/widgets/password/password-widget-view.component.ts"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXPopupService } from '@acorex/components/popup';\nimport { AXPlatform } from '@acorex/core/platform';\nimport { AXPWidgetBase } from '../../widget/widget-base';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, inject } from '@angular/core';\nimport { AXPClipBoardService } from '../../../utils';\n@Component({\n template: `<div class=\"ax-flex ax-justify-between \">\n <div class=\"ax-col-start-1 ax-col-end-10 lg:ax-col-end-7\">\n <div class=\"ax-flex ax-flex-1 ax-gap-3 ax-group ax-items-start ax-w-max\">\n <span>{{ showPass ? password : '*******' }}</span>\n @if(hasEye){\n <span\n class=\"ax-text-neutral-400 ax-cursor-pointer ax-invisible group-hover:ax-visible hover:!ax-text-primary-500\"\n (click)=\"toggleEye()\"\n >\n @if(!showPass){\n <i class=\"fa-solid fa-eye\"></i>\n }@else {\n <i class=\"fa-solid fa-eye-slash\"></i>\n }\n </span>\n } @if(hasCopy && hasEye){\n <span\n class=\"ax-text-neutral-400 ax-cursor-pointer ax-invisible group-hover:ax-visible hover:!ax-text-primary-500\"\n (click)=\"clipboard.copy('Password', password)\"\n >\n <i class=\"fa-solid fa-copy \"></i>\n </span>\n }\n </div>\n </div>\n @if(!this.prop.canEdit){\n <ax-button (onClick)=\"openPasswordPopup()\" color=\"ghost\" text=\"Change Password\"></ax-button>\n }\n </div>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule, AXButtonModule],\n inputs: ['hasEye', 'hasCopy', 'currentPass']\n})\nexport class AXPPasswordWidgetViewComponent extends AXPWidgetBase {\n protected clipboard = inject(AXPClipBoardService);\n private platform = inject(AXPlatform);\n private popopService: AXPopupService = inject(AXPopupService);\n\n password!: string;\n hasCopy!: boolean;\n hasEye!: boolean;\n currentPass!: boolean;\n showPass: boolean = false;\n\n toggleEye() {\n this.showPass = !this.showPass;\n }\n async openPasswordPopup() {\n const compnent = await import('./change-password.component');\n this.popopService.open(compnent.ChangePassword, {\n title: 'Change Password',\n draggable: true,\n header: true,\n size: this.platform.is('Mobile') || this.platform.is('SM') ? 'full' : 'md',\n hasBackdrop: true,\n closeButton: true,\n closeOnBackdropClick: true,\n data: {\n password: this.password,\n currentPass: this.currentPass,\n },\n });\n }\n\n protected override render(): void {\n this.password = this.rawValue;\n }\n}\n"],"names":["i1"],"mappings":";;;;;;;;;AAyCM,MAAO,8BAA+B,SAAQ,aAAa,CAAA;AAlCjE,IAAA,WAAA,GAAA;;AAmCY,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,mBAAmB,CAAC;AACzC,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,UAAU,CAAC;AAC7B,QAAA,IAAA,CAAA,YAAY,GAAmB,MAAM,CAAC,cAAc,CAAC;QAM7D,IAAQ,CAAA,QAAA,GAAY,KAAK;AAyB1B;IAvBC,SAAS,GAAA;AACP,QAAA,IAAI,CAAC,QAAQ,GAAG,CAAC,IAAI,CAAC,QAAQ;;AAEhC,IAAA,MAAM,iBAAiB,GAAA;AACrB,QAAA,MAAM,QAAQ,GAAG,MAAM,OAAO,iEAA6B,CAAC;QAC5D,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,cAAc,EAAE;AAC9C,YAAA,KAAK,EAAE,iBAAiB;AACxB,YAAA,SAAS,EAAE,IAAI;AACf,YAAA,MAAM,EAAE,IAAI;YACZ,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,MAAM,GAAG,IAAI;AAC1E,YAAA,WAAW,EAAE,IAAI;AACjB,YAAA,WAAW,EAAE,IAAI;AACjB,YAAA,oBAAoB,EAAE,IAAI;AAC1B,YAAA,IAAI,EAAE;gBACJ,QAAQ,EAAE,IAAI,CAAC,QAAQ;gBACvB,WAAW,EAAE,IAAI,CAAC,WAAW;AAC9B,aAAA;AACF,SAAA,CAAC;;IAGe,MAAM,GAAA;AACvB,QAAA,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ;;8GAhCpB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;;;;;;;;;;;;;AA4BL,QAAA,CAAA;oBACL,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,cAAc,CAAC;AACvC,oBAAA,MAAM,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,aAAa;AAC9C,iBAAA;;;;;"}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { AXTooltipModule } from '@acorex/components/tooltip';
|
|
2
|
-
import { AXPWidgetBase } from './acorex-platform-common.mjs';
|
|
3
|
-
import * as i0 from '@angular/core';
|
|
4
|
-
import { Component, ChangeDetectionStrategy } from '@angular/core';
|
|
5
|
-
|
|
6
|
-
class AXPPhoneWidgetColumnComponent extends AXPWidgetBase {
|
|
7
|
-
constructor() {
|
|
8
|
-
super(...arguments);
|
|
9
|
-
this.list = [];
|
|
10
|
-
this.text = '';
|
|
11
|
-
}
|
|
12
|
-
dot3(text) {
|
|
13
|
-
if (this.multiple)
|
|
14
|
-
return text.split('\n')[0] + '...';
|
|
15
|
-
else
|
|
16
|
-
return text.split('\n')[0];
|
|
17
|
-
}
|
|
18
|
-
render() {
|
|
19
|
-
if (this.rawValue) {
|
|
20
|
-
const rawValue = this.rawValue;
|
|
21
|
-
this.list = Array.isArray(rawValue) ? rawValue.map((c) => this.extractItem(c)) : [this.extractItem(rawValue)];
|
|
22
|
-
this.text = this.list.map((item) => item.value).join('\n');
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
extractItem(item) {
|
|
26
|
-
return typeof item == 'object'
|
|
27
|
-
? {
|
|
28
|
-
value: item.value ?? '-',
|
|
29
|
-
type: item.type ?? 'mobile',
|
|
30
|
-
label: item.label,
|
|
31
|
-
}
|
|
32
|
-
: {
|
|
33
|
-
value: item,
|
|
34
|
-
type: 'mobile',
|
|
35
|
-
label: null,
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPPhoneWidgetColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
39
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPPhoneWidgetColumnComponent, isStandalone: true, selector: "axp-phone-widget-column", inputs: { context: "context", multiple: "multiple", width: "width", hasLabel: "hasLabel", allowResizing: "allowResizing" }, usesInheritance: true, ngImport: i0, template: `<div>
|
|
40
|
-
@if(multiple && list.length>1){
|
|
41
|
-
<div [title]="text">{{ dot3(text) }}</div>
|
|
42
|
-
<!-- <ng-template #allContent>
|
|
43
|
-
<div class="ax-bg-default ax-p-4 ax-border ax-rounded-lg ">
|
|
44
|
-
@for (item of list; track $index) {
|
|
45
|
-
<div>
|
|
46
|
-
{{ item.value }}
|
|
47
|
-
</div>
|
|
48
|
-
}
|
|
49
|
-
</div>
|
|
50
|
-
</ng-template> -->
|
|
51
|
-
}@else {
|
|
52
|
-
<div>
|
|
53
|
-
@if(list && list.length){
|
|
54
|
-
{{ list[0].value }}
|
|
55
|
-
}@else { - }
|
|
56
|
-
</div>
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
</div>`, isInline: true, dependencies: [{ kind: "ngmodule", type: AXTooltipModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
60
|
-
}
|
|
61
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPPhoneWidgetColumnComponent, decorators: [{
|
|
62
|
-
type: Component,
|
|
63
|
-
args: [{
|
|
64
|
-
selector: 'axp-phone-widget-column',
|
|
65
|
-
template: `<div>
|
|
66
|
-
@if(multiple && list.length>1){
|
|
67
|
-
<div [title]="text">{{ dot3(text) }}</div>
|
|
68
|
-
<!-- <ng-template #allContent>
|
|
69
|
-
<div class="ax-bg-default ax-p-4 ax-border ax-rounded-lg ">
|
|
70
|
-
@for (item of list; track $index) {
|
|
71
|
-
<div>
|
|
72
|
-
{{ item.value }}
|
|
73
|
-
</div>
|
|
74
|
-
}
|
|
75
|
-
</div>
|
|
76
|
-
</ng-template> -->
|
|
77
|
-
}@else {
|
|
78
|
-
<div>
|
|
79
|
-
@if(list && list.length){
|
|
80
|
-
{{ list[0].value }}
|
|
81
|
-
}@else { - }
|
|
82
|
-
</div>
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
</div>`,
|
|
86
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
87
|
-
imports: [AXTooltipModule],
|
|
88
|
-
inputs: ['context', 'multiple', 'width', 'hasLabel', 'allowResizing']
|
|
89
|
-
}]
|
|
90
|
-
}] });
|
|
91
|
-
|
|
92
|
-
export { AXPPhoneWidgetColumnComponent };
|
|
93
|
-
//# sourceMappingURL=acorex-platform-common-phone-widget-column.component-79Me_VNP.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-common-phone-widget-column.component-79Me_VNP.mjs","sources":["../../../../libs/platform/common/src/lib/schema/widgets/phone/phone-widget-column.component.ts"],"sourcesContent":["import { AXTooltipModule } from '@acorex/components/tooltip';\nimport { AXPWidgetBase } from '../../widget/widget-base';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n@Component({\n selector: 'axp-phone-widget-column',\n template: `<div>\n @if(multiple && list.length>1){\n <div [title]=\"text\">{{ dot3(text) }}</div>\n <!-- <ng-template #allContent>\n <div class=\"ax-bg-default ax-p-4 ax-border ax-rounded-lg \">\n @for (item of list; track $index) {\n <div>\n {{ item.value }}\n </div>\n }\n </div>\n </ng-template> -->\n }@else {\n <div>\n @if(list && list.length){\n {{ list[0].value }}\n }@else { - }\n </div>\n\n }\n </div>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [AXTooltipModule],\n inputs: ['context', 'multiple', 'width', 'hasLabel', 'allowResizing']\n})\nexport class AXPPhoneWidgetColumnComponent extends AXPWidgetBase {\n protected list: { value: string; label: string }[] = [];\n protected text: string = '';\n protected multiple!: boolean;\n\n protected dot3(text: string) {\n if (this.multiple) return text.split('\\n')[0] + '...';\n else return text.split('\\n')[0];\n }\n\n protected override render(): void {\n if (this.rawValue) {\n const rawValue = this.rawValue;\n this.list = Array.isArray(rawValue) ? rawValue.map((c) => this.extractItem(c)) : [this.extractItem(rawValue)];\n this.text = this.list.map((item) => item.value).join('\\n');\n }\n }\n\n private extractItem(item: any): any {\n return typeof item == 'object'\n ? {\n value: item.value ?? '-',\n type: item.type ?? 'mobile',\n label: item.label,\n }\n : {\n value: item,\n type: 'mobile',\n label: null,\n };\n }\n}\n"],"names":[],"mappings":";;;;;AA8BM,MAAO,6BAA8B,SAAQ,aAAa,CAAA;AA3BhE,IAAA,WAAA,GAAA;;QA4BY,IAAI,CAAA,IAAA,GAAuC,EAAE;QAC7C,IAAI,CAAA,IAAA,GAAW,EAAE;AA6B5B;AA1BW,IAAA,IAAI,CAAC,IAAY,EAAA;QACzB,IAAI,IAAI,CAAC,QAAQ;YAAE,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK;;YAChD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;;IAGd,MAAM,GAAA;AACvB,QAAA,IAAI,IAAI,CAAC,QAAQ,EAAE;AACjB,YAAA,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ;AAC9B,YAAA,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;YAC7G,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,IAA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,EAAE,CAAA;;;;;;;;;;;;;;;;;;;;AAoBL,QAAA,CAAA;oBACL,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,OAAO,EAAE,CAAC,eAAe,CAAC;oBAC1B,MAAM,EAAE,CAAC,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,eAAe;AACvE,iBAAA;;;;;"}
|
|
@@ -1,249 +0,0 @@
|
|
|
1
|
-
import * as i2 from '@acorex/components/button';
|
|
2
|
-
import { AXButtonModule } from '@acorex/components/button';
|
|
3
|
-
import * as i5 from '@acorex/components/decorators';
|
|
4
|
-
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
5
|
-
import * as i3 from '@acorex/components/form';
|
|
6
|
-
import { AXFormModule } from '@acorex/components/form';
|
|
7
|
-
import * as i6 from '@acorex/components/select-box';
|
|
8
|
-
import { AXSelectBoxModule } from '@acorex/components/select-box';
|
|
9
|
-
import * as i4 from '@acorex/components/text-box';
|
|
10
|
-
import { AXTextBoxModule } from '@acorex/components/text-box';
|
|
11
|
-
import { AXPlatform } from '@acorex/core/platform';
|
|
12
|
-
import { AXTranslationService } from '@acorex/core/translation';
|
|
13
|
-
import * as i1 from '@angular/common';
|
|
14
|
-
import { CommonModule } from '@angular/common';
|
|
15
|
-
import * as i0 from '@angular/core';
|
|
16
|
-
import { inject, signal, effect, Component, ChangeDetectionStrategy } from '@angular/core';
|
|
17
|
-
import * as i2$1 from '@angular/forms';
|
|
18
|
-
import { FormsModule } from '@angular/forms';
|
|
19
|
-
import { AXPWidgetEditBase, AXPDataGenerator } from './acorex-platform-common.mjs';
|
|
20
|
-
|
|
21
|
-
class AXPPhoneWidgetEditComponent extends AXPWidgetEditBase {
|
|
22
|
-
constructor() {
|
|
23
|
-
super(...arguments);
|
|
24
|
-
this.platform = inject(AXPlatform);
|
|
25
|
-
this.convertedValue = signal([]);
|
|
26
|
-
this.translateService = inject(AXTranslationService);
|
|
27
|
-
//protected phoneLabels: string[] = ['Mobile', 'Home', 'Work', 'Other'];
|
|
28
|
-
this.keys = ['widget.phone.mobile', 'widget.phone.home', 'widget.phone.work', 'widget.phone.other'];
|
|
29
|
-
this.phoneLabels = this.keys.map((i) => this.translateService.translateSync(i));
|
|
30
|
-
this.changeValueEffect = effect(() => {
|
|
31
|
-
if (this.multiple) {
|
|
32
|
-
if (this.hasLabel)
|
|
33
|
-
this.value = this.convertedValue().map((i) => ({ value: i.value, label: i.label }));
|
|
34
|
-
else
|
|
35
|
-
this.value = this.convertedValue().map((i) => i.value);
|
|
36
|
-
}
|
|
37
|
-
else {
|
|
38
|
-
if (this.hasLabel)
|
|
39
|
-
this.value = this.convertedValue().map((i) => ({ value: i.value, label: i.label }))[0];
|
|
40
|
-
else
|
|
41
|
-
this.value = this.convertedValue().map((i) => i.value)[0];
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
handlePhoneChange(e, id) {
|
|
46
|
-
if (e.isUserInteraction) {
|
|
47
|
-
this.convertedValue.update((prev) => prev.map((i) => (i.id === id ? { ...i, value: e.value } : i)));
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
handleLabelChange(e, id) {
|
|
51
|
-
if (e.isUserInteraction) {
|
|
52
|
-
this.convertedValue.update((prev) => prev.map((i) => (i.id === id ? { ...i, label: e.value } : i)));
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
handleAddItem() {
|
|
56
|
-
// this.value.push({ label: 'Primary', value: undefined });
|
|
57
|
-
this.convertedValue.update((prev) => [...prev, { label: this.hasLabel ? 'Primary' : '', value: '', id: AXPDataGenerator.uuid() }]);
|
|
58
|
-
}
|
|
59
|
-
handleRemoveItem(item) {
|
|
60
|
-
this.convertedValue.update((prev) => prev.filter((c) => c != item));
|
|
61
|
-
}
|
|
62
|
-
ngOnInit() {
|
|
63
|
-
// Initialize with an empty array if there's no value or it's empty
|
|
64
|
-
if (!this.value || this.value.length === 0) {
|
|
65
|
-
this.initializeEmptyValue();
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
// Process the input based on `multiple` and `hasLabel`
|
|
69
|
-
if (this.multiple) {
|
|
70
|
-
this.handleMultipleValue();
|
|
71
|
-
}
|
|
72
|
-
else {
|
|
73
|
-
this.handleSingleValue();
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
initializeEmptyValue() {
|
|
77
|
-
this.convertedValue.set([{ value: '', label: '', id: AXPDataGenerator.uuid() }]);
|
|
78
|
-
}
|
|
79
|
-
handleMultipleValue() {
|
|
80
|
-
const newValue = this.value.map((item) => ({
|
|
81
|
-
value: this.hasLabel ? item.value : item,
|
|
82
|
-
label: this.hasLabel ? item.label : null,
|
|
83
|
-
id: AXPDataGenerator.uuid(),
|
|
84
|
-
}));
|
|
85
|
-
this.convertedValue.set(newValue);
|
|
86
|
-
}
|
|
87
|
-
handleSingleValue() {
|
|
88
|
-
const newValue = [
|
|
89
|
-
{
|
|
90
|
-
value: this.hasLabel ? this.value.value : this.value,
|
|
91
|
-
label: this.hasLabel ? this.value.label : null,
|
|
92
|
-
id: AXPDataGenerator.uuid(),
|
|
93
|
-
},
|
|
94
|
-
];
|
|
95
|
-
this.convertedValue.set(newValue);
|
|
96
|
-
}
|
|
97
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPPhoneWidgetEditComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
98
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPPhoneWidgetEditComponent, isStandalone: true, selector: "ng-component", inputs: { multiple: "multiple", hasLabel: "hasLabel" }, usesInheritance: true, ngImport: i0, template: `
|
|
99
|
-
<div class="ax-grid ax-grid-cols-12 ax-gap-4">
|
|
100
|
-
<ng-container *ngIf="multiple">
|
|
101
|
-
@for(item of convertedValue();track $index) {
|
|
102
|
-
<ax-text-box
|
|
103
|
-
[(ngModel)]="item.value"
|
|
104
|
-
(onValueChanged)="handlePhoneChange($event, item.id)"
|
|
105
|
-
type="text"
|
|
106
|
-
class="ax-col-start-1 ax-col-end-13 lg:ax-col-end-8"
|
|
107
|
-
[class.lg:!ax-col-end-12]="!hasLabel"
|
|
108
|
-
>
|
|
109
|
-
@for(vl of validations;track $index) {
|
|
110
|
-
<ax-validation-rule [rule]="vl.rule" [options]="vl.options"></ax-validation-rule>
|
|
111
|
-
}
|
|
112
|
-
</ax-text-box>
|
|
113
|
-
@if(hasLabel){
|
|
114
|
-
<ax-select-box
|
|
115
|
-
[dataSource]="phoneLabels"
|
|
116
|
-
[(ngModel)]="item.label"
|
|
117
|
-
(onValueChanged)="handleLabelChange($event, item.id)"
|
|
118
|
-
class="ax-col-start-1 ax-col-end-11 lg:ax-col-start-8 lg:ax-col-end-12"
|
|
119
|
-
>
|
|
120
|
-
</ax-select-box>
|
|
121
|
-
}
|
|
122
|
-
<ax-button
|
|
123
|
-
look="twotone"
|
|
124
|
-
color="danger"
|
|
125
|
-
(onClick)="handleRemoveItem(item)"
|
|
126
|
-
class="ax-col-start-11 ax-col-end-13 lg:ax-col-start-12 lg:ax-col-end-13 ax-justify-self-end"
|
|
127
|
-
>
|
|
128
|
-
<ax-icon icon="fa-regular fa-xmark"></ax-icon>
|
|
129
|
-
</ax-button>
|
|
130
|
-
}
|
|
131
|
-
</ng-container>
|
|
132
|
-
<ng-container *ngIf="!multiple">
|
|
133
|
-
<ax-text-box
|
|
134
|
-
[(ngModel)]="convertedValue()[0].value"
|
|
135
|
-
(onValueChanged)="handlePhoneChange($event, convertedValue()[0].id)"
|
|
136
|
-
type="text"
|
|
137
|
-
class="ax-col-start-1 ax-col-end-13 lg:ax-col-end-8"
|
|
138
|
-
[class.lg:!ax-col-end-13]="!hasLabel"
|
|
139
|
-
>
|
|
140
|
-
@for(vl of validations;track $index) {
|
|
141
|
-
<ax-validation-rule [rule]="vl.rule" [options]="vl.options"></ax-validation-rule>
|
|
142
|
-
}
|
|
143
|
-
</ax-text-box>
|
|
144
|
-
@if(hasLabel){
|
|
145
|
-
<ax-select-box
|
|
146
|
-
[dataSource]="phoneLabels"
|
|
147
|
-
[(ngModel)]="convertedValue()[0].label"
|
|
148
|
-
(onValueChanged)="handleLabelChange($event, convertedValue()[0].id)"
|
|
149
|
-
class="ax-col-start-1 ax-col-end-11 lg:ax-col-start-8 lg:ax-col-end-13"
|
|
150
|
-
>
|
|
151
|
-
</ax-select-box>
|
|
152
|
-
}
|
|
153
|
-
</ng-container>
|
|
154
|
-
|
|
155
|
-
<ax-button
|
|
156
|
-
*ngIf="multiple"
|
|
157
|
-
[text]="convertedValue().length == 0 ? 'Add New' : 'Add Another'"
|
|
158
|
-
look="twotone"
|
|
159
|
-
(onClick)="handleAddItem()"
|
|
160
|
-
class="ax-col-start-8 lg:ax-col-start-10 2xl:ax-col-start-10 ax-col-end-13"
|
|
161
|
-
>
|
|
162
|
-
<ax-prefix>
|
|
163
|
-
<ax-icon class="fa-solid fa-add"></ax-icon>
|
|
164
|
-
</ax-prefix>
|
|
165
|
-
</ax-button>
|
|
166
|
-
</div>
|
|
167
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i2.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: FormsModule }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "component", type: i4.AXTextBoxComponent, selector: "ax-text-box", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "id", "placeholder", "maxLength", "allowNull", "type", "autoComplete", "look", "mask-options", "class"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i5.AXDecoratorIconComponent, selector: "ax-icon", 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: 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"] }, { kind: "ngmodule", type: AXFormModule }, { kind: "directive", type: i3.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
168
|
-
}
|
|
169
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPPhoneWidgetEditComponent, decorators: [{
|
|
170
|
-
type: Component,
|
|
171
|
-
args: [{
|
|
172
|
-
template: `
|
|
173
|
-
<div class="ax-grid ax-grid-cols-12 ax-gap-4">
|
|
174
|
-
<ng-container *ngIf="multiple">
|
|
175
|
-
@for(item of convertedValue();track $index) {
|
|
176
|
-
<ax-text-box
|
|
177
|
-
[(ngModel)]="item.value"
|
|
178
|
-
(onValueChanged)="handlePhoneChange($event, item.id)"
|
|
179
|
-
type="text"
|
|
180
|
-
class="ax-col-start-1 ax-col-end-13 lg:ax-col-end-8"
|
|
181
|
-
[class.lg:!ax-col-end-12]="!hasLabel"
|
|
182
|
-
>
|
|
183
|
-
@for(vl of validations;track $index) {
|
|
184
|
-
<ax-validation-rule [rule]="vl.rule" [options]="vl.options"></ax-validation-rule>
|
|
185
|
-
}
|
|
186
|
-
</ax-text-box>
|
|
187
|
-
@if(hasLabel){
|
|
188
|
-
<ax-select-box
|
|
189
|
-
[dataSource]="phoneLabels"
|
|
190
|
-
[(ngModel)]="item.label"
|
|
191
|
-
(onValueChanged)="handleLabelChange($event, item.id)"
|
|
192
|
-
class="ax-col-start-1 ax-col-end-11 lg:ax-col-start-8 lg:ax-col-end-12"
|
|
193
|
-
>
|
|
194
|
-
</ax-select-box>
|
|
195
|
-
}
|
|
196
|
-
<ax-button
|
|
197
|
-
look="twotone"
|
|
198
|
-
color="danger"
|
|
199
|
-
(onClick)="handleRemoveItem(item)"
|
|
200
|
-
class="ax-col-start-11 ax-col-end-13 lg:ax-col-start-12 lg:ax-col-end-13 ax-justify-self-end"
|
|
201
|
-
>
|
|
202
|
-
<ax-icon icon="fa-regular fa-xmark"></ax-icon>
|
|
203
|
-
</ax-button>
|
|
204
|
-
}
|
|
205
|
-
</ng-container>
|
|
206
|
-
<ng-container *ngIf="!multiple">
|
|
207
|
-
<ax-text-box
|
|
208
|
-
[(ngModel)]="convertedValue()[0].value"
|
|
209
|
-
(onValueChanged)="handlePhoneChange($event, convertedValue()[0].id)"
|
|
210
|
-
type="text"
|
|
211
|
-
class="ax-col-start-1 ax-col-end-13 lg:ax-col-end-8"
|
|
212
|
-
[class.lg:!ax-col-end-13]="!hasLabel"
|
|
213
|
-
>
|
|
214
|
-
@for(vl of validations;track $index) {
|
|
215
|
-
<ax-validation-rule [rule]="vl.rule" [options]="vl.options"></ax-validation-rule>
|
|
216
|
-
}
|
|
217
|
-
</ax-text-box>
|
|
218
|
-
@if(hasLabel){
|
|
219
|
-
<ax-select-box
|
|
220
|
-
[dataSource]="phoneLabels"
|
|
221
|
-
[(ngModel)]="convertedValue()[0].label"
|
|
222
|
-
(onValueChanged)="handleLabelChange($event, convertedValue()[0].id)"
|
|
223
|
-
class="ax-col-start-1 ax-col-end-11 lg:ax-col-start-8 lg:ax-col-end-13"
|
|
224
|
-
>
|
|
225
|
-
</ax-select-box>
|
|
226
|
-
}
|
|
227
|
-
</ng-container>
|
|
228
|
-
|
|
229
|
-
<ax-button
|
|
230
|
-
*ngIf="multiple"
|
|
231
|
-
[text]="convertedValue().length == 0 ? 'Add New' : 'Add Another'"
|
|
232
|
-
look="twotone"
|
|
233
|
-
(onClick)="handleAddItem()"
|
|
234
|
-
class="ax-col-start-8 lg:ax-col-start-10 2xl:ax-col-start-10 ax-col-end-13"
|
|
235
|
-
>
|
|
236
|
-
<ax-prefix>
|
|
237
|
-
<ax-icon class="fa-solid fa-add"></ax-icon>
|
|
238
|
-
</ax-prefix>
|
|
239
|
-
</ax-button>
|
|
240
|
-
</div>
|
|
241
|
-
`,
|
|
242
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
243
|
-
imports: [CommonModule, AXButtonModule, FormsModule, AXTextBoxModule, AXDecoratorModule, AXSelectBoxModule, AXFormModule],
|
|
244
|
-
inputs: ['multiple', 'hasLabel']
|
|
245
|
-
}]
|
|
246
|
-
}] });
|
|
247
|
-
|
|
248
|
-
export { AXPPhoneWidgetEditComponent };
|
|
249
|
-
//# sourceMappingURL=acorex-platform-common-phone-widget-edit.component-CIayMoT1.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-common-phone-widget-edit.component-CIayMoT1.mjs","sources":["../../../../libs/platform/common/src/lib/schema/widgets/phone/phone-widget-edit.component.ts"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXValueChangedEvent } from '@acorex/components/common';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXFormModule } from '@acorex/components/form';\nimport { AXSelectBoxModule } from '@acorex/components/select-box';\nimport { AXTextBoxModule } from '@acorex/components/text-box';\nimport { AXPlatform } from '@acorex/core/platform';\nimport { AXTranslationService } from '@acorex/core/translation';\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 template: `\n <div class=\"ax-grid ax-grid-cols-12 ax-gap-4\">\n <ng-container *ngIf=\"multiple\">\n @for(item of convertedValue();track $index) {\n <ax-text-box\n [(ngModel)]=\"item.value\"\n (onValueChanged)=\"handlePhoneChange($event, item.id)\"\n type=\"text\"\n class=\"ax-col-start-1 ax-col-end-13 lg:ax-col-end-8\"\n [class.lg:!ax-col-end-12]=\"!hasLabel\"\n >\n @for(vl of validations;track $index) {\n <ax-validation-rule [rule]=\"vl.rule\" [options]=\"vl.options\"></ax-validation-rule>\n }\n </ax-text-box>\n @if(hasLabel){\n <ax-select-box\n [dataSource]=\"phoneLabels\"\n [(ngModel)]=\"item.label\"\n (onValueChanged)=\"handleLabelChange($event, item.id)\"\n class=\"ax-col-start-1 ax-col-end-11 lg:ax-col-start-8 lg:ax-col-end-12\"\n >\n </ax-select-box>\n }\n <ax-button\n look=\"twotone\"\n color=\"danger\"\n (onClick)=\"handleRemoveItem(item)\"\n class=\"ax-col-start-11 ax-col-end-13 lg:ax-col-start-12 lg: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-container>\n <ng-container *ngIf=\"!multiple\">\n <ax-text-box\n [(ngModel)]=\"convertedValue()[0].value\"\n (onValueChanged)=\"handlePhoneChange($event, convertedValue()[0].id)\"\n type=\"text\"\n class=\"ax-col-start-1 ax-col-end-13 lg:ax-col-end-8\"\n [class.lg:!ax-col-end-13]=\"!hasLabel\"\n >\n @for(vl of validations;track $index) {\n <ax-validation-rule [rule]=\"vl.rule\" [options]=\"vl.options\"></ax-validation-rule>\n }\n </ax-text-box>\n @if(hasLabel){\n <ax-select-box\n [dataSource]=\"phoneLabels\"\n [(ngModel)]=\"convertedValue()[0].label\"\n (onValueChanged)=\"handleLabelChange($event, convertedValue()[0].id)\"\n class=\"ax-col-start-1 ax-col-end-11 lg:ax-col-start-8 lg:ax-col-end-13\"\n >\n </ax-select-box>\n }\n </ng-container>\n\n <ax-button\n *ngIf=\"multiple\"\n [text]=\"convertedValue().length == 0 ? '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 </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule, AXButtonModule, FormsModule, AXTextBoxModule, AXDecoratorModule, AXSelectBoxModule, AXFormModule],\n inputs: ['multiple', 'hasLabel']\n})\nexport class AXPPhoneWidgetEditComponent extends AXPWidgetEditBase<any> {\n protected platform = inject(AXPlatform);\n\n protected multiple!: boolean;\n protected hasLabel!: boolean;\n protected convertedValue: WritableSignal<{ value: string; label?: string; id: string }[]> = signal([]);\n private translateService = inject(AXTranslationService);\n\n //protected phoneLabels: string[] = ['Mobile', 'Home', 'Work', 'Other'];\n private keys = ['widget.phone.mobile', 'widget.phone.home', 'widget.phone.work', 'widget.phone.other'];\n protected phoneLabels: string[] = this.keys.map((i) => this.translateService.translateSync(i));\n\n private changeValueEffect = effect(() => {\n if (this.multiple) {\n if (this.hasLabel) this.value = this.convertedValue().map((i) => ({ value: i.value, label: i.label }));\n else this.value = this.convertedValue().map((i) => i.value);\n } else {\n if (this.hasLabel) this.value = this.convertedValue().map((i) => ({ value: i.value, label: i.label }))[0];\n else this.value = this.convertedValue().map((i) => i.value)[0];\n }\n });\n\n protected handlePhoneChange(e: AXValueChangedEvent, id: string) {\n if (e.isUserInteraction) {\n this.convertedValue.update((prev) => prev.map((i) => (i.id === id ? { ...i, value: e.value } : i)));\n }\n }\n protected handleLabelChange(e: AXValueChangedEvent, id: string) {\n if (e.isUserInteraction) {\n this.convertedValue.update((prev) => prev.map((i) => (i.id === id ? { ...i, label: e.value } : i)));\n }\n }\n\n protected handleAddItem() {\n // this.value.push({ label: 'Primary', value: undefined });\n this.convertedValue.update((prev) => [...prev, { label: this.hasLabel ? 'Primary' : '', value: '', id: AXPDataGenerator.uuid() }]);\n }\n\n protected handleRemoveItem(item: any) {\n this.convertedValue.update((prev) => prev.filter((c) => c != item));\n }\n ngOnInit(): void {\n // Initialize with an empty array if there's no value or it's empty\n if (!this.value || this.value.length === 0) {\n this.initializeEmptyValue();\n return;\n }\n\n // Process the input based on `multiple` and `hasLabel`\n if (this.multiple) {\n this.handleMultipleValue();\n } else {\n this.handleSingleValue();\n }\n }\n\n private initializeEmptyValue(): void {\n this.convertedValue.set([{ value: '', label: '', id: AXPDataGenerator.uuid() }]);\n }\n\n private handleMultipleValue(): void {\n const newValue = this.value.map((item: any) => ({\n value: this.hasLabel ? item.value : item,\n label: this.hasLabel ? item.label : null,\n id: AXPDataGenerator.uuid(),\n }));\n this.convertedValue.set(newValue);\n }\n\n private handleSingleValue(): void {\n const newValue = [\n {\n value: this.hasLabel ? this.value.value : this.value,\n label: this.hasLabel ? this.value.label : null,\n id: AXPDataGenerator.uuid(),\n },\n ];\n this.convertedValue.set(newValue);\n }\n}\n"],"names":["i3","i7"],"mappings":";;;;;;;;;;;;;;;;;;;;AAyFM,MAAO,2BAA4B,SAAQ,iBAAsB,CAAA;AA3EvE,IAAA,WAAA,GAAA;;AA4EY,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,UAAU,CAAC;AAI7B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|
-
import * as i1$1 from '@acorex/components/badge';
|
|
2
|
-
import { AXBadgeModule } from '@acorex/components/badge';
|
|
3
|
-
import { AXPWidgetBase, AXPClipBoardService } from './acorex-platform-common.mjs';
|
|
4
|
-
import * as i1 from '@angular/common';
|
|
5
|
-
import { CommonModule } from '@angular/common';
|
|
6
|
-
import * as i0 from '@angular/core';
|
|
7
|
-
import { inject, Component, ChangeDetectionStrategy } from '@angular/core';
|
|
8
|
-
|
|
9
|
-
class AXPPhoneWidgetViewComponent extends AXPWidgetBase {
|
|
10
|
-
constructor() {
|
|
11
|
-
super(...arguments);
|
|
12
|
-
this.clipboard = inject(AXPClipBoardService);
|
|
13
|
-
this.list = [];
|
|
14
|
-
}
|
|
15
|
-
getIcon(type) {
|
|
16
|
-
switch (type) {
|
|
17
|
-
case 'home':
|
|
18
|
-
return 'fa-home';
|
|
19
|
-
case 'mobile':
|
|
20
|
-
return 'fa-phone';
|
|
21
|
-
default:
|
|
22
|
-
return 'fa-phone';
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
render() {
|
|
26
|
-
const rawValue = this.rawValue;
|
|
27
|
-
this.list = Array.isArray(rawValue) ? rawValue.map((c) => this.extractItem(c)) : [this.extractItem(rawValue)];
|
|
28
|
-
}
|
|
29
|
-
extractItem(item) {
|
|
30
|
-
return typeof item == 'object'
|
|
31
|
-
? {
|
|
32
|
-
value: item.value ?? '-',
|
|
33
|
-
type: item.type ?? 'mobile',
|
|
34
|
-
label: item.label,
|
|
35
|
-
}
|
|
36
|
-
: {
|
|
37
|
-
value: item,
|
|
38
|
-
type: 'mobile',
|
|
39
|
-
label: null,
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPPhoneWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
43
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPPhoneWidgetViewComponent, isStandalone: true, selector: "ng-component", inputs: { context: "context", value: "value", multiple: "multiple", hasLabel: "hasLabel" }, usesInheritance: true, ngImport: i0, template: `
|
|
44
|
-
<div class="ax-grid ax-grid-cols-12 ax-gap-2 ">
|
|
45
|
-
<ng-container *ngIf="multiple">
|
|
46
|
-
@for(item of list;track item?.value) {
|
|
47
|
-
<ng-template [ngTemplateOutlet]="itemTemplate" [ngTemplateOutletContext]="{ data: item }" ]></ng-template>
|
|
48
|
-
}
|
|
49
|
-
</ng-container>
|
|
50
|
-
|
|
51
|
-
<ng-container *ngIf="!multiple">
|
|
52
|
-
<ng-template [ngTemplateOutlet]="itemTemplate" [ngTemplateOutletContext]="{ data: list[0] }" ]></ng-template>
|
|
53
|
-
</ng-container>
|
|
54
|
-
|
|
55
|
-
<ng-template #itemTemplate let-item="data">
|
|
56
|
-
<ng-container *ngIf="item">
|
|
57
|
-
<div class="ax-col-start-1 ax-col-end-10 lg:ax-col-end-7">
|
|
58
|
-
<div class="ax-flex ax-flex-1 ax-gap-3 ax-items-center ax-w-max ax-group">
|
|
59
|
-
<div class="ax-w-6 ax-h-6 ax-flex ax-items-center ax-justify-center">
|
|
60
|
-
<i class="fa-solid ax-text-neutral-400 fa-phone"></i>
|
|
61
|
-
</div>
|
|
62
|
-
<a class="group-hover:!ax-text-primary-500" href="tel:{{ item.value }}">{{ item.value }}</a>
|
|
63
|
-
<span
|
|
64
|
-
class="ax-text-neutral-400 ax-cursor-pointer ax-invisible group-hover:ax-visible hover:!ax-text-primary-500"
|
|
65
|
-
(click)="clipboard.copy('Phone Number', item.value)"
|
|
66
|
-
>
|
|
67
|
-
<i class="fa-solid fa-copy "></i>
|
|
68
|
-
</span>
|
|
69
|
-
@if(hasLabel){
|
|
70
|
-
<ax-badge color="primary" [look]="'twotone'" [text]="item.label"></ax-badge>
|
|
71
|
-
}
|
|
72
|
-
</div>
|
|
73
|
-
</div>
|
|
74
|
-
</ng-container>
|
|
75
|
-
</ng-template>
|
|
76
|
-
</div>
|
|
77
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: AXBadgeModule }, { kind: "component", type: i1$1.AXBadgeComponent, selector: "ax-badge", inputs: ["color", "look", "text"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
78
|
-
}
|
|
79
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPPhoneWidgetViewComponent, decorators: [{
|
|
80
|
-
type: Component,
|
|
81
|
-
args: [{
|
|
82
|
-
template: `
|
|
83
|
-
<div class="ax-grid ax-grid-cols-12 ax-gap-2 ">
|
|
84
|
-
<ng-container *ngIf="multiple">
|
|
85
|
-
@for(item of list;track item?.value) {
|
|
86
|
-
<ng-template [ngTemplateOutlet]="itemTemplate" [ngTemplateOutletContext]="{ data: item }" ]></ng-template>
|
|
87
|
-
}
|
|
88
|
-
</ng-container>
|
|
89
|
-
|
|
90
|
-
<ng-container *ngIf="!multiple">
|
|
91
|
-
<ng-template [ngTemplateOutlet]="itemTemplate" [ngTemplateOutletContext]="{ data: list[0] }" ]></ng-template>
|
|
92
|
-
</ng-container>
|
|
93
|
-
|
|
94
|
-
<ng-template #itemTemplate let-item="data">
|
|
95
|
-
<ng-container *ngIf="item">
|
|
96
|
-
<div class="ax-col-start-1 ax-col-end-10 lg:ax-col-end-7">
|
|
97
|
-
<div class="ax-flex ax-flex-1 ax-gap-3 ax-items-center ax-w-max ax-group">
|
|
98
|
-
<div class="ax-w-6 ax-h-6 ax-flex ax-items-center ax-justify-center">
|
|
99
|
-
<i class="fa-solid ax-text-neutral-400 fa-phone"></i>
|
|
100
|
-
</div>
|
|
101
|
-
<a class="group-hover:!ax-text-primary-500" href="tel:{{ item.value }}">{{ item.value }}</a>
|
|
102
|
-
<span
|
|
103
|
-
class="ax-text-neutral-400 ax-cursor-pointer ax-invisible group-hover:ax-visible hover:!ax-text-primary-500"
|
|
104
|
-
(click)="clipboard.copy('Phone Number', item.value)"
|
|
105
|
-
>
|
|
106
|
-
<i class="fa-solid fa-copy "></i>
|
|
107
|
-
</span>
|
|
108
|
-
@if(hasLabel){
|
|
109
|
-
<ax-badge color="primary" [look]="'twotone'" [text]="item.label"></ax-badge>
|
|
110
|
-
}
|
|
111
|
-
</div>
|
|
112
|
-
</div>
|
|
113
|
-
</ng-container>
|
|
114
|
-
</ng-template>
|
|
115
|
-
</div>
|
|
116
|
-
`,
|
|
117
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
118
|
-
imports: [CommonModule, AXBadgeModule],
|
|
119
|
-
inputs: ['context', 'value', 'multiple', 'hasLabel']
|
|
120
|
-
}]
|
|
121
|
-
}] });
|
|
122
|
-
|
|
123
|
-
export { AXPPhoneWidgetViewComponent };
|
|
124
|
-
//# sourceMappingURL=acorex-platform-common-phone-widget-view.component-B1Xu_rxC.mjs.map
|