@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,144 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.collectEntityListFilterDefinitions = collectEntityListFilterDefinitions;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const lodash_es_1 = require("lodash-es");
|
|
6
|
+
const entity_list_filter_types_1 = require("../types/entity-list-filter.types");
|
|
7
|
+
const entity_merge_detail_list_properties_util_1 = require("./entity-merge-detail-list-properties.util");
|
|
8
|
+
const entity_property_display_path_util_1 = require("./entity-property-display-path.util");
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region ---- Property filter helpers ----
|
|
11
|
+
function isPropertyFilterEnabled(property) {
|
|
12
|
+
var _a, _b, _c, _d;
|
|
13
|
+
const filter = (_a = property.options) === null || _a === void 0 ? void 0 : _a.filter;
|
|
14
|
+
return !!(((_b = filter === null || filter === void 0 ? void 0 : filter.advance) === null || _b === void 0 ? void 0 : _b.enabled) ||
|
|
15
|
+
((_c = filter === null || filter === void 0 ? void 0 : filter.inline) === null || _c === void 0 ? void 0 : _c.enabled) ||
|
|
16
|
+
((_d = filter === null || filter === void 0 ? void 0 : filter.preload) === null || _d === void 0 ? void 0 : _d.enabled));
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region ---- Merge-detail property discovery ----
|
|
20
|
+
function resolveMergedRelatedInlineFilterField(dataPath, relatedEntityDef, property) {
|
|
21
|
+
var _a, _b;
|
|
22
|
+
const columnDataPath = (0, entity_property_display_path_util_1.resolveEntityColumnDataPath)(relatedEntityDef, property.name);
|
|
23
|
+
if (columnDataPath) {
|
|
24
|
+
return `${dataPath}.${columnDataPath}`;
|
|
25
|
+
}
|
|
26
|
+
const exposeTarget = (0, entity_property_display_path_util_1.resolvePropertyExposeDisplayTarget)((_b = (_a = property.schema) === null || _a === void 0 ? void 0 : _a.interface) === null || _b === void 0 ? void 0 : _b.options);
|
|
27
|
+
if (exposeTarget) {
|
|
28
|
+
return `${dataPath}.${exposeTarget}`;
|
|
29
|
+
}
|
|
30
|
+
return undefined;
|
|
31
|
+
}
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region ---- Filter definition builder ----
|
|
34
|
+
function buildFilterDefinitionFromProperty(hostEntity, property, options, deps) {
|
|
35
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
|
|
36
|
+
if (!isPropertyFilterEnabled(property)) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
const iface = (_a = property.schema.interface) !== null && _a !== void 0 ? _a : {};
|
|
40
|
+
const interfaceType = iface.type;
|
|
41
|
+
const widgetConfig = interfaceType ? (_b = deps === null || deps === void 0 ? void 0 : deps.resolveWidget) === null || _b === void 0 ? void 0 : _b.call(deps, interfaceType) : undefined;
|
|
42
|
+
const type = (((_e = (_d = (_c = property.options) === null || _c === void 0 ? void 0 : _c.filter) === null || _d === void 0 ? void 0 : _d.advance) === null || _e === void 0 ? void 0 : _e.widgetType) ||
|
|
43
|
+
(widgetConfig === null || widgetConfig === void 0 ? void 0 : widgetConfig.defaultFilterWidgetName) ||
|
|
44
|
+
interfaceType);
|
|
45
|
+
const inlineQueryField = (_f = options.inlineQueryField) !== null && _f !== void 0 ? _f : (0, entity_property_display_path_util_1.resolveEntityPropertyInlineFilterField)(hostEntity, property);
|
|
46
|
+
const preloadRequired = (_j = (_h = (_g = property.options) === null || _g === void 0 ? void 0 : _g.filter) === null || _h === void 0 ? void 0 : _h.preload) === null || _j === void 0 ? void 0 : _j.required;
|
|
47
|
+
const validations = preloadRequired
|
|
48
|
+
? [
|
|
49
|
+
{
|
|
50
|
+
rule: 'required',
|
|
51
|
+
message: 'This field is required',
|
|
52
|
+
options: {},
|
|
53
|
+
},
|
|
54
|
+
]
|
|
55
|
+
: [];
|
|
56
|
+
const widgetOptions = Object.assign(Object.assign({}, ((_k = iface.options) !== null && _k !== void 0 ? _k : {})), (validations.length ? { validations } : {}));
|
|
57
|
+
const contextField = options.field.includes('.')
|
|
58
|
+
? (0, entity_list_filter_types_1.encodeEntityListFilterContextField)(options.field)
|
|
59
|
+
: undefined;
|
|
60
|
+
return Object.assign(Object.assign(Object.assign({ title: property.title, field: options.field }, (contextField ? { contextField } : {})), (inlineQueryField && inlineQueryField !== options.field ? { inlineQueryField } : {})), { operator: {
|
|
61
|
+
type: 'contains',
|
|
62
|
+
}, widget: Object.assign(Object.assign({}, (0, lodash_es_1.omit)(iface, 'triggers')), { path: contextField !== null && contextField !== void 0 ? contextField : options.field, type, options: widgetOptions }), filters: [], isParametric: false, icon: widgetConfig === null || widgetConfig === void 0 ? void 0 : widgetConfig.icon, filterType: {
|
|
63
|
+
advance: (_p = (_o = (_m = (_l = property.options) === null || _l === void 0 ? void 0 : _l.filter) === null || _m === void 0 ? void 0 : _m.advance) === null || _o === void 0 ? void 0 : _o.enabled) !== null && _p !== void 0 ? _p : false,
|
|
64
|
+
inline: (_t = (_s = (_r = (_q = property.options) === null || _q === void 0 ? void 0 : _q.filter) === null || _r === void 0 ? void 0 : _r.inline) === null || _s === void 0 ? void 0 : _s.enabled) !== null && _t !== void 0 ? _t : false,
|
|
65
|
+
preload: (_v = (_u = property.options) === null || _u === void 0 ? void 0 : _u.filter) === null || _v === void 0 ? void 0 : _v.preload,
|
|
66
|
+
}, triggers: iface.triggers });
|
|
67
|
+
}
|
|
68
|
+
function collectHostPropertyFilterDefinitions(entity, deps) {
|
|
69
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
70
|
+
var _a;
|
|
71
|
+
const definitions = [];
|
|
72
|
+
for (const property of (_a = entity.properties) !== null && _a !== void 0 ? _a : []) {
|
|
73
|
+
const definition = buildFilterDefinitionFromProperty(entity, property, { field: property.name }, deps);
|
|
74
|
+
if (definition) {
|
|
75
|
+
definitions.push(definition);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
return definitions;
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
function collectMergeDetailFilterDefinitions(hostEntity, resolveRelatedDefinition, deps) {
|
|
82
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
83
|
+
var _a, _b, _c, _d, _e, _f;
|
|
84
|
+
const definitions = [];
|
|
85
|
+
for (const related of (_a = hostEntity.relatedEntities) !== null && _a !== void 0 ? _a : []) {
|
|
86
|
+
if (((_b = related.layout) === null || _b === void 0 ? void 0 : _b.type) !== 'merge-detail') {
|
|
87
|
+
continue;
|
|
88
|
+
}
|
|
89
|
+
if (((_c = related.filter) === null || _c === void 0 ? void 0 : _c.enabled) === false) {
|
|
90
|
+
continue;
|
|
91
|
+
}
|
|
92
|
+
const dataPath = (_e = (_d = related.persistence) === null || _d === void 0 ? void 0 : _d.dataPath) === null || _e === void 0 ? void 0 : _e.trim();
|
|
93
|
+
if (!dataPath) {
|
|
94
|
+
continue;
|
|
95
|
+
}
|
|
96
|
+
const parsed = related.entity ? (0, entity_merge_detail_list_properties_util_1.parseRelatedEntityFullName)(related.entity) : null;
|
|
97
|
+
if (!parsed) {
|
|
98
|
+
continue;
|
|
99
|
+
}
|
|
100
|
+
const relatedDef = yield resolveRelatedDefinition(parsed.moduleName, parsed.entityName);
|
|
101
|
+
if (!relatedDef) {
|
|
102
|
+
continue;
|
|
103
|
+
}
|
|
104
|
+
const propertyNames = (0, entity_merge_detail_list_properties_util_1.collectMergeDetailListPropertyNames)(hostEntity, dataPath, related);
|
|
105
|
+
if (propertyNames.size === 0) {
|
|
106
|
+
continue;
|
|
107
|
+
}
|
|
108
|
+
for (const propertyName of propertyNames) {
|
|
109
|
+
const property = (_f = relatedDef.properties) === null || _f === void 0 ? void 0 : _f.find((p) => p.name === propertyName);
|
|
110
|
+
if (!property) {
|
|
111
|
+
continue;
|
|
112
|
+
}
|
|
113
|
+
const queryField = `${dataPath}.${propertyName}`;
|
|
114
|
+
const inlineQueryField = resolveMergedRelatedInlineFilterField(dataPath, relatedDef, property);
|
|
115
|
+
const definition = buildFilterDefinitionFromProperty(hostEntity, property, {
|
|
116
|
+
field: queryField,
|
|
117
|
+
inlineQueryField,
|
|
118
|
+
}, deps);
|
|
119
|
+
if (definition) {
|
|
120
|
+
definitions.push(definition);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
return definitions;
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
//#endregion
|
|
128
|
+
//#region ---- Public API ----
|
|
129
|
+
/**
|
|
130
|
+
* Builds master-list filter definitions from host properties and merge-detail related entities.
|
|
131
|
+
* Related filters use `{dataPath}.{property}` query fields (e.g. `person.firstName`).
|
|
132
|
+
*/
|
|
133
|
+
function collectEntityListFilterDefinitions(entity, resolveRelatedDefinition, deps) {
|
|
134
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
135
|
+
if (!entity) {
|
|
136
|
+
return [];
|
|
137
|
+
}
|
|
138
|
+
const hostDefinitions = yield collectHostPropertyFilterDefinitions(entity, deps);
|
|
139
|
+
const relatedDefinitions = yield collectMergeDetailFilterDefinitions(entity, resolveRelatedDefinition, deps);
|
|
140
|
+
return [...hostDefinitions, ...relatedDefinitions];
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
//#endregion
|
|
144
|
+
//# sourceMappingURL=entity-list-filter-definitions.util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-list-filter-definitions.util.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/utils/entity-list-filter-definitions.util.ts"],"names":[],"mappings":";;AAsOA,gFAiBC;;AArPD,yCAAiC;AAIjC,gFAAuF;AAEvF,yGAGoD;AACpD,2FAI6C;AAW7C,YAAY;AAEZ,2CAA2C;AAE3C,SAA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C,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,YAAY,CAAC,CAAC;gBAC7E,IAAI,CAAC,QAAQ,EAAE,CAAC;oBACd,SAAS;gBACX,CAAC;gBAED,MAAM,UAAU,GAAG,GAAG,QAAQ,IAAI,YAAY,EAAE,CAAC;gBACjD,MAAM,gBAAgB,GAAG,qCAAqC,CAAC,QAAQ,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC;gBAE/F,MAAM,UAAU,GAAG,iCAAiC,CAClD,UAAU,EACV,QAAQ,EACR;oBACE,KAAK,EAAE,UAAU;oBACjB,gBAAgB;iBACjB,EACD,IAAI,CACL,CAAC;gBAEF,IAAI,UAAU,EAAE,CAAC;oBACf,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;gBAC/B,CAAC;YACH,CAAC;QACH,CAAC;QAED,OAAO,WAAW,CAAC;IACrB,CAAC;CAAA;AAED,YAAY;AAEZ,8BAA8B;AAE9B;;;GAGG;AACH,SAAsB,kCAAkC,CACtD,MAAoC,EACpC,wBAAkE,EAClE,IAA8C;;QAE9C,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,OAAO,EAAE,CAAC;QACZ,CAAC;QAED,MAAM,eAAe,GAAG,MAAM,oCAAoC,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QACjF,MAAM,kBAAkB,GAAG,MAAM,mCAAmC,CAClE,MAAM,EACN,wBAAwB,EACxB,IAAI,CACL,CAAC;QAEF,OAAO,CAAC,GAAG,eAAe,EAAE,GAAG,kBAAkB,CAAC,CAAC;IACrD,CAAC;CAAA;AAED,YAAY"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { AXPEntity } from '../types/entity-definition.types';
|
|
2
|
+
import type { AXPEntityProperty } from '../types/entity-property.types';
|
|
3
|
+
import type { AXPCollectEntityQuickSearchPathsResolver } from './entity-quick-search-paths.util';
|
|
4
|
+
export interface AXPEntityListSortableField {
|
|
5
|
+
name: string;
|
|
6
|
+
title: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Builds master-list sortable fields from host properties and merge-detail related entities.
|
|
10
|
+
* Related sorts use `{dataPath}.{property}` query fields (e.g. `person.firstName`).
|
|
11
|
+
*/
|
|
12
|
+
export declare function collectEntityListSortableFields(entity: AXPEntity | null | undefined, resolveRelatedDefinition: AXPCollectEntityQuickSearchPathsResolver): Promise<AXPEntityListSortableField[]>;
|
|
13
|
+
export declare function isEntityPropertySortEnabled(property: AXPEntityProperty | null | undefined): boolean;
|
|
14
|
+
//# sourceMappingURL=entity-list-sortable-fields.util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-list-sortable-fields.util.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/utils/entity-list-sortable-fields.util.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAMxE,OAAO,KAAK,EAAE,wCAAwC,EAAE,MAAM,kCAAkC,CAAC;AAIjG,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAwED;;;GAGG;AACH,wBAAsB,+BAA+B,CACnD,MAAM,EAAE,SAAS,GAAG,IAAI,GAAG,SAAS,EACpC,wBAAwB,EAAE,wCAAwC,GACjE,OAAO,CAAC,0BAA0B,EAAE,CAAC,CAoBvC;AAED,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,iBAAiB,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAEnG"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.collectEntityListSortableFields = collectEntityListSortableFields;
|
|
4
|
+
exports.isEntityPropertySortEnabled = isEntityPropertySortEnabled;
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
6
|
+
const entity_merge_detail_list_properties_util_1 = require("./entity-merge-detail-list-properties.util");
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region ---- Property sort helpers ----
|
|
9
|
+
function isPropertySortEnabled(property) {
|
|
10
|
+
var _a, _b;
|
|
11
|
+
return !!((_b = (_a = property.options) === null || _a === void 0 ? void 0 : _a.sort) === null || _b === void 0 ? void 0 : _b.enabled);
|
|
12
|
+
}
|
|
13
|
+
function resolveHostColumnTitle(hostEntity, fieldName) {
|
|
14
|
+
var _a;
|
|
15
|
+
const column = (_a = hostEntity.columns) === null || _a === void 0 ? void 0 : _a.find((c) => c.name === fieldName);
|
|
16
|
+
return column === null || column === void 0 ? void 0 : column.title;
|
|
17
|
+
}
|
|
18
|
+
function collectHostSortableFields(entity) {
|
|
19
|
+
var _a;
|
|
20
|
+
return ((_a = entity.properties) !== null && _a !== void 0 ? _a : [])
|
|
21
|
+
.filter(isPropertySortEnabled)
|
|
22
|
+
.map((property) => {
|
|
23
|
+
var _a;
|
|
24
|
+
return ({
|
|
25
|
+
name: property.name,
|
|
26
|
+
title: (_a = resolveHostColumnTitle(entity, property.name)) !== null && _a !== void 0 ? _a : property.title,
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
function collectMergeDetailSortableFields(hostEntity, resolveRelatedDefinition) {
|
|
31
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
32
|
+
var _a, _b, _c, _d, _e, _f;
|
|
33
|
+
const fields = [];
|
|
34
|
+
for (const related of (_a = hostEntity.relatedEntities) !== null && _a !== void 0 ? _a : []) {
|
|
35
|
+
if (((_b = related.layout) === null || _b === void 0 ? void 0 : _b.type) !== 'merge-detail') {
|
|
36
|
+
continue;
|
|
37
|
+
}
|
|
38
|
+
const dataPath = (_d = (_c = related.persistence) === null || _c === void 0 ? void 0 : _c.dataPath) === null || _d === void 0 ? void 0 : _d.trim();
|
|
39
|
+
if (!dataPath) {
|
|
40
|
+
continue;
|
|
41
|
+
}
|
|
42
|
+
const parsed = related.entity ? (0, entity_merge_detail_list_properties_util_1.parseRelatedEntityFullName)(related.entity) : null;
|
|
43
|
+
if (!parsed) {
|
|
44
|
+
continue;
|
|
45
|
+
}
|
|
46
|
+
const relatedDef = yield resolveRelatedDefinition(parsed.moduleName, parsed.entityName);
|
|
47
|
+
if (!relatedDef) {
|
|
48
|
+
continue;
|
|
49
|
+
}
|
|
50
|
+
const propertyNames = (0, entity_merge_detail_list_properties_util_1.collectMergeDetailListPropertyNames)(hostEntity, dataPath, related);
|
|
51
|
+
for (const propertyName of propertyNames) {
|
|
52
|
+
const property = (_e = relatedDef.properties) === null || _e === void 0 ? void 0 : _e.find((p) => p.name === propertyName);
|
|
53
|
+
if (!property || !isPropertySortEnabled(property)) {
|
|
54
|
+
continue;
|
|
55
|
+
}
|
|
56
|
+
const queryField = `${dataPath}.${propertyName}`;
|
|
57
|
+
fields.push({
|
|
58
|
+
name: queryField,
|
|
59
|
+
title: (_f = resolveHostColumnTitle(hostEntity, queryField)) !== null && _f !== void 0 ? _f : property.title,
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return fields;
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
//#endregion
|
|
67
|
+
//#region ---- Public API ----
|
|
68
|
+
/**
|
|
69
|
+
* Builds master-list sortable fields from host properties and merge-detail related entities.
|
|
70
|
+
* Related sorts use `{dataPath}.{property}` query fields (e.g. `person.firstName`).
|
|
71
|
+
*/
|
|
72
|
+
function collectEntityListSortableFields(entity, resolveRelatedDefinition) {
|
|
73
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
74
|
+
if (!entity) {
|
|
75
|
+
return [];
|
|
76
|
+
}
|
|
77
|
+
const hostFields = collectHostSortableFields(entity);
|
|
78
|
+
const relatedFields = yield collectMergeDetailSortableFields(entity, resolveRelatedDefinition);
|
|
79
|
+
const seen = new Set();
|
|
80
|
+
const result = [];
|
|
81
|
+
for (const field of [...hostFields, ...relatedFields]) {
|
|
82
|
+
if (seen.has(field.name)) {
|
|
83
|
+
continue;
|
|
84
|
+
}
|
|
85
|
+
seen.add(field.name);
|
|
86
|
+
result.push(field);
|
|
87
|
+
}
|
|
88
|
+
return result;
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
function isEntityPropertySortEnabled(property) {
|
|
92
|
+
return property != null && isPropertySortEnabled(property);
|
|
93
|
+
}
|
|
94
|
+
//#endregion
|
|
95
|
+
//# sourceMappingURL=entity-list-sortable-fields.util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-list-sortable-fields.util.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/utils/entity-list-sortable-fields.util.ts"],"names":[],"mappings":";;AA0FA,0EAuBC;AAED,kEAEC;;AAlHD,yGAGoD;AAUpD,YAAY;AAEZ,yCAAyC;AAEzC,SAAS,qBAAqB,CAAC,QAA2B;;IACxD,OAAO,CAAC,CAAC,CAAA,MAAA,MAAA,QAAQ,CAAC,OAAO,0CAAE,IAAI,0CAAE,OAAO,CAAA,CAAC;AAC3C,CAAC;AAED,SAAS,sBAAsB,CAAC,UAAqB,EAAE,SAAiB;;IACtE,MAAM,MAAM,GAAG,MAAA,UAAU,CAAC,OAAO,0CAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC;IACrE,OAAO,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,CAAC;AACvB,CAAC;AAED,SAAS,yBAAyB,CAAC,MAAiB;;IAClD,OAAO,CAAC,MAAA,MAAM,CAAC,UAAU,mCAAI,EAAE,CAAC;SAC7B,MAAM,CAAC,qBAAqB,CAAC;SAC7B,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE;;QAAC,OAAA,CAAC;YAClB,IAAI,E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;AAED,YAAY"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { AXPEntity } from '../types/entity-definition.types';
|
|
2
|
+
import type { AXPRelatedEntity } from '../types/entity-related-layout.types';
|
|
3
|
+
export declare function parseRelatedEntityFullName(fullName: string): {
|
|
4
|
+
moduleName: string;
|
|
5
|
+
entityName: string;
|
|
6
|
+
} | null;
|
|
7
|
+
export declare function parseDottedFieldPath(fieldPath: string): {
|
|
8
|
+
dataPath: string;
|
|
9
|
+
propertyName: string;
|
|
10
|
+
} | null;
|
|
11
|
+
/**
|
|
12
|
+
* Resolves related property names eligible for host list columns/filters/sorts:
|
|
13
|
+
* host columns under `dataPath`, optional `related.properties` allowlist, minus `excludeProperties`.
|
|
14
|
+
*/
|
|
15
|
+
export declare function collectMergeDetailListPropertyNames(hostEntity: AXPEntity, dataPath: string, relatedEntity: AXPRelatedEntity): Set<string>;
|
|
16
|
+
//# sourceMappingURL=entity-merge-detail-list-properties.util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-merge-detail-list-properties.util.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/utils/entity-merge-detail-list-properties.util.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAI7E,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE,MAAM,GAAG;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAU9G;AAED,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAUzG;AAMD;;;GAGG;AACH,wBAAgB,mCAAmC,CACjD,UAAU,EAAE,SAAS,EACrB,QAAQ,EAAE,MAAM,EAChB,aAAa,EAAE,gBAAgB,GAC9B,GAAG,CAAC,MAAM,CAAC,CA0Cb"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.parseRelatedEntityFullName = parseRelatedEntityFullName;
|
|
4
|
+
exports.parseDottedFieldPath = parseDottedFieldPath;
|
|
5
|
+
exports.collectMergeDetailListPropertyNames = collectMergeDetailListPropertyNames;
|
|
6
|
+
//#region ---- Related entity helpers ----
|
|
7
|
+
function parseRelatedEntityFullName(fullName) {
|
|
8
|
+
const trimmed = fullName.trim();
|
|
9
|
+
const idx = trimmed.indexOf('.');
|
|
10
|
+
if (idx <= 0 || idx >= trimmed.length - 1) {
|
|
11
|
+
return null;
|
|
12
|
+
}
|
|
13
|
+
return {
|
|
14
|
+
moduleName: trimmed.slice(0, idx),
|
|
15
|
+
entityName: trimmed.slice(idx + 1),
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function parseDottedFieldPath(fieldPath) {
|
|
19
|
+
const trimmed = fieldPath.trim();
|
|
20
|
+
const dotIndex = trimmed.indexOf('.');
|
|
21
|
+
if (dotIndex <= 0 || dotIndex >= trimmed.length - 1) {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
dataPath: trimmed.slice(0, dotIndex),
|
|
26
|
+
propertyName: trimmed.slice(dotIndex + 1),
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region ---- Merge-detail property discovery ----
|
|
31
|
+
/**
|
|
32
|
+
* Resolves related property names eligible for host list columns/filters/sorts:
|
|
33
|
+
* host columns under `dataPath`, optional `related.properties` allowlist, minus `excludeProperties`.
|
|
34
|
+
*/
|
|
35
|
+
function collectMergeDetailListPropertyNames(hostEntity, dataPath, relatedEntity) {
|
|
36
|
+
var _a, _b, _c, _d, _e, _f;
|
|
37
|
+
const names = new Set();
|
|
38
|
+
const prefix = `${dataPath}.`;
|
|
39
|
+
if ((_a = relatedEntity.properties) === null || _a === void 0 ? void 0 : _a.length) {
|
|
40
|
+
for (const name of relatedEntity.properties) {
|
|
41
|
+
const trimmed = name.trim();
|
|
42
|
+
if (trimmed) {
|
|
43
|
+
names.add(trimmed);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
for (const column of (_b = hostEntity.columns) !== null && _b !== void 0 ? _b : []) {
|
|
48
|
+
const columnName = column.name.trim();
|
|
49
|
+
if (columnName.startsWith(prefix)) {
|
|
50
|
+
const tail = columnName.slice(prefix.length);
|
|
51
|
+
const leaf = (_c = tail.split('.')[0]) === null || _c === void 0 ? void 0 : _c.trim();
|
|
52
|
+
if (leaf) {
|
|
53
|
+
names.add(leaf);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
const rawDataPath = (_d = column.options) === null || _d === void 0 ? void 0 : _d['dataPath'];
|
|
57
|
+
if (typeof rawDataPath === 'string') {
|
|
58
|
+
const dp = rawDataPath.trim();
|
|
59
|
+
if (dp.startsWith(prefix)) {
|
|
60
|
+
const tail = dp.slice(prefix.length);
|
|
61
|
+
const leaf = (_e = tail.split('.')[0]) === null || _e === void 0 ? void 0 : _e.trim();
|
|
62
|
+
if (leaf) {
|
|
63
|
+
names.add(leaf);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
const excluded = new Set(((_f = relatedEntity.excludeProperties) !== null && _f !== void 0 ? _f : []).map((n) => n.trim()).filter(Boolean));
|
|
69
|
+
for (const name of excluded) {
|
|
70
|
+
names.delete(name);
|
|
71
|
+
}
|
|
72
|
+
return names;
|
|
73
|
+
}
|
|
74
|
+
//#endregion
|
|
75
|
+
//# sourceMappingURL=entity-merge-detail-list-properties.util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-merge-detail-list-properties.util.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/utils/entity-merge-detail-list-properties.util.ts"],"names":[],"mappings":";;AAKA,gEAUC;AAED,oDAUC;AAUD,kFA8CC;AAhFD,0CAA0C;AAE1C,SAAgB,0BAA0B,CAAC,QAAgB;IACzD,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC;IAChC,MAAM,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACjC,IAAI,GAAG,IAAI,CAAC,IAAI,GAAG,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC1C,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO;QACL,UAAU,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC;QACjC,UAAU,EAAE,OAAO,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC,CAAC;KACnC,CAAC;AACJ,CAAC;AAED,SAAgB,oBAAoB,CAAC,SAAiB;IACpD,MAAM,OAAO,GAAG,SAAS,CAAC,IAAI,EAAE,CAAC;IACjC,MAAM,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,IAAI,QAAQ,IAAI,CAAC,IAAI,QAAQ,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACpD,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO;QACL,QAAQ,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,QAAQ,CAAC;QACpC,YAAY,EAAE,OAAO,CAAC,KAAK,CAAC,QAAQ,GAAG,CAAC,CAAC;KAC1C,CAAC;AACJ,CAAC;AAED,YAAY;AAEZ,mDAAmD;AAEnD;;;GAGG;AACH,SAAgB,mCAAmC,CACjD,UAAqB,EACrB,QAAgB,EAChB,aAA+B;;IAE/B,MAAM,KAAK,GAAG,IAAI,GAAG,EAAU,CAAC;IAChC,MAAM,MAAM,GAAG,GAAG,QAAQ,G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C,IAAI,IAAI,EAAE,CAAC;oBACT,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;gBAClB,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC;IAED,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,CAAC,MAAA,aAAa,CAAC,iBAAiB,mCAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;IACvG,KAAK,MAAM,IAAI,IAAI,QAAQ,EAAE,CAAC;QAC5B,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACrB,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED,YAAY"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { AXPEntity } from '../types/entity-definition.types';
|
|
2
|
+
export interface AXPEntityPropertyExposeEntry {
|
|
3
|
+
source: string;
|
|
4
|
+
target: string;
|
|
5
|
+
}
|
|
6
|
+
export type AXPEntityPropertyLike = {
|
|
7
|
+
name: string;
|
|
8
|
+
schema?: {
|
|
9
|
+
interface?: {
|
|
10
|
+
options?: Record<string, unknown>;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Parses lookup/select `expose` entries from a property interface options object.
|
|
16
|
+
*/
|
|
17
|
+
export declare function parsePropertyExposeEntries(options: Record<string, unknown> | undefined): AXPEntityPropertyExposeEntry[];
|
|
18
|
+
/**
|
|
19
|
+
* Collects all non-empty `expose[].target` paths from a property.
|
|
20
|
+
*/
|
|
21
|
+
export declare function collectPropertyExposeTargetPaths(property: AXPEntityPropertyLike): string[];
|
|
22
|
+
/**
|
|
23
|
+
* Resolves list column `options.dataPath` for a property when explicitly set.
|
|
24
|
+
*/
|
|
25
|
+
export declare function resolveEntityColumnDataPath(entity: AXPEntity | null | undefined, propertyName: string): string | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Resolves the lodash-get path for lookup/select display text from expose metadata.
|
|
28
|
+
*/
|
|
29
|
+
export declare function resolvePropertyExposeDisplayTarget(options: Record<string, unknown> | undefined): string | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Resolves the lodash-get path used for inline `contains` filters on lookup/select properties.
|
|
32
|
+
* Prefers list column `dataPath`, then lookup `expose` target for `textField` (or first non-id expose).
|
|
33
|
+
* Returns `undefined` when the property name should be used as-is (e.g. plain text fields).
|
|
34
|
+
*/
|
|
35
|
+
export declare function resolveEntityPropertyInlineFilterField(entity: AXPEntity | null | undefined, property: AXPEntityPropertyLike): string | undefined;
|
|
36
|
+
//# sourceMappingURL=entity-property-display-path.util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-property-display-path.util.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/utils/entity-property-display-path.util.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAIlE,MAAM,WAAW,4BAA4B;IAC3C,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE;QACP,SAAS,CAAC,EAAE;YACV,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;SACnC,CAAC;KACH,CAAC;CACH,CAAC;AAMF;;GAEG;AACH,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,GAC3C,4BAA4B,EAAE,CAahC;AAED;;GAEG;AACH,wBAAgB,gCAAgC,CAAC,QAAQ,EAAE,qBAAqB,GAAG,MAAM,EAAE,CAc1F;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,SAAS,GAAG,IAAI,GAAG,SAAS,EACpC,YAAY,EAAE,MAAM,GACnB,MAAM,GAAG,SAAS,CAYpB;AAED;;GAEG;AACH,wBAAgB,kCAAkC,CAChD,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,GAC3C,MAAM,GAAG,SAAS,CAoBpB;AAED;;;;GAIG;AACH,wBAAgB,sCAAsC,CACpD,MAAM,EAAE,SAAS,GAAG,IAAI,GAAG,SAAS,EACpC,QAAQ,EAAE,qBAAqB,GAC9B,MAAM,GAAG,SAAS,CAgBpB"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.parsePropertyExposeEntries = parsePropertyExposeEntries;
|
|
4
|
+
exports.collectPropertyExposeTargetPaths = collectPropertyExposeTargetPaths;
|
|
5
|
+
exports.resolveEntityColumnDataPath = resolveEntityColumnDataPath;
|
|
6
|
+
exports.resolvePropertyExposeDisplayTarget = resolvePropertyExposeDisplayTarget;
|
|
7
|
+
exports.resolveEntityPropertyInlineFilterField = resolveEntityPropertyInlineFilterField;
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region ---- Expose parsing ----
|
|
10
|
+
/**
|
|
11
|
+
* Parses lookup/select `expose` entries from a property interface options object.
|
|
12
|
+
*/
|
|
13
|
+
function parsePropertyExposeEntries(options) {
|
|
14
|
+
const expose = options === null || options === void 0 ? void 0 : options['expose'];
|
|
15
|
+
if (!Array.isArray(expose)) {
|
|
16
|
+
return [];
|
|
17
|
+
}
|
|
18
|
+
return expose.filter((row) => row != null &&
|
|
19
|
+
typeof row === 'object' &&
|
|
20
|
+
typeof row.source === 'string' &&
|
|
21
|
+
typeof row.target === 'string');
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Collects all non-empty `expose[].target` paths from a property.
|
|
25
|
+
*/
|
|
26
|
+
function collectPropertyExposeTargetPaths(property) {
|
|
27
|
+
var _a, _b;
|
|
28
|
+
const opts = (_b = (_a = property.schema) === null || _a === void 0 ? void 0 : _a.interface) === null || _b === void 0 ? void 0 : _b.options;
|
|
29
|
+
if (!opts || typeof opts !== 'object') {
|
|
30
|
+
return [];
|
|
31
|
+
}
|
|
32
|
+
const paths = new Set();
|
|
33
|
+
for (const entry of parsePropertyExposeEntries(opts)) {
|
|
34
|
+
const target = entry.target.trim();
|
|
35
|
+
if (target) {
|
|
36
|
+
paths.add(target);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return [...paths];
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Resolves list column `options.dataPath` for a property when explicitly set.
|
|
43
|
+
*/
|
|
44
|
+
function resolveEntityColumnDataPath(entity, propertyName) {
|
|
45
|
+
var _a, _b;
|
|
46
|
+
const column = (_a = entity === null || entity === void 0 ? void 0 : entity.columns) === null || _a === void 0 ? void 0 : _a.find((c) => c.name === propertyName);
|
|
47
|
+
const rawDataPath = (_b = column === null || column === void 0 ? void 0 : column.options) === null || _b === void 0 ? void 0 : _b['dataPath'];
|
|
48
|
+
if (typeof rawDataPath !== 'string') {
|
|
49
|
+
return undefined;
|
|
50
|
+
}
|
|
51
|
+
const dataPath = rawDataPath.trim();
|
|
52
|
+
if (!dataPath || dataPath === propertyName) {
|
|
53
|
+
return undefined;
|
|
54
|
+
}
|
|
55
|
+
return dataPath;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Resolves the lodash-get path for lookup/select display text from expose metadata.
|
|
59
|
+
*/
|
|
60
|
+
function resolvePropertyExposeDisplayTarget(options) {
|
|
61
|
+
if (!options) {
|
|
62
|
+
return undefined;
|
|
63
|
+
}
|
|
64
|
+
const textField = typeof options['textField'] === 'string' ? options['textField'].trim() : '';
|
|
65
|
+
const valueField = typeof options['valueField'] === 'string' ? options['valueField'].trim() : 'id';
|
|
66
|
+
const entries = parsePropertyExposeEntries(options);
|
|
67
|
+
if (textField) {
|
|
68
|
+
const match = entries.find((entry) => entry.source === textField);
|
|
69
|
+
if (match === null || match === void 0 ? void 0 : match.target.trim()) {
|
|
70
|
+
return match.target.trim();
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
const displayEntry = entries.find((entry) => entry.source !== valueField && entry.source !== 'id' && entry.target.trim());
|
|
74
|
+
return displayEntry === null || displayEntry === void 0 ? void 0 : displayEntry.target.trim();
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Resolves the lodash-get path used for inline `contains` filters on lookup/select properties.
|
|
78
|
+
* Prefers list column `dataPath`, then lookup `expose` target for `textField` (or first non-id expose).
|
|
79
|
+
* Returns `undefined` when the property name should be used as-is (e.g. plain text fields).
|
|
80
|
+
*/
|
|
81
|
+
function resolveEntityPropertyInlineFilterField(entity, property) {
|
|
82
|
+
var _a, _b;
|
|
83
|
+
if (!entity || !(property === null || property === void 0 ? void 0 : property.name)) {
|
|
84
|
+
return undefined;
|
|
85
|
+
}
|
|
86
|
+
const dataPath = resolveEntityColumnDataPath(entity, property.name);
|
|
87
|
+
if (dataPath) {
|
|
88
|
+
return dataPath;
|
|
89
|
+
}
|
|
90
|
+
const opts = (_b = (_a = property.schema) === null || _a === void 0 ? void 0 : _a.interface) === null || _b === void 0 ? void 0 : _b.options;
|
|
91
|
+
if (!opts || typeof opts !== 'object') {
|
|
92
|
+
return undefined;
|
|
93
|
+
}
|
|
94
|
+
return resolvePropertyExposeDisplayTarget(opts);
|
|
95
|
+
}
|
|
96
|
+
//#endregion
|
|
97
|
+
//# sourceMappingURL=entity-property-display-path.util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-property-display-path.util.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/utils/entity-property-display-path.util.ts"],"names":[],"mappings":";;AAyBA,gEAeC;AAKD,4EAcC;AAKD,kEAeC;AAKD,gFAsBC;AAOD,wFAmBC;AAlHD,YAAY;AAEZ,kCAAkC;AAElC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O,CAAC,IAAI,CAC/B,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,KAAK,UAAU,IAAI,KAAK,CAAC,MAAM,KAAK,IAAI,IAAI,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,CACvF,CAAC;IACF,OAAO,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,MAAM,CAAC,IAAI,EAAE,CAAC;AACrC,CAAC;AAED;;;;GAIG;AACH,SAAgB,sCAAsC,CACpD,MAAoC,EACpC,QAA+B;;IAE/B,IAAI,CAAC,MAAM,IAAI,CAAC,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,CAAA,EAAE,CAAC;QAC/B,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,MAAM,QAAQ,GAAG,2BAA2B,CAAC,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC;IACpE,IAAI,QAAQ,EAAE,CAAC;QACb,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,MAAM,IAAI,GAAG,MAAA,MAAA,QAAQ,CAAC,MAAM,0CAAE,SAAS,0CAAE,OAAO,CAAC;IACjD,IAAI,CAAC,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;QACtC,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO,kCAAkC,CAAC,IAAI,CAAC,CAAC;AAClD,CAAC;AAED,YAAY"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { AXPEntity } from '../types/entity-definition.types';
|
|
2
|
+
export type AXPCollectEntityQuickSearchPathsResolver = (moduleName: string, entityName: string) => Promise<AXPEntity | null>;
|
|
3
|
+
/**
|
|
4
|
+
* Lodash-get paths for quick search from a single entity definition: string-like property names
|
|
5
|
+
* plus lookup `expose[].target` paths (e.g. `brand.title`).
|
|
6
|
+
*/
|
|
7
|
+
export declare function collectQuickSearchPathsFromSingleEntityDefinition(entity: AXPEntity | null | undefined): string[];
|
|
8
|
+
/**
|
|
9
|
+
* Adds dotted paths from master columns (`name` or `options.dataPath`), e.g. `person.fullName`, `jobDefinition.title`.
|
|
10
|
+
*/
|
|
11
|
+
export declare function collectNestedFieldPathsFromEntityColumns(entity: AXPEntity | null | undefined): string[];
|
|
12
|
+
/**
|
|
13
|
+
* Collects lodash-get field paths used for mock/API quick search (`contains` / OR filters):
|
|
14
|
+
* host properties and lookup expose targets, dotted column paths, and merge-detail related entities
|
|
15
|
+
* prefixed with the related entity merge `persistence.dataPath` (e.g. `person.firstName`).
|
|
16
|
+
*/
|
|
17
|
+
export declare function collectEntityQuickSearchFieldPaths(entity: AXPEntity | null | undefined, resolveRelatedDefinition: AXPCollectEntityQuickSearchPathsResolver): Promise<string[]>;
|
|
18
|
+
export { resolveEntityPropertyInlineFilterField } from './entity-property-display-path.util';
|
|
19
|
+
//# sourceMappingURL=entity-quick-search-paths.util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-quick-search-paths.util.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/utils/entity-quick-search-paths.util.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAMlE,MAAM,MAAM,wCAAwC,GAAG,CACrD,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,KACf,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC;AAwC/B;;;GAGG;AACH,wBAAgB,iDAAiD,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,EAAE,CAkBhH;AAMD;;GAEG;AACH,wBAAgB,wCAAwC,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,EAAE,CAuBvG;AAsBD;;;;GAIG;AACH,wBAAsB,kCAAkC,CACtD,MAAM,EAAE,SAAS,GAAG,IAAI,GAAG,SAAS,EACpC,wBAAwB,EAAE,wCAAwC,GACjE,OAAO,CAAC,MAAM,EAAE,CAAC,CA0CnB;AAED,OAAO,EAAE,sCAAsC,EAAE,MAAM,qCAAqC,CAAC"}
|