@acorex/platform 1.0.0
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/README.md +7 -0
- package/auth/README.md +3 -0
- package/auth/index.d.ts +16 -0
- package/auth/lib/application/application.loader.d.ts +9 -0
- package/auth/lib/application/application.types.d.ts +10 -0
- package/auth/lib/auth-registry.service.d.ts +12 -0
- package/auth/lib/auth.guard.d.ts +2 -0
- package/auth/lib/auth.module.d.ts +20 -0
- package/auth/lib/auth.strategy.d.ts +28 -0
- package/auth/lib/errors.types.d.ts +6 -0
- package/auth/lib/feature/feature.loader.d.ts +7 -0
- package/auth/lib/feature/feature.types.d.ts +6 -0
- package/auth/lib/permission/permission.directive.d.ts +16 -0
- package/auth/lib/permission/permission.guard.d.ts +2 -0
- package/auth/lib/permission/permission.loader.d.ts +7 -0
- package/auth/lib/permission/permission.types.d.ts +1 -0
- package/auth/lib/session.service.d.ts +51 -0
- package/auth/lib/tenant/tenant.loader.d.ts +9 -0
- package/auth/lib/tenant/tenant.types.d.ts +8 -0
- package/auth/lib/user/user.types.d.ts +6 -0
- package/common/README.md +3 -0
- package/common/index.d.ts +11 -0
- package/common/lib/common.module.d.ts +21 -0
- package/common/lib/configs/app.config.d.ts +19 -0
- package/common/lib/data/data-provider.types.d.ts +11 -0
- package/common/lib/data/index.d.ts +1 -0
- package/common/lib/errors/error-handler-registry.service.d.ts +12 -0
- package/common/lib/errors/error-handler.types.d.ts +3 -0
- package/common/lib/errors/global-error-handler.d.ts +11 -0
- package/common/lib/errors/index.d.ts +3 -0
- package/common/lib/layout/component-slot/component-slot-loader.service.d.ts +11 -0
- package/common/lib/layout/component-slot/component-slot-registery.service.d.ts +9 -0
- package/common/lib/layout/component-slot/component-slot.directive.d.ts +12 -0
- package/common/lib/layout/component-slot/component-slot.module.d.ts +15 -0
- package/common/lib/layout/component-slot/component-slot.types.d.ts +14 -0
- package/common/lib/layout/component-slot/index.d.ts +5 -0
- package/common/lib/menu/index.d.ts +2 -0
- package/common/lib/menu/menu.loader.d.ts +17 -0
- package/common/lib/menu/menu.types.d.ts +13 -0
- package/common/lib/settings/index.d.ts +3 -0
- package/common/lib/settings/settings.loader.d.ts +8 -0
- package/common/lib/settings/settings.service.d.ts +9 -0
- package/common/lib/settings/settings.types.d.ts +5 -0
- package/common/lib/shared/logo.types.d.ts +19 -0
- package/common/lib/shared/state-persistence/index.d.ts +3 -0
- package/common/lib/shared/state-persistence/state-persistence.actions.d.ts +1 -0
- package/common/lib/shared/state-persistence/state-persistence.module.d.ts +8 -0
- package/common/lib/shared/state-persistence/state-persistence.reducers.d.ts +3 -0
- package/common/lib/store/common.actions.d.ts +14 -0
- package/common/lib/store/common.effects.d.ts +11 -0
- package/common/lib/store/index.d.ts +2 -0
- package/common/lib/utils/clipboard-service.d.ts +7 -0
- package/common/lib/utils/index.d.ts +3 -0
- package/common/lib/utils/router-util.service.d.ts +12 -0
- package/common/lib/utils/sticky.directive.d.ts +24 -0
- package/esm2022/acorex-platform.mjs +5 -0
- package/esm2022/auth/acorex-platform-auth.mjs +5 -0
- package/esm2022/auth/index.mjs +17 -0
- package/esm2022/auth/lib/application/application.loader.mjs +26 -0
- package/esm2022/auth/lib/application/application.types.mjs +2 -0
- package/esm2022/auth/lib/auth-registry.service.mjs +29 -0
- package/esm2022/auth/lib/auth.guard.mjs +18 -0
- package/esm2022/auth/lib/auth.module.mjs +84 -0
- package/esm2022/auth/lib/auth.strategy.mjs +2 -0
- package/esm2022/auth/lib/errors.types.mjs +13 -0
- package/esm2022/auth/lib/feature/feature.loader.mjs +14 -0
- package/esm2022/auth/lib/feature/feature.types.mjs +2 -0
- package/esm2022/auth/lib/permission/permission.directive.mjs +51 -0
- package/esm2022/auth/lib/permission/permission.guard.mjs +16 -0
- package/esm2022/auth/lib/permission/permission.loader.mjs +14 -0
- package/esm2022/auth/lib/permission/permission.types.mjs +2 -0
- package/esm2022/auth/lib/session.service.mjs +240 -0
- package/esm2022/auth/lib/tenant/tenant.loader.mjs +23 -0
- package/esm2022/auth/lib/tenant/tenant.types.mjs +2 -0
- package/esm2022/auth/lib/user/user.types.mjs +2 -0
- package/esm2022/common/acorex-platform-common.mjs +5 -0
- package/esm2022/common/index.mjs +12 -0
- package/esm2022/common/lib/common.module.mjs +123 -0
- package/esm2022/common/lib/configs/app.config.mjs +27 -0
- package/esm2022/common/lib/data/data-provider.types.mjs +3 -0
- package/esm2022/common/lib/data/index.mjs +2 -0
- package/esm2022/common/lib/errors/error-handler-registry.service.mjs +29 -0
- package/esm2022/common/lib/errors/error-handler.types.mjs +2 -0
- package/esm2022/common/lib/errors/global-error-handler.mjs +36 -0
- package/esm2022/common/lib/errors/index.mjs +4 -0
- package/esm2022/common/lib/layout/component-slot/component-slot-loader.service.mjs +56 -0
- package/esm2022/common/lib/layout/component-slot/component-slot-registery.service.mjs +28 -0
- package/esm2022/common/lib/layout/component-slot/component-slot.directive.mjs +24 -0
- package/esm2022/common/lib/layout/component-slot/component-slot.module.mjs +72 -0
- package/esm2022/common/lib/layout/component-slot/component-slot.types.mjs +2 -0
- package/esm2022/common/lib/layout/component-slot/index.mjs +6 -0
- package/esm2022/common/lib/menu/index.mjs +3 -0
- package/esm2022/common/lib/menu/menu.loader.mjs +39 -0
- package/esm2022/common/lib/menu/menu.types.mjs +2 -0
- package/esm2022/common/lib/settings/index.mjs +4 -0
- package/esm2022/common/lib/settings/settings.loader.mjs +17 -0
- package/esm2022/common/lib/settings/settings.service.mjs +20 -0
- package/esm2022/common/lib/settings/settings.types.mjs +2 -0
- package/esm2022/common/lib/shared/logo.types.mjs +21 -0
- package/esm2022/common/lib/shared/state-persistence/index.mjs +4 -0
- package/esm2022/common/lib/shared/state-persistence/state-persistence.actions.mjs +3 -0
- package/esm2022/common/lib/shared/state-persistence/state-persistence.module.mjs +36 -0
- package/esm2022/common/lib/shared/state-persistence/state-persistence.reducers.mjs +30 -0
- package/esm2022/common/lib/store/common.actions.mjs +5 -0
- package/esm2022/common/lib/store/common.effects.mjs +31 -0
- package/esm2022/common/lib/store/index.mjs +3 -0
- package/esm2022/common/lib/utils/clipboard-service.mjs +26 -0
- package/esm2022/common/lib/utils/index.mjs +4 -0
- package/esm2022/common/lib/utils/router-util.service.mjs +43 -0
- package/esm2022/common/lib/utils/sticky.directive.mjs +74 -0
- package/esm2022/index.mjs +2 -0
- package/esm2022/layouts/acorex-platform-layouts.mjs +5 -0
- package/esm2022/layouts/index.mjs +5 -0
- package/esm2022/layouts/lib/admin/admin-child-layout/admin-child-features-list.component.mjs +58 -0
- package/esm2022/layouts/lib/admin/admin-child-layout/admin-child-layout.component.mjs +50 -0
- package/esm2022/layouts/lib/admin/admin-child-layout/admin-child-layout.module.mjs +57 -0
- package/esm2022/layouts/lib/admin/admin-child-layout/index.mjs +4 -0
- package/esm2022/layouts/lib/admin/admin-root-layout/admin-root-layout.component.mjs +74 -0
- package/esm2022/layouts/lib/admin/admin-root-layout/admin-root-layout.module.mjs +92 -0
- package/esm2022/layouts/lib/admin/admin-root-layout/components/admin-footer/admin-footer.component.mjs +14 -0
- package/esm2022/layouts/lib/admin/admin-root-layout/components/admin-header/admin-header.component.mjs +29 -0
- package/esm2022/layouts/lib/admin/admin-root-layout/index.mjs +5 -0
- package/esm2022/layouts/lib/admin/admin.module.mjs +75 -0
- package/esm2022/layouts/lib/admin/admin.routes.mjs +37 -0
- package/esm2022/layouts/lib/admin/custom-reuse.strategy.mjs +20 -0
- package/esm2022/layouts/lib/admin/entity-layout/entity-create-view/entity-create-view.component.mjs +105 -0
- package/esm2022/layouts/lib/admin/entity-layout/entity-create-view/entity-create-view.config.mjs +137 -0
- package/esm2022/layouts/lib/admin/entity-layout/entity-details-view/detail-view.config.mjs +125 -0
- package/esm2022/layouts/lib/admin/entity-layout/entity-details-view/entity-details-view.component.mjs +180 -0
- package/esm2022/layouts/lib/admin/entity-layout/entity-details-view/index.mjs +3 -0
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/components/entity-custom-view/entity-custom-view.component.mjs +200 -0
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/components/index.mjs +6 -0
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-columns/list-view-option-columns.component.mjs +56 -0
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-conditions/list-view-option-conditions.component.mjs +108 -0
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-conditions/list-view-option-filter-operator.component.mjs +76 -0
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-sorting/list-view-option-sorting.component.mjs +57 -0
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/entity-list-view.component.mjs +283 -0
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/index.mjs +5 -0
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/list-view.config.mjs +333 -0
- package/esm2022/layouts/lib/admin/entity-layout/entity-list-view/list-view.module.mjs +156 -0
- package/esm2022/layouts/lib/admin/entity-layout/entity-modify-view/entity-modify-view.component.mjs +86 -0
- package/esm2022/layouts/lib/admin/entity-layout/entity-modify-view/entity-modify-view.config.mjs +66 -0
- package/esm2022/layouts/lib/admin/entity-layout/entity-quick-view/entity-quick-view.component.mjs +82 -0
- package/esm2022/layouts/lib/admin/entity-layout/entity-quick-view/index.mjs +2 -0
- package/esm2022/layouts/lib/admin/entity-layout/index.mjs +4 -0
- package/esm2022/layouts/lib/admin/entity-layout/store/entity.actions.mjs +18 -0
- package/esm2022/layouts/lib/admin/entity-layout/store/entity.effects.mjs +76 -0
- package/esm2022/layouts/lib/admin/entity-layout/workflows/create-entity.workflow.mjs +91 -0
- package/esm2022/layouts/lib/admin/entity-layout/workflows/delete-entity.workflow.mjs +153 -0
- package/esm2022/layouts/lib/admin/entity-layout/workflows/modify-entity.workflow.mjs +98 -0
- package/esm2022/layouts/lib/admin/entity.resolver.mjs +21 -0
- package/esm2022/layouts/lib/admin/index.mjs +8 -0
- package/esm2022/layouts/lib/admin/store/admin-layout.actions.mjs +12 -0
- package/esm2022/layouts/lib/admin/store/admin-layout.effects.mjs +29 -0
- package/esm2022/layouts/lib/admin/store/admin-layout.reducers.mjs +60 -0
- package/esm2022/layouts/lib/admin/store/admin-layout.selectors.mjs +8 -0
- package/esm2022/layouts/lib/admin/store/admin-layout.state.mjs +16 -0
- package/esm2022/layouts/lib/admin/store/index.mjs +6 -0
- package/esm2022/layouts/lib/layout.module.mjs +63 -0
- package/esm2022/layouts/lib/layout.routes.mjs +15 -0
- package/esm2022/layouts/lib/shared/components/content-view/content-view.page.mjs +64 -0
- package/esm2022/layouts/lib/shared/components/content-view/content-view.type.mjs +2 -0
- package/esm2022/layouts/lib/shared/components/error-401/error-401.component.mjs +29 -0
- package/esm2022/layouts/lib/shared/components/error-404/error-404.component.mjs +22 -0
- package/esm2022/layouts/lib/shared/components/error-offline/error-offline.component.mjs +16 -0
- package/esm2022/layouts/lib/shared/components/index.mjs +9 -0
- package/esm2022/layouts/lib/shared/components/logo/logo.component.mjs +38 -0
- package/esm2022/layouts/lib/shared/components/slots/footer-text-slot.component.mjs +20 -0
- package/esm2022/layouts/lib/shared/components/slots/navbar-slot.component.mjs +36 -0
- package/esm2022/layouts/lib/shared/components/slots/theme-slot.component.mjs +48 -0
- package/esm2022/layouts/lib/shared/entity/entity-registery.service.mjs +70 -0
- package/esm2022/layouts/lib/shared/entity/entity.class.mjs +32 -0
- package/esm2022/layouts/lib/shared/entity/entity.loader.mjs +13 -0
- package/esm2022/layouts/lib/shared/entity/index.mjs +4 -0
- package/esm2022/layouts/lib/shared/index.mjs +5 -0
- package/esm2022/layouts/lib/shared/services/index.mjs +2 -0
- package/esm2022/layouts/lib/shared/services/layout.service.mjs +79 -0
- package/esm2022/layouts/lib/shared/workflows/common.workflow.mjs +110 -0
- package/esm2022/layouts/lib/shared/workflows/error-handler.mjs +24 -0
- package/esm2022/layouts/lib/shared/workflows/index.mjs +3 -0
- package/esm2022/layouts/lib/widgets/avatar/avatar-widget-edit.component.mjs +102 -0
- package/esm2022/layouts/lib/widgets/avatar/avatar-widget-view.component.mjs +33 -0
- package/esm2022/layouts/lib/widgets/checkbox/checkbox-widget-column.component.mjs +53 -0
- package/esm2022/layouts/lib/widgets/checkbox/checkbox-widget-edit.component.mjs +22 -0
- package/esm2022/layouts/lib/widgets/checkbox/checkbox-widget-view.component.mjs +47 -0
- package/esm2022/layouts/lib/widgets/common-widget-filter/boolean-widget-filter.component.mjs +147 -0
- package/esm2022/layouts/lib/widgets/common-widget-filter/number-widget-filter.component.mjs +135 -0
- package/esm2022/layouts/lib/widgets/common-widget-filter/string-widget-filter.component.mjs +125 -0
- package/esm2022/layouts/lib/widgets/common-widgets.module.mjs +479 -0
- package/esm2022/layouts/lib/widgets/dateTime/dateTime-widget-column.component.mjs +44 -0
- package/esm2022/layouts/lib/widgets/dateTime/dateTime-widget-edit.component.mjs +175 -0
- package/esm2022/layouts/lib/widgets/dateTime/dateTime-widget-filter.component.mjs +230 -0
- package/esm2022/layouts/lib/widgets/dateTime/dateTime-widget-view.component.mjs +71 -0
- package/esm2022/layouts/lib/widgets/email/email-widget-column.component.mjs +73 -0
- package/esm2022/layouts/lib/widgets/email/email-widget-edit.component.mjs +249 -0
- package/esm2022/layouts/lib/widgets/email/email-widget-view.component.mjs +108 -0
- package/esm2022/layouts/lib/widgets/file/file-widget-column.component.mjs +27 -0
- package/esm2022/layouts/lib/widgets/file/file-widget-edit.component.mjs +200 -0
- package/esm2022/layouts/lib/widgets/file/file-widget-filter.component.mjs +27 -0
- package/esm2022/layouts/lib/widgets/file/file-widget-view.component.mjs +153 -0
- package/esm2022/layouts/lib/widgets/gallery/gallery-widget-edit.component.mjs +189 -0
- package/esm2022/layouts/lib/widgets/gallery/gallery-widget-filter.component.mjs +27 -0
- package/esm2022/layouts/lib/widgets/gallery/gallery-widget-types.mjs +2 -0
- package/esm2022/layouts/lib/widgets/gallery/gallery-widget-view.component.mjs +173 -0
- package/esm2022/layouts/lib/widgets/index.mjs +2 -0
- package/esm2022/layouts/lib/widgets/lookup/lookup-widget-column.component.mjs +43 -0
- package/esm2022/layouts/lib/widgets/lookup/lookup-widget-edit.component.mjs +74 -0
- package/esm2022/layouts/lib/widgets/lookup/lookup-widget-filter.component.mjs +139 -0
- package/esm2022/layouts/lib/widgets/lookup/lookup-widget-view.component.mjs +54 -0
- package/esm2022/layouts/lib/widgets/map/map-widget-edit.component.mjs +91 -0
- package/esm2022/layouts/lib/widgets/map/map-widget-view.component.mjs +63 -0
- package/esm2022/layouts/lib/widgets/messenger/messenger-widget-column.component.mjs +71 -0
- package/esm2022/layouts/lib/widgets/messenger/messenger-widget-edit.component.mjs +136 -0
- package/esm2022/layouts/lib/widgets/messenger/messenger-widget-view.component.mjs +132 -0
- package/esm2022/layouts/lib/widgets/number/number-widget-edit.component.mjs +46 -0
- package/esm2022/layouts/lib/widgets/number/number-widget-view.component.mjs +30 -0
- package/esm2022/layouts/lib/widgets/password/change-password.component.mjs +175 -0
- package/esm2022/layouts/lib/widgets/password/password-widget-column.component.mjs +77 -0
- package/esm2022/layouts/lib/widgets/password/password-widget-edit.component.mjs +34 -0
- package/esm2022/layouts/lib/widgets/password/password-widget-view.component.mjs +109 -0
- package/esm2022/layouts/lib/widgets/phone/phone-widget-column.component.mjs +91 -0
- package/esm2022/layouts/lib/widgets/phone/phone-widget-edit.component.mjs +315 -0
- package/esm2022/layouts/lib/widgets/phone/phone-widget-view.component.mjs +123 -0
- package/esm2022/layouts/lib/widgets/rich-text/rich-text-widget-column.component.mjs +69 -0
- package/esm2022/layouts/lib/widgets/rich-text/rich-text-widget-edit.component.mjs +67 -0
- package/esm2022/layouts/lib/widgets/rich-text/rich-text-widget-view.component.mjs +34 -0
- package/esm2022/layouts/lib/widgets/selection-list/selection-list-widget-column.component.mjs +43 -0
- package/esm2022/layouts/lib/widgets/selection-list/selection-list-widget-edit.component.mjs +53 -0
- package/esm2022/layouts/lib/widgets/selection-list/selection-list-widget-filter.component.mjs +41 -0
- package/esm2022/layouts/lib/widgets/selection-list/selection-list-widget-view.component.mjs +45 -0
- package/esm2022/layouts/lib/widgets/signature-pad/signature-pad-widget-edit.component.mjs +128 -0
- package/esm2022/layouts/lib/widgets/signature-pad/signature-pad-widget-view.component.mjs +41 -0
- package/esm2022/layouts/lib/widgets/text/largetext-widget-edit.component.mjs +37 -0
- package/esm2022/layouts/lib/widgets/text/text-widget-column.component.mjs +47 -0
- package/esm2022/layouts/lib/widgets/text/text-widget-edit.component.mjs +162 -0
- package/esm2022/layouts/lib/widgets/text/text-widget-view.component.mjs +66 -0
- package/esm2022/layouts/lib/widgets/toggle/toggle-widget-column.component.mjs +57 -0
- package/esm2022/layouts/lib/widgets/toggle/toggle-widget-edit.component.mjs +25 -0
- package/esm2022/layouts/lib/widgets/toggle/toggle-widget-view.component.mjs +49 -0
- package/esm2022/mocks/acorex-platform-mocks.mjs +5 -0
- package/esm2022/mocks/index.mjs +7 -0
- package/esm2022/mocks/lib/mocks.module.mjs +15 -0
- package/esm2022/mocks/lib/services/mocker.service.mjs +124 -0
- package/esm2022/mocks/lib/storage/storage.mock.service.mjs +186 -0
- package/esm2022/native/acorex-platform-native.mjs +5 -0
- package/esm2022/native/index.mjs +3 -0
- package/esm2022/native/lib/native.module.mjs +16 -0
- package/esm2022/native/lib/native.service.mjs +133 -0
- package/esm2022/schema/acorex-platform-schema.mjs +5 -0
- package/esm2022/schema/index.mjs +14 -0
- package/esm2022/schema/lib/component-loader.mjs +2 -0
- package/esm2022/schema/lib/formats.mjs +2 -0
- package/esm2022/schema/lib/operators.mjs +50 -0
- package/esm2022/schema/lib/schema-registery.service.mjs +33 -0
- package/esm2022/schema/lib/schema.mjs +2 -0
- package/esm2022/schema/lib/schema.module.mjs +23 -0
- package/esm2022/schema/lib/widget/widget-base.mjs +110 -0
- package/esm2022/schema/lib/widget/widget-column-renderer.mjs +99 -0
- package/esm2022/schema/lib/widget/widget-filter-renderer.mjs +133 -0
- package/esm2022/schema/lib/widget/widget-renderer.mjs +144 -0
- package/esm2022/schema/lib/widget/widget-token.mjs +3 -0
- package/esm2022/workflow/acorex-platform-workflow.mjs +5 -0
- package/esm2022/workflow/index.mjs +7 -0
- package/esm2022/workflow/lib/errors.types.mjs +8 -0
- package/esm2022/workflow/lib/workflow-event-dispatcher.service.mjs +23 -0
- package/esm2022/workflow/lib/workflow-registery.service.mjs +39 -0
- package/esm2022/workflow/lib/workflow.module.mjs +96 -0
- package/esm2022/workflow/lib/workflow.service.mjs +141 -0
- package/esm2022/workflow/lib/workflow.types.mjs +52 -0
- package/fesm2022/acorex-platform-auth.mjs +502 -0
- package/fesm2022/acorex-platform-auth.mjs.map +1 -0
- package/fesm2022/acorex-platform-common.mjs +699 -0
- package/fesm2022/acorex-platform-common.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-avatar-widget-edit.component-PZr1lXj-.mjs +104 -0
- package/fesm2022/acorex-platform-layouts-avatar-widget-edit.component-PZr1lXj-.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-avatar-widget-view.component-pJJYkvdH.mjs +36 -0
- package/fesm2022/acorex-platform-layouts-avatar-widget-view.component-pJJYkvdH.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-boolean-widget-filter.component-H056Q5Gz.mjs +150 -0
- package/fesm2022/acorex-platform-layouts-boolean-widget-filter.component-H056Q5Gz.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-change-password.component-QMAm6dxN.mjs +178 -0
- package/fesm2022/acorex-platform-layouts-change-password.component-QMAm6dxN.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-checkbox-widget-column.component-vRJI5S-w.mjs +56 -0
- package/fesm2022/acorex-platform-layouts-checkbox-widget-column.component-vRJI5S-w.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-checkbox-widget-edit.component-P4cD_Nwg.mjs +25 -0
- package/fesm2022/acorex-platform-layouts-checkbox-widget-edit.component-P4cD_Nwg.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-checkbox-widget-view.component-m6bF8XFR.mjs +50 -0
- package/fesm2022/acorex-platform-layouts-checkbox-widget-view.component-m6bF8XFR.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-dateTime-widget-column.component-qeQRJePy.mjs +47 -0
- package/fesm2022/acorex-platform-layouts-dateTime-widget-column.component-qeQRJePy.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-dateTime-widget-edit.component-zeJXGXY8.mjs +178 -0
- package/fesm2022/acorex-platform-layouts-dateTime-widget-edit.component-zeJXGXY8.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-dateTime-widget-filter.component-DJ6esclU.mjs +233 -0
- package/fesm2022/acorex-platform-layouts-dateTime-widget-filter.component-DJ6esclU.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-dateTime-widget-view.component-BrwycTWz.mjs +74 -0
- package/fesm2022/acorex-platform-layouts-dateTime-widget-view.component-BrwycTWz.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-email-widget-column.component-ac8gqsFT.mjs +76 -0
- package/fesm2022/acorex-platform-layouts-email-widget-column.component-ac8gqsFT.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-email-widget-edit.component-m2dI7y9X.mjs +252 -0
- package/fesm2022/acorex-platform-layouts-email-widget-edit.component-m2dI7y9X.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-email-widget-view.component-XrV8va7z.mjs +111 -0
- package/fesm2022/acorex-platform-layouts-email-widget-view.component-XrV8va7z.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-entity-create-view.component-8rtifIvM.mjs +108 -0
- package/fesm2022/acorex-platform-layouts-entity-create-view.component-8rtifIvM.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-entity-modify-view.component-VeTkP3-n.mjs +89 -0
- package/fesm2022/acorex-platform-layouts-entity-modify-view.component-VeTkP3-n.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-file-widget-column.component-v7kAdIQ9.mjs +30 -0
- package/fesm2022/acorex-platform-layouts-file-widget-column.component-v7kAdIQ9.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-file-widget-edit.component-Wrq7ZL9R.mjs +203 -0
- package/fesm2022/acorex-platform-layouts-file-widget-edit.component-Wrq7ZL9R.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-file-widget-filter.component-1-NJh38j.mjs +30 -0
- package/fesm2022/acorex-platform-layouts-file-widget-filter.component-1-NJh38j.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-file-widget-view.component-mXBrKX0K.mjs +156 -0
- package/fesm2022/acorex-platform-layouts-file-widget-view.component-mXBrKX0K.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-gallery-widget-edit.component-cWNvVwum.mjs +192 -0
- package/fesm2022/acorex-platform-layouts-gallery-widget-edit.component-cWNvVwum.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-gallery-widget-filter.component-OCz0hj5i.mjs +30 -0
- package/fesm2022/acorex-platform-layouts-gallery-widget-filter.component-OCz0hj5i.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-gallery-widget-view.component-xU52uaP0.mjs +176 -0
- package/fesm2022/acorex-platform-layouts-gallery-widget-view.component-xU52uaP0.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-largetext-widget-edit.component-Um_eBRFi.mjs +40 -0
- package/fesm2022/acorex-platform-layouts-largetext-widget-edit.component-Um_eBRFi.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-lookup-widget-column.component-Ts0MJe8O.mjs +46 -0
- package/fesm2022/acorex-platform-layouts-lookup-widget-column.component-Ts0MJe8O.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-lookup-widget-edit.component-l5nSr9Cm.mjs +119 -0
- package/fesm2022/acorex-platform-layouts-lookup-widget-edit.component-l5nSr9Cm.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-lookup-widget-filter.component-gp5skvmz.mjs +181 -0
- package/fesm2022/acorex-platform-layouts-lookup-widget-filter.component-gp5skvmz.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-lookup-widget-view.component-ftFXFj6k.mjs +57 -0
- package/fesm2022/acorex-platform-layouts-lookup-widget-view.component-ftFXFj6k.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-map-widget-edit.component-SOQvPhmX.mjs +94 -0
- package/fesm2022/acorex-platform-layouts-map-widget-edit.component-SOQvPhmX.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-map-widget-view.component-1Lj9efbd.mjs +66 -0
- package/fesm2022/acorex-platform-layouts-map-widget-view.component-1Lj9efbd.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-messenger-widget-column.component-W7ZY-W84.mjs +74 -0
- package/fesm2022/acorex-platform-layouts-messenger-widget-column.component-W7ZY-W84.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-messenger-widget-edit.component-dAX8nirB.mjs +139 -0
- package/fesm2022/acorex-platform-layouts-messenger-widget-edit.component-dAX8nirB.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-messenger-widget-view.component-9TJiFdq-.mjs +135 -0
- package/fesm2022/acorex-platform-layouts-messenger-widget-view.component-9TJiFdq-.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-number-widget-edit.component-DDi-o_Zn.mjs +49 -0
- package/fesm2022/acorex-platform-layouts-number-widget-edit.component-DDi-o_Zn.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-number-widget-filter.component-DPGSzdNm.mjs +138 -0
- package/fesm2022/acorex-platform-layouts-number-widget-filter.component-DPGSzdNm.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-number-widget-view.component-hqkAR0LG.mjs +33 -0
- package/fesm2022/acorex-platform-layouts-number-widget-view.component-hqkAR0LG.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-password-widget-column.component-ic1jykZL.mjs +80 -0
- package/fesm2022/acorex-platform-layouts-password-widget-column.component-ic1jykZL.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-password-widget-edit.component-D8xI17yk.mjs +37 -0
- package/fesm2022/acorex-platform-layouts-password-widget-edit.component-D8xI17yk.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-password-widget-view.component-E2vtPKRO.mjs +112 -0
- package/fesm2022/acorex-platform-layouts-password-widget-view.component-E2vtPKRO.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-phone-widget-column.component-s04WZfzv.mjs +94 -0
- package/fesm2022/acorex-platform-layouts-phone-widget-column.component-s04WZfzv.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-phone-widget-edit.component-MKzlZ0_B.mjs +318 -0
- package/fesm2022/acorex-platform-layouts-phone-widget-edit.component-MKzlZ0_B.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-phone-widget-view.component-NEO22XO7.mjs +126 -0
- package/fesm2022/acorex-platform-layouts-phone-widget-view.component-NEO22XO7.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-rich-text-widget-column.component-P0YzXTIB.mjs +72 -0
- package/fesm2022/acorex-platform-layouts-rich-text-widget-column.component-P0YzXTIB.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-rich-text-widget-edit.component-ro2yg7PR.mjs +70 -0
- package/fesm2022/acorex-platform-layouts-rich-text-widget-edit.component-ro2yg7PR.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-rich-text-widget-view.component--Rzxm2a6.mjs +37 -0
- package/fesm2022/acorex-platform-layouts-rich-text-widget-view.component--Rzxm2a6.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-selection-list-widget-column.component-9FTkDGmq.mjs +46 -0
- package/fesm2022/acorex-platform-layouts-selection-list-widget-column.component-9FTkDGmq.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-selection-list-widget-edit.component-FpOQ12Ie.mjs +56 -0
- package/fesm2022/acorex-platform-layouts-selection-list-widget-edit.component-FpOQ12Ie.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-selection-list-widget-filter.component-hGk-ZZ78.mjs +44 -0
- package/fesm2022/acorex-platform-layouts-selection-list-widget-filter.component-hGk-ZZ78.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-selection-list-widget-view.component-s9xq___Y.mjs +48 -0
- package/fesm2022/acorex-platform-layouts-selection-list-widget-view.component-s9xq___Y.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-signature-pad-widget-edit.component-W28Uk9zO.mjs +131 -0
- package/fesm2022/acorex-platform-layouts-signature-pad-widget-edit.component-W28Uk9zO.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-signature-pad-widget-view.component-R40Ml757.mjs +44 -0
- package/fesm2022/acorex-platform-layouts-signature-pad-widget-view.component-R40Ml757.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-string-widget-filter.component-4oZ6BVis.mjs +128 -0
- package/fesm2022/acorex-platform-layouts-string-widget-filter.component-4oZ6BVis.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-text-widget-column.component-qhh6MT79.mjs +50 -0
- package/fesm2022/acorex-platform-layouts-text-widget-column.component-qhh6MT79.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-text-widget-edit.component-TC127Dq8.mjs +165 -0
- package/fesm2022/acorex-platform-layouts-text-widget-edit.component-TC127Dq8.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-text-widget-view.component-65eOj0qR.mjs +69 -0
- package/fesm2022/acorex-platform-layouts-text-widget-view.component-65eOj0qR.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-toggle-widget-column.component-uxOXR-bL.mjs +60 -0
- package/fesm2022/acorex-platform-layouts-toggle-widget-column.component-uxOXR-bL.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-toggle-widget-edit.component-R44L1pgJ.mjs +28 -0
- package/fesm2022/acorex-platform-layouts-toggle-widget-edit.component-R44L1pgJ.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts-toggle-widget-view.component-DTOeAUiy.mjs +52 -0
- package/fesm2022/acorex-platform-layouts-toggle-widget-view.component-DTOeAUiy.mjs.map +1 -0
- package/fesm2022/acorex-platform-layouts.mjs +3732 -0
- package/fesm2022/acorex-platform-layouts.mjs.map +1 -0
- package/fesm2022/acorex-platform-mocks.mjs +332 -0
- package/fesm2022/acorex-platform-mocks.mjs.map +1 -0
- package/fesm2022/acorex-platform-native.mjs +154 -0
- package/fesm2022/acorex-platform-native.mjs.map +1 -0
- package/fesm2022/acorex-platform-schema.mjs +572 -0
- package/fesm2022/acorex-platform-schema.mjs.map +1 -0
- package/fesm2022/acorex-platform-workflow.mjs +350 -0
- package/fesm2022/acorex-platform-workflow.mjs.map +1 -0
- package/fesm2022/acorex-platform.mjs +6 -0
- package/fesm2022/acorex-platform.mjs.map +1 -0
- package/index.d.ts +2 -0
- package/layouts/README.md +3 -0
- package/layouts/index.d.ts +4 -0
- package/layouts/lib/admin/admin-child-layout/admin-child-features-list.component.d.ts +22 -0
- package/layouts/lib/admin/admin-child-layout/admin-child-layout.component.d.ts +21 -0
- package/layouts/lib/admin/admin-child-layout/admin-child-layout.module.d.ts +17 -0
- package/layouts/lib/admin/admin-child-layout/index.d.ts +3 -0
- package/layouts/lib/admin/admin-root-layout/admin-root-layout.component.d.ts +30 -0
- package/layouts/lib/admin/admin-root-layout/admin-root-layout.module.d.ts +25 -0
- package/layouts/lib/admin/admin-root-layout/components/admin-footer/admin-footer.component.d.ts +5 -0
- package/layouts/lib/admin/admin-root-layout/components/admin-header/admin-header.component.d.ts +10 -0
- package/layouts/lib/admin/admin-root-layout/index.d.ts +4 -0
- package/layouts/lib/admin/admin.module.d.ts +11 -0
- package/layouts/lib/admin/admin.routes.d.ts +2 -0
- package/layouts/lib/admin/custom-reuse.strategy.d.ts +8 -0
- package/layouts/lib/admin/entity-layout/entity-create-view/entity-create-view.component.d.ts +20 -0
- package/layouts/lib/admin/entity-layout/entity-create-view/entity-create-view.config.d.ts +54 -0
- package/layouts/lib/admin/entity-layout/entity-details-view/detail-view.config.d.ts +48 -0
- package/layouts/lib/admin/entity-layout/entity-details-view/entity-details-view.component.d.ts +41 -0
- package/layouts/lib/admin/entity-layout/entity-details-view/index.d.ts +2 -0
- package/layouts/lib/admin/entity-layout/entity-list-view/components/entity-custom-view/entity-custom-view.component.d.ts +47 -0
- package/layouts/lib/admin/entity-layout/entity-list-view/components/index.d.ts +5 -0
- package/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-columns/list-view-option-columns.component.d.ts +22 -0
- package/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-conditions/list-view-option-conditions.component.d.ts +35 -0
- package/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-conditions/list-view-option-filter-operator.component.d.ts +18 -0
- package/layouts/lib/admin/entity-layout/entity-list-view/components/list-view-option-sorting/list-view-option-sorting.component.d.ts +22 -0
- package/layouts/lib/admin/entity-layout/entity-list-view/entity-list-view.component.d.ts +63 -0
- package/layouts/lib/admin/entity-layout/entity-list-view/index.d.ts +4 -0
- package/layouts/lib/admin/entity-layout/entity-list-view/list-view.config.d.ts +110 -0
- package/layouts/lib/admin/entity-layout/entity-list-view/list-view.module.d.ts +41 -0
- package/layouts/lib/admin/entity-layout/entity-modify-view/entity-modify-view.component.d.ts +25 -0
- package/layouts/lib/admin/entity-layout/entity-modify-view/entity-modify-view.config.d.ts +31 -0
- package/layouts/lib/admin/entity-layout/entity-quick-view/entity-quick-view.component.d.ts +22 -0
- package/layouts/lib/admin/entity-layout/entity-quick-view/index.d.ts +1 -0
- package/layouts/lib/admin/entity-layout/index.d.ts +3 -0
- package/layouts/lib/admin/entity-layout/store/entity.actions.d.ts +48 -0
- package/layouts/lib/admin/entity-layout/store/entity.effects.d.ts +22 -0
- package/layouts/lib/admin/entity-layout/workflows/create-entity.workflow.d.ts +28 -0
- package/layouts/lib/admin/entity-layout/workflows/delete-entity.workflow.d.ts +33 -0
- package/layouts/lib/admin/entity-layout/workflows/modify-entity.workflow.d.ts +31 -0
- package/layouts/lib/admin/entity.resolver.d.ts +4 -0
- package/layouts/lib/admin/index.d.ts +7 -0
- package/layouts/lib/admin/store/admin-layout.actions.d.ts +8 -0
- package/layouts/lib/admin/store/admin-layout.effects.d.ts +10 -0
- package/layouts/lib/admin/store/admin-layout.reducers.d.ts +24 -0
- package/layouts/lib/admin/store/admin-layout.selectors.d.ts +5 -0
- package/layouts/lib/admin/store/admin-layout.state.d.ts +14 -0
- package/layouts/lib/admin/store/index.d.ts +5 -0
- package/layouts/lib/layout.module.d.ts +9 -0
- package/layouts/lib/layout.routes.d.ts +2 -0
- package/layouts/lib/shared/components/content-view/content-view.page.d.ts +23 -0
- package/layouts/lib/shared/components/content-view/content-view.type.d.ts +16 -0
- package/layouts/lib/shared/components/error-401/error-401.component.d.ts +13 -0
- package/layouts/lib/shared/components/error-404/error-404.component.d.ts +8 -0
- package/layouts/lib/shared/components/error-offline/error-offline.component.d.ts +9 -0
- package/layouts/lib/shared/components/index.d.ts +8 -0
- package/layouts/lib/shared/components/logo/logo.component.d.ts +8 -0
- package/layouts/lib/shared/components/slots/footer-text-slot.component.d.ts +6 -0
- package/layouts/lib/shared/components/slots/navbar-slot.component.d.ts +10 -0
- package/layouts/lib/shared/components/slots/theme-slot.component.d.ts +8 -0
- package/layouts/lib/shared/entity/entity-registery.service.d.ts +34 -0
- package/layouts/lib/shared/entity/entity.class.d.ts +145 -0
- package/layouts/lib/shared/entity/entity.loader.d.ts +9 -0
- package/layouts/lib/shared/entity/index.d.ts +3 -0
- package/layouts/lib/shared/index.d.ts +4 -0
- package/layouts/lib/shared/services/index.d.ts +1 -0
- package/layouts/lib/shared/services/layout.service.d.ts +19 -0
- package/layouts/lib/shared/workflows/common.workflow.d.ts +52 -0
- package/layouts/lib/shared/workflows/error-handler.d.ts +8 -0
- package/layouts/lib/shared/workflows/index.d.ts +2 -0
- package/layouts/lib/widgets/avatar/avatar-widget-edit.component.d.ts +10 -0
- package/layouts/lib/widgets/avatar/avatar-widget-view.component.d.ts +8 -0
- package/layouts/lib/widgets/checkbox/checkbox-widget-column.component.d.ts +11 -0
- package/layouts/lib/widgets/checkbox/checkbox-widget-edit.component.d.ts +6 -0
- package/layouts/lib/widgets/checkbox/checkbox-widget-view.component.d.ts +11 -0
- package/layouts/lib/widgets/common-widget-filter/boolean-widget-filter.component.d.ts +17 -0
- package/layouts/lib/widgets/common-widget-filter/number-widget-filter.component.d.ts +11 -0
- package/layouts/lib/widgets/common-widget-filter/string-widget-filter.component.d.ts +11 -0
- package/layouts/lib/widgets/common-widgets.module.d.ts +32 -0
- package/layouts/lib/widgets/dateTime/dateTime-widget-column.component.d.ts +11 -0
- package/layouts/lib/widgets/dateTime/dateTime-widget-edit.component.d.ts +24 -0
- package/layouts/lib/widgets/dateTime/dateTime-widget-filter.component.d.ts +16 -0
- package/layouts/lib/widgets/dateTime/dateTime-widget-view.component.d.ts +11 -0
- package/layouts/lib/widgets/email/email-widget-column.component.d.ts +16 -0
- package/layouts/lib/widgets/email/email-widget-edit.component.d.ts +28 -0
- package/layouts/lib/widgets/email/email-widget-view.component.d.ts +16 -0
- package/layouts/lib/widgets/file/file-widget-column.component.d.ts +8 -0
- package/layouts/lib/widgets/file/file-widget-edit.component.d.ts +17 -0
- package/layouts/lib/widgets/file/file-widget-filter.component.d.ts +6 -0
- package/layouts/lib/widgets/file/file-widget-view.component.d.ts +17 -0
- package/layouts/lib/widgets/gallery/gallery-widget-edit.component.d.ts +15 -0
- package/layouts/lib/widgets/gallery/gallery-widget-filter.component.d.ts +6 -0
- package/layouts/lib/widgets/gallery/gallery-widget-types.d.ts +10 -0
- package/layouts/lib/widgets/gallery/gallery-widget-view.component.d.ts +16 -0
- package/layouts/lib/widgets/index.d.ts +1 -0
- package/layouts/lib/widgets/lookup/lookup-widget-column.component.d.ts +16 -0
- package/layouts/lib/widgets/lookup/lookup-widget-edit.component.d.ts +15 -0
- package/layouts/lib/widgets/lookup/lookup-widget-filter.component.d.ts +16 -0
- package/layouts/lib/widgets/lookup/lookup-widget-view.component.d.ts +17 -0
- package/layouts/lib/widgets/map/map-widget-edit.component.d.ts +15 -0
- package/layouts/lib/widgets/map/map-widget-view.component.d.ts +17 -0
- package/layouts/lib/widgets/messenger/messenger-widget-column.component.d.ts +15 -0
- package/layouts/lib/widgets/messenger/messenger-widget-edit.component.d.ts +14 -0
- package/layouts/lib/widgets/messenger/messenger-widget-view.component.d.ts +17 -0
- package/layouts/lib/widgets/number/number-widget-edit.component.d.ts +7 -0
- package/layouts/lib/widgets/number/number-widget-view.component.d.ts +8 -0
- package/layouts/lib/widgets/password/change-password.component.d.ts +16 -0
- package/layouts/lib/widgets/password/password-widget-column.component.d.ts +14 -0
- package/layouts/lib/widgets/password/password-widget-edit.component.d.ts +6 -0
- package/layouts/lib/widgets/password/password-widget-view.component.d.ts +18 -0
- package/layouts/lib/widgets/phone/phone-widget-column.component.d.ts +15 -0
- package/layouts/lib/widgets/phone/phone-widget-edit.component.d.ts +29 -0
- package/layouts/lib/widgets/phone/phone-widget-view.component.d.ts +18 -0
- package/layouts/lib/widgets/rich-text/rich-text-widget-column.component.d.ts +11 -0
- package/layouts/lib/widgets/rich-text/rich-text-widget-edit.component.d.ts +33 -0
- package/layouts/lib/widgets/rich-text/rich-text-widget-view.component.d.ts +10 -0
- package/layouts/lib/widgets/selection-list/selection-list-widget-column.component.d.ts +16 -0
- package/layouts/lib/widgets/selection-list/selection-list-widget-edit.component.d.ts +10 -0
- package/layouts/lib/widgets/selection-list/selection-list-widget-filter.component.d.ts +9 -0
- package/layouts/lib/widgets/selection-list/selection-list-widget-view.component.d.ts +15 -0
- package/layouts/lib/widgets/signature-pad/signature-pad-widget-edit.component.d.ts +19 -0
- package/layouts/lib/widgets/signature-pad/signature-pad-widget-view.component.d.ts +8 -0
- package/layouts/lib/widgets/text/largetext-widget-edit.component.d.ts +6 -0
- package/layouts/lib/widgets/text/text-widget-column.component.d.ts +11 -0
- package/layouts/lib/widgets/text/text-widget-edit.component.d.ts +23 -0
- package/layouts/lib/widgets/text/text-widget-view.component.d.ts +11 -0
- package/layouts/lib/widgets/toggle/toggle-widget-column.component.d.ts +11 -0
- package/layouts/lib/widgets/toggle/toggle-widget-edit.component.d.ts +6 -0
- package/layouts/lib/widgets/toggle/toggle-widget-view.component.d.ts +11 -0
- package/mocks/README.md +3 -0
- package/mocks/index.d.ts +3 -0
- package/mocks/lib/mocks.module.d.ts +7 -0
- package/mocks/lib/services/mocker.service.d.ts +29 -0
- package/mocks/lib/storage/storage.mock.service.d.ts +25 -0
- package/native/README.md +4 -0
- package/native/index.d.ts +2 -0
- package/native/lib/native.module.d.ts +6 -0
- package/native/lib/native.service.d.ts +26 -0
- package/package.json +67 -0
- package/schema/README.md +3 -0
- package/schema/index.d.ts +11 -0
- package/schema/lib/component-loader.d.ts +24 -0
- package/schema/lib/formats.d.ts +8 -0
- package/schema/lib/operators.d.ts +22 -0
- package/schema/lib/schema-registery.service.d.ts +20 -0
- package/schema/lib/schema.d.ts +21 -0
- package/schema/lib/schema.module.d.ts +12 -0
- package/schema/lib/widget/widget-base.d.ts +43 -0
- package/schema/lib/widget/widget-column-renderer.d.ts +27 -0
- package/schema/lib/widget/widget-filter-renderer.d.ts +30 -0
- package/schema/lib/widget/widget-renderer.d.ts +26 -0
- package/schema/lib/widget/widget-token.d.ts +15 -0
- package/workflow/README.md +4 -0
- package/workflow/index.d.ts +6 -0
- package/workflow/lib/errors.types.d.ts +4 -0
- package/workflow/lib/workflow-event-dispatcher.service.d.ts +10 -0
- package/workflow/lib/workflow-registery.service.d.ts +17 -0
- package/workflow/lib/workflow.module.d.ts +25 -0
- package/workflow/lib/workflow.service.d.ts +23 -0
- package/workflow/lib/workflow.types.d.ts +61 -0
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
import * as i4 from '@acorex/components/button';
|
|
2
|
+
import { AXButtonModule } from '@acorex/components/button';
|
|
3
|
+
import * as i3 from '@acorex/components/decorators';
|
|
4
|
+
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
5
|
+
import * as i6 from '@acorex/components/select-box';
|
|
6
|
+
import { AXSelectBoxModule } from '@acorex/components/select-box';
|
|
7
|
+
import * as i4$1 from '@acorex/components/text-box';
|
|
8
|
+
import { AXTextBoxModule } from '@acorex/components/text-box';
|
|
9
|
+
import { AXPlatform } from '@acorex/core/platform';
|
|
10
|
+
import { MockDataService } from '@acorex/platform/mocks';
|
|
11
|
+
import { AXPWidgetEditBase } from '@acorex/platform/schema';
|
|
12
|
+
import * as i1 from '@angular/common';
|
|
13
|
+
import { CommonModule } from '@angular/common';
|
|
14
|
+
import * as i0 from '@angular/core';
|
|
15
|
+
import { inject, signal, effect, Component, ChangeDetectionStrategy } from '@angular/core';
|
|
16
|
+
import * as i2 from '@angular/forms';
|
|
17
|
+
import { FormsModule } from '@angular/forms';
|
|
18
|
+
|
|
19
|
+
// import { AXButtonModule } from '@acorex/components/button';
|
|
20
|
+
// import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
21
|
+
// import { AXSelectBoxModule } from '@acorex/components/select-box';
|
|
22
|
+
// import { AXTextBoxModule } from '@acorex/components/text-box';
|
|
23
|
+
// import { AXPlatform } from '@acorex/core/platform';
|
|
24
|
+
// import { AXPWidgetEditBase } from '@acorex/platform/schema';
|
|
25
|
+
// import { CommonModule } from '@angular/common';
|
|
26
|
+
// import { ChangeDetectionStrategy, Component, inject } from '@angular/core';
|
|
27
|
+
// import { FormsModule } from '@angular/forms';
|
|
28
|
+
// @Component({
|
|
29
|
+
// template: `
|
|
30
|
+
// <div class="ax-grid ax-grid-cols-12 ax-gap-4">
|
|
31
|
+
// <ng-container *ngIf="multiple">
|
|
32
|
+
// @for(item of value;track item?.value) {
|
|
33
|
+
// <ax-text-box [(ngModel)]="item.value" type="text" class="ax-col-start-1 ax-col-end-13 lg:ax-col-end-8">
|
|
34
|
+
// </ax-text-box>
|
|
35
|
+
// <ax-select-box
|
|
36
|
+
// [dataSource]="phoneLabels"
|
|
37
|
+
// [(ngModel)]="item.label"
|
|
38
|
+
// class="ax-col-start-1 ax-col-end-11 lg:ax-col-start-8 lg:ax-col-end-12"
|
|
39
|
+
// >
|
|
40
|
+
// </ax-select-box>
|
|
41
|
+
// <ax-button
|
|
42
|
+
// look="twotone"
|
|
43
|
+
// color="danger"
|
|
44
|
+
// (onClick)="handleRemoveItem(item)"
|
|
45
|
+
// class="ax-col-start-11 ax-col-end-13 lg:ax-col-start-12 lg:ax-col-end-13 ax-justify-self-end"
|
|
46
|
+
// >
|
|
47
|
+
// <ax-icon icon="fa-regular fa-xmark"></ax-icon>
|
|
48
|
+
// </ax-button>
|
|
49
|
+
// }
|
|
50
|
+
// </ng-container>
|
|
51
|
+
// <ng-container *ngIf="!multiple">
|
|
52
|
+
// <ax-text-box [(ngModel)]="value[0].value" type="text" class="ax-col-start-1 ax-col-end-13 lg:ax-col-end-8">
|
|
53
|
+
// </ax-text-box>
|
|
54
|
+
// <ax-select-box
|
|
55
|
+
// [dataSource]="phoneLabels"
|
|
56
|
+
// [(ngModel)]="value[0].label"
|
|
57
|
+
// class="ax-col-start-1 ax-col-end-11 lg:ax-col-start-8 lg:ax-col-end-13"
|
|
58
|
+
// >
|
|
59
|
+
// </ax-select-box>
|
|
60
|
+
// </ng-container>
|
|
61
|
+
// <ax-button
|
|
62
|
+
// *ngIf="multiple"
|
|
63
|
+
// [text]="value.length == 0 ? 'Add New' : 'Add Another'"
|
|
64
|
+
// look="twotone"
|
|
65
|
+
// (onClick)="handleAddItem()"
|
|
66
|
+
// class="ax-col-start-8 lg:ax-col-start-10 2xl:ax-col-start-10 ax-col-end-13"
|
|
67
|
+
// >
|
|
68
|
+
// <ax-prefix> <ax-icon class="fa-solid fa-add"></ax-icon> </ax-prefix
|
|
69
|
+
// ></ax-button>
|
|
70
|
+
// </div>
|
|
71
|
+
// `,
|
|
72
|
+
// standalone: true,
|
|
73
|
+
// changeDetection: ChangeDetectionStrategy.OnPush,
|
|
74
|
+
// imports: [CommonModule, AXButtonModule, FormsModule, AXTextBoxModule, AXDecoratorModule, AXSelectBoxModule],
|
|
75
|
+
// inputs: ['multiple'],
|
|
76
|
+
// })
|
|
77
|
+
// export class AXPPhoneWidgetEditComponent extends AXPWidgetEditBase<
|
|
78
|
+
// { value?: string | null; label?: string | undefined }[]
|
|
79
|
+
// > {
|
|
80
|
+
// protected platform = inject(AXPlatform);
|
|
81
|
+
// protected multiple!: boolean;
|
|
82
|
+
// phoneLabels: string[] = ['Mobile', 'Home', 'Work', 'Other'];
|
|
83
|
+
// protected handleAddItem() {
|
|
84
|
+
// this.value.push({ label: 'Mobile', value: undefined });
|
|
85
|
+
// }
|
|
86
|
+
// protected handleRemoveItem(item: any) {
|
|
87
|
+
// this.value = this.value.filter((c) => c != item);
|
|
88
|
+
// }
|
|
89
|
+
// ngOnInit(): void {
|
|
90
|
+
// if (!this.value || this.value?.length == 0) {
|
|
91
|
+
// this.value = [
|
|
92
|
+
// {
|
|
93
|
+
// label: 'Mobile',
|
|
94
|
+
// value: '',
|
|
95
|
+
// },
|
|
96
|
+
// ];
|
|
97
|
+
// }
|
|
98
|
+
// }
|
|
99
|
+
// }
|
|
100
|
+
class AXPPhoneWidgetEditComponent extends AXPWidgetEditBase {
|
|
101
|
+
constructor() {
|
|
102
|
+
super(...arguments);
|
|
103
|
+
this.mockerService = inject(MockDataService);
|
|
104
|
+
this.platform = inject(AXPlatform);
|
|
105
|
+
this.convertedValue = signal([]);
|
|
106
|
+
this.phoneLabels = ['Mobile', 'Home', 'Work', 'Other'];
|
|
107
|
+
this.changeValueEffect = effect(() => {
|
|
108
|
+
if (this.multiple) {
|
|
109
|
+
if (this.hasLabel)
|
|
110
|
+
this.value = this.convertedValue().map((i) => ({ value: i.value, label: i.label }));
|
|
111
|
+
else
|
|
112
|
+
this.value = this.convertedValue().map((i) => i.value);
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
if (this.hasLabel)
|
|
116
|
+
this.value = this.convertedValue().map((i) => ({ value: i.value, label: i.label }))[0];
|
|
117
|
+
else
|
|
118
|
+
this.value = this.convertedValue().map((i) => i.value)[0];
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
handlePhoneChange(e, id) {
|
|
123
|
+
if (e.isUserInteraction) {
|
|
124
|
+
this.convertedValue.update((prev) => prev.map((i) => (i.id === id ? { ...i, value: e.value } : i)));
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
handleLabelChange(e, id) {
|
|
128
|
+
if (e.isUserInteraction) {
|
|
129
|
+
this.convertedValue.update((prev) => prev.map((i) => (i.id === id ? { ...i, label: e.value } : i)));
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
handleAddItem() {
|
|
133
|
+
// this.value.push({ label: 'Primary', value: undefined });
|
|
134
|
+
this.convertedValue.update((prev) => [
|
|
135
|
+
...prev,
|
|
136
|
+
{ label: this.hasLabel ? 'Primary' : '', value: '', id: this.mockerService.uid() },
|
|
137
|
+
]);
|
|
138
|
+
}
|
|
139
|
+
handleRemoveItem(item) {
|
|
140
|
+
this.convertedValue.update((prev) => prev.filter((c) => c != item));
|
|
141
|
+
}
|
|
142
|
+
ngOnInit() {
|
|
143
|
+
// Initialize with an empty array if there's no value or it's empty
|
|
144
|
+
if (!this.value || this.value.length === 0) {
|
|
145
|
+
this.initializeEmptyValue();
|
|
146
|
+
return;
|
|
147
|
+
}
|
|
148
|
+
// Process the input based on `multiple` and `hasLabel`
|
|
149
|
+
if (this.multiple) {
|
|
150
|
+
this.handleMultipleValue();
|
|
151
|
+
}
|
|
152
|
+
else {
|
|
153
|
+
this.handleSingleValue();
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
initializeEmptyValue() {
|
|
157
|
+
this.convertedValue.set([{ value: '', label: '', id: this.mockerService.uid() }]);
|
|
158
|
+
}
|
|
159
|
+
handleMultipleValue() {
|
|
160
|
+
const newValue = this.value.map((item) => ({
|
|
161
|
+
value: this.hasLabel ? item.value : item,
|
|
162
|
+
label: this.hasLabel ? item.label : null,
|
|
163
|
+
id: this.mockerService.uid(),
|
|
164
|
+
}));
|
|
165
|
+
this.convertedValue.set(newValue);
|
|
166
|
+
}
|
|
167
|
+
handleSingleValue() {
|
|
168
|
+
const newValue = [
|
|
169
|
+
{
|
|
170
|
+
value: this.hasLabel ? this.value.value : this.value,
|
|
171
|
+
label: this.hasLabel ? this.value.label : null,
|
|
172
|
+
id: this.mockerService.uid(),
|
|
173
|
+
},
|
|
174
|
+
];
|
|
175
|
+
this.convertedValue.set(newValue);
|
|
176
|
+
}
|
|
177
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AXPPhoneWidgetEditComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
178
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: AXPPhoneWidgetEditComponent, isStandalone: true, selector: "ng-component", inputs: { multiple: "multiple", hasLabel: "hasLabel" }, usesInheritance: true, ngImport: i0, template: `
|
|
179
|
+
<div class="ax-grid ax-grid-cols-12 ax-gap-4">
|
|
180
|
+
<ng-container *ngIf="multiple">
|
|
181
|
+
@for(item of convertedValue();track item?.value) {
|
|
182
|
+
<ax-text-box
|
|
183
|
+
[(ngModel)]="item.value"
|
|
184
|
+
(onValueChanged)="handlePhoneChange($event, item.id)"
|
|
185
|
+
type="text"
|
|
186
|
+
class="ax-col-start-1 ax-col-end-13 lg:ax-col-end-8"
|
|
187
|
+
[class.lg:!ax-col-end-12]="!hasLabel"
|
|
188
|
+
>
|
|
189
|
+
</ax-text-box>
|
|
190
|
+
@if(hasLabel){
|
|
191
|
+
<ax-select-box
|
|
192
|
+
[dataSource]="phoneLabels"
|
|
193
|
+
[(ngModel)]="item.label"
|
|
194
|
+
(onValueChanged)="handleLabelChange($event, item.id)"
|
|
195
|
+
class="ax-col-start-1 ax-col-end-11 lg:ax-col-start-8 lg:ax-col-end-12"
|
|
196
|
+
>
|
|
197
|
+
</ax-select-box>
|
|
198
|
+
}
|
|
199
|
+
<ax-button
|
|
200
|
+
look="twotone"
|
|
201
|
+
color="danger"
|
|
202
|
+
(onClick)="handleRemoveItem(item)"
|
|
203
|
+
class="ax-col-start-11 ax-col-end-13 lg:ax-col-start-12 lg:ax-col-end-13 ax-justify-self-end"
|
|
204
|
+
>
|
|
205
|
+
<ax-icon icon="fa-regular fa-xmark"></ax-icon>
|
|
206
|
+
</ax-button>
|
|
207
|
+
}
|
|
208
|
+
</ng-container>
|
|
209
|
+
<ng-container *ngIf="!multiple">
|
|
210
|
+
<ax-text-box
|
|
211
|
+
[(ngModel)]="convertedValue()[0].value"
|
|
212
|
+
(onValueChanged)="handlePhoneChange($event, convertedValue()[0].id)"
|
|
213
|
+
type="text"
|
|
214
|
+
class="ax-col-start-1 ax-col-end-13 lg:ax-col-end-8"
|
|
215
|
+
[class.lg:!ax-col-end-13]="!hasLabel"
|
|
216
|
+
>
|
|
217
|
+
</ax-text-box>
|
|
218
|
+
@if(hasLabel){
|
|
219
|
+
<ax-select-box
|
|
220
|
+
[dataSource]="phoneLabels"
|
|
221
|
+
[(ngModel)]="convertedValue()[0].label"
|
|
222
|
+
(onValueChanged)="handleLabelChange($event, convertedValue()[0].id)"
|
|
223
|
+
class="ax-col-start-1 ax-col-end-11 lg:ax-col-start-8 lg:ax-col-end-13"
|
|
224
|
+
>
|
|
225
|
+
</ax-select-box>
|
|
226
|
+
}
|
|
227
|
+
</ng-container>
|
|
228
|
+
|
|
229
|
+
<ax-button
|
|
230
|
+
*ngIf="multiple"
|
|
231
|
+
[text]="convertedValue().length == 0 ? 'Add New' : 'Add Another'"
|
|
232
|
+
look="twotone"
|
|
233
|
+
(onClick)="handleAddItem()"
|
|
234
|
+
class="ax-col-start-8 lg:ax-col-start-10 2xl:ax-col-start-10 ax-col-end-13"
|
|
235
|
+
>
|
|
236
|
+
<ax-prefix>
|
|
237
|
+
<ax-icon class="fa-solid fa-add"></ax-icon>
|
|
238
|
+
</ax-prefix>
|
|
239
|
+
</ax-button>
|
|
240
|
+
</div>
|
|
241
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i4.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange"] }, { 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: AXTextBoxModule }, { kind: "component", type: i4$1.AXTextBoxComponent, selector: "ax-text-box", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "id", "placeholder", "maxLength", "allowNull", "type", "autoComplete", "look", "mask-options", "class"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title , ax-sub-title, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXSelectBoxModule }, { kind: "component", type: i6.AXSelectBoxComponent, selector: "ax-select-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "minValue", "maxValue", "value", "state", "name", "id", "type", "look", "multiple", "valueField", "textField", "dataSource", "itemTemplate", "emptyTemplate", "loadingTemplate"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
242
|
+
}
|
|
243
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AXPPhoneWidgetEditComponent, decorators: [{
|
|
244
|
+
type: Component,
|
|
245
|
+
args: [{
|
|
246
|
+
template: `
|
|
247
|
+
<div class="ax-grid ax-grid-cols-12 ax-gap-4">
|
|
248
|
+
<ng-container *ngIf="multiple">
|
|
249
|
+
@for(item of convertedValue();track item?.value) {
|
|
250
|
+
<ax-text-box
|
|
251
|
+
[(ngModel)]="item.value"
|
|
252
|
+
(onValueChanged)="handlePhoneChange($event, item.id)"
|
|
253
|
+
type="text"
|
|
254
|
+
class="ax-col-start-1 ax-col-end-13 lg:ax-col-end-8"
|
|
255
|
+
[class.lg:!ax-col-end-12]="!hasLabel"
|
|
256
|
+
>
|
|
257
|
+
</ax-text-box>
|
|
258
|
+
@if(hasLabel){
|
|
259
|
+
<ax-select-box
|
|
260
|
+
[dataSource]="phoneLabels"
|
|
261
|
+
[(ngModel)]="item.label"
|
|
262
|
+
(onValueChanged)="handleLabelChange($event, item.id)"
|
|
263
|
+
class="ax-col-start-1 ax-col-end-11 lg:ax-col-start-8 lg:ax-col-end-12"
|
|
264
|
+
>
|
|
265
|
+
</ax-select-box>
|
|
266
|
+
}
|
|
267
|
+
<ax-button
|
|
268
|
+
look="twotone"
|
|
269
|
+
color="danger"
|
|
270
|
+
(onClick)="handleRemoveItem(item)"
|
|
271
|
+
class="ax-col-start-11 ax-col-end-13 lg:ax-col-start-12 lg:ax-col-end-13 ax-justify-self-end"
|
|
272
|
+
>
|
|
273
|
+
<ax-icon icon="fa-regular fa-xmark"></ax-icon>
|
|
274
|
+
</ax-button>
|
|
275
|
+
}
|
|
276
|
+
</ng-container>
|
|
277
|
+
<ng-container *ngIf="!multiple">
|
|
278
|
+
<ax-text-box
|
|
279
|
+
[(ngModel)]="convertedValue()[0].value"
|
|
280
|
+
(onValueChanged)="handlePhoneChange($event, convertedValue()[0].id)"
|
|
281
|
+
type="text"
|
|
282
|
+
class="ax-col-start-1 ax-col-end-13 lg:ax-col-end-8"
|
|
283
|
+
[class.lg:!ax-col-end-13]="!hasLabel"
|
|
284
|
+
>
|
|
285
|
+
</ax-text-box>
|
|
286
|
+
@if(hasLabel){
|
|
287
|
+
<ax-select-box
|
|
288
|
+
[dataSource]="phoneLabels"
|
|
289
|
+
[(ngModel)]="convertedValue()[0].label"
|
|
290
|
+
(onValueChanged)="handleLabelChange($event, convertedValue()[0].id)"
|
|
291
|
+
class="ax-col-start-1 ax-col-end-11 lg:ax-col-start-8 lg:ax-col-end-13"
|
|
292
|
+
>
|
|
293
|
+
</ax-select-box>
|
|
294
|
+
}
|
|
295
|
+
</ng-container>
|
|
296
|
+
|
|
297
|
+
<ax-button
|
|
298
|
+
*ngIf="multiple"
|
|
299
|
+
[text]="convertedValue().length == 0 ? 'Add New' : 'Add Another'"
|
|
300
|
+
look="twotone"
|
|
301
|
+
(onClick)="handleAddItem()"
|
|
302
|
+
class="ax-col-start-8 lg:ax-col-start-10 2xl:ax-col-start-10 ax-col-end-13"
|
|
303
|
+
>
|
|
304
|
+
<ax-prefix>
|
|
305
|
+
<ax-icon class="fa-solid fa-add"></ax-icon>
|
|
306
|
+
</ax-prefix>
|
|
307
|
+
</ax-button>
|
|
308
|
+
</div>
|
|
309
|
+
`,
|
|
310
|
+
standalone: true,
|
|
311
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
312
|
+
imports: [CommonModule, AXButtonModule, FormsModule, AXTextBoxModule, AXDecoratorModule, AXSelectBoxModule],
|
|
313
|
+
inputs: ['multiple', 'hasLabel'],
|
|
314
|
+
}]
|
|
315
|
+
}] });
|
|
316
|
+
|
|
317
|
+
export { AXPPhoneWidgetEditComponent };
|
|
318
|
+
//# sourceMappingURL=acorex-platform-layouts-phone-widget-edit.component-MKzlZ0_B.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-layouts-phone-widget-edit.component-MKzlZ0_B.mjs","sources":["../../../../libs/platform/layouts/src/lib/widgets/phone/phone-widget-edit.component.ts"],"sourcesContent":["// import { AXButtonModule } from '@acorex/components/button';\n// import { AXDecoratorModule } from '@acorex/components/decorators';\n// import { AXSelectBoxModule } from '@acorex/components/select-box';\n// import { AXTextBoxModule } from '@acorex/components/text-box';\n// import { AXPlatform } from '@acorex/core/platform';\n// import { AXPWidgetEditBase } from '@acorex/platform/schema';\n// import { CommonModule } from '@angular/common';\n// import { ChangeDetectionStrategy, Component, inject } from '@angular/core';\n// import { FormsModule } from '@angular/forms';\n\n// @Component({\n// template: `\n// <div class=\"ax-grid ax-grid-cols-12 ax-gap-4\">\n// <ng-container *ngIf=\"multiple\">\n// @for(item of value;track item?.value) {\n// <ax-text-box [(ngModel)]=\"item.value\" type=\"text\" class=\"ax-col-start-1 ax-col-end-13 lg:ax-col-end-8\">\n// </ax-text-box>\n// <ax-select-box\n// [dataSource]=\"phoneLabels\"\n// [(ngModel)]=\"item.label\"\n// class=\"ax-col-start-1 ax-col-end-11 lg:ax-col-start-8 lg:ax-col-end-12\"\n// >\n// </ax-select-box>\n// <ax-button\n// look=\"twotone\"\n// color=\"danger\"\n// (onClick)=\"handleRemoveItem(item)\"\n// class=\"ax-col-start-11 ax-col-end-13 lg:ax-col-start-12 lg:ax-col-end-13 ax-justify-self-end\"\n// >\n// <ax-icon icon=\"fa-regular fa-xmark\"></ax-icon>\n// </ax-button>\n// }\n// </ng-container>\n// <ng-container *ngIf=\"!multiple\">\n// <ax-text-box [(ngModel)]=\"value[0].value\" type=\"text\" class=\"ax-col-start-1 ax-col-end-13 lg:ax-col-end-8\">\n// </ax-text-box>\n// <ax-select-box\n// [dataSource]=\"phoneLabels\"\n// [(ngModel)]=\"value[0].label\"\n// class=\"ax-col-start-1 ax-col-end-11 lg:ax-col-start-8 lg:ax-col-end-13\"\n// >\n// </ax-select-box>\n// </ng-container>\n// <ax-button\n// *ngIf=\"multiple\"\n// [text]=\"value.length == 0 ? 'Add New' : 'Add Another'\"\n// look=\"twotone\"\n// (onClick)=\"handleAddItem()\"\n// class=\"ax-col-start-8 lg:ax-col-start-10 2xl:ax-col-start-10 ax-col-end-13\"\n// >\n// <ax-prefix> <ax-icon class=\"fa-solid fa-add\"></ax-icon> </ax-prefix\n// ></ax-button>\n// </div>\n// `,\n// standalone: true,\n// changeDetection: ChangeDetectionStrategy.OnPush,\n// imports: [CommonModule, AXButtonModule, FormsModule, AXTextBoxModule, AXDecoratorModule, AXSelectBoxModule],\n// inputs: ['multiple'],\n// })\n// export class AXPPhoneWidgetEditComponent extends AXPWidgetEditBase<\n// { value?: string | null; label?: string | undefined }[]\n// > {\n// protected platform = inject(AXPlatform);\n// protected multiple!: boolean;\n\n// phoneLabels: string[] = ['Mobile', 'Home', 'Work', 'Other'];\n\n// protected handleAddItem() {\n// this.value.push({ label: 'Mobile', value: undefined });\n// }\n\n// protected handleRemoveItem(item: any) {\n// this.value = this.value.filter((c) => c != item);\n// }\n\n// ngOnInit(): void {\n// if (!this.value || this.value?.length == 0) {\n// this.value = [\n// {\n// label: 'Mobile',\n// value: '',\n// },\n// ];\n// }\n// }\n// }\n\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXValueChangedEvent } from '@acorex/components/common';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXSelectBoxModule } from '@acorex/components/select-box';\nimport { AXTextBoxModule } from '@acorex/components/text-box';\nimport { AXPlatform } from '@acorex/core/platform';\nimport { MockDataService } from '@acorex/platform/mocks';\nimport { AXPWidgetEditBase } from '@acorex/platform/schema';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, WritableSignal, effect, inject, signal } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n@Component({\n template: `\n <div class=\"ax-grid ax-grid-cols-12 ax-gap-4\">\n <ng-container *ngIf=\"multiple\">\n @for(item of convertedValue();track item?.value) {\n <ax-text-box\n [(ngModel)]=\"item.value\"\n (onValueChanged)=\"handlePhoneChange($event, item.id)\"\n type=\"text\"\n class=\"ax-col-start-1 ax-col-end-13 lg:ax-col-end-8\"\n [class.lg:!ax-col-end-12]=\"!hasLabel\"\n >\n </ax-text-box>\n @if(hasLabel){\n <ax-select-box\n [dataSource]=\"phoneLabels\"\n [(ngModel)]=\"item.label\"\n (onValueChanged)=\"handleLabelChange($event, item.id)\"\n class=\"ax-col-start-1 ax-col-end-11 lg:ax-col-start-8 lg:ax-col-end-12\"\n >\n </ax-select-box>\n }\n <ax-button\n look=\"twotone\"\n color=\"danger\"\n (onClick)=\"handleRemoveItem(item)\"\n class=\"ax-col-start-11 ax-col-end-13 lg:ax-col-start-12 lg:ax-col-end-13 ax-justify-self-end\"\n >\n <ax-icon icon=\"fa-regular fa-xmark\"></ax-icon>\n </ax-button>\n }\n </ng-container>\n <ng-container *ngIf=\"!multiple\">\n <ax-text-box\n [(ngModel)]=\"convertedValue()[0].value\"\n (onValueChanged)=\"handlePhoneChange($event, convertedValue()[0].id)\"\n type=\"text\"\n class=\"ax-col-start-1 ax-col-end-13 lg:ax-col-end-8\"\n [class.lg:!ax-col-end-13]=\"!hasLabel\"\n >\n </ax-text-box>\n @if(hasLabel){\n <ax-select-box\n [dataSource]=\"phoneLabels\"\n [(ngModel)]=\"convertedValue()[0].label\"\n (onValueChanged)=\"handleLabelChange($event, convertedValue()[0].id)\"\n class=\"ax-col-start-1 ax-col-end-11 lg:ax-col-start-8 lg:ax-col-end-13\"\n >\n </ax-select-box>\n }\n </ng-container>\n\n <ax-button\n *ngIf=\"multiple\"\n [text]=\"convertedValue().length == 0 ? 'Add New' : 'Add Another'\"\n look=\"twotone\"\n (onClick)=\"handleAddItem()\"\n class=\"ax-col-start-8 lg:ax-col-start-10 2xl:ax-col-start-10 ax-col-end-13\"\n >\n <ax-prefix>\n <ax-icon class=\"fa-solid fa-add\"></ax-icon>\n </ax-prefix>\n </ax-button>\n </div>\n `,\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule, AXButtonModule, FormsModule, AXTextBoxModule, AXDecoratorModule, AXSelectBoxModule],\n inputs: ['multiple', 'hasLabel'],\n})\nexport class AXPPhoneWidgetEditComponent extends AXPWidgetEditBase<any> {\n protected mockerService = inject(MockDataService);\n protected platform = inject(AXPlatform);\n\n protected multiple!: boolean;\n protected hasLabel!: boolean;\n protected convertedValue: WritableSignal<{ value: string; label?: string; id: string }[]> = signal([]);\n\n protected phoneLabels: string[] = ['Mobile', 'Home', 'Work', 'Other'];\n\n private changeValueEffect = effect(() => {\n if (this.multiple) {\n if (this.hasLabel) this.value = this.convertedValue().map((i) => ({ value: i.value, label: i.label }));\n else this.value = this.convertedValue().map((i) => i.value);\n } else {\n if (this.hasLabel) this.value = this.convertedValue().map((i) => ({ value: i.value, label: i.label }))[0];\n else this.value = this.convertedValue().map((i) => i.value)[0];\n }\n });\n\n protected handlePhoneChange(e: AXValueChangedEvent, id: string) {\n if (e.isUserInteraction) {\n this.convertedValue.update((prev) => prev.map((i) => (i.id === id ? { ...i, value: e.value } : i)));\n }\n }\n protected handleLabelChange(e: AXValueChangedEvent, id: string) {\n if (e.isUserInteraction) {\n this.convertedValue.update((prev) => prev.map((i) => (i.id === id ? { ...i, label: e.value } : i)));\n }\n }\n\n protected handleAddItem() {\n // this.value.push({ label: 'Primary', value: undefined });\n this.convertedValue.update((prev) => [\n ...prev,\n { label: this.hasLabel ? 'Primary' : '', value: '', id: this.mockerService.uid() },\n ]);\n }\n\n protected handleRemoveItem(item: any) {\n this.convertedValue.update((prev) => prev.filter((c) => c != item));\n }\n ngOnInit(): void {\n // Initialize with an empty array if there's no value or it's empty\n if (!this.value || this.value.length === 0) {\n this.initializeEmptyValue();\n return;\n }\n\n // Process the input based on `multiple` and `hasLabel`\n if (this.multiple) {\n this.handleMultipleValue();\n } else {\n this.handleSingleValue();\n }\n }\n\n private initializeEmptyValue(): void {\n this.convertedValue.set([{ value: '', label: '', id: this.mockerService.uid() }]);\n }\n\n private handleMultipleValue(): void {\n const newValue = this.value.map((item: any) => ({\n value: this.hasLabel ? item.value : item,\n label: this.hasLabel ? item.label : null,\n id: this.mockerService.uid(),\n }));\n this.convertedValue.set(newValue);\n }\n\n private handleSingleValue(): void {\n const newValue = [\n {\n value: this.hasLabel ? this.value.value : this.value,\n label: this.hasLabel ? this.value.label : null,\n id: this.mockerService.uid(),\n },\n ];\n this.convertedValue.set(newValue);\n }\n}\n"],"names":["i2","i4","i5"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAoFM,MAAO,2BAA4B,SAAQ,iBAAsB,CAAA;AAtEvE,IAAA,WAAA,GAAA;;AAuEY,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,eAAe,CAAC,CAAC;AACxC,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;AAI9B,QAAA,IAAA,CAAA,cAAc,GAAoE,MAAM,CAAC,EAAE,CAAC,CAAC;QAE7F,IAAW,CAAA,WAAA,GAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;AAE9D,QAAA,IAAA,CAAA,iBAAiB,GAAG,MAAM,CAAC,MAAK;AACtC,YAAA,IAAI,IAAI,CAAC,QAAQ,EAAE;gBACjB,IAAI,IAAI,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oBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,cAAc,EAAE,WAAW,EAAE,eAAe,EAAE,iBAAiB,EAAE,iBAAiB,CAAC;AAC3G,oBAAA,MAAM,EAAE,CAAC,UAAU,EAAE,UAAU,CAAC;AACjC,iBAAA,CAAA;;;;;"}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import * as i1$1 from '@acorex/components/badge';
|
|
2
|
+
import { AXBadgeModule } from '@acorex/components/badge';
|
|
3
|
+
import { AXPClipBoardService } from '@acorex/platform/common';
|
|
4
|
+
import { AXPWidgetBase } from '@acorex/platform/schema';
|
|
5
|
+
import * as i1 from '@angular/common';
|
|
6
|
+
import { CommonModule } from '@angular/common';
|
|
7
|
+
import * as i0 from '@angular/core';
|
|
8
|
+
import { inject, Component, ChangeDetectionStrategy } from '@angular/core';
|
|
9
|
+
|
|
10
|
+
class AXPPhoneWidgetViewComponent extends AXPWidgetBase {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
this.clipboard = inject(AXPClipBoardService);
|
|
14
|
+
this.list = [];
|
|
15
|
+
}
|
|
16
|
+
getIcon(type) {
|
|
17
|
+
switch (type) {
|
|
18
|
+
case 'home':
|
|
19
|
+
return 'fa-home';
|
|
20
|
+
case 'mobile':
|
|
21
|
+
return 'fa-phone';
|
|
22
|
+
default:
|
|
23
|
+
return 'fa-phone';
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
render() {
|
|
27
|
+
const rawValue = this.context[this.prop.name];
|
|
28
|
+
this.list = Array.isArray(rawValue) ? rawValue.map((c) => this.extractItem(c)) : [this.extractItem(rawValue)];
|
|
29
|
+
}
|
|
30
|
+
extractItem(item) {
|
|
31
|
+
return typeof item == 'object'
|
|
32
|
+
? {
|
|
33
|
+
value: item.value ?? '-',
|
|
34
|
+
type: item.type ?? 'mobile',
|
|
35
|
+
label: item.label,
|
|
36
|
+
}
|
|
37
|
+
: {
|
|
38
|
+
value: item,
|
|
39
|
+
type: 'mobile',
|
|
40
|
+
label: null,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AXPPhoneWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
44
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: AXPPhoneWidgetViewComponent, isStandalone: true, selector: "ng-component", inputs: { context: "context", value: "value", multiple: "multiple", hasLabel: "hasLabel" }, usesInheritance: true, ngImport: i0, template: `
|
|
45
|
+
<div class="ax-grid ax-grid-cols-12 ax-gap-2 ">
|
|
46
|
+
<ng-container *ngIf="multiple">
|
|
47
|
+
@for(item of list;track item?.value) {
|
|
48
|
+
<ng-template [ngTemplateOutlet]="itemTemplate" [ngTemplateOutletContext]="{ data: item }" ]></ng-template>
|
|
49
|
+
}
|
|
50
|
+
</ng-container>
|
|
51
|
+
|
|
52
|
+
<ng-container *ngIf="!multiple">
|
|
53
|
+
<ng-template [ngTemplateOutlet]="itemTemplate" [ngTemplateOutletContext]="{ data: list[0] }" ]></ng-template>
|
|
54
|
+
</ng-container>
|
|
55
|
+
|
|
56
|
+
<ng-template #itemTemplate let-item="data">
|
|
57
|
+
<ng-container *ngIf="item">
|
|
58
|
+
<div class="ax-col-start-1 ax-col-end-10 lg:ax-col-end-7">
|
|
59
|
+
<div class="ax-flex ax-flex-1 ax-gap-3 ax-items-center ax-w-max ax-group">
|
|
60
|
+
<div class="ax-w-6 ax-h-6 ax-flex ax-items-center ax-justify-center">
|
|
61
|
+
<i class="fa-solid ax-text-neutral-400 fa-phone"></i>
|
|
62
|
+
</div>
|
|
63
|
+
<a class="group-hover:!ax-text-primary-500" href="tel:{{ item.value }}">{{ item.value }}</a>
|
|
64
|
+
<span
|
|
65
|
+
class="ax-text-neutral-400 ax-cursor-pointer ax-invisible group-hover:ax-visible hover:!ax-text-primary-500"
|
|
66
|
+
(click)="clipboard.copy('Phone Number', item.value)"
|
|
67
|
+
>
|
|
68
|
+
<i class="fa-solid fa-copy "></i>
|
|
69
|
+
</span>
|
|
70
|
+
@if(hasLabel){
|
|
71
|
+
<ax-badge color="primary" [look]="'twotone'" [text]="item.label"></ax-badge>
|
|
72
|
+
}
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
75
|
+
</ng-container>
|
|
76
|
+
</ng-template>
|
|
77
|
+
</div>
|
|
78
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: AXBadgeModule }, { kind: "component", type: i1$1.AXBadgeComponent, selector: "ax-badge", inputs: ["color", "look", "text"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
79
|
+
}
|
|
80
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AXPPhoneWidgetViewComponent, decorators: [{
|
|
81
|
+
type: Component,
|
|
82
|
+
args: [{
|
|
83
|
+
template: `
|
|
84
|
+
<div class="ax-grid ax-grid-cols-12 ax-gap-2 ">
|
|
85
|
+
<ng-container *ngIf="multiple">
|
|
86
|
+
@for(item of list;track item?.value) {
|
|
87
|
+
<ng-template [ngTemplateOutlet]="itemTemplate" [ngTemplateOutletContext]="{ data: item }" ]></ng-template>
|
|
88
|
+
}
|
|
89
|
+
</ng-container>
|
|
90
|
+
|
|
91
|
+
<ng-container *ngIf="!multiple">
|
|
92
|
+
<ng-template [ngTemplateOutlet]="itemTemplate" [ngTemplateOutletContext]="{ data: list[0] }" ]></ng-template>
|
|
93
|
+
</ng-container>
|
|
94
|
+
|
|
95
|
+
<ng-template #itemTemplate let-item="data">
|
|
96
|
+
<ng-container *ngIf="item">
|
|
97
|
+
<div class="ax-col-start-1 ax-col-end-10 lg:ax-col-end-7">
|
|
98
|
+
<div class="ax-flex ax-flex-1 ax-gap-3 ax-items-center ax-w-max ax-group">
|
|
99
|
+
<div class="ax-w-6 ax-h-6 ax-flex ax-items-center ax-justify-center">
|
|
100
|
+
<i class="fa-solid ax-text-neutral-400 fa-phone"></i>
|
|
101
|
+
</div>
|
|
102
|
+
<a class="group-hover:!ax-text-primary-500" href="tel:{{ item.value }}">{{ item.value }}</a>
|
|
103
|
+
<span
|
|
104
|
+
class="ax-text-neutral-400 ax-cursor-pointer ax-invisible group-hover:ax-visible hover:!ax-text-primary-500"
|
|
105
|
+
(click)="clipboard.copy('Phone Number', item.value)"
|
|
106
|
+
>
|
|
107
|
+
<i class="fa-solid fa-copy "></i>
|
|
108
|
+
</span>
|
|
109
|
+
@if(hasLabel){
|
|
110
|
+
<ax-badge color="primary" [look]="'twotone'" [text]="item.label"></ax-badge>
|
|
111
|
+
}
|
|
112
|
+
</div>
|
|
113
|
+
</div>
|
|
114
|
+
</ng-container>
|
|
115
|
+
</ng-template>
|
|
116
|
+
</div>
|
|
117
|
+
`,
|
|
118
|
+
standalone: true,
|
|
119
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
120
|
+
imports: [CommonModule, AXBadgeModule],
|
|
121
|
+
inputs: ['context', 'value', 'multiple', 'hasLabel'],
|
|
122
|
+
}]
|
|
123
|
+
}] });
|
|
124
|
+
|
|
125
|
+
export { AXPPhoneWidgetViewComponent };
|
|
126
|
+
//# sourceMappingURL=acorex-platform-layouts-phone-widget-view.component-NEO22XO7.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-layouts-phone-widget-view.component-NEO22XO7.mjs","sources":["../../../../libs/platform/layouts/src/lib/widgets/phone/phone-widget-view.component.ts"],"sourcesContent":["import { AXBadgeModule } from '@acorex/components/badge';\nimport { AXPClipBoardService } from '@acorex/platform/common';\nimport { AXPWidgetBase } from '@acorex/platform/schema';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, inject } from '@angular/core';\n\n@Component({\n template: `\n <div class=\"ax-grid ax-grid-cols-12 ax-gap-2 \">\n <ng-container *ngIf=\"multiple\">\n @for(item of list;track item?.value) {\n <ng-template [ngTemplateOutlet]=\"itemTemplate\" [ngTemplateOutletContext]=\"{ data: item }\" ]></ng-template>\n }\n </ng-container>\n\n <ng-container *ngIf=\"!multiple\">\n <ng-template [ngTemplateOutlet]=\"itemTemplate\" [ngTemplateOutletContext]=\"{ data: list[0] }\" ]></ng-template>\n </ng-container>\n\n <ng-template #itemTemplate let-item=\"data\">\n <ng-container *ngIf=\"item\">\n <div class=\"ax-col-start-1 ax-col-end-10 lg:ax-col-end-7\">\n <div class=\"ax-flex ax-flex-1 ax-gap-3 ax-items-center ax-w-max ax-group\">\n <div class=\"ax-w-6 ax-h-6 ax-flex ax-items-center ax-justify-center\">\n <i class=\"fa-solid ax-text-neutral-400 fa-phone\"></i>\n </div>\n <a class=\"group-hover:!ax-text-primary-500\" href=\"tel:{{ item.value }}\">{{ item.value }}</a>\n <span\n class=\"ax-text-neutral-400 ax-cursor-pointer ax-invisible group-hover:ax-visible hover:!ax-text-primary-500\"\n (click)=\"clipboard.copy('Phone Number', item.value)\"\n >\n <i class=\"fa-solid fa-copy \"></i>\n </span>\n @if(hasLabel){\n <ax-badge color=\"primary\" [look]=\"'twotone'\" [text]=\"item.label\"></ax-badge>\n }\n </div>\n </div>\n </ng-container>\n </ng-template>\n </div>\n `,\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule, AXBadgeModule],\n inputs: ['context', 'value', 'multiple', 'hasLabel'],\n})\nexport class AXPPhoneWidgetViewComponent extends AXPWidgetBase {\n protected clipboard = inject(AXPClipBoardService);\n protected multiple!: boolean;\n protected hasLabel!: boolean;\n\n protected list: { value: string; type: string; label: string }[] = [];\n\n protected getIcon(type: string) {\n switch (type) {\n case 'home':\n return 'fa-home';\n\n case 'mobile':\n return 'fa-phone';\n\n default:\n return 'fa-phone';\n }\n }\n\n override render() {\n const rawValue = this.context[this.prop.name];\n this.list = Array.isArray(rawValue) ? rawValue.map((c) => this.extractItem(c)) : [this.extractItem(rawValue)];\n }\n\n private extractItem(item: any): any {\n return typeof item == 'object'\n ? {\n value: item.value ?? '-',\n type: item.type ?? 'mobile',\n label: item.label,\n }\n : {\n value: item,\n type: 'mobile',\n label: null,\n };\n }\n}\n"],"names":["i2"],"mappings":";;;;;;;;;AA+CM,MAAO,2BAA4B,SAAQ,aAAa,CAAA;AAzC9D,IAAA,WAAA,GAAA;;AA0CY,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,mBAAmB,CAAC,CAAC;QAIxC,IAAI,CAAA,IAAA,GAAqD,EAAE,CAAC;AAiCvE,KAAA;AA/BW,IAAA,OAAO,CAAC,IAAY,EAAA;QAC5B,QAAQ,IAAI;AACV,YAAA,KAAK,MAAM;AACT,gBAAA,OAAO,SAAS,CAAC;AAEnB,YAAA,KAAK,QAAQ;AACX,gBAAA,OAAO,UAAU,CAAC;AAEpB,YAAA;AACE,gBAAA,OAAO,UAAU,CAAC;SACrB;KACF;IAEQ,MAAM,GAAA;AACb,QAAA,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC9C,QAAA,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC;KAC/G;AAEO,IAAA,WAAW,CAAC,IAAS,EAAA;QAC3B,OAAO,OA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,EAAA,UAAA,EAAA,CAAA;kBAzCvC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCT,EAAA,CAAA;AACD,oBAAA,UAAU,EAAE,IAAI;oBAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,aAAa,CAAC;oBACtC,MAAM,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,CAAC;AACrD,iBAAA,CAAA;;;;;"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import * as i11 from '@acorex/components/tooltip';
|
|
2
|
+
import { AXTooltipModule } from '@acorex/components/tooltip';
|
|
3
|
+
import { AXPWidgetBase } from '@acorex/platform/schema';
|
|
4
|
+
import * as i0 from '@angular/core';
|
|
5
|
+
import { Component, ViewEncapsulation } from '@angular/core';
|
|
6
|
+
|
|
7
|
+
class AXPRichTextWidgetColumnComponent extends AXPWidgetBase {
|
|
8
|
+
render() {
|
|
9
|
+
if (this.context[this.prop.name]) {
|
|
10
|
+
this.value = this.context[this.prop.name];
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
dot3(text, limit) {
|
|
14
|
+
const innerText = this.extractContent(text);
|
|
15
|
+
if (innerText?.length >= limit) {
|
|
16
|
+
return innerText.slice(0, limit) + '...';
|
|
17
|
+
}
|
|
18
|
+
else
|
|
19
|
+
return innerText;
|
|
20
|
+
}
|
|
21
|
+
extractContent(s) {
|
|
22
|
+
var span = document.createElement('span');
|
|
23
|
+
span.innerHTML = s;
|
|
24
|
+
return span.textContent || span.innerText;
|
|
25
|
+
}
|
|
26
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AXPRichTextWidgetColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
27
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.2", type: AXPRichTextWidgetColumnComponent, isStandalone: true, selector: "axp-rich-text-widget-column", inputs: { context: "context", hasTooltip: "hasTooltip", width: "width" }, usesInheritance: true, ngImport: i0, template: `
|
|
28
|
+
<div #parent>
|
|
29
|
+
@if(hasTooltip){
|
|
30
|
+
<div
|
|
31
|
+
class="ax-text-nowrap ax-overflow-hidden ax-text-ellipsis"
|
|
32
|
+
[axTooltip]="allContent"
|
|
33
|
+
[innerHTML]="dot3(value, 150)"
|
|
34
|
+
></div>
|
|
35
|
+
<ng-template #allContent>
|
|
36
|
+
<div [innerHTML]="value" class="ax-p-4 ax-border ax-rounded-lg ax-bg-default"></div>
|
|
37
|
+
</ng-template>
|
|
38
|
+
}@else {
|
|
39
|
+
<div class="ax-text-nowrap ax-overflow-hidden ax-text-ellipsis" [innerHTML]="dot3(value, 150)"></div>
|
|
40
|
+
}
|
|
41
|
+
</div>
|
|
42
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: AXTooltipModule }, { kind: "directive", type: i11.AXTooltipDirective, selector: "[axTooltip]", inputs: ["axTooltip", "axTooltipPlacement", "axTooltipOpenAfter", "axTooltipCloseAfter"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
43
|
+
}
|
|
44
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: AXPRichTextWidgetColumnComponent, decorators: [{
|
|
45
|
+
type: Component,
|
|
46
|
+
args: [{
|
|
47
|
+
selector: 'axp-rich-text-widget-column',
|
|
48
|
+
template: `
|
|
49
|
+
<div #parent>
|
|
50
|
+
@if(hasTooltip){
|
|
51
|
+
<div
|
|
52
|
+
class="ax-text-nowrap ax-overflow-hidden ax-text-ellipsis"
|
|
53
|
+
[axTooltip]="allContent"
|
|
54
|
+
[innerHTML]="dot3(value, 150)"
|
|
55
|
+
></div>
|
|
56
|
+
<ng-template #allContent>
|
|
57
|
+
<div [innerHTML]="value" class="ax-p-4 ax-border ax-rounded-lg ax-bg-default"></div>
|
|
58
|
+
</ng-template>
|
|
59
|
+
}@else {
|
|
60
|
+
<div class="ax-text-nowrap ax-overflow-hidden ax-text-ellipsis" [innerHTML]="dot3(value, 150)"></div>
|
|
61
|
+
}
|
|
62
|
+
</div>
|
|
63
|
+
`,
|
|
64
|
+
standalone: true,
|
|
65
|
+
encapsulation: ViewEncapsulation.None,
|
|
66
|
+
inputs: ['context', 'hasTooltip', 'width'],
|
|
67
|
+
imports: [AXTooltipModule],
|
|
68
|
+
}]
|
|
69
|
+
}] });
|
|
70
|
+
|
|
71
|
+
export { AXPRichTextWidgetColumnComponent };
|
|
72
|
+
//# sourceMappingURL=acorex-platform-layouts-rich-text-widget-column.component-P0YzXTIB.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-layouts-rich-text-widget-column.component-P0YzXTIB.mjs","sources":["../../../../libs/platform/layouts/src/lib/widgets/rich-text/rich-text-widget-column.component.ts"],"sourcesContent":["import { AXTooltipModule } from '@acorex/components/tooltip';\nimport { AXPWidgetBase } from '@acorex/platform/schema';\nimport { Component, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'axp-rich-text-widget-column',\n template: `\n <div #parent>\n @if(hasTooltip){\n <div\n class=\"ax-text-nowrap ax-overflow-hidden ax-text-ellipsis\"\n [axTooltip]=\"allContent\"\n [innerHTML]=\"dot3(value, 150)\"\n ></div>\n <ng-template #allContent>\n <div [innerHTML]=\"value\" class=\"ax-p-4 ax-border ax-rounded-lg ax-bg-default\"></div>\n </ng-template>\n }@else {\n <div class=\"ax-text-nowrap ax-overflow-hidden ax-text-ellipsis\" [innerHTML]=\"dot3(value, 150)\"></div>\n }\n </div>\n `,\n standalone: true,\n encapsulation: ViewEncapsulation.None,\n inputs: ['context', 'hasTooltip', 'width'],\n imports: [AXTooltipModule],\n})\nexport class AXPRichTextWidgetColumnComponent extends AXPWidgetBase<any> {\n protected value!: string;\n protected hasTooltip!: boolean;\n\n protected override render(): void {\n if (this.context[this.prop.name]) {\n this.value = this.context[this.prop.name];\n }\n }\n\n protected dot3(text: string, limit: number) {\n const innerText = this.extractContent(text);\n if (innerText?.length >= limit) {\n return innerText.slice(0, limit) + '...';\n } else return innerText;\n }\n\n protected extractContent(s: string) {\n var span = document.createElement('span');\n span.innerHTML = s;\n return span.textContent || span.innerText;\n }\n}\n"],"names":["i1"],"mappings":";;;;;;AA2BM,MAAO,gCAAiC,SAAQ,aAAkB,CAAA;IAInD,MAAM,GAAA;QACvB,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;AAChC,YAAA,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SAC3C;KACF;IAES,IAAI,CAAC,IAAY,EAAE,KAAa,EAAA;QACxC,MAAM,SAAS,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;AAC5C,QAAA,IAAI,SAAS,EAAE,MAAM,IAAI,KAAK,EAAE;YAC9B,OAAO,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,GAAG,KAAK,CAAC;SAC1C;;AAAM,YAAA,OAAO,SAAS,CAAC;KACzB;AAES,IAAA,cAAc,CAAC,CAAS,EAAA;QAChC,IAAI,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;AAC1C,QAAA,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC;AACnB,QAAA,OAAO,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,SAAS,CAAC;KAC3C;8GArBU,gCAAgC,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAhC,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,C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