@acorex-platform/module-common-client 2.0.0-next.50 → 2.0.0-next.54

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 (65) hide show
  1. package/fesm2022/{acorex-platform-module-common-client-acorex-platform-module-common-client-Ddy8CyRr.mjs → acorex-platform-module-common-client-acorex-platform-module-common-client-CyozKtZH.mjs} +37 -37
  2. package/fesm2022/{acorex-platform-module-common-client-acorex-platform-module-common-client-Ddy8CyRr.mjs.map → acorex-platform-module-common-client-acorex-platform-module-common-client-CyozKtZH.mjs.map} +1 -1
  3. package/fesm2022/{acorex-platform-module-common-client-archive-entity.command-DNRamPY_.mjs → acorex-platform-module-common-client-archive-entity.command-C4Gjh7d3.mjs} +2 -2
  4. package/fesm2022/{acorex-platform-module-common-client-archive-entity.command-DNRamPY_.mjs.map → acorex-platform-module-common-client-archive-entity.command-C4Gjh7d3.mjs.map} +1 -1
  5. package/fesm2022/{acorex-platform-module-common-client-archive-entity.command.util-tybx_HAo.mjs → acorex-platform-module-common-client-archive-entity.command.util-Bo_qVhWu.mjs} +2 -2
  6. package/fesm2022/{acorex-platform-module-common-client-archive-entity.command.util-tybx_HAo.mjs.map → acorex-platform-module-common-client-archive-entity.command.util-Bo_qVhWu.mjs.map} +1 -1
  7. package/fesm2022/{acorex-platform-module-common-client-audit-info-column.component-DCsjsIdo.mjs → acorex-platform-module-common-client-audit-info-column.component-Lta_QYvp.mjs} +2 -2
  8. package/fesm2022/{acorex-platform-module-common-client-audit-info-column.component-DCsjsIdo.mjs.map → acorex-platform-module-common-client-audit-info-column.component-Lta_QYvp.mjs.map} +1 -1
  9. package/fesm2022/{acorex-platform-module-common-client-audit-info-edit.component-aCgPXlef.mjs → acorex-platform-module-common-client-audit-info-edit.component-CQxZaIsN.mjs} +2 -2
  10. package/fesm2022/{acorex-platform-module-common-client-audit-info-edit.component-aCgPXlef.mjs.map → acorex-platform-module-common-client-audit-info-edit.component-CQxZaIsN.mjs.map} +1 -1
  11. package/fesm2022/{acorex-platform-module-common-client-audit-info-view.component-lgzqcHCv.mjs → acorex-platform-module-common-client-audit-info-view.component-BAHOvZvl.mjs} +2 -2
  12. package/fesm2022/{acorex-platform-module-common-client-audit-info-view.component-lgzqcHCv.mjs.map → acorex-platform-module-common-client-audit-info-view.component-BAHOvZvl.mjs.map} +1 -1
  13. package/fesm2022/{acorex-platform-module-common-client-audit-info.util-CUlUTX8l.mjs → acorex-platform-module-common-client-audit-info.util-DG-xYAal.mjs} +1 -1
  14. package/fesm2022/{acorex-platform-module-common-client-audit-info.util-CUlUTX8l.mjs.map → acorex-platform-module-common-client-audit-info.util-DG-xYAal.mjs.map} +1 -1
  15. package/fesm2022/{acorex-platform-module-common-client-bulk-archive-entity.command-ocN9hgEM.mjs → acorex-platform-module-common-client-bulk-archive-entity.command-BQ_hqcVJ.mjs} +2 -2
  16. package/fesm2022/{acorex-platform-module-common-client-bulk-archive-entity.command-ocN9hgEM.mjs.map → acorex-platform-module-common-client-bulk-archive-entity.command-BQ_hqcVJ.mjs.map} +1 -1
  17. package/fesm2022/{acorex-platform-module-common-client-bulk-disable-entity.command-DgoZVXQA.mjs → acorex-platform-module-common-client-bulk-disable-entity.command-Xj5FraWi.mjs} +2 -2
  18. package/fesm2022/{acorex-platform-module-common-client-bulk-disable-entity.command-DgoZVXQA.mjs.map → acorex-platform-module-common-client-bulk-disable-entity.command-Xj5FraWi.mjs.map} +1 -1
  19. package/fesm2022/{acorex-platform-module-common-client-bulk-enable-entity.command-C6fba__g.mjs → acorex-platform-module-common-client-bulk-enable-entity.command-DpUep054.mjs} +2 -2
  20. package/fesm2022/{acorex-platform-module-common-client-bulk-enable-entity.command-C6fba__g.mjs.map → acorex-platform-module-common-client-bulk-enable-entity.command-DpUep054.mjs.map} +1 -1
  21. package/fesm2022/{acorex-platform-module-common-client-bulk-restore-archive-entity.command-BkXn5-Ma.mjs → acorex-platform-module-common-client-bulk-restore-archive-entity.command-6gRNYnmO.mjs} +2 -2
  22. package/fesm2022/{acorex-platform-module-common-client-bulk-restore-archive-entity.command-BkXn5-Ma.mjs.map → acorex-platform-module-common-client-bulk-restore-archive-entity.command-6gRNYnmO.mjs.map} +1 -1
  23. package/fesm2022/{acorex-platform-module-common-client-clone-entity.command-B2LxTOY2.mjs → acorex-platform-module-common-client-clone-entity.command-CPPQI7QQ.mjs} +2 -2
  24. package/fesm2022/{acorex-platform-module-common-client-clone-entity.command-B2LxTOY2.mjs.map → acorex-platform-module-common-client-clone-entity.command-CPPQI7QQ.mjs.map} +1 -1
  25. package/fesm2022/{acorex-platform-module-common-client-contracts-entity-catalog-acorex-platform-module-common-client-contracts-entity-catalog-8_tVyorm.mjs → acorex-platform-module-common-client-contracts-entity-catalog-acorex-platform-module-common-client-contracts-entity-catalog-HqES1qZ5.mjs} +4 -4
  26. package/fesm2022/{acorex-platform-module-common-client-contracts-entity-catalog-acorex-platform-module-common-client-contracts-entity-catalog-8_tVyorm.mjs.map → acorex-platform-module-common-client-contracts-entity-catalog-acorex-platform-module-common-client-contracts-entity-catalog-HqES1qZ5.mjs.map} +1 -1
  27. package/fesm2022/{acorex-platform-module-common-client-contracts-entity-catalog-record-lock.entity-DLA5qjPs.mjs → acorex-platform-module-common-client-contracts-entity-catalog-record-lock.entity-DFP5BHl_.mjs} +2 -2
  28. package/fesm2022/{acorex-platform-module-common-client-contracts-entity-catalog-record-lock.entity-DLA5qjPs.mjs.map → acorex-platform-module-common-client-contracts-entity-catalog-record-lock.entity-DFP5BHl_.mjs.map} +1 -1
  29. package/fesm2022/{acorex-platform-module-common-client-contracts-entity-catalog-version-entry.entity-C07SlyK0.mjs → acorex-platform-module-common-client-contracts-entity-catalog-version-entry.entity-rkU24w_C.mjs} +2 -2
  30. package/fesm2022/{acorex-platform-module-common-client-contracts-entity-catalog-version-entry.entity-C07SlyK0.mjs.map → acorex-platform-module-common-client-contracts-entity-catalog-version-entry.entity-rkU24w_C.mjs.map} +1 -1
  31. package/fesm2022/{acorex-platform-module-common-client-contracts-entity-catalog-version-stream.entity-C7LJK2Gt.mjs → acorex-platform-module-common-client-contracts-entity-catalog-version-stream.entity-CRU82HQg.mjs} +2 -2
  32. package/fesm2022/{acorex-platform-module-common-client-contracts-entity-catalog-version-stream.entity-C7LJK2Gt.mjs.map → acorex-platform-module-common-client-contracts-entity-catalog-version-stream.entity-CRU82HQg.mjs.map} +1 -1
  33. package/fesm2022/acorex-platform-module-common-client-contracts-entity-catalog.mjs +1 -1
  34. package/fesm2022/acorex-platform-module-common-client-contracts.mjs +7 -1
  35. package/fesm2022/acorex-platform-module-common-client-contracts.mjs.map +1 -1
  36. package/fesm2022/{acorex-platform-module-common-client-create-entity-version-draft.command-CbLI7jvZ.mjs → acorex-platform-module-common-client-create-entity-version-draft.command-BSEut8OA.mjs} +2 -2
  37. package/fesm2022/{acorex-platform-module-common-client-create-entity-version-draft.command-CbLI7jvZ.mjs.map → acorex-platform-module-common-client-create-entity-version-draft.command-BSEut8OA.mjs.map} +1 -1
  38. package/fesm2022/{acorex-platform-module-common-client-delete-entity-version-draft.command-CLWHs4DO.mjs → acorex-platform-module-common-client-delete-entity-version-draft.command-dqyL50pr.mjs} +2 -2
  39. package/fesm2022/{acorex-platform-module-common-client-delete-entity-version-draft.command-CLWHs4DO.mjs.map → acorex-platform-module-common-client-delete-entity-version-draft.command-dqyL50pr.mjs.map} +1 -1
  40. package/fesm2022/{acorex-platform-module-common-client-disable-entity.command-Bc1uH38V.mjs → acorex-platform-module-common-client-disable-entity.command-D2eXO4Wu.mjs} +2 -2
  41. package/fesm2022/{acorex-platform-module-common-client-disable-entity.command-Bc1uH38V.mjs.map → acorex-platform-module-common-client-disable-entity.command-D2eXO4Wu.mjs.map} +1 -1
  42. package/fesm2022/{acorex-platform-module-common-client-disable-entity.command.util-DQl6u2nj.mjs → acorex-platform-module-common-client-disable-entity.command.util-U_3X2JPQ.mjs} +1 -1
  43. package/fesm2022/{acorex-platform-module-common-client-disable-entity.command.util-DQl6u2nj.mjs.map → acorex-platform-module-common-client-disable-entity.command.util-U_3X2JPQ.mjs.map} +1 -1
  44. package/fesm2022/{acorex-platform-module-common-client-enable-entity.command-DeTumWIj.mjs → acorex-platform-module-common-client-enable-entity.command-CWKbvUOb.mjs} +2 -2
  45. package/fesm2022/{acorex-platform-module-common-client-enable-entity.command-DeTumWIj.mjs.map → acorex-platform-module-common-client-enable-entity.command-CWKbvUOb.mjs.map} +1 -1
  46. package/fesm2022/{acorex-platform-module-common-client-get-current-time.command-Ck_SC5Bu.mjs → acorex-platform-module-common-client-get-current-time.command-BIa1Tift.mjs} +1 -1
  47. package/fesm2022/{acorex-platform-module-common-client-get-current-time.command-Ck_SC5Bu.mjs.map → acorex-platform-module-common-client-get-current-time.command-BIa1Tift.mjs.map} +1 -1
  48. package/fesm2022/{acorex-platform-module-common-client-publish-entity-version.command-JNy0K1ZR.mjs → acorex-platform-module-common-client-publish-entity-version.command-BCsalr4s.mjs} +2 -2
  49. package/fesm2022/{acorex-platform-module-common-client-publish-entity-version.command-JNy0K1ZR.mjs.map → acorex-platform-module-common-client-publish-entity-version.command-BCsalr4s.mjs.map} +1 -1
  50. package/fesm2022/{acorex-platform-module-common-client-restore-archive-entity.command-DKosoP7I.mjs → acorex-platform-module-common-client-restore-archive-entity.command-Da04N7sG.mjs} +2 -2
  51. package/fesm2022/{acorex-platform-module-common-client-restore-archive-entity.command-DKosoP7I.mjs.map → acorex-platform-module-common-client-restore-archive-entity.command-Da04N7sG.mjs.map} +1 -1
  52. package/fesm2022/{acorex-platform-module-common-client-search-popup.component-CbTSFMR7.mjs → acorex-platform-module-common-client-search-popup.component-CMUBpRhM.mjs} +4 -4
  53. package/fesm2022/{acorex-platform-module-common-client-search-popup.component-CbTSFMR7.mjs.map → acorex-platform-module-common-client-search-popup.component-CMUBpRhM.mjs.map} +1 -1
  54. package/fesm2022/{acorex-platform-module-common-client-show-entity-version-history.command-CoFbuUYP.mjs → acorex-platform-module-common-client-show-entity-version-history.command-DzXsd2UV.mjs} +2 -2
  55. package/fesm2022/{acorex-platform-module-common-client-show-entity-version-history.command-CoFbuUYP.mjs.map → acorex-platform-module-common-client-show-entity-version-history.command-DzXsd2UV.mjs.map} +1 -1
  56. package/fesm2022/{acorex-platform-module-common-client-timeline-version-history-popup.component-DGc0B1YA.mjs → acorex-platform-module-common-client-timeline-version-history-popup.component-D5x0GIRk.mjs} +2 -2
  57. package/fesm2022/{acorex-platform-module-common-client-timeline-version-history-popup.component-DGc0B1YA.mjs.map → acorex-platform-module-common-client-timeline-version-history-popup.component-D5x0GIRk.mjs.map} +1 -1
  58. package/fesm2022/{acorex-platform-module-common-client-versioning-entity.command.util-Bibv8EgV.mjs → acorex-platform-module-common-client-versioning-entity.command.util-CIpyMuIs.mjs} +1 -1
  59. package/fesm2022/{acorex-platform-module-common-client-versioning-entity.command.util-Bibv8EgV.mjs.map → acorex-platform-module-common-client-versioning-entity.command.util-CIpyMuIs.mjs.map} +1 -1
  60. package/fesm2022/acorex-platform-module-common-client.mjs +1 -1
  61. package/i18n/en-AU/common.json +16 -0
  62. package/i18n/en-US/common.json +16 -0
  63. package/i18n/fa-IR/common.json +16 -0
  64. package/package.json +1 -1
  65. package/types/acorex-platform-module-common-client-contracts.d.ts +3 -1
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-common-client-timeline-version-history-popup.component-DGc0B1YA.mjs","sources":["../../../../libs/modules/common/client/src/lib/features/history-plugin/components/timeline-version-history-popup/timeline-version-history-popup.component.ts","../../../../libs/modules/common/client/src/lib/features/history-plugin/components/timeline-version-history-popup/timeline-version-history-popup.component.html"],"sourcesContent":["import { Component, inject, Injector, signal, ViewEncapsulation, computed, ChangeDetectionStrategy } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXBasePageComponent } from '@acorex/components/page';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport {\n AXPActivityLogCompareRequest,\n AXPActivityLogComponent,\n} from '@acorex-platform/framework-client/layout/components';\nimport { AXPVersionEntry, AXPVersioningService } from '@acorex-platform/framework-client/common';\nimport { AXTranslationModule, AXTranslationService } from '@acorex/core/translation';\nimport { versionEntriesToActivityLogs } from '../../utils/version-history.utils';\nimport { openActivityLogVersionCompare } from '../../utils/open-activity-log-compare.util';\n\n@Component({\n selector: 'axp-timeline-version-history-popup',\n templateUrl: './timeline-version-history-popup.component.html',\n imports: [\n CommonModule,\n AXDecoratorModule,\n AXButtonModule,\n AXTranslationModule,\n AXPActivityLogComponent,\n ],\n changeDetection: ChangeDetectionStrategy.Eager,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AXMTimelineVersionHistoryPopupComponent extends AXBasePageComponent {\n refId!: string;\n refType!: string;\n fieldTitles?: Record<string, string>;\n fromDate!: Date;\n toDate!: Date;\n limit!: number;\n offset!: number;\n\n protected isBusy = signal(false);\n\n protected versioning = inject(AXPVersioningService);\n private readonly injector = inject(Injector);\n private readonly translation = inject(AXTranslationService);\n protected versions = signal<AXPVersionEntry[]>([]);\n protected activities = computed(() =>\n versionEntriesToActivityLogs(\n this.versions(),\n this.refId,\n this.refType,\n this.fieldTitles,\n undefined,\n this.translation.getActiveLang?.() ?? 'en-US',\n )\n );\n\n override async ngOnInit(): Promise<void> {\n this.isBusy.set(true);\n super.ngOnInit();\n const streamId = await this.versioning.getStreamIdIfExists(this.refType, this.refId);\n if (streamId) {\n const entries = await this.versioning.listEntries(streamId, {\n limit: this.limit,\n offset: this.offset,\n });\n this.versions.set(entries);\n } else {\n this.versions.set([]);\n }\n this.isBusy.set(false);\n }\n\n protected async onCompareRequested(event: AXPActivityLogCompareRequest): Promise<void> {\n await openActivityLogVersionCompare(this.injector, event);\n }\n}\n","<ax-content>\n <div class=\"p-6 min-h-[30vh] overflow-y-auto\">\n <axp-activity-log\n [activities]=\"activities()\"\n [loading]=\"isBusy()\"\n [enableCompare]=\"true\"\n [showActionType]=\"false\"\n (compareRequested)=\"onCompareRequested($event)\"\n ></axp-activity-log>\n </div>\n</ax-content>\n<ax-footer>\n <ax-prefix></ax-prefix>\n <ax-suffix>\n <ax-button\n [text]=\"'@general:actions.close.title' | translate | async\"\n look=\"solid\"\n color=\"primary\"\n (onClick)=\"close()\"\n >\n </ax-button>\n </ax-suffix>\n</ax-footer>\n"],"names":["i3"],"mappings":";;;;;;;;;;;;;;;AA4BM,MAAO,uCAAwC,SAAQ,mBAAmB,CAAA;AAbhF,IAAA,WAAA,GAAA;;QAsBY,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,KAAK;mFAAC;AAEtB,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,oBAAoB,CAAC;AAClC,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC3B,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,oBAAoB,CAAC;QACjD,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAoB,EAAE;qFAAC;AACxC,QAAA,IAAA,CAAA,UAAU,GAAG,QAAQ,CAAC,MAC9B,4BAA4B,CAC1B,IAAI,CAAC,QAAQ,EAAE,EACf,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,WAAW,EAChB,SAAS,EACT,IAAI,CAAC,WAAW,CAAC,aAAa,IAAI,IAAI,OAAO,CAC9C;uFACF;AAqBF,IAAA;AAnBU,IAAA,MAAM,QAAQ,GAAA;AACrB,QAAA,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC;QACrB,KAAK,CAAC,QAAQ,EAAE;AAChB,QAAA,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC;QACpF,IAAI,QAAQ,EAAE;YACZ,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,QAAQ,EAAE;gBAC1D,KAAK,EAAE,IAAI,CAAC,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AAA,kBAAA,EAAA,YAAA,EAAA,aAAA,EAAA,gBAAA,EAAA,mBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACd,mBAAmB,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACnB,uBAAuB,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,CAAA,YAAA,EAAA,SAAA,EAAA,eAAA,EAAA,gBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAA,IAAA,CAAA,SAAA,EAAA,IAAA,EAAA,OAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,KAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;2FAKd,uCAAuC,EAAA,UAAA,EAAA,CAAA;kBAbnD,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,oCAAoC,EAAA,OAAA,EAErC;wBACP,YAAY;wBACZ,iBAAiB;wBACjB,cAAc;wBACd,mBAAmB;wBACnB,uBAAuB;AACxB,qBAAA,EAAA,eAAA,EACgB,uBAAuB,CAAC,KAAK,EAAA,aAAA,EAC/B,iBAAiB,CAAC,IAAI,EAAA,QAAA,EAAA,2lBAAA,EAAA;;;"}
1
+ {"version":3,"file":"acorex-platform-module-common-client-timeline-version-history-popup.component-D5x0GIRk.mjs","sources":["../../../../libs/modules/common/client/src/lib/features/history-plugin/components/timeline-version-history-popup/timeline-version-history-popup.component.ts","../../../../libs/modules/common/client/src/lib/features/history-plugin/components/timeline-version-history-popup/timeline-version-history-popup.component.html"],"sourcesContent":["import { Component, inject, Injector, signal, ViewEncapsulation, computed, ChangeDetectionStrategy } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXBasePageComponent } from '@acorex/components/page';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport {\n AXPActivityLogCompareRequest,\n AXPActivityLogComponent,\n} from '@acorex-platform/framework-client/layout/components';\nimport { AXPVersionEntry, AXPVersioningService } from '@acorex-platform/framework-client/common';\nimport { AXTranslationModule, AXTranslationService } from '@acorex/core/translation';\nimport { versionEntriesToActivityLogs } from '../../utils/version-history.utils';\nimport { openActivityLogVersionCompare } from '../../utils/open-activity-log-compare.util';\n\n@Component({\n selector: 'axp-timeline-version-history-popup',\n templateUrl: './timeline-version-history-popup.component.html',\n imports: [\n CommonModule,\n AXDecoratorModule,\n AXButtonModule,\n AXTranslationModule,\n AXPActivityLogComponent,\n ],\n changeDetection: ChangeDetectionStrategy.Eager,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AXMTimelineVersionHistoryPopupComponent extends AXBasePageComponent {\n refId!: string;\n refType!: string;\n fieldTitles?: Record<string, string>;\n fromDate!: Date;\n toDate!: Date;\n limit!: number;\n offset!: number;\n\n protected isBusy = signal(false);\n\n protected versioning = inject(AXPVersioningService);\n private readonly injector = inject(Injector);\n private readonly translation = inject(AXTranslationService);\n protected versions = signal<AXPVersionEntry[]>([]);\n protected activities = computed(() =>\n versionEntriesToActivityLogs(\n this.versions(),\n this.refId,\n this.refType,\n this.fieldTitles,\n undefined,\n this.translation.getActiveLang?.() ?? 'en-US',\n )\n );\n\n override async ngOnInit(): Promise<void> {\n this.isBusy.set(true);\n super.ngOnInit();\n const streamId = await this.versioning.getStreamIdIfExists(this.refType, this.refId);\n if (streamId) {\n const entries = await this.versioning.listEntries(streamId, {\n limit: this.limit,\n offset: this.offset,\n });\n this.versions.set(entries);\n } else {\n this.versions.set([]);\n }\n this.isBusy.set(false);\n }\n\n protected async onCompareRequested(event: AXPActivityLogCompareRequest): Promise<void> {\n await openActivityLogVersionCompare(this.injector, event);\n }\n}\n","<ax-content>\n <div class=\"p-6 min-h-[30vh] overflow-y-auto\">\n <axp-activity-log\n [activities]=\"activities()\"\n [loading]=\"isBusy()\"\n [enableCompare]=\"true\"\n [showActionType]=\"false\"\n (compareRequested)=\"onCompareRequested($event)\"\n ></axp-activity-log>\n </div>\n</ax-content>\n<ax-footer>\n <ax-prefix></ax-prefix>\n <ax-suffix>\n <ax-button\n [text]=\"'@general:actions.close.title' | translate | async\"\n look=\"solid\"\n color=\"primary\"\n (onClick)=\"close()\"\n >\n </ax-button>\n </ax-suffix>\n</ax-footer>\n"],"names":["i3"],"mappings":";;;;;;;;;;;;;;;AA4BM,MAAO,uCAAwC,SAAQ,mBAAmB,CAAA;AAbhF,IAAA,WAAA,GAAA;;QAsBY,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,KAAK;mFAAC;AAEtB,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,oBAAoB,CAAC;AAClC,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC3B,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,oBAAoB,CAAC;QACjD,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAoB,EAAE;qFAAC;AACxC,QAAA,IAAA,CAAA,UAAU,GAAG,QAAQ,CAAC,MAC9B,4BAA4B,CAC1B,IAAI,CAAC,QAAQ,EAAE,EACf,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,WAAW,EAChB,SAAS,EACT,IAAI,CAAC,WAAW,CAAC,aAAa,IAAI,IAAI,OAAO,CAC9C;uFACF;AAqBF,IAAA;AAnBU,IAAA,MAAM,QAAQ,GAAA;AACrB,QAAA,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC;QACrB,KAAK,CAAC,QAAQ,EAAE;AAChB,QAAA,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,m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 
138
138
  export { AXPVersioningEntityCommandHelper as A, normalizeVersioningInput as n };
139
- //# sourceMappingURL=acorex-platform-module-common-client-versioning-entity.command.util-Bibv8EgV.mjs.map
139
+ //# sourceMappingURL=acorex-platform-module-common-client-versioning-entity.command.util-CIpyMuIs.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-common-client-versioning-entity.command.util-Bibv8EgV.mjs","sources":["../../../../libs/modules/common/client/src/lib/features/versioning-plugin/commands/versioning-entity.command.helper.ts","../../../../libs/modules/common/client/src/lib/features/versioning-plugin/commands/versioning-entity.command.util.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 {\n AXPCommonSettings,\n AXPSettingsService,\n extractRequestErrorInfo,\n} from '@acorex-platform/framework-client/common';\nimport { AXPEntityBroadcastService } from '@acorex-platform/framework-client/core';\nimport { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';\nimport {\n AXPVersioningField,\n AXPVersioningStatus,\n AXP_VERSIONING_ERROR_I18N,\n type AXPVersioningCompanionDto,\n type AXPVersioningHostDto,\n} from '@acorex-platform/module-common-client/contracts';\nimport { inject, Injectable } from '@angular/core';\n\n@Injectable({ providedIn: 'root' })\nexport class AXPVersioningEntityCommandHelper {\n private readonly entityService = inject(AXPEntityService);\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 hostData(refType: string) {\n const [moduleName, entityName] = refType.split('.');\n return this.entityService\n .withEntity(moduleName, entityName)\n .data<string, AXPVersioningHostDto, AXPVersioningHostDto>();\n }\n\n companionData(companionEntity: string) {\n const [moduleName, entityName] = companionEntity.split('.');\n return this.entityService\n .withEntity(moduleName, entityName)\n .data<string, AXPVersioningCompanionDto, AXPVersioningCompanionDto>();\n }\n\n async listCompanions(\n companionEntity: string,\n sourceId: string,\n ): Promise<AXPVersioningCompanionDto[]> {\n const result = await this.companionData(companionEntity).query({\n skip: 0,\n take: 200,\n sort: [{ field: AXPVersioningField.VersionNumber, dir: 'desc' }],\n filter: {\n field: AXPVersioningField.SourceId,\n operator: { type: 'equal' },\n value: sourceId,\n },\n });\n return [...(result?.items ?? [])].sort((left, right) => {\n const leftNumber = Number(left.versionNumber ?? 0);\n const rightNumber = Number(right.versionNumber ?? 0);\n return rightNumber - leftNumber;\n });\n }\n\n async findDraft(companionEntity: string, sourceId: string): Promise<AXPVersioningCompanionDto | null> {\n const result = await this.companionData(companionEntity).query({\n skip: 0,\n take: 1,\n filter: {\n logic: 'and',\n filters: [\n { field: AXPVersioningField.SourceId, operator: { type: 'equal' }, value: sourceId },\n {\n field: AXPVersioningField.VersioningStatus,\n operator: { type: 'equal' },\n value: AXPVersioningStatus.Draft,\n },\n ],\n },\n });\n const row = result?.items?.[0];\n return row ?? null;\n }\n\n async confirm(titleKey: string, messageKey: string): Promise<boolean> {\n const dialogResult = await this.dialogService.confirm(\n await this.translationService.translateAsync(titleKey),\n await this.translationService.translateAsync(messageKey),\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 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 async showErrorToastFor(error: unknown, fallbackKey: string): Promise<void> {\n const enabled = await this.settingsService.get<boolean>(AXPCommonSettings.EnableOperationToasts);\n if (!enabled) {\n return;\n }\n const info = extractRequestErrorInfo(error);\n const contentKey =\n (info?.code ? AXP_VERSIONING_ERROR_I18N[info.code] : undefined) ??\n (typeof info?.message === 'string' && info.message.startsWith('@') ? info.message : null) ??\n fallbackKey;\n const content = contentKey.startsWith('@')\n ? await this.translationService.translateAsync(contentKey)\n : contentKey;\n this.toastService.show({\n color: 'danger',\n title: await this.translationService.translateAsync('@general:messages.generic.error.title'),\n content,\n closeButton: true,\n timeOut: 6000,\n timeOutProgress: true,\n });\n }\n\n dispatchRefresh(refType: string): void {\n this.entityEvents.publishLayoutRefresh(refType);\n }\n}\n","import type { AXPContextData } from '@acorex-platform/framework-shared/core';\nimport { pickInputOrOptionsField, resolveEntityActionRef } from '@acorex-platform/framework-shared/runtime';\nimport { versionCompanionEntityName } from '@acorex-platform/module-common-client/contracts';\n\nexport interface AXPVersioningCommandContext {\n refId: string;\n refType: string;\n companionEntity: string;\n /** When true, skip the command’s own confirm (caller already asked). */\n skipConfirm?: boolean;\n}\n\nexport function normalizeVersioningInput(input: AXPContextData): AXPVersioningCommandContext | null {\n const resolved = resolveEntityActionRef(input);\n if (!resolved) {\n return null;\n }\n return {\n refId: resolved.refId,\n refType: resolved.refType,\n companionEntity: versionCompanionEntityName(resolved.refType),\n skipConfirm: Boolean(pickInputOrOptionsField(input, 'skipConfirm')),\n };\n}\n"],"names":[],"mappings":";;;;;;;;;;;;MAqBa,gCAAgC,CAAA;AAD7C,IAAA,WAAA,GAAA;AAEmB,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,gBAAgB,CAAC;AACxC,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,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AAa,CAAC,CAAC;KACpE;AACH;;"}
1
+ {"version":3,"file":"acorex-platform-module-common-client-versioning-entity.command.util-CIpyMuIs.mjs","sources":["../../../../libs/modules/common/client/src/lib/features/versioning-plugin/commands/versioning-entity.command.helper.ts","../../../../libs/modules/common/client/src/lib/features/versioning-plugin/commands/versioning-entity.command.util.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 {\n AXPCommonSettings,\n AXPSettingsService,\n extractRequestErrorInfo,\n} from '@acorex-platform/framework-client/common';\nimport { AXPEntityBroadcastService } from '@acorex-platform/framework-client/core';\nimport { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';\nimport {\n AXPVersioningField,\n AXPVersioningStatus,\n AXP_VERSIONING_ERROR_I18N,\n type AXPVersioningCompanionDto,\n type AXPVersioningHostDto,\n} from '@acorex-platform/module-common-client/contracts';\nimport { inject, Injectable } from '@angular/core';\n\n@Injectable({ providedIn: 'root' })\nexport class AXPVersioningEntityCommandHelper {\n private readonly entityService = inject(AXPEntityService);\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 hostData(refType: string) {\n const [moduleName, entityName] = refType.split('.');\n return this.entityService\n .withEntity(moduleName, entityName)\n .data<string, AXPVersioningHostDto, AXPVersioningHostDto>();\n }\n\n companionData(companionEntity: string) {\n const [moduleName, entityName] = companionEntity.split('.');\n return this.entityService\n .withEntity(moduleName, entityName)\n .data<string, AXPVersioningCompanionDto, AXPVersioningCompanionDto>();\n }\n\n async listCompanions(\n companionEntity: string,\n sourceId: string,\n ): Promise<AXPVersioningCompanionDto[]> {\n const result = await this.companionData(companionEntity).query({\n skip: 0,\n take: 200,\n sort: [{ field: AXPVersioningField.VersionNumber, dir: 'desc' }],\n filter: {\n field: AXPVersioningField.SourceId,\n operator: { type: 'equal' },\n value: sourceId,\n },\n });\n return [...(result?.items ?? [])].sort((left, right) => {\n const leftNumber = Number(left.versionNumber ?? 0);\n const rightNumber = Number(right.versionNumber ?? 0);\n return rightNumber - leftNumber;\n });\n }\n\n async findDraft(companionEntity: string, sourceId: string): Promise<AXPVersioningCompanionDto | null> {\n const result = await this.companionData(companionEntity).query({\n skip: 0,\n take: 1,\n filter: {\n logic: 'and',\n filters: [\n { field: AXPVersioningField.SourceId, operator: { type: 'equal' }, value: sourceId },\n {\n field: AXPVersioningField.VersioningStatus,\n operator: { type: 'equal' },\n value: AXPVersioningStatus.Draft,\n },\n ],\n },\n });\n const row = result?.items?.[0];\n return row ?? null;\n }\n\n async confirm(titleKey: string, messageKey: string): Promise<boolean> {\n const dialogResult = await this.dialogService.confirm(\n await this.translationService.translateAsync(titleKey),\n await this.translationService.translateAsync(messageKey),\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 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 async showErrorToastFor(error: unknown, fallbackKey: string): Promise<void> {\n const enabled = await this.settingsService.get<boolean>(AXPCommonSettings.EnableOperationToasts);\n if (!enabled) {\n return;\n }\n const info = extractRequestErrorInfo(error);\n const contentKey =\n (info?.code ? AXP_VERSIONING_ERROR_I18N[info.code] : undefined) ??\n (typeof info?.message === 'string' && info.message.startsWith('@') ? info.message : null) ??\n fallbackKey;\n const content = contentKey.startsWith('@')\n ? await this.translationService.translateAsync(contentKey)\n : contentKey;\n this.toastService.show({\n color: 'danger',\n title: await this.translationService.translateAsync('@general:messages.generic.error.title'),\n content,\n closeButton: true,\n timeOut: 6000,\n timeOutProgress: true,\n });\n }\n\n dispatchRefresh(refType: string): void {\n this.entityEvents.publishLayoutRefresh(refType);\n }\n}\n","import type { AXPContextData } from '@acorex-platform/framework-shared/core';\nimport { pickInputOrOptionsField, resolveEntityActionRef } from '@acorex-platform/framework-shared/runtime';\nimport { versionCompanionEntityName } from '@acorex-platform/module-common-client/contracts';\n\nexport interface AXPVersioningCommandContext {\n refId: string;\n refType: string;\n companionEntity: string;\n /** When true, skip the command’s own confirm (caller already asked). */\n skipConfirm?: boolean;\n}\n\nexport function normalizeVersioningInput(input: AXPContextData): AXPVersioningCommandContext | null {\n const resolved = resolveEntityActionRef(input);\n if (!resolved) {\n return null;\n }\n return {\n refId: resolved.refId,\n refType: resolved.refType,\n companionEntity: versionCompanionEntityName(resolved.refType),\n skipConfirm: Boolean(pickInputOrOptionsField(input, 'skipConfirm')),\n };\n}\n"],"names":[],"mappings":";;;;;;;;;;;;MAqBa,gCAAgC,CAAA;AAD7C,IAAA,WAAA,GAAA;AAEmB,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,gBAAgB,CAAC;AACxC,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;AAmHlE,IAAA;AAjHC,IAAA,QAAQ,CAAC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ACf,KAAK,EAAE,MAAM,IAAI,CAAC,kBAAkB,CAAC,cAAc,CAAC,uCAAuC,CAAC;YAC5F,OAAO;AACP,YAAA,WAAW,EAAE,IAAI;AACjB,YAAA,OAAO,EAAE,IAAI;AACb,YAAA,eAAe,EAAE,IAAI;AACtB,SAAA,CAAC;IACJ;AAEA,IAAA,eAAe,CAAC,OAAe,EAAA;AAC7B,QAAA,IAAI,CAAC,YAAY,CAAC,oBAAoB,CAAC,OAAO,CAAC;IACjD;8GAzHW,gCAAgC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAhC,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,gCAAgC,cADnB,MAAM,EAAA,CAAA,CAAA;;2FACnB,gCAAgC,EAAA,UAAA,EAAA,CAAA;kBAD5C,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;ACR5B,SAAU,wBAAwB,CAAC,KAAqB,EAAA;AAC5D,IAAA,MAAM,QAAQ,GAAG,sBAAsB,CAAC,KAAK,CAAC;IAC9C,IAAI,CAAC,QAAQ,EAAE;AACb,QAAA,OAAO,IAAI;IACb;IACA,OAAO;QACL,KAAK,EAAE,QAAQ,CAAC,KAAK;QACrB,OAAO,EAAE,QAAQ,CAAC,OAAO;AACzB,QAAA,eAAe,EAAE,0BAA0B,CAAC,QAAQ,CAAC,OAAO,CAAC;QAC7D,WAAW,EAAE,OAAO,CAAC,uBAAuB,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC;KACpE;AACH;;"}
@@ -1,3 +1,3 @@
1
- export { b as AXMCommonModule, c as AXMMenuProvider, d as AXMSettingProvider, e as AXMVersionHistoryPageComponent, f as AXPArchivePluginModule, g as AXPCommonFeatureDefinitionProvider, h as AXPDerivedNamePluginModule, j as AXPDisablePluginModule, k as AXPEntityEvaluatorScopeProvider, l as AXPEntityExpressionService, m as AXPGlobalSearchModule, a as AXPGlobalSearchViewModel, n as AXPHistoryAuditInfoWidget, p as AXPHistoryModule, q as AXPLockEntityCommand, r as AXPResourceAppointmentPageComponent, s as AXPStatusPluginModule, u as AXPSubjectEvaluatorScopeProvider, w as AXPUniqueFieldsPluginModule, x as AXPUnlockEntityCommand, y as AXPValidationRulesModule, z as AXPVersioningPluginModule, A as AXP_ENTITY_ARCHIVE_OVERRIDES, B as AXP_GLOBAL_SEARCH_CONFIG_TOKEN, C as AXP_RESOURCE_APPOINTMENT_PAGE_CONFIG, D as ApprovalStatusProvider, E as AtLeastOneOfValidationRule, H as HISTORY_PAGE_COMPONENT_KEY, S as ShowVersionHistoryPopupCommand, F as StateStatusProvider, T as TaskStatusProvider, U as UniqueValidationRule, V as VARIABLE_NAME_VALIDATION_PATTERN, G as VariableNameValidationRule, I as aggregateVersionHistoryBarChartItems, J as archivePlugin, K as buildEntityFieldHistoryLineChartSeries, L as buildProductBasePriceHistoryLineChartSeries, M as derivedNamePlugin, N as disablePlugin, O as formatVersionHistoryReplaceSummary, P as getActiveStatuses, Q as getFinalStatuses, R as getInitialStatuses, W as getStatusByName, X as getTransitionsFromStatus, Y as getTransitionsToStatus, Z as historyPlugin, _ as humanizeChange, $ as isRtlHistoryLocale, a0 as isValidTransition, i as isValidVariableName, a1 as mapChangeType, a2 as mapOpToAction, a3 as resolvePathKey, a4 as statusPlugin, t as toVariableName, a5 as uniqueFieldsPlugin, v as versionEntriesToActivityLogs, a6 as versioningPlugin } from './acorex-platform-module-common-client-acorex-platform-module-common-client-Ddy8CyRr.mjs';
1
+ export { b as AXMCommonModule, c as AXMMenuProvider, d as AXMSettingProvider, e as AXMVersionHistoryPageComponent, f as AXPArchivePluginModule, g as AXPCommonFeatureDefinitionProvider, h as AXPDerivedNamePluginModule, j as AXPDisablePluginModule, k as AXPEntityEvaluatorScopeProvider, l as AXPEntityExpressionService, m as AXPGlobalSearchModule, a as AXPGlobalSearchViewModel, n as AXPHistoryAuditInfoWidget, p as AXPHistoryModule, q as AXPLockEntityCommand, r as AXPResourceAppointmentPageComponent, s as AXPStatusPluginModule, u as AXPSubjectEvaluatorScopeProvider, w as AXPUniqueFieldsPluginModule, x as AXPUnlockEntityCommand, y as AXPValidationRulesModule, z as AXPVersioningPluginModule, A as AXP_ENTITY_ARCHIVE_OVERRIDES, B as AXP_GLOBAL_SEARCH_CONFIG_TOKEN, C as AXP_RESOURCE_APPOINTMENT_PAGE_CONFIG, D as ApprovalStatusProvider, E as AtLeastOneOfValidationRule, H as HISTORY_PAGE_COMPONENT_KEY, S as ShowVersionHistoryPopupCommand, F as StateStatusProvider, T as TaskStatusProvider, U as UniqueValidationRule, V as VARIABLE_NAME_VALIDATION_PATTERN, G as VariableNameValidationRule, I as aggregateVersionHistoryBarChartItems, J as archivePlugin, K as buildEntityFieldHistoryLineChartSeries, L as buildProductBasePriceHistoryLineChartSeries, M as derivedNamePlugin, N as disablePlugin, O as formatVersionHistoryReplaceSummary, P as getActiveStatuses, Q as getFinalStatuses, R as getInitialStatuses, W as getStatusByName, X as getTransitionsFromStatus, Y as getTransitionsToStatus, Z as historyPlugin, _ as humanizeChange, $ as isRtlHistoryLocale, a0 as isValidTransition, i as isValidVariableName, a1 as mapChangeType, a2 as mapOpToAction, a3 as resolvePathKey, a4 as statusPlugin, t as toVariableName, a5 as uniqueFieldsPlugin, v as versionEntriesToActivityLogs, a6 as versioningPlugin } from './acorex-platform-module-common-client-acorex-platform-module-common-client-CyozKtZH.mjs';
2
2
  export { CommonManifest } from '@acorex-platform/module-common-client/contracts';
3
3
  //# sourceMappingURL=acorex-platform-module-common-client.mjs.map
@@ -724,6 +724,22 @@
724
724
  "title": "Maintain Help Desk",
725
725
  "description": "Create and maintain help desk issues."
726
726
  },
