@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,149 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveEntityPropertyInlineFilterField = void 0;
|
|
4
|
+
exports.collectQuickSearchPathsFromSingleEntityDefinition = collectQuickSearchPathsFromSingleEntityDefinition;
|
|
5
|
+
exports.collectNestedFieldPathsFromEntityColumns = collectNestedFieldPathsFromEntityColumns;
|
|
6
|
+
exports.collectEntityQuickSearchFieldPaths = collectEntityQuickSearchFieldPaths;
|
|
7
|
+
const tslib_1 = require("tslib");
|
|
8
|
+
const entity_property_display_path_util_1 = require("./entity-property-display-path.util");
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region ---- Quick search: schema-driven field paths ----
|
|
11
|
+
const NON_TEXT_DATATYPES = new Set([
|
|
12
|
+
'number',
|
|
13
|
+
'integer',
|
|
14
|
+
'int',
|
|
15
|
+
'long',
|
|
16
|
+
'float',
|
|
17
|
+
'double',
|
|
18
|
+
'decimal',
|
|
19
|
+
'money',
|
|
20
|
+
'currency',
|
|
21
|
+
'boolean',
|
|
22
|
+
'bool',
|
|
23
|
+
'date',
|
|
24
|
+
'datetime',
|
|
25
|
+
'time',
|
|
26
|
+
'object',
|
|
27
|
+
'array',
|
|
28
|
+
'json',
|
|
29
|
+
'image',
|
|
30
|
+
'file',
|
|
31
|
+
'binary',
|
|
32
|
+
]);
|
|
33
|
+
/**
|
|
34
|
+
* Whether an entity property likely stores free text worth a `contains` quick-search clause.
|
|
35
|
+
*/
|
|
36
|
+
function isTextLikeDataType(dataType) {
|
|
37
|
+
const dt = (dataType !== null && dataType !== void 0 ? dataType : 'string').toLowerCase().trim();
|
|
38
|
+
if (!dt || NON_TEXT_DATATYPES.has(dt)) {
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Lodash-get paths for quick search from a single entity definition: string-like property names
|
|
45
|
+
* plus lookup `expose[].target` paths (e.g. `brand.title`).
|
|
46
|
+
*/
|
|
47
|
+
function collectQuickSearchPathsFromSingleEntityDefinition(entity) {
|
|
48
|
+
var _a, _b;
|
|
49
|
+
if (!((_a = entity === null || entity === void 0 ? void 0 : entity.properties) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
50
|
+
return [];
|
|
51
|
+
}
|
|
52
|
+
const paths = new Set();
|
|
53
|
+
for (const property of entity.properties) {
|
|
54
|
+
if (isTextLikeDataType((_b = property.schema) === null || _b === void 0 ? void 0 : _b.dataType)) {
|
|
55
|
+
paths.add(property.name);
|
|
56
|
+
}
|
|
57
|
+
for (const target of (0, entity_property_display_path_util_1.collectPropertyExposeTargetPaths)(property)) {
|
|
58
|
+
paths.add(target);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return [...paths];
|
|
62
|
+
}
|
|
63
|
+
//#endregion
|
|
64
|
+
//#region ---- Column-derived nested paths ----
|
|
65
|
+
/**
|
|
66
|
+
* Adds dotted paths from master columns (`name` or `options.dataPath`), e.g. `person.fullName`, `jobDefinition.title`.
|
|
67
|
+
*/
|
|
68
|
+
function collectNestedFieldPathsFromEntityColumns(entity) {
|
|
69
|
+
var _a, _b;
|
|
70
|
+
if (!((_a = entity === null || entity === void 0 ? void 0 : entity.columns) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
71
|
+
return [];
|
|
72
|
+
}
|
|
73
|
+
const paths = new Set();
|
|
74
|
+
for (const col of entity.columns) {
|
|
75
|
+
const name = col.name.trim();
|
|
76
|
+
if (name.includes('.')) {
|
|
77
|
+
paths.add(name);
|
|
78
|
+
}
|
|
79
|
+
const rawDp = (_b = col.options) === null || _b === void 0 ? void 0 : _b['dataPath'];
|
|
80
|
+
if (typeof rawDp === 'string') {
|
|
81
|
+
const dp = rawDp.trim();
|
|
82
|
+
if (dp.includes('.')) {
|
|
83
|
+
paths.add(dp);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
return [...paths];
|
|
88
|
+
}
|
|
89
|
+
//#endregion
|
|
90
|
+
//#region ---- Related merge-detail paths ----
|
|
91
|
+
function parseRelatedEntityFullName(fullName) {
|
|
92
|
+
const t = fullName.trim();
|
|
93
|
+
const idx = t.indexOf('.');
|
|
94
|
+
if (idx <= 0 || idx >= t.length - 1) {
|
|
95
|
+
return null;
|
|
96
|
+
}
|
|
97
|
+
return {
|
|
98
|
+
moduleName: t.slice(0, idx),
|
|
99
|
+
entityName: t.slice(idx + 1),
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
//#endregion
|
|
103
|
+
//#region ---- Public API ----
|
|
104
|
+
/**
|
|
105
|
+
* Collects lodash-get field paths used for mock/API quick search (`contains` / OR filters):
|
|
106
|
+
* host properties and lookup expose targets, dotted column paths, and merge-detail related entities
|
|
107
|
+
* prefixed with the related entity merge `persistence.dataPath` (e.g. `person.firstName`).
|
|
108
|
+
*/
|
|
109
|
+
function collectEntityQuickSearchFieldPaths(entity, resolveRelatedDefinition) {
|
|
110
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
111
|
+
var _a, _b, _c, _d;
|
|
112
|
+
if (!entity) {
|
|
113
|
+
return [];
|
|
114
|
+
}
|
|
115
|
+
const paths = new Set();
|
|
116
|
+
for (const p of collectQuickSearchPathsFromSingleEntityDefinition(entity)) {
|
|
117
|
+
paths.add(p);
|
|
118
|
+
}
|
|
119
|
+
for (const p of collectNestedFieldPathsFromEntityColumns(entity)) {
|
|
120
|
+
paths.add(p);
|
|
121
|
+
}
|
|
122
|
+
const related = (_a = entity.relatedEntities) !== null && _a !== void 0 ? _a : [];
|
|
123
|
+
for (const rel of related) {
|
|
124
|
+
const dataPath = (_c = (_b = rel.persistence) === null || _b === void 0 ? void 0 : _b.dataPath) === null || _c === void 0 ? void 0 : _c.trim();
|
|
125
|
+
if (!dataPath || ((_d = rel.layout) === null || _d === void 0 ? void 0 : _d.type) !== 'merge-detail') {
|
|
126
|
+
continue;
|
|
127
|
+
}
|
|
128
|
+
const parsed = rel.entity ? parseRelatedEntityFullName(rel.entity) : null;
|
|
129
|
+
if (!parsed) {
|
|
130
|
+
continue;
|
|
131
|
+
}
|
|
132
|
+
const relatedDef = yield resolveRelatedDefinition(parsed.moduleName, parsed.entityName);
|
|
133
|
+
if (!relatedDef) {
|
|
134
|
+
continue;
|
|
135
|
+
}
|
|
136
|
+
for (const p of collectQuickSearchPathsFromSingleEntityDefinition(relatedDef)) {
|
|
137
|
+
paths.add(`${dataPath}.${p}`);
|
|
138
|
+
}
|
|
139
|
+
for (const p of collectNestedFieldPathsFromEntityColumns(relatedDef)) {
|
|
140
|
+
paths.add(`${dataPath}.${p}`);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
return [...paths];
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
var entity_property_display_path_util_2 = require("./entity-property-display-path.util");
|
|
147
|
+
Object.defineProperty(exports, "resolveEntityPropertyInlineFilterField", { enumerable: true, get: function () { return entity_property_display_path_util_2.resolveEntityPropertyInlineFilterField; } });
|
|
148
|
+
//#endregion
|
|
149
|
+
//# sourceMappingURL=entity-quick-search-paths.util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-quick-search-paths.util.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/utils/entity-quick-search-paths.util.ts"],"names":[],"mappings":";;;AAqDA,8GAkBC;AASD,4FAuBC;AA2BD,gFA6CC;;AA7KD,2FAAuF;AASvF,YAAY;AAEZ,2DAA2D;AAE3D,MAAM,kBAAkB,GAAG,IAAI,GAAG,CAAC;IACjC,QAAQ;IACR,SAAS;IACT,KAAK;IACL,MAAM;IACN,OAAO;IACP,QAAQ;IACR,SAAS;IAC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UAAU,CAAC,EAAE,CAAC;gBAC9E,KAAK,CAAC,GAAG,CAAC,GAAG,QAAQ,IAAI,CAAC,EAAE,CAAC,CAAC;YAChC,CAAC;YAED,KAAK,MAAM,CAAC,IAAI,wCAAwC,CAAC,UAAU,CAAC,EAAE,CAAC;gBACrE,KAAK,CAAC,GAAG,CAAC,GAAG,QAAQ,IAAI,CAAC,EAAE,CAAC,CAAC;YAChC,CAAC;QACH,CAAC;QAED,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC;IACpB,CAAC;CAAA;AAED,yFAA6F;AAApF,2JAAA,sCAAsC,OAAA;AAE/C,YAAY"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { AXPEntity } from '../types/entity-definition.types';
|
|
2
|
+
export interface AXPEntitySearchTitleContext {
|
|
3
|
+
/** Templates tried after the primary `searchResult.title` fails (`single.title`, lookup, individual). */
|
|
4
|
+
fallbackTemplates: string[];
|
|
5
|
+
/** Entity property paths tried when templates do not resolve (`lookup`, identifier, common fields). */
|
|
6
|
+
fallbackFields: string[];
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Builds entity-scoped fallback metadata for global search (registered on each entity search definition).
|
|
10
|
+
*/
|
|
11
|
+
export declare function buildEntitySearchTitleContext(entity: AXPEntity, primaryTemplate?: string): AXPEntitySearchTitleContext;
|
|
12
|
+
/**
|
|
13
|
+
* Row title template chain aligned with entity layouts.
|
|
14
|
+
* Priority: `interfaces.master.single.title` → `formats.searchResult.title` → `formats.individual`.
|
|
15
|
+
*/
|
|
16
|
+
export declare function resolveEntityRowTitleTemplate(entity: AXPEntity | null | undefined): string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Record title template for modify popups: `interfaces.master.update.title` → `single.title`.
|
|
19
|
+
*/
|
|
20
|
+
export declare function resolveEntityModifyRecordTitleTemplate(entity: AXPEntity | null | undefined): string | undefined;
|
|
21
|
+
//# sourceMappingURL=entity-search-title-context.util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-search-title-context.util.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/utils/entity-search-title-context.util.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AASlE,MAAM,WAAW,2BAA2B;IAC1C,yGAAyG;IACzG,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,uGAAuG;IACvG,cAAc,EAAE,MAAM,EAAE,CAAC;CAC1B;AA0DD;;GAEG;AACH,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,SAAS,EACjB,eAAe,CAAC,EAAE,MAAM,GACvB,2BAA2B,CA0B7B;AAED;;;GAGG;AACH,wBAAgB,6BAA6B,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CA0BtG;AAED;;GAEG;AACH,wBAAgB,sCAAsC,CACpD,MAAM,EAAE,SAAS,GAAG,IAAI,GAAG,SAAS,GACnC,MAAM,GAAG,SAAS,CAgBpB"}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildEntitySearchTitleContext = buildEntitySearchTitleContext;
|
|
4
|
+
exports.resolveEntityRowTitleTemplate = resolveEntityRowTitleTemplate;
|
|
5
|
+
exports.resolveEntityModifyRecordTitleTemplate = resolveEntityModifyRecordTitleTemplate;
|
|
6
|
+
const entity_display_template_util_1 = require("./entity-display-template.util");
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region ---- Entity metadata ----
|
|
9
|
+
const DEFAULT_DISPLAY_FIELD_CANDIDATES = [
|
|
10
|
+
'title',
|
|
11
|
+
'name',
|
|
12
|
+
'code',
|
|
13
|
+
'fullName',
|
|
14
|
+
'displayName',
|
|
15
|
+
'subject',
|
|
16
|
+
'description',
|
|
17
|
+
];
|
|
18
|
+
function entityHasProperty(entity, path) {
|
|
19
|
+
var _a, _b;
|
|
20
|
+
const root = path.split('.')[0];
|
|
21
|
+
return (_b = (_a = entity.properties) === null || _a === void 0 ? void 0 : _a.some((property) => property.name === root)) !== null && _b !== void 0 ? _b : false;
|
|
22
|
+
}
|
|
23
|
+
function resolveEntityDisplayPropertyPaths(entity) {
|
|
24
|
+
var _a, _b, _c, _d, _e;
|
|
25
|
+
const paths = [];
|
|
26
|
+
const add = (path) => {
|
|
27
|
+
const trimmed = path === null || path === void 0 ? void 0 : path.trim();
|
|
28
|
+
if (!trimmed || trimmed.includes('{') || paths.includes(trimmed)) {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
if (entityHasProperty(entity, trimmed)) {
|
|
32
|
+
paths.push(trimmed);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
const lookupFormat = (_b = (_a = entity.formats) === null || _a === void 0 ? void 0 : _a.lookup) === null || _b === void 0 ? void 0 : _b.trim();
|
|
36
|
+
if (lookupFormat && !lookupFormat.includes('{')) {
|
|
37
|
+
add(lookupFormat);
|
|
38
|
+
}
|
|
39
|
+
for (const candidate of DEFAULT_DISPLAY_FIELD_CANDIDATES) {
|
|
40
|
+
add(candidate);
|
|
41
|
+
}
|
|
42
|
+
const identifierPlugin = (_c = entity.plugins) === null || _c === void 0 ? void 0 : _c.find((plugin) => plugin.name === 'identifier');
|
|
43
|
+
const identifierField = (_d = identifierPlugin === null || identifierPlugin === void 0 ? void 0 : identifierPlugin.options) === null || _d === void 0 ? void 0 : _d['field'];
|
|
44
|
+
if (typeof identifierField === 'string') {
|
|
45
|
+
add(identifierField);
|
|
46
|
+
}
|
|
47
|
+
if (paths.length === 0) {
|
|
48
|
+
const firstStringProperty = (_e = entity.properties) === null || _e === void 0 ? void 0 : _e.find((property) => { var _a; return ((_a = property.schema) === null || _a === void 0 ? void 0 : _a.dataType) === 'string' && property.name !== 'id'; });
|
|
49
|
+
add(firstStringProperty === null || firstStringProperty === void 0 ? void 0 : firstStringProperty.name);
|
|
50
|
+
}
|
|
51
|
+
return paths;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Builds entity-scoped fallback metadata for global search (registered on each entity search definition).
|
|
55
|
+
*/
|
|
56
|
+
function buildEntitySearchTitleContext(entity, primaryTemplate) {
|
|
57
|
+
var _a, _b, _c, _d, _e;
|
|
58
|
+
const fallbackTemplates = [];
|
|
59
|
+
const normalizedPrimary = (primaryTemplate === null || primaryTemplate === void 0 ? void 0 : primaryTemplate.trim())
|
|
60
|
+
? (0, entity_display_template_util_1.normalizeEntityDisplayTemplate)(primaryTemplate.trim())
|
|
61
|
+
: undefined;
|
|
62
|
+
const addTemplate = (raw) => {
|
|
63
|
+
const trimmed = raw === null || raw === void 0 ? void 0 : raw.trim();
|
|
64
|
+
if (!trimmed || !(0, entity_display_template_util_1.isRowBoundEntityDisplayTemplate)(trimmed)) {
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
const normalized = (0, entity_display_template_util_1.normalizeEntityDisplayTemplate)(trimmed);
|
|
68
|
+
if (!normalized || normalized === normalizedPrimary || fallbackTemplates.includes(normalized)) {
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
fallbackTemplates.push(normalized);
|
|
72
|
+
};
|
|
73
|
+
addTemplate((_c = (_b = (_a = entity.interfaces) === null || _a === void 0 ? void 0 : _a.master) === null || _b === void 0 ? void 0 : _b.single) === null || _c === void 0 ? void 0 : _c.title);
|
|
74
|
+
addTemplate((_d = entity.formats) === null || _d === void 0 ? void 0 : _d.lookup);
|
|
75
|
+
addTemplate((_e = entity.formats) === null || _e === void 0 ? void 0 : _e.individual);
|
|
76
|
+
return {
|
|
77
|
+
fallbackTemplates,
|
|
78
|
+
fallbackFields: resolveEntityDisplayPropertyPaths(entity),
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Row title template chain aligned with entity layouts.
|
|
83
|
+
* Priority: `interfaces.master.single.title` → `formats.searchResult.title` → `formats.individual`.
|
|
84
|
+
*/
|
|
85
|
+
function resolveEntityRowTitleTemplate(entity) {
|
|
86
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
87
|
+
if (!entity) {
|
|
88
|
+
return undefined;
|
|
89
|
+
}
|
|
90
|
+
const singleTitle = (_d = (_c = (_b = (_a = entity.interfaces) === null || _a === void 0 ? void 0 : _a.master) === null || _b === void 0 ? void 0 : _b.single) === null || _c === void 0 ? void 0 : _c.title) === null || _d === void 0 ? void 0 : _d.trim();
|
|
91
|
+
if (singleTitle && (0, entity_display_template_util_1.isRowBoundEntityDisplayTemplate)(singleTitle)) {
|
|
92
|
+
return (0, entity_display_template_util_1.normalizeEntityDisplayTemplate)(singleTitle);
|
|
93
|
+
}
|
|
94
|
+
const searchTitle = (_g = (_f = (_e = entity.formats) === null || _e === void 0 ? void 0 : _e.searchResult) === null || _f === void 0 ? void 0 : _f.title) === null || _g === void 0 ? void 0 : _g.trim();
|
|
95
|
+
if (searchTitle && (0, entity_display_template_util_1.isRowBoundEntityDisplayTemplate)(searchTitle)) {
|
|
96
|
+
return (0, entity_display_template_util_1.normalizeEntityDisplayTemplate)(searchTitle);
|
|
97
|
+
}
|
|
98
|
+
const lookupFormat = (_j = (_h = entity.formats) === null || _h === void 0 ? void 0 : _h.lookup) === null || _j === void 0 ? void 0 : _j.trim();
|
|
99
|
+
if (lookupFormat && (0, entity_display_template_util_1.isRowBoundEntityDisplayTemplate)(lookupFormat)) {
|
|
100
|
+
return (0, entity_display_template_util_1.normalizeEntityDisplayTemplate)(lookupFormat);
|
|
101
|
+
}
|
|
102
|
+
const individual = (_l = (_k = entity.formats) === null || _k === void 0 ? void 0 : _k.individual) === null || _l === void 0 ? void 0 : _l.trim();
|
|
103
|
+
if (individual && (0, entity_display_template_util_1.isRowBoundEntityDisplayTemplate)(individual)) {
|
|
104
|
+
return (0, entity_display_template_util_1.normalizeEntityDisplayTemplate)(individual);
|
|
105
|
+
}
|
|
106
|
+
return undefined;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Record title template for modify popups: `interfaces.master.update.title` → `single.title`.
|
|
110
|
+
*/
|
|
111
|
+
function resolveEntityModifyRecordTitleTemplate(entity) {
|
|
112
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
113
|
+
if (!entity) {
|
|
114
|
+
return undefined;
|
|
115
|
+
}
|
|
116
|
+
const updateTitle = (_d = (_c = (_b = (_a = entity.interfaces) === null || _a === void 0 ? void 0 : _a.master) === null || _b === void 0 ? void 0 : _b.update) === null || _c === void 0 ? void 0 : _c.title) === null || _d === void 0 ? void 0 : _d.trim();
|
|
117
|
+
if (updateTitle && (0, entity_display_template_util_1.isRowBoundEntityDisplayTemplate)(updateTitle)) {
|
|
118
|
+
return (0, entity_display_template_util_1.normalizeEntityDisplayTemplate)(updateTitle);
|
|
119
|
+
}
|
|
120
|
+
const singleTitle = (_h = (_g = (_f = (_e = entity.interfaces) === null || _e === void 0 ? void 0 : _e.master) === null || _f === void 0 ? void 0 : _f.single) === null || _g === void 0 ? void 0 : _g.title) === null || _h === void 0 ? void 0 : _h.trim();
|
|
121
|
+
if (singleTitle && (0, entity_display_template_util_1.isRowBoundEntityDisplayTemplate)(singleTitle)) {
|
|
122
|
+
return (0, entity_display_template_util_1.normalizeEntityDisplayTemplate)(singleTitle);
|
|
123
|
+
}
|
|
124
|
+
return undefined;
|
|
125
|
+
}
|
|
126
|
+
//#endregion
|
|
127
|
+
//# sourceMappingURL=entity-search-title-context.util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-search-title-context.util.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/utils/entity-search-title-context.util.ts"],"names":[],"mappings":";;AA2EA,sEA6BC;AAMD,sEA0BC;AAKD,wFAkBC;AA7JD,iFAGwC;AAWxC,YAAY;AAEZ,mCAAmC;AAEnC,MAAM,gCAAgC,GAAG;IACvC,OAAO;IAC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entity query filter field for {@link AXPRecordWorkflowInfo.instanceId}. */
|
|
3
|
+
export declare const AXP_RECORD_WORKFLOW_INFO_INSTANCE_ID_FIELD: "workflowInfo.instanceId";
|
|
4
|
+
/** Entity query filter field for {@link AXPRecordWorkflowInfo.correlationId}. */
|
|
5
|
+
export declare const AXP_RECORD_WORKFLOW_INFO_CORRELATION_ID_FIELD: "workflowInfo.correlationId";
|
|
6
|
+
/** Entity query filter field for {@link AXPRecordWorkflowInfo.definitionId}. */
|
|
7
|
+
export declare const AXP_RECORD_WORKFLOW_INFO_DEFINITION_ID_FIELD: "workflowInfo.definitionId";
|
|
8
|
+
/** Returns a trimmed workflow instance id from a record, if present. */
|
|
9
|
+
export declare function getRecordWorkflowInstanceId(record: {
|
|
10
|
+
workflowInfo?: AXPRecordWorkflowInfo | null;
|
|
11
|
+
} | null | undefined): string | null;
|
|
12
|
+
/** Returns a trimmed workflow correlation id from a record, if present. */
|
|
13
|
+
export declare function getRecordWorkflowCorrelationId(record: {
|
|
14
|
+
workflowInfo?: AXPRecordWorkflowInfo | null;
|
|
15
|
+
} | null | undefined): string | null;
|
|
16
|
+
/** Builds canonical workflow metadata for a domain record (engine / middleware). */
|
|
17
|
+
export declare function buildAXPRecordWorkflowInfo(params: {
|
|
18
|
+
instanceId: string;
|
|
19
|
+
definitionId?: string | null;
|
|
20
|
+
correlationId?: string | null;
|
|
21
|
+
pinnedVersion?: number | null;
|
|
22
|
+
}): AXPRecordWorkflowInfo;
|
|
23
|
+
//# sourceMappingURL=entity-workflow-record.util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-workflow-record.util.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/utils/entity-workflow-record.util.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAEzE,8EAA8E;AAC9E,eAAO,MAAM,0CAA0C,EAAG,yBAAkC,CAAC;AAE7F,iFAAiF;AACjF,eAAO,MAAM,6CAA6C,EAAG,4BAAqC,CAAC;AAEnG,gFAAgF;AAChF,eAAO,MAAM,4CAA4C,EAAG,2BAAoC,CAAC;AAEjG,wEAAwE;AACxE,wBAAgB,2BAA2B,CACzC,MAAM,EAAE;IAAE,YAAY,CAAC,EAAE,qBAAqB,GAAG,IAAI,CAAA;CAAE,GAAG,IAAI,GAAG,SAAS,GACzE,MAAM,GAAG,IAAI,CAGf;AAED,2EAA2E;AAC3E,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE;IAAE,YAAY,CAAC,EAAE,qBAAqB,GAAG,IAAI,CAAA;CAAE,GAAG,IAAI,GAAG,SAAS,GACzE,MAAM,GAAG,IAAI,CAGf;AAED,oFAAoF;AACpF,wBAAgB,0BAA0B,CAAC,MAAM,EAAE;IACjD,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B,GAAG,qBAAqB,CAaxB"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//#region ---- Workflow record helpers ----
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.AXP_RECORD_WORKFLOW_INFO_DEFINITION_ID_FIELD = exports.AXP_RECORD_WORKFLOW_INFO_CORRELATION_ID_FIELD = exports.AXP_RECORD_WORKFLOW_INFO_INSTANCE_ID_FIELD = void 0;
|
|
5
|
+
exports.getRecordWorkflowInstanceId = getRecordWorkflowInstanceId;
|
|
6
|
+
exports.getRecordWorkflowCorrelationId = getRecordWorkflowCorrelationId;
|
|
7
|
+
exports.buildAXPRecordWorkflowInfo = buildAXPRecordWorkflowInfo;
|
|
8
|
+
/** Entity query filter field for {@link AXPRecordWorkflowInfo.instanceId}. */
|
|
9
|
+
exports.AXP_RECORD_WORKFLOW_INFO_INSTANCE_ID_FIELD = 'workflowInfo.instanceId';
|
|
10
|
+
/** Entity query filter field for {@link AXPRecordWorkflowInfo.correlationId}. */
|
|
11
|
+
exports.AXP_RECORD_WORKFLOW_INFO_CORRELATION_ID_FIELD = 'workflowInfo.correlationId';
|
|
12
|
+
/** Entity query filter field for {@link AXPRecordWorkflowInfo.definitionId}. */
|
|
13
|
+
exports.AXP_RECORD_WORKFLOW_INFO_DEFINITION_ID_FIELD = 'workflowInfo.definitionId';
|
|
14
|
+
/** Returns a trimmed workflow instance id from a record, if present. */
|
|
15
|
+
function getRecordWorkflowInstanceId(record) {
|
|
16
|
+
var _a, _b;
|
|
17
|
+
const id = (_b = (_a = record === null || record === void 0 ? void 0 : record.workflowInfo) === null || _a === void 0 ? void 0 : _a.instanceId) === null || _b === void 0 ? void 0 : _b.trim();
|
|
18
|
+
return id && id.length > 0 ? id : null;
|
|
19
|
+
}
|
|
20
|
+
/** Returns a trimmed workflow correlation id from a record, if present. */
|
|
21
|
+
function getRecordWorkflowCorrelationId(record) {
|
|
22
|
+
var _a, _b;
|
|
23
|
+
const id = (_b = (_a = record === null || record === void 0 ? void 0 : record.workflowInfo) === null || _a === void 0 ? void 0 : _a.correlationId) === null || _b === void 0 ? void 0 : _b.trim();
|
|
24
|
+
return id && id.length > 0 ? id : null;
|
|
25
|
+
}
|
|
26
|
+
/** Builds canonical workflow metadata for a domain record (engine / middleware). */
|
|
27
|
+
function buildAXPRecordWorkflowInfo(params) {
|
|
28
|
+
var _a, _b, _c;
|
|
29
|
+
const instanceId = (_a = params.instanceId) === null || _a === void 0 ? void 0 : _a.trim();
|
|
30
|
+
if (!instanceId) {
|
|
31
|
+
return {};
|
|
32
|
+
}
|
|
33
|
+
const definitionId = (_b = params.definitionId) === null || _b === void 0 ? void 0 : _b.trim();
|
|
34
|
+
const correlationId = (_c = params.correlationId) === null || _c === void 0 ? void 0 : _c.trim();
|
|
35
|
+
return Object.assign(Object.assign(Object.assign({ instanceId }, (definitionId ? { definitionId } : { definitionId: null })), (correlationId ? { correlationId } : { correlationId: null })), (params.pinnedVersion != null ? { pinnedVersion: params.pinnedVersion } : {}));
|
|
36
|
+
}
|
|
37
|
+
//#endregion
|
|
38
|
+
//# sourceMappingURL=entity-workflow-record.util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-workflow-record.util.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/utils/entity-workflow-record.util.ts"],"names":[],"mappings":";AAAA,2CAA2C;;;AAc3C,kEAKC;AAGD,wEAKC;AAGD,gEAkBC;AA5CD,8EAA8E;AACjE,QAAA,0CAA0C,GAAG,yBAAkC,CAAC;AAE7F,iFAAiF;AACpE,QAAA,6CAA6C,GAAG,4BAAqC,CAAC;AAEnG,gFAAgF;AACnE,QAAA,4CAA4C,GAAG,2BAAoC,CAAC;AAEjG,wEAAwE;AACxE,SAAgB,2BAA2B,CACzC,MAA0E;;IAE1E,MAAM,EAAE,GAAG,MAAA,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,YAAY,0CAAE,UAAU,0CAAE,IAAI,EAAE,CAAC;IACpD,OAAO,EAAE,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;AACzC,CAAC;AAED,2EAA2E;AAC3E,SAAgB,8BAA8B,CAC5C,MAA0E;;IAE1E,MAAM,EAAE,GAAG,MAAA,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,YAAY,0CAAE,aAAa,0CAAE,IAAI,EAAE,CAAC;IACvD,OAAO,EAAE,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;AACzC,CAAC;AAED,oFAAoF;AACpF,SAAgB,0BAA0B,CAAC,MAK1C;;IACC,MAAM,UAAU,GAAG,MAAA,MAAM,CAAC,UAAU,0CAAE,IAAI,EAAE,CAAC;IAC7C,IAAI,CAAC,UAAU,EAAE,CAAC;QAChB,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,MAAM,YAAY,GAAG,MAAA,MAAM,CAAC,YAAY,0CAAE,IAAI,EAAE,CAAC;IACjD,MAAM,aAAa,GAAG,MAAA,MAAM,CAAC,aAAa,0CAAE,IAAI,EAAE,CAAC;IACnD,mDACE,UAAU,IACP,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,GAC1D,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,aAAa,EAAE,CAAC,CAAC,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,GAC7D,CAAC,MAAM,CAAC,aAAa,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,aAAa,EAAE,MAAM,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAChF;AACJ,CAAC;AAED,YAAY"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './entity-display-template.util';
|
|
2
|
+
export * from './entity-property-display-path.util';
|
|
3
|
+
export * from './entity-search-title-context.util';
|
|
4
|
+
export * from './entity-quick-search-paths.util';
|
|
5
|
+
export * from './entity-list-filter-definitions.util';
|
|
6
|
+
export * from './entity-list-sortable-fields.util';
|
|
7
|
+
export * from './entity-merge-detail-list-properties.util';
|
|
8
|
+
export * from './entity-workflow-record.util';
|
|
9
|
+
export * from './lookup-create-options.util';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/utils/index.ts"],"names":[],"mappings":"AAEA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qCAAqC,CAAC;AACpD,cAAc,oCAAoC,CAAC;AACnD,cAAc,kCAAkC,CAAC;AACjD,cAAc,uCAAuC,CAAC;AACtD,cAAc,oCAAoC,CAAC;AACnD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//#region ---- Utils barrel ----
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
tslib_1.__exportStar(require("./entity-display-template.util"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./entity-property-display-path.util"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./entity-search-title-context.util"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./entity-quick-search-paths.util"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./entity-list-filter-definitions.util"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./entity-list-sortable-fields.util"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./entity-merge-detail-list-properties.util"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./entity-workflow-record.util"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./lookup-create-options.util"), exports);
|
|
14
|
+
//#endregion
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/utils/index.ts"],"names":[],"mappings":";AAAA,gCAAgC;;;AAEhC,yEAA+C;AAC/C,8EAAoD;AACpD,6EAAmD;AACnD,2EAAiD;AACjD,gFAAsD;AACtD,6EAAmD;AACnD,qFAA2D;AAC3D,wEAA8C;AAC9C,uEAA6C;AAE7C,YAAY"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AXPLookupWidgetCreateOptions, ResolvedLookupCreateOptions } from '../types/lookup-widget.types';
|
|
2
|
+
/**
|
|
3
|
+
* Resolves lookup create options from `create` and legacy `allowCreate` (mode).
|
|
4
|
+
*/
|
|
5
|
+
export declare function resolveLookupWidgetCreateOptions(options: {
|
|
6
|
+
create?: AXPLookupWidgetCreateOptions;
|
|
7
|
+
/** @deprecated Use create.enable; still supported for create mode (quick/full). */
|
|
8
|
+
allowCreate?: 'none' | 'full' | 'quick';
|
|
9
|
+
}): ResolvedLookupCreateOptions;
|
|
10
|
+
//# sourceMappingURL=lookup-create-options.util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lookup-create-options.util.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/utils/lookup-create-options.util.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,2BAA2B,EAAE,MAAM,8BAA8B,CAAC;AAI9G;;GAEG;AACH,wBAAgB,gCAAgC,CAAC,OAAO,EAAE;IACxD,MAAM,CAAC,EAAE,4BAA4B,CAAC;IACtC,mFAAmF;IACnF,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;CACzC,GAAG,2BAA2B,CAoB9B"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveLookupWidgetCreateOptions = resolveLookupWidgetCreateOptions;
|
|
4
|
+
//#region ---- Resolution ----
|
|
5
|
+
/**
|
|
6
|
+
* Resolves lookup create options from `create` and legacy `allowCreate` (mode).
|
|
7
|
+
*/
|
|
8
|
+
function resolveLookupWidgetCreateOptions(options) {
|
|
9
|
+
const create = options.create;
|
|
10
|
+
const legacyMode = options.allowCreate;
|
|
11
|
+
const context = create === null || create === void 0 ? void 0 : create.context;
|
|
12
|
+
if ((create === null || create === void 0 ? void 0 : create.enable) !== undefined) {
|
|
13
|
+
if (!create.enable) {
|
|
14
|
+
return { enabled: false, mode: 'none', context };
|
|
15
|
+
}
|
|
16
|
+
const mode = legacyMode && legacyMode !== 'none' ? legacyMode : 'quick';
|
|
17
|
+
return { enabled: true, mode, context };
|
|
18
|
+
}
|
|
19
|
+
const mode = legacyMode !== null && legacyMode !== void 0 ? legacyMode : 'none';
|
|
20
|
+
return {
|
|
21
|
+
enabled: mode !== 'none',
|
|
22
|
+
mode,
|
|
23
|
+
context,
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
//# sourceMappingURL=lookup-create-options.util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lookup-create-options.util.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/utils/lookup-create-options.util.ts"],"names":[],"mappings":";;AAOA,4EAwBC;AA7BD,8BAA8B;AAE9B;;GAEG;AACH,SAAgB,gCAAgC,CAAC,OAIhD;IACC,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAC9B,MAAM,UAAU,GAAG,OAAO,CAAC,WAAW,CAAC;IACvC,MAAM,OAAO,GAAG,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,OAAO,CAAC;IAEhC,IAAI,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,MAAK,SAAS,EAAE,CAAC;QACjC,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;YACnB,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;QACnD,CAAC;QAED,MAAM,IAAI,GAAG,UAAU,IAAI,UAAU,KAAK,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC;QACxE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;IAC1C,CAAC;IAED,MAAM,IAAI,GAAG,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,MAAM,CAAC;IAClC,OAAO;QACL,OAAO,EAAE,IAAI,KAAK,MAAM;QACxB,IAAI;QACJ,OAAO;KACR,CAAC;AACJ,CAAC;AAED,YAAY"}
|
package/index.d.ts
ADDED
package/index.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../libs/framework/shared/index.ts"],"names":[],"mappings":";AAAA,wBAAkB"}
|
package/index.js
ADDED
package/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/framework/shared/index.ts"],"names":[],"mappings":";;AAAA,kBAAe,EAAE,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@acorex-platform/framework-shared",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"private": false,
|
|
5
|
+
"type": "commonjs",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"exports": {
|
|
8
|
+
"./core": {
|
|
9
|
+
"types": "./core/src/index.d.ts",
|
|
10
|
+
"default": "./core/src/index.js"
|
|
11
|
+
},
|
|
12
|
+
"./domain": {
|
|
13
|
+
"types": "./domain/src/index.d.ts",
|
|
14
|
+
"default": "./domain/src/index.js"
|
|
15
|
+
},
|
|
16
|
+
"./entity": {
|
|
17
|
+
"types": "./entity/src/index.d.ts",
|
|
18
|
+
"default": "./entity/src/index.js"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|