@acorex-platform/module-common-client 2.0.0-next.5 → 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.
- package/README.md +34 -0
- package/fesm2022/{acorex-platform-module-common-client-acorex-platform-module-common-client-D2iWgdxu.mjs → acorex-platform-module-common-client-acorex-platform-module-common-client-CyozKtZH.mjs} +180 -39
- package/fesm2022/acorex-platform-module-common-client-acorex-platform-module-common-client-CyozKtZH.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-common-client-archive-entity.command-Bi-36t8z.mjs → acorex-platform-module-common-client-archive-entity.command-C4Gjh7d3.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-common-client-archive-entity.command-Bi-36t8z.mjs.map → acorex-platform-module-common-client-archive-entity.command-C4Gjh7d3.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-common-client-archive-entity.command.util-PWLnCnEK.mjs → acorex-platform-module-common-client-archive-entity.command.util-Bo_qVhWu.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-common-client-archive-entity.command.util-PWLnCnEK.mjs.map → acorex-platform-module-common-client-archive-entity.command.util-Bo_qVhWu.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-common-client-audit-info-column.component-DhYUlBgr.mjs → acorex-platform-module-common-client-audit-info-column.component-Lta_QYvp.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-common-client-audit-info-column.component-DhYUlBgr.mjs.map → acorex-platform-module-common-client-audit-info-column.component-Lta_QYvp.mjs.map} +1 -1
- 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
- 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
- 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
- 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
- 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
- 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
- package/fesm2022/{acorex-platform-module-common-client-bulk-archive-entity.command-D7trLk58.mjs → acorex-platform-module-common-client-bulk-archive-entity.command-BQ_hqcVJ.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-common-client-bulk-archive-entity.command-D7trLk58.mjs.map → acorex-platform-module-common-client-bulk-archive-entity.command-BQ_hqcVJ.mjs.map} +1 -1
- 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
- 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
- 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
- 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
- package/fesm2022/{acorex-platform-module-common-client-bulk-restore-archive-entity.command-BnSzZsI2.mjs → acorex-platform-module-common-client-bulk-restore-archive-entity.command-6gRNYnmO.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-common-client-bulk-restore-archive-entity.command-BnSzZsI2.mjs.map → acorex-platform-module-common-client-bulk-restore-archive-entity.command-6gRNYnmO.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-common-client-clone-entity.command-DeCYclgZ.mjs → acorex-platform-module-common-client-clone-entity.command-CPPQI7QQ.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-common-client-clone-entity.command-DeCYclgZ.mjs.map → acorex-platform-module-common-client-clone-entity.command-CPPQI7QQ.mjs.map} +1 -1
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/fesm2022/acorex-platform-module-common-client-contracts-entity-catalog.mjs +1 -1
- package/fesm2022/acorex-platform-module-common-client-contracts.mjs +14 -7
- package/fesm2022/acorex-platform-module-common-client-contracts.mjs.map +1 -1
- 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
- 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
- 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
- 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
- package/fesm2022/{acorex-platform-module-common-client-disable-entity.command-Bc1uH38V.mjs → acorex-platform-module-common-client-disable-entity.command-D2eXO4Wu.mjs} +2 -2
- 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
- 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
- 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
- package/fesm2022/{acorex-platform-module-common-client-enable-entity.command-DeTumWIj.mjs → acorex-platform-module-common-client-enable-entity.command-CWKbvUOb.mjs} +2 -2
- 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
- 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
- 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
- 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
- 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
- package/fesm2022/{acorex-platform-module-common-client-restore-archive-entity.command-C_vgLiV2.mjs → acorex-platform-module-common-client-restore-archive-entity.command-Da04N7sG.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-common-client-restore-archive-entity.command-C_vgLiV2.mjs.map → acorex-platform-module-common-client-restore-archive-entity.command-Da04N7sG.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-common-client-search-popup.component-C-Ug9qoD.mjs → acorex-platform-module-common-client-search-popup.component-CMUBpRhM.mjs} +4 -4
- package/fesm2022/{acorex-platform-module-common-client-search-popup.component-C-Ug9qoD.mjs.map → acorex-platform-module-common-client-search-popup.component-CMUBpRhM.mjs.map} +1 -1
- 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
- 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
- package/fesm2022/{acorex-platform-module-common-client-timeline-version-history-popup.component-DIipjaFX.mjs → acorex-platform-module-common-client-timeline-version-history-popup.component-D5x0GIRk.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-common-client-timeline-version-history-popup.component-DIipjaFX.mjs.map → acorex-platform-module-common-client-timeline-version-history-popup.component-D5x0GIRk.mjs.map} +1 -1
- 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
- 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
- package/fesm2022/acorex-platform-module-common-client.mjs +1 -1
- package/i18n/en-AU/common.json +25 -5
- package/i18n/en-US/common.json +25 -5
- package/i18n/fa-IR/common.json +21 -1
- package/package.json +1 -1
- package/types/acorex-platform-module-common-client-contracts.d.ts +8 -6
- package/types/acorex-platform-module-common-client.d.ts +41 -3
- package/fesm2022/acorex-platform-module-common-client-acorex-platform-module-common-client-D2iWgdxu.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-common-client-timeline-version-history-popup.component-
|
|
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,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,KAAK;gBACjB,MAAM,EAAE,IAAI,CAAC,MA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A,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;;;"}
|
|
@@ -136,4 +136,4 @@ function normalizeVersioningInput(input) {
|
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
export { AXPVersioningEntityCommandHelper as A, normalizeVersioningInput as n };
|
|
139
|
-
//# sourceMappingURL=acorex-platform-module-common-client-versioning-entity.command.util-
|
|
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,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,OAAe,EAAA;AACtB,QAAA,MAAM,CAAC,UA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B,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
|
+
{"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,OAAe,EAAA;AACtB,QAAA,MAAM,CAAC,UAAU,EAAE,UAAU,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC;QACnD,OAAO,IAAI,CAAC;AACT,aAAA,UAAU,CAAC,UAAU,EAAE,UAAU;AACjC,aAAA,IAAI,EAAsD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;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 AXPGlobalSearchModule, a as AXPGlobalSearchViewModel,
|
|
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
|
package/i18n/en-AU/common.json
CHANGED
|
@@ -319,7 +319,7 @@
|
|
|
319
319
|
},
|
|
320
320
|
"collaboration": {
|
|
321
321
|
"title": "Collaboration",
|
|
322
|
-
"description": "Conversations, meetings, calendars, communications,
|
|
322
|
+
"description": "Conversations, meetings, calendars, communications, bookings, and help desk."
|
|
323
323
|
},
|
|
324
324
|
"content-documents": {
|
|
325
325
|
"title": "Content & Documents",
|
|
@@ -459,7 +459,7 @@
|
|
|
459
459
|
},
|
|
460
460
|
"collaboration-scheduling": {
|
|
461
461
|
"title": "Scheduling",
|
|
462
|
-
"description": "Calendars, meetings, and
|
|
462
|
+
"description": "Calendars, meetings, and bookings."
|
|
463
463
|
},
|
|
464
464
|
"collaboration-communications": {
|
|
465
465
|
"title": "Communications",
|
|
@@ -660,6 +660,10 @@
|
|
|
660
660
|
"title": "Maintain Suppliers",
|
|
661
661
|
"description": "Create and maintain suppliers."
|
|
662
662
|
},
|
|
663
|
+
"maintain-contractors": {
|
|
664
|
+
"title": "Maintain Contractors",
|
|
665
|
+
"description": "Create and maintain contractors."
|
|
666
|
+
},
|
|
663
667
|
"maintain-procurement": {
|
|
664
668
|
"title": "Maintain Procurement",
|
|
665
669
|
"description": "Create and maintain procurement items and purchasing data."
|
|
@@ -712,14 +716,30 @@
|
|
|
712
716
|
"title": "Maintain Communications",
|
|
713
717
|
"description": "Send and manage communications such as email."
|
|
714
718
|
},
|
|
715
|
-
"maintain-
|
|
716
|
-
"title": "Maintain
|
|
717
|
-
"description": "Create and maintain
|
|
719
|
+
"maintain-bookings": {
|
|
720
|
+
"title": "Maintain Bookings",
|
|
721
|
+
"description": "Create and maintain bookings."
|
|
718
722
|
},
|
|
719
723
|
"maintain-help-desk": {
|
|
720
724
|
"title": "Maintain Help Desk",
|
|
721
725
|
"description": "Create and maintain help desk issues."
|
|
722
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
|
+
},
|
|
723
743
|
"view-bulletins": {
|
|
724
744
|
"title": "View Announcements",
|
|
725
745
|
"description": "Open the organisation announcement feed and read addressed posts."
|
package/i18n/en-US/common.json
CHANGED
|
@@ -319,7 +319,7 @@
|
|
|
319
319
|
},
|
|
320
320
|
"collaboration": {
|
|
321
321
|
"title": "Collaboration",
|
|
322
|
-
"description": "Conversations, meetings, calendars, communications,
|
|
322
|
+
"description": "Conversations, meetings, calendars, communications, bookings, and help desk."
|
|
323
323
|
},
|
|
324
324
|
"content-documents": {
|
|
325
325
|
"title": "Content & Documents",
|
|
@@ -459,7 +459,7 @@
|
|
|
459
459
|
},
|
|
460
460
|
"collaboration-scheduling": {
|
|
461
461
|
"title": "Scheduling",
|
|
462
|
-
"description": "Calendars, meetings, and
|
|
462
|
+
"description": "Calendars, meetings, and bookings."
|
|
463
463
|
},
|
|
464
464
|
"collaboration-communications": {
|
|
465
465
|
"title": "Communications",
|
|
@@ -660,6 +660,10 @@
|
|
|
660
660
|
"title": "Maintain Suppliers",
|
|
661
661
|
"description": "Create and maintain suppliers."
|
|
662
662
|
},
|
|
663
|
+
"maintain-contractors": {
|
|
664
|
+
"title": "Maintain Contractors",
|
|
665
|
+
"description": "Create and maintain contractors."
|
|
666
|
+
},
|
|
663
667
|
"maintain-procurement": {
|
|
664
668
|
"title": "Maintain Procurement",
|
|
665
669
|
"description": "Create and maintain procurement items and purchasing data."
|
|
@@ -712,14 +716,30 @@
|
|
|
712
716
|
"title": "Maintain Communications",
|
|
713
717
|
"description": "Send and manage communications such as email."
|
|
714
718
|
},
|
|
715
|
-
"maintain-
|
|
716
|
-
"title": "Maintain
|
|
717
|
-
"description": "Create and maintain
|
|
719
|
+
"maintain-bookings": {
|
|
720
|
+
"title": "Maintain Bookings",
|
|
721
|
+
"description": "Create and maintain bookings."
|
|
718
722
|
},
|
|
719
723
|
"maintain-help-desk": {
|
|
720
724
|
"title": "Maintain Help Desk",
|
|
721
725
|
"description": "Create and maintain help desk issues."
|
|
722
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
|
+
},
|
|
723
743
|
"view-bulletins": {
|
|
724
744
|
"title": "View Announcements",
|
|
725
745
|
"description": "Open the organization announcement feed and read addressed posts."
|
package/i18n/fa-IR/common.json
CHANGED
|
@@ -660,6 +660,10 @@
|
|
|
660
660
|
"title": "نگهداری تأمینکنندگان",
|
|
661
661
|
"description": "ایجاد و نگهداری تأمینکنندگان."
|
|
662
662
|
},
|
|
663
|
+
"maintain-contractors": {
|
|
664
|
+
"title": "نگهداری پیمانکاران",
|
|
665
|
+
"description": "ایجاد و نگهداری پیمانکاران."
|
|
666
|
+
},
|
|
663
667
|
"maintain-procurement": {
|
|
664
668
|
"title": "نگهداری تدارکات",
|
|
665
669
|
"description": "ایجاد و نگهداری اقلام تدارکات و دادههای خرید."
|
|
@@ -712,7 +716,7 @@
|
|
|
712
716
|
"title": "نگهداری ارتباطات",
|
|
713
717
|
"description": "ارسال و مدیریت ارتباطات مانند ایمیل."
|
|
714
718
|
},
|
|
715
|
-
"maintain-
|
|
719
|
+
"maintain-bookings": {
|
|
716
720
|
"title": "نگهداری رزروها",
|
|
717
721
|
"description": "ایجاد و نگهداری رزروها."
|
|
718
722
|
},
|
|
@@ -720,6 +724,22 @@
|
|
|
720
724
|
"title": "نگهداری میز خدمت",
|
|
721
725
|
"description": "ایجاد و نگهداری درخواستهای میز خدمت."
|
|
722
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
|
+
},
|
|
723
743
|
"view-bulletins": {
|
|
724
744
|
"title": "مشاهده اطلاعیهها",
|
|
725
745
|
"description": "باز کردن فید اطلاعیههای سازمان و خواندن پستهای مربوط به کاربر."
|
package/package.json
CHANGED
|
@@ -70,14 +70,16 @@ 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) */
|
|
78
80
|
readonly FormsAndAssessments: "Common:Menu:Configuration:FormsAndAssessments";
|
|
79
|
-
/** Configuration >
|
|
80
|
-
readonly
|
|
81
|
+
/** Configuration > Booking (types, statuses, booking policies, actions, resource settings) */
|
|
82
|
+
readonly ResourceBookingConfig: "Common:Menu:Configuration:ResourceBooking";
|
|
81
83
|
/** Configuration > Date and Time (Timezones, Calendars, Calendar Event Types) */
|
|
82
84
|
readonly DateAndTime: "Common:Menu:Configuration:DateAndTime";
|
|
83
85
|
/** Configuration > Region and Locale (Location Types, Geographic Regions, Languages) */
|
|
@@ -88,7 +90,7 @@ declare const AXPCommonMenuKeys: {
|
|
|
88
90
|
readonly Health: "Common:Menu:Configuration:Health";
|
|
89
91
|
/** Configuration > Projects (Project + Task reference data) */
|
|
90
92
|
readonly Projects: "Common:Menu:Configuration:Projects";
|
|
91
|
-
/** Configuration > Scheduling and Events (Meeting +
|
|
93
|
+
/** Configuration > Scheduling and Events (Meeting + Booking types) */
|
|
92
94
|
readonly SchedulingAndEvents: "Common:Menu:Configuration:SchedulingAndEvents";
|
|
93
95
|
/** Configuration > Data and Content (Documents + Data Definitions) */
|
|
94
96
|
readonly DataAndContent: "Common:Menu:Configuration:DataAndContent";
|
|
@@ -238,11 +240,11 @@ declare const AXPPermissionDomainModules: {
|
|
|
238
240
|
readonly SafetyRisk: readonly ["WorkplaceSafetyManagement", "RiskManagement", "HealthCore", "AssessmentManagement"];
|
|
239
241
|
readonly ProjectsWork: readonly ["ProjectManagement", "TaskManagement", "TimesheetManagement"];
|
|
240
242
|
readonly AssetsMaintenance: readonly ["AssetManagement", "MaintenanceManagement", "MeasurementCore"];
|
|
241
|
-
readonly Collaboration: readonly ["Conversation", "CalendarManagement", "MeetingManagement", "CommunicationManagement", "BulletinManagement", "
|
|
243
|
+
readonly Collaboration: readonly ["Conversation", "CalendarManagement", "MeetingManagement", "CommunicationManagement", "BulletinManagement", "ResourceBookingManagement", "HelpDesk", "ContactCore"];
|
|
242
244
|
readonly ContentDocuments: readonly ["DocumentManagement", "ContentManagement", "AssessmentManagement"];
|
|
243
245
|
readonly InsightsReporting: readonly ["ReportManagement", "DataManagement", "ActivityInsight", "TestManagement"];
|
|
244
246
|
readonly SalesCustomers: readonly ["CustomerManagement", "ProductCatalog", "OrderManagement", "SubscriptionManagement", "BusinessCore"];
|
|
245
|
-
readonly Procurement: readonly ["SupplierManagement", "ProcurementManagement"];
|
|
247
|
+
readonly Procurement: readonly ["SupplierManagement", "ContractorManagement", "ProcurementManagement"];
|
|
246
248
|
readonly Learning: readonly ["LearningManagement"];
|
|
247
249
|
readonly Finance: readonly ["FinancialCore"];
|
|
248
250
|
};
|
|
@@ -5,6 +5,7 @@ import { AXPCompareViewInputs, AXPCompareViewMode, AXPActivityLogCompareRequest
|
|
|
5
5
|
import * as i1 from '@acorex/core/validation';
|
|
6
6
|
import { AXValidationRuleOptions, AXValidationRule, AXValidationRuleResult } from '@acorex/core/validation';
|
|
7
7
|
import * as i24 from '@acorex-platform/framework-client/layout/widgets';
|
|
8
|
+
import { AXPMultiLanguageString, AXPExpressionEvaluatorScopeProvider, AXPExpressionEvaluatorScopeProviderContext, AXPSystemActionType, AXPContextData, AXPStatusProvider, AXPStatusDefinition, AXPStatusTransition, AXPSystemStatusType, AXPBreadcrumbItem } from '@acorex-platform/framework-shared/core';
|
|
8
9
|
import { AXPMenuProvider, AXPMenuProviderContext, AXPSettingDefinitionProvider, AXPSettingDefinitionProviderContext, AXPSearchDisplayGroupResult, AXPSearchDisplayResult, AXPVersionEntry, AXVChangeType } from '@acorex-platform/framework-client/common';
|
|
9
10
|
import * as i1$1 from '@acorex-platform/framework-client/core';
|
|
10
11
|
import { AXPFeatureDefinitionProvider, AXPFeatureDefinitionProviderContext, AXPActivityLog } from '@acorex-platform/framework-client/core';
|
|
@@ -15,7 +16,6 @@ import { AXPWidgetConfig } from '@acorex-platform/framework-shared/widget-core';
|
|
|
15
16
|
import { AXPCommand, AXPCommandExecuteResultPromise } from '@acorex-platform/framework-shared/runtime';
|
|
16
17
|
import * as dist_libs_framework_client_types_acorex_platform_framework_client_core from 'dist/libs/framework/client/types/acorex-platform-framework-client-core';
|
|
17
18
|
import { AXPPageLayoutBaseComponent } from '@acorex-platform/framework-client/layout/views';
|
|
18
|
-
import { AXPSystemActionType, AXPMultiLanguageString, AXPContextData, AXPStatusProvider, AXPStatusDefinition, AXPStatusTransition, AXPSystemStatusType, AXPBreadcrumbItem } from '@acorex-platform/framework-shared/core';
|
|
19
19
|
|
|
20
20
|
declare class AXPCategoryModule {
|
|
21
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPCategoryModule, never>;
|
|
@@ -197,6 +197,44 @@ declare class AXMCommonModule {
|
|
|
197
197
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXMCommonModule>;
|
|
198
198
|
}
|
|
199
199
|
|
|
200
|
+
type AXPEntityExpressionResult = {
|
|
201
|
+
status: 'saved';
|
|
202
|
+
id?: string;
|
|
203
|
+
data: unknown;
|
|
204
|
+
} | {
|
|
205
|
+
status: 'cancelled';
|
|
206
|
+
} | {
|
|
207
|
+
status: 'failed';
|
|
208
|
+
message: AXPMultiLanguageString;
|
|
209
|
+
};
|
|
210
|
+
/** Shared entity access for expressions. Dialogs keep the calling form open. */
|
|
211
|
+
declare class AXPEntityExpressionService {
|
|
212
|
+
private readonly commands;
|
|
213
|
+
private readonly entities;
|
|
214
|
+
get(type: string, id: string): Promise<unknown>;
|
|
215
|
+
create(type: string, data?: Record<string, unknown>): Promise<AXPEntityExpressionResult>;
|
|
216
|
+
edit(type: string, id: string): Promise<AXPEntityExpressionResult>;
|
|
217
|
+
private validate;
|
|
218
|
+
private validateId;
|
|
219
|
+
private open;
|
|
220
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPEntityExpressionService, never>;
|
|
221
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPEntityExpressionService>;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
declare class AXPEntityEvaluatorScopeProvider implements AXPExpressionEvaluatorScopeProvider {
|
|
225
|
+
private readonly entities;
|
|
226
|
+
provide(context: AXPExpressionEvaluatorScopeProviderContext): Promise<void>;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* Any host can expose its relationship as `context.eval('subjectRef')`.
|
|
231
|
+
* Each evaluation binds to that host; no current-subject state is shared.
|
|
232
|
+
*/
|
|
233
|
+
declare class AXPSubjectEvaluatorScopeProvider implements AXPExpressionEvaluatorScopeProvider {
|
|
234
|
+
private readonly entities;
|
|
235
|
+
provide(context: AXPExpressionEvaluatorScopeProviderContext): Promise<void>;
|
|
236
|
+
}
|
|
237
|
+
|
|
200
238
|
declare class AXMMenuProvider implements AXPMenuProvider {
|
|
201
239
|
private sessionService;
|
|
202
240
|
private homePageService;
|
|
@@ -777,5 +815,5 @@ declare class AXPResourceAppointmentPageComponent extends AXPPageLayoutBaseCompo
|
|
|
777
815
|
static ɵcmp: i0.ɵɵComponentDeclaration<AXPResourceAppointmentPageComponent, "axp-resource-appointment-page", never, {}, {}, never, never, true, never>;
|
|
778
816
|
}
|
|
779
817
|
|
|
780
|
-
export { AXMCommonModule, AXMMenuProvider, AXMSettingProvider, AXMVersionHistoryPageComponent, AXPArchivePluginModule, AXPCommonFeatureDefinitionProvider, AXPDerivedNamePluginModule, AXPDisablePluginModule, AXPGlobalSearchModule, AXPGlobalSearchViewModel, AXPHistoryAuditInfoWidget, AXPHistoryModule, AXPLockEntityCommand, AXPResourceAppointmentPageComponent, AXPStatusPluginModule, AXPUniqueFieldsPluginModule, AXPUnlockEntityCommand, AXPValidationRulesModule, AXPVersioningPluginModule, AXP_ENTITY_ARCHIVE_OVERRIDES, AXP_GLOBAL_SEARCH_CONFIG_TOKEN, AXP_RESOURCE_APPOINTMENT_PAGE_CONFIG, ApprovalStatusProvider, AtLeastOneOfValidationRule, HISTORY_PAGE_COMPONENT_KEY, ShowVersionHistoryPopupCommand, StateStatusProvider, TaskStatusProvider, UniqueValidationRule, VARIABLE_NAME_VALIDATION_PATTERN, VariableNameValidationRule, aggregateVersionHistoryBarChartItems, archivePlugin, buildEntityFieldHistoryLineChartSeries, buildProductBasePriceHistoryLineChartSeries, derivedNamePlugin, disablePlugin, formatVersionHistoryReplaceSummary, getActiveStatuses, getFinalStatuses, getInitialStatuses, getStatusByName, getTransitionsFromStatus, getTransitionsToStatus, historyPlugin, humanizeChange, isRtlHistoryLocale, isValidTransition, isValidVariableName, mapChangeType, mapOpToAction, resolvePathKey, statusPlugin, toVariableName, uniqueFieldsPlugin, versionEntriesToActivityLogs, versioningPlugin };
|
|
781
|
-
export type { AXAtLeastOneOfValidationRuleOptions, AXPArchivePluginOptions, AXPDerivedNameExtension, AXPDerivedNamePluginOptions, AXPDisablePluginOptions, AXPEntityArchiveOverride, AXPEntityHistoryBarChartItem, AXPEntityHistoryLineChartPoint, AXPEntityHistoryLineChartSeries, AXPGlobalSearchConfigs, AXPHistoryPluginOptions, AXPLockEntityCommandOutput, AXPResourceAppointmentPageConfig, AXPStatusPluginGenerateOptions, AXPStatusPluginGenerateViewsOptions, AXPStatusPluginOptions, AXPUnlockEntityCommandOutput, AXVariableNameValidationRuleOptions, GetHistoryLayoutResolver, HistoryDisplayMode, ShowVersionHistoryPopupInput, UniqueFieldsPluginOptions };
|
|
818
|
+
export { AXMCommonModule, AXMMenuProvider, AXMSettingProvider, AXMVersionHistoryPageComponent, AXPArchivePluginModule, AXPCommonFeatureDefinitionProvider, AXPDerivedNamePluginModule, AXPDisablePluginModule, AXPEntityEvaluatorScopeProvider, AXPEntityExpressionService, AXPGlobalSearchModule, AXPGlobalSearchViewModel, AXPHistoryAuditInfoWidget, AXPHistoryModule, AXPLockEntityCommand, AXPResourceAppointmentPageComponent, AXPStatusPluginModule, AXPSubjectEvaluatorScopeProvider, AXPUniqueFieldsPluginModule, AXPUnlockEntityCommand, AXPValidationRulesModule, AXPVersioningPluginModule, AXP_ENTITY_ARCHIVE_OVERRIDES, AXP_GLOBAL_SEARCH_CONFIG_TOKEN, AXP_RESOURCE_APPOINTMENT_PAGE_CONFIG, ApprovalStatusProvider, AtLeastOneOfValidationRule, HISTORY_PAGE_COMPONENT_KEY, ShowVersionHistoryPopupCommand, StateStatusProvider, TaskStatusProvider, UniqueValidationRule, VARIABLE_NAME_VALIDATION_PATTERN, VariableNameValidationRule, aggregateVersionHistoryBarChartItems, archivePlugin, buildEntityFieldHistoryLineChartSeries, buildProductBasePriceHistoryLineChartSeries, derivedNamePlugin, disablePlugin, formatVersionHistoryReplaceSummary, getActiveStatuses, getFinalStatuses, getInitialStatuses, getStatusByName, getTransitionsFromStatus, getTransitionsToStatus, historyPlugin, humanizeChange, isRtlHistoryLocale, isValidTransition, isValidVariableName, mapChangeType, mapOpToAction, resolvePathKey, statusPlugin, toVariableName, uniqueFieldsPlugin, versionEntriesToActivityLogs, versioningPlugin };
|
|
819
|
+
export type { AXAtLeastOneOfValidationRuleOptions, AXPArchivePluginOptions, AXPDerivedNameExtension, AXPDerivedNamePluginOptions, AXPDisablePluginOptions, AXPEntityArchiveOverride, AXPEntityExpressionResult, AXPEntityHistoryBarChartItem, AXPEntityHistoryLineChartPoint, AXPEntityHistoryLineChartSeries, AXPGlobalSearchConfigs, AXPHistoryPluginOptions, AXPLockEntityCommandOutput, AXPResourceAppointmentPageConfig, AXPStatusPluginGenerateOptions, AXPStatusPluginGenerateViewsOptions, AXPStatusPluginOptions, AXPUnlockEntityCommandOutput, AXVariableNameValidationRuleOptions, GetHistoryLayoutResolver, HistoryDisplayMode, ShowVersionHistoryPopupInput, UniqueFieldsPluginOptions };
|