727
+ "request-support": {
728
+ "title": "Request Support",
729
+ "description": "Create and follow your own support tickets."
730
+ },
731
+ "handle-tickets": {
732
+ "title": "Handle Tickets",
733
+ "description": "Work tickets in queues you belong to."
734
+ },
735
+ "manage-ticket-queue": {
736
+ "title": "Manage Ticket Queue",
737
+ "description": "Manage members and assignments for your queues."
738
+ },
739
+ "manage-support": {
740
+ "title": "Manage Support",
741
+ "description": "Manage support queues within your tenant and application."
742
+ },
727
743
  "view-bulletins": {
728
744
  "title": "View Announcements",
729
745
  "description": "Open the organisation announcement feed and read addressed posts."
@@ -724,6 +724,22 @@
724
724
  "title": "Maintain Help Desk",
725
725
  "description": "Create and maintain help desk issues."
726
726
  },
727
+ "request-support": {
728
+ "title": "Request Support",
729
+ "description": "Create and follow your own support tickets."
730
+ },
731
+ "handle-tickets": {
732
+ "title": "Handle Tickets",
733
+ "description": "Work tickets in queues you belong to."
734
+ },
735
+ "manage-ticket-queue": {
736
+ "title": "Manage Ticket Queue",
737
+ "description": "Manage members and assignments for your queues."
738
+ },
739
+ "manage-support": {
740
+ "title": "Manage Support",
741
+ "description": "Manage support queues within your tenant and application."
742
+ },
727
743
  "view-bulletins": {
728
744
  "title": "View Announcements",
729
745
  "description": "Open the organization announcement feed and read addressed posts."
@@ -724,6 +724,22 @@
724
724
  "title": "نگهداری میز خدمت",
725
725
  "description": "ایجاد و نگهداری درخواست‌های میز خدمت."
726
726
  },
