@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,21 @@
|
|
|
1
|
+
export interface AXPEntityPropertyFilterOptions {
|
|
2
|
+
advance?: {
|
|
3
|
+
enabled?: boolean;
|
|
4
|
+
widgetType?: string;
|
|
5
|
+
};
|
|
6
|
+
inline?: {
|
|
7
|
+
enabled?: boolean;
|
|
8
|
+
};
|
|
9
|
+
preload?: {
|
|
10
|
+
enabled?: boolean;
|
|
11
|
+
required?: boolean;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export interface AXPEntityPropertySortOptions {
|
|
15
|
+
enabled?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface AXPEntityPropertyListOptions {
|
|
18
|
+
filter?: AXPEntityPropertyFilterOptions;
|
|
19
|
+
sort?: AXPEntityPropertySortOptions;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=entity-property-list.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-property-list.types.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/types/entity-property-list.types.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,8BAA8B;IAC7C,OAAO,CAAC,EAAE;QACR,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,MAAM,CAAC,EAAE;QACP,OAAO,CAAC,EAAE,OAAO,CAAC;KACnB,CAAC;IACF,OAAO,CAAC,EAAE;QACR,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;KACpB,CAAC;CACH;AAED,MAAM,WAAW,4BAA4B;IAC3C,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,4BAA4B;IAC3C,MAAM,CAAC,EAAE,8BAA8B,CAAC;IACxC,IAAI,CAAC,EAAE,4BAA4B,CAAC;CACrC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-property-list.types.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/types/entity-property-list.types.ts"],"names":[],"mappings":";AAAA,gDAAgD;;AAyBhD,YAAY"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { AXPExpression, AXPGridLayoutOptions, AXPValidationRules, AXPValueTransformerFunctions } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import type { AXPEntityPropertyListOptions } from './entity-property-list.types';
|
|
3
|
+
export interface AXEntityPropertyWidget {
|
|
4
|
+
type: string;
|
|
5
|
+
path?: string;
|
|
6
|
+
id?: string;
|
|
7
|
+
children?: AXEntityPropertyWidget[];
|
|
8
|
+
mode: 'view' | 'edit';
|
|
9
|
+
options?: Record<string, any>;
|
|
10
|
+
triggers?: {
|
|
11
|
+
event: string;
|
|
12
|
+
action: string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
}[];
|
|
15
|
+
valueTransforms?: AXPValueTransformerFunctions;
|
|
16
|
+
}
|
|
17
|
+
export interface AXPEntityPropertyLayoutConfig extends AXPGridLayoutOptions {
|
|
18
|
+
label?: {
|
|
19
|
+
visible?: boolean;
|
|
20
|
+
};
|
|
21
|
+
order?: number;
|
|
22
|
+
visible?: boolean | AXPExpression;
|
|
23
|
+
}
|
|
24
|
+
export interface AXPEntityPropertyGroup {
|
|
25
|
+
id: string;
|
|
26
|
+
title: string;
|
|
27
|
+
description?: string;
|
|
28
|
+
permissions?: string[];
|
|
29
|
+
icon?: string;
|
|
30
|
+
}
|
|
31
|
+
export interface AXPEntityPropertyView {
|
|
32
|
+
name: string;
|
|
33
|
+
dataPath?: string;
|
|
34
|
+
permissions?: string[];
|
|
35
|
+
layout?: AXPEntityPropertyLayoutConfig;
|
|
36
|
+
}
|
|
37
|
+
export interface AXPEntityPropertyUpdateView extends AXPEntityPropertyView {
|
|
38
|
+
}
|
|
39
|
+
export interface AXPEntityPropertyCreateView extends AXPEntityPropertyView {
|
|
40
|
+
defaultValue?: any;
|
|
41
|
+
}
|
|
42
|
+
export interface AXPEntitySectionView {
|
|
43
|
+
id: string;
|
|
44
|
+
order?: number;
|
|
45
|
+
collapsed?: boolean;
|
|
46
|
+
layout?: AXPEntityPropertyLayoutConfig;
|
|
47
|
+
}
|
|
48
|
+
export interface AXPEntityProperty {
|
|
49
|
+
name: string;
|
|
50
|
+
title: string;
|
|
51
|
+
description?: string;
|
|
52
|
+
groupId?: string;
|
|
53
|
+
schema: {
|
|
54
|
+
dataType: string;
|
|
55
|
+
nullable?: boolean;
|
|
56
|
+
readonly?: boolean | string;
|
|
57
|
+
visible?: boolean | string;
|
|
58
|
+
defaultValue?: any | string | ((context: any | null) => any);
|
|
59
|
+
unique?: {
|
|
60
|
+
enabled: boolean;
|
|
61
|
+
};
|
|
62
|
+
interface?: Partial<AXEntityPropertyWidget>;
|
|
63
|
+
};
|
|
64
|
+
options?: AXPEntityPropertyListOptions;
|
|
65
|
+
validations?: AXPValidationRules;
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=entity-property.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-property.types.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/types/entity-property.types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,aAAa,EACb,oBAAoB,EACpB,kBAAkB,EAClB,4BAA4B,EAC7B,MAAM,wCAAwC,CAAC;AAEhD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,8BAA8B,CAAC;AAEjF,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE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AI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE;QACN,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,QAAQ,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;QAC5B,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;QAC3B,YAAY,CAAC,EAAE,GAAG,GAAG,MAAM,GAAG,CAAC,CAAC,OAAO,EAAE,GAAG,GAAG,IAAI,KAAK,GAAG,CAAC,CAAC;QAC7D,MAAM,CAAC,EAAE;YACP,OAAO,EAAE,OAAO,CAAC;SAClB,CAAC;QACF,SAAS,CAAC,EAAE,OAAO,CAAC,sBAAsB,CAAC,CAAC;KAC7C,CAAC;IACF,OAAO,CAAC,EAAE,4BAA4B,CAAC;IACvC,WAAW,CAAC,EAAE,kBAAkB,CAAC;CAClC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-property.types.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/types/entity-property.types.ts"],"names":[],"mappings":";AAAA,qCAAqC;;AA8ErC,YAAY"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { AXDataSourceOperator } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
export interface AXPQueryFilter {
|
|
3
|
+
name: string;
|
|
4
|
+
operator: AXDataSourceOperator;
|
|
5
|
+
value: any;
|
|
6
|
+
}
|
|
7
|
+
export interface AXPQuerySort {
|
|
8
|
+
name: string;
|
|
9
|
+
dir: 'asc' | 'desc';
|
|
10
|
+
}
|
|
11
|
+
export interface AXPQueryView {
|
|
12
|
+
name: string;
|
|
13
|
+
fixed: boolean;
|
|
14
|
+
title: string;
|
|
15
|
+
columns: string[];
|
|
16
|
+
conditions: AXPQueryFilter[];
|
|
17
|
+
sorts: AXPQuerySort[];
|
|
18
|
+
indexCol?: boolean;
|
|
19
|
+
pageSize?: number;
|
|
20
|
+
visible?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export declare function createQueryView(name: string, title: string, fixed: boolean, params?: {
|
|
23
|
+
columns?: string[];
|
|
24
|
+
conditions?: any[];
|
|
25
|
+
sorts?: AXPQuerySort[];
|
|
26
|
+
}): AXPQueryView;
|
|
27
|
+
export declare function createAllQueryView(params?: {
|
|
28
|
+
columns?: string[];
|
|
29
|
+
conditions?: AXPQueryFilter[];
|
|
30
|
+
sorts?: AXPQuerySort[];
|
|
31
|
+
} | undefined): AXPQueryView;
|
|
32
|
+
//# sourceMappingURL=entity-query-view.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-query-view.types.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/types/entity-query-view.types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAEnF,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,KAAK,EAAE,GAAG,CAAC;CACZ;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,KAAK,GAAG,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,EAAE,cAAc,EAAE,CAAC;IAC7B,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wBAAgB,eAAe,CAC7B,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,OAAO,EACd,MAAM,GAAE;IAAE,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAAC,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC;IAAC,KAAK,CAAC,EAAE,YAAY,EAAE,CAAA;CAIvE,GACA,YAAY,CAUd;AAED,wBAAgB,kBAAkB,CAChC,MAAM,GAAE;IAAE,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAAC,UAAU,CAAC,EAAE,cAAc,EAAE,CAAC;IAAC,KAAK,CAAC,EAAE,YAAY,EAAE,CAAA;CAAE,GAAG,SAIvF,GACA,YAAY,CAOd"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//#region ---- Entity query views ----
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.createQueryView = createQueryView;
|
|
5
|
+
exports.createAllQueryView = createAllQueryView;
|
|
6
|
+
function createQueryView(name, title, fixed, params = {
|
|
7
|
+
columns: [],
|
|
8
|
+
conditions: [],
|
|
9
|
+
sorts: [],
|
|
10
|
+
}) {
|
|
11
|
+
var _a, _b, _c;
|
|
12
|
+
params = Object.assign({ columns: [], sorts: [], conditions: [] }, params);
|
|
13
|
+
return {
|
|
14
|
+
name,
|
|
15
|
+
title,
|
|
16
|
+
fixed,
|
|
17
|
+
columns: (_a = params.columns) !== null && _a !== void 0 ? _a : [],
|
|
18
|
+
conditions: (_b = params.conditions) !== null && _b !== void 0 ? _b : [],
|
|
19
|
+
sorts: (_c = params.sorts) !== null && _c !== void 0 ? _c : [],
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function createAllQueryView(params = {
|
|
23
|
+
columns: [],
|
|
24
|
+
sorts: [],
|
|
25
|
+
conditions: [],
|
|
26
|
+
}) {
|
|
27
|
+
var _a, _b, _c;
|
|
28
|
+
params = Object.assign({ columns: [], sorts: [], conditions: [] }, params);
|
|
29
|
+
return createQueryView('all', '@general:terms.interface.selection.all-items', true, {
|
|
30
|
+
columns: (_a = params.columns) !== null && _a !== void 0 ? _a : [],
|
|
31
|
+
conditions: (_b = params.conditions) !== null && _b !== void 0 ? _b : [],
|
|
32
|
+
sorts: (_c = params.sorts) !== null && _c !== void 0 ? _c : [],
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
36
|
+
//# sourceMappingURL=entity-query-view.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-query-view.types.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/types/entity-query-view.types.ts"],"names":[],"mappings":";AAAA,sCAAsC;;AA2BtC,0CAmBC;AAED,gDAaC;AAlCD,SAAgB,eAAe,CAC7B,IAAY,EACZ,KAAa,EACb,KAAc,EACd,SAA6E;IAC3E,OAAO,EAAE,EAAE;IACX,UAAU,EAAE,EAAE;IACd,KAAK,EAAE,EAAE;CACV;;IAED,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC;IAC3E,OAAO;QACL,IAAI;QACJ,KAAK;QACL,KAAK;QACL,OAAO,EAAE,MAAA,MAAM,CAAC,OAAO,mCAAI,EAAE;QAC7B,UAAU,EAAE,MAAA,MAAM,CAAC,UAAU,mCAAI,EAAE;QACnC,KAAK,EAAE,MAAA,MAAM,CAAC,KAAK,mCAAI,EAAE;KAC1B,CAAC;AACJ,CAAC;AAED,SAAgB,kBAAkB,CAChC,SAAoG;IAClG,OAAO,EAAE,EAAE;IACX,KAAK,EAAE,EAAE;IACT,UAAU,EAAE,EAAE;CACf;;IAED,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC;IAC3E,OAAO,eAAe,CAAC,KAAK,EAAE,8CAA8C,EAAE,IAAI,EAAE;QAClF,OAAO,EAAE,MAAA,MAAM,CAAC,OAAO,mCAAI,EAAE;QAC7B,UAAU,EAAE,MAAA,MAAM,CAAC,UAAU,mCAAI,EAAE;QACnC,KAAK,EAAE,MAAA,MAAM,CAAC,KAAK,mCAAI,EAAE;KAC1B,CAAC,CAAC;AACL,CAAC;AAED,YAAY"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { AXPExpression } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import type { AXPEntityAction } from './entity-action.types';
|
|
3
|
+
import type { AXPEntityTableColumn } from './entity-display-field.types';
|
|
4
|
+
import type { AXPEntityListFilterDefinition } from './entity-list-filter.types';
|
|
5
|
+
import type { AXPQueryFilter } from './entity-query-view.types';
|
|
6
|
+
export interface AXPRelatedEntityLayout {
|
|
7
|
+
type: 'tab-detail' | 'tab-list' | 'page-detail' | 'page-list' | 'merge-detail';
|
|
8
|
+
order?: number;
|
|
9
|
+
position?: 'before' | 'after' | 'middle';
|
|
10
|
+
}
|
|
11
|
+
export interface AXPRelatedEntityPersistence {
|
|
12
|
+
strategy?: 'embedded' | 'referenced';
|
|
13
|
+
idField?: string;
|
|
14
|
+
dataPath?: string;
|
|
15
|
+
map?: Record<string, string>;
|
|
16
|
+
hydrate?: 'eager' | 'lazy';
|
|
17
|
+
cascade?: {
|
|
18
|
+
delete?: 'none' | 'orphans' | 'all';
|
|
19
|
+
};
|
|
20
|
+
foreignKeyField?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface AXPRelatedEntity {
|
|
23
|
+
entity: string;
|
|
24
|
+
title?: string;
|
|
25
|
+
icon?: string;
|
|
26
|
+
columns?: string[] | AXPEntityTableColumn[];
|
|
27
|
+
properties?: string[];
|
|
28
|
+
excludeProperties?: string[];
|
|
29
|
+
layout?: AXPRelatedEntityLayout;
|
|
30
|
+
conditions?: AXPQueryFilter[];
|
|
31
|
+
customFilterDefinitions?: Partial<AXPEntityListFilterDefinition>[];
|
|
32
|
+
hidden?: boolean | AXPExpression;
|
|
33
|
+
actions?: AXPEntityAction[];
|
|
34
|
+
/**
|
|
35
|
+
* Controls inclusion on the host entity master **create** / **update** form.
|
|
36
|
+
* Defaults depend on layout:
|
|
37
|
+
* - **merge-detail**: omitted flags behave as **true** (opt-out with `false`).
|
|
38
|
+
* - **tab-list** / **page-list**: omitted flags behave as **false** (opt-in with `true`).
|
|
39
|
+
*/
|
|
40
|
+
appearOn?: {
|
|
41
|
+
/** Include on host create form (see defaults above per layout type). */
|
|
42
|
+
create?: boolean;
|
|
43
|
+
/** Include on host update form (see defaults above per layout type). */
|
|
44
|
+
update?: boolean;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Host master-list filter policy for merge-detail related data.
|
|
48
|
+
* When omitted, filterable related properties referenced by host columns (or `properties`) are included.
|
|
49
|
+
*/
|
|
50
|
+
filter?: {
|
|
51
|
+
/** Include related filterable properties on the host list (default: true). */
|
|
52
|
+
enabled?: boolean;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Relationship-level persistence strategy for merge-detail data.
|
|
56
|
+
* Defaults:
|
|
57
|
+
* - strategy: 'embedded'
|
|
58
|
+
* - idField: last segment of dataPath + 'Id' (or 'relatedId' when dataPath is missing)
|
|
59
|
+
* - map: undefined (pass-through)
|
|
60
|
+
* - hydrate: 'eager' (applies to getOne only in mock)
|
|
61
|
+
* - cascade.delete: 'none'
|
|
62
|
+
*/
|
|
63
|
+
persistence?: AXPRelatedEntityPersistence;
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=entity-related-layout.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-related-layout.types.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/types/entity-related-layout.types.ts"],"names":[],"mappings":"AAEA,OA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,EAAE,cAAc,EAAE,CAAC;IAC9B,uBAAuB,CAAC,EAAE,OAAO,CAAC,6BAA6B,CAAC,EAAE,CAAC;IACnE,MAAM,CAAC,EAAE,OAAO,GAAG,aAAa,CAAC;IACjC,OAAO,CAAC,EAAE,eAAe,EAAE,CAAC;IAC5B;;;;;OAKG;IACH,QAAQ,CAAC,EAAE;QACT,wEAAwE;QACxE,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,wEAAwE;QACxE,MAAM,CAAC,EAAE,OAAO,CAAC;KAClB,CAAC;IACF;;;OAGG;IACH,MAAM,CAAC,EAAE;QACP,8EAA8E;QAC9E,OAAO,CAAC,EAAE,OAAO,CAAC;KACnB,CAAC;IACF;;;;;;;;OAQG;IACH,WAAW,CAAC,EAAE,2BAA2B,CAAC;CAC3C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-related-layout.types.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/types/entity-related-layout.types.ts"],"names":[],"mappings":";AAAA,yCAAyC;;AAqEzC,YAAY"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { AXPQueryRequest } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
export type AXPEntityAggregateReducerType = 'count' | 'sum' | 'min' | 'max' | 'avg';
|
|
3
|
+
export interface AXPEntityAggregateMeasure {
|
|
4
|
+
reducer: AXPEntityAggregateReducerType;
|
|
5
|
+
/** Required for sum, min, max, and avg. Ignored for count (rows per group). */
|
|
6
|
+
field?: string;
|
|
7
|
+
/** Result column name; defaults are derived from the reducer and field. */
|
|
8
|
+
alias?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Aggregate stored rows after the same filter/sort pipeline as {@link AXPQueryRequest}.
|
|
12
|
+
* Group keys use dotted field paths (same as lodash-style getters).
|
|
13
|
+
*/
|
|
14
|
+
export interface AXPEntityAggregateRequest extends Pick<AXPQueryRequest, 'filter' | 'sort'> {
|
|
15
|
+
groupBy: string[];
|
|
16
|
+
measures: AXPEntityAggregateMeasure[];
|
|
17
|
+
}
|
|
18
|
+
export interface AXPEntityAggregateResult {
|
|
19
|
+
rows: Record<string, unknown>[];
|
|
20
|
+
}
|
|
21
|
+
export interface AXPEntityQueryAllOptions {
|
|
22
|
+
/**
|
|
23
|
+
* Page size for backends that read page-by-page (HTTP API).
|
|
24
|
+
* In-memory backends load the filtered set once and ignore this.
|
|
25
|
+
*/
|
|
26
|
+
pageSize?: number;
|
|
27
|
+
/** Maximum rows to return or scan (safety cap). */
|
|
28
|
+
maxRows?: number;
|
|
29
|
+
}
|
|
30
|
+
export interface AXPEntityQueryAllResult<T> {
|
|
31
|
+
items: T[];
|
|
32
|
+
/** Row count matching filter/sort before applying maxRows. */
|
|
33
|
+
total: number;
|
|
34
|
+
/** True when maxRows prevented returning every matching row. */
|
|
35
|
+
truncated: boolean;
|
|
36
|
+
}
|
|
37
|
+
export interface AXPEntityAggregateOptions {
|
|
38
|
+
/** Maximum rows to load for aggregation when the backend pages remotely (default 50_000). */
|
|
39
|
+
maxRows?: number;
|
|
40
|
+
/** Page size for remote paging during aggregate (default 500). */
|
|
41
|
+
pageSize?: number;
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=entity-storage.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-storage.types.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/types/entity-storage.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AAI9E,MAAM,MAAM,6BAA6B,GAAG,OAAO,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;AAEpF,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,6BAA6B,CAAC;IACvC,+EAA+E;IAC/E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2EAA2E;IAC3E,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;GAGG;AACH,MAAM,WAAW,yBAA0B,SAAQ,IAAI,CAAC,eAAe,EAAE,QAAQ,GAAG,MAAM,CAAC;IACzF,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,QAAQ,EAAE,yBAAyB,EAAE,CAAC;CACvC;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;CACjC;AAMD,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mDAAmD;IACnD,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,uBAAuB,CAAC,CAAC;IACxC,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,8DAA8D;IAC9D,KAAK,EAAE,MAAM,CAAC;IACd,gEAAgE;IAChE,SAAS,EAAE,OAAO,CAAC;CACpB;AAMD,MAAM,WAAW,yBAAyB;IACxC,6FAA6F;IAC7F,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,kEAAkE;IAClE,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-storage.types.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/types/entity-storage.types.ts"],"names":[],"mappings":";;AA4DA,YAAY"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export * from './entity-action.types';
|
|
2
|
+
export * from './entity-property.types';
|
|
3
|
+
export * from './entity-definition.types';
|
|
4
|
+
export * from './entity-model.types';
|
|
5
|
+
export * from './entity-storage.types';
|
|
6
|
+
export * from './entity-formats.types';
|
|
7
|
+
export * from './entity-property-list.types';
|
|
8
|
+
export * from './entity-display-field.types';
|
|
9
|
+
export * from './entity-card-field.types';
|
|
10
|
+
export * from './entity-query-view.types';
|
|
11
|
+
export * from './entity-master-list.types';
|
|
12
|
+
export * from './entity-detail-list.types';
|
|
13
|
+
export * from './entity-layout-view.types';
|
|
14
|
+
export * from './entity-related-layout.types';
|
|
15
|
+
export * from './entity-list-filter.types';
|
|
16
|
+
export * from './lookup-widget.types';
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/types/index.ts"],"names":[],"mappings":"AAEA,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//#region ---- Types barrel ----
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
tslib_1.__exportStar(require("./entity-action.types"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./entity-property.types"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./entity-definition.types"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./entity-model.types"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./entity-storage.types"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./entity-formats.types"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./entity-property-list.types"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./entity-display-field.types"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./entity-card-field.types"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./entity-query-view.types"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./entity-master-list.types"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./entity-detail-list.types"), exports);
|
|
17
|
+
tslib_1.__exportStar(require("./entity-layout-view.types"), exports);
|
|
18
|
+
tslib_1.__exportStar(require("./entity-related-layout.types"), exports);
|
|
19
|
+
tslib_1.__exportStar(require("./entity-list-filter.types"), exports);
|
|
20
|
+
tslib_1.__exportStar(require("./lookup-widget.types"), exports);
|
|
21
|
+
//#endregion
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/types/index.ts"],"names":[],"mappings":";AAAA,gCAAgC;;;AAEhC,gEAAsC;AACtC,kEAAwC;AACxC,oEAA0C;AAC1C,+DAAqC;AACrC,iEAAuC;AACvC,iEAAuC;AACvC,uEAA6C;AAC7C,uEAA6C;AAC7C,oEAA0C;AAC1C,oEAA0C;AAC1C,qEAA2C;AAC3C,qEAA2C;AAC3C,qEAA2C;AAC3C,wEAA8C;AAC9C,qEAA2C;AAC3C,gEAAsC;AAEtC,YAAY"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type { AXPContextData, AXPExpression } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
export interface AXPLookupWidgetCreateOptions {
|
|
3
|
+
enable?: boolean;
|
|
4
|
+
context?: AXPContextData;
|
|
5
|
+
}
|
|
6
|
+
export interface ResolvedLookupCreateOptions {
|
|
7
|
+
enabled: boolean;
|
|
8
|
+
mode: 'none' | 'full' | 'quick';
|
|
9
|
+
context?: AXPContextData;
|
|
10
|
+
}
|
|
11
|
+
export type AXPLookupWidgetLookType = 'select' | 'lookup';
|
|
12
|
+
/**
|
|
13
|
+
* How the lookup column resolves related items for display in entity lists.
|
|
14
|
+
* - `hydrated`: titles (and optional ids) are already on the row; inline preview + overflow popover use row data only.
|
|
15
|
+
* - `idsWithCount`: ids and optional count live on the row; the cell shows a count summary and loads titles via entity `byKey` when the popover opens.
|
|
16
|
+
* - `countOnly`: only a count is on the row; the popover loads ids/titles via a registered `AXPQuery` when opened.
|
|
17
|
+
*/
|
|
18
|
+
export type AXPLookupColumnResolveStrategy = 'hydrated' | 'idsWithCount' | 'countOnly';
|
|
19
|
+
/**
|
|
20
|
+
* Column list only: controls how the lookup column loads and displays related items in grids.
|
|
21
|
+
* Omitted or empty strategy defaults to `hydrated` at runtime.
|
|
22
|
+
*/
|
|
23
|
+
export interface AXPLookupColumnResolveOptions {
|
|
24
|
+
/** Default `hydrated` when omitted. */
|
|
25
|
+
strategy?: AXPLookupColumnResolveStrategy;
|
|
26
|
+
/** Lodash-style path on `rowData` for the displayed count (e.g. `rolesCount`). */
|
|
27
|
+
countFieldPath?: string;
|
|
28
|
+
/** Lodash-style path on `rowData` for the related id list (`idsWithCount`). If omitted, the column `rawValue` is used. */
|
|
29
|
+
idsPath?: string;
|
|
30
|
+
/** Registered query key for `AXPQueryExecutor.fetch` when using `countOnly`. */
|
|
31
|
+
queryKey?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Maps query input property names to lodash-style paths on `rowData` (e.g. `{ "userId": "id" }`).
|
|
34
|
+
* May be a JSON string when set from the layout designer text field.
|
|
35
|
+
*/
|
|
36
|
+
queryParams?: Record<string, string> | string;
|
|
37
|
+
/**
|
|
38
|
+
* Dot path into the named query result for the items array. Defaults to `items` when the result is an object.
|
|
39
|
+
* If the query returns an array directly, leave unset and handle at runtime.
|
|
40
|
+
*/
|
|
41
|
+
queryResultItemsPath?: string;
|
|
42
|
+
}
|
|
43
|
+
export interface AXPLookupDisplayOptions {
|
|
44
|
+
displayFormat?: string;
|
|
45
|
+
textField?: string;
|
|
46
|
+
isMultiLanguage?: (value: unknown) => boolean;
|
|
47
|
+
}
|
|
48
|
+
/** Column list: entity detail popover when clicking a lookup value. */
|
|
49
|
+
export interface AXPLookupPopoverOptions {
|
|
50
|
+
/** When `false`, lookup values are not clickable and the detail popover does not open. Default `true`. */
|
|
51
|
+
enabled?: boolean;
|
|
52
|
+
}
|
|
53
|
+
/** Row actions to show in the lookup data selector popup (subset of entity list actions). */
|
|
54
|
+
export interface AXPLookupSelectorRowActionsConfig {
|
|
55
|
+
/** Primary icon buttons (e.g. preview). Match full command name or suffix such as `:Preview`. */
|
|
56
|
+
primary?: string[];
|
|
57
|
+
/** Secondary actions in the row dropdown menu. */
|
|
58
|
+
secondary?: string[];
|
|
59
|
+
}
|
|
60
|
+
export interface AXPLookupWidgetOptions {
|
|
61
|
+
disabled?: boolean | AXPExpression;
|
|
62
|
+
readonly?: boolean | AXPExpression;
|
|
63
|
+
placeholder?: string;
|
|
64
|
+
expose?: string | string[];
|
|
65
|
+
look?: AXPLookupWidgetLookType;
|
|
66
|
+
allowClear?: boolean;
|
|
67
|
+
/** Inline entity create configuration. */
|
|
68
|
+
create?: AXPLookupWidgetCreateOptions;
|
|
69
|
+
/** @deprecated Use create.enable; still supported for create mode (quick/full). */
|
|
70
|
+
allowCreate?: 'none' | 'full' | 'quick';
|
|
71
|
+
displayFormat?: string;
|
|
72
|
+
/** Column list: entity detail popover behavior. */
|
|
73
|
+
popover?: AXPLookupPopoverOptions;
|
|
74
|
+
/** Column list: lazy resolve and summary behavior. */
|
|
75
|
+
columnResolve?: AXPLookupColumnResolveOptions;
|
|
76
|
+
/** Lookup selector popup: entity row actions to display. */
|
|
77
|
+
selectorRowActions?: AXPLookupSelectorRowActionsConfig;
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=lookup-widget.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lookup-widget.types.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/types/lookup-widget.types.ts"],"names":[],"mappings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,EAAE,CAAC;IACnB,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,EAAE,OAAO,GAAG,aAAa,CAAC;IACnC,QAAQ,CAAC,EAAE,OAAO,GAAG,aAAa,CAAC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC3B,IAAI,CAAC,EAAE,uBAAuB,CAAC;IAC/B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,0CAA0C;IAC1C,MAAM,CAAC,EAAE,4BAA4B,CAAC;IACtC,mFAAmF;IACnF,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IACxC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mDAAmD;IACnD,OAAO,CAAC,EAAE,uBAAuB,CAAC;IAClC,sDAAsD;IACtD,aAAa,CAAC,EAAE,6BAA6B,CAAC;IAC9C,4DAA4D;IAC5D,kBAAkB,CAAC,EAAE,iCAAiC,CAAC;CACxD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lookup-widget.types.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/types/lookup-widget.types.ts"],"names":[],"mappings":";;AA0FA,YAAY"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Normalizes display templates before expression evaluation.
|
|
3
|
+
* Converts simple dot paths (e.g. `{{ position.title }}`) to `context.eval("position.title")`.
|
|
4
|
+
*/
|
|
5
|
+
export declare function normalizeExpressionTemplate(template: string): string;
|
|
6
|
+
/** @see normalizeExpressionTemplate */
|
|
7
|
+
export declare const normalizeEntityDisplayTemplate: typeof normalizeExpressionTemplate;
|
|
8
|
+
/** True when formatted text still contains unresolved template markers. */
|
|
9
|
+
export declare function isUnresolvedEntityDisplayTemplate(value: string): boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Strips literal `undefined` / `null` tokens produced when expression segments are missing.
|
|
12
|
+
*/
|
|
13
|
+
export declare function sanitizeResolvedEntityDisplayTitle(value: string): string;
|
|
14
|
+
/** True when a resolved title is non-empty and safe to show in search or entity chrome. */
|
|
15
|
+
export declare function isMeaningfulEntityDisplayTitle(value: string): boolean;
|
|
16
|
+
export declare function isRowBoundEntityDisplayTemplate(template: string): boolean;
|
|
17
|
+
//# sourceMappingURL=entity-display-template.util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-display-template.util.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/utils/entity-display-template.util.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAcpE;AAED,uCAAuC;AACvC,eAAO,MAAM,8BAA8B,oCAA8B,CAAC;AAE1E,2EAA2E;AAC3E,wBAAgB,iCAAiC,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAExE;AAED;;GAEG;AACH,wBAAgB,kCAAkC,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAexE;AAED,2FAA2F;AAC3F,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAGrE;AAED,wBAAgB,+BAA+B,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAMzE"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//#region ---- Template normalization ----
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.normalizeEntityDisplayTemplate = void 0;
|
|
5
|
+
exports.normalizeExpressionTemplate = normalizeExpressionTemplate;
|
|
6
|
+
exports.isUnresolvedEntityDisplayTemplate = isUnresolvedEntityDisplayTemplate;
|
|
7
|
+
exports.sanitizeResolvedEntityDisplayTitle = sanitizeResolvedEntityDisplayTitle;
|
|
8
|
+
exports.isMeaningfulEntityDisplayTitle = isMeaningfulEntityDisplayTitle;
|
|
9
|
+
exports.isRowBoundEntityDisplayTemplate = isRowBoundEntityDisplayTemplate;
|
|
10
|
+
/**
|
|
11
|
+
* Normalizes display templates before expression evaluation.
|
|
12
|
+
* Converts simple dot paths (e.g. `{{ position.title }}`) to `context.eval("position.title")`.
|
|
13
|
+
*/
|
|
14
|
+
function normalizeExpressionTemplate(template) {
|
|
15
|
+
let normalized = template.replace(/\{\{\s*context\.eval\(['"]([^'"]+)['"]\)\s*\}\}/g, '{{ context.eval("$1") }}');
|
|
16
|
+
if (!normalized.includes('{{')) {
|
|
17
|
+
normalized = normalized.replace(/\{/g, '{{').replace(/\}/g, '}}');
|
|
18
|
+
}
|
|
19
|
+
return normalized.replace(/\{\{\s*(?!context\.)([\w]+(?:\.[\w]+)*)\s*\}\}/g, '{{ context.eval("$1") }}');
|
|
20
|
+
}
|
|
21
|
+
/** @see normalizeExpressionTemplate */
|
|
22
|
+
exports.normalizeEntityDisplayTemplate = normalizeExpressionTemplate;
|
|
23
|
+
/** True when formatted text still contains unresolved template markers. */
|
|
24
|
+
function isUnresolvedEntityDisplayTemplate(value) {
|
|
25
|
+
return /\{\{/.test(value) || /context\.eval\s*\(/.test(value) || value === '[object Object]';
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Strips literal `undefined` / `null` tokens produced when expression segments are missing.
|
|
29
|
+
*/
|
|
30
|
+
function sanitizeResolvedEntityDisplayTitle(value) {
|
|
31
|
+
const trimmed = value.trim();
|
|
32
|
+
if (!trimmed) {
|
|
33
|
+
return '';
|
|
34
|
+
}
|
|
35
|
+
const withoutLiterals = trimmed
|
|
36
|
+
.replace(/\bundefined\b/gi, ' ')
|
|
37
|
+
.replace(/\bnull\b/gi, ' ')
|
|
38
|
+
.replace(/\s+/g, ' ')
|
|
39
|
+
.trim();
|
|
40
|
+
return withoutLiterals
|
|
41
|
+
.replace(/^[\s\-–—·|/,()+]+|[\s\-–—·|/,()+]+$/g, '')
|
|
42
|
+
.trim();
|
|
43
|
+
}
|
|
44
|
+
/** True when a resolved title is non-empty and safe to show in search or entity chrome. */
|
|
45
|
+
function isMeaningfulEntityDisplayTitle(value) {
|
|
46
|
+
const sanitized = sanitizeResolvedEntityDisplayTitle(value);
|
|
47
|
+
return sanitized.length > 0 && !isUnresolvedEntityDisplayTemplate(sanitized);
|
|
48
|
+
}
|
|
49
|
+
function isRowBoundEntityDisplayTemplate(template) {
|
|
50
|
+
const trimmed = template.trim();
|
|
51
|
+
if (!trimmed || trimmed.startsWith('@')) {
|
|
52
|
+
return false;
|
|
53
|
+
}
|
|
54
|
+
return trimmed.includes('{{') || trimmed.includes('{');
|
|
55
|
+
}
|
|
56
|
+
//#endregion
|
|
57
|
+
//# sourceMappingURL=entity-display-template.util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-display-template.util.js","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/utils/entity-display-template.util.ts"],"names":[],"mappings":";AAAA,0CAA0C;;;AAM1C,kEAcC;AAMD,8EAEC;AAKD,gFAeC;AAGD,wEAGC;AAED,0EAMC;AA5DD;;;GAGG;AACH,SAAgB,2BAA2B,CAAC,QAAgB;IAC1D,IAAI,UAAU,GAAG,QAAQ,CAAC,OAAO,CAC/B,kDAAkD,EAClD,0BAA0B,CAC3B,CAAC;IAEF,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;QAC/B,UAAU,GAAG,UAAU,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;IAED,OAAO,UAAU,CAAC,OAAO,CACvB,iDAAiD,EACjD,0BAA0B,CAC3B,CAAC;AACJ,CAAC;AAED,uCAAuC;AAC1B,QAAA,8BAA8B,GAAG,2BAA2B,CAAC;AAE1E,2EAA2E;A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
2
|
+
import type { AXPEntity } from '../types/entity-definition.types';
|
|
3
|
+
import type { AXPEntityListFilterDefinition } from '../types/entity-list-filter.types';
|
|
4
|
+
import type { AXPCollectEntityQuickSearchPathsResolver } from './entity-quick-search-paths.util';
|
|
5
|
+
export interface AXPBuildEntityListFilterDefinitionsDeps {
|
|
6
|
+
resolveWidget?: (type: AXPWidgetTypesMap[keyof AXPWidgetTypesMap]) => {
|
|
7
|
+
icon?: string;
|
|
8
|
+
defaultFilterWidgetName?: string;
|
|
9
|
+
} | undefined;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Builds master-list filter definitions from host properties and merge-detail related entities.
|
|
13
|
+
* Related filters use `{dataPath}.{property}` query fields (e.g. `person.firstName`).
|
|
14
|
+
*/
|
|
15
|
+
export declare function collectEntityListFilterDefinitions(entity: AXPEntity | null | undefined, resolveRelatedDefinition: AXPCollectEntityQuickSearchPathsResolver, deps?: AXPBuildEntityListFilterDefinitionsDeps): Promise<AXPEntityListFilterDefinition[]>;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=entity-list-filter-definitions.util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-list-filter-definitions.util.d.ts","sourceRoot":"","sources":["../../../../../../../../libs/framework/shared/entity/src/lib/utils/entity-list-filter-definitions.util.ts"],"names":[],"mappings":"AACA,KAAK,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAGhD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,mCAAmC,CAAC;AAYvF,OAAO,KAAK,EAAE,wCAAwC,EAAE,MAAM,kCAAkC,CAAC;AAIjG,MAAM,WAAW,uCAAuC;IACtD,aAAa,CAAC,EAAE,CACd,IAAI,EAAE,iBAAiB,CAAC,MAAM,iBAAiB,CAAC,KAC7C;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,uBAAuB,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC;CACtE;AAyMD;;;GAGG;AACH,wBAAsB,kCAAkC,CACtD,MAAM,EAAE,SAAS,GAAG,IAAI,GAAG,SAAS,EACpC,wBAAwB,EAAE,wCAAwC,EAClE,IAAI,CAAC,EAAE,uCAAuC,GAC7C,OAAO,CAAC,6BAA6B,EAAE,CAAC,CAa1C"}
|