@acorex-platform/module-report-management-client 1.0.1 → 2.0.0-beta.0
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/fesm2022/{acorex-platform-module-report-management-client-acorex-platform-module-report-management-client-eSjEqt5D.mjs → acorex-platform-module-report-management-client-acorex-platform-module-report-management-client-DKnaOM7_.mjs} +36 -53
- package/fesm2022/acorex-platform-module-report-management-client-acorex-platform-module-report-management-client-DKnaOM7_.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-report-category.mjs +0 -14
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-report-category.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-report-generation-request.mjs +2 -16
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-report-generation-request.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-report.mjs +179 -25
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-report.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-report-management-client-contracts-entity-catalog-acorex-platform-module-report-management-client-contracts-entity-catalog-CboBAIna.mjs → acorex-platform-module-report-management-client-contracts-entity-catalog-acorex-platform-module-report-management-client-contracts-entity-catalog-CSABQXeE.mjs} +4 -20
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-acorex-platform-module-report-management-client-contracts-entity-catalog-CSABQXeE.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-report-management-client-contracts-entity-catalog-report-category.entity-BQFdNXAm.mjs → acorex-platform-module-report-management-client-contracts-entity-catalog-report-category.entity-GPDKYKW_.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-report-management-client-contracts-entity-catalog-report-category.entity-BQFdNXAm.mjs.map → acorex-platform-module-report-management-client-contracts-entity-catalog-report-category.entity-GPDKYKW_.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-report-management-client-contracts-entity-catalog-report-generation-request.entity-D381cWLE.mjs → acorex-platform-module-report-management-client-contracts-entity-catalog-report-generation-request.entity-B3cCnjKO.mjs} +4 -4
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-report-generation-request.entity-B3cCnjKO.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-report.entity-B_BWJu1a.mjs +292 -0
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-report.entity-B_BWJu1a.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog.mjs +1 -1
- package/fesm2022/acorex-platform-module-report-management-client-contracts.mjs +1866 -25
- package/fesm2022/acorex-platform-module-report-management-client-contracts.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-report-management-client-entity-reports-page-component.provider-CaxletoS.mjs → acorex-platform-module-report-management-client-entity-reports-page-component.provider-BqgxvuLq.mjs} +3 -3
- package/fesm2022/{acorex-platform-module-report-management-client-entity-reports-page-component.provider-CaxletoS.mjs.map → acorex-platform-module-report-management-client-entity-reports-page-component.provider-BqgxvuLq.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-report-management-client-entity-reports-page.component-CK5bCQhm.mjs → acorex-platform-module-report-management-client-entity-reports-page.component-D9AfxSeN.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-report-management-client-entity-reports-page.component-CK5bCQhm.mjs.map → acorex-platform-module-report-management-client-entity-reports-page.component-D9AfxSeN.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-report-management-client-local-entities.mjs +0 -2
- package/fesm2022/acorex-platform-module-report-management-client-local-entities.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-report-management-client-report-definition-access.service-DUpwky68.mjs +67 -0
- package/fesm2022/acorex-platform-module-report-management-client-report-definition-access.service-DUpwky68.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-report-management-client-report-filter-page.component-C8XSGSdz.mjs +255 -0
- package/fesm2022/acorex-platform-module-report-management-client-report-filter-page.component-C8XSGSdz.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-report-management-client-report-layout-page-component.provider-BfBckWsh.mjs +28 -0
- package/fesm2022/acorex-platform-module-report-management-client-report-layout-page-component.provider-BfBckWsh.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-report-management-client-report-layout-page.component-DFmdGIY9.mjs +876 -0
- package/fesm2022/acorex-platform-module-report-management-client-report-layout-page.component-DFmdGIY9.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-report-management-client-report-layout-switcher.util-C3OVIaEz.mjs → acorex-platform-module-report-management-client-report-layout-switcher.util-DRG-8RcA.mjs} +258 -41
- package/fesm2022/acorex-platform-module-report-management-client-report-layout-switcher.util-DRG-8RcA.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-report-management-client-report-popup-viewer.component-CKE8NG5T.mjs → acorex-platform-module-report-management-client-report-popup-viewer.component-BVI1z7F3.mjs} +6 -6
- package/fesm2022/{acorex-platform-module-report-management-client-report-popup-viewer.component-CKE8NG5T.mjs.map → acorex-platform-module-report-management-client-report-popup-viewer.component-BVI1z7F3.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-report-management-client-report-viewer-page.component-CPlbhBa_.mjs → acorex-platform-module-report-management-client-report-viewer-page.component-CPHO4vlQ.mjs} +84 -26
- package/fesm2022/acorex-platform-module-report-management-client-report-viewer-page.component-CPHO4vlQ.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-report-management-client.mjs +1 -1
- package/i18n/en-AU/report-management.json +260 -35
- package/i18n/en-US/report-management.json +260 -35
- package/i18n/fa-IR/report-management.json +260 -35
- package/package.json +2 -9
- package/types/acorex-platform-module-report-management-client-contracts.d.ts +395 -109
- package/types/acorex-platform-module-report-management-client.d.ts +5 -5
- package/fesm2022/acorex-platform-module-report-management-client-acorex-platform-module-report-management-client-eSjEqt5D.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-query-snapshot-policy.mjs +0 -157
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-query-snapshot-policy.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-query-snapshot.mjs +0 -197
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-query-snapshot.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-acorex-platform-module-report-management-client-contracts-entity-catalog-CboBAIna.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-query-snapshot-policy.entity-BUY06Dz0.mjs +0 -97
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-query-snapshot-policy.entity-BUY06Dz0.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-query-snapshot.entity-CnnX3xZt.mjs +0 -137
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-query-snapshot.entity-CnnX3xZt.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-report-generation-request.entity-D381cWLE.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-report.entity-Bwui0M8X.mjs +0 -124
- package/fesm2022/acorex-platform-module-report-management-client-contracts-entity-catalog-report.entity-Bwui0M8X.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-report-management-client-report-layout-switcher.util-C3OVIaEz.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-report-management-client-report-viewer-page.component-CPlbhBa_.mjs.map +0 -1
- package/types/acorex-platform-module-report-management-client-contracts-entities-query-snapshot-policy.d.ts +0 -5
- package/types/acorex-platform-module-report-management-client-contracts-entities-query-snapshot.d.ts +0 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-report-management-client-contracts-entities-report-generation-request.mjs","sources":["../../../../libs/modules/report-management/contracts/src/root-config.ts","../../../../libs/modules/report-management/contracts/src/report-generation.types.ts","../../../../libs/modules/report-management/contracts/src/entities/report-generation-request/report-generation-request.entity.ts","../../../../libs/modules/report-management/contracts/src/acorex-platform-module-report-management-client-contracts-entities-report-generation-request.ts"],"sourcesContent":["const config = {\n i18n: 'report-management',\n module: 'ReportManagement',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'report-management',\n name: config.module,\n title: `@${config.i18n}:module.title`,\n icon: 'fa-light fa-chart-bar',\n },\n entities: {\n dataSet: {\n name: 'DataSet',\n title: `t(\"dataSet\", { scope: \"${config.i18n}\" })`,\n titlePlural: `t(\"dataSetPlural\", { scope: \"${config.i18n}\" })`,\n icon: 'fa-light fa-default',\n },\n category: {\n name: 'ReportCategory',\n fullName: `${config.module}.ReportCategory`,\n title: `@${config.i18n}:reports.entities.category.title`,\n titlePlural: `@${config.i18n}:reports.entities.category.plural`,\n icon: 'fa-light fa-folder',\n },\n report: {\n name: 'Report',\n fullName: `${config.module}.Report`,\n title: `@${config.i18n}:reports.entities.report.title`,\n titlePlural: `@${config.i18n}:reports.entities.report.plural`,\n icon: 'fa-light fa-file-chart-pie',\n },\n querySnapshotPolicy: {\n name: 'QuerySnapshotPolicy',\n fullName: `${config.module}.QuerySnapshotPolicy`,\n title: `@${config.i18n}:query-snapshots.entities.policy.title`,\n titlePlural: `@${config.i18n}:query-snapshots.entities.policy.plural`,\n icon: 'fa-light fa-sliders',\n },\n querySnapshot: {\n name: 'QuerySnapshot',\n fullName: `${config.module}.QuerySnapshot`,\n title: `@${config.i18n}:query-snapshots.entities.snapshot.title`,\n titlePlural: `@${config.i18n}:query-snapshots.entities.snapshot.plural`,\n icon: 'fa-light fa-camera',\n },\n reportGenerationRequest: {\n name: 'ReportGenerationRequest',\n fullName: `${config.module}.ReportGenerationRequest`,\n title: `@${config.i18n}:report-generation.entities.request.title`,\n titlePlural: `@${config.i18n}:report-generation.entities.request.plural`,\n icon: 'fa-light fa-file-export',\n },\n },\n} as const;\n","//#region ----- Imports -----\n\nimport type { AXPMultiLanguageString, AXPRuntimeQueryResult } from '@acorex-platform/framework-shared/core';\nimport type { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\nimport type {\n AXPReportArtifactKind,\n AXPReportLayoutDefinition,\n} from './report.types';\n\n//#endregion\n\n//#region ----- Types -----\n\nexport type AXPReportGenerationStatus = 'queued' | 'running' | 'completed' | 'failed' | 'cancelled';\n\nexport type AXPReportGenerationTrigger = 'manual' | 'schedule' | 'export';\n\nexport interface AXPReportGenerationArtifact {\n kind: AXPReportArtifactKind;\n fileId?: string;\n contentType?: string;\n fileName?: string;\n rowCount?: number;\n byteLength?: number;\n lastError?: string;\n}\n\nexport const REPORT_GENERATION_NOTIFICATION_DEFINITION_KEY = 'ReportManagement:ReportGeneration';\n\nexport const REPORT_GENERATION_OPEN_FROZEN_COMMAND = 'ReportManagement.Report:OpenViewer';\n\n/** In-app inbox correlation id for a completed report generation run. */\nexport function buildReportGenerationNotificationCorrelationId(runId: string): string {\n const normalized = runId.trim();\n return normalized ? `report-generation:${normalized}` : 'report-generation:';\n}\n\nexport interface AXMReportGenerationRequest extends AXPEntityModel<string> {\n reportId: string;\n layoutId?: string;\n layoutIds?: string[];\n parameters?: Record<string, unknown>;\n formats: AXPReportArtifactKind[];\n trigger: AXPReportGenerationTrigger;\n status: AXPReportGenerationStatus;\n requestedBy?: string;\n jobId?: string;\n scheduleId?: string;\n scheduledOccurrence?: string;\n startedAt?: string;\n completedAt?: string;\n durationMs?: number;\n lastError?: string;\n expiresAt?: string;\n sourceRequestId?: string;\n /** When true, skip in-app notification because the report viewer is watching this run inline. */\n suppressNotificationOnComplete?: boolean;\n artifacts: AXPReportGenerationArtifact[];\n}\n\nexport interface AXPReportViewerFreeze {\n version: 1;\n reportId: string;\n generatedAt: string;\n parameters: Record<string, unknown>;\n definition?: {\n title: AXPMultiLanguageString;\n defaultLayoutId: string;\n layouts: AXPReportLayoutDefinition[];\n };\n dataSources: Array<{\n layoutId: string;\n queryName: string;\n result: AXPRuntimeQueryResult;\n }>;\n}\n\nexport interface AXPReportGenerationCreateInput {\n reportId: string;\n layoutId?: string;\n layoutIds?: string[];\n parameters?: Record<string, unknown>;\n formats?: AXPReportArtifactKind[];\n trigger?: AXPReportGenerationTrigger;\n sourceRequestId?: string;\n scheduleId?: string;\n scheduledOccurrence?: string;\n /** Set when the report viewer will poll and show the result inline. */\n suppressNotificationOnComplete?: boolean;\n}\n\nexport interface AXPReportGenerationReleaseInlineWatchInput {\n id: string;\n}\n\nexport interface AXPReportGenerationCreateResult {\n id: string;\n jobId?: string;\n status: AXPReportGenerationStatus;\n /** True when an existing run was returned instead of creating a new row. */\n deduplicated?: boolean;\n}\n\nexport interface AXPReportGenerationExecuteInput {\n reportRequestId: string;\n}\n\nexport interface AXPReportGenerationExecuteResult {\n reportRequestId: string;\n fileIds: string[];\n rowCount?: number;\n}\n\nexport interface AXPReportGenerationGetInput {\n id: string;\n}\n\nexport interface AXPReportGenerationGetViewerFreezeInput {\n id: string;\n}\n\nexport interface AXPReportGenerationListMineInput {\n skip?: number;\n take?: number;\n}\n\n//#endregion\n","import { AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, AXPEntityCommandScope, createAllQueryView } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\nimport { REPORT_GENERATION_OPEN_FROZEN_COMMAND } from '../../report-generation.types';\n\n//#region ---- Report generation request entity factory ----\n\nconst I18N = '@report-management:report-generation.entities.request';\n\nconst STATUS_ITEMS = [\n { name: 'queued', title: `${I18N}.statuses.queued` },\n { name: 'running', title: `${I18N}.statuses.running` },\n { name: 'completed', title: `${I18N}.statuses.completed` },\n { name: 'failed', title: `${I18N}.statuses.failed` },\n { name: 'cancelled', title: `${I18N}.statuses.cancelled` },\n];\n\nconst TRIGGER_ITEMS = [\n { name: 'manual', title: `${I18N}.triggers.manual` },\n { name: 'schedule', title: `${I18N}.triggers.schedule` },\n { name: 'export', title: `${I18N}.triggers.export` },\n];\n\nexport async function reportGenerationRequestEntityFactory(): Promise<AXPEntity | null> {\n return {\n module: RootConfig.module.name,\n name: RootConfig.entities.reportGenerationRequest.name,\n title: RootConfig.entities.reportGenerationRequest.title,\n icon: RootConfig.entities.reportGenerationRequest.icon,\n searchTags: [\n 'report-generation',\n 'background-report',\n 'report-export',\n 'report-job',\n 'async-report',\n 'scheduled-report',\n 'report-queue',\n 'generation-request',\n 'تولید گزارش',\n 'گزارش پسزمینه',\n 'اجرای تولید گزارش',\n 'خروجی گزارش',\n ],\n formats: {\n individual: RootConfig.entities.reportGenerationRequest.title,\n plural: RootConfig.entities.reportGenerationRequest.titlePlural,\n searchResult: {\n title: '{{ reportId }}',\n description: '{{ status }}',\n },\n },\n groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],\n properties: [\n {\n name: 'reportId',\n title: `${I18N}.fields.report-id`,\n groupId: 'basic-info',\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n options: {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n },\n },\n {\n name: 'layoutId',\n title: `${I18N}.fields.layout-id`,\n groupId: 'basic-info',\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'status',\n title: `${I18N}.fields.status`,\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.select, options: { items: STATUS_ITEMS } },\n },\n options: {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n },\n },\n {\n name: 'trigger',\n title: `${I18N}.fields.trigger`,\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.select, options: { items: TRIGGER_ITEMS } },\n },\n options: { filter: { advance: { enabled: true } } },\n },\n {\n name: 'requestedBy',\n title: `${I18N}.fields.requested-by`,\n groupId: 'basic-info',\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n options: { filter: { advance: { enabled: true } } },\n },\n {\n name: 'jobId',\n title: `${I18N}.fields.job-id`,\n groupId: 'basic-info',\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'startedAt',\n title: `${I18N}.fields.started-at`,\n groupId: 'basic-info',\n schema: {\n dataType: 'datetime',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },\n },\n options: { sort: { enabled: true } },\n },\n {\n name: 'completedAt',\n title: `${I18N}.fields.completed-at`,\n groupId: 'basic-info',\n schema: {\n dataType: 'datetime',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },\n },\n options: { sort: { enabled: true } },\n },\n {\n name: 'durationMs',\n title: `${I18N}.fields.duration-ms`,\n groupId: 'basic-info',\n schema: { dataType: 'number', readonly: true, interface: { type: AXPWidgetsCatalog.number } },\n },\n {\n name: 'lastError',\n title: `${I18N}.fields.last-error`,\n groupId: 'basic-info',\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.largeText } },\n },\n {\n name: 'expiresAt',\n title: `${I18N}.fields.expires-at`,\n groupId: 'basic-info',\n schema: {\n dataType: 'datetime',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },\n },\n },\n {\n name: 'parameters',\n title: `${I18N}.fields.parameters`,\n groupId: 'basic-info',\n schema: {\n dataType: 'object',\n readonly: true,\n interface: { type: AXPWidgetsList.Advanced.JsonViewer, options: { disabled: true } },\n },\n },\n {\n name: 'artifacts',\n title: `${I18N}.fields.artifacts`,\n groupId: 'basic-info',\n schema: {\n dataType: 'object',\n readonly: true,\n interface: { type: AXPWidgetsList.Advanced.JsonViewer, options: { disabled: true } },\n },\n },\n ],\n columns: [\n { name: 'reportId' },\n { name: 'status' },\n { name: 'trigger' },\n { name: 'startedAt' },\n { name: 'completedAt' },\n ],\n interfaces: {\n master: {\n list: {\n actions: [\n {\n title: '@report-management:report-generation.actions.open-frozen-viewer',\n icon: 'fa-light fa-snowflake',\n command: {\n name: REPORT_GENERATION_OPEN_FROZEN_COMMAND,\n options: {\n reportId: '{{ context.eval(\"reportId\") }}',\n runId: '{{ context.eval(\"id\") }}',\n },\n },\n priority: 'primary',\n type: 'view',\n scope: AXPEntityCommandScope.Individual,\n default: true,\n },\n ],\n views: [createAllQueryView({ sorts: [{ name: 'completedAt', dir: 'desc' }] })],\n },\n },\n },\n };\n}\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.report-generation-request';\n"],"names":[],"mappings":";;;AAAA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,mBAAmB;AACzB,IAAA,MAAM,EAAE,kBAAkB;CAC3B;AAEM,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;AACN,QAAA,KAAK,EAAE,mBAAmB;QAC1B,IAAI,EAAE,MAAM,CAAC,MAAM;AACnB,QAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,aAAA,CAAe;AACrC,QAAA,IAAI,EAAE,uBAAuB;AAC9B,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,OAAO,EAAE;AACP,YAAA,IAAI,EAAE,SAAS;AACf,YAAA,KAAK,EAAE,CAAA,uBAAA,EAA0B,MAAM,CAAC,IAAI,CAAA,IAAA,CAAM;AAClD,YAAA,WAAW,EAAE,CAAA,6BAAA,EAAgC,MAAM,CAAC,IAAI,CAAA,IAAA,CAAM;AAC9D,YAAA,IAAI,EAAE,qBAAqB;AAC5B,SAAA;AACD,QAAA,QAAQ,EAAE;AACR,YAAA,IAAI,EAAE,gBAAgB;AACtB,YAAA,QAAQ,EAAE,CAAA,EAAG,MAAM,CAAC,MAAM,CAAA,eAAA,CAAiB;AAC3C,YAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,gCAAA,CAAkC;AACxD,YAAA,WAAW,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,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AE,SAAS,EAAE;YACnB,EAAE,IAAI,EAAE,WAAW,EAAE;YACrB,EAAE,IAAI,EAAE,aAAa,EAAE;AACxB,SAAA;AACD,QAAA,UAAU,EAAE;AACV,YAAA,MAAM,EAAE;AACN,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE;AACP,wBAAA;AACE,4BAAA,KAAK,EAAE,iEAAiE;AACxE,4BAAA,IAAI,EAAE,uBAAuB;AAC7B,4BAAA,OAAO,EAAE;AACP,gCAAA,IAAI,EAAE,qCAAqC;AAC3C,gCAAA,OAAO,EAAE;AACP,oCAAA,QAAQ,EAAE,gCAAgC;AAC1C,oCAAA,KAAK,EAAE,0BAA0B;AAClC,iCAAA;AACF,6BAAA;AACD,4BAAA,QAAQ,EAAE,SAAS;AACnB,4BAAA,IAAI,EAAE,MAAM;4BACZ,KAAK,EAAE,qBAAqB,CAAC,UAAU;AACvC,4BAAA,OAAO,EAAE,IAAI;AACd,yBAAA;AACF,qBAAA;oBACD,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC;AAC/E,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AACH;AAEA;;AC9MA;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-report-management-client-contracts-entities-report-generation-request.mjs","sources":["../../../../libs/modules/report-management/contracts/src/root-config.ts","../../../../libs/modules/report-management/contracts/src/report-generation.types.ts","../../../../libs/modules/report-management/contracts/src/entities/report-generation-request/report-generation-request.entity.ts","../../../../libs/modules/report-management/contracts/src/acorex-platform-module-report-management-client-contracts-entities-report-generation-request.ts"],"sourcesContent":["const config = {\n i18n: 'report-management',\n module: 'ReportManagement',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'report-management',\n name: config.module,\n title: `@${config.i18n}:module.title`,\n icon: 'fa-light fa-chart-bar',\n },\n entities: {\n dataSet: {\n name: 'DataSet',\n title: `t(\"dataSet\", { scope: \"${config.i18n}\" })`,\n titlePlural: `t(\"dataSetPlural\", { scope: \"${config.i18n}\" })`,\n icon: 'fa-light fa-default',\n },\n category: {\n name: 'ReportCategory',\n fullName: `${config.module}.ReportCategory`,\n title: `@${config.i18n}:reports.entities.category.title`,\n titlePlural: `@${config.i18n}:reports.entities.category.plural`,\n icon: 'fa-light fa-folder',\n },\n report: {\n name: 'Report',\n fullName: `${config.module}.Report`,\n title: `@${config.i18n}:reports.entities.report.title`,\n titlePlural: `@${config.i18n}:reports.entities.report.plural`,\n icon: 'fa-light fa-file-chart-pie',\n },\n reportGenerationRequest: {\n name: 'ReportGenerationRequest',\n fullName: `${config.module}.ReportGenerationRequest`,\n title: `@${config.i18n}:report-generation.entities.request.title`,\n titlePlural: `@${config.i18n}:report-generation.entities.request.plural`,\n icon: 'fa-light fa-file-export',\n },\n },\n} as const;\n","//#region ----- Imports -----\n\nimport type { AXPMultiLanguageString, AXPRuntimeQueryResult } from '@acorex-platform/framework-shared/core';\nimport type { AXPEntityModel } from '@acorex-platform/framework-shared/entity';\nimport type {\n AXPReportArtifactKind,\n AXPReportLayoutDefinition,\n} from './report.types';\n\n//#endregion\n\n//#region ----- Types -----\n\nexport type AXPReportGenerationStatus = 'queued' | 'running' | 'completed' | 'failed' | 'cancelled';\n\nexport type AXPReportGenerationTrigger = 'manual' | 'schedule' | 'export';\n\nexport interface AXPReportGenerationArtifact {\n kind: AXPReportArtifactKind;\n fileId?: string;\n contentType?: string;\n fileName?: string;\n rowCount?: number;\n byteLength?: number;\n lastError?: string;\n}\n\nexport const REPORT_GENERATION_NOTIFICATION_DEFINITION_KEY = 'ReportManagement:ReportGeneration';\n\nexport const REPORT_GENERATION_OPEN_FROZEN_COMMAND = 'ReportManagement.Report:OpenViewer';\n\n/** In-app inbox correlation id for a completed report generation run. */\nexport function buildReportGenerationNotificationCorrelationId(runId: string): string {\n const normalized = runId.trim();\n return normalized ? `report-generation:${normalized}` : 'report-generation:';\n}\n\nexport interface AXMReportGenerationRequest extends AXPEntityModel<string> {\n reportId: string;\n layoutId?: string;\n layoutIds?: string[];\n parameters?: Record<string, unknown>;\n formats: AXPReportArtifactKind[];\n trigger: AXPReportGenerationTrigger;\n status: AXPReportGenerationStatus;\n requestedBy?: string;\n jobId?: string;\n scheduleId?: string;\n scheduledOccurrence?: string;\n startedAt?: string;\n completedAt?: string;\n durationMs?: number;\n lastError?: string;\n expiresAt?: string;\n sourceRequestId?: string;\n /** When true, skip in-app notification because the report viewer is watching this run inline. */\n suppressNotificationOnComplete?: boolean;\n artifacts: AXPReportGenerationArtifact[];\n}\n\nexport interface AXPReportViewerFreeze {\n version: 1;\n reportId: string;\n generatedAt: string;\n parameters: Record<string, unknown>;\n definition?: {\n title: AXPMultiLanguageString;\n defaultLayoutId: string;\n layouts: AXPReportLayoutDefinition[];\n };\n dataSources: Array<{\n layoutId: string;\n queryName: string;\n result: AXPRuntimeQueryResult;\n }>;\n}\n\nexport interface AXPReportGenerationCreateInput {\n reportId: string;\n layoutId?: string;\n layoutIds?: string[];\n parameters?: Record<string, unknown>;\n formats?: AXPReportArtifactKind[];\n trigger?: AXPReportGenerationTrigger;\n sourceRequestId?: string;\n scheduleId?: string;\n scheduledOccurrence?: string;\n /** Set when the report viewer will poll and show the result inline. */\n suppressNotificationOnComplete?: boolean;\n}\n\nexport interface AXPReportGenerationReleaseInlineWatchInput {\n id: string;\n}\n\nexport interface AXPReportGenerationCreateResult {\n id: string;\n jobId?: string;\n status: AXPReportGenerationStatus;\n /** True when an existing run was returned instead of creating a new row. */\n deduplicated?: boolean;\n}\n\nexport interface AXPReportGenerationExecuteInput {\n reportRequestId: string;\n}\n\nexport interface AXPReportGenerationExecuteResult {\n reportRequestId: string;\n fileIds: string[];\n rowCount?: number;\n}\n\nexport interface AXPReportGenerationGetInput {\n id: string;\n}\n\nexport interface AXPReportGenerationGetViewerFreezeInput {\n id: string;\n}\n\nexport interface AXPReportGenerationListMineInput {\n skip?: number;\n take?: number;\n}\n\n//#endregion\n","import { AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, AXPEntityCommandScope, createAllQueryView } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\nimport { REPORT_GENERATION_OPEN_FROZEN_COMMAND } from '../../report-generation.types';\n\n//#region ---- Report generation request entity factory ----\n\nconst I18N = '@report-management:report-generation.entities.request';\n\nconst STATUS_ITEMS = [\n { name: 'queued', title: `${I18N}.statuses.queued` },\n { name: 'running', title: `${I18N}.statuses.running` },\n { name: 'completed', title: `${I18N}.statuses.completed` },\n { name: 'failed', title: `${I18N}.statuses.failed` },\n { name: 'cancelled', title: `${I18N}.statuses.cancelled` },\n];\n\nconst TRIGGER_ITEMS = [\n { name: 'manual', title: `${I18N}.triggers.manual` },\n { name: 'schedule', title: `${I18N}.triggers.schedule` },\n { name: 'export', title: `${I18N}.triggers.export` },\n];\n\nexport async function reportGenerationRequestEntityFactory(): Promise<AXPEntity | null> {\n return {\n module: RootConfig.module.name,\n name: RootConfig.entities.reportGenerationRequest.name,\n title: RootConfig.entities.reportGenerationRequest.title,\n icon: RootConfig.entities.reportGenerationRequest.icon,\n searchTags: [\n 'report-generation',\n 'background-report',\n 'report-export',\n 'report-job',\n 'async-report',\n 'scheduled-report',\n 'report-queue',\n 'generation-request',\n 'تولید گزارش',\n 'گزارش پسزمینه',\n 'اجرای تولید گزارش',\n 'خروجی گزارش',\n ],\n formats: {\n individual: RootConfig.entities.reportGenerationRequest.title,\n plural: RootConfig.entities.reportGenerationRequest.titlePlural,\n searchResult: {\n title: '{{ reportId }}',\n description: '{{ status }}',\n },\n },\n groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],\n properties: [\n {\n name: 'reportId',\n title: `${I18N}.fields.report-id`,\n groupId: 'basic-info',\n schema: { dataType: 'reference', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n options: {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n },\n },\n {\n name: 'layoutId',\n title: `${I18N}.fields.layout-id`,\n groupId: 'basic-info',\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'status',\n title: `${I18N}.fields.status`,\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.select, options: { items: STATUS_ITEMS } },\n },\n options: {\n filter: { inline: { enabled: true }, advance: { enabled: true } },\n sort: { enabled: true },\n },\n },\n {\n name: 'trigger',\n title: `${I18N}.fields.trigger`,\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.select, options: { items: TRIGGER_ITEMS } },\n },\n options: { filter: { advance: { enabled: true } } },\n },\n {\n name: 'requestedBy',\n title: `${I18N}.fields.requested-by`,\n groupId: 'basic-info',\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n options: { filter: { advance: { enabled: true } } },\n },\n {\n name: 'jobId',\n title: `${I18N}.fields.job-id`,\n groupId: 'basic-info',\n schema: { dataType: 'reference', readonly: true, interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'startedAt',\n title: `${I18N}.fields.started-at`,\n groupId: 'basic-info',\n schema: {\n dataType: 'datetime',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },\n },\n options: { sort: { enabled: true } },\n },\n {\n name: 'completedAt',\n title: `${I18N}.fields.completed-at`,\n groupId: 'basic-info',\n schema: {\n dataType: 'datetime',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },\n },\n options: { sort: { enabled: true } },\n },\n {\n name: 'durationMs',\n title: `${I18N}.fields.duration-ms`,\n groupId: 'basic-info',\n schema: { dataType: 'number', readonly: true, interface: { type: AXPWidgetsCatalog.number } },\n },\n {\n name: 'lastError',\n title: `${I18N}.fields.last-error`,\n groupId: 'basic-info',\n schema: { dataType: 'string', readonly: true, interface: { type: AXPWidgetsCatalog.largeText } },\n },\n {\n name: 'expiresAt',\n title: `${I18N}.fields.expires-at`,\n groupId: 'basic-info',\n schema: {\n dataType: 'datetime',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },\n },\n },\n {\n name: 'parameters',\n title: `${I18N}.fields.parameters`,\n groupId: 'basic-info',\n schema: {\n dataType: 'object',\n readonly: true,\n interface: { type: AXPWidgetsList.Advanced.JsonViewer, options: { disabled: true } },\n },\n },\n {\n name: 'artifacts',\n title: `${I18N}.fields.artifacts`,\n groupId: 'basic-info',\n schema: {\n dataType: 'object',\n readonly: true,\n interface: { type: AXPWidgetsList.Advanced.JsonViewer, options: { disabled: true } },\n },\n },\n ],\n columns: [\n { name: 'reportId' },\n { name: 'status' },\n { name: 'trigger' },\n { name: 'startedAt' },\n { name: 'completedAt' },\n ],\n interfaces: {\n master: {\n list: {\n actions: [\n {\n title: '@report-management:report-generation.actions.open-frozen-viewer',\n icon: 'fa-light fa-snowflake',\n command: {\n name: REPORT_GENERATION_OPEN_FROZEN_COMMAND,\n options: {\n reportId: '{{ context.eval(\"reportId\") }}',\n runId: '{{ context.eval(\"id\") }}',\n },\n },\n priority: 'primary',\n type: 'view',\n scope: AXPEntityCommandScope.Individual,\n default: true,\n },\n ],\n views: [createAllQueryView({ sorts: [{ name: 'completedAt', dir: 'desc' }] })],\n },\n },\n },\n };\n}\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.report-generation-request';\n"],"names":[],"mappings":";;;AAAA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,mBAAmB;AACzB,IAAA,MAAM,EAAE,kBAAkB;CAC3B;AAEM,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;AACN,QAAA,KAAK,EAAE,mBAAmB;QAC1B,IAAI,EAAE,MAAM,CAAC,MAAM;AACnB,Q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,SAAS,EAAE;YACnB,EAAE,IAAI,EAAE,WAAW,EAAE;YACrB,EAAE,IAAI,EAAE,aAAa,EAAE;AACxB,SAAA;AACD,QAAA,UAAU,EAAE;AACV,YAAA,MAAM,EAAE;AACN,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE;AACP,wBAAA;AACE,4BAAA,KAAK,EAAE,iEAAiE;AACxE,4BAAA,IAAI,EAAE,uBAAuB;AAC7B,4BAAA,OAAO,EAAE;AACP,gCAAA,IAAI,EAAE,qCAAqC;AAC3C,gCAAA,OAAO,EAAE;AACP,oCAAA,QAAQ,EAAE,gCAAgC;AAC1C,oCAAA,KAAK,EAAE,0BAA0B;AAClC,iCAAA;AACF,6BAAA;AACD,4BAAA,QAAQ,EAAE,SAAS;AACnB,4BAAA,IAAI,EAAE,MAAM;4BACZ,KAAK,EAAE,qBAAqB,CAAC,UAAU;AACvC,4BAAA,OAAO,EAAE,IAAI;AACd,yBAAA;AACF,qBAAA;oBACD,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC;AAC/E,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AACH;AAEA;;AC9MA;;AAEG;;"}
|
package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-report.mjs
CHANGED
|
@@ -1,5 +1,41 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { AXPEntityCommandScope, createAllQueryView, entityMasterCreateAction, entityMasterViewAction } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Insights & Reporting capabilities used by this module.
|
|
6
|
+
* Domain capability keys for this module. Root groups live in `AXPCommonPermissionGroupKeys` (common contracts).
|
|
7
|
+
*/
|
|
8
|
+
const AXPInsightsReportingPermissionKeys = {
|
|
9
|
+
Access: 'InsightsReporting:Permission:Access',
|
|
10
|
+
MaintainReports: 'InsightsReporting:Permission:MaintainReports',
|
|
11
|
+
MaintainData: 'InsightsReporting:Permission:MaintainData',
|
|
12
|
+
ViewActivityInsight: 'InsightsReporting:Permission:ViewActivityInsight',
|
|
13
|
+
ManageActivityInsight: 'InsightsReporting:Permission:ManageActivityInsight',
|
|
14
|
+
Setup: 'InsightsReporting:Permission:Setup',
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated Prefer {@link AXPInsightsReportingPermissionKeys}.
|
|
18
|
+
* Legacy nested shape kept so existing imports compile during migration.
|
|
19
|
+
*/
|
|
20
|
+
const AXMPermissionsKeys = {
|
|
21
|
+
ReportManagement: {
|
|
22
|
+
Management: AXPInsightsReportingPermissionKeys.MaintainReports,
|
|
23
|
+
Report: {
|
|
24
|
+
Management: AXPInsightsReportingPermissionKeys.MaintainReports,
|
|
25
|
+
View: AXPInsightsReportingPermissionKeys.MaintainReports,
|
|
26
|
+
Create: AXPInsightsReportingPermissionKeys.MaintainReports,
|
|
27
|
+
Update: AXPInsightsReportingPermissionKeys.MaintainReports,
|
|
28
|
+
Delete: AXPInsightsReportingPermissionKeys.MaintainReports,
|
|
29
|
+
},
|
|
30
|
+
Category: {
|
|
31
|
+
Management: AXPInsightsReportingPermissionKeys.Setup,
|
|
32
|
+
View: AXPInsightsReportingPermissionKeys.Setup,
|
|
33
|
+
Create: AXPInsightsReportingPermissionKeys.Setup,
|
|
34
|
+
Update: AXPInsightsReportingPermissionKeys.Setup,
|
|
35
|
+
Delete: AXPInsightsReportingPermissionKeys.Setup,
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
};
|
|
3
39
|
|
|
4
40
|
const config = {
|
|
5
41
|
i18n: 'report-management',
|
|
@@ -34,20 +70,6 @@ const RootConfig = {
|
|
|
34
70
|
titlePlural: `@${config.i18n}:reports.entities.report.plural`,
|
|
35
71
|
icon: 'fa-light fa-file-chart-pie',
|
|
36
72
|
},
|
|
37
|
-
querySnapshotPolicy: {
|
|
38
|
-
name: 'QuerySnapshotPolicy',
|
|
39
|
-
fullName: `${config.module}.QuerySnapshotPolicy`,
|
|
40
|
-
title: `@${config.i18n}:query-snapshots.entities.policy.title`,
|
|
41
|
-
titlePlural: `@${config.i18n}:query-snapshots.entities.policy.plural`,
|
|
42
|
-
icon: 'fa-light fa-sliders',
|
|
43
|
-
},
|
|
44
|
-
querySnapshot: {
|
|
45
|
-
name: 'QuerySnapshot',
|
|
46
|
-
fullName: `${config.module}.QuerySnapshot`,
|
|
47
|
-
title: `@${config.i18n}:query-snapshots.entities.snapshot.title`,
|
|
48
|
-
titlePlural: `@${config.i18n}:query-snapshots.entities.snapshot.plural`,
|
|
49
|
-
icon: 'fa-light fa-camera',
|
|
50
|
-
},
|
|
51
73
|
reportGenerationRequest: {
|
|
52
74
|
name: 'ReportGenerationRequest',
|
|
53
75
|
fullName: `${config.module}.ReportGenerationRequest`,
|
|
@@ -59,7 +81,12 @@ const RootConfig = {
|
|
|
59
81
|
};
|
|
60
82
|
|
|
61
83
|
//#region ---- Report definition entity factory ----
|
|
84
|
+
const maintainReports = [AXPInsightsReportingPermissionKeys.MaintainReports];
|
|
62
85
|
async function reportEntityFactory() {
|
|
86
|
+
const basicFields = [
|
|
87
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },
|
|
88
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
|
|
89
|
+
];
|
|
63
90
|
return {
|
|
64
91
|
module: RootConfig.module.name,
|
|
65
92
|
name: RootConfig.entities.report.name,
|
|
@@ -80,6 +107,70 @@ async function reportEntityFactory() {
|
|
|
80
107
|
'مدیریت گزارش',
|
|
81
108
|
],
|
|
82
109
|
plugins: [{ name: 'category', options: { readonly: true } }],
|
|
110
|
+
pages: [
|
|
111
|
+
{
|
|
112
|
+
componentKey: 'report-definition-filters',
|
|
113
|
+
field: 'filters',
|
|
114
|
+
title: '@report-management:reports.entities.report.filter-editor.page-title',
|
|
115
|
+
description: '@report-management:reports.entities.report.filter-editor.page-description',
|
|
116
|
+
icon: 'fa-light fa-filter',
|
|
117
|
+
layout: { order: 5, position: 'after' },
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
componentKey: 'report-definition-layout-table',
|
|
121
|
+
field: 'table',
|
|
122
|
+
title: '@report-management:report-viewer.layouts.table.title',
|
|
123
|
+
description: '@report-management:reports.entities.report.layout-editor.page-description',
|
|
124
|
+
icon: 'fa-light fa-table',
|
|
125
|
+
options: { layoutKey: 'table' },
|
|
126
|
+
layout: { order: 10, position: 'after' },
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
componentKey: 'report-definition-layout-bar',
|
|
130
|
+
field: 'bar',
|
|
131
|
+
title: '@report-management:report-viewer.layouts.bar-chart.title',
|
|
132
|
+
description: '@report-management:reports.entities.report.layout-editor.page-description',
|
|
133
|
+
icon: 'fa-light fa-chart-bar',
|
|
134
|
+
options: { layoutKey: 'bar' },
|
|
135
|
+
layout: { order: 20, position: 'after' },
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
componentKey: 'report-definition-layout-line',
|
|
139
|
+
field: 'line',
|
|
140
|
+
title: '@report-management:report-viewer.layouts.line-chart.title',
|
|
141
|
+
description: '@report-management:reports.entities.report.layout-editor.page-description',
|
|
142
|
+
icon: 'fa-light fa-chart-line',
|
|
143
|
+
options: { layoutKey: 'line' },
|
|
144
|
+
layout: { order: 30, position: 'after' },
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
componentKey: 'report-definition-layout-doughnut',
|
|
148
|
+
field: 'doughnut',
|
|
149
|
+
title: '@report-management:report-viewer.layouts.doughnut-chart.title',
|
|
150
|
+
description: '@report-management:reports.entities.report.layout-editor.page-description',
|
|
151
|
+
icon: 'fa-light fa-chart-pie',
|
|
152
|
+
options: { layoutKey: 'doughnut' },
|
|
153
|
+
layout: { order: 40, position: 'after' },
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
componentKey: 'report-definition-layout-pie',
|
|
157
|
+
field: 'pie',
|
|
158
|
+
title: '@report-management:report-viewer.layouts.pie-chart.title',
|
|
159
|
+
description: '@report-management:reports.entities.report.layout-editor.page-description',
|
|
160
|
+
icon: 'fa-light fa-chart-pie',
|
|
161
|
+
options: { layoutKey: 'pie' },
|
|
162
|
+
layout: { order: 50, position: 'after' },
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
componentKey: 'report-definition-layout-pdf',
|
|
166
|
+
field: 'pdf',
|
|
167
|
+
title: '@report-management:report-viewer.layouts.pdf.title',
|
|
168
|
+
description: '@report-management:reports.entities.report.layout-editor.page-description',
|
|
169
|
+
icon: 'fa-light fa-file-pdf',
|
|
170
|
+
options: { layoutKey: 'pdf' },
|
|
171
|
+
layout: { order: 60, position: 'after' },
|
|
172
|
+
},
|
|
173
|
+
],
|
|
83
174
|
formats: {
|
|
84
175
|
individual: RootConfig.entities.report.title,
|
|
85
176
|
plural: RootConfig.entities.report.titlePlural,
|
|
@@ -98,7 +189,16 @@ async function reportEntityFactory() {
|
|
|
98
189
|
sort: { enabled: true },
|
|
99
190
|
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
100
191
|
},
|
|
101
|
-
schema: {
|
|
192
|
+
schema: {
|
|
193
|
+
dataType: 'string',
|
|
194
|
+
interface: {
|
|
195
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
196
|
+
options: {
|
|
197
|
+
multiLanguage: true,
|
|
198
|
+
hasClearButton: true,
|
|
199
|
+
},
|
|
200
|
+
},
|
|
201
|
+
},
|
|
102
202
|
validations: [{ rule: 'required' }],
|
|
103
203
|
},
|
|
104
204
|
{
|
|
@@ -109,52 +209,99 @@ async function reportEntityFactory() {
|
|
|
109
209
|
sort: { enabled: true },
|
|
110
210
|
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
111
211
|
},
|
|
112
|
-
schema: {
|
|
212
|
+
schema: {
|
|
213
|
+
dataType: 'string',
|
|
214
|
+
interface: {
|
|
215
|
+
type: AXPWidgetsList.Editors.LargeTextBox,
|
|
216
|
+
options: {
|
|
217
|
+
multiLanguage: true,
|
|
218
|
+
rows: 3,
|
|
219
|
+
},
|
|
220
|
+
},
|
|
221
|
+
},
|
|
113
222
|
},
|
|
114
223
|
{
|
|
115
224
|
name: 'parameterGroups',
|
|
116
225
|
title: '@report-management:reports.entities.report.fields.parameter-groups',
|
|
117
226
|
groupId: 'basic-info',
|
|
118
|
-
schema: { dataType: 'object', interface: { type:
|
|
227
|
+
schema: { dataType: 'object', visible: false, defaultValue: [], interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
name: 'filterQuery',
|
|
231
|
+
title: '@report-management:reports.entities.report.fields.parameter-groups',
|
|
232
|
+
groupId: 'basic-info',
|
|
233
|
+
schema: { dataType: 'object', visible: false, interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
119
234
|
},
|
|
120
235
|
{
|
|
121
236
|
name: 'layouts',
|
|
122
237
|
title: '@report-management:reports.entities.report.fields.layouts',
|
|
123
238
|
groupId: 'basic-info',
|
|
124
|
-
schema: { dataType: 'object', interface: { type:
|
|
239
|
+
schema: { dataType: 'object', visible: false, defaultValue: [], interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
125
240
|
},
|
|
126
241
|
{
|
|
127
242
|
name: 'defaultLayoutId',
|
|
128
243
|
title: '@report-management:reports.entities.report.fields.default-layout-id',
|
|
129
244
|
groupId: 'basic-info',
|
|
130
|
-
schema: { dataType: 'string', interface: { type:
|
|
245
|
+
schema: { dataType: 'string', visible: false, defaultValue: '', interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
131
246
|
},
|
|
132
247
|
{
|
|
133
248
|
name: 'permissions',
|
|
134
249
|
title: '@general:terms.security.permissions',
|
|
135
250
|
groupId: 'basic-info',
|
|
136
|
-
schema: { dataType: 'object', interface: { type:
|
|
251
|
+
schema: { dataType: 'object', visible: false, defaultValue: [], interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
137
252
|
},
|
|
138
253
|
{
|
|
139
254
|
name: 'entities',
|
|
140
255
|
title: '@report-management:reports.entities.report.fields.entities',
|
|
141
256
|
groupId: 'basic-info',
|
|
142
|
-
schema: { dataType: 'object', interface: { type:
|
|
257
|
+
schema: { dataType: 'object', visible: false, defaultValue: [], interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
143
258
|
},
|
|
144
259
|
{
|
|
145
260
|
name: 'generation',
|
|
146
261
|
title: '@report-management:reports.entities.report.fields.generation',
|
|
147
262
|
groupId: 'basic-info',
|
|
148
|
-
schema: { dataType: 'object', interface: { type:
|
|
263
|
+
schema: { dataType: 'object', visible: false, interface: { type: AXPWidgetsList.Editors.TextBox } },
|
|
149
264
|
},
|
|
150
265
|
],
|
|
151
266
|
columns: [{ name: 'title' }, { name: 'description' }],
|
|
152
267
|
interfaces: {
|
|
153
268
|
master: {
|
|
269
|
+
create: {
|
|
270
|
+
sections: [{ id: 'basic-info' }],
|
|
271
|
+
properties: basicFields,
|
|
272
|
+
},
|
|
273
|
+
update: {
|
|
274
|
+
sections: [{ id: 'basic-info' }],
|
|
275
|
+
properties: basicFields,
|
|
276
|
+
},
|
|
277
|
+
single: {
|
|
278
|
+
title: '{{ title }}',
|
|
279
|
+
sections: [{ id: 'basic-info' }],
|
|
280
|
+
properties: basicFields,
|
|
281
|
+
actions: [
|
|
282
|
+
{
|
|
283
|
+
title: '@report-management:reports.entities.report.actions.run',
|
|
284
|
+
icon: 'fa-light fa-play',
|
|
285
|
+
command: {
|
|
286
|
+
name: 'ReportManagement.Report:OpenViewer',
|
|
287
|
+
options: {
|
|
288
|
+
reportId: '{{ context.eval("id") }}',
|
|
289
|
+
},
|
|
290
|
+
},
|
|
291
|
+
priority: 'primary',
|
|
292
|
+
type: 'view',
|
|
293
|
+
scope: AXPEntityCommandScope.Individual,
|
|
294
|
+
},
|
|
295
|
+
],
|
|
296
|
+
},
|
|
154
297
|
list: {
|
|
155
298
|
actions: [
|
|
156
299
|
{
|
|
157
|
-
|
|
300
|
+
...entityMasterCreateAction(),
|
|
301
|
+
permissions: maintainReports,
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
title: '@report-management:reports.entities.report.actions.run',
|
|
158
305
|
icon: 'fa-light fa-play',
|
|
159
306
|
command: {
|
|
160
307
|
name: 'ReportManagement.Report:OpenViewer',
|
|
@@ -167,6 +314,13 @@ async function reportEntityFactory() {
|
|
|
167
314
|
scope: AXPEntityCommandScope.Individual,
|
|
168
315
|
default: true,
|
|
169
316
|
},
|
|
317
|
+
{
|
|
318
|
+
...entityMasterViewAction(),
|
|
319
|
+
icon: 'fa-light fa-eye',
|
|
320
|
+
priority: 'secondary',
|
|
321
|
+
default: false,
|
|
322
|
+
permissions: maintainReports,
|
|
323
|
+
},
|
|
170
324
|
],
|
|
171
325
|
views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],
|
|
172
326
|
},
|
package/fesm2022/acorex-platform-module-report-management-client-contracts-entities-report.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-report-management-client-contracts-entities-report.mjs","sources":["../../../../libs/modules/report-management/contracts/src/root-config.ts","../../../../libs/modules/report-management/contracts/src/entities/report/report.entity.ts","../../../../libs/modules/report-management/contracts/src/acorex-platform-module-report-management-client-contracts-entities-report.ts"],"sourcesContent":["const config = {\n i18n: 'report-management',\n module: 'ReportManagement',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'report-management',\n name: config.module,\n title: `@${config.i18n}:module.title`,\n icon: 'fa-light fa-chart-bar',\n },\n entities: {\n dataSet: {\n name: 'DataSet',\n title: `t(\"dataSet\", { scope: \"${config.i18n}\" })`,\n titlePlural: `t(\"dataSetPlural\", { scope: \"${config.i18n}\" })`,\n icon: 'fa-light fa-default',\n },\n category: {\n name: 'ReportCategory',\n fullName: `${config.module}.ReportCategory`,\n title: `@${config.i18n}:reports.entities.category.title`,\n titlePlural: `@${config.i18n}:reports.entities.category.plural`,\n icon: 'fa-light fa-folder',\n },\n report: {\n name: 'Report',\n fullName: `${config.module}.Report`,\n title: `@${config.i18n}:reports.entities.report.title`,\n titlePlural: `@${config.i18n}:reports.entities.report.plural`,\n icon: 'fa-light fa-file-chart-pie',\n },\n querySnapshotPolicy: {\n name: 'QuerySnapshotPolicy',\n fullName: `${config.module}.QuerySnapshotPolicy`,\n title: `@${config.i18n}:query-snapshots.entities.policy.title`,\n titlePlural: `@${config.i18n}:query-snapshots.entities.policy.plural`,\n icon: 'fa-light fa-sliders',\n },\n querySnapshot: {\n name: 'QuerySnapshot',\n fullName: `${config.module}.QuerySnapshot`,\n title: `@${config.i18n}:query-snapshots.entities.snapshot.title`,\n titlePlural: `@${config.i18n}:query-snapshots.entities.snapshot.plural`,\n icon: 'fa-light fa-camera',\n },\n reportGenerationRequest: {\n name: 'ReportGenerationRequest',\n fullName: `${config.module}.ReportGenerationRequest`,\n title: `@${config.i18n}:report-generation.entities.request.title`,\n titlePlural: `@${config.i18n}:report-generation.entities.request.plural`,\n icon: 'fa-light fa-file-export',\n },\n },\n} as const;\n","import {\n AXPEntity,\n AXPEntityCommandScope,\n createAllQueryView,\n} from '@acorex-platform/framework-shared/entity';\nimport { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport { RootConfig } from '../../root-config';\n\n//#region ---- Report definition entity factory ----\n\nexport async function reportEntityFactory(): Promise<AXPEntity | null> {\n return {\n module: RootConfig.module.name,\n name: RootConfig.entities.report.name,\n title: RootConfig.entities.report.title,\n icon: RootConfig.entities.report.icon,\n searchTags: [\n 'report',\n 'report-definition',\n 'business-report',\n 'report-template',\n 'analytics',\n 'dashboard-report',\n 'report-layout',\n 'data-report',\n 'گزارش',\n 'گزارشها',\n 'قالب گزارش',\n 'مدیریت گزارش',\n ],\n plugins: [{ name: 'category', options: { readonly: true } }],\n formats: {\n individual: RootConfig.entities.report.title,\n plural: RootConfig.entities.report.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ description }}',\n },\n },\n groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],\n properties: [\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.largeText } },\n },\n {\n name: 'parameterGroups',\n title: '@report-management:reports.entities.report.fields.parameter-groups',\n groupId: 'basic-info',\n schema: { dataType: 'object', interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'layouts',\n title: '@report-management:reports.entities.report.fields.layouts',\n groupId: 'basic-info',\n schema: { dataType: 'object', interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'defaultLayoutId',\n title: '@report-management:reports.entities.report.fields.default-layout-id',\n groupId: 'basic-info',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'permissions',\n title: '@general:terms.security.permissions',\n groupId: 'basic-info',\n schema: { dataType: 'object', interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'entities',\n title: '@report-management:reports.entities.report.fields.entities',\n groupId: 'basic-info',\n schema: { dataType: 'object', interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'generation',\n title: '@report-management:reports.entities.report.fields.generation',\n groupId: 'basic-info',\n schema: { dataType: 'object', interface: { type: AXPWidgetsCatalog.text } },\n },\n ],\n columns: [{ name: 'title' }, { name: 'description' }],\n interfaces: {\n master: {\n list: {\n actions: [\n {\n title: '@general:actions.open.title',\n icon: 'fa-light fa-play',\n command: {\n name: 'ReportManagement.Report:OpenViewer',\n options: {\n reportId: '{{ context.eval(\"id\") }}',\n },\n },\n priority: 'primary',\n type: 'view',\n scope: AXPEntityCommandScope.Individual,\n default: true,\n },\n ],\n views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],\n },\n },\n },\n };\n}\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.report';\n"],"names":[],"mappings":";;;AAAA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,mBAAmB;AACzB,IAAA,MAAM,EAAE,kBAAkB;CAC3B;AAEM,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;AACN,QAAA,KAAK,EAAE,mBAAmB;QAC1B,IAAI,EAAE,MAAM,CAAC,MAAM;AACnB,QAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,aAAA,CAAe;AACrC,QAAA,IAAI,EAAE,uBAAuB;AAC9B,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,OAAO,EAAE;AACP,YAAA,IAAI,EAAE,SAAS;AACf,YAAA,KAAK,EAAE,CAAA,uBAAA,EAA0B,MAAM,CAAC,IAAI,CAAA,IAAA,CAAM;AAClD,YAAA,WAAW,EAAE,CAAA,6BAAA,EAAgC,MAAM,CAAC,IAAI,CAAA,IAAA,CAAM;AAC9D,YAAA,IAAI,EAAE,qBAAqB;AAC5B,SAAA;AACD,QAAA,QAAQ,EAAE;AACR,YAAA,IAAI,EAAE,gBAAgB;AACtB,YAAA,QAAQ,EAAE,CAAA,EAAG,MAAM,CAAC,MAAM,CAAA,eAAA,CAAiB;AAC3C,YAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,gCAAA,CAAkC;AACxD,YAAA,WAAW,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,iCAAA,CAAmC;AAC/D,YAAA,IAAI,EAAE,oB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;AACV,YAAA,MAAM,EAAE;AACN,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE;AACP,wBAAA;AACE,4BAAA,KAAK,EAAE,6BAA6B;AACpC,4BAAA,IAAI,EAAE,kBAAkB;AACxB,4BAAA,OAAO,EAAE;AACP,gCAAA,IAAI,EAAE,oCAAoC;AAC1C,gCAAA,OAAO,EAAE;AACP,oCAAA,QAAQ,EAAE,0BAA0B;AACrC,iCAAA;AACF,6BAAA;AACD,4BAAA,QAAQ,EAAE,SAAS;AACnB,4BAAA,IAAI,EAAE,MAAM;4BACZ,KAAK,EAAE,qBAAqB,CAAC,UAAU;AACvC,4BAAA,OAAO,EAAE,IAAI;AACd,yBAAA;AACF,qBAAA;oBACD,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;AACxE,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AACH;AAEA;;AC9HA;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-report-management-client-contracts-entities-report.mjs","sources":["../../../../libs/modules/report-management/contracts/src/permission.keys.ts","../../../../libs/modules/report-management/contracts/src/root-config.ts","../../../../libs/modules/report-management/contracts/src/entities/report/report.entity.ts","../../../../libs/modules/report-management/contracts/src/acorex-platform-module-report-management-client-contracts-entities-report.ts"],"sourcesContent":["/**\n * Insights & Reporting capabilities used by this module.\n * Domain capability keys for this module. Root groups live in `AXPCommonPermissionGroupKeys` (common contracts).\n */\nexport const AXPInsightsReportingPermissionKeys = {\n Access: 'InsightsReporting:Permission:Access',\n MaintainReports: 'InsightsReporting:Permission:MaintainReports',\n MaintainData: 'InsightsReporting:Permission:MaintainData',\n ViewActivityInsight: 'InsightsReporting:Permission:ViewActivityInsight',\n ManageActivityInsight: 'InsightsReporting:Permission:ManageActivityInsight',\n Setup: 'InsightsReporting:Permission:Setup',\n} as const;\n\n/**\n * @deprecated Prefer {@link AXPInsightsReportingPermissionKeys}.\n * Legacy nested shape kept so existing imports compile during migration.\n */\nexport const AXMPermissionsKeys = {\n ReportManagement: {\n Management: AXPInsightsReportingPermissionKeys.MaintainReports,\n Report: {\n Management: AXPInsightsReportingPermissionKeys.MaintainReports,\n View: AXPInsightsReportingPermissionKeys.MaintainReports,\n Create: AXPInsightsReportingPermissionKeys.MaintainReports,\n Update: AXPInsightsReportingPermissionKeys.MaintainReports,\n Delete: AXPInsightsReportingPermissionKeys.MaintainReports,\n },\n Category: {\n Management: AXPInsightsReportingPermissionKeys.Setup,\n View: AXPInsightsReportingPermissionKeys.Setup,\n Create: AXPInsightsReportingPermissionKeys.Setup,\n Update: AXPInsightsReportingPermissionKeys.Setup,\n Delete: AXPInsightsReportingPermissionKeys.Setup,\n },\n },\n} as const;\n","const config = {\n i18n: 'report-management',\n module: 'ReportManagement',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'report-management',\n name: config.module,\n title: `@${config.i18n}:module.title`,\n icon: 'fa-light fa-chart-bar',\n },\n entities: {\n dataSet: {\n name: 'DataSet',\n title: `t(\"dataSet\", { scope: \"${config.i18n}\" })`,\n titlePlural: `t(\"dataSetPlural\", { scope: \"${config.i18n}\" })`,\n icon: 'fa-light fa-default',\n },\n category: {\n name: 'ReportCategory',\n fullName: `${config.module}.ReportCategory`,\n title: `@${config.i18n}:reports.entities.category.title`,\n titlePlural: `@${config.i18n}:reports.entities.category.plural`,\n icon: 'fa-light fa-folder',\n },\n report: {\n name: 'Report',\n fullName: `${config.module}.Report`,\n title: `@${config.i18n}:reports.entities.report.title`,\n titlePlural: `@${config.i18n}:reports.entities.report.plural`,\n icon: 'fa-light fa-file-chart-pie',\n },\n reportGenerationRequest: {\n name: 'ReportGenerationRequest',\n fullName: `${config.module}.ReportGenerationRequest`,\n title: `@${config.i18n}:report-generation.entities.request.title`,\n titlePlural: `@${config.i18n}:report-generation.entities.request.plural`,\n icon: 'fa-light fa-file-export',\n },\n },\n} as const;\n","import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport {\n AXPEntity,\n AXPEntityCommandScope,\n createAllQueryView,\n entityMasterCreateAction,\n entityMasterViewAction,\n} from '@acorex-platform/framework-shared/entity';\nimport { AXPInsightsReportingPermissionKeys } from '../../permission.keys';\nimport { RootConfig } from '../../root-config';\n\n//#region ---- Report definition entity factory ----\n\nconst maintainReports = [AXPInsightsReportingPermissionKeys.MaintainReports];\n\nexport async function reportEntityFactory(): Promise<AXPEntity | null> {\n const basicFields = [\n { name: 'title', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n ];\n\n return {\n module: RootConfig.module.name,\n name: RootConfig.entities.report.name,\n title: RootConfig.entities.report.title,\n icon: RootConfig.entities.report.icon,\n searchTags: [\n 'report',\n 'report-definition',\n 'business-report',\n 'report-template',\n 'analytics',\n 'dashboard-report',\n 'report-layout',\n 'data-report',\n 'گزارش',\n 'گزارشها',\n 'قالب گزارش',\n 'مدیریت گزارش',\n ],\n plugins: [{ name: 'category', options: { readonly: true } }],\n pages: [\n {\n componentKey: 'report-definition-filters',\n field: 'filters',\n title: '@report-management:reports.entities.report.filter-editor.page-title',\n description: '@report-management:reports.entities.report.filter-editor.page-description',\n icon: 'fa-light fa-filter',\n layout: { order: 5, position: 'after' },\n },\n {\n componentKey: 'report-definition-layout-table',\n field: 'table',\n title: '@report-management:report-viewer.layouts.table.title',\n description: '@report-management:reports.entities.report.layout-editor.page-description',\n icon: 'fa-light fa-table',\n options: { layoutKey: 'table' },\n layout: { order: 10, position: 'after' },\n },\n {\n componentKey: 'report-definition-layout-bar',\n field: 'bar',\n title: '@report-management:report-viewer.layouts.bar-chart.title',\n description: '@report-management:reports.entities.report.layout-editor.page-description',\n icon: 'fa-light fa-chart-bar',\n options: { layoutKey: 'bar' },\n layout: { order: 20, position: 'after' },\n },\n {\n componentKey: 'report-definition-layout-line',\n field: 'line',\n title: '@report-management:report-viewer.layouts.line-chart.title',\n description: '@report-management:reports.entities.report.layout-editor.page-description',\n icon: 'fa-light fa-chart-line',\n options: { layoutKey: 'line' },\n layout: { order: 30, position: 'after' },\n },\n {\n componentKey: 'report-definition-layout-doughnut',\n field: 'doughnut',\n title: '@report-management:report-viewer.layouts.doughnut-chart.title',\n description: '@report-management:reports.entities.report.layout-editor.page-description',\n icon: 'fa-light fa-chart-pie',\n options: { layoutKey: 'doughnut' },\n layout: { order: 40, position: 'after' },\n },\n {\n componentKey: 'report-definition-layout-pie',\n field: 'pie',\n title: '@report-management:report-viewer.layouts.pie-chart.title',\n description: '@report-management:reports.entities.report.layout-editor.page-description',\n icon: 'fa-light fa-chart-pie',\n options: { layoutKey: 'pie' },\n layout: { order: 50, position: 'after' },\n },\n {\n componentKey: 'report-definition-layout-pdf',\n field: 'pdf',\n title: '@report-management:report-viewer.layouts.pdf.title',\n description: '@report-management:reports.entities.report.layout-editor.page-description',\n icon: 'fa-light fa-file-pdf',\n options: { layoutKey: 'pdf' },\n layout: { order: 60, position: 'after' },\n },\n ],\n formats: {\n individual: RootConfig.entities.report.title,\n plural: RootConfig.entities.report.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ description }}',\n },\n },\n groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],\n properties: [\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n multiLanguage: true,\n hasClearButton: true,\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: {\n multiLanguage: true,\n rows: 3,\n },\n },\n },\n },\n {\n name: 'parameterGroups',\n title: '@report-management:reports.entities.report.fields.parameter-groups',\n groupId: 'basic-info',\n schema: { dataType: 'object', visible: false, defaultValue: [], interface: { type: AXPWidgetsList.Editors.TextBox } },\n },\n {\n name: 'filterQuery',\n title: '@report-management:reports.entities.report.fields.parameter-groups',\n groupId: 'basic-info',\n schema: { dataType: 'object', visible: false, interface: { type: AXPWidgetsList.Editors.TextBox } },\n },\n {\n name: 'layouts',\n title: '@report-management:reports.entities.report.fields.layouts',\n groupId: 'basic-info',\n schema: { dataType: 'object', visible: false, defaultValue: [], interface: { type: AXPWidgetsList.Editors.TextBox } },\n },\n {\n name: 'defaultLayoutId',\n title: '@report-management:reports.entities.report.fields.default-layout-id',\n groupId: 'basic-info',\n schema: { dataType: 'string', visible: false, defaultValue: '', interface: { type: AXPWidgetsList.Editors.TextBox } },\n },\n {\n name: 'permissions',\n title: '@general:terms.security.permissions',\n groupId: 'basic-info',\n schema: { dataType: 'object', visible: false, defaultValue: [], interface: { type: AXPWidgetsList.Editors.TextBox } },\n },\n {\n name: 'entities',\n title: '@report-management:reports.entities.report.fields.entities',\n groupId: 'basic-info',\n schema: { dataType: 'object', visible: false, defaultValue: [], interface: { type: AXPWidgetsList.Editors.TextBox } },\n },\n {\n name: 'generation',\n title: '@report-management:reports.entities.report.fields.generation',\n groupId: 'basic-info',\n schema: { dataType: 'object', visible: false, interface: { type: AXPWidgetsList.Editors.TextBox } },\n },\n ],\n columns: [{ name: 'title' }, { name: 'description' }],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }],\n properties: basicFields,\n },\n update: {\n sections: [{ id: 'basic-info' }],\n properties: basicFields,\n },\n single: {\n title: '{{ title }}',\n sections: [{ id: 'basic-info' }],\n properties: basicFields,\n actions: [\n {\n title: '@report-management:reports.entities.report.actions.run',\n icon: 'fa-light fa-play',\n command: {\n name: 'ReportManagement.Report:OpenViewer',\n options: {\n reportId: '{{ context.eval(\"id\") }}',\n },\n },\n priority: 'primary',\n type: 'view',\n scope: AXPEntityCommandScope.Individual,\n },\n ],\n },\n list: {\n actions: [\n {\n ...entityMasterCreateAction(),\n permissions: maintainReports,\n },\n {\n title: '@report-management:reports.entities.report.actions.run',\n icon: 'fa-light fa-play',\n command: {\n name: 'ReportManagement.Report:OpenViewer',\n options: {\n reportId: '{{ context.eval(\"id\") }}',\n },\n },\n priority: 'primary',\n type: 'view',\n scope: AXPEntityCommandScope.Individual,\n default: true,\n },\n {\n ...entityMasterViewAction(),\n icon: 'fa-light fa-eye',\n priority: 'secondary',\n default: false,\n permissions: maintainReports,\n },\n ],\n views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],\n },\n },\n },\n };\n}\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.report';\n"],"names":[],"mappings":";;;AAAA;;;AAGG;AACI,MAAM,kCAAkC,GAAG;AAChD,IAAA,MAAM,EAAE,qCAAqC;AAC7C,IAAA,eAAe,EAAE,8CAA8C;AAC/D,IAAA,YAAY,EAAE,2CAA2C;AACzD,IAAA,mBAAmB,EAAE,kDAAkD;AACvE,IAAA,qBAAqB,EAAE,oDAAoD;AAC3E,IAAA,KAAK,EAAE,oCAAoC;CACnC;AAEV;;;AAGG;AACI,MAAM,kBAAkB,GAAG;AAChC,IAAA,gBAAgB,EAAE;QAChB,UAAU,EAAE,kCAAkC,CAAC,eAAe;AAC9D,QAAA,MAAM,EAAE;YACN,UAAU,EAAE,kCAAkC,CAAC,eAAe;YAC9D,IAAI,EAAE,kCAAkC,CAAC,eAAe;YACxD,MAAM,EAAE,kCAAkC,CAAC,eAAe;YAC1D,MAAM,EAAE,kCAAkC,CAAC,eAAe;YAC1D,MAAM,EAAE,kCAAkC,CAAC,eAAe;AAC3D,SAAA;AACD,QAAA,QAAQ,EAAE;YACR,UAAU,EAAE,kCAAkC,CAAC,KAAK;YACpD,IAAI,EAAE,kCAAkC,CAAC,KA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kB;AACxB,4BAAA,OAAO,EAAE;AACP,gCAAA,IAAI,EAAE,oCAAoC;AAC1C,gCAAA,OAAO,EAAE;AACP,oCAAA,QAAQ,EAAE,0BAA0B;AACrC,iCAAA;AACF,6BAAA;AACD,4BAAA,QAAQ,EAAE,SAAS;AACnB,4BAAA,IAAI,EAAE,MAAM;4BACZ,KAAK,EAAE,qBAAqB,CAAC,UAAU;AACvC,4BAAA,OAAO,EAAE,IAAI;AACd,yBAAA;AACD,wBAAA;AACE,4BAAA,GAAG,sBAAsB,EAAE;AAC3B,4BAAA,IAAI,EAAE,iBAAiB;AACvB,4BAAA,QAAQ,EAAE,WAAW;AACrB,4BAAA,OAAO,EAAE,KAAK;AACd,4BAAA,WAAW,EAAE,eAAe;AAC7B,yBAAA;AACF,qBAAA;oBACD,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;AACxE,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AACH;AAEA;;ACvQA;;AAEG;;"}
|
|
@@ -31,20 +31,6 @@ const RootConfig = {
|
|
|
31
31
|
titlePlural: `@${config.i18n}:reports.entities.report.plural`,
|
|
32
32
|
icon: 'fa-light fa-file-chart-pie',
|
|
33
33
|
},
|
|
34
|
-
querySnapshotPolicy: {
|
|
35
|
-
name: 'QuerySnapshotPolicy',
|
|
36
|
-
fullName: `${config.module}.QuerySnapshotPolicy`,
|
|
37
|
-
title: `@${config.i18n}:query-snapshots.entities.policy.title`,
|
|
38
|
-
titlePlural: `@${config.i18n}:query-snapshots.entities.policy.plural`,
|
|
39
|
-
icon: 'fa-light fa-sliders',
|
|
40
|
-
},
|
|
41
|
-
querySnapshot: {
|
|
42
|
-
name: 'QuerySnapshot',
|
|
43
|
-
fullName: `${config.module}.QuerySnapshot`,
|
|
44
|
-
title: `@${config.i18n}:query-snapshots.entities.snapshot.title`,
|
|
45
|
-
titlePlural: `@${config.i18n}:query-snapshots.entities.snapshot.plural`,
|
|
46
|
-
icon: 'fa-light fa-camera',
|
|
47
|
-
},
|
|
48
34
|
reportGenerationRequest: {
|
|
49
35
|
name: 'ReportGenerationRequest',
|
|
50
36
|
fullName: `${config.module}.ReportGenerationRequest`,
|
|
@@ -66,11 +52,9 @@ const RootConfig = {
|
|
|
66
52
|
const reportManagementLocalEntityCatalog = {
|
|
67
53
|
moduleName: RootConfig.module.name,
|
|
68
54
|
loaders: {
|
|
69
|
-
[RootConfig.entities.
|
|
70
|
-
[RootConfig.entities.
|
|
71
|
-
[RootConfig.entities.
|
|
72
|
-
[RootConfig.entities.category.name]: () => import('./acorex-platform-module-report-management-client-contracts-entity-catalog-report-category.entity-BQFdNXAm.mjs').then((m) => m.reportCategoryEntityFactory()),
|
|
73
|
-
[RootConfig.entities.reportGenerationRequest.name]: () => import('./acorex-platform-module-report-management-client-contracts-entity-catalog-report-generation-request.entity-D381cWLE.mjs').then((m) => m.reportGenerationRequestEntityFactory()),
|
|
55
|
+
[RootConfig.entities.report.name]: () => import('./acorex-platform-module-report-management-client-contracts-entity-catalog-report.entity-B_BWJu1a.mjs').then((m) => m.reportEntityFactory()),
|
|
56
|
+
[RootConfig.entities.category.name]: () => import('./acorex-platform-module-report-management-client-contracts-entity-catalog-report-category.entity-GPDKYKW_.mjs').then((m) => m.reportCategoryEntityFactory()),
|
|
57
|
+
[RootConfig.entities.reportGenerationRequest.name]: () => import('./acorex-platform-module-report-management-client-contracts-entity-catalog-report-generation-request.entity-B3cCnjKO.mjs').then((m) => m.reportGenerationRequestEntityFactory()),
|
|
74
58
|
},
|
|
75
59
|
};
|
|
76
60
|
//#endregion
|
|
@@ -80,4 +64,4 @@ const reportManagementLocalEntityCatalog = {
|
|
|
80
64
|
*/
|
|
81
65
|
|
|
82
66
|
export { RootConfig as R, reportManagementLocalEntityCatalog as r };
|
|
83
|
-
//# sourceMappingURL=acorex-platform-module-report-management-client-contracts-entity-catalog-acorex-platform-module-report-management-client-contracts-entity-catalog-
|
|
67
|
+
//# sourceMappingURL=acorex-platform-module-report-management-client-contracts-entity-catalog-acorex-platform-module-report-management-client-contracts-entity-catalog-CSABQXeE.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-report-management-client-contracts-entity-catalog-acorex-platform-module-report-management-client-contracts-entity-catalog-CSABQXeE.mjs","sources":["../../../../libs/modules/report-management/contracts/src/root-config.ts","../../../../libs/modules/report-management/contracts/src/entity-catalog.ts","../../../../libs/modules/report-management/contracts/src/acorex-platform-module-report-management-client-contracts-entity-catalog.ts"],"sourcesContent":["const config = {\n i18n: 'report-management',\n module: 'ReportManagement',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'report-management',\n name: config.module,\n title: `@${config.i18n}:module.title`,\n icon: 'fa-light fa-chart-bar',\n },\n entities: {\n dataSet: {\n name: 'DataSet',\n title: `t(\"dataSet\", { scope: \"${config.i18n}\" })`,\n titlePlural: `t(\"dataSetPlural\", { scope: \"${config.i18n}\" })`,\n icon: 'fa-light fa-default',\n },\n category: {\n name: 'ReportCategory',\n fullName: `${config.module}.ReportCategory`,\n title: `@${config.i18n}:reports.entities.category.title`,\n titlePlural: `@${config.i18n}:reports.entities.category.plural`,\n icon: 'fa-light fa-folder',\n },\n report: {\n name: 'Report',\n fullName: `${config.module}.Report`,\n title: `@${config.i18n}:reports.entities.report.title`,\n titlePlural: `@${config.i18n}:reports.entities.report.plural`,\n icon: 'fa-light fa-file-chart-pie',\n },\n reportGenerationRequest: {\n name: 'ReportGenerationRequest',\n fullName: `${config.module}.ReportGenerationRequest`,\n title: `@${config.i18n}:report-generation.entities.request.title`,\n titlePlural: `@${config.i18n}:report-generation.entities.request.plural`,\n icon: 'fa-light fa-file-export',\n },\n },\n} as const;\n","//#region ----- Imports -----\n\nimport type { AXPLocalEntityCatalog } from '@acorex-platform/framework-shared/entity';\n\nimport { RootConfig } from './root-config';\n\n//#endregion\n\n//#region ----- Local entity catalog -----\n\n/**\n * Lazy per-entity layout factories. Do not re-export from the contracts barrel\n * so RootConfig imports stay light. Server seed and client `local-entities`\n * consume this catalog explicitly.\n */\nexport const reportManagementLocalEntityCatalog: AXPLocalEntityCatalog = {\n moduleName: RootConfig.module.name,\n loaders: {\n [RootConfig.entities.report.name]: () => import('./entities/report/report.entity.js').then((m) => m.reportEntityFactory()),\n [RootConfig.entities.category.name]: () => import('./entities/report-category/report-category.entity.js').then((m) => m.reportCategoryEntityFactory()),\n [RootConfig.entities.reportGenerationRequest.name]: () => import('./entities/report-generation-request/report-generation-request.entity.js').then((m) => m.reportGenerationRequestEntityFactory()),\n },\n};\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-catalog';\n"],"names":[],"mappings":"AAAA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,mBAAmB;AACzB,IAAA,MAAM,EAAE,kBAAkB;CAC3B;AAEM,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;AACN,QAAA,KAAK,EAAE,mBAAmB;QAC1B,IAAI,EAAE,MAAM,CAAC,MAAM;AACnB,QAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,aAAA,CAAe;AACrC,QAAA,IAAI,EAAE,uBAAuB;AAC9B,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,OAAO,EAAE;AACP,YAAA,IAAI,EAAE,SAAS;AACf,YAAA,KAAK,EAAE,CAAA,uBAAA,EAA0B,MAAM,CAAC,IAAI,CAAA,IAAA,CAAM;AAClD,YAAA,WAAW,EAAE,CAAA,6BAAA,EAAgC,MAAM,CAAC,IAAI,CAAA,IAAA,CAAM;AAC9D,YAAA,IAAI,EAAE,qBAAqB;AAC5B,SAAA;AACD,QAAA,QAAQ,EAAE;AACR,YAAA,IAAI,EAAE,gBAAgB;AACtB,YAAA,QAAQ,EAAE,CAAA,EAAG,MAAM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1H,QAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,GAAG,MAAM,OAAO,gHAAsD,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,2BAA2B,EAAE,CAAC;AACtJ,QAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,uBAAuB,CAAC,IAAI,GAAG,MAAM,OAAO,0HAA0E,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,oCAAoC,EAAE,CAAC;AACnM,KAAA;;AAGH;;ACxBA;;AAEG;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createAllQueryView, entityMasterCrudActions } from '@acorex-platform/framework-shared/entity';
|
|
2
2
|
import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
|
|
3
|
-
import { R as RootConfig } from './acorex-platform-module-report-management-client-contracts-entity-catalog-acorex-platform-module-report-management-client-contracts-entity-catalog-
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-report-management-client-contracts-entity-catalog-acorex-platform-module-report-management-client-contracts-entity-catalog-CSABQXeE.mjs';
|
|
4
4
|
|
|
5
5
|
//#region ---- Report category entity factory ----
|
|
6
6
|
async function reportCategoryEntityFactory() {
|
|
@@ -79,4 +79,4 @@ async function reportCategoryEntityFactory() {
|
|
|
79
79
|
//#endregion
|
|
80
80
|
|
|
81
81
|
export { reportCategoryEntityFactory };
|
|
82
|
-
//# sourceMappingURL=acorex-platform-module-report-management-client-contracts-entity-catalog-report-category.entity-
|
|
82
|
+
//# sourceMappingURL=acorex-platform-module-report-management-client-contracts-entity-catalog-report-category.entity-GPDKYKW_.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-report-management-client-contracts-entity-catalog-report-category.entity-
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-report-management-client-contracts-entity-catalog-report-category.entity-GPDKYKW_.mjs","sources":["../../../../libs/modules/report-management/contracts/src/entities/report-category/report-category.entity.ts"],"sourcesContent":["import {AXPEntity, createAllQueryView, entityMasterCrudActions} from '@acorex-platform/framework-shared/entity';\nimport {AXPWidgetsCatalog} from '@acorex-platform/framework-shared/core';\nimport { RootConfig } from '../../root-config';\n\n//#region ---- Report category entity factory ----\n\nexport async function reportCategoryEntityFactory(): Promise<AXPEntity | null> {\n return {\n module: RootConfig.module.name,\n name: RootConfig.entities.category.name,\n parentKey: 'parentId',\n title: RootConfig.entities.category.title,\n icon: RootConfig.entities.category.icon,\n searchTags: [\n 'report-category',\n 'report-folder',\n 'report-group',\n 'category-tree',\n 'report-organization',\n 'report-hierarchy',\n 'report-classification',\n 'دسته گزارش',\n 'دستههای گزارش',\n 'دسته',\n 'گروه گزارش',\n ],\n formats: {\n individual: RootConfig.entities.category.title,\n plural: RootConfig.entities.category.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: RootConfig.module.title,\n },\n },\n groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],\n properties: [\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.largeText } },\n },\n {\n name: 'parentId',\n title: '@general:terms.classification.parent',\n groupId: 'basic-info',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text } },\n },\n {\n name: 'childrenCount',\n title: '@general:terms.common.children-count',\n groupId: 'basic-info',\n schema: { dataType: 'number', interface: { type: AXPWidgetsCatalog.number } },\n },\n {\n name: 'itemsCount',\n title: '@general:terms.common.items-count',\n groupId: 'basic-info',\n schema: { dataType: 'number', interface: { type: AXPWidgetsCatalog.number } },\n },\n ],\n columns: [{ name: 'title' }, { name: 'description' }],\n interfaces: {\n master: {\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sor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E,CAAC,GAAG,uBAAuB,EAAE,CAAC;oBACvC,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;AACxE,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AACH;AAEA;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
2
|
import { AXPEntityCommandScope, createAllQueryView } from '@acorex-platform/framework-shared/entity';
|
|
3
|
-
import { R as RootConfig } from './acorex-platform-module-report-management-client-contracts-entity-catalog-acorex-platform-module-report-management-client-contracts-entity-catalog-
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-report-management-client-contracts-entity-catalog-acorex-platform-module-report-management-client-contracts-entity-catalog-CSABQXeE.mjs';
|
|
4
4
|
|
|
5
5
|
//#region ----- Imports -----
|
|
6
6
|
const REPORT_GENERATION_NOTIFICATION_DEFINITION_KEY = 'ReportManagement:ReportGeneration';
|
|
@@ -60,7 +60,7 @@ async function reportGenerationRequestEntityFactory() {
|
|
|
60
60
|
name: 'reportId',
|
|
61
61
|
title: `${I18N}.fields.report-id`,
|
|
62
62
|
groupId: 'basic-info',
|
|
63
|
-
schema: { dataType: '
|
|
63
|
+
schema: { dataType: 'reference', readonly: true, interface: { type: AXPWidgetsCatalog.text } },
|
|
64
64
|
options: {
|
|
65
65
|
filter: { inline: { enabled: true }, advance: { enabled: true } },
|
|
66
66
|
sort: { enabled: true },
|
|
@@ -108,7 +108,7 @@ async function reportGenerationRequestEntityFactory() {
|
|
|
108
108
|
name: 'jobId',
|
|
109
109
|
title: `${I18N}.fields.job-id`,
|
|
110
110
|
groupId: 'basic-info',
|
|
111
|
-
schema: { dataType: '
|
|
111
|
+
schema: { dataType: 'reference', readonly: true, interface: { type: AXPWidgetsCatalog.text } },
|
|
112
112
|
},
|
|
113
113
|
{
|
|
114
114
|
name: 'startedAt',
|
|
@@ -211,4 +211,4 @@ async function reportGenerationRequestEntityFactory() {
|
|
|
211
211
|
//#endregion
|
|
212
212
|
|
|
213
213
|
export { reportGenerationRequestEntityFactory };
|
|
214
|
-
//# sourceMappingURL=acorex-platform-module-report-management-client-contracts-entity-catalog-report-generation-request.entity-
|
|
214
|
+
//# sourceMappingURL=acorex-platform-module-report-management-client-contracts-entity-catalog-report-generation-request.entity-B3cCnjKO.mjs.map
|