@acorex-platform/framework-shared 0.0.1
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/acorex-platform-framework-shared-0.0.1.tgz +0 -0
- package/core/src/index.d.ts +2 -0
- package/core/src/index.d.ts.map +1 -0
- package/core/src/index.js +5 -0
- package/core/src/index.js.map +1 -0
- package/core/src/lib/core/actions.types.d.ts +724 -0
- package/core/src/lib/core/actions.types.d.ts.map +1 -0
- package/core/src/lib/core/actions.types.js +851 -0
- package/core/src/lib/core/actions.types.js.map +1 -0
- package/core/src/lib/core/context.types.d.ts +23 -0
- package/core/src/lib/core/context.types.d.ts.map +1 -0
- package/core/src/lib/core/context.types.js +9 -0
- package/core/src/lib/core/context.types.js.map +1 -0
- package/core/src/lib/core/core.types.d.ts +193 -0
- package/core/src/lib/core/core.types.d.ts.map +1 -0
- package/core/src/lib/core/core.types.js +90 -0
- package/core/src/lib/core/core.types.js.map +1 -0
- package/core/src/lib/core/index.d.ts +8 -0
- package/core/src/lib/core/index.d.ts.map +1 -0
- package/core/src/lib/core/index.js +13 -0
- package/core/src/lib/core/index.js.map +1 -0
- package/core/src/lib/core/logo.types.d.ts +13 -0
- package/core/src/lib/core/logo.types.d.ts.map +1 -0
- package/core/src/lib/core/logo.types.js +5 -0
- package/core/src/lib/core/logo.types.js.map +1 -0
- package/core/src/lib/core/response.types.d.ts +10 -0
- package/core/src/lib/core/response.types.d.ts.map +1 -0
- package/core/src/lib/core/response.types.js +5 -0
- package/core/src/lib/core/response.types.js.map +1 -0
- package/core/src/lib/core/scope.types.d.ts +9 -0
- package/core/src/lib/core/scope.types.d.ts.map +1 -0
- package/core/src/lib/core/scope.types.js +32 -0
- package/core/src/lib/core/scope.types.js.map +1 -0
- package/core/src/lib/core/shims.types.d.ts +20 -0
- package/core/src/lib/core/shims.types.d.ts.map +1 -0
- package/core/src/lib/core/shims.types.js +5 -0
- package/core/src/lib/core/shims.types.js.map +1 -0
- package/core/src/lib/data/column.types.d.ts +6 -0
- package/core/src/lib/data/column.types.d.ts.map +1 -0
- package/core/src/lib/data/column.types.js +5 -0
- package/core/src/lib/data/column.types.js.map +1 -0
- package/core/src/lib/data/data.types.d.ts +40 -0
- package/core/src/lib/data/data.types.d.ts.map +1 -0
- package/core/src/lib/data/data.types.js +5 -0
- package/core/src/lib/data/data.types.js.map +1 -0
- package/core/src/lib/data/export.types.d.ts +64 -0
- package/core/src/lib/data/export.types.d.ts.map +1 -0
- package/core/src/lib/data/export.types.js +14 -0
- package/core/src/lib/data/export.types.js.map +1 -0
- package/core/src/lib/data/filter.types.d.ts +42 -0
- package/core/src/lib/data/filter.types.d.ts.map +1 -0
- package/core/src/lib/data/filter.types.js +5 -0
- package/core/src/lib/data/filter.types.js.map +1 -0
- package/core/src/lib/data/index.d.ts +7 -0
- package/core/src/lib/data/index.d.ts.map +1 -0
- package/core/src/lib/data/index.js +12 -0
- package/core/src/lib/data/index.js.map +1 -0
- package/core/src/lib/data/multi-source.types.d.ts +8 -0
- package/core/src/lib/data/multi-source.types.d.ts.map +1 -0
- package/core/src/lib/data/multi-source.types.js +5 -0
- package/core/src/lib/data/multi-source.types.js.map +1 -0
- package/core/src/lib/data/sort.types.d.ts +8 -0
- package/core/src/lib/data/sort.types.d.ts.map +1 -0
- package/core/src/lib/data/sort.types.js +5 -0
- package/core/src/lib/data/sort.types.js.map +1 -0
- package/core/src/lib/domain/address.types.d.ts +38 -0
- package/core/src/lib/domain/address.types.d.ts.map +1 -0
- package/core/src/lib/domain/address.types.js +5 -0
- package/core/src/lib/domain/address.types.js.map +1 -0
- package/core/src/lib/domain/ai-output.types.d.ts +5 -0
- package/core/src/lib/domain/ai-output.types.d.ts.map +1 -0
- package/core/src/lib/domain/ai-output.types.js +5 -0
- package/core/src/lib/domain/ai-output.types.js.map +1 -0
- package/core/src/lib/domain/file-storage.types.d.ts +203 -0
- package/core/src/lib/domain/file-storage.types.d.ts.map +1 -0
- package/core/src/lib/domain/file-storage.types.js +12 -0
- package/core/src/lib/domain/file-storage.types.js.map +1 -0
- package/core/src/lib/domain/index.d.ts +6 -0
- package/core/src/lib/domain/index.d.ts.map +1 -0
- package/core/src/lib/domain/index.js +11 -0
- package/core/src/lib/domain/index.js.map +1 -0
- package/core/src/lib/domain/metadata.types.d.ts +25 -0
- package/core/src/lib/domain/metadata.types.d.ts.map +1 -0
- package/core/src/lib/domain/metadata.types.js +3 -0
- package/core/src/lib/domain/metadata.types.js.map +1 -0
- package/core/src/lib/domain/spreadsheet.types.d.ts +4 -0
- package/core/src/lib/domain/spreadsheet.types.d.ts.map +1 -0
- package/core/src/lib/domain/spreadsheet.types.js +5 -0
- package/core/src/lib/domain/spreadsheet.types.js.map +1 -0
- package/core/src/lib/index.d.ts +14 -0
- package/core/src/lib/index.d.ts.map +1 -0
- package/core/src/lib/index.js +19 -0
- package/core/src/lib/index.js.map +1 -0
- package/core/src/lib/integration/index.d.ts +4 -0
- package/core/src/lib/integration/index.d.ts.map +1 -0
- package/core/src/lib/integration/index.js +9 -0
- package/core/src/lib/integration/index.js.map +1 -0
- package/core/src/lib/integration/integration-connection.safe-types.d.ts +54 -0
- package/core/src/lib/integration/integration-connection.safe-types.d.ts.map +1 -0
- package/core/src/lib/integration/integration-connection.safe-types.js +4 -0
- package/core/src/lib/integration/integration-connection.safe-types.js.map +1 -0
- package/core/src/lib/integration/integration-status.constants.d.ts +49 -0
- package/core/src/lib/integration/integration-status.constants.d.ts.map +1 -0
- package/core/src/lib/integration/integration-status.constants.js +57 -0
- package/core/src/lib/integration/integration-status.constants.js.map +1 -0
- package/core/src/lib/integration/integration.types.d.ts +120 -0
- package/core/src/lib/integration/integration.types.d.ts.map +1 -0
- package/core/src/lib/integration/integration.types.js +33 -0
- package/core/src/lib/integration/integration.types.js.map +1 -0
- package/core/src/lib/interaction/index.d.ts +4 -0
- package/core/src/lib/interaction/index.d.ts.map +1 -0
- package/core/src/lib/interaction/index.js +9 -0
- package/core/src/lib/interaction/index.js.map +1 -0
- package/core/src/lib/interaction/interactive.types.d.ts +65 -0
- package/core/src/lib/interaction/interactive.types.d.ts.map +1 -0
- package/core/src/lib/interaction/interactive.types.js +5 -0
- package/core/src/lib/interaction/interactive.types.js.map +1 -0
- package/core/src/lib/interaction/view-query.types.d.ts +11 -0
- package/core/src/lib/interaction/view-query.types.d.ts.map +1 -0
- package/core/src/lib/interaction/view-query.types.js +5 -0
- package/core/src/lib/interaction/view-query.types.js.map +1 -0
- package/core/src/lib/interaction/view.types.d.ts +34 -0
- package/core/src/lib/interaction/view.types.d.ts.map +1 -0
- package/core/src/lib/interaction/view.types.js +5 -0
- package/core/src/lib/interaction/view.types.js.map +1 -0
- package/core/src/lib/keys/index.d.ts +4 -0
- package/core/src/lib/keys/index.d.ts.map +1 -0
- package/core/src/lib/keys/index.js +9 -0
- package/core/src/lib/keys/index.js.map +1 -0
- package/core/src/lib/keys/platform-core-datasource.keys.d.ts +6 -0
- package/core/src/lib/keys/platform-core-datasource.keys.d.ts.map +1 -0
- package/core/src/lib/keys/platform-core-datasource.keys.js +11 -0
- package/core/src/lib/keys/platform-core-datasource.keys.js.map +1 -0
- package/core/src/lib/keys/preview-widget-field.command.key.d.ts +3 -0
- package/core/src/lib/keys/preview-widget-field.command.key.d.ts.map +1 -0
- package/core/src/lib/keys/preview-widget-field.command.key.js +6 -0
- package/core/src/lib/keys/preview-widget-field.command.key.js.map +1 -0
- package/core/src/lib/keys/regional-settings.keys.d.ts +31 -0
- package/core/src/lib/keys/regional-settings.keys.d.ts.map +1 -0
- package/core/src/lib/keys/regional-settings.keys.js +37 -0
- package/core/src/lib/keys/regional-settings.keys.js.map +1 -0
- package/core/src/lib/mock/index.d.ts +2 -0
- package/core/src/lib/mock/index.d.ts.map +1 -0
- package/core/src/lib/mock/index.js +7 -0
- package/core/src/lib/mock/index.js.map +1 -0
- package/core/src/lib/mock/mock-data.shims.d.ts +39 -0
- package/core/src/lib/mock/mock-data.shims.d.ts.map +1 -0
- package/core/src/lib/mock/mock-data.shims.js +191 -0
- package/core/src/lib/mock/mock-data.shims.js.map +1 -0
- package/core/src/lib/multi-language-string/compare-axp-multi-language-string.d.ts +16 -0
- package/core/src/lib/multi-language-string/compare-axp-multi-language-string.d.ts.map +1 -0
- package/core/src/lib/multi-language-string/compare-axp-multi-language-string.js +39 -0
- package/core/src/lib/multi-language-string/compare-axp-multi-language-string.js.map +1 -0
- package/core/src/lib/multi-language-string/index.d.ts +4 -0
- package/core/src/lib/multi-language-string/index.d.ts.map +1 -0
- package/core/src/lib/multi-language-string/index.js +9 -0
- package/core/src/lib/multi-language-string/index.js.map +1 -0
- package/core/src/lib/multi-language-string/locale-map-value.util.d.ts +10 -0
- package/core/src/lib/multi-language-string/locale-map-value.util.d.ts.map +1 -0
- package/core/src/lib/multi-language-string/locale-map-value.util.js +41 -0
- package/core/src/lib/multi-language-string/locale-map-value.util.js.map +1 -0
- package/core/src/lib/multi-language-string/resolve-multi-language-string.util.d.ts +6 -0
- package/core/src/lib/multi-language-string/resolve-multi-language-string.util.d.ts.map +1 -0
- package/core/src/lib/multi-language-string/resolve-multi-language-string.util.js +33 -0
- package/core/src/lib/multi-language-string/resolve-multi-language-string.util.js.map +1 -0
- package/core/src/lib/property/element.types.d.ts +2 -0
- package/core/src/lib/property/element.types.d.ts.map +1 -0
- package/core/src/lib/property/element.types.js +5 -0
- package/core/src/lib/property/element.types.js.map +1 -0
- package/core/src/lib/property/file.types.d.ts +2 -0
- package/core/src/lib/property/file.types.d.ts.map +1 -0
- package/core/src/lib/property/file.types.js +5 -0
- package/core/src/lib/property/file.types.js.map +1 -0
- package/core/src/lib/property/index.d.ts +5 -0
- package/core/src/lib/property/index.d.ts.map +1 -0
- package/core/src/lib/property/index.js +10 -0
- package/core/src/lib/property/index.js.map +1 -0
- package/core/src/lib/property/property.types.d.ts +24 -0
- package/core/src/lib/property/property.types.d.ts.map +1 -0
- package/core/src/lib/property/property.types.js +5 -0
- package/core/src/lib/property/property.types.js.map +1 -0
- package/core/src/lib/property/validation.types.d.ts +31 -0
- package/core/src/lib/property/validation.types.d.ts.map +1 -0
- package/core/src/lib/property/validation.types.js +5 -0
- package/core/src/lib/property/validation.types.js.map +1 -0
- package/core/src/lib/status/index.d.ts +4 -0
- package/core/src/lib/status/index.d.ts.map +1 -0
- package/core/src/lib/status/index.js +9 -0
- package/core/src/lib/status/index.js.map +1 -0
- package/core/src/lib/status/status-definition.types.d.ts +110 -0
- package/core/src/lib/status/status-definition.types.d.ts.map +1 -0
- package/core/src/lib/status/status-definition.types.js +16 -0
- package/core/src/lib/status/status-definition.types.js.map +1 -0
- package/core/src/lib/status/status.types.d.ts +28 -0
- package/core/src/lib/status/status.types.d.ts.map +1 -0
- package/core/src/lib/status/status.types.js +34 -0
- package/core/src/lib/status/status.types.js.map +1 -0
- package/core/src/lib/status/statuses.types.d.ts +279 -0
- package/core/src/lib/status/statuses.types.d.ts.map +1 -0
- package/core/src/lib/status/statuses.types.js +320 -0
- package/core/src/lib/status/statuses.types.js.map +1 -0
- package/core/src/lib/utils/index.d.ts +4 -0
- package/core/src/lib/utils/index.d.ts.map +1 -0
- package/core/src/lib/utils/index.js +9 -0
- package/core/src/lib/utils/index.js.map +1 -0
- package/core/src/lib/utils/object-util.d.ts +57 -0
- package/core/src/lib/utils/object-util.d.ts.map +1 -0
- package/core/src/lib/utils/object-util.js +679 -0
- package/core/src/lib/utils/object-util.js.map +1 -0
- package/core/src/lib/utils/scalar-coercion.d.ts +17 -0
- package/core/src/lib/utils/scalar-coercion.d.ts.map +1 -0
- package/core/src/lib/utils/scalar-coercion.js +95 -0
- package/core/src/lib/utils/scalar-coercion.js.map +1 -0
- package/core/src/lib/utils/string.util.d.ts +11 -0
- package/core/src/lib/utils/string.util.d.ts.map +1 -0
- package/core/src/lib/utils/string.util.js +37 -0
- package/core/src/lib/utils/string.util.js.map +1 -0
- package/core/src/lib/widgets/index.d.ts +4 -0
- package/core/src/lib/widgets/index.d.ts.map +1 -0
- package/core/src/lib/widgets/index.js +9 -0
- package/core/src/lib/widgets/index.js.map +1 -0
- package/core/src/lib/widgets/widget-node.types.d.ts +16 -0
- package/core/src/lib/widgets/widget-node.types.d.ts.map +1 -0
- package/core/src/lib/widgets/widget-node.types.js +5 -0
- package/core/src/lib/widgets/widget-node.types.js.map +1 -0
- package/core/src/lib/widgets/widgets-catalog.d.ts +100 -0
- package/core/src/lib/widgets/widgets-catalog.d.ts.map +1 -0
- package/core/src/lib/widgets/widgets-catalog.js +105 -0
- package/core/src/lib/widgets/widgets-catalog.js.map +1 -0
- package/core/src/lib/widgets/widgets-list.d.ts +116 -0
- package/core/src/lib/widgets/widgets-list.d.ts.map +1 -0
- package/core/src/lib/widgets/widgets-list.js +154 -0
- package/core/src/lib/widgets/widgets-list.js.map +1 -0
- package/core/src/lib/workflow/activity.types.d.ts +133 -0
- package/core/src/lib/workflow/activity.types.d.ts.map +1 -0
- package/core/src/lib/workflow/activity.types.js +8 -0
- package/core/src/lib/workflow/activity.types.js.map +1 -0
- package/core/src/lib/workflow/index.d.ts +4 -0
- package/core/src/lib/workflow/index.d.ts.map +1 -0
- package/core/src/lib/workflow/index.js +9 -0
- package/core/src/lib/workflow/index.js.map +1 -0
- package/core/src/lib/workflow/workflow-definition.types.d.ts +182 -0
- package/core/src/lib/workflow/workflow-definition.types.d.ts.map +1 -0
- package/core/src/lib/workflow/workflow-definition.types.js +4 -0
- package/core/src/lib/workflow/workflow-definition.types.js.map +1 -0
- package/core/src/lib/workflow/workflow-instance.types.d.ts +375 -0
- package/core/src/lib/workflow/workflow-instance.types.d.ts.map +1 -0
- package/core/src/lib/workflow/workflow-instance.types.js +8 -0
- package/core/src/lib/workflow/workflow-instance.types.js.map +1 -0
- package/domain/src/index.d.ts +2 -0
- package/domain/src/index.d.ts.map +1 -0
- package/domain/src/index.js +5 -0
- package/domain/src/index.js.map +1 -0
- package/domain/src/lib/definitions/aggregate-definition.types.d.ts +18 -0
- package/domain/src/lib/definitions/aggregate-definition.types.d.ts.map +1 -0
- package/domain/src/lib/definitions/aggregate-definition.types.js +4 -0
- package/domain/src/lib/definitions/aggregate-definition.types.js.map +1 -0
- package/domain/src/lib/definitions/base.types.d.ts +36 -0
- package/domain/src/lib/definitions/base.types.d.ts.map +1 -0
- package/domain/src/lib/definitions/base.types.js +17 -0
- package/domain/src/lib/definitions/base.types.js.map +1 -0
- package/domain/src/lib/definitions/command-registry.types.d.ts +34 -0
- package/domain/src/lib/definitions/command-registry.types.d.ts.map +1 -0
- package/domain/src/lib/definitions/command-registry.types.js +4 -0
- package/domain/src/lib/definitions/command-registry.types.js.map +1 -0
- package/domain/src/lib/definitions/entity-definition.types.d.ts +50 -0
- package/domain/src/lib/definitions/entity-definition.types.d.ts.map +1 -0
- package/domain/src/lib/definitions/entity-definition.types.js +10 -0
- package/domain/src/lib/definitions/entity-definition.types.js.map +1 -0
- package/domain/src/lib/definitions/interface-definition.types.d.ts +31 -0
- package/domain/src/lib/definitions/interface-definition.types.d.ts.map +1 -0
- package/domain/src/lib/definitions/interface-definition.types.js +3 -0
- package/domain/src/lib/definitions/interface-definition.types.js.map +1 -0
- package/domain/src/lib/definitions/menu-definition.types.d.ts +57 -0
- package/domain/src/lib/definitions/menu-definition.types.d.ts.map +1 -0
- package/domain/src/lib/definitions/menu-definition.types.js +5 -0
- package/domain/src/lib/definitions/menu-definition.types.js.map +1 -0
- package/domain/src/lib/definitions/module-definition.types.d.ts +7 -0
- package/domain/src/lib/definitions/module-definition.types.d.ts.map +1 -0
- package/domain/src/lib/definitions/module-definition.types.js +3 -0
- package/domain/src/lib/definitions/module-definition.types.js.map +1 -0
- package/domain/src/lib/definitions/permission-definition.types.d.ts +41 -0
- package/domain/src/lib/definitions/permission-definition.types.d.ts.map +1 -0
- package/domain/src/lib/definitions/permission-definition.types.js +5 -0
- package/domain/src/lib/definitions/permission-definition.types.js.map +1 -0
- package/domain/src/lib/definitions/plugin-definition.types.d.ts +23 -0
- package/domain/src/lib/definitions/plugin-definition.types.d.ts.map +1 -0
- package/domain/src/lib/definitions/plugin-definition.types.js +3 -0
- package/domain/src/lib/definitions/plugin-definition.types.js.map +1 -0
- package/domain/src/lib/definitions/property-definition.types.d.ts +33 -0
- package/domain/src/lib/definitions/property-definition.types.d.ts.map +1 -0
- package/domain/src/lib/definitions/property-definition.types.js +3 -0
- package/domain/src/lib/definitions/property-definition.types.js.map +1 -0
- package/domain/src/lib/definitions/query-registry.types.d.ts +32 -0
- package/domain/src/lib/definitions/query-registry.types.d.ts.map +1 -0
- package/domain/src/lib/definitions/query-registry.types.js +4 -0
- package/domain/src/lib/definitions/query-registry.types.js.map +1 -0
- package/domain/src/lib/definitions/relation-definition.types.d.ts +31 -0
- package/domain/src/lib/definitions/relation-definition.types.d.ts.map +1 -0
- package/domain/src/lib/definitions/relation-definition.types.js +16 -0
- package/domain/src/lib/definitions/relation-definition.types.js.map +1 -0
- package/domain/src/lib/definitions/validation-definition.types.d.ts +29 -0
- package/domain/src/lib/definitions/validation-definition.types.d.ts.map +1 -0
- package/domain/src/lib/definitions/validation-definition.types.js +3 -0
- package/domain/src/lib/definitions/validation-definition.types.js.map +1 -0
- package/domain/src/lib/definitions/widget-catalog.types.d.ts +14 -0
- package/domain/src/lib/definitions/widget-catalog.types.d.ts.map +1 -0
- package/domain/src/lib/definitions/widget-catalog.types.js +5 -0
- package/domain/src/lib/definitions/widget-catalog.types.js.map +1 -0
- package/domain/src/lib/index.d.ts +15 -0
- package/domain/src/lib/index.d.ts.map +1 -0
- package/domain/src/lib/index.js +20 -0
- package/domain/src/lib/index.js.map +1 -0
- package/entity/src/index.d.ts +2 -0
- package/entity/src/index.d.ts.map +1 -0
- package/entity/src/index.js +5 -0
- package/entity/src/index.js.map +1 -0
- package/entity/src/lib/constants/entity-datasource.keys.d.ts +5 -0
- package/entity/src/lib/constants/entity-datasource.keys.d.ts.map +1 -0
- package/entity/src/lib/constants/entity-datasource.keys.js +10 -0
- package/entity/src/lib/constants/entity-datasource.keys.js.map +1 -0
- package/entity/src/lib/constants/entity-display.constants.d.ts +7 -0
- package/entity/src/lib/constants/entity-display.constants.d.ts.map +1 -0
- package/entity/src/lib/constants/entity-display.constants.js +12 -0
- package/entity/src/lib/constants/entity-display.constants.js.map +1 -0
- package/entity/src/lib/constants/entity-events.keys.d.ts +5 -0
- package/entity/src/lib/constants/entity-events.keys.d.ts.map +1 -0
- package/entity/src/lib/constants/entity-events.keys.js +10 -0
- package/entity/src/lib/constants/entity-events.keys.js.map +1 -0
- package/entity/src/lib/constants/index.d.ts +4 -0
- package/entity/src/lib/constants/index.d.ts.map +1 -0
- package/entity/src/lib/constants/index.js +9 -0
- package/entity/src/lib/constants/index.js.map +1 -0
- package/entity/src/lib/helpers/entity-action.helpers.d.ts +31 -0
- package/entity/src/lib/helpers/entity-action.helpers.d.ts.map +1 -0
- package/entity/src/lib/helpers/entity-action.helpers.js +270 -0
- package/entity/src/lib/helpers/entity-action.helpers.js.map +1 -0
- package/entity/src/lib/helpers/index.d.ts +2 -0
- package/entity/src/lib/helpers/index.d.ts.map +1 -0
- package/entity/src/lib/helpers/index.js +7 -0
- package/entity/src/lib/helpers/index.js.map +1 -0
- package/entity/src/lib/index.d.ts +5 -0
- package/entity/src/lib/index.d.ts.map +1 -0
- package/entity/src/lib/index.js +10 -0
- package/entity/src/lib/index.js.map +1 -0
- package/entity/src/lib/types/entity-action.types.d.ts +69 -0
- package/entity/src/lib/types/entity-action.types.d.ts.map +1 -0
- package/entity/src/lib/types/entity-action.types.js +18 -0
- package/entity/src/lib/types/entity-action.types.js.map +1 -0
- package/entity/src/lib/types/entity-card-field.types.d.ts +38 -0
- package/entity/src/lib/types/entity-card-field.types.d.ts.map +1 -0
- package/entity/src/lib/types/entity-card-field.types.js +25 -0
- package/entity/src/lib/types/entity-card-field.types.js.map +1 -0
- package/entity/src/lib/types/entity-definition.types.d.ts +182 -0
- package/entity/src/lib/types/entity-definition.types.d.ts.map +1 -0
- package/entity/src/lib/types/entity-definition.types.js +44 -0
- package/entity/src/lib/types/entity-definition.types.js.map +1 -0
- package/entity/src/lib/types/entity-detail-list.types.d.ts +9 -0
- package/entity/src/lib/types/entity-detail-list.types.d.ts.map +1 -0
- package/entity/src/lib/types/entity-detail-list.types.js +5 -0
- package/entity/src/lib/types/entity-detail-list.types.js.map +1 -0
- package/entity/src/lib/types/entity-display-field.types.d.ts +35 -0
- package/entity/src/lib/types/entity-display-field.types.d.ts.map +1 -0
- package/entity/src/lib/types/entity-display-field.types.js +5 -0
- package/entity/src/lib/types/entity-display-field.types.js.map +1 -0
- package/entity/src/lib/types/entity-formats.types.d.ts +12 -0
- package/entity/src/lib/types/entity-formats.types.d.ts.map +1 -0
- package/entity/src/lib/types/entity-formats.types.js +5 -0
- package/entity/src/lib/types/entity-formats.types.js.map +1 -0
- package/entity/src/lib/types/entity-layout-view.types.d.ts +34 -0
- package/entity/src/lib/types/entity-layout-view.types.d.ts.map +1 -0
- package/entity/src/lib/types/entity-layout-view.types.js +5 -0
- package/entity/src/lib/types/entity-layout-view.types.js.map +1 -0
- package/entity/src/lib/types/entity-list-filter.types.d.ts +27 -0
- package/entity/src/lib/types/entity-list-filter.types.d.ts.map +1 -0
- package/entity/src/lib/types/entity-list-filter.types.js +39 -0
- package/entity/src/lib/types/entity-list-filter.types.js.map +1 -0
- package/entity/src/lib/types/entity-master-list.types.d.ts +44 -0
- package/entity/src/lib/types/entity-master-list.types.d.ts.map +1 -0
- package/entity/src/lib/types/entity-master-list.types.js +26 -0
- package/entity/src/lib/types/entity-master-list.types.js.map +1 -0
- package/entity/src/lib/types/entity-model.types.d.ts +52 -0
- package/entity/src/lib/types/entity-model.types.d.ts.map +1 -0
- package/entity/src/lib/types/entity-model.types.js +5 -0
- package/entity/src/lib/types/entity-model.types.js.map +1 -0
- package/entity/src/lib/types/entity-property-list.types.d.ts +21 -0
- package/entity/src/lib/types/entity-property-list.types.d.ts.map +1 -0
- package/entity/src/lib/types/entity-property-list.types.js +5 -0
- package/entity/src/lib/types/entity-property-list.types.js.map +1 -0
- package/entity/src/lib/types/entity-property.types.d.ts +67 -0
- package/entity/src/lib/types/entity-property.types.d.ts.map +1 -0
- package/entity/src/lib/types/entity-property.types.js +5 -0
- package/entity/src/lib/types/entity-property.types.js.map +1 -0
- package/entity/src/lib/types/entity-query-view.types.d.ts +32 -0
- package/entity/src/lib/types/entity-query-view.types.d.ts.map +1 -0
- package/entity/src/lib/types/entity-query-view.types.js +36 -0
- package/entity/src/lib/types/entity-query-view.types.js.map +1 -0
- package/entity/src/lib/types/entity-related-layout.types.d.ts +65 -0
- package/entity/src/lib/types/entity-related-layout.types.d.ts.map +1 -0
- package/entity/src/lib/types/entity-related-layout.types.js +5 -0
- package/entity/src/lib/types/entity-related-layout.types.js.map +1 -0
- package/entity/src/lib/types/entity-storage.types.d.ts +43 -0
- package/entity/src/lib/types/entity-storage.types.d.ts.map +1 -0
- package/entity/src/lib/types/entity-storage.types.js +4 -0
- package/entity/src/lib/types/entity-storage.types.js.map +1 -0
- package/entity/src/lib/types/index.d.ts +17 -0
- package/entity/src/lib/types/index.d.ts.map +1 -0
- package/entity/src/lib/types/index.js +22 -0
- package/entity/src/lib/types/index.js.map +1 -0
- package/entity/src/lib/types/lookup-widget.types.d.ts +79 -0
- package/entity/src/lib/types/lookup-widget.types.d.ts.map +1 -0
- package/entity/src/lib/types/lookup-widget.types.js +4 -0
- package/entity/src/lib/types/lookup-widget.types.js.map +1 -0
- package/entity/src/lib/utils/entity-display-template.util.d.ts +17 -0
- package/entity/src/lib/utils/entity-display-template.util.d.ts.map +1 -0
- package/entity/src/lib/utils/entity-display-template.util.js +57 -0
- package/entity/src/lib/utils/entity-display-template.util.js.map +1 -0
- package/entity/src/lib/utils/entity-list-filter-definitions.util.d.ts +17 -0
- package/entity/src/lib/utils/entity-list-filter-definitions.util.d.ts.map +1 -0
- package/entity/src/lib/utils/entity-list-filter-definitions.util.js +144 -0
- package/entity/src/lib/utils/entity-list-filter-definitions.util.js.map +1 -0
- package/entity/src/lib/utils/entity-list-sortable-fields.util.d.ts +14 -0
- package/entity/src/lib/utils/entity-list-sortable-fields.util.d.ts.map +1 -0
- package/entity/src/lib/utils/entity-list-sortable-fields.util.js +95 -0
- package/entity/src/lib/utils/entity-list-sortable-fields.util.js.map +1 -0
- package/entity/src/lib/utils/entity-merge-detail-list-properties.util.d.ts +16 -0
- package/entity/src/lib/utils/entity-merge-detail-list-properties.util.d.ts.map +1 -0
- package/entity/src/lib/utils/entity-merge-detail-list-properties.util.js +75 -0
- package/entity/src/lib/utils/entity-merge-detail-list-properties.util.js.map +1 -0
- package/entity/src/lib/utils/entity-property-display-path.util.d.ts +36 -0
- package/entity/src/lib/utils/entity-property-display-path.util.d.ts.map +1 -0
- package/entity/src/lib/utils/entity-property-display-path.util.js +97 -0
- package/entity/src/lib/utils/entity-property-display-path.util.js.map +1 -0
- package/entity/src/lib/utils/entity-quick-search-paths.util.d.ts +19 -0
- package/entity/src/lib/utils/entity-quick-search-paths.util.d.ts.map +1 -0
- package/entity/src/lib/utils/entity-quick-search-paths.util.js +149 -0
- package/entity/src/lib/utils/entity-quick-search-paths.util.js.map +1 -0
- package/entity/src/lib/utils/entity-search-title-context.util.d.ts +21 -0
- package/entity/src/lib/utils/entity-search-title-context.util.d.ts.map +1 -0
- package/entity/src/lib/utils/entity-search-title-context.util.js +127 -0
- package/entity/src/lib/utils/entity-search-title-context.util.js.map +1 -0
- package/entity/src/lib/utils/entity-workflow-record.util.d.ts +23 -0
- package/entity/src/lib/utils/entity-workflow-record.util.d.ts.map +1 -0
- package/entity/src/lib/utils/entity-workflow-record.util.js +38 -0
- package/entity/src/lib/utils/entity-workflow-record.util.js.map +1 -0
- package/entity/src/lib/utils/index.d.ts +10 -0
- package/entity/src/lib/utils/index.d.ts.map +1 -0
- package/entity/src/lib/utils/index.js +15 -0
- package/entity/src/lib/utils/index.js.map +1 -0
- package/entity/src/lib/utils/lookup-create-options.util.d.ts +10 -0
- package/entity/src/lib/utils/lookup-create-options.util.d.ts.map +1 -0
- package/entity/src/lib/utils/lookup-create-options.util.js +27 -0
- package/entity/src/lib/utils/lookup-create-options.util.js.map +1 -0
- package/index.d.ts +3 -0
- package/index.d.ts.map +1 -0
- package/index.js +4 -0
- package/index.js.map +1 -0
- package/package.json +21 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { AXPEntityAction } from '../types/entity-action.types';
|
|
2
|
+
import type { AXPQueryFilter, AXPRelatedEntity } from '../types';
|
|
3
|
+
export declare function entityMasterCreateAction(): AXPEntityAction;
|
|
4
|
+
export declare function entityMasterEditAction(): AXPEntityAction;
|
|
5
|
+
export declare function entityMasterBulkDeleteAction(): AXPEntityAction;
|
|
6
|
+
export declare function entityMasterViewAction(): AXPEntityAction;
|
|
7
|
+
export declare function entityMasterDeleteAction(): AXPEntityAction;
|
|
8
|
+
export declare function entityMasterCrudActions(options?: {
|
|
9
|
+
create?: boolean;
|
|
10
|
+
delete?: boolean;
|
|
11
|
+
view?: boolean;
|
|
12
|
+
edit?: boolean;
|
|
13
|
+
}): AXPEntityAction[];
|
|
14
|
+
export declare function entityMasterRecordActions(): AXPEntityAction[];
|
|
15
|
+
export declare function entityDetailsCreateActions(parentId: string): AXPEntityAction;
|
|
16
|
+
export declare function entityDetailsCreateActionsDeferredParent(): AXPEntityAction;
|
|
17
|
+
export declare function mergeForeignKeyFieldIntoCreateActions(foreignKeyField: string | undefined, actions: AXPEntityAction[] | undefined): AXPEntityAction[];
|
|
18
|
+
export declare function collectNestedCreateHiddenProperties(relatedEntity: AXPRelatedEntity): string[] | undefined;
|
|
19
|
+
export declare function entityDetailsSimpleCondition(fk: string): AXPQueryFilter;
|
|
20
|
+
export declare function entityDetailsReferenceCondition(type: string): AXPQueryFilter[];
|
|
21
|
+
export declare function entityDetailsEditAction(): AXPEntityAction;
|
|
22
|
+
export declare function entityDetailsNewEditAction(): AXPEntityAction;
|
|
23
|
+
export declare function entityOverrideDetailsViewAction(): AXPEntityAction;
|
|
24
|
+
export declare function entityDetailsCrudActions(parentId?: string, options?: {
|
|
25
|
+
create?: boolean;
|
|
26
|
+
delete?: boolean;
|
|
27
|
+
view?: boolean;
|
|
28
|
+
edit?: boolean;
|
|
29
|
+
}): AXPEntityAction[];
|
|
30
|
+
export declare function entityDetailsReferenceCreateActions(type: string): AXPEntityAction[];
|
|
31
|
+
//# sourceMappingURL=entity-action.helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-action.helpers.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/helpers/entity-action.helpers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAMjE,wBAAgB,wBAAwB,IAAI,eAAe,CAU1D;AAED,wBAAgB,sBAAsB,IAAI,eAAe,CASxD;AAED,wBAAgB,4BAA4B,IAAI,eAAe,CAS9D;AAED,wBAAgB,sBAAsB,IAAI,eAAe,CASxD;AAED,wBAAgB,wBAAwB,IAAI,eAAe,CAU1D;AAED,wBAAgB,uBAAuB,CAAC,OAAO,CAAC,EAAE;IAChD,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,GAAG,eAAe,EAAE,CA0BpB;AAED,wBAAgB,yBAAyB,IAAI,eAAe,EAAE,CAE7D;AAMD,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE,MAAM,GAAG,eAAe,CAmB5E;AAED,wBAAgB,wCAAwC,IAAI,eAAe,CAiB1E;AAED,wBAAgB,qCAAqC,CACnD,eAAe,EAAE,MAAM,GAAG,SAAS,EACnC,OAAO,EAAE,eAAe,EAAE,GAAG,SAAS,GACrC,eAAe,EAAE,CA4BnB;AAED,wBAAgB,mCAAmC,CAAC,aAAa,EAAE,gBAAgB,GAAG,MAAM,EAAE,GAAG,SAAS,CAQzG;AAED,wBAAgB,4BAA4B,CAAC,EAAE,EAAE,MAAM,GAAG,cAAc,CAMvE;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,EAAE,CAa9E;AAED,wBAAgB,uBAAuB,IAAI,eAAe,CASzD;AAED,wBAAgB,0BAA0B,IAAI,eAAe,CAW5D;AAED,wBAAgB,+BAA+B,IAAI,eAAe,CASjE;AAED,wBAAgB,wBAAwB,CACtC,QAAQ,CAAC,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE;IACR,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,GACA,eAAe,EAAE,CAuBnB;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,MAAM,GAAG,eAAe,EAAE,CA0BnF"}
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//#region ---- Entity action helpers (pure data, no Angular) ----
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.entityMasterCreateAction = entityMasterCreateAction;
|
|
5
|
+
exports.entityMasterEditAction = entityMasterEditAction;
|
|
6
|
+
exports.entityMasterBulkDeleteAction = entityMasterBulkDeleteAction;
|
|
7
|
+
exports.entityMasterViewAction = entityMasterViewAction;
|
|
8
|
+
exports.entityMasterDeleteAction = entityMasterDeleteAction;
|
|
9
|
+
exports.entityMasterCrudActions = entityMasterCrudActions;
|
|
10
|
+
exports.entityMasterRecordActions = entityMasterRecordActions;
|
|
11
|
+
exports.entityDetailsCreateActions = entityDetailsCreateActions;
|
|
12
|
+
exports.entityDetailsCreateActionsDeferredParent = entityDetailsCreateActionsDeferredParent;
|
|
13
|
+
exports.mergeForeignKeyFieldIntoCreateActions = mergeForeignKeyFieldIntoCreateActions;
|
|
14
|
+
exports.collectNestedCreateHiddenProperties = collectNestedCreateHiddenProperties;
|
|
15
|
+
exports.entityDetailsSimpleCondition = entityDetailsSimpleCondition;
|
|
16
|
+
exports.entityDetailsReferenceCondition = entityDetailsReferenceCondition;
|
|
17
|
+
exports.entityDetailsEditAction = entityDetailsEditAction;
|
|
18
|
+
exports.entityDetailsNewEditAction = entityDetailsNewEditAction;
|
|
19
|
+
exports.entityOverrideDetailsViewAction = entityOverrideDetailsViewAction;
|
|
20
|
+
exports.entityDetailsCrudActions = entityDetailsCrudActions;
|
|
21
|
+
exports.entityDetailsReferenceCreateActions = entityDetailsReferenceCreateActions;
|
|
22
|
+
const entity_action_types_1 = require("../types/entity-action.types");
|
|
23
|
+
const core_1 = require("@acorex-platform/framework-shared/core");
|
|
24
|
+
//#region Master
|
|
25
|
+
function entityMasterCreateAction() {
|
|
26
|
+
return {
|
|
27
|
+
title: '@general:actions.create.title',
|
|
28
|
+
command: {
|
|
29
|
+
name: 'Entity:Create',
|
|
30
|
+
},
|
|
31
|
+
priority: 'primary',
|
|
32
|
+
type: core_1.AXPSystemActionType.Create,
|
|
33
|
+
scope: entity_action_types_1.AXPEntityCommandScope.TypeLevel,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
function entityMasterEditAction() {
|
|
37
|
+
return {
|
|
38
|
+
title: '@general:actions.edit.title',
|
|
39
|
+
command: 'Entity:Update',
|
|
40
|
+
priority: 'secondary',
|
|
41
|
+
type: core_1.AXPSystemActionType.Update,
|
|
42
|
+
scope: entity_action_types_1.AXPEntityCommandScope.Individual,
|
|
43
|
+
default: true,
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function entityMasterBulkDeleteAction() {
|
|
47
|
+
return {
|
|
48
|
+
title: '@general:actions.delete-items.title',
|
|
49
|
+
command: 'delete-entity',
|
|
50
|
+
priority: 'primary',
|
|
51
|
+
type: core_1.AXPSystemActionType.Delete,
|
|
52
|
+
scope: entity_action_types_1.AXPEntityCommandScope.Selected,
|
|
53
|
+
order: 100,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function entityMasterViewAction() {
|
|
57
|
+
return {
|
|
58
|
+
title: '@general:actions.view.title',
|
|
59
|
+
command: 'open-entity',
|
|
60
|
+
priority: 'secondary',
|
|
61
|
+
type: core_1.AXPSystemActionType.View,
|
|
62
|
+
scope: entity_action_types_1.AXPEntityCommandScope.Individual,
|
|
63
|
+
default: true,
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
function entityMasterDeleteAction() {
|
|
67
|
+
return {
|
|
68
|
+
title: '@general:actions.delete.title',
|
|
69
|
+
command: 'delete-entity',
|
|
70
|
+
priority: 'secondary',
|
|
71
|
+
type: core_1.AXPSystemActionType.Delete,
|
|
72
|
+
scope: entity_action_types_1.AXPEntityCommandScope.Individual,
|
|
73
|
+
order: 100,
|
|
74
|
+
shortcuts: ['ctrl+shift+delete'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
function entityMasterCrudActions(options) {
|
|
78
|
+
const opts = Object.assign({ create: true, delete: true, view: true, edit: false }, options);
|
|
79
|
+
const actions = [];
|
|
80
|
+
if (opts.create) {
|
|
81
|
+
actions.push(entityMasterCreateAction());
|
|
82
|
+
}
|
|
83
|
+
if (opts.delete) {
|
|
84
|
+
actions.push(entityMasterBulkDeleteAction());
|
|
85
|
+
actions.push(entityMasterDeleteAction());
|
|
86
|
+
}
|
|
87
|
+
if (opts.view) {
|
|
88
|
+
actions.push(entityMasterViewAction());
|
|
89
|
+
}
|
|
90
|
+
if (opts.edit) {
|
|
91
|
+
actions.push(entityMasterEditAction());
|
|
92
|
+
}
|
|
93
|
+
return actions;
|
|
94
|
+
}
|
|
95
|
+
function entityMasterRecordActions() {
|
|
96
|
+
return [entityMasterDeleteAction()];
|
|
97
|
+
}
|
|
98
|
+
//#endregion
|
|
99
|
+
//#region Details
|
|
100
|
+
function entityDetailsCreateActions(parentId) {
|
|
101
|
+
return {
|
|
102
|
+
title: '@general:actions.create.title',
|
|
103
|
+
command: {
|
|
104
|
+
name: 'Entity:Create',
|
|
105
|
+
options: {
|
|
106
|
+
process: {
|
|
107
|
+
redirect: false,
|
|
108
|
+
canCreateNewOne: true,
|
|
109
|
+
data: {
|
|
110
|
+
[parentId]: '{{context.eval("id")}}',
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
priority: 'primary',
|
|
116
|
+
type: core_1.AXPSystemActionType.Create,
|
|
117
|
+
scope: entity_action_types_1.AXPEntityCommandScope.TypeLevel,
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
function entityDetailsCreateActionsDeferredParent() {
|
|
121
|
+
return {
|
|
122
|
+
title: '@general:actions.create.title',
|
|
123
|
+
command: {
|
|
124
|
+
name: 'Entity:Create',
|
|
125
|
+
options: {
|
|
126
|
+
process: {
|
|
127
|
+
redirect: false,
|
|
128
|
+
canCreateNewOne: true,
|
|
129
|
+
data: {},
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
priority: 'primary',
|
|
134
|
+
type: core_1.AXPSystemActionType.Create,
|
|
135
|
+
scope: entity_action_types_1.AXPEntityCommandScope.TypeLevel,
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
function mergeForeignKeyFieldIntoCreateActions(foreignKeyField, actions) {
|
|
139
|
+
if (!foreignKeyField || !(actions === null || actions === void 0 ? void 0 : actions.length)) {
|
|
140
|
+
return actions !== null && actions !== void 0 ? actions : [];
|
|
141
|
+
}
|
|
142
|
+
return actions.map((a) => {
|
|
143
|
+
var _a, _b, _c;
|
|
144
|
+
const cmd = a.command;
|
|
145
|
+
if (typeof cmd !== 'object' ||
|
|
146
|
+
!cmd ||
|
|
147
|
+
cmd.name !== 'Entity:Create' ||
|
|
148
|
+
a.scope !== entity_action_types_1.AXPEntityCommandScope.TypeLevel) {
|
|
149
|
+
return a;
|
|
150
|
+
}
|
|
151
|
+
const opts = ((_a = cmd.options) !== null && _a !== void 0 ? _a : {});
|
|
152
|
+
const proc = ((_b = opts['process']) !== null && _b !== void 0 ? _b : {});
|
|
153
|
+
const data = Object.assign({}, ((_c = proc['data']) !== null && _c !== void 0 ? _c : {}));
|
|
154
|
+
if (data[foreignKeyField] === undefined || data[foreignKeyField] === null || data[foreignKeyField] === '') {
|
|
155
|
+
data[foreignKeyField] = '{{ context.eval("id") }}';
|
|
156
|
+
}
|
|
157
|
+
return Object.assign(Object.assign({}, a), { command: Object.assign(Object.assign({}, cmd), { options: Object.assign(Object.assign({}, opts), { process: Object.assign(Object.assign({}, proc), { data }) }) }) });
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
function collectNestedCreateHiddenProperties(relatedEntity) {
|
|
161
|
+
var _a, _b;
|
|
162
|
+
const fk = (_a = relatedEntity.persistence) === null || _a === void 0 ? void 0 : _a.foreignKeyField;
|
|
163
|
+
const merged = [...((_b = relatedEntity.excludeProperties) !== null && _b !== void 0 ? _b : [])];
|
|
164
|
+
if (fk) {
|
|
165
|
+
merged.push(fk);
|
|
166
|
+
}
|
|
167
|
+
const unique = [...new Set(merged)];
|
|
168
|
+
return unique.length ? unique : undefined;
|
|
169
|
+
}
|
|
170
|
+
function entityDetailsSimpleCondition(fk) {
|
|
171
|
+
return {
|
|
172
|
+
name: fk,
|
|
173
|
+
operator: { type: 'equal' },
|
|
174
|
+
value: '{{context.eval("id")}}',
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
function entityDetailsReferenceCondition(type) {
|
|
178
|
+
return [
|
|
179
|
+
{
|
|
180
|
+
name: 'reference.id',
|
|
181
|
+
operator: { type: 'equal' },
|
|
182
|
+
value: '{{context.eval("id")}}',
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
name: 'reference.type',
|
|
186
|
+
operator: { type: 'equal' },
|
|
187
|
+
value: type,
|
|
188
|
+
},
|
|
189
|
+
];
|
|
190
|
+
}
|
|
191
|
+
function entityDetailsEditAction() {
|
|
192
|
+
return {
|
|
193
|
+
title: '@general:actions.edit.title',
|
|
194
|
+
command: 'Entity:Update',
|
|
195
|
+
priority: 'secondary',
|
|
196
|
+
type: core_1.AXPSystemActionType.Update,
|
|
197
|
+
default: true,
|
|
198
|
+
scope: entity_action_types_1.AXPEntityCommandScope.Individual,
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
function entityDetailsNewEditAction() {
|
|
202
|
+
return {
|
|
203
|
+
title: 'New Edit',
|
|
204
|
+
command: {
|
|
205
|
+
name: 'Entity:Update',
|
|
206
|
+
},
|
|
207
|
+
priority: 'secondary',
|
|
208
|
+
type: core_1.AXPSystemActionType.Update,
|
|
209
|
+
default: true,
|
|
210
|
+
scope: entity_action_types_1.AXPEntityCommandScope.Individual,
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
function entityOverrideDetailsViewAction() {
|
|
214
|
+
return {
|
|
215
|
+
title: '@general:actions.view.title',
|
|
216
|
+
command: 'open-entity',
|
|
217
|
+
priority: 'secondary',
|
|
218
|
+
hidden: true,
|
|
219
|
+
type: core_1.AXPSystemActionType.View,
|
|
220
|
+
scope: entity_action_types_1.AXPEntityCommandScope.Individual,
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
function entityDetailsCrudActions(parentId, options) {
|
|
224
|
+
const opts = Object.assign({ create: true, delete: true, view: true, edit: true }, options);
|
|
225
|
+
const actions = [];
|
|
226
|
+
if (opts.create) {
|
|
227
|
+
if (parentId) {
|
|
228
|
+
actions.push(entityDetailsCreateActions(parentId));
|
|
229
|
+
}
|
|
230
|
+
else {
|
|
231
|
+
actions.push(entityDetailsCreateActionsDeferredParent());
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
if (opts.edit) {
|
|
235
|
+
actions.push(entityDetailsEditAction());
|
|
236
|
+
}
|
|
237
|
+
if (opts.view) {
|
|
238
|
+
actions.push(entityOverrideDetailsViewAction());
|
|
239
|
+
}
|
|
240
|
+
return actions;
|
|
241
|
+
}
|
|
242
|
+
function entityDetailsReferenceCreateActions(type) {
|
|
243
|
+
return [
|
|
244
|
+
{
|
|
245
|
+
title: '@general:actions.create.title',
|
|
246
|
+
command: {
|
|
247
|
+
name: 'Entity:Create',
|
|
248
|
+
options: {
|
|
249
|
+
process: {
|
|
250
|
+
redirect: false,
|
|
251
|
+
canCreateNewOne: true,
|
|
252
|
+
data: {
|
|
253
|
+
reference: {
|
|
254
|
+
id: '{{context.eval("id")}}',
|
|
255
|
+
type: type,
|
|
256
|
+
},
|
|
257
|
+
},
|
|
258
|
+
},
|
|
259
|
+
},
|
|
260
|
+
},
|
|
261
|
+
priority: 'primary',
|
|
262
|
+
type: core_1.AXPSystemActionType.Create,
|
|
263
|
+
scope: entity_action_types_1.AXPEntityCommandScope.TypeLevel,
|
|
264
|
+
},
|
|
265
|
+
entityDetailsEditAction(),
|
|
266
|
+
entityOverrideDetailsViewAction(),
|
|
267
|
+
];
|
|
268
|
+
}
|
|
269
|
+
//#endregion
|
|
270
|
+
//# sourceMappingURL=entity-action.helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-action.helpers.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/helpers/entity-action.helpers.ts"],"names":[],"mappings":";AAAA,iEAAiE;;AASjE,4DAUC;AAED,wDASC;AAED,oEASC;AAED,wDASC;AAED,4DAUC;AAED,0DA+BC;AAED,8DAEC;AAMD,gEAmBC;AAED,4FAiBC;AAED,sFA+BC;AAED,kFAQC;AAED,oEAMC;AAED,0EAaC;AAED,0DASC;AAED,gEAWC;AAED,0EASC;AAED,4DA+BC;AAED,kFA0BC;AA/SD,sEAAqE;AACrE,iEAA6E;AAE7E,gBAAgB;AAEhB,SAAgB,wBAAwB;IACtC,OAAO;QACL,KAAK,EAAE,+BAA+B;QACtC,OAAO,EAAE;YACP,IAAI,EAAE,eAAe;SACtB;QACD,QAAQ,EAAE,SAAS;QACnB,IA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AED,SAAgB,mCAAmC,CAAC,IAAY;IAC9D,OAAO;QACL;YACE,KAAK,EAAE,+BAA+B;YACtC,OAAO,EAAE;gBACP,IAAI,EAAE,eAAe;gBACrB,OAAO,EAAE;oBACP,OAAO,EAAE;wBACP,QAAQ,EAAE,KAAK;wBACf,eAAe,EAAE,IAAI;wBACrB,IAAI,EAAE;4BACJ,SAAS,EAAE;gCACT,EAAE,EAAE,wBAAwB;gCAC5B,IAAI,EAAE,IAAI;6BACX;yBACF;qBACF;iBACF;aACF;YACD,QAAQ,EAAE,SAAS;YACnB,IAAI,EAAE,0BAAmB,CAAC,MAAM;YAChC,KAAK,EAAE,2CAAqB,CAAC,SAAS;SACvC;QACD,uBAAuB,EAAE;QACzB,+BAA+B,EAAE;KAClC,CAAC;AACJ,CAAC;AAED,YAAY"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/helpers/index.ts"],"names":[],"mappings":"AAEA,cAAc,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//#region ---- Helpers barrel ----
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
tslib_1.__exportStar(require("./entity-action.helpers"), exports);
|
|
6
|
+
//#endregion
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/helpers/index.ts"],"names":[],"mappings":";AAAA,kCAAkC;;;AAElC,kEAAwC;AAExC,YAAY"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../libs/framework/shared/entity/src/lib/index.ts"],"names":[],"mappings":"AAEA,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//#region ---- Barrel ----
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
tslib_1.__exportStar(require("./types"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./helpers"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./utils"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./constants"), exports);
|
|
9
|
+
//#endregion
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/framework/shared/entity/src/lib/index.ts"],"names":[],"mappings":";AAAA,0BAA0B;;;AAE1B,kDAAwB;AACxB,oDAA0B;AAC1B,kDAAwB;AACxB,sDAA4B;AAE5B,YAAY"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { type AXPMetaData, AXPSystemActionType } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import type { AXPopupSizeType, AXStyleColorType } from '@acorex-platform/framework-shared/core';
|
|
3
|
+
export declare enum AXPEntityCommandScope {
|
|
4
|
+
TypeLevel = "typeLevel",
|
|
5
|
+
Selected = "selected",
|
|
6
|
+
Individual = "individual",
|
|
7
|
+
Section = "section"
|
|
8
|
+
}
|
|
9
|
+
export declare enum AXPEntityQueryType {
|
|
10
|
+
Single = "single",
|
|
11
|
+
List = "list"
|
|
12
|
+
}
|
|
13
|
+
export interface AXPEntityCommand {
|
|
14
|
+
execute: string | Function;
|
|
15
|
+
permissions?: string[];
|
|
16
|
+
}
|
|
17
|
+
export interface AXPEntityQuery {
|
|
18
|
+
execute: string | Function;
|
|
19
|
+
type: AXPEntityQueryType;
|
|
20
|
+
}
|
|
21
|
+
export type AXPCommandActionType = AXPSystemActionType;
|
|
22
|
+
export interface AXPCommandActionLook {
|
|
23
|
+
color: AXStyleColorType;
|
|
24
|
+
icon: string;
|
|
25
|
+
}
|
|
26
|
+
export type AXPCommandActionPriority = 'primary' | 'secondary';
|
|
27
|
+
export type AXPCommandActionCallback = string | {
|
|
28
|
+
name: string;
|
|
29
|
+
options?: {
|
|
30
|
+
decoration?: {
|
|
31
|
+
header?: {
|
|
32
|
+
title?: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
process?: {
|
|
36
|
+
data?: any;
|
|
37
|
+
[name: string]: any;
|
|
38
|
+
};
|
|
39
|
+
layout?: {
|
|
40
|
+
size?: AXPopupSizeType;
|
|
41
|
+
};
|
|
42
|
+
[name: string]: any;
|
|
43
|
+
};
|
|
44
|
+
metadata?: AXPMetaData;
|
|
45
|
+
};
|
|
46
|
+
export interface AXPCommandActionDisplay extends Partial<AXPCommandActionLook> {
|
|
47
|
+
name?: string;
|
|
48
|
+
command: AXPCommandActionCallback;
|
|
49
|
+
title: string;
|
|
50
|
+
type: AXPSystemActionType | string;
|
|
51
|
+
priority: 'primary' | 'secondary' | 'none';
|
|
52
|
+
separated?: boolean;
|
|
53
|
+
permissions?: string[];
|
|
54
|
+
hidden?: boolean | string;
|
|
55
|
+
disabled?: boolean | string;
|
|
56
|
+
default?: boolean;
|
|
57
|
+
order?: number;
|
|
58
|
+
/**
|
|
59
|
+
* Keyboard chords for this action (e.g. `'ctrl+shift+a'`).
|
|
60
|
+
* Pass `[]` to disable shortcuts. When omitted, platform defaults may apply for known commands.
|
|
61
|
+
*/
|
|
62
|
+
shortcuts?: string[];
|
|
63
|
+
}
|
|
64
|
+
export interface AXPEntityAction extends AXPCommandActionDisplay {
|
|
65
|
+
scope: AXPEntityCommandScope;
|
|
66
|
+
/** Child actions for dropdown submenu */
|
|
67
|
+
items?: AXPEntityAction[];
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=entity-action.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-action.types.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/types/entity-action.types.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,WAAW,EAChB,mBAAmB,EACpB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAEhG,oBAAY,qBAAqB;IAC/B,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,UAAU,eAAe;IACzB,OAAO,YAAY;CACpB;AAED,oBAAY,kBAAkB;IAC5B,MAAM,WAAW;IACjB,IAAI,SAAS;CACd;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC3B,IAAI,EAAE,kBAAkB,CAAC;CAC1B;AAED,MAAM,MAAM,oBAAoB,GAAG,mBAAmB,CAAC;AAEvD,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,gBAAgB,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,MAAM,wBAAwB,GAAG,SAAS,GAAG,WAAW,CAAC;AAG/D,MAAM,MAAM,wBAAwB,GAChC,MAAM,GACN;IACE,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE;QACR,UAAU,CAAC,EAAE;YACX,MAAM,CAAC,EAAE;gBACP,KAAK,CAAC,EAAE,MAAM,CAAC;aAChB,CAAC;SACH,CAAC;QACF,OAAO,CAAC,EAAE;YACR,IAAI,CAAC,EAAE,GAAG,CAAC;YACX,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAAC;SACrB,CAAC;QACF,MAAM,CAAC,EAAE;YACP,IAAI,CAAC,EAAE,eAAe,CAAC;SACxB,CAAC;QACF,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAAC;KACrB,CAAC;IACF,QAAQ,CAAC,EAAE,WAAW,CAAC;CACxB,CAAC;AAEN,MAAM,WAAW,uBAAwB,SAAQ,OAAO,CAAC,oBAAoB,CAAC;IAC5E,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,wBAAwB,CAAC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,mBAAmB,GAAG,MAAM,CAAC;IACnC,QAAQ,EAAE,SAAS,GAAG,WAAW,GAAG,MAAM,CAAC;IAC3C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB;AAED,MAAM,WAAW,eAAgB,SAAQ,uBAAuB;IAC9D,KAAK,EAAE,qBAAqB,CAAC;IAC7B,yCAAyC;IACzC,KAAK,CAAC,EAAE,eAAe,EAAE,CAAC;CAC3B"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//#region ---- Entity actions ----
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.AXPEntityQueryType = exports.AXPEntityCommandScope = void 0;
|
|
5
|
+
var AXPEntityCommandScope;
|
|
6
|
+
(function (AXPEntityCommandScope) {
|
|
7
|
+
AXPEntityCommandScope["TypeLevel"] = "typeLevel";
|
|
8
|
+
AXPEntityCommandScope["Selected"] = "selected";
|
|
9
|
+
AXPEntityCommandScope["Individual"] = "individual";
|
|
10
|
+
AXPEntityCommandScope["Section"] = "section";
|
|
11
|
+
})(AXPEntityCommandScope || (exports.AXPEntityCommandScope = AXPEntityCommandScope = {}));
|
|
12
|
+
var AXPEntityQueryType;
|
|
13
|
+
(function (AXPEntityQueryType) {
|
|
14
|
+
AXPEntityQueryType["Single"] = "single";
|
|
15
|
+
AXPEntityQueryType["List"] = "list";
|
|
16
|
+
})(AXPEntityQueryType || (exports.AXPEntityQueryType = AXPEntityQueryType = {}));
|
|
17
|
+
//#endregion
|
|
18
|
+
//# sourceMappingURL=entity-action.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-action.types.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/types/entity-action.types.ts"],"names":[],"mappings":";AAAA,kCAAkC;;;AAQlC,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAC/B,gDAAuB,CAAA;IACvB,8CAAqB,CAAA;IACrB,kDAAyB,CAAA;IACzB,4CAAmB,CAAA;AACrB,CAAC,EALW,qBAAqB,qCAArB,qBAAqB,QAKhC;AAED,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,uCAAiB,CAAA;IACjB,mCAAa,CAAA;AACf,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B;AAqED,YAAY"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { AXPExpression } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import type { AXStyleColorType } from '@acorex-platform/framework-shared/core';
|
|
3
|
+
import type { AXPEntityPropertyLayoutConfig } from './entity-property.types';
|
|
4
|
+
import type { AXPEntityDisplayField } from './entity-display-field.types';
|
|
5
|
+
/** Card layout field presentation in master list card view. */
|
|
6
|
+
export type AXPCardFieldDisplay = 'simple' | 'badge';
|
|
7
|
+
/** Badge color: semantic token or per-row expression (`{{ context.eval(...) }}`). */
|
|
8
|
+
export type AXPCardBadgeColor = AXStyleColorType | AXPExpression;
|
|
9
|
+
export interface AXPCardBadgeDisplayOptions {
|
|
10
|
+
/** Semantic color or expression evaluated against row context. */
|
|
11
|
+
color?: AXPCardBadgeColor;
|
|
12
|
+
}
|
|
13
|
+
export interface AXPCardBadgeDisplay {
|
|
14
|
+
type: 'badge';
|
|
15
|
+
options?: AXPCardBadgeDisplayOptions;
|
|
16
|
+
}
|
|
17
|
+
/** Shorthand (`badge` / `simple`) or structured badge config with optional per-row color. */
|
|
18
|
+
export type AXPCardFieldDisplayConfig = AXPCardFieldDisplay | AXPCardBadgeDisplay;
|
|
19
|
+
/** Card layout field in master list view. */
|
|
20
|
+
export type AXPCardField = AXPEntityDisplayField & {
|
|
21
|
+
layout?: AXPEntityPropertyLayoutConfig;
|
|
22
|
+
/**
|
|
23
|
+
* Field presentation. Default: `simple` (card body).
|
|
24
|
+
* Use `badge` or `{ type: 'badge', options: { color } }` for header chips beside title.
|
|
25
|
+
*/
|
|
26
|
+
display?: AXPCardFieldDisplayConfig;
|
|
27
|
+
/**
|
|
28
|
+
* Badge color when presentation is badge-shaped.
|
|
29
|
+
* Prefer `display: { type: 'badge', options: { color } }` for new definitions.
|
|
30
|
+
* Omit for status fields — color is resolved from the status definition per row.
|
|
31
|
+
*/
|
|
32
|
+
badgeColor?: AXPCardBadgeColor;
|
|
33
|
+
};
|
|
34
|
+
/** Whether the card field is shown as a header badge (not in the card body). */
|
|
35
|
+
export declare function isCardFieldBadgeDisplay(display: AXPCardFieldDisplayConfig | undefined): display is 'badge' | AXPCardBadgeDisplay;
|
|
36
|
+
/** Resolves static badge color config from {@link AXPCardField.display} and legacy {@link AXPCardField.badgeColor}. */
|
|
37
|
+
export declare function resolveCardFieldBadgeColor(field: Pick<AXPCardField, 'display' | 'badgeColor'>): AXPCardBadgeColor | undefined;
|
|
38
|
+
//# sourceMappingURL=entity-card-field.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-card-field.types.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/types/entity-card-field.types.ts"],"names":[],"mappings":"AAEA,OAAO,KA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4
|
+
exports.isCardFieldBadgeDisplay = isCardFieldBadgeDisplay;
|
|
5
|
+
exports.resolveCardFieldBadgeColor = resolveCardFieldBadgeColor;
|
|
6
|
+
/** Whether the card field is shown as a header badge (not in the card body). */
|
|
7
|
+
function isCardFieldBadgeDisplay(display) {
|
|
8
|
+
if (display === 'badge') {
|
|
9
|
+
return true;
|
|
10
|
+
}
|
|
11
|
+
return typeof display === 'object' && display !== null && display.type === 'badge';
|
|
12
|
+
}
|
|
13
|
+
/** Resolves static badge color config from {@link AXPCardField.display} and legacy {@link AXPCardField.badgeColor}. */
|
|
14
|
+
function resolveCardFieldBadgeColor(field) {
|
|
15
|
+
var _a, _b;
|
|
16
|
+
if (typeof field.display === 'object' && field.display.type === 'badge') {
|
|
17
|
+
return (_b = (_a = field.display.options) === null || _a === void 0 ? void 0 : _a.color) !== null && _b !== void 0 ? _b : field.badgeColor;
|
|
18
|
+
}
|
|
19
|
+
if (field.display === 'badge') {
|
|
20
|
+
return field.badgeColor;
|
|
21
|
+
}
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
//# sourceMappingURL=entity-card-field.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-card-field.types.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/types/entity-card-field.types.ts"],"names":[],"mappings":";AAAA,sCAAsC;;AA6CtC,0DAOC;AAGD,gEAUC;AArBD,gFAAgF;AAChF,SAAgB,uBAAuB,CACrC,OAA8C;IAE9C,IAAI,OAAO,KAAK,OAAO,EAAE,CAAC;QACxB,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,KAAK,IAAI,IAAI,OAAO,CAAC,IAAI,KAAK,OAAO,CAAC;AACrF,CAAC;AAED,uHAAuH;AACvH,SAAgB,0BAA0B,CACxC,KAAmD;;IAEnD,IAAI,OAAO,KAAK,CAAC,OAAO,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,KAAK,OAAO,EAAE,CAAC;QACxE,OAAO,MAAA,MAAA,KAAK,CAAC,OAAO,CAAC,OAAO,0CAAE,KAAK,mCAAI,KAAK,CAAC,UAAU,CAAC;IAC1D,CAAC;IACD,IAAI,KAAK,CAAC,OAAO,KAAK,OAAO,EAAE,CAAC;QAC9B,OAAO,KAAK,CAAC,UAAU,CAAC;IAC1B,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,YAAY"}
|