@acorex/platform 19.1.6 → 19.1.8
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/common.module.d.ts +6 -7
- package/common/lib/layout/menu/index.d.ts +4 -2
- package/common/lib/layout/menu/menu.types.d.ts +2 -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 +8 -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/common/lib/store/common.actions.d.ts +0 -12
- package/common/lib/store/index.d.ts +0 -1
- package/common/lib/workflows/index.d.ts +1 -0
- package/common/lib/workflows/navigate.workflow.d.ts +9 -0
- package/core/lib/types.d.ts +19 -0
- package/fesm2022/acorex-platform-auth.mjs +78 -43
- package/fesm2022/acorex-platform-auth.mjs.map +1 -1
- package/fesm2022/acorex-platform-common.mjs +1452 -2235
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-builder.mjs +1 -0
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +106 -10
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-search.mjs +196 -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-BiKt6Mvr.mjs +84 -0
- package/fesm2022/acorex-platform-themes-default-search-popup.component-BiKt6Mvr.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 +379 -115
- package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
- package/layout/builder/lib/builder/widget-map.d.ts +1 -0
- package/layout/entity/lib/entity-registery.service.d.ts +16 -0
- package/layout/entity/lib/entity.config.d.ts +2 -2
- package/layout/entity/lib/entity.module.d.ts +3 -0
- package/layout/entity/lib/search-definition.provider.d.ts +6 -0
- package/layout/entity/lib/search.provider.d.ts +4 -0
- 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 +17 -0
- package/layout/search/lib/workflows/search.workflow.d.ts +11 -0
- package/layout/setting/lib/setting.viewmodel.d.ts +1 -1
- package/package.json +19 -15
- package/themes/default/lib/layouts/search-layout/search-popup.component.d.ts +13 -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/properties/layout.props.d.ts +1 -0
- package/widgets/lib/widgets/index.d.ts +1 -0
- package/widgets/lib/widgets/layout/block/block-widget-designer.component.d.ts +0 -1
- package/widgets/lib/widgets/layout/grid/grid-widget-designer.component.d.ts +3 -1
- package/widgets/lib/widgets/property-editors/flex-options/flex-options-widget-editor.component.d.ts +6 -4
- package/widgets/lib/widgets/property-editors/grid-options/grid-options-widget-editor.component.d.ts +39 -0
- package/widgets/lib/widgets/property-editors/grid-options/grid-options-widget.config.d.ts +7 -0
- package/widgets/lib/widgets/property-editors/grid-options/grid-options-widget.type.d.ts +19 -0
- package/widgets/lib/widgets/property-editors/grid-options/index.d.ts +3 -0
- package/widgets/lib/widgets/property-editors/property-editor-helper.d.ts +21 -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/common/lib/store/common.effects.d.ts +0 -13
- 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,130 +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 i2$1 from '@acorex/components/image';
|
|
6
|
-
import { AXImageModule } from '@acorex/components/image';
|
|
7
|
-
import { AXPWidgetEditBase } from './acorex-platform-common.mjs';
|
|
8
|
-
import { CommonModule } from '@angular/common';
|
|
9
|
-
import * as i0 from '@angular/core';
|
|
10
|
-
import { signal, effect, Component, ChangeDetectionStrategy, ViewChild } from '@angular/core';
|
|
11
|
-
|
|
12
|
-
class AXPSignaturePadWidgetEditComponent extends AXPWidgetEditBase {
|
|
13
|
-
constructor() {
|
|
14
|
-
super(...arguments);
|
|
15
|
-
this.editMode = signal(false);
|
|
16
|
-
this.changeModeEffect = effect(() => {
|
|
17
|
-
if (this.editMode()) {
|
|
18
|
-
setTimeout(() => {
|
|
19
|
-
this.initPad();
|
|
20
|
-
}, 100);
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
async ngOnInit() {
|
|
25
|
-
this.editMode.set(this.value ? false : true);
|
|
26
|
-
}
|
|
27
|
-
getDataURL() {
|
|
28
|
-
return this.signaturePad.toDataURL('image/svg+xml');
|
|
29
|
-
}
|
|
30
|
-
async initPad() {
|
|
31
|
-
const pad = await import('signature_pad');
|
|
32
|
-
this.signaturePad = new pad.default(this.padCanvas.nativeElement, {});
|
|
33
|
-
this.signaturePad.addEventListener('afterUpdateStroke', () => {
|
|
34
|
-
this.value = this.getDataURL();
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
clear() {
|
|
38
|
-
this.signaturePad.clear();
|
|
39
|
-
this.value = this.getDataURL();
|
|
40
|
-
}
|
|
41
|
-
downloadSVG() {
|
|
42
|
-
const link = document.createElement('a');
|
|
43
|
-
link.href = this.getDataURL();
|
|
44
|
-
link.target = '_blank';
|
|
45
|
-
link.download = 'download';
|
|
46
|
-
link.click();
|
|
47
|
-
}
|
|
48
|
-
async switchEditMode() {
|
|
49
|
-
this.editMode.update((prev) => !prev);
|
|
50
|
-
}
|
|
51
|
-
undo() {
|
|
52
|
-
let data = this.signaturePad.toData();
|
|
53
|
-
if (data) {
|
|
54
|
-
data.pop();
|
|
55
|
-
this.signaturePad.fromData(data);
|
|
56
|
-
this.value = this.getDataURL();
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPSignaturePadWidgetEditComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
60
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPSignaturePadWidgetEditComponent, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "padCanvas", first: true, predicate: ["padCanvas"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
61
|
-
<div class="ax-flex ax-gap-3">
|
|
62
|
-
@if(editMode()){
|
|
63
|
-
<canvas width="300" class="ax-border ax-rounded-md" #padCanvas></canvas>
|
|
64
|
-
<div class="ax-flex ax-flex-col ax-col-span-1 ax-gap-3">
|
|
65
|
-
<ax-button class="ax-sm" (onClick)="downloadSVG()" look="outline" color="primary">
|
|
66
|
-
<ax-icon class="fas fa-download"></ax-icon>
|
|
67
|
-
</ax-button>
|
|
68
|
-
<ax-button class="ax-sm" (onClick)="undo()" look="outline" color="primary">
|
|
69
|
-
<ax-icon class="fas fa-rotate-left"></ax-icon>
|
|
70
|
-
</ax-button>
|
|
71
|
-
<ax-button class="ax-sm" (onClick)="clear()" look="outline" color="danger">
|
|
72
|
-
<ax-icon class="fas fa-trash ax-text-danger"></ax-icon>
|
|
73
|
-
</ax-button>
|
|
74
|
-
</div>
|
|
75
|
-
}@else{
|
|
76
|
-
<div class="ax-border ax-rounded">
|
|
77
|
-
<ax-image [src]="value">
|
|
78
|
-
<ax-overlay class="ax-flex ax-justify-center">
|
|
79
|
-
<ax-button look="twotone" color="primary" (onClick)="switchEditMode()">
|
|
80
|
-
<ax-icon class="far fa-edit"> </ax-icon>
|
|
81
|
-
</ax-button>
|
|
82
|
-
</ax-overlay>
|
|
83
|
-
</ax-image>
|
|
84
|
-
</div>
|
|
85
|
-
}
|
|
86
|
-
</div>
|
|
87
|
-
`, 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"] }, { 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: AXImageModule }, { kind: "component", type: i2$1.AXImageComponent, selector: "ax-image", inputs: ["overlayMode", "src", "alt", "priority", "lazy"], outputs: ["onLoad", "onError"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
88
|
-
}
|
|
89
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPSignaturePadWidgetEditComponent, decorators: [{
|
|
90
|
-
type: Component,
|
|
91
|
-
args: [{
|
|
92
|
-
template: `
|
|
93
|
-
<div class="ax-flex ax-gap-3">
|
|
94
|
-
@if(editMode()){
|
|
95
|
-
<canvas width="300" class="ax-border ax-rounded-md" #padCanvas></canvas>
|
|
96
|
-
<div class="ax-flex ax-flex-col ax-col-span-1 ax-gap-3">
|
|
97
|
-
<ax-button class="ax-sm" (onClick)="downloadSVG()" look="outline" color="primary">
|
|
98
|
-
<ax-icon class="fas fa-download"></ax-icon>
|
|
99
|
-
</ax-button>
|
|
100
|
-
<ax-button class="ax-sm" (onClick)="undo()" look="outline" color="primary">
|
|
101
|
-
<ax-icon class="fas fa-rotate-left"></ax-icon>
|
|
102
|
-
</ax-button>
|
|
103
|
-
<ax-button class="ax-sm" (onClick)="clear()" look="outline" color="danger">
|
|
104
|
-
<ax-icon class="fas fa-trash ax-text-danger"></ax-icon>
|
|
105
|
-
</ax-button>
|
|
106
|
-
</div>
|
|
107
|
-
}@else{
|
|
108
|
-
<div class="ax-border ax-rounded">
|
|
109
|
-
<ax-image [src]="value">
|
|
110
|
-
<ax-overlay class="ax-flex ax-justify-center">
|
|
111
|
-
<ax-button look="twotone" color="primary" (onClick)="switchEditMode()">
|
|
112
|
-
<ax-icon class="far fa-edit"> </ax-icon>
|
|
113
|
-
</ax-button>
|
|
114
|
-
</ax-overlay>
|
|
115
|
-
</ax-image>
|
|
116
|
-
</div>
|
|
117
|
-
}
|
|
118
|
-
</div>
|
|
119
|
-
`,
|
|
120
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
121
|
-
imports: [CommonModule, AXButtonModule, AXDecoratorModule, AXImageModule],
|
|
122
|
-
inputs: []
|
|
123
|
-
}]
|
|
124
|
-
}], propDecorators: { padCanvas: [{
|
|
125
|
-
type: ViewChild,
|
|
126
|
-
args: ['padCanvas']
|
|
127
|
-
}] } });
|
|
128
|
-
|
|
129
|
-
export { AXPSignaturePadWidgetEditComponent };
|
|
130
|
-
//# sourceMappingURL=acorex-platform-common-signature-pad-widget-edit.component-CMoiIhgJ.mjs.map
|
package/fesm2022/acorex-platform-common-signature-pad-widget-edit.component-CMoiIhgJ.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-common-signature-pad-widget-edit.component-CMoiIhgJ.mjs","sources":["../../../../libs/platform/common/src/lib/schema/widgets/signature-pad/signature-pad-widget-edit.component.ts"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXImageModule } from '@acorex/components/image';\nimport { AXPWidgetEditBase } from '../../widget/widget-base';\nimport { CommonModule } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n ViewChild,\n WritableSignal,\n effect,\n signal,\n} from '@angular/core';\nimport SignaturePad from 'signature_pad';\n@Component({\n template: `\n <div class=\"ax-flex ax-gap-3\">\n @if(editMode()){\n <canvas width=\"300\" class=\"ax-border ax-rounded-md\" #padCanvas></canvas>\n <div class=\"ax-flex ax-flex-col ax-col-span-1 ax-gap-3\">\n <ax-button class=\"ax-sm\" (onClick)=\"downloadSVG()\" look=\"outline\" color=\"primary\">\n <ax-icon class=\"fas fa-download\"></ax-icon>\n </ax-button>\n <ax-button class=\"ax-sm\" (onClick)=\"undo()\" look=\"outline\" color=\"primary\">\n <ax-icon class=\"fas fa-rotate-left\"></ax-icon>\n </ax-button>\n <ax-button class=\"ax-sm\" (onClick)=\"clear()\" look=\"outline\" color=\"danger\">\n <ax-icon class=\"fas fa-trash ax-text-danger\"></ax-icon>\n </ax-button>\n </div>\n }@else{\n <div class=\"ax-border ax-rounded\">\n <ax-image [src]=\"value\">\n <ax-overlay class=\"ax-flex ax-justify-center\">\n <ax-button look=\"twotone\" color=\"primary\" (onClick)=\"switchEditMode()\">\n <ax-icon class=\"far fa-edit\"> </ax-icon>\n </ax-button>\n </ax-overlay>\n </ax-image>\n </div>\n }\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule, AXButtonModule, AXDecoratorModule, AXImageModule],\n inputs: []\n})\nexport class AXPSignaturePadWidgetEditComponent extends AXPWidgetEditBase {\n @ViewChild('padCanvas') padCanvas!: ElementRef<HTMLCanvasElement>;\n protected signaturePad!: SignaturePad;\n protected editMode: WritableSignal<boolean> = signal(false);\n\n private changeModeEffect = effect(() => {\n if (this.editMode()) {\n setTimeout(() => {\n this.initPad();\n }, 100);\n }\n });\n\n async ngOnInit() {\n this.editMode.set(this.value ? false : true);\n }\n\n private getDataURL() {\n return this.signaturePad.toDataURL('image/svg+xml');\n }\n\n async initPad() {\n const pad = await import('signature_pad');\n this.signaturePad = new pad.default(this.padCanvas.nativeElement, {});\n this.signaturePad.addEventListener('afterUpdateStroke', () => {\n this.value = this.getDataURL();\n });\n }\n\n protected clear() {\n this.signaturePad.clear();\n this.value = this.getDataURL();\n }\n\n protected downloadSVG() {\n const link = document.createElement('a');\n link.href = this.getDataURL();\n link.target = '_blank';\n link.download = 'download';\n link.click();\n }\n\n protected async switchEditMode() {\n this.editMode.update((prev) => !prev);\n }\n\n protected undo() {\n let data = this.signaturePad.toData();\n if (data) {\n data.pop();\n this.signaturePad.fromData(data);\n this.value = this.getDataURL();\n }\n }\n}\n"],"names":["i1","i3"],"mappings":";;;;;;;;;;;AAgDM,MAAO,kCAAmC,SAAQ,iBAAiB,CAAA;AAjCzE,IAAA,WAAA,GAAA;;AAoCY,QAAA,IAAA,CAAA,QAAQ,GAA4B,MAAM,CAAC,KAAK,CAAC;AAEnD,QAAA,IAAA,CAAA,gBAAgB,GAAG,MAAM,CAAC,MAAK;AACrC,YAAA,IAAI,IAAI,CAAC,QAAQ,EAAE,EAAE;gBACnB,UAAU,CAAC,MAAK;oBACd,IAAI,CAAC,OAAO,EAAE;iBACf,EAAE,GAAG,CAAC;;AA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,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,iBAAiB,uVAAE,aAAa,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAC,IAAA,CAAA,gBAAA,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,CAAA,aAAA,EAAA,KAAA,EAAA,KAAA,EAAA,UAAA,EAAA,MAAA,CAAA,EAAA,OAAA,EAAA,CAAA,QAAA,EAAA,SAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAG/D,kCAAkC,EAAA,UAAA,EAAA,CAAA;kBAjC9C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BX,EAAA,CAAA;oBACC,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,OAAO,EAAE,CAAC,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,aAAa,CAAC;AACzE,oBAAA,MAAM,EAAE;AACX,iBAAA;8BAEyB,SAAS,EAAA,CAAA;sBAAhC,SAAS;uBAAC,WAAW;;;;;"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import * as i2 from '@acorex/components/image';
|
|
2
|
-
import { AXImageModule } from '@acorex/components/image';
|
|
3
|
-
import { AXPWidgetBase } from './acorex-platform-common.mjs';
|
|
4
|
-
import { CommonModule } from '@angular/common';
|
|
5
|
-
import * as i0 from '@angular/core';
|
|
6
|
-
import { Component, ChangeDetectionStrategy } from '@angular/core';
|
|
7
|
-
|
|
8
|
-
class AXPSignaturePadWidgetViewComponent extends AXPWidgetBase {
|
|
9
|
-
render() {
|
|
10
|
-
const dataURL = this.rawValue;
|
|
11
|
-
this.src = dataURL;
|
|
12
|
-
}
|
|
13
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPSignaturePadWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
14
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPSignaturePadWidgetViewComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
|
|
15
|
-
<div class="ax-w-72 ax-h-36 ax-border ax-rounded-md ax-flex ax-justify-center ax-items-center">
|
|
16
|
-
@if(src){
|
|
17
|
-
<ax-image [src]="src"></ax-image>
|
|
18
|
-
}@else{
|
|
19
|
-
<span>Not Set!</span>
|
|
20
|
-
}
|
|
21
|
-
</div>
|
|
22
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXImageModule }, { kind: "component", type: i2.AXImageComponent, selector: "ax-image", inputs: ["overlayMode", "src", "alt", "priority", "lazy"], outputs: ["onLoad", "onError"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
23
|
-
}
|
|
24
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPSignaturePadWidgetViewComponent, decorators: [{
|
|
25
|
-
type: Component,
|
|
26
|
-
args: [{
|
|
27
|
-
template: `
|
|
28
|
-
<div class="ax-w-72 ax-h-36 ax-border ax-rounded-md ax-flex ax-justify-center ax-items-center">
|
|
29
|
-
@if(src){
|
|
30
|
-
<ax-image [src]="src"></ax-image>
|
|
31
|
-
}@else{
|
|
32
|
-
<span>Not Set!</span>
|
|
33
|
-
}
|
|
34
|
-
</div>
|
|
35
|
-
`,
|
|
36
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
37
|
-
imports: [CommonModule, AXImageModule],
|
|
38
|
-
inputs: []
|
|
39
|
-
}]
|
|
40
|
-
}] });
|
|
41
|
-
|
|
42
|
-
export { AXPSignaturePadWidgetViewComponent };
|
|
43
|
-
//# sourceMappingURL=acorex-platform-common-signature-pad-widget-view.component-HfArY6VQ.mjs.map
|
package/fesm2022/acorex-platform-common-signature-pad-widget-view.component-HfArY6VQ.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-common-signature-pad-widget-view.component-HfArY6VQ.mjs","sources":["../../../../libs/platform/common/src/lib/schema/widgets/signature-pad/signature-pad-widget-view.component.ts"],"sourcesContent":["import { AXImageModule } from '@acorex/components/image';\nimport { AXPWidgetBase } from '../../widget/widget-base';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n@Component({\n template: `\n <div class=\"ax-w-72 ax-h-36 ax-border ax-rounded-md ax-flex ax-justify-center ax-items-center\">\n @if(src){\n <ax-image [src]=\"src\"></ax-image>\n }@else{\n <span>Not Set!</span>\n }\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule, AXImageModule],\n inputs: []\n})\nexport class AXPSignaturePadWidgetViewComponent extends AXPWidgetBase {\n protected src: any;\n\n override render() {\n const dataURL = this.rawValue;\n this.src = dataURL;\n }\n}\n"],"names":["i1"],"mappings":";;;;;;;AAkBM,MAAO,kCAAmC,SAAQ,aAAa,CAAA;IAG1D,MAAM,GAAA;AACb,QAAA,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ;AAC7B,QAAA,IAAI,CAAC,GAAG,GAAG,OAAO;;8GALT,kCAAkC,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAlC,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,kCAAkC,EAbjC,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,cAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA;;;;;;;;GAQX,EAEW,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,YAAY,8BAAE,aAAa,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAA,EAAA,CAAA,gBAAA,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,CAAA,aAAA,EAAA,KAAA,EAAA,KAAA,EAAA,UAAA,EAAA,MAAA,CAAA,EAAA,OAAA,EAAA,CAAA,QAAA,EAAA,SAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAG5B,kCAAkC,EAAA,UAAA,EAAA,CAAA;kBAd9C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE;;;;;;;;AAQX,EAAA,CAAA;oBACC,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,aAAa,CAAC;AACtC,oBAAA,MAAM,EAAE;AACX,iBAAA;;;;;"}
|
|
@@ -1,127 +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 i4$1 from '@acorex/components/popover';
|
|
6
|
-
import { AXPopoverModule } from '@acorex/components/popover';
|
|
7
|
-
import { AXSelectBoxModule } from '@acorex/components/select-box';
|
|
8
|
-
import * as i5$1 from '@acorex/components/selection-list';
|
|
9
|
-
import { AXSelectionListModule } from '@acorex/components/selection-list';
|
|
10
|
-
import * as i4 from '@acorex/components/text-box';
|
|
11
|
-
import { AXTextBoxModule } from '@acorex/components/text-box';
|
|
12
|
-
import * as i0 from '@angular/core';
|
|
13
|
-
import { Component, ChangeDetectionStrategy } from '@angular/core';
|
|
14
|
-
import * as i2 from '@angular/forms';
|
|
15
|
-
import { FormsModule } from '@angular/forms';
|
|
16
|
-
import { AXPWidgetFilterBase } from './acorex-platform-common.mjs';
|
|
17
|
-
|
|
18
|
-
class AXPStringWidgetFilterComponent extends AXPWidgetFilterBase {
|
|
19
|
-
constructor() {
|
|
20
|
-
super(...arguments);
|
|
21
|
-
this.operations = [];
|
|
22
|
-
}
|
|
23
|
-
getOperatorHasValue() {
|
|
24
|
-
const operator = this.operations.find((op) => op.name == this.operator);
|
|
25
|
-
return !operator || operator.hasValue ? true : false;
|
|
26
|
-
}
|
|
27
|
-
render() {
|
|
28
|
-
this.operations = this.schema.filterOptions.operators;
|
|
29
|
-
}
|
|
30
|
-
ngOnInit() {
|
|
31
|
-
this.clearValue();
|
|
32
|
-
}
|
|
33
|
-
clearValue() {
|
|
34
|
-
if (!this.getOperatorHasValue())
|
|
35
|
-
this.value = '';
|
|
36
|
-
}
|
|
37
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPStringWidgetFilterComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
38
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPStringWidgetFilterComponent, isStandalone: true, selector: "axp-string-widget-filter", inputs: { value: "value", operator: "operator" }, outputs: { valueChange: "valueChange", operatorChange: "operatorChange" }, usesInheritance: true, ngImport: i0, template: `
|
|
39
|
-
<div class="ax-flex ax-items-center">
|
|
40
|
-
<ax-text-box class="ax-flex-1" [disabled]="!this.getOperatorHasValue()" [(ngModel)]="value">
|
|
41
|
-
<ax-clear-button></ax-clear-button>
|
|
42
|
-
</ax-text-box>
|
|
43
|
-
@if(operations.length){
|
|
44
|
-
<ax-button #changeOperator look="blank" color="default" class="ax-sm">
|
|
45
|
-
<ax-icon class="fa-solid fa-ellipsis-vertical"></ax-icon>
|
|
46
|
-
</ax-button>
|
|
47
|
-
<ax-popover
|
|
48
|
-
#operatorsPopover
|
|
49
|
-
[target]="changeOperator"
|
|
50
|
-
[openOn]="'toggle'"
|
|
51
|
-
[closeOn]="'clickOut'"
|
|
52
|
-
[adaptivityEnabled]="true"
|
|
53
|
-
>
|
|
54
|
-
<div
|
|
55
|
-
class="ax-max-h-max ax-overflow-auto 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]"
|
|
56
|
-
>
|
|
57
|
-
<ax-selection-list
|
|
58
|
-
class=""
|
|
59
|
-
[valueField]="'name'"
|
|
60
|
-
[textField]="'title'"
|
|
61
|
-
[(ngModel)]="operator"
|
|
62
|
-
(ngModelChange)="operatorsPopover.close(); clearValue()"
|
|
63
|
-
[direction]="'vertical'"
|
|
64
|
-
[items]="operations"
|
|
65
|
-
[multiple]="false"
|
|
66
|
-
></ax-selection-list>
|
|
67
|
-
</div>
|
|
68
|
-
</ax-popover>
|
|
69
|
-
}
|
|
70
|
-
</div>
|
|
71
|
-
`, isInline: true, dependencies: [{ 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: 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: AXButtonModule }, { kind: "component", type: i2$1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type", "responsiveOn", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "responsiveOnChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXPopoverModule }, { kind: "component", type: i4$1.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: AXSelectBoxModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
72
|
-
}
|
|
73
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPStringWidgetFilterComponent, decorators: [{
|
|
74
|
-
type: Component,
|
|
75
|
-
args: [{
|
|
76
|
-
selector: 'axp-string-widget-filter',
|
|
77
|
-
template: `
|
|
78
|
-
<div class="ax-flex ax-items-center">
|
|
79
|
-
<ax-text-box class="ax-flex-1" [disabled]="!this.getOperatorHasValue()" [(ngModel)]="value">
|
|
80
|
-
<ax-clear-button></ax-clear-button>
|
|
81
|
-
</ax-text-box>
|
|
82
|
-
@if(operations.length){
|
|
83
|
-
<ax-button #changeOperator look="blank" color="default" class="ax-sm">
|
|
84
|
-
<ax-icon class="fa-solid fa-ellipsis-vertical"></ax-icon>
|
|
85
|
-
</ax-button>
|
|
86
|
-
<ax-popover
|
|
87
|
-
#operatorsPopover
|
|
88
|
-
[target]="changeOperator"
|
|
89
|
-
[openOn]="'toggle'"
|
|
90
|
-
[closeOn]="'clickOut'"
|
|
91
|
-
[adaptivityEnabled]="true"
|
|
92
|
-
>
|
|
93
|
-
<div
|
|
94
|
-
class="ax-max-h-max ax-overflow-auto 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]"
|
|
95
|
-
>
|
|
96
|
-
<ax-selection-list
|
|
97
|
-
class=""
|
|
98
|
-
[valueField]="'name'"
|
|
99
|
-
[textField]="'title'"
|
|
100
|
-
[(ngModel)]="operator"
|
|
101
|
-
(ngModelChange)="operatorsPopover.close(); clearValue()"
|
|
102
|
-
[direction]="'vertical'"
|
|
103
|
-
[items]="operations"
|
|
104
|
-
[multiple]="false"
|
|
105
|
-
></ax-selection-list>
|
|
106
|
-
</div>
|
|
107
|
-
</ax-popover>
|
|
108
|
-
}
|
|
109
|
-
</div>
|
|
110
|
-
`,
|
|
111
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
112
|
-
imports: [
|
|
113
|
-
AXTextBoxModule,
|
|
114
|
-
FormsModule,
|
|
115
|
-
AXDecoratorModule,
|
|
116
|
-
AXButtonModule,
|
|
117
|
-
AXPopoverModule,
|
|
118
|
-
AXSelectionListModule,
|
|
119
|
-
AXSelectBoxModule,
|
|
120
|
-
],
|
|
121
|
-
outputs: ['valueChange', 'operatorChange'],
|
|
122
|
-
inputs: ['value', 'operator']
|
|
123
|
-
}]
|
|
124
|
-
}] });
|
|
125
|
-
|
|
126
|
-
export { AXPStringWidgetFilterComponent };
|
|
127
|
-
//# sourceMappingURL=acorex-platform-common-string-widget-filter.component-CDssxMLR.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-common-string-widget-filter.component-CDssxMLR.mjs","sources":["../../../../libs/platform/common/src/lib/schema/widgets/common-widget-filter/string-widget-filter.component.ts"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXPopoverModule } from '@acorex/components/popover';\nimport { AXSelectBoxModule } from '@acorex/components/select-box';\nimport { AXSelectionListModule } from '@acorex/components/selection-list';\nimport { AXTextBoxModule } from '@acorex/components/text-box';\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-string-widget-filter',\n template: `\n <div class=\"ax-flex ax-items-center\">\n <ax-text-box class=\"ax-flex-1\" [disabled]=\"!this.getOperatorHasValue()\" [(ngModel)]=\"value\">\n <ax-clear-button></ax-clear-button>\n </ax-text-box>\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-max-h-max ax-overflow-auto 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 class=\"\"\n [valueField]=\"'name'\"\n [textField]=\"'title'\"\n [(ngModel)]=\"operator\"\n (ngModelChange)=\"operatorsPopover.close(); clearValue()\"\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: [\n AXTextBoxModule,\n FormsModule,\n AXDecoratorModule,\n AXButtonModule,\n AXPopoverModule,\n AXSelectionListModule,\n AXSelectBoxModule,\n ],\n outputs: ['valueChange', 'operatorChange'],\n inputs: ['value', 'operator']\n})\nexport class AXPStringWidgetFilterComponent extends AXPWidgetFilterBase<string | boolean> {\n operations: AXPFilterOperator[] = [];\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 override render() {\n this.operations = this.schema.filterOptions.operators;\n }\n\n ngOnInit(): void {\n this.clearValue();\n }\n\n clearValue() {\n if (!this.getOperatorHasValue()) this.value = '';\n }\n}\n"],"names":["i1","i3","i4","i5","i6"],"mappings":";;;;;;;;;;;;;;;;;AA4DM,MAAO,8BAA+B,SAAQ,mBAAqC,CAAA;AAjDzF,IAAA,WAAA,GAAA;;QAkDE,IAAU,CAAA,UAAA,GAAwB,EAAE;AAkBrC;IAhBW,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;;IAG7C,MAAM,GAAA;QACb,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,SAAS;;IAGvD,QAAQ,GAAA;QACN,IAAI,CAAC,UAAU,EAAE;;IAGnB,UAAU,GAAA;AACR,QAAA,IAAI,CAAC,IAAI,CAAC,mBAAmB,EAAE;AAAE,YAAA,IAAI,CAAC,KAAK,GAAG,EAAE;;8GAjBvC,8BAA8B,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA9B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,E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from './acorex-platform-common.mjs';
|
|
4
|
-
|
|
5
|
-
class AXPTextWidgetColumnComponent extends AXPWidgetBase {
|
|
6
|
-
render() {
|
|
7
|
-
if (this.rawValue == null) {
|
|
8
|
-
this.convertedValue = null;
|
|
9
|
-
return;
|
|
10
|
-
}
|
|
11
|
-
if (this.isArray(this.rawValue)) {
|
|
12
|
-
if (this.multiple) {
|
|
13
|
-
this.convertedValue = this.rawValue.map((value) => this.formatValue(value)).join(',');
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
this.convertedValue = this.formatValue(this.rawValue[0]);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
this.convertedValue = this.formatValue(this.rawValue);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
formatValue(value) {
|
|
24
|
-
if (this.formats?.default) {
|
|
25
|
-
return this.formatService.format(this.formats.default, this.schema.dataType, this.context);
|
|
26
|
-
}
|
|
27
|
-
else {
|
|
28
|
-
return new String(value).toString();
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
isArray(val) {
|
|
32
|
-
return Array.isArray(val);
|
|
33
|
-
}
|
|
34
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPTextWidgetColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
35
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: AXPTextWidgetColumnComponent, isStandalone: true, selector: "axp-text-widget-column", inputs: { context: "context", value: "value", multiple: "multiple", width: "width", allowResizing: "allowResizing" }, usesInheritance: true, ngImport: i0, template: ` <span [title]="convertedValue">{{ convertedValue }}</span> `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
36
|
-
}
|
|
37
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPTextWidgetColumnComponent, decorators: [{
|
|
38
|
-
type: Component,
|
|
39
|
-
args: [{
|
|
40
|
-
selector: 'axp-text-widget-column',
|
|
41
|
-
template: ` <span [title]="convertedValue">{{ convertedValue }}</span> `,
|
|
42
|
-
standalone: true,
|
|
43
|
-
inputs: ['context', 'value', 'multiple', 'width', 'allowResizing'],
|
|
44
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
45
|
-
}]
|
|
46
|
-
}] });
|
|
47
|
-
|
|
48
|
-
export { AXPTextWidgetColumnComponent };
|
|
49
|
-
//# sourceMappingURL=acorex-platform-common-text-widget-column.component-7yp4qqIb.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-common-text-widget-column.component-7yp4qqIb.mjs","sources":["../../../../libs/platform/common/src/lib/schema/widgets/text/text-widget-column.component.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { AXPWidgetBase } from '../../widget/widget-base';\n\n@Component({\n selector: 'axp-text-widget-column',\n template: ` <span [title]=\"convertedValue\">{{ convertedValue }}</span> `,\n standalone: true,\n inputs: ['context', 'value', 'multiple', 'width', 'allowResizing'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AXPTextWidgetColumnComponent extends AXPWidgetBase {\n protected convertedValue!: string | string[] | null;\n protected multiple!: boolean;\n protected allowResizing!: boolean;\n\n override render() {\n if (this.rawValue == null) {\n this.convertedValue = null;\n return;\n }\n if (this.isArray(this.rawValue)) {\n if (this.multiple) {\n this.convertedValue = this.rawValue.map((value: string) => this.formatValue(value)).join(',');\n } else {\n this.convertedValue = this.formatValue(this.rawValue[0]);\n }\n } else {\n this.convertedValue = this.formatValue(this.rawValue);\n }\n }\n\n private formatValue(value: string): string {\n if (this.formats?.default) {\n return this.formatService.format(this.formats.default, this.schema.dataType as any, this.context);\n } else {\n return new String(value).toString();\n }\n }\n\n protected isArray(val: any) {\n return Array.isArray(val);\n }\n}\n"],"names":[],"mappings":";;;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,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,4BAA4B,+NAL7B,CAA8D,4DAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAK7D,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBAPxC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,wBAAwB;AAClC,oBAAA,QAAQ,EAAE,CAA8D,4DAAA,CAAA;AACxE,oBAAA,UAAU,EAAE,IAAI;oBAChB,MAAM,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,eAAe,CAAC;oBAClE,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAChD,iBAAA;;;;;"}
|
|
@@ -1,162 +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 i3 from '@acorex/components/form';
|
|
6
|
-
import { AXFormModule } from '@acorex/components/form';
|
|
7
|
-
import * as i4 from '@acorex/components/text-box';
|
|
8
|
-
import { AXTextBoxModule } from '@acorex/components/text-box';
|
|
9
|
-
import { AXValidationService, AXValidationModule } from '@acorex/core/validation';
|
|
10
|
-
import { AXPWidgetEditBase, AXPDataGenerator } from './acorex-platform-common.mjs';
|
|
11
|
-
import * as i1 from '@angular/common';
|
|
12
|
-
import { CommonModule } from '@angular/common';
|
|
13
|
-
import * as i0 from '@angular/core';
|
|
14
|
-
import { inject, signal, effect, Component, ChangeDetectionStrategy } from '@angular/core';
|
|
15
|
-
import * as i2 from '@angular/forms';
|
|
16
|
-
import { FormsModule } from '@angular/forms';
|
|
17
|
-
|
|
18
|
-
class AXPTextWidgetEditComponent extends AXPWidgetEditBase {
|
|
19
|
-
constructor() {
|
|
20
|
-
super(...arguments);
|
|
21
|
-
this.validationService = inject(AXValidationService);
|
|
22
|
-
this.convertedValue = signal([]);
|
|
23
|
-
this.changeValueEffect = effect(() => {
|
|
24
|
-
if (this.multiple) {
|
|
25
|
-
this.value = this.convertedValue().map((i) => i.text);
|
|
26
|
-
}
|
|
27
|
-
else {
|
|
28
|
-
this.value = this.convertedValue().map((i) => i.text)[0];
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
ngOnInit() {
|
|
33
|
-
if (!this.value || this.value?.length == 0) {
|
|
34
|
-
this.convertedValue.set([{ text: '', id: AXPDataGenerator.uuid() }]);
|
|
35
|
-
}
|
|
36
|
-
if (Array.isArray(this.value)) {
|
|
37
|
-
this.convertedValue.set(this.value.map((item, index) => ({ text: item, id: AXPDataGenerator.uuid() })));
|
|
38
|
-
}
|
|
39
|
-
else {
|
|
40
|
-
this.convertedValue.set([{ text: this.value, id: AXPDataGenerator.uuid() }]);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
handleAddItem() {
|
|
44
|
-
this.convertedValue.update((prev) => [...prev, { text: '', id: AXPDataGenerator.uuid() }]);
|
|
45
|
-
}
|
|
46
|
-
handleRemoveItem(item) {
|
|
47
|
-
this.convertedValue.update((prev) => prev.filter((c) => c.id != item.id));
|
|
48
|
-
}
|
|
49
|
-
handleValueChange(e, id) {
|
|
50
|
-
if (e.isUserInteraction) {
|
|
51
|
-
this.convertedValue.update((prev) => prev.map((i) => (i.id === id ? { text: e.value, id: i.id } : i)));
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPTextWidgetEditComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
55
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPTextWidgetEditComponent, isStandalone: true, selector: "axp-text-widget-edit", usesInheritance: true, ngImport: i0, template: `
|
|
56
|
-
<div class="ax-grid ax-grid-cols-12 ax-gap-4">
|
|
57
|
-
@if(multiple){ @for(item of convertedValue();track $index){
|
|
58
|
-
<ng-container [ngTemplateOutlet]="textBoxTemplate" [ngTemplateOutletContext]="{ $implicit: item }"></ng-container>
|
|
59
|
-
} } @else {
|
|
60
|
-
<ng-container
|
|
61
|
-
[ngTemplateOutlet]="textBoxTemplate"
|
|
62
|
-
[ngTemplateOutletContext]="{ $implicit: convertedValue()[0] }"
|
|
63
|
-
></ng-container>
|
|
64
|
-
}
|
|
65
|
-
<ng-template #textBoxTemplate let-item>
|
|
66
|
-
<div [class]="multiple ? 'ax-col-start-1 ax-col-end-11 lg:ax-col-end-12' : 'ax-col-start-1 ax-col-end-13'">
|
|
67
|
-
<ax-text-box [(ngModel)]="item.text" (onValueChanged)="handleValueChange($event, item.id)">
|
|
68
|
-
<ax-clear-button></ax-clear-button>
|
|
69
|
-
@for(vl of validations;track $index) {
|
|
70
|
-
<ax-validation-rule [rule]="vl.rule" [options]="vl.options"></ax-validation-rule>
|
|
71
|
-
}
|
|
72
|
-
</ax-text-box>
|
|
73
|
-
</div>
|
|
74
|
-
@if(multiple){
|
|
75
|
-
<ax-button
|
|
76
|
-
look="twotone"
|
|
77
|
-
color="danger"
|
|
78
|
-
(onClick)="handleRemoveItem(item)"
|
|
79
|
-
class=" ax-col-start-11 lg:ax-col-start-12 ax-col-end-13 ax-justify-self-end"
|
|
80
|
-
>
|
|
81
|
-
<ax-icon icon="fa-regular fa-xmark"></ax-icon>
|
|
82
|
-
</ax-button>
|
|
83
|
-
}
|
|
84
|
-
</ng-template>
|
|
85
|
-
@if(multiple){
|
|
86
|
-
<ax-button
|
|
87
|
-
[text]="!convertedValue().length ? 'Add New' : 'Add Another'"
|
|
88
|
-
look="twotone"
|
|
89
|
-
(onClick)="handleAddItem()"
|
|
90
|
-
class="ax-col-start-8 lg:ax-col-start-10 2xl:ax-col-start-10 ax-col-end-13"
|
|
91
|
-
>
|
|
92
|
-
<ax-prefix>
|
|
93
|
-
<ax-icon class="fa-solid fa-add"></ax-icon>
|
|
94
|
-
</ax-prefix>
|
|
95
|
-
</ax-button>
|
|
96
|
-
}
|
|
97
|
-
</div>
|
|
98
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { 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: 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: AXFormModule }, { kind: "directive", type: i3.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i5.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i5.AXDecoratorClearButtonComponent, selector: "ax-clear-button", inputs: ["icon"] }, { kind: "component", type: i5.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-sub-title, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXValidationModule }, { 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 }); }
|
|
99
|
-
}
|
|
100
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPTextWidgetEditComponent, decorators: [{
|
|
101
|
-
type: Component,
|
|
102
|
-
args: [{
|
|
103
|
-
selector: 'axp-text-widget-edit',
|
|
104
|
-
template: `
|
|
105
|
-
<div class="ax-grid ax-grid-cols-12 ax-gap-4">
|
|
106
|
-
@if(multiple){ @for(item of convertedValue();track $index){
|
|
107
|
-
<ng-container [ngTemplateOutlet]="textBoxTemplate" [ngTemplateOutletContext]="{ $implicit: item }"></ng-container>
|
|
108
|
-
} } @else {
|
|
109
|
-
<ng-container
|
|
110
|
-
[ngTemplateOutlet]="textBoxTemplate"
|
|
111
|
-
[ngTemplateOutletContext]="{ $implicit: convertedValue()[0] }"
|
|
112
|
-
></ng-container>
|
|
113
|
-
}
|
|
114
|
-
<ng-template #textBoxTemplate let-item>
|
|
115
|
-
<div [class]="multiple ? 'ax-col-start-1 ax-col-end-11 lg:ax-col-end-12' : 'ax-col-start-1 ax-col-end-13'">
|
|
116
|
-
<ax-text-box [(ngModel)]="item.text" (onValueChanged)="handleValueChange($event, item.id)">
|
|
117
|
-
<ax-clear-button></ax-clear-button>
|
|
118
|
-
@for(vl of validations;track $index) {
|
|
119
|
-
<ax-validation-rule [rule]="vl.rule" [options]="vl.options"></ax-validation-rule>
|
|
120
|
-
}
|
|
121
|
-
</ax-text-box>
|
|
122
|
-
</div>
|
|
123
|
-
@if(multiple){
|
|
124
|
-
<ax-button
|
|
125
|
-
look="twotone"
|
|
126
|
-
color="danger"
|
|
127
|
-
(onClick)="handleRemoveItem(item)"
|
|
128
|
-
class=" ax-col-start-11 lg:ax-col-start-12 ax-col-end-13 ax-justify-self-end"
|
|
129
|
-
>
|
|
130
|
-
<ax-icon icon="fa-regular fa-xmark"></ax-icon>
|
|
131
|
-
</ax-button>
|
|
132
|
-
}
|
|
133
|
-
</ng-template>
|
|
134
|
-
@if(multiple){
|
|
135
|
-
<ax-button
|
|
136
|
-
[text]="!convertedValue().length ? 'Add New' : 'Add Another'"
|
|
137
|
-
look="twotone"
|
|
138
|
-
(onClick)="handleAddItem()"
|
|
139
|
-
class="ax-col-start-8 lg:ax-col-start-10 2xl:ax-col-start-10 ax-col-end-13"
|
|
140
|
-
>
|
|
141
|
-
<ax-prefix>
|
|
142
|
-
<ax-icon class="fa-solid fa-add"></ax-icon>
|
|
143
|
-
</ax-prefix>
|
|
144
|
-
</ax-button>
|
|
145
|
-
}
|
|
146
|
-
</div>
|
|
147
|
-
`,
|
|
148
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
149
|
-
imports: [
|
|
150
|
-
CommonModule,
|
|
151
|
-
AXTextBoxModule,
|
|
152
|
-
FormsModule,
|
|
153
|
-
AXFormModule,
|
|
154
|
-
AXDecoratorModule,
|
|
155
|
-
AXValidationModule,
|
|
156
|
-
AXButtonModule,
|
|
157
|
-
]
|
|
158
|
-
}]
|
|
159
|
-
}] });
|
|
160
|
-
|
|
161
|
-
export { AXPTextWidgetEditComponent };
|
|
162
|
-
//# sourceMappingURL=acorex-platform-common-text-widget-edit.component-5koh5Aws.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-common-text-widget-edit.component-5koh5Aws.mjs","sources":["../../../../libs/platform/common/src/lib/schema/widgets/text/text-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 { AXTextBoxModule } from '@acorex/components/text-box';\nimport { AXValidationModule, AXValidationService } from '@acorex/core/validation';\nimport { AXPWidgetEditBase } from '../../widget/widget-base';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, WritableSignal, effect, inject, signal } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { AXPDataGenerator } from '../../../utils';\n\n@Component({\n selector: 'axp-text-widget-edit',\n template: `\n <div class=\"ax-grid ax-grid-cols-12 ax-gap-4\">\n @if(multiple){ @for(item of convertedValue();track $index){\n <ng-container [ngTemplateOutlet]=\"textBoxTemplate\" [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-container>\n } } @else {\n <ng-container\n [ngTemplateOutlet]=\"textBoxTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: convertedValue()[0] }\"\n ></ng-container>\n }\n <ng-template #textBoxTemplate let-item>\n <div [class]=\"multiple ? 'ax-col-start-1 ax-col-end-11 lg:ax-col-end-12' : 'ax-col-start-1 ax-col-end-13'\">\n <ax-text-box [(ngModel)]=\"item.text\" (onValueChanged)=\"handleValueChange($event, item.id)\">\n <ax-clear-button></ax-clear-button>\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 </div>\n @if(multiple){\n <ax-button\n look=\"twotone\"\n color=\"danger\"\n (onClick)=\"handleRemoveItem(item)\"\n class=\" ax-col-start-11 lg:ax-col-start-12 ax-col-end-13 ax-justify-self-end\"\n >\n <ax-icon icon=\"fa-regular fa-xmark\"></ax-icon>\n </ax-button>\n }\n </ng-template>\n @if(multiple){\n <ax-button\n [text]=\"!convertedValue().length ? 'Add New' : 'Add Another'\"\n look=\"twotone\"\n (onClick)=\"handleAddItem()\"\n class=\"ax-col-start-8 lg:ax-col-start-10 2xl:ax-col-start-10 ax-col-end-13\"\n >\n <ax-prefix>\n <ax-icon class=\"fa-solid fa-add\"></ax-icon>\n </ax-prefix>\n </ax-button>\n }\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n CommonModule,\n AXTextBoxModule,\n FormsModule,\n AXFormModule,\n AXDecoratorModule,\n AXValidationModule,\n AXButtonModule,\n ]\n})\nexport class AXPTextWidgetEditComponent extends AXPWidgetEditBase {\n protected validationService = inject(AXValidationService);\n\n protected multiple!: boolean;\n protected validationMessage?: string | null;\n protected convertedValue: WritableSignal<{ text: string; id: string }[]> = signal([]);\n\n private changeValueEffect = effect(() => {\n if (this.multiple) {\n this.value = this.convertedValue().map((i) => i.text);\n } else {\n this.value = this.convertedValue().map((i) => i.text)[0];\n }\n });\n\n ngOnInit(): void {\n if (!this.value || this.value?.length == 0) {\n this.convertedValue.set([{ text: '', id: AXPDataGenerator.uuid() }]);\n }\n if (Array.isArray(this.value)) {\n this.convertedValue.set(this.value.map((item, index) => ({ text: item, id: AXPDataGenerator.uuid() })));\n } else {\n this.convertedValue.set([{ text: this.value, id: AXPDataGenerator.uuid() }]);\n }\n }\n\n protected handleAddItem() {\n this.convertedValue.update((prev) => [...prev, { text: '', id: AXPDataGenerator.uuid() }]);\n }\n\n protected handleRemoveItem(item: any) {\n this.convertedValue.update((prev) => prev.filter((c: any) => c.id != item.id));\n }\n\n protected handleValueChange(e: AXValueChangedEvent, id: string) {\n if (e.isUserInteraction) {\n this.convertedValue.update((prev) => prev.map((i) => (i.id === id ? { text: e.value, id: i.id } : i)));\n }\n }\n}\n"],"names":["i2","i3","i4","i6"],"mappings":";;;;;;;;;;;;;;;;;AAqEM,MAAO,0BAA2B,SAAQ,iBAAiB,CAAA;AAzDjE,IAAA,WAAA,GAAA;;AA0DY,QAAA,IAAA,CAAA,iBAAiB,GAAG,MAAM,CAAC,mBAAmB,CAAC;AAI/C,QAAA,IAAA,CAAA,cAAc,GAAmD,MAAM,CAAC,EAAE,CAAC;AAE7E,QAAA,IAAA,CAAA,iBAAiB,GAAG,MAAM,CAAC,MAAK;AACtC,YAAA,IAAI,IAA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