@acorex-platform/module-common-client 0.0.32 → 0.0.37

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.
Files changed (55) hide show
  1. package/fesm2022/{acorex-platform-module-common-client-acorex-platform-module-common-client-DsCvUxSh.mjs → acorex-platform-module-common-client-acorex-platform-module-common-client-BmGXSWg4.mjs} +40 -23
  2. package/fesm2022/acorex-platform-module-common-client-acorex-platform-module-common-client-BmGXSWg4.mjs.map +1 -0
  3. package/fesm2022/{acorex-platform-module-common-client-archive-entity.command-QmrPzKy_.mjs → acorex-platform-module-common-client-archive-entity.command-D0TFxo2b.mjs} +2 -2
  4. package/fesm2022/{acorex-platform-module-common-client-archive-entity.command-QmrPzKy_.mjs.map → acorex-platform-module-common-client-archive-entity.command-D0TFxo2b.mjs.map} +1 -1
  5. package/fesm2022/{acorex-platform-module-common-client-archive-entity.command.util-fd533YPY.mjs → acorex-platform-module-common-client-archive-entity.command.util-DrW2EjNj.mjs} +2 -2
  6. package/fesm2022/{acorex-platform-module-common-client-archive-entity.command.util-fd533YPY.mjs.map → acorex-platform-module-common-client-archive-entity.command.util-DrW2EjNj.mjs.map} +1 -1
  7. package/fesm2022/{acorex-platform-module-common-client-audit-info-column.component-CsqKKwwF.mjs → acorex-platform-module-common-client-audit-info-column.component-tMlIVjiu.mjs} +2 -2
  8. package/fesm2022/{acorex-platform-module-common-client-audit-info-column.component-CsqKKwwF.mjs.map → acorex-platform-module-common-client-audit-info-column.component-tMlIVjiu.mjs.map} +1 -1
  9. package/fesm2022/acorex-platform-module-common-client-audit-info-edit.component-COMMBgsX.mjs.map +1 -1
  10. package/fesm2022/acorex-platform-module-common-client-audit-info-view.component-UOTT-ir_.mjs.map +1 -1
  11. package/fesm2022/{acorex-platform-module-common-client-bulk-archive-entity.command-BfINUGph.mjs → acorex-platform-module-common-client-bulk-archive-entity.command-LNJekir_.mjs} +2 -2
  12. package/fesm2022/{acorex-platform-module-common-client-bulk-archive-entity.command-BfINUGph.mjs.map → acorex-platform-module-common-client-bulk-archive-entity.command-LNJekir_.mjs.map} +1 -1
  13. package/fesm2022/acorex-platform-module-common-client-bulk-disable-entity.command-DgoZVXQA.mjs.map +1 -1
  14. package/fesm2022/acorex-platform-module-common-client-bulk-enable-entity.command-C6fba__g.mjs.map +1 -1
  15. package/fesm2022/{acorex-platform-module-common-client-bulk-restore-archive-entity.command-CGy1Kdon.mjs → acorex-platform-module-common-client-bulk-restore-archive-entity.command-DV81VX8K.mjs} +2 -2
  16. package/fesm2022/{acorex-platform-module-common-client-bulk-restore-archive-entity.command-CGy1Kdon.mjs.map → acorex-platform-module-common-client-bulk-restore-archive-entity.command-DV81VX8K.mjs.map} +1 -1
  17. package/fesm2022/{acorex-platform-module-common-client-clone-entity.command-DgVI86z3.mjs → acorex-platform-module-common-client-clone-entity.command-CcjD0iDW.mjs} +2 -2
  18. package/fesm2022/{acorex-platform-module-common-client-clone-entity.command-DgVI86z3.mjs.map → acorex-platform-module-common-client-clone-entity.command-CcjD0iDW.mjs.map} +1 -1
  19. package/fesm2022/acorex-platform-module-common-client-contracts-entities-record-lock.mjs +135 -0
  20. package/fesm2022/acorex-platform-module-common-client-contracts-entities-record-lock.mjs.map +1 -0
  21. package/fesm2022/acorex-platform-module-common-client-contracts-entities-version-entry.mjs +205 -0
  22. package/fesm2022/acorex-platform-module-common-client-contracts-entities-version-entry.mjs.map +1 -0
  23. package/fesm2022/acorex-platform-module-common-client-contracts-entities-version-stream.mjs +118 -0
  24. package/fesm2022/acorex-platform-module-common-client-contracts-entities-version-stream.mjs.map +1 -0
  25. package/fesm2022/acorex-platform-module-common-client-contracts-entity-catalog-acorex-platform-module-common-client-contracts-entity-catalog-C2WFbRne.mjs +61 -0
  26. package/fesm2022/acorex-platform-module-common-client-contracts-entity-catalog-acorex-platform-module-common-client-contracts-entity-catalog-C2WFbRne.mjs.map +1 -0
  27. package/fesm2022/acorex-platform-module-common-client-contracts-entity-catalog-record-lock.entity-CY6jfaD7.mjs +95 -0
  28. package/fesm2022/acorex-platform-module-common-client-contracts-entity-catalog-record-lock.entity-CY6jfaD7.mjs.map +1 -0
  29. package/fesm2022/acorex-platform-module-common-client-contracts-entity-catalog-version-entry.entity-DCBxAIMJ.mjs +165 -0
  30. package/fesm2022/acorex-platform-module-common-client-contracts-entity-catalog-version-entry.entity-DCBxAIMJ.mjs.map +1 -0
  31. package/fesm2022/acorex-platform-module-common-client-contracts-entity-catalog-version-stream.entity-DbSB34vz.mjs +78 -0
  32. package/fesm2022/acorex-platform-module-common-client-contracts-entity-catalog-version-stream.entity-DbSB34vz.mjs.map +1 -0
  33. package/fesm2022/acorex-platform-module-common-client-contracts-entity-catalog.mjs +2 -0
  34. package/fesm2022/acorex-platform-module-common-client-contracts-entity-catalog.mjs.map +1 -0
  35. package/fesm2022/acorex-platform-module-common-client-contracts.mjs.map +1 -1
  36. package/fesm2022/acorex-platform-module-common-client-disable-entity.command-Bc1uH38V.mjs.map +1 -1
  37. package/fesm2022/acorex-platform-module-common-client-disable-entity.command.util-DQl6u2nj.mjs.map +1 -1
  38. package/fesm2022/acorex-platform-module-common-client-enable-entity.command-DeTumWIj.mjs.map +1 -1
  39. package/fesm2022/acorex-platform-module-common-client-get-current-time.command-Ck_SC5Bu.mjs.map +1 -1
  40. package/fesm2022/acorex-platform-module-common-client-local-entities.mjs +31 -0
  41. package/fesm2022/acorex-platform-module-common-client-local-entities.mjs.map +1 -0
  42. package/fesm2022/{acorex-platform-module-common-client-restore-archive-entity.command-Dx8CIcWc.mjs → acorex-platform-module-common-client-restore-archive-entity.command-CWJPmL4o.mjs} +2 -2
  43. package/fesm2022/{acorex-platform-module-common-client-restore-archive-entity.command-Dx8CIcWc.mjs.map → acorex-platform-module-common-client-restore-archive-entity.command-CWJPmL4o.mjs.map} +1 -1
  44. package/fesm2022/{acorex-platform-module-common-client-search-popup.component-D9gce0xf.mjs → acorex-platform-module-common-client-search-popup.component-CNJmksXt.mjs} +3 -3
  45. package/fesm2022/{acorex-platform-module-common-client-search-popup.component-D9gce0xf.mjs.map → acorex-platform-module-common-client-search-popup.component-CNJmksXt.mjs.map} +1 -1
  46. package/fesm2022/{acorex-platform-module-common-client-timeline-version-history-popup.component-Dg-TrXGF.mjs → acorex-platform-module-common-client-timeline-version-history-popup.component-DDpyY7mO.mjs} +3 -3
  47. package/fesm2022/{acorex-platform-module-common-client-timeline-version-history-popup.component-Dg-TrXGF.mjs.map → acorex-platform-module-common-client-timeline-version-history-popup.component-DDpyY7mO.mjs.map} +1 -1
  48. package/fesm2022/acorex-platform-module-common-client.mjs +1 -1
  49. package/package.json +21 -1
  50. package/types/acorex-platform-module-common-client-contracts-entities-record-lock.d.ts +5 -0
  51. package/types/acorex-platform-module-common-client-contracts-entities-version-entry.d.ts +5 -0
  52. package/types/acorex-platform-module-common-client-contracts-entities-version-stream.d.ts +5 -0
  53. package/types/acorex-platform-module-common-client-contracts-entity-catalog.d.ts +10 -0
  54. package/types/acorex-platform-module-common-client-local-entities.d.ts +12 -0
  55. package/fesm2022/acorex-platform-module-common-client-acorex-platform-module-common-client-DsCvUxSh.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-common-client-clone-entity.command-DgVI86z3.mjs","sources":["../../../../libs/modules/common/client/src/lib/features/clone-plugin/commands/clone-entity.command.helper.ts","../../../../libs/modules/common/client/src/lib/features/clone-plugin/clone-identifier-fields.util.ts","../../../../libs/modules/common/client/src/lib/features/clone-plugin/commands/clone-entity.command.util.ts","../../../../libs/modules/common/client/src/lib/features/clone-plugin/commands/clone-entity.command.ts"],"sourcesContent":["import { AXDialogService } from '@acorex/components/dialog';\nimport { AXLoadingDialogService } from '@acorex/components/loading-dialog';\nimport { AXToastService } from '@acorex/components/toast';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport type { AXPContextData } from '@acorex-platform/framework-shared/core';\nimport { AXPCommonSettings, AXPSettingsService } from '@acorex-platform/framework-client/common';\nimport { AXPEntityBroadcastService } from '@acorex-platform/framework-client/core';\nimport { AXPEntityDefinitionRegistryService } from '@acorex-platform/framework-client/layout/entity';\nimport type { AXPEntity } from '@acorex-platform/framework-shared/entity';\nimport { inject, Injectable } from '@angular/core';\n\n@Injectable({ providedIn: 'root' })\nexport class AXPCloneEntityCommandHelper {\n private readonly entityRegistry = inject(AXPEntityDefinitionRegistryService);\n private readonly dialogService = inject(AXDialogService);\n private readonly loadingDialog = inject(AXLoadingDialogService);\n private readonly translationService = inject(AXTranslationService);\n private readonly toastService = inject(AXToastService);\n private readonly settingsService = inject(AXPSettingsService);\n private readonly entityEvents = inject(AXPEntityBroadcastService);\n\n async resolveEntity(refType: string): Promise<AXPEntity> {\n const [moduleName, entityName] = refType.split('.');\n return this.entityRegistry.resolve(moduleName, entityName);\n }\n\n async fetchEntityData(refType: string, refId: string): Promise<AXPContextData> {\n const entityDefinition = await this.resolveEntity(refType);\n\n if (entityDefinition.queries?.byKey) {\n const queryExec = entityDefinition.queries.byKey.execute as\n | ((id: string) => Promise<AXPContextData>)\n | undefined;\n\n if (!queryExec) {\n throw new Error('Entity byKey query is not executable');\n }\n\n return queryExec(refId);\n }\n\n return { id: refId };\n }\n\n async createEntity(refType: string, data: AXPContextData): Promise<string> {\n const entityDefinition = await this.resolveEntity(refType);\n const createExec = entityDefinition.commands?.create?.execute as\n | ((payload: AXPContextData) => Promise<string>)\n | undefined;\n\n if (!createExec) {\n throw new Error('Entity does not support create operation');\n }\n\n return createExec(data);\n }\n\n async confirm(titleKey: string, messageKey: string, messageParams?: AXPContextData): Promise<boolean> {\n const dialogResult = await this.dialogService.confirm(\n await this.translationService.translateAsync(titleKey),\n await this.translationService.translateAsync(messageKey, { params: messageParams }),\n 'warning',\n 'horizontal',\n false,\n 'cancel',\n );\n return dialogResult.result === true;\n }\n\n showLoading(title: string, status: string) {\n return this.loadingDialog.show({\n title,\n mode: 'indeterminate',\n status,\n });\n }\n\n async showSuccessToast(titleKey: string, contentKey?: string): Promise<void> {\n const enabled = await this.settingsService.get<boolean>(AXPCommonSettings.EnableOperationToasts);\n if (!enabled) {\n return;\n }\n\n this.toastService.show({\n color: 'success',\n title: await this.translationService.translateAsync(titleKey),\n content: contentKey ? await this.translationService.translateAsync(contentKey) : undefined,\n });\n }\n\n dispatchCloned(refType: string, _originalId: string, newId: string, meta?: AXPContextData): void {\n this.entityEvents.publishLayoutRefresh(refType, {\n ...(meta as Record<string, unknown> | undefined),\n highlightRowId: newId,\n resetPagination: true,\n });\n }\n}\n","import type { AXPContextData } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity } from '@acorex-platform/framework-shared/entity';\nimport { isValidVariableName, toVariableName } from '../../validations/utils/variable-name.util';\nimport { AXPDerivedNameExtension } from '../derived-name-plugin/derived-name.plugin';\n\n//#region ---- Constants ----\n\nexport const CLONE_TITLE_SUFFIX = ' (Copy)';\nexport const CLONE_CODE_SUFFIX = '_copy';\n\n//#endregion\n\n//#region ---- Clone Identifier Field Preparation ----\n\n/**\n * Adjusts common identifier fields after cloning.\n * Uses entity metadata (derived-name plugin, variable-name validation) to pick a safe strategy.\n */\nexport function prepareCloneIdentifierFields(\n clonedData: AXPContextData,\n entityDefinition: AXPEntity,\n): void {\n const derivedName = (entityDefinition as { extensions?: { derivedName?: AXPDerivedNameExtension } }).extensions\n ?.derivedName;\n const properties = entityDefinition.properties ?? [];\n\n const propertyHasVariableNameRule = (fieldName: string): boolean =>\n properties.some(\n (prop) =>\n prop.name === fieldName && prop.validations?.some((validation) => validation.rule === 'variable-name'),\n );\n\n const title = clonedData['title'];\n if (typeof title === 'string' && title.trim()) {\n clonedData['title'] = `${title.trim()}${CLONE_TITLE_SUFFIX}`;\n }\n\n if (Object.prototype.hasOwnProperty.call(clonedData, 'name')) {\n clonedData['name'] = resolveClonedName(clonedData, derivedName, propertyHasVariableNameRule('name'));\n }\n\n const code = clonedData['code'];\n if (typeof code === 'string' && code.trim()) {\n clonedData['code'] = `${code.trim()}${CLONE_CODE_SUFFIX}`;\n }\n}\n\nfunction resolveClonedName(\n clonedData: AXPContextData,\n derivedName: AXPDerivedNameExtension | undefined,\n hasVariableNameValidation: boolean,\n): string {\n const sourceField = derivedName?.sourceField ?? 'title';\n const sourceValue = clonedData[sourceField];\n\n if (derivedName || hasVariableNameValidation) {\n const fromSource = toVariableName(sourceValue);\n if (fromSource) {\n return fromSource;\n }\n }\n\n const currentName = clonedData['name'];\n if (typeof currentName === 'string' && currentName.trim()) {\n const suffixed = `${currentName.trim()}${CLONE_CODE_SUFFIX}`;\n if (isValidVariableName(suffixed)) {\n return suffixed;\n }\n\n const fromTitle = toVariableName(clonedData['title']);\n if (fromTitle) {\n return fromTitle;\n }\n\n return toVariableName(currentName, 'clone');\n }\n\n return toVariableName(clonedData['title'], 'clone');\n}\n\n//#endregion\n","import type { AXPContextData } from '@acorex-platform/framework-shared/core';\nimport type { AXPEntity } from '@acorex-platform/framework-shared/entity';\nimport { resolveEntityActionRef } from '@acorex-platform/framework-shared/runtime';\n\nimport { prepareCloneIdentifierFields } from '../clone-identifier-fields.util';\n\nexport interface AXPCloneCommandContext {\n refId: string;\n refType: string;\n rowData?: AXPContextData;\n}\n\nexport function normalizeCloneInput(input: AXPContextData): AXPCloneCommandContext | null {\n const resolved = resolveEntityActionRef(input);\n if (!resolved) {\n return null;\n }\n\n return {\n refId: resolved.refId,\n refType: resolved.refType,\n rowData: resolved.rowData as AXPContextData | undefined,\n };\n}\n\nexport function prepareClonedData(originalData: AXPContextData, entityDefinition: AXPEntity): AXPContextData {\n const clonedData = { ...originalData };\n\n delete clonedData['id'];\n delete clonedData['createdAt'];\n delete clonedData['updatedAt'];\n delete clonedData['createdBy'];\n delete clonedData['updatedBy'];\n delete clonedData['version'];\n delete clonedData['isArchived'];\n delete clonedData['archivedAt'];\n delete clonedData['isDisabled'];\n delete clonedData['disabledAt'];\n\n prepareCloneIdentifierFields(clonedData, entityDefinition);\n\n if (clonedData['isActive'] !== undefined) {\n clonedData['isActive'] = true;\n }\n if (clonedData['status'] !== undefined) {\n clonedData['status'] = 'draft';\n }\n\n return clonedData;\n}\n\nexport function buildCloneRefreshMeta(\n entityDefinition: AXPEntity,\n clonedData: AXPContextData,\n): AXPContextData {\n const meta: AXPContextData = {};\n if (entityDefinition.parentKey && clonedData[entityDefinition.parentKey] != null) {\n meta['refreshTargetId'] = clonedData[entityDefinition.parentKey];\n }\n return meta;\n}\n","import { AXPCommand, type AXPCommandExecuteResultPromise } from '@acorex-platform/framework-shared/runtime';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport { AXPRuntimeCommandResult, type AXPContextData } from '@acorex-platform/framework-shared/core';\nimport { inject, Injectable } from '@angular/core';\n\nimport { AXPCloneEntityCommandHelper } from './clone-entity.command.helper';\nimport {\n buildCloneRefreshMeta,\n normalizeCloneInput,\n prepareClonedData,\n} from './clone-entity.command.util';\n\n@Injectable({ providedIn: 'root' })\nexport class AXPCloneEntityCommand implements AXPCommand<AXPContextData, { newId: string }> {\n private readonly helper = inject(AXPCloneEntityCommandHelper);\n private readonly translationService = inject(AXTranslationService);\n\n async execute(input: AXPContextData): AXPCommandExecuteResultPromise<{ newId: string }> {\n const context = normalizeCloneInput(input);\n if (!context) {\n return {\n success: false,\n message: {\n text: await this.translationService.translateAsync('@general:messages.entity.invalid-data'),\n },\n };\n }\n\n const confirmed = await this.helper.confirm(\n '@general:actions.clone.confirm.title',\n '@general:actions.clone.confirm.message',\n );\n if (!confirmed) {\n return { success: false };\n }\n\n const loadingDialog = this.helper.showLoading(\n await this.translationService.translateAsync('@general:actions.clone.confirm.processing'),\n 'Cloning...',\n );\n\n try {\n const entityDefinition = await this.helper.resolveEntity(context.refType);\n const originalData = await this.helper.fetchEntityData(context.refType, context.refId);\n const clonedData = prepareClonedData(originalData, entityDefinition);\n const newId = await this.helper.createEntity(context.refType, clonedData);\n\n const meta = buildCloneRefreshMeta(entityDefinition, clonedData);\n this.helper.dispatchCloned(context.refType, context.refId, newId, meta);\n await this.helper.showSuccessToast('@general:workflow.entity-cloned', '@general:workflow.entity-cloned-body');\n\n return { success: true, kind: 'object', data: { newId } };\n } catch (error) {\n console.error('Clone operation failed:', error);\n return {\n success: false,\n message: {\n text: error instanceof Error ? error.message : 'Clone operation failed',\n },\n };\n } finally {\n loadingDialog.close();\n }\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;MAYa,2BAA2B,CAAA;AADxC,IAAA,WAAA,GAAA;AAEmB,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,kCAAkC,CAAC;AAC3D,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,eAAe,CAAC;AACvC,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,sBAAsB,CAAC;AAC9C,QAAA,IAAA,CAAA,kBAAkB,GAAG,MAAM,CAAC,oBAAoB,CAAC;AACjD,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC;AACrC,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,kBAAkB,CAAC;AAC5C,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,yBAAyB,CAAC;AA8ElE,IAAA;IA5EC,MAAM,aAAa,CAAC,OAAe,EAAA;AACjC,QAAA,MAAM,CAAC,UAAU,EAAE,UAAU,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC;QACnD,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,UAAU,EAAE,UAAU,CAAC;IAC5D;AAEA,IAAA,MAAM,eAAe,CAAC,OAAe,EAAE,KAAa,EAAA;QAClD,MAAM,gBAAgB,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC;AAE1D,QAAA,IAAI,gBAAgB,CAAC,OAAO,EAAE,KAAK,EAAE;YACnC,MAAM,SAAS,GAAG,gBAAgB,CAAC,OAAO,CAAC,KAAK,CAAC,OAEpC;YAEb,IAAI,CAAC,SAAS,EAAE;AACd,gBAAA,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC;YAC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AE,KAAK,CAAC;YAC/C,OAAO;AACL,gBAAA,OAAO,EAAE,KAAK;AACd,gBAAA,OAAO,EAAE;AACP,oBAAA,IAAI,EAAE,KAAK,YAAY,KAAK,GAAG,KAAK,CAAC,OAAO,GAAG,wBAAwB;AACxE,iBAAA;aACF;QACH;gBAAU;YACR,aAAa,CAAC,KAAK,EAAE;QACvB;IACF;8GAlDW,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAArB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,qBAAqB,cADR,MAAM,EAAA,CAAA,CAAA;;2FACnB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBADjC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;;;"}
