@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,73 +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 AXPMessengerWidgetColumnComponent 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
|
-
label: item.type ?? 'Telegram',
|
|
30
|
-
}
|
|
31
|
-
: {
|
|
32
|
-
value: item,
|
|
33
|
-
label: 'Telegram',
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPMessengerWidgetColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
37
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPMessengerWidgetColumnComponent, isStandalone: true, selector: "axp-messenger-widget-column", inputs: { context: "context", multiple: "multiple", width: "width", allowResizing: "allowResizing" }, usesInheritance: true, ngImport: i0, template: `<div>
|
|
38
|
-
@if(multiple && list.length>1){
|
|
39
|
-
<div [title]="text">{{ dot3(text) }}</div>
|
|
40
|
-
}@else {
|
|
41
|
-
<div>
|
|
42
|
-
@if(list && list.length){
|
|
43
|
-
{{ list[0].value }}
|
|
44
|
-
}@else { - }
|
|
45
|
-
</div>
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
</div>`, isInline: true, dependencies: [{ kind: "ngmodule", type: AXTooltipModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
49
|
-
}
|
|
50
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPMessengerWidgetColumnComponent, decorators: [{
|
|
51
|
-
type: Component,
|
|
52
|
-
args: [{
|
|
53
|
-
selector: 'axp-messenger-widget-column',
|
|
54
|
-
template: `<div>
|
|
55
|
-
@if(multiple && list.length>1){
|
|
56
|
-
<div [title]="text">{{ dot3(text) }}</div>
|
|
57
|
-
}@else {
|
|
58
|
-
<div>
|
|
59
|
-
@if(list && list.length){
|
|
60
|
-
{{ list[0].value }}
|
|
61
|
-
}@else { - }
|
|
62
|
-
</div>
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
</div>`,
|
|
66
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
67
|
-
imports: [AXTooltipModule],
|
|
68
|
-
inputs: ['context', 'multiple', 'width', 'allowResizing']
|
|
69
|
-
}]
|
|
70
|
-
}] });
|
|
71
|
-
|
|
72
|
-
export { AXPMessengerWidgetColumnComponent };
|
|
73
|
-
//# sourceMappingURL=acorex-platform-common-messenger-widget-column.component-Brm4vLGA.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-common-messenger-widget-column.component-Brm4vLGA.mjs","sources":["../../../../libs/platform/common/src/lib/schema/widgets/messenger/messenger-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-messenger-widget-column',\n template: `<div>\n @if(multiple && list.length>1){\n <div [title]=\"text\">{{ dot3(text) }}</div>\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', 'allowResizing']\n})\nexport class AXPMessengerWidgetColumnComponent 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 label: item.type ?? 'Telegram',\n }\n : {\n value: item,\n label: 'Telegram',\n };\n }\n}\n"],"names":[],"mappings":";;;;;AAqBM,MAAO,iCAAkC,SAAQ,aAAa,CAAA;AAlBpE,IAAA,WAAA,GAAA;;QAmBY,IAAI,CAAA,IAAA,GAAuC,EAAE;QAC7C,IAAI,CAAA,IAAA,GAAW,EAAE;AA2B5B;AAxBW,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,IAAI,CAAC;;;AAItD,IAAA,WAAW,CAAC,IAAS,EAAA;QAC3B,OAAO,OAAO,IAAI,IAAI;AACpB,cAAE;AACA,gBAAA,KAAK,EAAE,IAAI,CAAC,KAAK,IAAI,GAAG;AACxB,gBAAA,KAAK,EAAE,IAAI,CAAC,IAAI,IAAI,UAAU;AAC/B;AACD,cAAE;AACA,gBAAA,KAAK,EAAE,IAAI;AACX,gBAAA,KAAK,EAAE,UAAU;aAClB;;8GA3BM,iCAAiC,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAjC,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,iCAAiC,EAhBhC,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,6BAAA,EAAA,MAAA,EAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,UAAA,EAAA,KAAA,EAAA,OAAA,EAAA,aAAA,EAAA,eAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;AAWL,QAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAEK,eAAe,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAGhB,iCAAiC,EAAA,UAAA,EAAA,CAAA;kBAlB7C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,6BAA6B;AACvC,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;;;AAWL,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,eAAe;AAC3D,iBAAA;;;;;"}
|
|
@@ -1,138 +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 i6 from '@acorex/components/select-box';
|
|
6
|
-
import { AXSelectBoxModule } from '@acorex/components/select-box';
|
|
7
|
-
import * as i4 from '@acorex/components/text-box';
|
|
8
|
-
import { AXTextBoxModule } from '@acorex/components/text-box';
|
|
9
|
-
import { AXPWidgetEditBase } from './acorex-platform-common.mjs';
|
|
10
|
-
import * as i1 from '@angular/common';
|
|
11
|
-
import { CommonModule } from '@angular/common';
|
|
12
|
-
import * as i0 from '@angular/core';
|
|
13
|
-
import { Component, ChangeDetectionStrategy } from '@angular/core';
|
|
14
|
-
import * as i2$1 from '@angular/forms';
|
|
15
|
-
import { FormsModule } from '@angular/forms';
|
|
16
|
-
|
|
17
|
-
class AXPMessengerWidgetEditComponent extends AXPWidgetEditBase {
|
|
18
|
-
constructor() {
|
|
19
|
-
super(...arguments);
|
|
20
|
-
this.labels = ['Telegram', 'Whatsapp'];
|
|
21
|
-
}
|
|
22
|
-
handleAddItem() {
|
|
23
|
-
this.value.push({ label: 'Telegram', value: undefined });
|
|
24
|
-
}
|
|
25
|
-
handleRemoveItem(item) {
|
|
26
|
-
this.value = this.value.filter((c) => c != item);
|
|
27
|
-
}
|
|
28
|
-
ngOnInit() {
|
|
29
|
-
if (!this.value || this.value?.length == 0) {
|
|
30
|
-
this.value = [
|
|
31
|
-
{
|
|
32
|
-
label: 'Telegram',
|
|
33
|
-
value: '',
|
|
34
|
-
},
|
|
35
|
-
];
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPMessengerWidgetEditComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
39
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPMessengerWidgetEditComponent, isStandalone: true, selector: "ng-component", inputs: { multiple: "multiple" }, usesInheritance: true, ngImport: i0, template: `
|
|
40
|
-
<div class="ax-grid ax-grid-cols-12 ax-gap-4">
|
|
41
|
-
<ng-container *ngIf="multiple">
|
|
42
|
-
@for(item of value;track item?.value) {
|
|
43
|
-
<ax-text-box [(ngModel)]="item.value" class="ax-col-start-1 ax-col-end-13 lg:ax-col-end-8"> </ax-text-box>
|
|
44
|
-
<ax-select-box
|
|
45
|
-
[dataSource]="labels"
|
|
46
|
-
[(ngModel)]="item.label"
|
|
47
|
-
class="ax-col-start-1 ax-col-end-11 lg:ax-col-start-8 lg:ax-col-end-12"
|
|
48
|
-
>
|
|
49
|
-
</ax-select-box>
|
|
50
|
-
<ax-button
|
|
51
|
-
look="twotone"
|
|
52
|
-
color="danger"
|
|
53
|
-
(onClick)="handleRemoveItem(item)"
|
|
54
|
-
class="ax-col-start-11 ax-col-end-13 lg:ax-col-start-12 lg:ax-col-end-13 ax-justify-self-end"
|
|
55
|
-
>
|
|
56
|
-
<ax-icon icon="fa-regular fa-xmark"></ax-icon>
|
|
57
|
-
</ax-button>
|
|
58
|
-
}
|
|
59
|
-
</ng-container>
|
|
60
|
-
<ng-container *ngIf="!multiple">
|
|
61
|
-
<ax-text-box [(ngModel)]="value[0].value" class="ax-col-start-1 ax-col-end-13 lg:ax-col-end-8"> </ax-text-box>
|
|
62
|
-
<ax-select-box
|
|
63
|
-
[dataSource]="labels"
|
|
64
|
-
[(ngModel)]="value[0].label"
|
|
65
|
-
class="ax-col-start-1 ax-col-end-11 lg:ax-col-start-8 lg:ax-col-end-13"
|
|
66
|
-
>
|
|
67
|
-
</ax-select-box>
|
|
68
|
-
</ng-container>
|
|
69
|
-
|
|
70
|
-
<ax-button
|
|
71
|
-
*ngIf="multiple"
|
|
72
|
-
[text]="value.length == 0 ? 'Add New' : 'Add Another'"
|
|
73
|
-
look="twotone"
|
|
74
|
-
(onClick)="handleAddItem()"
|
|
75
|
-
class="ax-col-start-8 lg:ax-col-start-10 2xl:ax-col-start-10 ax-col-end-13"
|
|
76
|
-
>
|
|
77
|
-
<ax-prefix>
|
|
78
|
-
<ax-icon class="fa-solid fa-add"></ax-icon>
|
|
79
|
-
</ax-prefix>
|
|
80
|
-
</ax-button>
|
|
81
|
-
</div>
|
|
82
|
-
`, 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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
83
|
-
}
|
|
84
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPMessengerWidgetEditComponent, decorators: [{
|
|
85
|
-
type: Component,
|
|
86
|
-
args: [{
|
|
87
|
-
template: `
|
|
88
|
-
<div class="ax-grid ax-grid-cols-12 ax-gap-4">
|
|
89
|
-
<ng-container *ngIf="multiple">
|
|
90
|
-
@for(item of value;track item?.value) {
|
|
91
|
-
<ax-text-box [(ngModel)]="item.value" class="ax-col-start-1 ax-col-end-13 lg:ax-col-end-8"> </ax-text-box>
|
|
92
|
-
<ax-select-box
|
|
93
|
-
[dataSource]="labels"
|
|
94
|
-
[(ngModel)]="item.label"
|
|
95
|
-
class="ax-col-start-1 ax-col-end-11 lg:ax-col-start-8 lg:ax-col-end-12"
|
|
96
|
-
>
|
|
97
|
-
</ax-select-box>
|
|
98
|
-
<ax-button
|
|
99
|
-
look="twotone"
|
|
100
|
-
color="danger"
|
|
101
|
-
(onClick)="handleRemoveItem(item)"
|
|
102
|
-
class="ax-col-start-11 ax-col-end-13 lg:ax-col-start-12 lg:ax-col-end-13 ax-justify-self-end"
|
|
103
|
-
>
|
|
104
|
-
<ax-icon icon="fa-regular fa-xmark"></ax-icon>
|
|
105
|
-
</ax-button>
|
|
106
|
-
}
|
|
107
|
-
</ng-container>
|
|
108
|
-
<ng-container *ngIf="!multiple">
|
|
109
|
-
<ax-text-box [(ngModel)]="value[0].value" class="ax-col-start-1 ax-col-end-13 lg:ax-col-end-8"> </ax-text-box>
|
|
110
|
-
<ax-select-box
|
|
111
|
-
[dataSource]="labels"
|
|
112
|
-
[(ngModel)]="value[0].label"
|
|
113
|
-
class="ax-col-start-1 ax-col-end-11 lg:ax-col-start-8 lg:ax-col-end-13"
|
|
114
|
-
>
|
|
115
|
-
</ax-select-box>
|
|
116
|
-
</ng-container>
|
|
117
|
-
|
|
118
|
-
<ax-button
|
|
119
|
-
*ngIf="multiple"
|
|
120
|
-
[text]="value.length == 0 ? 'Add New' : 'Add Another'"
|
|
121
|
-
look="twotone"
|
|
122
|
-
(onClick)="handleAddItem()"
|
|
123
|
-
class="ax-col-start-8 lg:ax-col-start-10 2xl:ax-col-start-10 ax-col-end-13"
|
|
124
|
-
>
|
|
125
|
-
<ax-prefix>
|
|
126
|
-
<ax-icon class="fa-solid fa-add"></ax-icon>
|
|
127
|
-
</ax-prefix>
|
|
128
|
-
</ax-button>
|
|
129
|
-
</div>
|
|
130
|
-
`,
|
|
131
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
132
|
-
imports: [CommonModule, AXButtonModule, FormsModule, AXTextBoxModule, AXDecoratorModule, AXSelectBoxModule],
|
|
133
|
-
inputs: ['multiple']
|
|
134
|
-
}]
|
|
135
|
-
}] });
|
|
136
|
-
|
|
137
|
-
export { AXPMessengerWidgetEditComponent };
|
|
138
|
-
//# sourceMappingURL=acorex-platform-common-messenger-widget-edit.component-CJHvut2C.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-common-messenger-widget-edit.component-CJHvut2C.mjs","sources":["../../../../libs/platform/common/src/lib/schema/widgets/messenger/messenger-widget-edit.component.ts"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXSelectBoxModule } from '@acorex/components/select-box';\nimport { AXTextBoxModule } from '@acorex/components/text-box';\nimport { AXPWidgetEditBase } from '../../widget/widget-base';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\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 value;track item?.value) {\n <ax-text-box [(ngModel)]=\"item.value\" class=\"ax-col-start-1 ax-col-end-13 lg:ax-col-end-8\"> </ax-text-box>\n <ax-select-box\n [dataSource]=\"labels\"\n [(ngModel)]=\"item.label\"\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 <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 [(ngModel)]=\"value[0].value\" class=\"ax-col-start-1 ax-col-end-13 lg:ax-col-end-8\"> </ax-text-box>\n <ax-select-box\n [dataSource]=\"labels\"\n [(ngModel)]=\"value[0].label\"\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 </ng-container>\n\n <ax-button\n *ngIf=\"multiple\"\n [text]=\"value.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],\n inputs: ['multiple']\n})\nexport class AXPMessengerWidgetEditComponent extends AXPWidgetEditBase<\n { value?: string | null; label?: string | undefined }[]\n> {\n protected multiple!: boolean;\n protected labels = ['Telegram', 'Whatsapp'];\n\n protected handleAddItem() {\n this.value.push({ label: 'Telegram', value: undefined });\n }\n\n protected handleRemoveItem(item: any) {\n this.value = this.value.filter((c) => c != item);\n }\n\n ngOnInit(): void {\n if (!this.value || this.value?.length == 0) {\n this.value = [\n {\n label: 'Telegram',\n value: '',\n },\n ];\n }\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AA0DM,MAAO,+BAAgC,SAAQ,iBAEpD,CAAA;AAnDD,IAAA,WAAA,GAAA;;AAqDY,QAAA,IAAA,CAAA,MAAM,GAAG,CAAC,UAAU,EAAE,UAAU,CAAC;AAoB5C;IAlBW,aAAa,GAAA;AACrB,QAAA,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;;AAGhD,IAAA,gBAAgB,CAAC,IAAS,EAAA;AAClC,QAAA,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC;;IAGlD,QAAQ,GAAA;AACN,QAAA,IAAI,CAAC,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,EAAE,MAAM,IAAI,CAAC,EAAE;YAC1C,IAAI,CAAC,KAAK,GAAG;AACX,gBAAA;AACE,oBAAA,KAAK,EAAE,UAAU;AACjB,oBAAA,KAAK,EAAE,EAAE;AACV,iBAAA;aACF;;;8GArBM,+BAA+B,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA/B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,+BAA+B,EAhD9B,YAAA,EAAA,IAAA,EAAA,QA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,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2CX,EAAA,CAAA;oBACC,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,cAAc,EAAE,WAAW,EAAE,eAAe,EAAE,iBAAiB,EAAE,iBAAiB,CAAC;oBAC3G,MAAM,EAAE,CAAC,UAAU;AACtB,iBAAA;;;;;"}
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
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 AXPMessengerWidgetViewComponent extends AXPWidgetBase {
|
|
10
|
-
constructor() {
|
|
11
|
-
super(...arguments);
|
|
12
|
-
this.clipboard = inject(AXPClipBoardService);
|
|
13
|
-
}
|
|
14
|
-
render() {
|
|
15
|
-
const rawValue = this.rawValue;
|
|
16
|
-
if (rawValue == null)
|
|
17
|
-
return;
|
|
18
|
-
this.list = Array.isArray(rawValue) ? rawValue.map((c) => this.extractItem(c)) : [this.extractItem(rawValue)];
|
|
19
|
-
}
|
|
20
|
-
extractItem(item) {
|
|
21
|
-
return typeof item == 'object'
|
|
22
|
-
? {
|
|
23
|
-
value: item.value ?? '-',
|
|
24
|
-
label: item.label ?? 'Telegram',
|
|
25
|
-
}
|
|
26
|
-
: {
|
|
27
|
-
value: item,
|
|
28
|
-
label: 'Telegram',
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
generateLink(label, value) {
|
|
32
|
-
const labelLowerCase = label.toLowerCase();
|
|
33
|
-
switch (labelLowerCase) {
|
|
34
|
-
case 'telegram':
|
|
35
|
-
return `https://t.me/${value}`;
|
|
36
|
-
case 'whatsapp':
|
|
37
|
-
return `https://wa.me/${value}`;
|
|
38
|
-
default:
|
|
39
|
-
return value;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
generateBadgeColor(label) {
|
|
43
|
-
const labelLowerCase = label.toLowerCase();
|
|
44
|
-
switch (labelLowerCase) {
|
|
45
|
-
case 'telegram':
|
|
46
|
-
return 'primary';
|
|
47
|
-
case 'whatsapp':
|
|
48
|
-
return 'success';
|
|
49
|
-
default:
|
|
50
|
-
return 'primary';
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPMessengerWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
54
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPMessengerWidgetViewComponent, isStandalone: true, selector: "ng-component", inputs: { context: "context", multiple: "multiple" }, usesInheritance: true, ngImport: i0, template: `<div class="ax-grid ax-grid-cols-12 ax-gap-2 ">
|
|
55
|
-
<ng-container *ngIf="multiple">
|
|
56
|
-
@for(item of list;track item?.value) {
|
|
57
|
-
<ng-template [ngTemplateOutlet]="itemTemplate" [ngTemplateOutletContext]="{ data: item }"></ng-template>
|
|
58
|
-
}
|
|
59
|
-
</ng-container>
|
|
60
|
-
<ng-container *ngIf="!multiple">
|
|
61
|
-
<ng-template [ngTemplateOutlet]="itemTemplate" [ngTemplateOutletContext]="{ data: list[0] }"></ng-template>
|
|
62
|
-
</ng-container>
|
|
63
|
-
<ng-template #itemTemplate let-item="data">
|
|
64
|
-
<ng-container *ngIf="item">
|
|
65
|
-
<div class="ax-col-start-1 ax-col-end-10 lg:ax-col-end-7">
|
|
66
|
-
<div class="ax-flex ax-flex-1 ax-gap-3 ax-group ax-items-center ax-w-max">
|
|
67
|
-
<div class="ax-w-6 ax-h-6 ax-flex ax-items-center ax-justify-center">
|
|
68
|
-
<i class="fa-solid ax-text-neutral-400 fa-envelope"></i>
|
|
69
|
-
</div>
|
|
70
|
-
<a
|
|
71
|
-
class="hover:ax-text-primary-500 ax-cursor-pointer"
|
|
72
|
-
target="_blank"
|
|
73
|
-
[href]="generateLink(item.label, item.value)"
|
|
74
|
-
>{{ item.value }}</a
|
|
75
|
-
>
|
|
76
|
-
<span
|
|
77
|
-
class="ax-text-neutral-400 ax-cursor-pointer ax-invisible group-hover:ax-visible hover:!ax-text-primary-500"
|
|
78
|
-
(click)="clipboard.copy('Messenger Id ', item.value)"
|
|
79
|
-
>
|
|
80
|
-
<i class="fa-solid fa-copy "></i>
|
|
81
|
-
</span>
|
|
82
|
-
<ax-badge [color]="generateBadgeColor(item.label)" [look]="'twotone'" [text]="item.label"></ax-badge>
|
|
83
|
-
</div>
|
|
84
|
-
</div>
|
|
85
|
-
</ng-container>
|
|
86
|
-
</ng-template>
|
|
87
|
-
</div>`, 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 }); }
|
|
88
|
-
}
|
|
89
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPMessengerWidgetViewComponent, decorators: [{
|
|
90
|
-
type: Component,
|
|
91
|
-
args: [{
|
|
92
|
-
template: `<div class="ax-grid ax-grid-cols-12 ax-gap-2 ">
|
|
93
|
-
<ng-container *ngIf="multiple">
|
|
94
|
-
@for(item of list;track item?.value) {
|
|
95
|
-
<ng-template [ngTemplateOutlet]="itemTemplate" [ngTemplateOutletContext]="{ data: item }"></ng-template>
|
|
96
|
-
}
|
|
97
|
-
</ng-container>
|
|
98
|
-
<ng-container *ngIf="!multiple">
|
|
99
|
-
<ng-template [ngTemplateOutlet]="itemTemplate" [ngTemplateOutletContext]="{ data: list[0] }"></ng-template>
|
|
100
|
-
</ng-container>
|
|
101
|
-
<ng-template #itemTemplate let-item="data">
|
|
102
|
-
<ng-container *ngIf="item">
|
|
103
|
-
<div class="ax-col-start-1 ax-col-end-10 lg:ax-col-end-7">
|
|
104
|
-
<div class="ax-flex ax-flex-1 ax-gap-3 ax-group ax-items-center ax-w-max">
|
|
105
|
-
<div class="ax-w-6 ax-h-6 ax-flex ax-items-center ax-justify-center">
|
|
106
|
-
<i class="fa-solid ax-text-neutral-400 fa-envelope"></i>
|
|
107
|
-
</div>
|
|
108
|
-
<a
|
|
109
|
-
class="hover:ax-text-primary-500 ax-cursor-pointer"
|
|
110
|
-
target="_blank"
|
|
111
|
-
[href]="generateLink(item.label, item.value)"
|
|
112
|
-
>{{ item.value }}</a
|
|
113
|
-
>
|
|
114
|
-
<span
|
|
115
|
-
class="ax-text-neutral-400 ax-cursor-pointer ax-invisible group-hover:ax-visible hover:!ax-text-primary-500"
|
|
116
|
-
(click)="clipboard.copy('Messenger Id ', item.value)"
|
|
117
|
-
>
|
|
118
|
-
<i class="fa-solid fa-copy "></i>
|
|
119
|
-
</span>
|
|
120
|
-
<ax-badge [color]="generateBadgeColor(item.label)" [look]="'twotone'" [text]="item.label"></ax-badge>
|
|
121
|
-
</div>
|
|
122
|
-
</div>
|
|
123
|
-
</ng-container>
|
|
124
|
-
</ng-template>
|
|
125
|
-
</div>`,
|
|
126
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
127
|
-
imports: [CommonModule, AXBadgeModule],
|
|
128
|
-
inputs: ['context', 'multiple']
|
|
129
|
-
}]
|
|
130
|
-
}] });
|
|
131
|
-
|
|
132
|
-
export { AXPMessengerWidgetViewComponent };
|
|
133
|
-
//# sourceMappingURL=acorex-platform-common-messenger-widget-view.component-DVylp_2t.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-common-messenger-widget-view.component-DVylp_2t.mjs","sources":["../../../../libs/platform/common/src/lib/schema/widgets/messenger/messenger-widget-view.component.ts"],"sourcesContent":["import { AXBadgeModule } from '@acorex/components/badge';\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-grid ax-grid-cols-12 ax-gap-2 \">\n <ng-container *ngIf=\"multiple\">\n @for(item of list;track item?.value) {\n <ng-template [ngTemplateOutlet]=\"itemTemplate\" [ngTemplateOutletContext]=\"{ data: item }\"></ng-template>\n }\n </ng-container>\n <ng-container *ngIf=\"!multiple\">\n <ng-template [ngTemplateOutlet]=\"itemTemplate\" [ngTemplateOutletContext]=\"{ data: list[0] }\"></ng-template>\n </ng-container>\n <ng-template #itemTemplate let-item=\"data\">\n <ng-container *ngIf=\"item\">\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-center ax-w-max\">\n <div class=\"ax-w-6 ax-h-6 ax-flex ax-items-center ax-justify-center\">\n <i class=\"fa-solid ax-text-neutral-400 fa-envelope\"></i>\n </div>\n <a\n class=\"hover:ax-text-primary-500 ax-cursor-pointer\"\n target=\"_blank\"\n [href]=\"generateLink(item.label, item.value)\"\n >{{ item.value }}</a\n >\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('Messenger Id ', item.value)\"\n >\n <i class=\"fa-solid fa-copy \"></i>\n </span>\n <ax-badge [color]=\"generateBadgeColor(item.label)\" [look]=\"'twotone'\" [text]=\"item.label\"></ax-badge>\n </div>\n </div>\n </ng-container>\n </ng-template>\n </div>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule, AXBadgeModule],\n inputs: ['context', 'multiple']\n})\nexport class AXPMessengerWidgetViewComponent extends AXPWidgetBase {\n protected clipboard = inject(AXPClipBoardService);\n protected list!: { value: string; label: string }[];\n protected multiple!: boolean;\n\n protected override render(): void {\n const rawValue = this.rawValue;\n if (rawValue == null) return;\n this.list = Array.isArray(rawValue) ? rawValue.map((c) => this.extractItem(c)) : [this.extractItem(rawValue)];\n }\n\n private extractItem(item: any): any {\n return typeof item == 'object'\n ? {\n value: item.value ?? '-',\n label: item.label ?? 'Telegram',\n }\n : {\n value: item,\n label: 'Telegram',\n };\n }\n\n protected generateLink(label: string, value: string): string {\n const labelLowerCase = label.toLowerCase();\n switch (labelLowerCase) {\n case 'telegram':\n return `https://t.me/${value}`;\n case 'whatsapp':\n return `https://wa.me/${value}`;\n default:\n return value;\n }\n }\n protected generateBadgeColor(label: string): string {\n const labelLowerCase = label.toLowerCase();\n switch (labelLowerCase) {\n case 'telegram':\n return 'primary';\n case 'whatsapp':\n return 'success';\n default:\n return 'primary';\n }\n }\n}\n"],"names":["i2"],"mappings":";;;;;;;;AA4CM,MAAO,+BAAgC,SAAQ,aAAa,CAAA;AAvClE,IAAA,WAAA,GAAA;;AAwCY,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,mBAAmB,CAAC;AA4ClD;IAxCoB,MAAM,GAAA;AACvB,QAAA,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ;QAC9B,IAAI,QAAQ,IAAI,IAAI;YAAE;AACtB,QAAA,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,IAAI,C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A,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,UAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAiCL,EAEK,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,YAAY,ySAAE,aAAa,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAA,IAAA,CAAA,gBAAA,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,MAAA,EAAA,MAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAG5B,+BAA+B,EAAA,UAAA,EAAA,CAAA;kBAvC3C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCL,QAAA,CAAA;oBACL,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,aAAa,CAAC;AACtC,oBAAA,MAAM,EAAE,CAAC,SAAS,EAAE,UAAU;AACjC,iBAAA;;;;;"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import * as i5 from '@acorex/components/decorators';
|
|
2
|
-
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
3
|
-
import * as i3 from '@acorex/components/form';
|
|
4
|
-
import { AXFormModule } from '@acorex/components/form';
|
|
5
|
-
import * as i1$1 from '@acorex/components/number-box';
|
|
6
|
-
import { AXNumberBoxModule } from '@acorex/components/number-box';
|
|
7
|
-
import { AXPWidgetEditBase } from './acorex-platform-common.mjs';
|
|
8
|
-
import * as i1 from '@angular/common';
|
|
9
|
-
import { CommonModule } from '@angular/common';
|
|
10
|
-
import * as i0 from '@angular/core';
|
|
11
|
-
import { Component, ChangeDetectionStrategy } from '@angular/core';
|
|
12
|
-
import * as i2 from '@angular/forms';
|
|
13
|
-
import { FormsModule } from '@angular/forms';
|
|
14
|
-
|
|
15
|
-
class AXPNumberWidgetEditComponent extends AXPWidgetEditBase {
|
|
16
|
-
constructor() {
|
|
17
|
-
super(...arguments);
|
|
18
|
-
this.clearButton = true;
|
|
19
|
-
}
|
|
20
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPNumberWidgetEditComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
21
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPNumberWidgetEditComponent, isStandalone: true, selector: "axp-number-widget-edit", usesInheritance: true, ngImport: i0, template: `
|
|
22
|
-
<ax-number-box [(ngModel)]="value" >
|
|
23
|
-
@for(vl of validations;track $index) {
|
|
24
|
-
<ax-validation-rule [rule]="vl.rule" [options]="vl.options"></ax-validation-rule>
|
|
25
|
-
}
|
|
26
|
-
<ax-clear-button *ngIf="clearButton"></ax-clear-button>
|
|
27
|
-
</ax-number-box>
|
|
28
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: AXNumberBoxModule }, { kind: "component", type: i1$1.AXNumberBoxComponent, selector: "ax-number-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "changeOnScroll", "thousandsSeparator", "padDecimalZeros", "step", "decimals", "decimalStep", "showSpinButtons", "minValue", "maxValue", "class"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { 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: AXDecoratorModule }, { kind: "component", type: i5.AXDecoratorClearButtonComponent, selector: "ax-clear-button", inputs: ["icon"] }, { kind: "ngmodule", type: AXFormModule }, { kind: "directive", type: i3.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
29
|
-
}
|
|
30
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPNumberWidgetEditComponent, decorators: [{
|
|
31
|
-
type: Component,
|
|
32
|
-
args: [{
|
|
33
|
-
selector: 'axp-number-widget-edit',
|
|
34
|
-
template: `
|
|
35
|
-
<ax-number-box [(ngModel)]="value" >
|
|
36
|
-
@for(vl of validations;track $index) {
|
|
37
|
-
<ax-validation-rule [rule]="vl.rule" [options]="vl.options"></ax-validation-rule>
|
|
38
|
-
}
|
|
39
|
-
<ax-clear-button *ngIf="clearButton"></ax-clear-button>
|
|
40
|
-
</ax-number-box>
|
|
41
|
-
`,
|
|
42
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
43
|
-
imports: [CommonModule, AXNumberBoxModule, FormsModule, AXDecoratorModule, AXFormModule]
|
|
44
|
-
}]
|
|
45
|
-
}] });
|
|
46
|
-
|
|
47
|
-
export { AXPNumberWidgetEditComponent };
|
|
48
|
-
//# sourceMappingURL=acorex-platform-common-number-widget-edit.component-DZf-n-yr.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-common-number-widget-edit.component-DZf-n-yr.mjs","sources":["../../../../libs/platform/common/src/lib/schema/widgets/number/number-widget-edit.component.ts"],"sourcesContent":["import { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXFormModule } from '@acorex/components/form';\nimport { AXNumberBoxModule } from '@acorex/components/number-box';\nimport { AXPWidgetEditBase } from '../../widget/widget-base';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n@Component({\n selector: 'axp-number-widget-edit',\n template: `\n <ax-number-box [(ngModel)]=\"value\" >\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 *ngIf=\"clearButton\"></ax-clear-button>\n </ax-number-box>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule, AXNumberBoxModule, FormsModule, AXDecoratorModule, AXFormModule]\n})\nexport class AXPNumberWidgetEditComponent extends AXPWidgetEditBase {\n clearButton: boolean = true;\n}"],"names":["i2","i3","i5"],"mappings":";;;;;;;;;;;;;;AAqBM,MAAO,4BAA6B,SAAQ,iBAAiB,CAAA;AAbnE,IAAA,WAAA,GAAA;;QAcI,IAAW,CAAA,WAAA,GAAY,IAAI;AAC9B;8GAFY,4BAA4B,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA5B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,4BAA4B,EAX3B,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,wBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA;;;;;;;KAOT,EAES,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,YAAY,kIAAE,iBAAiB,EAAA,EAAA,EAAA,IAAA,EAA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AAA;kBAbxC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,wBAAwB;AAClC,oBAAA,QAAQ,EAAE;;;;;;;AAOT,IAAA,CAAA;oBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,OAAO,EAAE,CAAC,YAAY,EAAE,iBAAiB,EAAE,WAAW,EAAE,iBAAiB,EAAE,YAAY;AAC1F,iBAAA;;;;;"}
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import * as i2$1 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 i1 from '@acorex/components/number-box';
|
|
6
|
-
import { AXNumberBoxModule } from '@acorex/components/number-box';
|
|
7
|
-
import * as i4 from '@acorex/components/popover';
|
|
8
|
-
import { AXPopoverModule } from '@acorex/components/popover';
|
|
9
|
-
import * as i5$1 from '@acorex/components/selection-list';
|
|
10
|
-
import { AXSelectionListModule } from '@acorex/components/selection-list';
|
|
11
|
-
import * as i0 from '@angular/core';
|
|
12
|
-
import { Component, ChangeDetectionStrategy } from '@angular/core';
|
|
13
|
-
import * as i2 from '@angular/forms';
|
|
14
|
-
import { FormsModule } from '@angular/forms';
|
|
15
|
-
import { AXPWidgetFilterBase } from './acorex-platform-common.mjs';
|
|
16
|
-
|
|
17
|
-
class AXPNumberWidgetFilterComponent extends AXPWidgetFilterBase {
|
|
18
|
-
constructor() {
|
|
19
|
-
super(...arguments);
|
|
20
|
-
this.operations = [];
|
|
21
|
-
}
|
|
22
|
-
render() {
|
|
23
|
-
this.operations = this.schema.filterOptions.operators;
|
|
24
|
-
}
|
|
25
|
-
getOperatorHasValue() {
|
|
26
|
-
const operator = this.operations.find((op) => op.name == this.operator);
|
|
27
|
-
return !operator || operator.hasValue ? true : false;
|
|
28
|
-
}
|
|
29
|
-
ngOnInit() {
|
|
30
|
-
this.updateValueOnOperatorChange();
|
|
31
|
-
}
|
|
32
|
-
updateValueOnOperatorChange() {
|
|
33
|
-
if (!this.getOperatorHasValue()) {
|
|
34
|
-
this.value = null;
|
|
35
|
-
}
|
|
36
|
-
if (this.operator === 'between')
|
|
37
|
-
this.value = { from: this.value?.from || 0, to: this.value?.to || 0 };
|
|
38
|
-
}
|
|
39
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPNumberWidgetFilterComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
40
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPNumberWidgetFilterComponent, isStandalone: true, selector: "axp-number-widget-filter", usesInheritance: true, ngImport: i0, template: `
|
|
41
|
-
<div class="ax-flex ax-items-center">
|
|
42
|
-
@if(operator!=="between"){
|
|
43
|
-
<ax-number-box [disabled]="!this.getOperatorHasValue()" [(ngModel)]="value">
|
|
44
|
-
<ax-clear-button></ax-clear-button>
|
|
45
|
-
</ax-number-box>
|
|
46
|
-
}@else{
|
|
47
|
-
<div class="ax-flex ax-gap-3">
|
|
48
|
-
<ax-number-box placeholder="from" [(ngModel)]="value.from">
|
|
49
|
-
<ax-clear-button></ax-clear-button>
|
|
50
|
-
</ax-number-box>
|
|
51
|
-
<ax-number-box placeholder="to" [(ngModel)]="value.to">
|
|
52
|
-
<ax-clear-button></ax-clear-button>
|
|
53
|
-
</ax-number-box>
|
|
54
|
-
</div>
|
|
55
|
-
} @if(operations.length){
|
|
56
|
-
<ax-button #changeOperator look="blank" color="default" class="ax-sm">
|
|
57
|
-
<ax-icon class="fa-solid fa-ellipsis-vertical"></ax-icon>
|
|
58
|
-
</ax-button>
|
|
59
|
-
<ax-popover
|
|
60
|
-
#operatorsPopover
|
|
61
|
-
[target]="changeOperator"
|
|
62
|
-
[openOn]="'toggle'"
|
|
63
|
-
[closeOn]="'clickOut'"
|
|
64
|
-
[adaptivityEnabled]="true"
|
|
65
|
-
>
|
|
66
|
-
<div
|
|
67
|
-
class="ax-bg-surface ax-py-5 ax-px-3 ax-border ax-border-default ax-rounded-md ax-shadow-md ax-w-full ax-min-w-[250px]"
|
|
68
|
-
>
|
|
69
|
-
<ax-selection-list
|
|
70
|
-
[valueField]="'name'"
|
|
71
|
-
[textField]="'title'"
|
|
72
|
-
[(ngModel)]="operator"
|
|
73
|
-
(ngModelChange)="operatorsPopover.close(); updateValueOnOperatorChange()"
|
|
74
|
-
[direction]="'vertical'"
|
|
75
|
-
[items]="operations"
|
|
76
|
-
[multiple]="false"
|
|
77
|
-
></ax-selection-list>
|
|
78
|
-
</div>
|
|
79
|
-
</ax-popover>
|
|
80
|
-
}
|
|
81
|
-
</div>
|
|
82
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: AXNumberBoxModule }, { kind: "component", type: i1.AXNumberBoxComponent, selector: "ax-number-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "changeOnScroll", "thousandsSeparator", "padDecimalZeros", "step", "decimals", "decimalStep", "showSpinButtons", "minValue", "maxValue", "class"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { 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: AXDecoratorModule }, { kind: "component", type: i5.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i5.AXDecoratorClearButtonComponent, selector: "ax-clear-button", inputs: ["icon"] }, { kind: "ngmodule", type: AXPopoverModule }, { kind: "component", type: i4.AXPopoverComponent, selector: "ax-popover", inputs: ["offsetX", "offsetY", "target", "placement", "content", "openOn", "closeOn", "hasBackdrop", "openAfter", "closeAfter", "backdropClass", "panelClass", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { kind: "ngmodule", type: AXSelectionListModule }, { kind: "component", type: i5$1.AXSelectionListComponent, selector: "ax-selection-list", inputs: ["id", "name", "disabled", "readonly", "tabIndex", "size", "value", "valueField", "textField", "disabledField", "readonlyField", "multiple", "direction", "customTemplate", "showControl", "items", "look"], outputs: ["onValueChanged", "onBlur", "onFocus"] }, { 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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
83
|
-
}
|
|
84
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPNumberWidgetFilterComponent, decorators: [{
|
|
85
|
-
type: Component,
|
|
86
|
-
args: [{
|
|
87
|
-
selector: 'axp-number-widget-filter',
|
|
88
|
-
template: `
|
|
89
|
-
<div class="ax-flex ax-items-center">
|
|
90
|
-
@if(operator!=="between"){
|
|
91
|
-
<ax-number-box [disabled]="!this.getOperatorHasValue()" [(ngModel)]="value">
|
|
92
|
-
<ax-clear-button></ax-clear-button>
|
|
93
|
-
</ax-number-box>
|
|
94
|
-
}@else{
|
|
95
|
-
<div class="ax-flex ax-gap-3">
|
|
96
|
-
<ax-number-box placeholder="from" [(ngModel)]="value.from">
|
|
97
|
-
<ax-clear-button></ax-clear-button>
|
|
98
|
-
</ax-number-box>
|
|
99
|
-
<ax-number-box placeholder="to" [(ngModel)]="value.to">
|
|
100
|
-
<ax-clear-button></ax-clear-button>
|
|
101
|
-
</ax-number-box>
|
|
102
|
-
</div>
|
|
103
|
-
} @if(operations.length){
|
|
104
|
-
<ax-button #changeOperator look="blank" color="default" class="ax-sm">
|
|
105
|
-
<ax-icon class="fa-solid fa-ellipsis-vertical"></ax-icon>
|
|
106
|
-
</ax-button>
|
|
107
|
-
<ax-popover
|
|
108
|
-
#operatorsPopover
|
|
109
|
-
[target]="changeOperator"
|
|
110
|
-
[openOn]="'toggle'"
|
|
111
|
-
[closeOn]="'clickOut'"
|
|
112
|
-
[adaptivityEnabled]="true"
|
|
113
|
-
>
|
|
114
|
-
<div
|
|
115
|
-
class="ax-bg-surface ax-py-5 ax-px-3 ax-border ax-border-default ax-rounded-md ax-shadow-md ax-w-full ax-min-w-[250px]"
|
|
116
|
-
>
|
|
117
|
-
<ax-selection-list
|
|
118
|
-
[valueField]="'name'"
|
|
119
|
-
[textField]="'title'"
|
|
120
|
-
[(ngModel)]="operator"
|
|
121
|
-
(ngModelChange)="operatorsPopover.close(); updateValueOnOperatorChange()"
|
|
122
|
-
[direction]="'vertical'"
|
|
123
|
-
[items]="operations"
|
|
124
|
-
[multiple]="false"
|
|
125
|
-
></ax-selection-list>
|
|
126
|
-
</div>
|
|
127
|
-
</ax-popover>
|
|
128
|
-
}
|
|
129
|
-
</div>
|
|
130
|
-
`,
|
|
131
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
132
|
-
imports: [AXNumberBoxModule, FormsModule, AXDecoratorModule, AXPopoverModule, AXSelectionListModule, AXButtonModule]
|
|
133
|
-
}]
|
|
134
|
-
}] });
|
|
135
|
-
|
|
136
|
-
export { AXPNumberWidgetFilterComponent };
|
|
137
|
-
//# sourceMappingURL=acorex-platform-common-number-widget-filter.component-womVAhSr.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-common-number-widget-filter.component-womVAhSr.mjs","sources":["../../../../libs/platform/common/src/lib/schema/widgets/common-widget-filter/number-widget-filter.component.ts"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXNumberBoxModule } from '@acorex/components/number-box';\nimport { AXPopoverModule } from '@acorex/components/popover';\nimport { AXSelectionListModule } from '@acorex/components/selection-list';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { AXPWidgetFilterBase } from '../../widget/widget-base';\nimport { AXPFilterOperator } from '../../../app';\n\n@Component({\n selector: 'axp-number-widget-filter',\n template: `\n <div class=\"ax-flex ax-items-center\">\n @if(operator!==\"between\"){\n <ax-number-box [disabled]=\"!this.getOperatorHasValue()\" [(ngModel)]=\"value\">\n <ax-clear-button></ax-clear-button>\n </ax-number-box>\n }@else{\n <div class=\"ax-flex ax-gap-3\">\n <ax-number-box placeholder=\"from\" [(ngModel)]=\"value.from\">\n <ax-clear-button></ax-clear-button>\n </ax-number-box>\n <ax-number-box placeholder=\"to\" [(ngModel)]=\"value.to\">\n <ax-clear-button></ax-clear-button>\n </ax-number-box>\n </div>\n } @if(operations.length){\n <ax-button #changeOperator look=\"blank\" color=\"default\" class=\"ax-sm\">\n <ax-icon class=\"fa-solid fa-ellipsis-vertical\"></ax-icon>\n </ax-button>\n <ax-popover\n #operatorsPopover\n [target]=\"changeOperator\"\n [openOn]=\"'toggle'\"\n [closeOn]=\"'clickOut'\"\n [adaptivityEnabled]=\"true\"\n >\n <div\n class=\"ax-bg-surface ax-py-5 ax-px-3 ax-border ax-border-default ax-rounded-md ax-shadow-md ax-w-full ax-min-w-[250px]\"\n >\n <ax-selection-list\n [valueField]=\"'name'\"\n [textField]=\"'title'\"\n [(ngModel)]=\"operator\"\n (ngModelChange)=\"operatorsPopover.close(); updateValueOnOperatorChange()\"\n [direction]=\"'vertical'\"\n [items]=\"operations\"\n [multiple]=\"false\"\n ></ax-selection-list>\n </div>\n </ax-popover>\n }\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [AXNumberBoxModule, FormsModule, AXDecoratorModule, AXPopoverModule, AXSelectionListModule, AXButtonModule]\n})\nexport class AXPNumberWidgetFilterComponent extends AXPWidgetFilterBase<any> {\n operations: AXPFilterOperator[] = [];\n\n override render(): void {\n this.operations = this.schema.filterOptions.operators;\n }\n\n protected getOperatorHasValue(): boolean {\n const operator = this.operations.find((op) => op.name == this.operator);\n return !operator || operator.hasValue ? true : false;\n }\n\n ngOnInit(): void {\n this.updateValueOnOperatorChange();\n }\n\n updateValueOnOperatorChange() {\n if (!this.getOperatorHasValue()) {\n this.value = null;\n }\n if (this.operator === 'between') this.value = { from: this.value?.from || 0, to: this.value?.to || 0 };\n }\n}\n"],"names":["i5","i6"],"mappings":";;;;;;;;;;;;;;;;AA0DM,MAAO,8BAA+B,SAAQ,mBAAwB,CAAA;AAhD5E,IAAA,WAAA,GAAA;;QAiDE,IAAU,CAAA,UAAA,GAAwB,EAAE;AAqBrC;IAnBU,MAAM,GAAA;QACb,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,SAAS;;IAG7C,mBAAmB,GAAA;QAC3B,MAAM,QAAQ,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,IAAI,IAAI,IAAI,CAAC,QAAQ,CAAC;AACvE,QAAA,OAAO,CAAC,QAAQ,IAAI,QAAQ,CAAC,QAAQ,GAAG,IAAI,GAAG,KAAK;;IAGtD,QAAQ,GAAA;QACN,IAAI,CAAC,2BAA2B,EAAE;;IAGpC,2BAA2B,GAAA;AACzB,QAAA,IAAI,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE;AAC/B,YAAA,IAAI,CAAC,KAAK,GAAG,IAAI;;AAEnB,QAAA,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS;YAAE,IAAI,CAAC,KAAK,GAAG,EAAE,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI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