727
+ "request-support": {
728
+ "title": "درخواست پشتیبانی",
729
+ "description": "ثبت و پیگیری تیکت‌های خود."
730
+ },
731
+ "handle-tickets": {
732
+ "title": "رسیدگی به تیکت",
733
+ "description": "کار روی تیکت‌های صف‌هایی که عضو آن‌ها هستید."
734
+ },
735
+ "manage-ticket-queue": {
736
+ "title": "مدیریت صف تیکت",
737
+ "description": "مدیریت اعضا و ارجاع‌های صف خود."
738
+ },
739
+ "manage-support": {
740
+ "title": "مدیریت پشتیبانی",
741
+ "description": "مدیریت صف‌های پشتیبانی در محدوده سازمان و برنامه خود."
742
+ },
727
743
  "view-bulletins": {
728
744
  "title": "مشاهده اطلاعیه‌ها",
729
745
  "description": "باز کردن فید اطلاعیه‌های سازمان و خواندن پست‌های مربوط به کاربر."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex-platform/module-common-client",
3
- "version": "2.0.0-next.50",
3
+ "version": "2.0.0-next.54",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
6
  "@acorex/cdk": ">=22.0.0",
@@ -70,8 +70,10 @@ declare const AXPCommonMenuKeys: {
70
70
  readonly Organization: "Common:Menu:Organization";
71
71
  /** Configuration > Organization (Job Definitions, Employment Types, etc.) */
72
72
  readonly OrganizationConfig: "Common:Menu:Configuration:Organization";
73
- /** Configuration > Help Desk (Issue Types) */
73
+ /** Configuration > Help Desk (Issue Types, ticket queues, categories) */
74
74
  readonly HelpDeskConfig: "Common:Menu:Configuration:HelpDesk";
75
+ /** Administration > Help Desk (ticket inbox) */
76
+ readonly HelpDeskAdmin: "Common:Menu:Administration:HelpDesk";
75
77
  /** Configuration > Document Management (Document Types) */
76
78
  readonly DocumentManagementConfig: "Common:Menu:Configuration:DocumentManagement";
77
79
  /** Configuration > Forms & Assessments (Question Bank, Questionnaires, Form Templates) */