@acorex/platform 19.1.5 → 19.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/auth/lib/permission/index.d.ts +4 -3
- package/auth/lib/permission/permission.service.d.ts +18 -0
- package/auth/lib/permission/permission.types.d.ts +5 -0
- package/common/index.d.ts +3 -2
- package/common/lib/app/application.types.d.ts +16 -4
- package/common/lib/layout/menu/index.d.ts +4 -2
- package/common/lib/layout/menu/search-definition.provider.d.ts +4 -0
- package/common/lib/layout/menu/search.provider.d.ts +20 -0
- package/common/lib/search/index.d.ts +5 -0
- package/common/lib/search/search-definition.builder.d.ts +23 -0
- package/common/lib/search/search-definition.provider.d.ts +18 -0
- package/common/lib/search/search.provider.d.ts +4 -0
- package/common/lib/search/search.service.d.ts +12 -0
- package/common/lib/search/search.types.d.ts +42 -0
- package/common/lib/settings/search-definition.provider.d.ts +4 -0
- package/common/lib/settings/search.provider.d.ts +10 -0
- package/fesm2022/acorex-platform-auth.mjs +78 -43
- package/fesm2022/acorex-platform-auth.mjs.map +1 -1
- package/fesm2022/acorex-platform-common.mjs +1439 -2234
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +20 -7
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-filters.mjs +0 -2
- package/fesm2022/acorex-platform-layout-filters.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-search.mjs +183 -0
- package/fesm2022/acorex-platform-layout-search.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-setting.mjs +21 -20
- package/fesm2022/acorex-platform-layout-setting.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-K9B_-q_K.mjs → acorex-platform-themes-default-entity-master-create-view.component-DpWOMxW9.mjs} +5 -5
- package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-K9B_-q_K.mjs.map → acorex-platform-themes-default-entity-master-create-view.component-DpWOMxW9.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-list-view.component-xlBBA76O.mjs → acorex-platform-themes-default-entity-master-list-view.component-BUL6ti4U.mjs} +14 -14
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-BUL6ti4U.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-entity-master-modify-view.component-Cd2gxLZt.mjs → acorex-platform-themes-default-entity-master-modify-view.component-C1kGZwYp.mjs} +3 -3
- package/fesm2022/{acorex-platform-themes-default-entity-master-modify-view.component-Cd2gxLZt.mjs.map → acorex-platform-themes-default-entity-master-modify-view.component-C1kGZwYp.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-single-view.component-6sZdw013.mjs → acorex-platform-themes-default-entity-master-single-view.component-CAgt5S3B.mjs} +4 -4
- package/fesm2022/{acorex-platform-themes-default-entity-master-single-view.component-6sZdw013.mjs.map → acorex-platform-themes-default-entity-master-single-view.component-CAgt5S3B.mjs.map} +1 -1
- package/fesm2022/acorex-platform-themes-default-search-popup.component-Blpan821.mjs +62 -0
- package/fesm2022/acorex-platform-themes-default-search-popup.component-Blpan821.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-setting-page.component-BYpCgHZb.mjs → acorex-platform-themes-default-setting-page.component-BXwdFLy4.mjs} +3 -3
- package/fesm2022/{acorex-platform-themes-default-setting-page.component-BYpCgHZb.mjs.map → acorex-platform-themes-default-setting-page.component-BXwdFLy4.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-default-setting-view.component-CdmIphX1.mjs → acorex-platform-themes-default-setting-view.component-BXsmvaIi.mjs} +5 -5
- package/fesm2022/{acorex-platform-themes-default-setting-view.component-CdmIphX1.mjs.map → acorex-platform-themes-default-setting-view.component-BXsmvaIi.mjs.map} +1 -1
- package/fesm2022/acorex-platform-themes-default.mjs +29 -17
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
- package/fesm2022/acorex-platform-themes-shared.mjs +2 -2
- package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -1
- package/fesm2022/acorex-platform-widgets.mjs +164 -99
- package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
- package/layout/entity/lib/index.d.ts +1 -0
- package/{layouts/lib/admin/entity-layout → layout/entity/lib}/workflows/index.d.ts +1 -1
- package/layout/search/README.md +3 -0
- package/layout/search/index.d.ts +1 -0
- package/layout/search/lib/index.d.ts +3 -0
- package/layout/search/lib/search-slot.component.d.ts +9 -0
- package/layout/search/lib/search.config.d.ts +5 -0
- package/layout/search/lib/search.module.d.ts +11 -0
- package/layout/search/lib/search.viewmodel.d.ts +13 -0
- package/layout/search/lib/workflows/search.workflow.d.ts +10 -0
- package/layout/setting/lib/setting.viewmodel.d.ts +1 -1
- package/package.json +13 -13
- package/themes/default/lib/layouts/search-layout/search-popup.component.d.ts +11 -0
- package/themes/shared/index.d.ts +1 -1
- package/themes/shared/lib/components/layout-elements/index.d.ts +1 -1
- package/themes/shared/lib/components/layout-elements/{layout-list-component.d.ts → layout-list.component.d.ts} +1 -1
- package/themes/shared/lib/components/{theme-slot.component.d.ts → slots/theme-slot.component.d.ts} +7 -7
- package/widgets/lib/widgets/filters/date-time-filter/date-time-filter-widget-edit.component.d.ts +2 -3
- package/widgets/lib/widgets/filters/select-filter/select-filter-widget-edit.component.d.ts +1 -1
- package/widgets/lib/widgets/property-editors/flex-options/flex-options-widget-editor.component.d.ts +15 -9
- package/widgets/lib/widgets/property-editors/property-editor-helper.d.ts +6 -5
- package/widgets/lib/widgets/property-editors/spacing/spacing-widget-editor.component.d.ts +1 -0
- package/common/lib/schema/component-loader.d.ts +0 -24
- package/common/lib/schema/entity/entity-registery.service.d.ts +0 -34
- package/common/lib/schema/entity/entity.class.d.ts +0 -161
- package/common/lib/schema/entity/entity.loader.d.ts +0 -9
- package/common/lib/schema/entity/index.d.ts +0 -3
- package/common/lib/schema/formats.d.ts +0 -8
- package/common/lib/schema/index.d.ts +0 -8
- package/common/lib/schema/schema-registery.service.d.ts +0 -20
- package/common/lib/schema/schema.module.d.ts +0 -12
- package/common/lib/schema/schema.types.d.ts +0 -16
- package/common/lib/schema/widget/index.d.ts +0 -5
- package/common/lib/schema/widget/widget-base.d.ts +0 -45
- package/common/lib/schema/widget/widget-column-renderer.d.ts +0 -34
- package/common/lib/schema/widget/widget-filter-renderer.d.ts +0 -30
- package/common/lib/schema/widget/widget-renderer.d.ts +0 -27
- package/common/lib/schema/widget/widget-token.d.ts +0 -16
- package/common/lib/schema/widgets/avatar/avatar-widget-edit.component.d.ts +0 -16
- package/common/lib/schema/widgets/avatar/avatar-widget-view.component.d.ts +0 -13
- package/common/lib/schema/widgets/checkbox/checkbox-widget-column.component.d.ts +0 -11
- package/common/lib/schema/widgets/checkbox/checkbox-widget-edit.component.d.ts +0 -6
- package/common/lib/schema/widgets/checkbox/checkbox-widget-view.component.d.ts +0 -11
- package/common/lib/schema/widgets/common-widget-filter/boolean-widget-filter.component.d.ts +0 -18
- package/common/lib/schema/widgets/common-widget-filter/number-widget-filter.component.d.ts +0 -12
- package/common/lib/schema/widgets/common-widget-filter/string-widget-filter.component.d.ts +0 -12
- package/common/lib/schema/widgets/common-widgets.module.d.ts +0 -32
- package/common/lib/schema/widgets/dateTime/dateTime-widget-column.component.d.ts +0 -11
- package/common/lib/schema/widgets/dateTime/dateTime-widget-edit.component.d.ts +0 -24
- package/common/lib/schema/widgets/dateTime/dateTime-widget-filter.component.d.ts +0 -19
- package/common/lib/schema/widgets/dateTime/dateTime-widget-view.component.d.ts +0 -11
- package/common/lib/schema/widgets/email/email-widget-column.component.d.ts +0 -16
- package/common/lib/schema/widgets/email/email-widget-edit.component.d.ts +0 -26
- package/common/lib/schema/widgets/email/email-widget-view.component.d.ts +0 -16
- package/common/lib/schema/widgets/file/file-widget-column.component.d.ts +0 -8
- package/common/lib/schema/widgets/file/file-widget-edit.component.d.ts +0 -17
- package/common/lib/schema/widgets/file/file-widget-filter.component.d.ts +0 -6
- package/common/lib/schema/widgets/file/file-widget-view.component.d.ts +0 -17
- package/common/lib/schema/widgets/gallery/gallery-widget-edit.component.d.ts +0 -15
- package/common/lib/schema/widgets/gallery/gallery-widget-filter.component.d.ts +0 -6
- package/common/lib/schema/widgets/gallery/gallery-widget-types.d.ts +0 -10
- package/common/lib/schema/widgets/gallery/gallery-widget-view.component.d.ts +0 -16
- package/common/lib/schema/widgets/index.d.ts +0 -1
- package/common/lib/schema/widgets/lookup/lookup-widget-column.component.d.ts +0 -17
- package/common/lib/schema/widgets/lookup/lookup-widget-edit.component.d.ts +0 -18
- package/common/lib/schema/widgets/lookup/lookup-widget-filter.component.d.ts +0 -17
- package/common/lib/schema/widgets/lookup/lookup-widget-view.component.d.ts +0 -18
- package/common/lib/schema/widgets/map/map-widget-edit.component.d.ts +0 -15
- package/common/lib/schema/widgets/map/map-widget-view.component.d.ts +0 -17
- package/common/lib/schema/widgets/messenger/messenger-widget-column.component.d.ts +0 -15
- package/common/lib/schema/widgets/messenger/messenger-widget-edit.component.d.ts +0 -14
- package/common/lib/schema/widgets/messenger/messenger-widget-view.component.d.ts +0 -17
- package/common/lib/schema/widgets/number/number-widget-edit.component.d.ts +0 -7
- package/common/lib/schema/widgets/number/number-widget-view.component.d.ts +0 -8
- package/common/lib/schema/widgets/password/change-password.component.d.ts +0 -16
- package/common/lib/schema/widgets/password/password-widget-column.component.d.ts +0 -14
- package/common/lib/schema/widgets/password/password-widget-edit.component.d.ts +0 -6
- package/common/lib/schema/widgets/password/password-widget-view.component.d.ts +0 -18
- package/common/lib/schema/widgets/phone/phone-widget-column.component.d.ts +0 -15
- package/common/lib/schema/widgets/phone/phone-widget-edit.component.d.ts +0 -29
- package/common/lib/schema/widgets/phone/phone-widget-view.component.d.ts +0 -18
- package/common/lib/schema/widgets/rich-text/rich-text-widget-column.component.d.ts +0 -11
- package/common/lib/schema/widgets/rich-text/rich-text-widget-edit.component.d.ts +0 -33
- package/common/lib/schema/widgets/rich-text/rich-text-widget-view.component.d.ts +0 -10
- package/common/lib/schema/widgets/selection-list/selection-list-widget-column.component.d.ts +0 -16
- package/common/lib/schema/widgets/selection-list/selection-list-widget-edit.component.d.ts +0 -12
- package/common/lib/schema/widgets/selection-list/selection-list-widget-filter.component.d.ts +0 -9
- package/common/lib/schema/widgets/selection-list/selection-list-widget-view.component.d.ts +0 -15
- package/common/lib/schema/widgets/signature-pad/signature-pad-widget-edit.component.d.ts +0 -19
- package/common/lib/schema/widgets/signature-pad/signature-pad-widget-view.component.d.ts +0 -8
- package/common/lib/schema/widgets/text/largetext-widget-edit.component.d.ts +0 -6
- package/common/lib/schema/widgets/text/text-widget-column.component.d.ts +0 -12
- package/common/lib/schema/widgets/text/text-widget-edit.component.d.ts +0 -21
- package/common/lib/schema/widgets/text/text-widget-view.component.d.ts +0 -11
- package/common/lib/schema/widgets/toggle/toggle-widget-column.component.d.ts +0 -11
- package/common/lib/schema/widgets/toggle/toggle-widget-edit.component.d.ts +0 -6
- package/common/lib/schema/widgets/toggle/toggle-widget-view.component.d.ts +0 -11
- package/fesm2022/acorex-platform-common-avatar-widget-edit.component-syRKKn21.mjs +0 -166
- package/fesm2022/acorex-platform-common-avatar-widget-edit.component-syRKKn21.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-avatar-widget-view.component-DSju_bgg.mjs +0 -64
- package/fesm2022/acorex-platform-common-avatar-widget-view.component-DSju_bgg.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-boolean-widget-filter.component-aaKT0FyC.mjs +0 -155
- package/fesm2022/acorex-platform-common-boolean-widget-filter.component-aaKT0FyC.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-change-password.component-DFoC5nP2.mjs +0 -176
- package/fesm2022/acorex-platform-common-change-password.component-DFoC5nP2.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-checkbox-widget-column.component-DZxykkVr.mjs +0 -55
- package/fesm2022/acorex-platform-common-checkbox-widget-column.component-DZxykkVr.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-checkbox-widget-edit.component-CNmYVpMu.mjs +0 -24
- package/fesm2022/acorex-platform-common-checkbox-widget-edit.component-CNmYVpMu.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-checkbox-widget-view.component-3XLnJx9A.mjs +0 -49
- package/fesm2022/acorex-platform-common-checkbox-widget-view.component-3XLnJx9A.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-dateTime-widget-column.component-CKaMC189.mjs +0 -46
- package/fesm2022/acorex-platform-common-dateTime-widget-column.component-CKaMC189.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-dateTime-widget-edit.component-B50J-bwp.mjs +0 -178
- package/fesm2022/acorex-platform-common-dateTime-widget-edit.component-B50J-bwp.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-dateTime-widget-filter.component-CTV2a3c0.mjs +0 -286
- package/fesm2022/acorex-platform-common-dateTime-widget-filter.component-CTV2a3c0.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-dateTime-widget-view.component-C7hmUXLz.mjs +0 -73
- package/fesm2022/acorex-platform-common-dateTime-widget-view.component-C7hmUXLz.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-email-widget-column.component-BPoSZTqM.mjs +0 -75
- package/fesm2022/acorex-platform-common-email-widget-column.component-BPoSZTqM.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-email-widget-edit.component-aLPGOG3r.mjs +0 -249
- package/fesm2022/acorex-platform-common-email-widget-edit.component-aLPGOG3r.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-email-widget-view.component-dMByK5bc.mjs +0 -109
- package/fesm2022/acorex-platform-common-email-widget-view.component-dMByK5bc.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-file-widget-column.component-Dafc2zLc.mjs +0 -29
- package/fesm2022/acorex-platform-common-file-widget-column.component-Dafc2zLc.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-file-widget-edit.component-C31kfJSw.mjs +0 -202
- package/fesm2022/acorex-platform-common-file-widget-edit.component-C31kfJSw.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-file-widget-filter.component-BNCcBun4.mjs +0 -29
- package/fesm2022/acorex-platform-common-file-widget-filter.component-BNCcBun4.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-file-widget-view.component-T3r6musY.mjs +0 -155
- package/fesm2022/acorex-platform-common-file-widget-view.component-T3r6musY.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-gallery-widget-edit.component-zBsaBkzu.mjs +0 -191
- package/fesm2022/acorex-platform-common-gallery-widget-edit.component-zBsaBkzu.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-gallery-widget-filter.component-BhLYuB6p.mjs +0 -29
- package/fesm2022/acorex-platform-common-gallery-widget-filter.component-BhLYuB6p.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-gallery-widget-view.component-Dxf4Oj1E.mjs +0 -175
- package/fesm2022/acorex-platform-common-gallery-widget-view.component-Dxf4Oj1E.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-largetext-widget-edit.component-BYMIaLCI.mjs +0 -38
- package/fesm2022/acorex-platform-common-largetext-widget-edit.component-BYMIaLCI.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-lookup-widget-column.component-BB0Mdx2u.mjs +0 -45
- package/fesm2022/acorex-platform-common-lookup-widget-column.component-BB0Mdx2u.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-lookup-widget-edit.component-DUPsS_ZW.mjs +0 -96
- package/fesm2022/acorex-platform-common-lookup-widget-edit.component-DUPsS_ZW.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-lookup-widget-filter.component-CLyl94AJ.mjs +0 -161
- package/fesm2022/acorex-platform-common-lookup-widget-filter.component-CLyl94AJ.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-lookup-widget-view.component-CJijszjn.mjs +0 -56
- package/fesm2022/acorex-platform-common-lookup-widget-view.component-CJijszjn.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-map-widget-edit.component-BTHORlG5.mjs +0 -94
- package/fesm2022/acorex-platform-common-map-widget-edit.component-BTHORlG5.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-map-widget-view.component-CQzW1ZeD.mjs +0 -66
- package/fesm2022/acorex-platform-common-map-widget-view.component-CQzW1ZeD.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-messenger-widget-column.component-Brm4vLGA.mjs +0 -73
- package/fesm2022/acorex-platform-common-messenger-widget-column.component-Brm4vLGA.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-messenger-widget-edit.component-CJHvut2C.mjs +0 -138
- package/fesm2022/acorex-platform-common-messenger-widget-edit.component-CJHvut2C.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-messenger-widget-view.component-DVylp_2t.mjs +0 -133
- package/fesm2022/acorex-platform-common-messenger-widget-view.component-DVylp_2t.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-number-widget-edit.component-DZf-n-yr.mjs +0 -48
- package/fesm2022/acorex-platform-common-number-widget-edit.component-DZf-n-yr.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-number-widget-filter.component-womVAhSr.mjs +0 -137
- package/fesm2022/acorex-platform-common-number-widget-filter.component-womVAhSr.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-number-widget-view.component-L2pxAqqz.mjs +0 -33
- package/fesm2022/acorex-platform-common-number-widget-view.component-L2pxAqqz.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-password-widget-column.component-3ubqJk-d.mjs +0 -68
- package/fesm2022/acorex-platform-common-password-widget-column.component-3ubqJk-d.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-password-widget-edit.component-BokyEDfK.mjs +0 -43
- package/fesm2022/acorex-platform-common-password-widget-edit.component-BokyEDfK.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-password-widget-view.component-BuFoE2fz.mjs +0 -110
- package/fesm2022/acorex-platform-common-password-widget-view.component-BuFoE2fz.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-phone-widget-column.component-79Me_VNP.mjs +0 -93
- package/fesm2022/acorex-platform-common-phone-widget-column.component-79Me_VNP.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-phone-widget-edit.component-CIayMoT1.mjs +0 -249
- package/fesm2022/acorex-platform-common-phone-widget-edit.component-CIayMoT1.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-phone-widget-view.component-B1Xu_rxC.mjs +0 -124
- package/fesm2022/acorex-platform-common-phone-widget-view.component-B1Xu_rxC.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-rich-text-widget-column.component-Dbn3JMOu.mjs +0 -63
- package/fesm2022/acorex-platform-common-rich-text-widget-column.component-Dbn3JMOu.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-rich-text-widget-edit.component-CHT12edE.mjs +0 -69
- package/fesm2022/acorex-platform-common-rich-text-widget-edit.component-CHT12edE.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-rich-text-widget-view.component-qvUpx39D.mjs +0 -37
- package/fesm2022/acorex-platform-common-rich-text-widget-view.component-qvUpx39D.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-selection-list-widget-column.component-E7yRTViz.mjs +0 -47
- package/fesm2022/acorex-platform-common-selection-list-widget-column.component-E7yRTViz.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-selection-list-widget-edit.component-B8dmJ_jJ.mjs +0 -55
- package/fesm2022/acorex-platform-common-selection-list-widget-edit.component-B8dmJ_jJ.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-selection-list-widget-filter.component-i4syx0Bj.mjs +0 -47
- package/fesm2022/acorex-platform-common-selection-list-widget-filter.component-i4syx0Bj.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-selection-list-widget-view.component-B7disiIF.mjs +0 -47
- package/fesm2022/acorex-platform-common-selection-list-widget-view.component-B7disiIF.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-signature-pad-widget-edit.component-CMoiIhgJ.mjs +0 -130
- package/fesm2022/acorex-platform-common-signature-pad-widget-edit.component-CMoiIhgJ.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-signature-pad-widget-view.component-HfArY6VQ.mjs +0 -43
- package/fesm2022/acorex-platform-common-signature-pad-widget-view.component-HfArY6VQ.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-string-widget-filter.component-CDssxMLR.mjs +0 -127
- package/fesm2022/acorex-platform-common-string-widget-filter.component-CDssxMLR.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-text-widget-column.component-7yp4qqIb.mjs +0 -49
- package/fesm2022/acorex-platform-common-text-widget-column.component-7yp4qqIb.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-text-widget-edit.component-5koh5Aws.mjs +0 -162
- package/fesm2022/acorex-platform-common-text-widget-edit.component-5koh5Aws.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-text-widget-view.component-BH0LTD80.mjs +0 -69
- package/fesm2022/acorex-platform-common-text-widget-view.component-BH0LTD80.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-toggle-widget-column.component-C5dMjerm.mjs +0 -59
- package/fesm2022/acorex-platform-common-toggle-widget-column.component-C5dMjerm.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-toggle-widget-edit.component-JOnGMn-9.mjs +0 -27
- package/fesm2022/acorex-platform-common-toggle-widget-edit.component-JOnGMn-9.mjs.map +0 -1
- package/fesm2022/acorex-platform-common-toggle-widget-view.component-DguoIz_c.mjs +0 -51
- package/fesm2022/acorex-platform-common-toggle-widget-view.component-DguoIz_c.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-entity-create-view.component-1Yw4H3CW.mjs +0 -121
- package/fesm2022/acorex-platform-layouts-entity-create-view.component-1Yw4H3CW.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-entity-import-view.component-BIHTWoXR.mjs +0 -91
- package/fesm2022/acorex-platform-layouts-entity-import-view.component-BIHTWoXR.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts-entity-modify-view.component-Cb2Yvtav.mjs +0 -96
- package/fesm2022/acorex-platform-layouts-entity-modify-view.component-Cb2Yvtav.mjs.map +0 -1
- package/fesm2022/acorex-platform-layouts.mjs +0 -2483
- package/fesm2022/acorex-platform-layouts.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-xlBBA76O.mjs.map +0 -1
- package/layouts/README.md +0 -3
- package/layouts/index.d.ts +0 -2
- package/layouts/lib/admin/admin.module.d.ts +0 -11
- package/layouts/lib/admin/admin.routes.d.ts +0 -2
- package/layouts/lib/admin/custom-reuse.strategy.d.ts +0 -8
- package/layouts/lib/admin/entity-layout/entity-create-view/entity-create-view.component.d.ts +0 -20
- package/layouts/lib/admin/entity-layout/entity-create-view/entity-create-view.config.d.ts +0 -54
- package/layouts/lib/admin/entity-layout/entity-details-view/detail-view.config.d.ts +0 -48
- package/layouts/lib/admin/entity-layout/entity-details-view/entity-details-view.component.d.ts +0 -83
- package/layouts/lib/admin/entity-layout/entity-details-view/index.d.ts +0 -2
- package/layouts/lib/admin/entity-layout/entity-import-view/entity-import-view.component.d.ts +0 -27
- package/layouts/lib/admin/entity-layout/entity-list-view/components/entity-custom-view/entity-custom-view.component.d.ts +0 -46
- package/layouts/lib/admin/entity-layout/entity-list-view/components/index.d.ts +0 -5
- package/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-columns/list-view-option-columns.component.d.ts +0 -20
- package/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-conditions/list-view-option-conditions.component.d.ts +0 -33
- package/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-conditions/list-view-option-filter-operator.component.d.ts +0 -18
- package/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-sorting/list-view-option-sorting.component.d.ts +0 -21
- package/layouts/lib/admin/entity-layout/entity-list-view/entity-list-view.component.d.ts +0 -79
- package/layouts/lib/admin/entity-layout/entity-list-view/index.d.ts +0 -4
- package/layouts/lib/admin/entity-layout/entity-list-view/list-view.config.d.ts +0 -113
- package/layouts/lib/admin/entity-layout/entity-list-view/list-view.module.d.ts +0 -42
- package/layouts/lib/admin/entity-layout/entity-modify-view/entity-modify-view.component.d.ts +0 -25
- package/layouts/lib/admin/entity-layout/entity-modify-view/entity-modify-view.config.d.ts +0 -31
- package/layouts/lib/admin/entity-layout/entity-quick-view/entity-quick-view.component.d.ts +0 -24
- package/layouts/lib/admin/entity-layout/entity-quick-view/index.d.ts +0 -1
- package/layouts/lib/admin/entity-layout/index.d.ts +0 -4
- package/layouts/lib/admin/entity-layout/workflows/create-entity.workflow.d.ts +0 -31
- package/layouts/lib/admin/entity-layout/workflows/delete-entity.workflow.d.ts +0 -33
- package/layouts/lib/admin/entity-layout/workflows/import-entity.workflow.d.ts +0 -27
- package/layouts/lib/admin/entity-layout/workflows/modify-entity.workflow.d.ts +0 -32
- package/layouts/lib/admin/entity-layout/workflows/modify-section.workflow.d.ts +0 -12
- package/layouts/lib/admin/entity-layout/workflows/show-details.workflow.d.ts +0 -10
- package/layouts/lib/admin/entity-layout/workflows/show-list.workflow.d.ts +0 -10
- package/layouts/lib/admin/entity-layout/workflows/show-quick-view.workflow.d.ts +0 -12
- package/layouts/lib/admin/entity.resolver.d.ts +0 -4
- package/layouts/lib/admin/index.d.ts +0 -5
- package/layouts/lib/layout.module.d.ts +0 -9
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
import * as i1 from '@acorex/components/avatar';
|
|
2
|
-
import { AXAvatarModule } from '@acorex/components/avatar';
|
|
3
|
-
import { AXButtonModule } from '@acorex/components/button';
|
|
4
|
-
import * as i5 from '@acorex/components/decorators';
|
|
5
|
-
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
6
|
-
import { AXDialogService } from '@acorex/components/dialog';
|
|
7
|
-
import * as i2 from '@acorex/components/image';
|
|
8
|
-
import { AXImageModule } from '@acorex/components/image';
|
|
9
|
-
import * as i3 from '@acorex/components/loading';
|
|
10
|
-
import { AXLoadingModule } from '@acorex/components/loading';
|
|
11
|
-
import * as i0 from '@angular/core';
|
|
12
|
-
import { inject, Component, ChangeDetectionStrategy } from '@angular/core';
|
|
13
|
-
import { AXPWidgetEditBase, AXPDataProvider } from './acorex-platform-common.mjs';
|
|
14
|
-
|
|
15
|
-
class AXPAvatarWidgetEditComponent extends AXPWidgetEditBase {
|
|
16
|
-
constructor() {
|
|
17
|
-
super(...arguments);
|
|
18
|
-
this.dataService = inject(AXPDataProvider);
|
|
19
|
-
this.dialogService = inject(AXDialogService);
|
|
20
|
-
}
|
|
21
|
-
ngOnInit() {
|
|
22
|
-
this.render();
|
|
23
|
-
}
|
|
24
|
-
render() {
|
|
25
|
-
const rawValue = this.rawValue;
|
|
26
|
-
if (rawValue == null)
|
|
27
|
-
return;
|
|
28
|
-
this.loadImageById(rawValue);
|
|
29
|
-
}
|
|
30
|
-
handleRemoveItem(item) {
|
|
31
|
-
this.src = null;
|
|
32
|
-
this.value = null;
|
|
33
|
-
}
|
|
34
|
-
async handleAddItem() {
|
|
35
|
-
const input = document.createElement('input');
|
|
36
|
-
input.type = 'file';
|
|
37
|
-
input.accept = 'image/*';
|
|
38
|
-
input.click();
|
|
39
|
-
input.addEventListener('change', async () => {
|
|
40
|
-
const file = input.files?.[0];
|
|
41
|
-
if (file) {
|
|
42
|
-
const maxSize = 1 * 1024 * 1024; // Example size limit: 1MB
|
|
43
|
-
const maxResolution = { width: 1920, height: 1080 }; // Example resolution limit
|
|
44
|
-
if (file.size > maxSize) {
|
|
45
|
-
this.dialogService.alert('File too large!', `The selected file exceeds the maximum size of ${maxSize / (1024 * 1024)}MB.`, 'warning');
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
const image = new Image();
|
|
49
|
-
image.src = URL.createObjectURL(file);
|
|
50
|
-
image.onload = async () => {
|
|
51
|
-
const { width, height } = image;
|
|
52
|
-
if (width > maxResolution.width || height > maxResolution.height) {
|
|
53
|
-
this.dialogService.alert('Resolution too high!', `The selected file exceeds the maximum resolution of ${maxResolution.width}x${maxResolution.height}.`, 'warning');
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
|
-
// If file size and resolution are within limits, proceed with upload
|
|
57
|
-
try {
|
|
58
|
-
let resolved;
|
|
59
|
-
if (this.rawValue) {
|
|
60
|
-
resolved = await this.dataService.updateFile(this.rawValue, file, file.name);
|
|
61
|
-
}
|
|
62
|
-
else {
|
|
63
|
-
resolved = await this.dataService.uploadFile(file, file.name);
|
|
64
|
-
}
|
|
65
|
-
console.log('resolved', resolved);
|
|
66
|
-
this.src = URL.createObjectURL(file); // Show the image temporarily
|
|
67
|
-
this.value = resolved; // Store the file ID
|
|
68
|
-
}
|
|
69
|
-
catch (error) {
|
|
70
|
-
this.dialogService.alert('Something went wrong!', `${error}`, 'warning');
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
}, { once: true });
|
|
75
|
-
}
|
|
76
|
-
async loadImageById(fileId) {
|
|
77
|
-
try {
|
|
78
|
-
const blob = await this.dataService.viewFile(fileId, '');
|
|
79
|
-
this.src = URL.createObjectURL(blob);
|
|
80
|
-
this.cdr.markForCheck(); // Explicitly mark for check since OnPush is used
|
|
81
|
-
}
|
|
82
|
-
catch (error) {
|
|
83
|
-
console.error('Failed to load image by ID:', error);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPAvatarWidgetEditComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
87
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPAvatarWidgetEditComponent, isStandalone: true, selector: "axp-number-widget-edit", usesInheritance: true, ngImport: i0, template: `
|
|
88
|
-
<div class="ax-w-fit ax-flex flex-row ax-border ax-rounded-lg ax-shadow-md ax-overflow-hidden">
|
|
89
|
-
@if(src){
|
|
90
|
-
<ax-avatar color="secondary" [size]="120" look="sharp">
|
|
91
|
-
<ax-image [src]="src">
|
|
92
|
-
<ax-loading></ax-loading>
|
|
93
|
-
</ax-image>
|
|
94
|
-
</ax-avatar>
|
|
95
|
-
} @else {
|
|
96
|
-
<ax-avatar color="secondary" [size]="120" look="sharp">
|
|
97
|
-
<ax-loading></ax-loading>
|
|
98
|
-
</ax-avatar>
|
|
99
|
-
}
|
|
100
|
-
<div class="ax-flex ax-w-14 ax-flex-col ax-items-center ax-justify-around ax-cursor-pointer ax-border-l-2">
|
|
101
|
-
<div
|
|
102
|
-
(click)="handleAddItem()"
|
|
103
|
-
class="ax-h-[50%] ax-flex ax-items-center ax-justify-center ax-w-full ax-border-b-2 hover:ax-bg-gray-100 hover:ax-text-blue-700 ax-cursor-pointer"
|
|
104
|
-
>
|
|
105
|
-
<ax-icon>
|
|
106
|
-
<i class="fa-solid fa-camera"></i>
|
|
107
|
-
</ax-icon>
|
|
108
|
-
</div>
|
|
109
|
-
|
|
110
|
-
<div
|
|
111
|
-
(click)="handleRemoveItem(src)"
|
|
112
|
-
class="ax-h-[50%] ax-flex ax-items-center ax-justify-center ax-w-full ax-cursor-pointer hover:ax-bg-gray-100"
|
|
113
|
-
>
|
|
114
|
-
<ax-prefix>
|
|
115
|
-
<i class="fa-solid fa-trash ax-text-danger"></i>
|
|
116
|
-
</ax-prefix>
|
|
117
|
-
</div>
|
|
118
|
-
</div>
|
|
119
|
-
</div>
|
|
120
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: AXAvatarModule }, { kind: "component", type: i1.AXAvatarComponent, selector: "ax-avatar", inputs: ["color", "size", "look"], outputs: ["sizeChange"] }, { kind: "ngmodule", type: AXImageModule }, { kind: "component", type: i2.AXImageComponent, selector: "ax-image", inputs: ["overlayMode", "src", "alt", "priority", "lazy"], outputs: ["onLoad", "onError"] }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i3.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXButtonModule }, { 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" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
121
|
-
}
|
|
122
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPAvatarWidgetEditComponent, decorators: [{
|
|
123
|
-
type: Component,
|
|
124
|
-
args: [{
|
|
125
|
-
selector: 'axp-number-widget-edit',
|
|
126
|
-
template: `
|
|
127
|
-
<div class="ax-w-fit ax-flex flex-row ax-border ax-rounded-lg ax-shadow-md ax-overflow-hidden">
|
|
128
|
-
@if(src){
|
|
129
|
-
<ax-avatar color="secondary" [size]="120" look="sharp">
|
|
130
|
-
<ax-image [src]="src">
|
|
131
|
-
<ax-loading></ax-loading>
|
|
132
|
-
</ax-image>
|
|
133
|
-
</ax-avatar>
|
|
134
|
-
} @else {
|
|
135
|
-
<ax-avatar color="secondary" [size]="120" look="sharp">
|
|
136
|
-
<ax-loading></ax-loading>
|
|
137
|
-
</ax-avatar>
|
|
138
|
-
}
|
|
139
|
-
<div class="ax-flex ax-w-14 ax-flex-col ax-items-center ax-justify-around ax-cursor-pointer ax-border-l-2">
|
|
140
|
-
<div
|
|
141
|
-
(click)="handleAddItem()"
|
|
142
|
-
class="ax-h-[50%] ax-flex ax-items-center ax-justify-center ax-w-full ax-border-b-2 hover:ax-bg-gray-100 hover:ax-text-blue-700 ax-cursor-pointer"
|
|
143
|
-
>
|
|
144
|
-
<ax-icon>
|
|
145
|
-
<i class="fa-solid fa-camera"></i>
|
|
146
|
-
</ax-icon>
|
|
147
|
-
</div>
|
|
148
|
-
|
|
149
|
-
<div
|
|
150
|
-
(click)="handleRemoveItem(src)"
|
|
151
|
-
class="ax-h-[50%] ax-flex ax-items-center ax-justify-center ax-w-full ax-cursor-pointer hover:ax-bg-gray-100"
|
|
152
|
-
>
|
|
153
|
-
<ax-prefix>
|
|
154
|
-
<i class="fa-solid fa-trash ax-text-danger"></i>
|
|
155
|
-
</ax-prefix>
|
|
156
|
-
</div>
|
|
157
|
-
</div>
|
|
158
|
-
</div>
|
|
159
|
-
`,
|
|
160
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
161
|
-
imports: [AXAvatarModule, AXImageModule, AXLoadingModule, AXButtonModule, AXDecoratorModule]
|
|
162
|
-
}]
|
|
163
|
-
}] });
|
|
164
|
-
|
|
165
|
-
export { AXPAvatarWidgetEditComponent };
|
|
166
|
-
//# sourceMappingURL=acorex-platform-common-avatar-widget-edit.component-syRKKn21.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-common-avatar-widget-edit.component-syRKKn21.mjs","sources":["../../../../libs/platform/common/src/lib/schema/widgets/avatar/avatar-widget-edit.component.ts"],"sourcesContent":["import { AXAvatarModule } from '@acorex/components/avatar';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXDialogService } from '@acorex/components/dialog';\nimport { AXImageModule } from '@acorex/components/image';\nimport { AXLoadingModule } from '@acorex/components/loading';\n// import { FakePersonService } from '@acorex/platform/mocks';\nimport { ChangeDetectionStrategy, Component, OnInit, inject } from '@angular/core';\nimport { AXPDataProvider } from '../../../data';\nimport { AXPWidgetEditBase } from '../../widget';\n\n@Component({\n selector: 'axp-number-widget-edit',\n template: `\n <div class=\"ax-w-fit ax-flex flex-row ax-border ax-rounded-lg ax-shadow-md ax-overflow-hidden\">\n @if(src){\n <ax-avatar color=\"secondary\" [size]=\"120\" look=\"sharp\">\n <ax-image [src]=\"src\">\n <ax-loading></ax-loading>\n </ax-image>\n </ax-avatar>\n } @else {\n <ax-avatar color=\"secondary\" [size]=\"120\" look=\"sharp\">\n <ax-loading></ax-loading>\n </ax-avatar>\n }\n <div class=\"ax-flex ax-w-14 ax-flex-col ax-items-center ax-justify-around ax-cursor-pointer ax-border-l-2\">\n <div\n (click)=\"handleAddItem()\"\n class=\"ax-h-[50%] ax-flex ax-items-center ax-justify-center ax-w-full ax-border-b-2 hover:ax-bg-gray-100 hover:ax-text-blue-700 ax-cursor-pointer\"\n >\n <ax-icon>\n <i class=\"fa-solid fa-camera\"></i>\n </ax-icon>\n </div>\n\n <div\n (click)=\"handleRemoveItem(src)\"\n class=\"ax-h-[50%] ax-flex ax-items-center ax-justify-center ax-w-full ax-cursor-pointer hover:ax-bg-gray-100\"\n >\n <ax-prefix>\n <i class=\"fa-solid fa-trash ax-text-danger\"></i>\n </ax-prefix>\n </div>\n </div>\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [AXAvatarModule, AXImageModule, AXLoadingModule, AXButtonModule, AXDecoratorModule]\n})\nexport class AXPAvatarWidgetEditComponent extends AXPWidgetEditBase implements OnInit {\n dataService = inject(AXPDataProvider);\n private dialogService = inject(AXDialogService);\n protected src!: string | null;\n\n ngOnInit() {\n this.render();\n }\n override render() {\n const rawValue = this.rawValue;\n if (rawValue == null) return;\n this.loadImageById(rawValue);\n }\n\n protected handleRemoveItem(item: any) {\n this.src = null;\n this.value = null;\n }\n\n protected async handleAddItem() {\n const input = document.createElement('input');\n input.type = 'file';\n input.accept = 'image/*';\n input.click();\n input.addEventListener(\n 'change',\n async () => {\n const file = input.files?.[0];\n if (file) {\n const maxSize = 1 * 1024 * 1024; // Example size limit: 1MB\n const maxResolution = { width: 1920, height: 1080 }; // Example resolution limit\n\n if (file.size > maxSize) {\n this.dialogService.alert(\n 'File too large!',\n `The selected file exceeds the maximum size of ${maxSize / (1024 * 1024)}MB.`,\n 'warning'\n );\n return;\n }\n\n const image = new Image();\n image.src = URL.createObjectURL(file);\n image.onload = async () => {\n const { width, height } = image;\n\n if (width > maxResolution.width || height > maxResolution.height) {\n this.dialogService.alert(\n 'Resolution too high!',\n `The selected file exceeds the maximum resolution of ${maxResolution.width}x${maxResolution.height}.`,\n 'warning'\n );\n return;\n }\n\n // If file size and resolution are within limits, proceed with upload\n try {\n let resolved;\n if (this.rawValue) {\n resolved = await this.dataService.updateFile(this.rawValue, file, file.name);\n } else {\n resolved = await this.dataService.uploadFile(file, file.name);\n }\n console.log('resolved', resolved);\n this.src = URL.createObjectURL(file); // Show the image temporarily\n this.value = resolved; // Store the file ID\n } catch (error) {\n this.dialogService.alert('Something went wrong!', `${error}`, 'warning');\n }\n };\n }\n },\n { once: true }\n );\n }\n\n private async loadImageById(fileId: string) {\n try {\n const blob = await this.dataService.viewFile(fileId, '');\n this.src = URL.createObjectURL(blob);\n this.cdr.markForCheck(); // Explicitly mark for check since OnPush is used\n } catch (error) {\n console.error('Failed to load image by ID:', error);\n }\n }\n}\n"],"names":["i4"],"mappings":";;;;;;;;;;;;;;AAkDM,MAAO,4BAA6B,SAAQ,iBAAiB,CAAA;AAvCnE,IAAA,WAAA,GAAA;;AAwCE,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,eAAe,CAAC;AAC7B,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,eAAe,CAAC;AAmFhD;IAhFC,QAAQ,GAAA;QACN,IAAI,CAAC,MAAM,EAAE;;IAEN,MAAM,GAAA;AACb,QAAA,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ;QAC9B,IAAI,QAAQ,IAAI,IAAI;YAAE;AACtB,QAAA,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC;;AAGpB,IAAA,gBAAgB,CAAC,IAAS,EAAA;AAClC,QAAA,IAAI,CAAC,GAAG,GAAG,IAAI;AACf,QAAA,IAAI,CAAC,KAAK,GAAG,IAAI;;AAGT,IAAA,MAAM,aAAa,GAAA;QAC3B,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC;AAC7C,QAAA,KAAK,CAAC,IAAI,GAAG,MAAM;AACnB,QAAA,KAAK,CAAC,MAAM,GAAG,SAA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,CAAA;oBACC,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,OAAO,EAAE,CAAC,cAAc,EAAE,aAAa,EAAE,eAAe,EAAE,cAAc,EAAE,iBAAiB;AAC9F,iBAAA;;;;;"}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import * as i1 from '@acorex/components/avatar';
|
|
2
|
-
import { AXAvatarModule } from '@acorex/components/avatar';
|
|
3
|
-
import * as i2 from '@acorex/components/image';
|
|
4
|
-
import { AXImageModule } from '@acorex/components/image';
|
|
5
|
-
import * as i3 from '@acorex/components/loading';
|
|
6
|
-
import { AXLoadingModule } from '@acorex/components/loading';
|
|
7
|
-
import * as i0 from '@angular/core';
|
|
8
|
-
import { inject, Component, ChangeDetectionStrategy } from '@angular/core';
|
|
9
|
-
import { AXPWidgetBase, AXPDataProvider } from './acorex-platform-common.mjs';
|
|
10
|
-
|
|
11
|
-
class AXPAvatarWidgetViewComponent extends AXPWidgetBase {
|
|
12
|
-
constructor() {
|
|
13
|
-
super(...arguments);
|
|
14
|
-
this.dataService = inject(AXPDataProvider);
|
|
15
|
-
}
|
|
16
|
-
ngOnInit() {
|
|
17
|
-
this.render();
|
|
18
|
-
}
|
|
19
|
-
render() {
|
|
20
|
-
const rawValue = this.rawValue;
|
|
21
|
-
if (rawValue == null)
|
|
22
|
-
return;
|
|
23
|
-
this.loadImageById(rawValue);
|
|
24
|
-
}
|
|
25
|
-
async loadImageById(fileId) {
|
|
26
|
-
try {
|
|
27
|
-
const blob = await this.dataService.viewFile(fileId, '');
|
|
28
|
-
this.src = URL.createObjectURL(blob);
|
|
29
|
-
this.cdr.markForCheck(); // Explicitly mark for check since OnPush is used
|
|
30
|
-
}
|
|
31
|
-
catch (error) {
|
|
32
|
-
console.error('Failed to load image by ID:', error);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPAvatarWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
36
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPAvatarWidgetViewComponent, isStandalone: true, selector: "ax-Avatar-widget-view", inputs: { context: "context", value: "value" }, usesInheritance: true, ngImport: i0, template: ` @if(src){<ax-avatar class="ax-shadow-" color="secondary" [size]="120" look="soft">
|
|
37
|
-
<ax-image [src]="src"> <ax-loading></ax-loading></ax-image>
|
|
38
|
-
</ax-avatar>
|
|
39
|
-
} @else {
|
|
40
|
-
<ax-avatar color="secondary" [size]="120" look="sharp">
|
|
41
|
-
<ax-loading></ax-loading>
|
|
42
|
-
</ax-avatar>
|
|
43
|
-
}`, isInline: true, dependencies: [{ kind: "ngmodule", type: AXAvatarModule }, { kind: "component", type: i1.AXAvatarComponent, selector: "ax-avatar", inputs: ["color", "size", "look"], outputs: ["sizeChange"] }, { kind: "ngmodule", type: AXImageModule }, { kind: "component", type: i2.AXImageComponent, selector: "ax-image", inputs: ["overlayMode", "src", "alt", "priority", "lazy"], outputs: ["onLoad", "onError"] }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i3.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
44
|
-
}
|
|
45
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPAvatarWidgetViewComponent, decorators: [{
|
|
46
|
-
type: Component,
|
|
47
|
-
args: [{
|
|
48
|
-
selector: 'ax-Avatar-widget-view',
|
|
49
|
-
template: ` @if(src){<ax-avatar class="ax-shadow-" color="secondary" [size]="120" look="soft">
|
|
50
|
-
<ax-image [src]="src"> <ax-loading></ax-loading></ax-image>
|
|
51
|
-
</ax-avatar>
|
|
52
|
-
} @else {
|
|
53
|
-
<ax-avatar color="secondary" [size]="120" look="sharp">
|
|
54
|
-
<ax-loading></ax-loading>
|
|
55
|
-
</ax-avatar>
|
|
56
|
-
}`,
|
|
57
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
58
|
-
imports: [AXAvatarModule, AXImageModule, AXLoadingModule],
|
|
59
|
-
inputs: ['context', 'value']
|
|
60
|
-
}]
|
|
61
|
-
}] });
|
|
62
|
-
|
|
63
|
-
export { AXPAvatarWidgetViewComponent };
|
|
64
|
-
//# sourceMappingURL=acorex-platform-common-avatar-widget-view.component-DSju_bgg.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-common-avatar-widget-view.component-DSju_bgg.mjs","sources":["../../../../libs/platform/common/src/lib/schema/widgets/avatar/avatar-widget-view.component.ts"],"sourcesContent":["import { AXAvatarModule } from '@acorex/components/avatar';\nimport { AXImageModule } from '@acorex/components/image';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { ChangeDetectionStrategy, Component, OnInit, inject } from '@angular/core';\nimport { AXPDataProvider } from '../../../data';\nimport { AXPWidgetBase } from '../../widget/widget-base';\n@Component({\n selector: 'ax-Avatar-widget-view',\n template: ` @if(src){<ax-avatar class=\"ax-shadow-\" color=\"secondary\" [size]=\"120\" look=\"soft\">\n <ax-image [src]=\"src\"> <ax-loading></ax-loading></ax-image>\n </ax-avatar>\n } @else {\n <ax-avatar color=\"secondary\" [size]=\"120\" look=\"sharp\">\n <ax-loading></ax-loading>\n </ax-avatar>\n }`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [AXAvatarModule, AXImageModule, AXLoadingModule],\n inputs: ['context', 'value']\n})\nexport class AXPAvatarWidgetViewComponent extends AXPWidgetBase implements OnInit {\n protected src!: string;\n dataService = inject(AXPDataProvider);\n\n ngOnInit() {\n this.render();\n }\n override render() {\n const rawValue = this.rawValue;\n if (rawValue == null) return;\n this.loadImageById(rawValue);\n }\n\n private async loadImageById(fileId: string) {\n try {\n const blob = await this.dataService.viewFile(fileId, '');\n this.src = URL.createObjectURL(blob);\n this.cdr.markForCheck(); // Explicitly mark for check since OnPush is used\n } catch (error) {\n console.error('Failed to load image by ID:', error);\n }\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;AAoBM,MAAO,4BAA6B,SAAQ,aAAa,CAAA;AAd/D,IAAA,WAAA,GAAA;;AAgBE,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,eAAe,CAAC;AAoBtC;IAlBC,QAAQ,GAAA;QACN,IAAI,CAAC,MAAM,EAAE;;IAEN,MAAM,GAAA;AACb,QAAA,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ;QAC9B,IAAI,QAAQ,IAAI,IAAI;YAAE;AACtB,QAAA,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC;;IAGtB,MAAM,aAAa,CAAC,MAAc,EAAA;AACxC,QAAA,IAAI;AACF,YAAA,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,MAAM,EAAE,EAAE,CAAC;YACxD,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC,eAAe,CAAC,IAAI,CAAC;AACpC,YAAA,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE,CAAC;;QACxB,OAAO,KAAK,EAAE;AACd,YAAA,OAAO,CAAC,KAAK,CAAC,6BAA6B,EAAE,KAAK,CAAC;;;8GAnB5C,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,EAZ3B,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uBAAA,EAAA,MAAA,EAAA,EAAA,OAAA,EAAA,SAAA,EAAA,KAAA,EAAA,OAAA,EAAA,EAAA,eAAA,EAAA,IAAA,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AAC,cAAc,EAAE,aAAa,EAAE,eAAe,CAAC;AACzD,oBAAA,MAAM,EAAE,CAAC,SAAS,EAAE,OAAO;AAC9B,iBAAA;;;;;"}
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
import * as i2$1 from '@acorex/components/button';
|
|
2
|
-
import { AXButtonModule } from '@acorex/components/button';
|
|
3
|
-
import { AXDataSource } from '@acorex/components/common';
|
|
4
|
-
import * as i5 from '@acorex/components/decorators';
|
|
5
|
-
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
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 i6 from '@acorex/components/select-box';
|
|
10
|
-
import { AXSelectBoxModule } from '@acorex/components/select-box';
|
|
11
|
-
import * as i5$1 from '@acorex/components/selection-list';
|
|
12
|
-
import { AXSelectionListModule } from '@acorex/components/selection-list';
|
|
13
|
-
import * as i3 from '@acorex/core/translation';
|
|
14
|
-
import { AXTranslationModule } from '@acorex/core/translation';
|
|
15
|
-
import * as i1 from '@angular/common';
|
|
16
|
-
import { CommonModule } from '@angular/common';
|
|
17
|
-
import * as i0 from '@angular/core';
|
|
18
|
-
import { Component, ChangeDetectionStrategy } from '@angular/core';
|
|
19
|
-
import * as i2 from '@angular/forms';
|
|
20
|
-
import { FormsModule } from '@angular/forms';
|
|
21
|
-
import { AXPWidgetFilterBase } from './acorex-platform-common.mjs';
|
|
22
|
-
|
|
23
|
-
class AXPBooleanWidgetFilterComponent extends AXPWidgetFilterBase {
|
|
24
|
-
constructor() {
|
|
25
|
-
super(...arguments);
|
|
26
|
-
this.operations = [];
|
|
27
|
-
this.items = [];
|
|
28
|
-
this.dataSource = new AXDataSource({
|
|
29
|
-
load: () => {
|
|
30
|
-
return Promise.resolve({
|
|
31
|
-
items: this.items,
|
|
32
|
-
total: this.items.length,
|
|
33
|
-
});
|
|
34
|
-
},
|
|
35
|
-
byKey: (id) => {
|
|
36
|
-
const item = this.items.find((c) => c.value.toString() == id);
|
|
37
|
-
return Promise.resolve(item);
|
|
38
|
-
},
|
|
39
|
-
pageSize: 10,
|
|
40
|
-
key: 'value',
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
getOperatorHasValue() {
|
|
44
|
-
const operator = this.operations.find((op) => op.name == this.operator);
|
|
45
|
-
return !operator || operator.hasValue ? true : false;
|
|
46
|
-
}
|
|
47
|
-
render() {
|
|
48
|
-
this.operations = this.schema.filterOptions.operators;
|
|
49
|
-
}
|
|
50
|
-
ngOnInit() {
|
|
51
|
-
this.items = [
|
|
52
|
-
{ text: this.trulyText || 'Yes', value: true },
|
|
53
|
-
{ text: this.falsyText || 'No', value: false },
|
|
54
|
-
];
|
|
55
|
-
}
|
|
56
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPBooleanWidgetFilterComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
57
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXPBooleanWidgetFilterComponent, isStandalone: true, selector: "axp-boolean-widget-filter", inputs: { trulyText: "trulyText", falsyText: "falsyText" }, usesInheritance: true, ngImport: i0, template: `
|
|
58
|
-
<div class="ax-flex ax-items-center">
|
|
59
|
-
<ax-select-box
|
|
60
|
-
[disabled]="!this.getOperatorHasValue()"
|
|
61
|
-
textField="text"
|
|
62
|
-
valueField="value"
|
|
63
|
-
[placeholder]="('select' | translate | async) ?? 'Select...'"
|
|
64
|
-
[dataSource]="dataSource"
|
|
65
|
-
[(ngModel)]="value"
|
|
66
|
-
></ax-select-box>
|
|
67
|
-
@if(operations.length){
|
|
68
|
-
<ax-button #changeOperator look="blank" color="default" class="ax-sm">
|
|
69
|
-
<ax-icon class="fa-solid fa-ellipsis-vertical"></ax-icon>
|
|
70
|
-
</ax-button>
|
|
71
|
-
<ax-popover
|
|
72
|
-
#operatorsPopover
|
|
73
|
-
[target]="changeOperator"
|
|
74
|
-
[openOn]="'toggle'"
|
|
75
|
-
[closeOn]="'clickOut'"
|
|
76
|
-
[adaptivityEnabled]="true"
|
|
77
|
-
>
|
|
78
|
-
<div
|
|
79
|
-
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]"
|
|
80
|
-
>
|
|
81
|
-
<ax-selection-list
|
|
82
|
-
[valueField]="'name'"
|
|
83
|
-
[textField]="'title'"
|
|
84
|
-
[(ngModel)]="operator"
|
|
85
|
-
(ngModelChange)="operatorsPopover.close()"
|
|
86
|
-
[direction]="'vertical'"
|
|
87
|
-
[items]="operations"
|
|
88
|
-
[multiple]="false"
|
|
89
|
-
></ax-selection-list>
|
|
90
|
-
</div>
|
|
91
|
-
</ax-popover>
|
|
92
|
-
}
|
|
93
|
-
</div>
|
|
94
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: AXNumberBoxModule }, { 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: CommonModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i5.AXDecoratorIconComponent, selector: "ax-icon", 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"] }, { kind: "ngmodule", type: AXSelectBoxModule }, { kind: "component", type: i6.AXSelectBoxComponent, selector: "ax-select-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "minValue", "maxValue", "value", "state", "name", "id", "type", "look", "multiple", "valueField", "textField", "textTemplate", "dataSource", "caption", "itemTemplate", "selectedTemplate", "emptyTemplate", "loadingTemplate", "dropdownWidth"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onOpened", "onClosed"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i3.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
95
|
-
}
|
|
96
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPBooleanWidgetFilterComponent, decorators: [{
|
|
97
|
-
type: Component,
|
|
98
|
-
args: [{
|
|
99
|
-
selector: 'axp-boolean-widget-filter',
|
|
100
|
-
template: `
|
|
101
|
-
<div class="ax-flex ax-items-center">
|
|
102
|
-
<ax-select-box
|
|
103
|
-
[disabled]="!this.getOperatorHasValue()"
|
|
104
|
-
textField="text"
|
|
105
|
-
valueField="value"
|
|
106
|
-
[placeholder]="('select' | translate | async) ?? 'Select...'"
|
|
107
|
-
[dataSource]="dataSource"
|
|
108
|
-
[(ngModel)]="value"
|
|
109
|
-
></ax-select-box>
|
|
110
|
-
@if(operations.length){
|
|
111
|
-
<ax-button #changeOperator look="blank" color="default" class="ax-sm">
|
|
112
|
-
<ax-icon class="fa-solid fa-ellipsis-vertical"></ax-icon>
|
|
113
|
-
</ax-button>
|
|
114
|
-
<ax-popover
|
|
115
|
-
#operatorsPopover
|
|
116
|
-
[target]="changeOperator"
|
|
117
|
-
[openOn]="'toggle'"
|
|
118
|
-
[closeOn]="'clickOut'"
|
|
119
|
-
[adaptivityEnabled]="true"
|
|
120
|
-
>
|
|
121
|
-
<div
|
|
122
|
-
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]"
|
|
123
|
-
>
|
|
124
|
-
<ax-selection-list
|
|
125
|
-
[valueField]="'name'"
|
|
126
|
-
[textField]="'title'"
|
|
127
|
-
[(ngModel)]="operator"
|
|
128
|
-
(ngModelChange)="operatorsPopover.close()"
|
|
129
|
-
[direction]="'vertical'"
|
|
130
|
-
[items]="operations"
|
|
131
|
-
[multiple]="false"
|
|
132
|
-
></ax-selection-list>
|
|
133
|
-
</div>
|
|
134
|
-
</ax-popover>
|
|
135
|
-
}
|
|
136
|
-
</div>
|
|
137
|
-
`,
|
|
138
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
139
|
-
imports: [
|
|
140
|
-
AXNumberBoxModule,
|
|
141
|
-
FormsModule,
|
|
142
|
-
CommonModule,
|
|
143
|
-
AXDecoratorModule,
|
|
144
|
-
AXPopoverModule,
|
|
145
|
-
AXSelectionListModule,
|
|
146
|
-
AXButtonModule,
|
|
147
|
-
AXSelectBoxModule,
|
|
148
|
-
AXTranslationModule,
|
|
149
|
-
],
|
|
150
|
-
inputs: ['trulyText', 'falsyText']
|
|
151
|
-
}]
|
|
152
|
-
}] });
|
|
153
|
-
|
|
154
|
-
export { AXPBooleanWidgetFilterComponent };
|
|
155
|
-
//# sourceMappingURL=acorex-platform-common-boolean-widget-filter.component-aaKT0FyC.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-common-boolean-widget-filter.component-aaKT0FyC.mjs","sources":["../../../../libs/platform/common/src/lib/schema/widgets/common-widget-filter/boolean-widget-filter.component.ts"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXDataSource } from '@acorex/components/common';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXNumberBoxModule } from '@acorex/components/number-box';\nimport { AXPopoverModule } from '@acorex/components/popover';\nimport { AXSelectBoxModule } from '@acorex/components/select-box';\nimport { AXSelectionListModule } from '@acorex/components/selection-list';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { AXPFilterOperator } from '../../../app';\nimport { AXPWidgetFilterBase } from '../../widget/widget-base';\n\n@Component({\n selector: 'axp-boolean-widget-filter',\n template: `\n <div class=\"ax-flex ax-items-center\">\n <ax-select-box\n [disabled]=\"!this.getOperatorHasValue()\"\n textField=\"text\"\n valueField=\"value\"\n [placeholder]=\"('select' | translate | async) ?? 'Select...'\"\n [dataSource]=\"dataSource\"\n [(ngModel)]=\"value\"\n ></ax-select-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-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()\"\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 AXNumberBoxModule,\n FormsModule,\n CommonModule,\n AXDecoratorModule,\n AXPopoverModule,\n AXSelectionListModule,\n AXButtonModule,\n AXSelectBoxModule,\n AXTranslationModule,\n ],\n inputs: ['trulyText', 'falsyText']\n})\nexport class AXPBooleanWidgetFilterComponent extends AXPWidgetFilterBase<number> {\n protected falsyText!: string;\n protected trulyText!: string;\n protected operations: AXPFilterOperator[] = [];\n protected items: { text: string; value: boolean }[] = [];\n protected dataSource: any = new AXDataSource({\n load: () => {\n return Promise.resolve({\n items: this.items,\n total: this.items.length,\n });\n },\n byKey: (id: unknown) => {\n const item = this.items.find((c) => c.value.toString() == id);\n return Promise.resolve(item);\n },\n pageSize: 10,\n key: 'value',\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 override render(): void {\n this.operations = this.schema.filterOptions.operators;\n }\n\n ngOnInit(): void {\n this.items = [\n { text: this.trulyText || 'Yes', value: true },\n { text: this.falsyText || 'No', value: false },\n ];\n }\n}\n"],"names":["i1","i3","i5","i6","i8"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAoEM,MAAO,+BAAgC,SAAQ,mBAA2B,CAAA;AAtDhF,IAAA,WAAA,GAAA;;QAyDY,IAAU,CAAA,UAAA,GAAwB,EAAE;QACpC,IAAK,CAAA,KAAA,GAAuC,EAAE;QAC9C,IAAU,CAAA,UAAA,GAAQ,IAAI,YAAY,CAAC;YAC3C,IAAI,EAAE,MAAK;gBACT,OAAO,OAAO,CAAC,OAAO,CAAC;oBACrB,KAAK,EAAE,IAAI,CAAC,KAAK;AACjB,oBAAA,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM;AACzB,iBAAA,CA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A;kBAtD3C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,2BAA2B;AACrC,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCX,EAAA,CAAA;oBACC,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,OAAO,EAAE;wBACL,iBAAiB;wBACjB,WAAW;wBACX,YAAY;wBACZ,iBAAiB;wBACjB,eAAe;wBACf,qBAAqB;wBACrB,cAAc;wBACd,iBAAiB;wBACjB,mBAAmB;AACtB,qBAAA;AACD,oBAAA,MAAM,EAAE,CAAC,WAAW,EAAE,WAAW;AACpC,iBAAA;;;;;"}
|
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
import * as i2 from '@acorex/components/button';
|
|
2
|
-
import { AXButtonModule } from '@acorex/components/button';
|
|
3
|
-
import * as i5 from '@acorex/components/decorators';
|
|
4
|
-
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
5
|
-
import * as i3 from '@acorex/components/form';
|
|
6
|
-
import { AXFormComponent, AXFormModule } from '@acorex/components/form';
|
|
7
|
-
import * as i4 from '@acorex/components/label';
|
|
8
|
-
import { AXLabelModule } from '@acorex/components/label';
|
|
9
|
-
import * as i3$1 from '@acorex/components/password-box';
|
|
10
|
-
import { AXPasswordBoxModule } from '@acorex/components/password-box';
|
|
11
|
-
import * as i5$1 from '@acorex/components/progress-bar';
|
|
12
|
-
import { AXProgressBarModule } from '@acorex/components/progress-bar';
|
|
13
|
-
import { AXTextBoxModule } from '@acorex/components/text-box';
|
|
14
|
-
import { AXTranslationModule } from '@acorex/core/translation';
|
|
15
|
-
import { CommonModule } from '@angular/common';
|
|
16
|
-
import * as i0 from '@angular/core';
|
|
17
|
-
import { Component, ChangeDetectionStrategy, Input, ViewChild } from '@angular/core';
|
|
18
|
-
import * as i2$1 from '@angular/forms';
|
|
19
|
-
import { FormsModule } from '@angular/forms';
|
|
20
|
-
|
|
21
|
-
class ChangePassword {
|
|
22
|
-
constructor() {
|
|
23
|
-
this.newPass = '';
|
|
24
|
-
this.newPassConfirm = '';
|
|
25
|
-
this.passwordStrength = 0;
|
|
26
|
-
this.strengthLabel = 'week';
|
|
27
|
-
this.strengthLabelColor = 'danger';
|
|
28
|
-
this.checkMatchingPasswords = (e) => { result: this.newPass === this.newPassConfirm; };
|
|
29
|
-
}
|
|
30
|
-
confirm() {
|
|
31
|
-
this.form.validate().then((res) => {
|
|
32
|
-
if (!res.result)
|
|
33
|
-
return;
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
checkPasswordStrength(password) {
|
|
37
|
-
let strength = 0;
|
|
38
|
-
const criteria = [/.{8,}/, /[A-Z]/, /[a-z]/, /\d/, /[!@#$%^&*(),.?":{}|<>]/];
|
|
39
|
-
criteria.forEach((regex) => {
|
|
40
|
-
if (regex.test(password))
|
|
41
|
-
strength++;
|
|
42
|
-
});
|
|
43
|
-
this.strengthLabel = strength <= 2 ? 'Week' : strength == 3 ? 'So-so' : strength == 4 ? 'Good' : 'Great';
|
|
44
|
-
this.strengthLabelColor = strength <= 2 ? 'danger' : strength <= 3 ? 'warning' : 'success';
|
|
45
|
-
this.passwordStrength = (strength * 100) / criteria.length;
|
|
46
|
-
}
|
|
47
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: ChangePassword, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
48
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: ChangePassword, isStandalone: true, selector: "ng-component", inputs: { password: "password", currentPass: "currentPass" }, viewQueries: [{ propertyName: "form", first: true, predicate: AXFormComponent, descendants: true }], ngImport: i0, template: `<div class="ax-p-5">
|
|
49
|
-
<ax-form updateOn="submit" messageStyle="bottom">
|
|
50
|
-
@if (currentPass) {
|
|
51
|
-
<ax-form-field class="ax-mb-4">
|
|
52
|
-
<ax-label>Current Password</ax-label>
|
|
53
|
-
<ax-password-box>
|
|
54
|
-
<ax-validation-rule rule="required"></ax-validation-rule>
|
|
55
|
-
</ax-password-box>
|
|
56
|
-
</ax-form-field>
|
|
57
|
-
}
|
|
58
|
-
<div class="ax-mb-4">
|
|
59
|
-
<ax-form-field>
|
|
60
|
-
<div class="ax-flex ax-justify-between ax-items-center">
|
|
61
|
-
<ax-label>New Password</ax-label>
|
|
62
|
-
</div>
|
|
63
|
-
<ax-password-box [(ngModel)]="newPass" (ngModelChange)="checkPasswordStrength(newPass)">
|
|
64
|
-
<ax-validation-rule rule="required"> </ax-validation-rule>
|
|
65
|
-
<ax-validation-rule rule="custom" value="password"> </ax-validation-rule>
|
|
66
|
-
</ax-password-box>
|
|
67
|
-
</ax-form-field>
|
|
68
|
-
<div class="ax-flex ax-justify-between ax-items-center">
|
|
69
|
-
<ax-progress-bar [color]="strengthLabelColor" [progress]="passwordStrength" [height]="4"></ax-progress-bar>
|
|
70
|
-
<small
|
|
71
|
-
class="ax-px-3 ax-text-center ax-whitespace-nowrap"
|
|
72
|
-
[class.ax-text-danger]="strengthLabelColor === 'danger'"
|
|
73
|
-
[class.ax-text-warning]="strengthLabelColor === 'warning'"
|
|
74
|
-
[class.ax-text-success]="strengthLabelColor === 'success'"
|
|
75
|
-
>{{ strengthLabel }}</small
|
|
76
|
-
>
|
|
77
|
-
</div>
|
|
78
|
-
</div>
|
|
79
|
-
<ax-form-field class="ax-mb-4">
|
|
80
|
-
<ax-label>Confirm New Password</ax-label>
|
|
81
|
-
<ax-password-box [(ngModel)]="newPassConfirm">
|
|
82
|
-
<ax-validation-rule rule="required"> </ax-validation-rule>
|
|
83
|
-
<ax-validation-rule
|
|
84
|
-
message="password and confirmation password do not match"
|
|
85
|
-
rule="callback"
|
|
86
|
-
[options]="{validate:checkMatchingPasswords}"
|
|
87
|
-
>
|
|
88
|
-
</ax-validation-rule>
|
|
89
|
-
</ax-password-box>
|
|
90
|
-
</ax-form-field>
|
|
91
|
-
</ax-form>
|
|
92
|
-
</div>
|
|
93
|
-
<ax-footer>
|
|
94
|
-
<ax-suffix>
|
|
95
|
-
<ax-button (onClick)="confirm()" text="Confirm" color="primary"></ax-button>
|
|
96
|
-
</ax-suffix>
|
|
97
|
-
</ax-footer>`, 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.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: AXFormModule }, { kind: "component", type: i3.AXFormFieldComponent, selector: "ax-form-field", inputs: ["labelMode"] }, { kind: "component", type: i3.AXFormComponent, selector: "ax-form", inputs: ["labelMode", "look", "messageStyle", "updateOn"], outputs: ["onValidate", "updateOnChange"] }, { kind: "directive", type: i3.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message"] }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i4.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXProgressBarModule }, { kind: "component", type: i5$1.AXProgressBarComponent, selector: "ax-progress-bar", inputs: ["color", "mode", "progress", "height"], outputs: ["ValueChange", "sizeChange"] }, { kind: "ngmodule", type: AXPasswordBoxModule }, { kind: "component", type: i3$1.AXPasswordBoxComponent, selector: "ax-password-box", inputs: ["readonly", "disabled", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "autoComplete", "showToggleButton", "class"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXTranslationModule }, { 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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
98
|
-
}
|
|
99
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: ChangePassword, decorators: [{
|
|
100
|
-
type: Component,
|
|
101
|
-
args: [{
|
|
102
|
-
template: `<div class="ax-p-5">
|
|
103
|
-
<ax-form updateOn="submit" messageStyle="bottom">
|
|
104
|
-
@if (currentPass) {
|
|
105
|
-
<ax-form-field class="ax-mb-4">
|
|
106
|
-
<ax-label>Current Password</ax-label>
|
|
107
|
-
<ax-password-box>
|
|
108
|
-
<ax-validation-rule rule="required"></ax-validation-rule>
|
|
109
|
-
</ax-password-box>
|
|
110
|
-
</ax-form-field>
|
|
111
|
-
}
|
|
112
|
-
<div class="ax-mb-4">
|
|
113
|
-
<ax-form-field>
|
|
114
|
-
<div class="ax-flex ax-justify-between ax-items-center">
|
|
115
|
-
<ax-label>New Password</ax-label>
|
|
116
|
-
</div>
|
|
117
|
-
<ax-password-box [(ngModel)]="newPass" (ngModelChange)="checkPasswordStrength(newPass)">
|
|
118
|
-
<ax-validation-rule rule="required"> </ax-validation-rule>
|
|
119
|
-
<ax-validation-rule rule="custom" value="password"> </ax-validation-rule>
|
|
120
|
-
</ax-password-box>
|
|
121
|
-
</ax-form-field>
|
|
122
|
-
<div class="ax-flex ax-justify-between ax-items-center">
|
|
123
|
-
<ax-progress-bar [color]="strengthLabelColor" [progress]="passwordStrength" [height]="4"></ax-progress-bar>
|
|
124
|
-
<small
|
|
125
|
-
class="ax-px-3 ax-text-center ax-whitespace-nowrap"
|
|
126
|
-
[class.ax-text-danger]="strengthLabelColor === 'danger'"
|
|
127
|
-
[class.ax-text-warning]="strengthLabelColor === 'warning'"
|
|
128
|
-
[class.ax-text-success]="strengthLabelColor === 'success'"
|
|
129
|
-
>{{ strengthLabel }}</small
|
|
130
|
-
>
|
|
131
|
-
</div>
|
|
132
|
-
</div>
|
|
133
|
-
<ax-form-field class="ax-mb-4">
|
|
134
|
-
<ax-label>Confirm New Password</ax-label>
|
|
135
|
-
<ax-password-box [(ngModel)]="newPassConfirm">
|
|
136
|
-
<ax-validation-rule rule="required"> </ax-validation-rule>
|
|
137
|
-
<ax-validation-rule
|
|
138
|
-
message="password and confirmation password do not match"
|
|
139
|
-
rule="callback"
|
|
140
|
-
[options]="{validate:checkMatchingPasswords}"
|
|
141
|
-
>
|
|
142
|
-
</ax-validation-rule>
|
|
143
|
-
</ax-password-box>
|
|
144
|
-
</ax-form-field>
|
|
145
|
-
</ax-form>
|
|
146
|
-
</div>
|
|
147
|
-
<ax-footer>
|
|
148
|
-
<ax-suffix>
|
|
149
|
-
<ax-button (onClick)="confirm()" text="Confirm" color="primary"></ax-button>
|
|
150
|
-
</ax-suffix>
|
|
151
|
-
</ax-footer>`,
|
|
152
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
153
|
-
imports: [
|
|
154
|
-
CommonModule,
|
|
155
|
-
AXButtonModule,
|
|
156
|
-
AXDecoratorModule,
|
|
157
|
-
AXFormModule,
|
|
158
|
-
AXTextBoxModule,
|
|
159
|
-
AXLabelModule,
|
|
160
|
-
AXProgressBarModule,
|
|
161
|
-
AXPasswordBoxModule,
|
|
162
|
-
AXTranslationModule,
|
|
163
|
-
FormsModule,
|
|
164
|
-
]
|
|
165
|
-
}]
|
|
166
|
-
}], propDecorators: { password: [{
|
|
167
|
-
type: Input
|
|
168
|
-
}], currentPass: [{
|
|
169
|
-
type: Input
|
|
170
|
-
}], form: [{
|
|
171
|
-
type: ViewChild,
|
|
172
|
-
args: [AXFormComponent]
|
|
173
|
-
}] } });
|
|
174
|
-
|
|
175
|
-
export { ChangePassword };
|
|
176
|
-
//# sourceMappingURL=acorex-platform-common-change-password.component-DFoC5nP2.mjs.map
|