1
+ {"version":3,"file":"acorex-platform-module-common-client-clone-entity.command-CcjD0iDW.mjs","sources":["../../../../libs/modules/common/client/src/lib/features/clone-plugin/commands/clone-entity.command.helper.ts","../../../../libs/modules/common/client/src/lib/features/clone-plugin/clone-identifier-fields.util.ts","../../../../libs/modules/common/client/src/lib/features/clone-plugin/commands/clone-entity.command.util.ts","../../../../libs/modules/common/client/src/lib/features/clone-plugin/commands/clone-entity.command.ts"],"sourcesContent":["import { AXDialogService } from '@acorex/components/dialog';\nimport { AXLoadingDialogService } from '@acorex/components/loading-dialog';\nimport { AXToastService } from '@acorex/components/toast';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport type { AXPContextData } from '@acorex-platform/framework-shared/core';\nimport { AXPCommonSettings, AXPSettingsService } from '@acorex-platform/framework-client/common';\nimport { AXPEntityBroadcastService } from '@acorex-platform/framework-client/core';\nimport { AXPEntityDefinitionRegistryService } from '@acorex-platform/framework-client/layout/entity';\nimport type { AXPEntity } from '@acorex-platform/framework-shared/entity';\nimport { inject, Injectable } from '@angular/core';\n\n@Injectable({ providedIn: 'root' })\nexport class AXPCloneEntityCommandHelper {\n private readonly entityRegistry = inject(AXPEntityDefinitionRegistryService);\n private readonly dialogService = inject(AXDialogService);\n private readonly loadingDialog = inject(AXLoadingDialogService);\n private readonly translationService = inject(AXTranslationService);\n private readonly toastService = inject(AXToastService);\n private readonly settingsService = inject(AXPSettingsService);\n private readonly entityEvents = inject(AXPEntityBroadcastService);\n\n async resolveEntity(refType: string): Promise<AXPEntity> {\n const [moduleName, entityName] = refType.split('.');\n return this.entityRegistry.resolve(moduleName, entityName);\n }\n\n async fetchEntityData(refType: string, refId: string): Promise<AXPContextData> {\n const entityDefinition = await this.resolveEntity(refType);\n\n if (entityDefinition.queries?.byKey) {\n const queryExec = entityDefinition.queries.byKey.execute as\n | ((id: string) => Promise<AXPContextData>)\n | undefined;\n\n if (!queryExec) {\n throw new Error('Entity byKey query is not executable');\n }\n\n return queryExec(refId);\n }\n\n return { id: refId };\n }\n\n async createEntity(refType: string, data: AXPContextData): Promise<string> {\n const entityDefinition = await this.resolveEntity(refType);\n const createExec = entityDefinition.commands?.create?.execute as\n | ((payload: AXPContextData) => Promise<string>)\n | undefined;\n\n if (!createExec) {\n throw new Error('Entity does not support create operation');\n }\n\n return createExec(data);\n }\n\n async confirm(titleKey: string, messageKey: string, messageParams?: AXPContextData): Promise<boolean> {\n const dialogResult = await this.dialogService.confirm(\n await this.translationService.translateAsync(titleKey),\n await this.translationService.translateAsync(messageKey, { params: messageParams }),\n 'warning',\n 'horizontal',\n false,\n 'cancel',\n );\n return dialogResult.result === true;\n }\n\n showLoading(title: string, status: string) {\n return this.loadingDialog.show({\n title,\n mode: 'indeterminate',\n status,\n });\n }\n\n async showSuccessToast(titleKey: string, contentKey?: string): Promise<void> {\n const enabled = await this.settingsService.get<boolean>(AXPCommonSettings.EnableOperationToasts);\n if (!enabled) {\n return;\n }\n\n this.toastService.show({\n color: 'success',\n title: await this.translationService.translateAsync(titleKey),\n content: contentKey ? await this.translationService.translateAsync(contentKey) : undefined,\n });\n }\n\n dispatchCloned(refType: string, _originalId: string, newId: string, meta?: AXPContextData): void {\n this.entityEvents.publishLayoutRefresh(refType, {\n ...(meta as Record<string, unknown> | undefined),\n highlightRowId: newId,\n resetPagination: true,\n });\n }\n}\n","import type { AXPContextData } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity } from '@acorex-platform/framework-shared/entity';\nimport { isValidVariableName, toVariableName } from '../../validations/utils/variable-name.util';\nimport { AXPDerivedNameExtension } from '../derived-name-plugin/derived-name.plugin';\n\n//#region ---- Constants ----\n\nexport const CLONE_TITLE_SUFFIX = ' (Copy)';\nexport const CLONE_CODE_SUFFIX = '_copy';\n\n//#endregion\n\n//#region ---- Clone Identifier Field Preparation ----\n\n/**\n * Adjusts common identifier fields after cloning.\n * Uses entity metadata (derived-name plugin, variable-name validation) to pick a safe strategy.\n */\nexport function prepareCloneIdentifierFields(\n clonedData: AXPContextData,\n entityDefinition: AXPEntity,\n): void {\n const derivedName = (entityDefinition as { extensions?: { derivedName?: AXPDerivedNameExtension } }).extensions\n ?.derivedName;\n const properties = entityDefinition.properties ?? [];\n\n const propertyHasVariableNameRule = (fieldName: string): boolean =>\n properties.some(\n (prop) =>\n prop.name === fieldName && prop.validations?.some((validation) => validation.rule === 'variable-name'),\n );\n\n const title = clonedData['title'];\n if (typeof title === 'string' && title.trim()) {\n clonedData['title'] = `${title.trim()}${CLONE_TITLE_SUFFIX}`;\n }\n\n if (Object.prototype.hasOwnProperty.call(clonedData, 'name')) {\n clonedData['name'] = resolveClonedName(clonedData, derivedName, propertyHasVariableNameRule('name'));\n }\n\n const code = clonedData['code'];\n if (typeof code === 'string' && code.trim()) {\n clonedData['code'] = `${code.trim()}${CLONE_CODE_SUFFIX}`;\n }\n}\n\nfunction resolveClonedName(\n clonedData: AXPContextData,\n derivedName: AXPDerivedNameExtension | undefined,\n hasVariableNameValidation: boolean,\n): string {\n const sourceField = derivedName?.sourceField ?? 'title';\n const sourceValue = clonedData[sourceField];\n\n if (derivedName || hasVariableNameValidation) {\n const fromSource = toVariableName(sourceValue);\n if (fromSource) {\n return fromSource;\n }\n }\n\n const currentName = clonedData['name'];\n if (typeof currentName === 'string' && currentName.trim()) {\n const suffixed = `${currentName.trim()}${CLONE_CODE_SUFFIX}`;\n if (isValidVariableName(suffixed)) {\n return suffixed;\n }\n\n const fromTitle = toVariableName(clonedData['title']);\n if (fromTitle) {\n return fromTitle;\n }\n\n return toVariableName(currentName, 'clone');\n }\n\n return toVariableName(clonedData['title'], 'clone');\n}\n\n//#endregion\n","import type { AXPContextData } from '@acorex-platform/framework-shared/core';\nimport type { AXPEntity } from '@acorex-platform/framework-shared/entity';\nimport { resolveEntityActionRef } from '@acorex-platform/framework-shared/runtime';\n\nimport { prepareCloneIdentifierFields } from '../clone-identifier-fields.util';\n\nexport interface AXPCloneCommandContext {\n refId: string;\n refType: string;\n rowData?: AXPContextData;\n}\n\nexport function normalizeCloneInput(input: AXPContextData): AXPCloneCommandContext | null {\n const resolved = resolveEntityActionRef(input);\n if (!resolved) {\n return null;\n }\n\n return {\n refId: resolved.refId,\n refType: resolved.refType,\n rowData: resolved.rowData as AXPContextData | undefined,\n };\n}\n\nexport function prepareClonedData(originalData: AXPContextData, entityDefinition: AXPEntity): AXPContextData {\n const clonedData = { ...originalData };\n\n delete clonedData['id'];\n delete clonedData['createdAt'];\n delete clonedData['updatedAt'];\n delete clonedData['createdBy'];\n delete clonedData['updatedBy'];\n delete clonedData['version'];\n delete clonedData['isArchived'];\n delete clonedData['archivedAt'];\n delete clonedData['isDisabled'];\n delete clonedData['disabledAt'];\n\n prepareCloneIdentifierFields(clonedData, entityDefinition);\n\n if (clonedData['isActive'] !== undefined) {\n clonedData['isActive'] = true;\n }\n if (clonedData['status'] !== undefined) {\n clonedData['status'] = 'draft';\n }\n\n return clonedData;\n}\n\nexport function buildCloneRefreshMeta(\n entityDefinition: AXPEntity,\n clonedData: AXPContextData,\n): AXPContextData {\n const meta: AXPContextData = {};\n if (entityDefinition.parentKey && clonedData[entityDefinition.parentKey] != null) {\n meta['refreshTargetId'] = clonedData[entityDefinition.parentKey];\n }\n return meta;\n}\n","import { AXPCommand, type AXPCommandExecuteResultPromise } from '@acorex-platform/framework-shared/runtime';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport { AXPRuntimeCommandResult, type AXPContextData } from '@acorex-platform/framework-shared/core';\nimport { inject, Injectable } from '@angular/core';\n\nimport { AXPCloneEntityCommandHelper } from './clone-entity.command.helper';\nimport {\n buildCloneRefreshMeta,\n normalizeCloneInput,\n prepareClonedData,\n} from './clone-entity.command.util';\n\n@Injectable({ providedIn: 'root' })\nexport class AXPCloneEntityCommand implements AXPCommand<AXPContextData, { newId: string }> {\n private readonly helper = inject(AXPCloneEntityCommandHelper);\n private readonly translationService = inject(AXTranslationService);\n\n async execute(input: AXPContextData): AXPCommandExecuteResultPromise<{ newId: string }> {\n const context = normalizeCloneInput(input);\n if (!context) {\n return {\n success: false,\n message: {\n text: await this.translationService.translateAsync('@general:messages.entity.invalid-data'),\n },\n };\n }\n\n const confirmed = await this.helper.confirm(\n '@general:actions.clone.confirm.title',\n '@general:actions.clone.confirm.message',\n );\n if (!confirmed) {\n return { success: false };\n }\n\n const loadingDialog = this.helper.showLoading(\n await this.translationService.translateAsync('@general:actions.clone.confirm.processing'),\n 'Cloning...',\n );\n\n try {\n const entityDefinition = await this.helper.resolveEntity(context.refType);\n const originalData = await this.helper.fetchEntityData(context.refType, context.refId);\n const clonedData = prepareClonedData(originalData, entityDefinition);\n const newId = await this.helper.createEntity(context.refType, clonedData);\n\n const meta = buildCloneRefreshMeta(entityDefinition, clonedData);\n this.helper.dispatchCloned(context.refType, context.refId, newId, meta);\n await this.helper.showSuccessToast('@general:workflow.entity-cloned', '@general:workflow.entity-cloned-body');\n\n return { success: true, kind: 'object', data: { newId } };\n } catch (error) {\n console.error('Clone operation failed:', error);\n return {\n success: false,\n message: {\n text: error instanceof Error ? error.message : 'Clone operation failed',\n },\n };\n } finally {\n loadingDialog.close();\n }\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;MAYa,2BAA2B,CAAA;AADxC,IAAA,WAAA,GAAA;AAEmB,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,kCAAkC,CAAC;AAC3D,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,eAAe,CAAC;AACvC,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,sBAAsB,CAAC;AAC9C,QAAA,IAAA,CAAA,kBAAkB,GAAG,MAAM,CAAC,oBAAoB,CAAC;AACjD,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC;AACrC,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,kBAAkB,CAAC;AAC5C,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,yBAAyB,CAAC;AA8ElE,IAAA;IA5EC,MAAM,aAAa,CAAC,OAAe,EAAA;AACjC,QAAA,MAAM,CAAC,UAAU,EAAE,UAAU,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC;QACnD,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,UAAU,EAAE,UAAU,CAAC;IAC5D;AAEA,IAAA,MAAM,eAAe,CAAC,OAAe,EAAE,KAAa,EAAA;QAClD,MAAM,gBAAgB,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC;AAE1D,QAAA,IAAI,gBAAgB,CAAC,OAAO,EAAE,KAAK,EAAE;YACnC,MAAM,SAAS,GAAG,gBAAgB,CAAC,OAAO,CAAC,KAAK,CAAC,OAEpC;YAEb,IAAI,CAAC,SAAS,EAAE;AACd,gBAAA,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC;YACzD;AAEA,YAAA,OAAO,SAAS,CAAC,KAAK,CAAC;QACzB;AAEA,QAAA,OAAO,EAAE,EA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AAE;AACP,oBAAA,IAAI,EAAE,KAAK,YAAY,KAAK,GAAG,KAAK,CAAC,OAAO,GAAG,wBAAwB;AACxE,iBAAA;aACF;QACH;gBAAU;YACR,aAAa,CAAC,KAAK,EAAE;QACvB;IACF;8GAlDW,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAArB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,qBAAqB,cADR,MAAM,EAAA,CAAA,CAAA;;2FACnB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBADjC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;"}
@@ -0,0 +1,135 @@
1
+ import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView } from '@acorex-platform/framework-shared/entity';
3
+
4
+ const config = {
5
+ i18n: 'common',
6
+ module: 'Common',
7
+ };
8
+ const RootConfig = {
9
+ config,
10
+ module: {
11
+ route: 'common',
12
+ name: config.module,
13
+ title: '@general:common.module.title',
14
+ icon: 'fa-light fa-file-invoice',
15
+ },
16
+ entities: {
17
+ recordLock: {
18
+ name: 'RecordLock',
19
+ title: 'Record Lock',
20
+ titlePlural: 'Record Locks',
21
+ icon: 'fa-light fa-lock',
22
+ source: `${config.module}.RecordLock`,
23
+ },
24
+ versionStream: {
25
+ name: 'VersionStream',
26
+ title: 'Version Stream',
27
+ titlePlural: 'Version Streams',
28
+ icon: 'fa-light fa-code-branch',
29
+ source: `${config.module}.VersionStream`,
30
+ },
31
+ versionEntry: {
32
+ name: 'VersionEntry',
33
+ title: 'Version Entry',
34
+ titlePlural: 'Version Entries',
35
+ icon: 'fa-light fa-clock-rotate-left',
36
+ source: `${config.module}.VersionEntry`,
37
+ },
38
+ },
39
+ };
40
+
41
+ //#region ---- Record lock entity (edit locks) ----
42
+ async function factoryRecordLock() {
43
+ const entityDef = {
44
+ module: RootConfig.module.name,
45
+ name: RootConfig.entities.recordLock.name,
46
+ title: RootConfig.entities.recordLock.title,
47
+ icon: RootConfig.entities.recordLock.icon,
48
+ formats: {
49
+ individual: RootConfig.entities.recordLock.title,
50
+ plural: RootConfig.entities.recordLock.titlePlural,
51
+ searchResult: {
52
+ title: '{{ refType }} / {{ refId }}',
53
+ description: '{{ type }}',
54
+ },
55
+ },
56
+ groups: [{ id: 'overview', title: 'Overview' }],
57
+ properties: [
58
+ {
59
+ name: 'id',
60
+ title: 'ID',
61
+ groupId: 'overview',
62
+ schema: {
63
+ dataType: 'uuid',
64
+ visible: false,
65
+ nullable: false,
66
+ readonly: true,
67
+ unique: { enabled: true },
68
+ },
69
+ },
70
+ {
71
+ name: 'refId',
72
+ title: 'Reference Id',
73
+ groupId: 'overview',
74
+ schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },
75
+ },
76
+ {
77
+ name: 'refType',
78
+ title: 'Reference Type',
79
+ groupId: 'overview',
80
+ schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },
81
+ },
82
+ {
83
+ name: 'type',
84
+ title: 'Lock Type',
85
+ groupId: 'overview',
86
+ schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },
87
+ },
88
+ {
89
+ name: 'date',
90
+ title: 'Lock Date',
91
+ groupId: 'overview',
92
+ schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },
93
+ },
94
+ {
95
+ name: 'expireAt',
96
+ title: 'Expires At',
97
+ groupId: 'overview',
98
+ schema: {
99
+ dataType: 'datetime',
100
+ interface: { type: AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },
101
+ readonly: true,
102
+ },
103
+ },
104
+ {
105
+ name: 'lockedBy',
106
+ title: 'Locked By',
107
+ groupId: 'overview',
108
+ schema: { dataType: 'object', interface: { type: 'json' }, readonly: true },
109
+ },
110
+ ],
111
+ columns: [
112
+ { name: 'refType' },
113
+ { name: 'refId' },
114
+ { name: 'type' },
115
+ { name: 'expireAt' },
116
+ ],
117
+ interfaces: {
118
+ master: {
119
+ list: {
120
+ actions: [],
121
+ views: [createAllQueryView({})],
122
+ },
123
+ },
124
+ },
125
+ };
126
+ return entityDef;
127
+ }
128
+ //#endregion
129
+
130
+ /**
131
+ * Generated bundle index. Do not edit.
132
+ */
133
+
134
+ export { factoryRecordLock };
135
+ //# sourceMappingURL=acorex-platform-module-common-client-contracts-entities-record-lock.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-common-client-contracts-entities-record-lock.mjs","sources":["../../../../libs/modules/common/contracts/src/root-config.ts","../../../../libs/modules/common/contracts/src/entities/record-lock/record-lock.entity.ts","../../../../libs/modules/common/contracts/src/acorex-platform-module-common-client-contracts-entities-record-lock.ts"],"sourcesContent":["const config = {\n i18n: 'common',\n module: 'Common',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'common',\n name: config.module,\n title: '@general:common.module.title',\n icon: 'fa-light fa-file-invoice',\n },\n entities: {\n recordLock: {\n name: 'RecordLock',\n title: 'Record Lock',\n titlePlural: 'Record Locks',\n icon: 'fa-light fa-lock',\n source: `${config.module}.RecordLock`,\n },\n versionStream: {\n name: 'VersionStream',\n title: 'Version Stream',\n titlePlural: 'Version Streams',\n icon: 'fa-light fa-code-branch',\n source: `${config.module}.VersionStream`,\n },\n versionEntry: {\n name: 'VersionEntry',\n title: 'Version Entry',\n titlePlural: 'Version Entries',\n icon: 'fa-light fa-clock-rotate-left',\n source: `${config.module}.VersionEntry`,\n },\n },\n} as const;\n","import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\n//#region ---- Record lock entity (edit locks) ----\n\nexport async function factoryRecordLock(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.recordLock.name,\n title: RootConfig.entities.recordLock.title,\n icon: RootConfig.entities.recordLock.icon,\n formats: {\n individual: RootConfig.entities.recordLock.title,\n plural: RootConfig.entities.recordLock.titlePlural,\n searchResult: {\n title: '{{ refType }} / {{ refId }}',\n description: '{{ type }}',\n },\n },\n groups: [{ id: 'overview', title: 'Overview' }],\n properties: [\n {\n name: 'id',\n title: 'ID',\n groupId: 'overview',\n schema: {\n dataType: 'uuid',\n visible: false,\n nullable: false,\n readonly: true,\n unique: { enabled: true },\n },\n },\n {\n name: 'refId',\n title: 'Reference Id',\n groupId: 'overview',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },\n },\n {\n name: 'refType',\n title: 'Reference Type',\n groupId: 'overview',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },\n },\n {\n name: 'type',\n title: 'Lock Type',\n groupId: 'overview',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },\n },\n {\n name: 'date',\n title: 'Lock Date',\n groupId: 'overview',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },\n },\n {\n name: 'expireAt',\n title: 'Expires At',\n groupId: 'overview',\n schema: {\n dataType: 'datetime',\n interface: { type: AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },\n readonly: true,\n },\n },\n {\n name: 'lockedBy',\n title: 'Locked By',\n groupId: 'overview',\n schema: { dataType: 'object', interface: { type: 'json' }, readonly: true },\n },\n ],\n columns: [\n { name: 'refType' },\n { name: 'refId' },\n { name: 'type' },\n { name: 'expireAt' },\n ],\n interfaces: {\n master: {\n list: {\n actions: [],\n views: [createAllQueryView({})],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.record-lock';\n"],"names":[],"mappings":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AA;AACF,SAAA;AACD,QAAA,OAAO,EAAE;YACP,EAAE,IAAI,EAAE,SAAS,EAAE;YACnB,EAAE,IAAI,EAAE,OAAO,EAAE;YACjB,EAAE,IAAI,EAAE,MAAM,EAAE;YAChB,EAAE,IAAI,EAAE,UAAU,EAAE;AACrB,SAAA;AACD,QAAA,UAAU,EAAE;AACV,YAAA,MAAM,EAAE;AACN,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAAC;AAChC,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;AC9FA;;AAEG;;"}
@@ -0,0 +1,205 @@
1
+ import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView } from '@acorex-platform/framework-shared/entity';
3
+
4
+ const config = {
5
+ i18n: 'common',
6
+ module: 'Common',
7
+ };
8
+ const RootConfig = {
9
+ config,
10
+ module: {
11
+ route: 'common',
12
+ name: config.module,
13
+ title: '@general:common.module.title',
14
+ icon: 'fa-light fa-file-invoice',
15
+ },
16
+ entities: {
17
+ recordLock: {
18
+ name: 'RecordLock',
19
+ title: 'Record Lock',
20
+ titlePlural: 'Record Locks',
21
+ icon: 'fa-light fa-lock',
22
+ source: `${config.module}.RecordLock`,
23
+ },
24
+ versionStream: {
25
+ name: 'VersionStream',
26
+ title: 'Version Stream',
27
+ titlePlural: 'Version Streams',
28
+ icon: 'fa-light fa-code-branch',
29
+ source: `${config.module}.VersionStream`,
30
+ },
31
+ versionEntry: {
32
+ name: 'VersionEntry',
33
+ title: 'Version Entry',
34
+ titlePlural: 'Version Entries',
35
+ icon: 'fa-light fa-clock-rotate-left',
36
+ source: `${config.module}.VersionEntry`,
37
+ },
38
+ },
39
+ };
40
+
41
+ //#region ---- Version entry entity ----
42
+ async function factoryVersionEntry() {
43
+ const i18n = RootConfig.config.i18n;
44
+ const entityDef = {
45
+ module: RootConfig.module.name,
46
+ name: RootConfig.entities.versionEntry.name,
47
+ title: `@${i18n}:version-history.entities.version-entry.title`,
48
+ icon: RootConfig.entities.versionEntry.icon,
49
+ formats: {
50
+ individual: `@${i18n}:version-history.entities.version-entry.title`,
51
+ plural: `@${i18n}:version-history.entities.version-entry.plural`,
52
+ searchResult: {
53
+ title: '#{{ versionNumber }} {{ changeType }}',
54
+ description: '{{ changedAt }}',
55
+ },
56
+ },
57
+ groups: [
58
+ {
59
+ id: 'overview',
60
+ title: `@general:terms.interface.basic-info`,
61
+ },
62
+ {
63
+ id: 'change',
64
+ title: `@${i18n}:version-history.entities.version-entry.groups.change`,
65
+ },
66
+ {
67
+ id: 'payload',
68
+ title: `@${i18n}:version-history.entities.version-entry.groups.payload`,
69
+ },
70
+ ],
71
+ properties: [
72
+ {
73
+ name: 'id',
74
+ title: `@general:terms.common.id`,
75
+ groupId: 'overview',
76
+ schema: {
77
+ dataType: 'string',
78
+ visible: false,
79
+ nullable: false,
80
+ readonly: true,
81
+ unique: { enabled: true },
82
+ },
83
+ },
84
+ {
85
+ name: 'streamId',
86
+ title: `@${i18n}:version-history.entities.version-entry.fields.stream.title`,
87
+ groupId: 'overview',
88
+ schema: {
89
+ dataType: 'string',
90
+ readonly: true,
91
+ interface: { type: AXPWidgetsCatalog.text },
92
+ },
93
+ },
94
+ {
95
+ name: 'versionNumber',
96
+ title: `@${i18n}:version-history.entities.version-entry.fields.version-number.title`,
97
+ groupId: 'overview',
98
+ schema: {
99
+ dataType: 'number',
100
+ interface: { type: AXPWidgetsCatalog.number },
101
+ readonly: true,
102
+ },
103
+ },
104
+ {
105
+ name: 'changeType',
106
+ title: `@${i18n}:version-history.entities.version-entry.fields.change-type.title`,
107
+ groupId: 'change',
108
+ schema: {
109
+ dataType: 'string',
110
+ interface: {
111
+ type: AXPWidgetsCatalog.select,
112
+ options: {
113
+ valueField: 'value',
114
+ textField: 'text',
115
+ dataSource: [
116
+ { value: 'Create', text: `@${i18n}:version-history.change-types.create` },
117
+ { value: 'Update', text: `@${i18n}:version-history.change-types.update` },
118
+ { value: 'Delete', text: `@${i18n}:version-history.change-types.delete` },
119
+ ],
120
+ },
121
+ },
122
+ readonly: true,
123
+ },
124
+ },
125
+ {
126
+ name: 'changedBy',
127
+ title: `@${i18n}:version-history.entities.version-entry.fields.changed-by.title`,
128
+ groupId: 'change',
129
+ schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },
130
+ },
131
+ {
132
+ name: 'changedByName',
133
+ title: `@${i18n}:version-history.entities.version-entry.fields.changed-by-name.title`,
134
+ groupId: 'change',
135
+ schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },
136
+ },
137
+ {
138
+ name: 'changedAt',
139
+ title: `@${i18n}:version-history.entities.version-entry.fields.changed-at.title`,
140
+ groupId: 'change',
141
+ schema: {
142
+ dataType: 'datetime',
143
+ interface: { type: AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },
144
+ readonly: true,
145
+ },
146
+ },
147
+ {
148
+ name: 'summary',
149
+ title: `@${i18n}:version-history.entities.version-entry.fields.summary.title`,
150
+ groupId: 'change',
151
+ schema: {
152
+ dataType: 'object',
153
+ interface: { type: 'json' },
154
+ readonly: true,
155
+ },
156
+ },
157
+ {
158
+ name: 'changeLines',
159
+ title: `@${i18n}:version-history.entities.version-entry.fields.change-lines.title`,
160
+ groupId: 'change',
161
+ schema: {
162
+ dataType: 'object',
163
+ interface: { type: 'json' },
164
+ readonly: true,
165
+ },
166
+ },
167
+ {
168
+ name: 'snapshotJson',
169
+ title: `@${i18n}:version-history.entities.version-entry.fields.snapshot.title`,
170
+ groupId: 'payload',
171
+ schema: { dataType: 'object', interface: { type: 'json' }, readonly: true },
172
+ },
173
+ {
174
+ name: 'patchFromPrevJson',
175
+ title: `@${i18n}:version-history.entities.version-entry.fields.patch.title`,
176
+ groupId: 'payload',
177
+ schema: { dataType: 'object', interface: { type: 'json' }, readonly: true },
178
+ },
179
+ ],
180
+ columns: [
181
+ { name: 'streamId' },
182
+ { name: 'versionNumber' },
183
+ { name: 'changeType' },
184
+ { name: 'summary' },
185
+ { name: 'changedAt' },
186
+ ],
187
+ interfaces: {
188
+ master: {
189
+ list: {
190
+ actions: [],
191
+ views: [createAllQueryView({})],
192
+ },
193
+ },
194
+ },
195
+ };
196
+ return entityDef;
197
+ }
198
+ //#endregion
199
+
200
+ /**
201
+ * Generated bundle index. Do not edit.
202
+ */
203
+
204
+ export { factoryVersionEntry };
205
+ //# sourceMappingURL=acorex-platform-module-common-client-contracts-entities-version-entry.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-common-client-contracts-entities-version-entry.mjs","sources":["../../../../libs/modules/common/contracts/src/root-config.ts","../../../../libs/modules/common/contracts/src/entities/version-entry/version-entry.entity.ts","../../../../libs/modules/common/contracts/src/acorex-platform-module-common-client-contracts-entities-version-entry.ts"],"sourcesContent":["const config = {\n i18n: 'common',\n module: 'Common',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'common',\n name: config.module,\n title: '@general:common.module.title',\n icon: 'fa-light fa-file-invoice',\n },\n entities: {\n recordLock: {\n name: 'RecordLock',\n title: 'Record Lock',\n titlePlural: 'Record Locks',\n icon: 'fa-light fa-lock',\n source: `${config.module}.RecordLock`,\n },\n versionStream: {\n name: 'VersionStream',\n title: 'Version Stream',\n titlePlural: 'Version Streams',\n icon: 'fa-light fa-code-branch',\n source: `${config.module}.VersionStream`,\n },\n versionEntry: {\n name: 'VersionEntry',\n title: 'Version Entry',\n titlePlural: 'Version Entries',\n icon: 'fa-light fa-clock-rotate-left',\n source: `${config.module}.VersionEntry`,\n },\n },\n} as const;\n","import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\n//#region ---- Version entry entity ----\n\nexport async function factoryVersionEntry(): Promise<AXPEntity | null> {\n const i18n = RootConfig.config.i18n;\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.versionEntry.name,\n title: `@${i18n}:version-history.entities.version-entry.title`,\n icon: RootConfig.entities.versionEntry.icon,\n formats: {\n individual: `@${i18n}:version-history.entities.version-entry.title`,\n plural: `@${i18n}:version-history.entities.version-entry.plural`,\n searchResult: {\n title: '#{{ versionNumber }} {{ changeType }}',\n description: '{{ changedAt }}',\n },\n },\n groups: [\n {\n id: 'overview',\n title: `@general:terms.interface.basic-info`,\n },\n {\n id: 'change',\n title: `@${i18n}:version-history.entities.version-entry.groups.change`,\n },\n {\n id: 'payload',\n title: `@${i18n}:version-history.entities.version-entry.groups.payload`,\n },\n ],\n properties: [\n {\n name: 'id',\n title: `@general:terms.common.id`,\n groupId: 'overview',\n schema: {\n dataType: 'string',\n visible: false,\n nullable: false,\n readonly: true,\n unique: { enabled: true },\n },\n },\n {\n name: 'streamId',\n title: `@${i18n}:version-history.entities.version-entry.fields.stream.title`,\n groupId: 'overview',\n schema: {\n dataType: 'string',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.text },\n },\n },\n {\n name: 'versionNumber',\n title: `@${i18n}:version-history.entities.version-entry.fields.version-number.title`,\n groupId: 'overview',\n schema: {\n dataType: 'number',\n interface: { type: AXPWidgetsCatalog.number },\n readonly: true,\n },\n },\n {\n name: 'changeType',\n title: `@${i18n}:version-history.entities.version-entry.fields.change-type.title`,\n groupId: 'change',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.select,\n options: {\n valueField: 'value',\n textField: 'text',\n dataSource: [\n { value: 'Create', text: `@${i18n}:version-history.change-types.create` },\n { value: 'Update', text: `@${i18n}:version-history.change-types.update` },\n { value: 'Delete', text: `@${i18n}:version-history.change-types.delete` },\n ],\n },\n },\n readonly: true,\n },\n },\n {\n name: 'changedBy',\n title: `@${i18n}:version-history.entities.version-entry.fields.changed-by.title`,\n groupId: 'change',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },\n },\n {\n name: 'changedByName',\n title: `@${i18n}:version-history.entities.version-entry.fields.changed-by-name.title`,\n groupId: 'change',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },\n },\n {\n name: 'changedAt',\n title: `@${i18n}:version-history.entities.version-entry.fields.changed-at.title`,\n groupId: 'change',\n schema: {\n dataType: 'datetime',\n interface: { type: AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },\n readonly: true,\n },\n },\n {\n name: 'summary',\n title: `@${i18n}:version-history.entities.version-entry.fields.summary.title`,\n groupId: 'change',\n schema: {\n dataType: 'object',\n interface: { type: 'json' },\n readonly: true,\n },\n },\n {\n name: 'changeLines',\n title: `@${i18n}:version-history.entities.version-entry.fields.change-lines.title`,\n groupId: 'change',\n schema: {\n dataType: 'object',\n interface: { type: 'json' },\n readonly: true,\n },\n },\n {\n name: 'snapshotJson',\n title: `@${i18n}:version-history.entities.version-entry.fields.snapshot.title`,\n groupId: 'payload',\n schema: { dataType: 'object', interface: { type: 'json' }, readonly: true },\n },\n {\n name: 'patchFromPrevJson',\n title: `@${i18n}:version-history.entities.version-entry.fields.patch.title`,\n groupId: 'payload',\n schema: { dataType: 'object', interface: { type: 'json' }, readonly: true },\n },\n ],\n columns: [\n { name: 'streamId' },\n { name: 'versionNumber' },\n { name: 'changeType' },\n { name: 'summary' },\n { name: 'changedAt' },\n ],\n interfaces: {\n master: {\n list: {\n actions: [],\n views: [createAllQueryView({})],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.version-entry';\n"],"names":[],"mappings":";;;AAAA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,QAAQ;AACd,IAAA,MAAM,EAAE,QAAQ;CACjB;AAEM,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;AACN,QAAA,KAAK,EAAE,QAAQ;QACf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,CAAC;AAChC,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;ACrKA;;AAEG;;"}
@@ -0,0 +1,118 @@
1
+ import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView } from '@acorex-platform/framework-shared/entity';
3
+
4
+ const config = {
5
+ i18n: 'common',
6
+ module: 'Common',
7
+ };
8
+ const RootConfig = {
9
+ config,
10
+ module: {
11
+ route: 'common',
12
+ name: config.module,
13
+ title: '@general:common.module.title',
14
+ icon: 'fa-light fa-file-invoice',
15
+ },
16
+ entities: {
17
+ recordLock: {
18
+ name: 'RecordLock',
19
+ title: 'Record Lock',
20
+ titlePlural: 'Record Locks',
21
+ icon: 'fa-light fa-lock',
22
+ source: `${config.module}.RecordLock`,
23
+ },
24
+ versionStream: {
25
+ name: 'VersionStream',
26
+ title: 'Version Stream',
27
+ titlePlural: 'Version Streams',
28
+ icon: 'fa-light fa-code-branch',
29
+ source: `${config.module}.VersionStream`,
30
+ },
31
+ versionEntry: {
32
+ name: 'VersionEntry',
33
+ title: 'Version Entry',
34
+ titlePlural: 'Version Entries',
35
+ icon: 'fa-light fa-clock-rotate-left',
36
+ source: `${config.module}.VersionEntry`,
37
+ },
38
+ },
39
+ };
40
+
41
+ //#region ---- Version stream entity ----
42
+ async function factoryVersionStream() {
43
+ const i18n = RootConfig.config.i18n;
44
+ const entityDef = {
45
+ module: RootConfig.module.name,
46
+ name: RootConfig.entities.versionStream.name,
47
+ title: `@${i18n}:version-history.entities.version-stream.title`,
48
+ icon: RootConfig.entities.versionStream.icon,
49
+ formats: {
50
+ individual: `@${i18n}:version-history.entities.version-stream.title`,
51
+ plural: `@${i18n}:version-history.entities.version-stream.plural`,
52
+ searchResult: {
53
+ title: '{{ entityType }} / {{ entityId }}',
54
+ description: '{{ createdAt }}',
55
+ },
56
+ },
57
+ groups: [
58
+ {
59
+ id: 'overview',
60
+ title: `@general:terms.interface.basic-info`,
61
+ },
62
+ ],
63
+ properties: [
64
+ {
65
+ name: 'id',
66
+ title: `@general:terms.common.id`,
67
+ groupId: 'overview',
68
+ schema: {
69
+ dataType: 'string',
70
+ visible: false,
71
+ nullable: false,
72
+ readonly: true,
73
+ unique: { enabled: true },
74
+ },
75
+ },
76
+ {
77
+ name: 'entityType',
78
+ title: `@${i18n}:version-history.entities.version-stream.fields.entity-type.title`,
79
+ groupId: 'overview',
80
+ schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },
81
+ },
82
+ {
83
+ name: 'entityId',
84
+ title: `@${i18n}:version-history.entities.version-stream.fields.entity-id.title`,
85
+ groupId: 'overview',
86
+ schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },
87
+ },
88
+ {
89
+ name: 'createdAt',
90
+ title: `@${i18n}:version-history.entities.version-stream.fields.created-at.title`,
91
+ groupId: 'overview',
92
+ schema: {
93
+ dataType: 'datetime',
94
+ interface: { type: AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },
95
+ readonly: true,
96
+ },
97
+ },
98
+ ],
99
+ columns: [{ name: 'entityType' }, { name: 'entityId' }, { name: 'createdAt' }],
100
+ interfaces: {
101
+ master: {
102
+ list: {
103
+ actions: [],
104
+ views: [createAllQueryView({})],
105
+ },
106
+ },
107
+ },
108
+ };
109
+ return entityDef;
110
+ }
111
+ //#endregion
112
+
113
+ /**
114
+ * Generated bundle index. Do not edit.
115
+ */
116
+
117
+ export { factoryVersionStream };
118
+ //# sourceMappingURL=acorex-platform-module-common-client-contracts-entities-version-stream.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-common-client-contracts-entities-version-stream.mjs","sources":["../../../../libs/modules/common/contracts/src/root-config.ts","../../../../libs/modules/common/contracts/src/entities/version-stream/version-stream.entity.ts","../../../../libs/modules/common/contracts/src/acorex-platform-module-common-client-contracts-entities-version-stream.ts"],"sourcesContent":["const config = {\n i18n: 'common',\n module: 'Common',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'common',\n name: config.module,\n title: '@general:common.module.title',\n icon: 'fa-light fa-file-invoice',\n },\n entities: {\n recordLock: {\n name: 'RecordLock',\n title: 'Record Lock',\n titlePlural: 'Record Locks',\n icon: 'fa-light fa-lock',\n source: `${config.module}.RecordLock`,\n },\n versionStream: {\n name: 'VersionStream',\n title: 'Version Stream',\n titlePlural: 'Version Streams',\n icon: 'fa-light fa-code-branch',\n source: `${config.module}.VersionStream`,\n },\n versionEntry: {\n name: 'VersionEntry',\n title: 'Version Entry',\n titlePlural: 'Version Entries',\n icon: 'fa-light fa-clock-rotate-left',\n source: `${config.module}.VersionEntry`,\n },\n },\n} as const;\n","import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\n//#region ---- Version stream entity ----\n\nexport async function factoryVersionStream(): Promise<AXPEntity | null> {\n const i18n = RootConfig.config.i18n;\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.versionStream.name,\n title: `@${i18n}:version-history.entities.version-stream.title`,\n icon: RootConfig.entities.versionStream.icon,\n formats: {\n individual: `@${i18n}:version-history.entities.version-stream.title`,\n plural: `@${i18n}:version-history.entities.version-stream.plural`,\n searchResult: {\n title: '{{ entityType }} / {{ entityId }}',\n description: '{{ createdAt }}',\n },\n },\n groups: [\n {\n id: 'overview',\n title: `@general:terms.interface.basic-info`,\n },\n ],\n properties: [\n {\n name: 'id',\n title: `@general:terms.common.id`,\n groupId: 'overview',\n schema: {\n dataType: 'string',\n visible: false,\n nullable: false,\n readonly: true,\n unique: { enabled: true },\n },\n },\n {\n name: 'entityType',\n title: `@${i18n}:version-history.entities.version-stream.fields.entity-type.title`,\n groupId: 'overview',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },\n },\n {\n name: 'entityId',\n title: `@${i18n}:version-history.entities.version-stream.fields.entity-id.title`,\n groupId: 'overview',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },\n },\n {\n name: 'createdAt',\n title: `@${i18n}:version-history.entities.version-stream.fields.created-at.title`,\n groupId: 'overview',\n schema: {\n dataType: 'datetime',\n interface: { type: AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },\n readonly: true,\n },\n },\n ],\n columns: [{ name: 'entityType' }, { name: 'entityId' }, { name: 'createdAt' }],\n interfaces: {\n master: {\n list: {\n actions: [],\n views: [createAllQueryView({})],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.version-stream';\n"],"names":[],"mappings":";;;AAAA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,QAAQ;AACd,IAAA,MAAM,EAAE,QAAQ;CACjB;AAEM,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;AACN,QAAA,KAAK,EAAE,QAAQ;QACf,IAAI,EAAE,MAAM,CAAC,MAAM;AACnB,QAAA,KAAK,EAAE,8BAA8B;AACrC,QAAA,IAAI,EAAE,0BAA0B;AACjC,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,UAAU,EAAE;AACV,YAAA,IAAI,EAAE,YAAY;AAClB,YAAA,KAAK,EAAE,aAAa;AACpB,YAAA,WAAW,EAAE,cAAc;AAC3B,YAAA,IAAI,EAAE,kBAAkB;AACxB,YAAA,MAAM,EAAE,CAAA,EAAG,MAAM,CAAC,MAAM,CAAA,WAAA,CAAa;AACtC,SAAA;AACD,QAAA,aAAa,EAAE;AACb,YAAA,IAAI,EAAE,eAAe;AACrB,YAAA,KAAK,EAAE,gBAAgB;AACvB,YAAA,WAAW,EAAE,iBAAiB;AAC9B,YAAA,IAAI,EAAE,yBAAyB;AAC/B,YAAA,MAAM,EAAE,CAAA,EAAG,MAAM,CAAC,MAAM,CAAA,cAAA,CAAgB;AACzC,S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