@masterteam/dashboard-builder 0.0.82 → 0.0.83
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 +444 -434
- package/fesm2022/{masterteam-dashboard-builder-dashboard-dialog.component-B5jqgAas.mjs → masterteam-dashboard-builder-dashboard-dialog.component-BjQF7eiP.mjs} +2 -2
- package/fesm2022/{masterteam-dashboard-builder-dashboard-dialog.component-B5jqgAas.mjs.map → masterteam-dashboard-builder-dashboard-dialog.component-BjQF7eiP.mjs.map} +1 -1
- package/fesm2022/{masterteam-dashboard-builder-masterteam-dashboard-builder-B_mWi5v-.mjs → masterteam-dashboard-builder-masterteam-dashboard-builder-CotqczE9.mjs} +117 -42
- package/fesm2022/masterteam-dashboard-builder-masterteam-dashboard-builder-CotqczE9.mjs.map +1 -0
- package/fesm2022/masterteam-dashboard-builder.mjs +1 -1
- package/package.json +2 -2
- package/fesm2022/masterteam-dashboard-builder-masterteam-dashboard-builder-B_mWi5v-.mjs.map +0 -1
|
@@ -4,7 +4,7 @@ import { CommonModule } from '@angular/common';
|
|
|
4
4
|
import { TranslocoService, TranslocoDirective } from '@jsverse/transloco';
|
|
5
5
|
import { ModalService } from '@masterteam/components/modal';
|
|
6
6
|
import { ModalRef } from '@masterteam/components/dialog';
|
|
7
|
-
import { D as DashboardItemStoreService, F as FilterUtilsService, a as DashboardItem, r as resolveDashboardDialogHeader, b as DashboardDialogHeader } from './masterteam-dashboard-builder-masterteam-dashboard-builder-
|
|
7
|
+
import { D as DashboardItemStoreService, F as FilterUtilsService, a as DashboardItem, r as resolveDashboardDialogHeader, b as DashboardDialogHeader } from './masterteam-dashboard-builder-masterteam-dashboard-builder-CotqczE9.mjs';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Dashboard Dialog Component
|
|
@@ -129,4 +129,4 @@ function openDashboardDialog(modalService, config, params, options) {
|
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
export { DashboardDialogComponent, openDashboardDialog };
|
|
132
|
-
//# sourceMappingURL=masterteam-dashboard-builder-dashboard-dialog.component-
|
|
132
|
+
//# sourceMappingURL=masterteam-dashboard-builder-dashboard-dialog.component-BjQF7eiP.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"masterteam-dashboard-builder-dashboard-dialog.component-B5jqgAas.mjs","sources":["../../../../packages/masterteam/dashboard-builder/src/lib/dashboard-item/components/dashboard-dialog/dashboard-dialog.component.ts","../../../../packages/masterteam/dashboard-builder/src/lib/dashboard-item/components/dashboard-dialog/dashboard-dialog.component.html"],"sourcesContent":["/**\r\n * Dashboard Dialog Component\r\n *\r\n * A flexible dialog wrapper that renders a DashboardItem inside.\r\n * Uses the same ItemConfig structure - maximum code reuse.\r\n *\r\n * The dialog simply wraps DashboardItem, so any chart/table/card\r\n * that works inline will work in a dialog too.\r\n */\r\n\r\nimport {\r\n Component,\r\n inject,\r\n input,\r\n signal,\r\n computed,\r\n OnInit,\r\n} from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { TranslocoDirective, TranslocoService } from '@jsverse/transloco';\r\nimport { ModalService } from '@masterteam/components/modal';\r\nimport { ModalRef } from '@masterteam/components/dialog';\r\nimport { ItemConfig } from '../../../models/dashboard.model';\r\nimport { DashboardItemStoreService } from '../../services/item-store.service';\r\nimport { FilterUtilsService } from '../../services/filter-utils.service';\r\nimport { DashboardItem } from '../../dashboard-item';\r\nimport {\r\n DashboardDialogHeader,\r\n resolveDashboardDialogHeader,\r\n} from './dashboard-dialog-header';\r\n\r\n/**\r\n * Dashboard Dialog Component\r\n *\r\n * Opened via ModalService, renders a DashboardItem inside.\r\n * Usage:\r\n * this.modalService.open(DashboardDialogComponent, {\r\n * data: { config: itemConfig, params: queryParams }\r\n * });\r\n */\r\n@Component({\r\n selector: 'mt-dashboard-dialog',\r\n standalone: true,\r\n imports: [CommonModule, TranslocoDirective, DashboardItem],\r\n templateUrl: './dashboard-dialog.component.html',\r\n})\r\nexport class DashboardDialogComponent implements OnInit {\r\n private readonly itemStore = inject(DashboardItemStoreService);\r\n private readonly filterUtils = inject(FilterUtilsService);\r\n private readonly transloco = inject(TranslocoService);\r\n readonly modal = inject(ModalService);\r\n private readonly ref = inject(ModalRef);\r\n\r\n // Inputs from modal data\r\n readonly config = input<ItemConfig | null>(null);\r\n readonly params = input<Record<string, any>>({});\r\n readonly title = input<string | null>(null);\r\n readonly reportId = input<string | number | null>(null);\r\n\r\n // State\r\n readonly dialogConfig = signal<ItemConfig | null>(null);\r\n readonly actionParams = signal<Record<string, any>>({});\r\n\r\n // Computed\r\n readonly mergedParams = computed(() => ({\r\n ...this.params(),\r\n ...this.actionParams(),\r\n }));\r\n\r\n readonly processedConfig = computed(() => {\r\n const config = this.dialogConfig();\r\n if (!config) return null;\r\n\r\n // Deep clone and process filters\r\n const cloned = JSON.parse(JSON.stringify(config)) as ItemConfig;\r\n\r\n // Apply filter processing if service config exists\r\n if (cloned.serviceConfig) {\r\n const processed = this.filterUtils.handleFiltersForCustom(\r\n cloned.serviceConfig,\r\n this.mergedParams(),\r\n );\r\n cloned.serviceConfig = processed;\r\n }\r\n return cloned;\r\n });\r\n\r\n ngOnInit(): void {\r\n // Set config from input\r\n const config = this.config();\r\n if (config) {\r\n this.dialogConfig.set(config);\r\n }\r\n\r\n // Set params from input\r\n const params = this.params();\r\n if (params) {\r\n this.actionParams.set(params);\r\n }\r\n }\r\n\r\n /**\r\n * Close dialog\r\n */\r\n close(result?: any): void {\r\n this.ref.close(result);\r\n }\r\n\r\n /**\r\n * Handle actions from the inner DashboardItem\r\n */\r\n onItemAction(event: any): void {\r\n // If it's a close action, close the dialog\r\n if (event?.type === 'closeDialog') {\r\n this.close(event?.data);\r\n return;\r\n }\r\n\r\n // For navigation actions, close dialog and let parent handle\r\n if (event?.type === 'navigate' || event?.type === 'navigateTo') {\r\n this.close(event);\r\n return;\r\n }\r\n\r\n // For other action types, the inner mt-dashboard-item already\r\n // dispatches via ActionService — nothing more to do at the dialog host.\r\n }\r\n}\r\n\r\n/**\r\n * Helper service for opening dashboard dialogs\r\n */\r\nexport function openDashboardDialog(\r\n modalService: ModalService,\r\n config: ItemConfig,\r\n params?: Record<string, any>,\r\n options?: {\r\n title?: string;\r\n size?: 'sm' | 'md' | 'lg' | 'xl' | 'full';\r\n reportId?: string | number | null;\r\n },\r\n): ModalRef {\r\n const sizeClass = {\r\n sm: 'max-w-md',\r\n md: 'max-w-2xl',\r\n lg: 'max-w-4xl',\r\n xl: 'max-w-6xl',\r\n full: 'max-w-[95vw]',\r\n }[options?.size || 'lg'];\r\n\r\n // Same header contract as ActionService.showDialog: title + icon come from\r\n // the dialog's own config unless the caller overrides the title.\r\n const resolved = resolveDashboardDialogHeader(config);\r\n const header = { ...resolved, title: options?.title || resolved.title };\r\n\r\n const inputValues = {\r\n config,\r\n params: params || {},\r\n title: header.title,\r\n reportId: options?.reportId ?? null,\r\n };\r\n return modalService.openModal(DashboardDialogComponent, 'dialog', {\r\n header: header.title,\r\n styleClass: sizeClass,\r\n ...(header.icon ? { templates: { header: DashboardDialogHeader } } : {}),\r\n data: { ...inputValues, dialogHeader: header },\r\n inputValues,\r\n });\r\n}\r\n","<!--\r\n Inline height is intentional: the global `.mt-dialog .p-dialog-content\r\n .mt-modal-content { height:100% }` rule (common.css, unlayered) overrides any\r\n `h-[80vh]` class, and `.p-dialog` itself has no definite height, so a\r\n class-based height collapses to content. An inline style beats the unlayered\r\n rule, and `80vh` is viewport-relative (definite regardless of ancestors),\r\n giving the inner item -> table the bounded height it needs to scroll.\r\n padding-bottom is zeroed (the global 5rem reserves space for a footer this\r\n dialog does not render).\r\n-->\r\n<div\r\n [class]=\"modal.contentClass + ' flex min-h-[300px] flex-col p-0'\"\r\n style=\"height: 80vh; padding-bottom: 0\"\r\n *transloco=\"let t; prefix: 'dashboardBuilder'\"\r\n>\r\n <!-- Dashboard Item renders whatever the config specifies. A definite height\r\n lets the inner table own its scroll (its virtual window depends on the\r\n scroll container, not the outer dialog). -->\r\n @if (processedConfig()) {\r\n <mt-dashboard-item\r\n class=\"block min-h-0 flex-1\"\r\n [config]=\"processedConfig()!\"\r\n [queryParams]=\"mergedParams()\"\r\n [reportId]=\"reportId()\"\r\n [isDialog]=\"true\"\r\n (actionTriggered)=\"onItemAction($event)\"\r\n />\r\n } @else if (config()) {\r\n <!-- Config provided but still being processed -->\r\n <div class=\"flex flex-1 items-center justify-center\">\r\n <i class=\"pi pi-spin pi-spinner text-4xl text-primary\"></i>\r\n </div>\r\n } @else {\r\n <!-- No dialog config could be resolved (linked dialog deleted or failed to\r\n load). Show an explicit unavailable state instead of silently\r\n rendering the wrong widget. -->\r\n <div\r\n class=\"flex flex-1 flex-col items-center justify-center gap-3 px-6 text-center\"\r\n >\r\n <i class=\"pi pi-exclamation-triangle text-4xl text-surface-400\"></i>\r\n <p class=\"text-surface-600 dark:text-surface-300\">\r\n {{ t(\"dialogUnavailable\") }}\r\n </p>\r\n </div>\r\n }\r\n</div>\r\n<!--\r\n<div [class]=\"modal.footerClass\" *transloco=\"let t; prefix: 'dashboard'\">\r\n <mt-button [label]=\"t('close')\" severity=\"secondary\" (onClick)=\"close()\" />\r\n</div> -->\r\n"],"names":[],"mappings":";;;;;;;;AAAA;;;;;;;;AAQG;AAuBH;;;;;;;;AAQG;MAOU,wBAAwB,CAAA;AAClB,IAAA,SAAS,GAAG,MAAM,CAAC,yBAAyB,CAAC;AAC7C,IAAA,WAAW,GAAG,MAAM,CAAC,kBAAkB,CAAC;AACxC,IAAA,SAAS,GAAG,MAAM,CAAC,gBAAgB,CAAC;AAC5C,IAAA,KAAK,GAAG,MAAM,CAAC,YAAY,CAAC;AACpB,IAAA,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC;;AAG9B,IAAA,MAAM,GAAG,KAAK,CAAoB,IAAI,6EAAC;AACvC,IAAA,MAAM,GAAG,KAAK,CAAsB,EAAE,6EAAC;AACvC,IAAA,KAAK,GAAG,KAAK,CAAgB,IAAI,4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AAU,mBAAmB,CACjC,YAA0B,EAC1B,MAAkB,EAClB,MAA4B,EAC5B,OAIC,EAAA;AAED,IAAA,MAAM,SAAS,GAAG;AAChB,QAAA,EAAE,EAAE,UAAU;AACd,QAAA,EAAE,EAAE,WAAW;AACf,QAAA,EAAE,EAAE,WAAW;AACf,QAAA,EAAE,EAAE,WAAW;AACf,QAAA,IAAI,EAAE,cAAc;AACrB,KAAA,CAAC,OAAO,EAAE,IAAI,IAAI,IAAI,CAAC;;;AAIxB,IAAA,MAAM,QAAQ,GAAG,4BAA4B,CAAC,MAAM,CAAC;AACrD,IAAA,MAAM,MAAM,GAAG,EAAE,GAAG,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,IAAI,QAAQ,CAAC,KAAK,EAAE;AAEvE,IAAA,MAAM,WAAW,GAAG;QAClB,MAAM;QACN,MAAM,EAAE,MAAM,IAAI,EAAE;QACpB,KAAK,EAAE,MAAM,CAAC,KAAK;AACnB,QAAA,QAAQ,EAAE,OAAO,EAAE,QAAQ,IAAI,IAAI;KACpC;AACD,IAAA,OAAO,YAAY,CAAC,SAAS,CAAC,wBAAwB,EAAE,QAAQ,EAAE;QAChE,MAAM,EAAE,MAAM,CAAC,KAAK;AACpB,QAAA,UAAU,EAAE,SAAS;QACrB,IAAI,MAAM,CAAC,IAAI,GAAG,EAAE,SAAS,EAAE,EAAE,MAAM,EAAE,qBAAqB,EAAE,EAAE,GAAG,EAAE,CAAC;QACxE,IAAI,EAAE,EAAE,GAAG,WAAW,EAAE,YAAY,EAAE,MAAM,EAAE;QAC9C,WAAW;AACZ,KAAA,CAAC;AACJ;;;;"}
|
|
1
|
+
{"version":3,"file":"masterteam-dashboard-builder-dashboard-dialog.component-BjQF7eiP.mjs","sources":["../../../../packages/masterteam/dashboard-builder/src/lib/dashboard-item/components/dashboard-dialog/dashboard-dialog.component.ts","../../../../packages/masterteam/dashboard-builder/src/lib/dashboard-item/components/dashboard-dialog/dashboard-dialog.component.html"],"sourcesContent":["/**\r\n * Dashboard Dialog Component\r\n *\r\n * A flexible dialog wrapper that renders a DashboardItem inside.\r\n * Uses the same ItemConfig structure - maximum code reuse.\r\n *\r\n * The dialog simply wraps DashboardItem, so any chart/table/card\r\n * that works inline will work in a dialog too.\r\n */\r\n\r\nimport {\r\n Component,\r\n inject,\r\n input,\r\n signal,\r\n computed,\r\n OnInit,\r\n} from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { TranslocoDirective, TranslocoService } from '@jsverse/transloco';\r\nimport { ModalService } from '@masterteam/components/modal';\r\nimport { ModalRef } from '@masterteam/components/dialog';\r\nimport { ItemConfig } from '../../../models/dashboard.model';\r\nimport { DashboardItemStoreService } from '../../services/item-store.service';\r\nimport { FilterUtilsService } from '../../services/filter-utils.service';\r\nimport { DashboardItem } from '../../dashboard-item';\r\nimport {\r\n DashboardDialogHeader,\r\n resolveDashboardDialogHeader,\r\n} from './dashboard-dialog-header';\r\n\r\n/**\r\n * Dashboard Dialog Component\r\n *\r\n * Opened via ModalService, renders a DashboardItem inside.\r\n * Usage:\r\n * this.modalService.open(DashboardDialogComponent, {\r\n * data: { config: itemConfig, params: queryParams }\r\n * });\r\n */\r\n@Component({\r\n selector: 'mt-dashboard-dialog',\r\n standalone: true,\r\n imports: [CommonModule, TranslocoDirective, DashboardItem],\r\n templateUrl: './dashboard-dialog.component.html',\r\n})\r\nexport class DashboardDialogComponent implements OnInit {\r\n private readonly itemStore = inject(DashboardItemStoreService);\r\n private readonly filterUtils = inject(FilterUtilsService);\r\n private readonly transloco = inject(TranslocoService);\r\n readonly modal = inject(ModalService);\r\n private readonly ref = inject(ModalRef);\r\n\r\n // Inputs from modal data\r\n readonly config = input<ItemConfig | null>(null);\r\n readonly params = input<Record<string, any>>({});\r\n readonly title = input<string | null>(null);\r\n readonly reportId = input<string | number | null>(null);\r\n\r\n // State\r\n readonly dialogConfig = signal<ItemConfig | null>(null);\r\n readonly actionParams = signal<Record<string, any>>({});\r\n\r\n // Computed\r\n readonly mergedParams = computed(() => ({\r\n ...this.params(),\r\n ...this.actionParams(),\r\n }));\r\n\r\n readonly processedConfig = computed(() => {\r\n const config = this.dialogConfig();\r\n if (!config) return null;\r\n\r\n // Deep clone and process filters\r\n const cloned = JSON.parse(JSON.stringify(config)) as ItemConfig;\r\n\r\n // Apply filter processing if service config exists\r\n if (cloned.serviceConfig) {\r\n const processed = this.filterUtils.handleFiltersForCustom(\r\n cloned.serviceConfig,\r\n this.mergedParams(),\r\n );\r\n cloned.serviceConfig = processed;\r\n }\r\n return cloned;\r\n });\r\n\r\n ngOnInit(): void {\r\n // Set config from input\r\n const config = this.config();\r\n if (config) {\r\n this.dialogConfig.set(config);\r\n }\r\n\r\n // Set params from input\r\n const params = this.params();\r\n if (params) {\r\n this.actionParams.set(params);\r\n }\r\n }\r\n\r\n /**\r\n * Close dialog\r\n */\r\n close(result?: any): void {\r\n this.ref.close(result);\r\n }\r\n\r\n /**\r\n * Handle actions from the inner DashboardItem\r\n */\r\n onItemAction(event: any): void {\r\n // If it's a close action, close the dialog\r\n if (event?.type === 'closeDialog') {\r\n this.close(event?.data);\r\n return;\r\n }\r\n\r\n // For navigation actions, close dialog and let parent handle\r\n if (event?.type === 'navigate' || event?.type === 'navigateTo') {\r\n this.close(event);\r\n return;\r\n }\r\n\r\n // For other action types, the inner mt-dashboard-item already\r\n // dispatches via ActionService — nothing more to do at the dialog host.\r\n }\r\n}\r\n\r\n/**\r\n * Helper service for opening dashboard dialogs\r\n */\r\nexport function openDashboardDialog(\r\n modalService: ModalService,\r\n config: ItemConfig,\r\n params?: Record<string, any>,\r\n options?: {\r\n title?: string;\r\n size?: 'sm' | 'md' | 'lg' | 'xl' | 'full';\r\n reportId?: string | number | null;\r\n },\r\n): ModalRef {\r\n const sizeClass = {\r\n sm: 'max-w-md',\r\n md: 'max-w-2xl',\r\n lg: 'max-w-4xl',\r\n xl: 'max-w-6xl',\r\n full: 'max-w-[95vw]',\r\n }[options?.size || 'lg'];\r\n\r\n // Same header contract as ActionService.showDialog: title + icon come from\r\n // the dialog's own config unless the caller overrides the title.\r\n const resolved = resolveDashboardDialogHeader(config);\r\n const header = { ...resolved, title: options?.title || resolved.title };\r\n\r\n const inputValues = {\r\n config,\r\n params: params || {},\r\n title: header.title,\r\n reportId: options?.reportId ?? null,\r\n };\r\n return modalService.openModal(DashboardDialogComponent, 'dialog', {\r\n header: header.title,\r\n styleClass: sizeClass,\r\n ...(header.icon ? { templates: { header: DashboardDialogHeader } } : {}),\r\n data: { ...inputValues, dialogHeader: header },\r\n inputValues,\r\n });\r\n}\r\n","<!--\r\n Inline height is intentional: the global `.mt-dialog .p-dialog-content\r\n .mt-modal-content { height:100% }` rule (common.css, unlayered) overrides any\r\n `h-[80vh]` class, and `.p-dialog` itself has no definite height, so a\r\n class-based height collapses to content. An inline style beats the unlayered\r\n rule, and `80vh` is viewport-relative (definite regardless of ancestors),\r\n giving the inner item -> table the bounded height it needs to scroll.\r\n padding-bottom is zeroed (the global 5rem reserves space for a footer this\r\n dialog does not render).\r\n-->\r\n<div\r\n [class]=\"modal.contentClass + ' flex min-h-[300px] flex-col p-0'\"\r\n style=\"height: 80vh; padding-bottom: 0\"\r\n *transloco=\"let t; prefix: 'dashboardBuilder'\"\r\n>\r\n <!-- Dashboard Item renders whatever the config specifies. A definite height\r\n lets the inner table own its scroll (its virtual window depends on the\r\n scroll container, not the outer dialog). -->\r\n @if (processedConfig()) {\r\n <mt-dashboard-item\r\n class=\"block min-h-0 flex-1\"\r\n [config]=\"processedConfig()!\"\r\n [queryParams]=\"mergedParams()\"\r\n [reportId]=\"reportId()\"\r\n [isDialog]=\"true\"\r\n (actionTriggered)=\"onItemAction($event)\"\r\n />\r\n } @else if (config()) {\r\n <!-- Config provided but still being processed -->\r\n <div class=\"flex flex-1 items-center justify-center\">\r\n <i class=\"pi pi-spin pi-spinner text-4xl text-primary\"></i>\r\n </div>\r\n } @else {\r\n <!-- No dialog config could be resolved (linked dialog deleted or failed to\r\n load). Show an explicit unavailable state instead of silently\r\n rendering the wrong widget. -->\r\n <div\r\n class=\"flex flex-1 flex-col items-center justify-center gap-3 px-6 text-center\"\r\n >\r\n <i class=\"pi pi-exclamation-triangle text-4xl text-surface-400\"></i>\r\n <p class=\"text-surface-600 dark:text-surface-300\">\r\n {{ t(\"dialogUnavailable\") }}\r\n </p>\r\n </div>\r\n }\r\n</div>\r\n<!--\r\n<div [class]=\"modal.footerClass\" *transloco=\"let t; prefix: 'dashboard'\">\r\n <mt-button [label]=\"t('close')\" severity=\"secondary\" (onClick)=\"close()\" />\r\n</div> -->\r\n"],"names":[],"mappings":";;;;;;;;AAAA;;;;;;;;AAQG;AAuBH;;;;;;;;AAQG;MAOU,wBAAwB,CAAA;AAClB,IAAA,SAAS,GAAG,MAAM,CAAC,yBAAyB,CAAC;AAC7C,IAAA,WAAW,GAAG,MAAM,CAAC,kBAAkB,CAAC;AACxC,IAAA,SAAS,GAAG,MAAM,CAAC,gBAAgB,CAAC;AAC5C,IAAA,KAAK,GAAG,MAAM,CAAC,YAAY,CAAC;AACpB,IAAA,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC;;AAG9B,IAAA,MAAM,GAAG,KAAK,CAAoB,IAAI,6EAAC;AACvC,IAAA,MAAM,GAAG,KAAK,CAAsB,EAAE,6EAAC;AACvC,IAAA,KAAK,GAAG,KAAK,CAAgB,IAAI,4EAAC;AAClC,IAAA,QAAQ,GAAG,KAAK,CAAyB,IAAI,+EAAC;;AAG9C,IAAA,YAAY,GAAG,MAAM,CAAoB,IAAI,mFAAC;AAC9C,IAAA,YAAY,GAAG,MAAM,CAAsB,EAAE,mFAAC;;AAG9C,IAAA,YAAY,GAAG,QAAQ,CAAC,OAAO;QACtC,GAAG,IAAI,CAAC,MAAM,EAAE;QAChB,GAAG,IAAI,CAAC,YAAY,EAAE;AACvB,KAAA,CAAC,mFAAC;AAEM,IAAA,eAAe,GAAG,QAAQ,CAAC,MAAK;AACvC,QAAA,MAAM,MAAM,GAAG,IAAI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AM,GAAG,EAAE,GAAG,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,IAAI,QAAQ,CAAC,KAAK,EAAE;AAEvE,IAAA,MAAM,WAAW,GAAG;QAClB,MAAM;QACN,MAAM,EAAE,MAAM,IAAI,EAAE;QACpB,KAAK,EAAE,MAAM,CAAC,KAAK;AACnB,QAAA,QAAQ,EAAE,OAAO,EAAE,QAAQ,IAAI,IAAI;KACpC;AACD,IAAA,OAAO,YAAY,CAAC,SAAS,CAAC,wBAAwB,EAAE,QAAQ,EAAE;QAChE,MAAM,EAAE,MAAM,CAAC,KAAK;AACpB,QAAA,UAAU,EAAE,SAAS;QACrB,IAAI,MAAM,CAAC,IAAI,GAAG,EAAE,SAAS,EAAE,EAAE,MAAM,EAAE,qBAAqB,EAAE,EAAE,GAAG,EAAE,CAAC;QACxE,IAAI,EAAE,EAAE,GAAG,WAAW,EAAE,YAAY,EAAE,MAAM,EAAE;QAC9C,WAAW;AACZ,KAAA,CAAC;AACJ;;;;"}
|
|
@@ -3971,8 +3971,12 @@ class FilterValueField {
|
|
|
3971
3971
|
selectedOptions = signal(new Set(), ...(ngDevMode ? [{ debugName: "selectedOptions" }] : /* istanbul ignore next */ []));
|
|
3972
3972
|
/** Whether the property-values request for the current key is in flight. */
|
|
3973
3973
|
valuesLoading = signal(false, ...(ngDevMode ? [{ debugName: "valuesLoading" }] : /* istanbul ignore next */ []));
|
|
3974
|
-
/**
|
|
3975
|
-
|
|
3974
|
+
/** Cached value options and their metadata-derived source, keyed by property. */
|
|
3975
|
+
valueOptionsByKey = new Map();
|
|
3976
|
+
valueSourcesByKey = new Map();
|
|
3977
|
+
loadingValueKeys = new Set();
|
|
3978
|
+
/** Invalidates a remote response when late metadata reclassifies its property. */
|
|
3979
|
+
valueRequestVersions = new Map();
|
|
3976
3980
|
/** Date modifier unit options */
|
|
3977
3981
|
unitOptions = [
|
|
3978
3982
|
{ label: 'Days', value: 'd' },
|
|
@@ -4087,8 +4091,14 @@ class FilterValueField {
|
|
|
4087
4091
|
const key = this.propertyKey();
|
|
4088
4092
|
this.propertyOptions();
|
|
4089
4093
|
this.extraProperties();
|
|
4090
|
-
|
|
4091
|
-
|
|
4094
|
+
untracked(() => {
|
|
4095
|
+
if (key) {
|
|
4096
|
+
this.loadPropertyValues(key);
|
|
4097
|
+
}
|
|
4098
|
+
else {
|
|
4099
|
+
this.publishPropertyValueOptions('', [], false);
|
|
4100
|
+
}
|
|
4101
|
+
});
|
|
4092
4102
|
});
|
|
4093
4103
|
// Re-derive visible tabs when pivot-token visibility toggles.
|
|
4094
4104
|
effect(() => {
|
|
@@ -4155,49 +4165,83 @@ class FilterValueField {
|
|
|
4155
4165
|
}
|
|
4156
4166
|
/** Lazily resolve a property's value list into the "Values" tab. */
|
|
4157
4167
|
loadPropertyValues(propertyKey) {
|
|
4158
|
-
if (this.fetchedValueKeys.has(propertyKey))
|
|
4159
|
-
return;
|
|
4160
4168
|
const source = this.resolvePropertyValueSource(propertyKey);
|
|
4169
|
+
const previousSource = this.valueSourcesByKey.get(propertyKey);
|
|
4170
|
+
// Existing filters are written before their async property metadata arrives.
|
|
4171
|
+
// A Checkbox can therefore look remote on the first effect pass. Reclassify
|
|
4172
|
+
// the same key when metadata arrives instead of treating that first pass as
|
|
4173
|
+
// permanently fetched (issue #1237).
|
|
4174
|
+
if (previousSource !== source) {
|
|
4175
|
+
this.valueSourcesByKey.set(propertyKey, source);
|
|
4176
|
+
this.valueOptionsByKey.delete(propertyKey);
|
|
4177
|
+
this.loadingValueKeys.delete(propertyKey);
|
|
4178
|
+
this.bumpValueRequestVersion(propertyKey);
|
|
4179
|
+
}
|
|
4180
|
+
const cachedOptions = this.valueOptionsByKey.get(propertyKey);
|
|
4181
|
+
if (cachedOptions !== undefined) {
|
|
4182
|
+
this.publishPropertyValueOptions(propertyKey, cachedOptions, false);
|
|
4183
|
+
return;
|
|
4184
|
+
}
|
|
4161
4185
|
if (source === 'none') {
|
|
4162
|
-
this.
|
|
4163
|
-
this.setPropertyValueOptions([]);
|
|
4186
|
+
this.cacheAndPublishPropertyValueOptions(propertyKey, []);
|
|
4164
4187
|
return;
|
|
4165
4188
|
}
|
|
4166
4189
|
if (source === 'checkbox') {
|
|
4167
|
-
this.
|
|
4168
|
-
this.setPropertyValueOptions([
|
|
4190
|
+
this.cacheAndPublishPropertyValueOptions(propertyKey, [
|
|
4169
4191
|
{ label: this.translateOrFallback('yes', 'Yes'), value: 'true' },
|
|
4170
4192
|
{ label: this.translateOrFallback('no', 'No'), value: 'false' },
|
|
4171
4193
|
]);
|
|
4172
4194
|
return;
|
|
4173
4195
|
}
|
|
4174
|
-
this.
|
|
4175
|
-
|
|
4196
|
+
if (this.loadingValueKeys.has(propertyKey)) {
|
|
4197
|
+
this.publishPropertyValueOptions(propertyKey, [], true);
|
|
4198
|
+
return;
|
|
4199
|
+
}
|
|
4200
|
+
this.loadingValueKeys.add(propertyKey);
|
|
4201
|
+
const requestVersion = this.bumpValueRequestVersion(propertyKey);
|
|
4202
|
+
this.publishPropertyValueOptions(propertyKey, [], true);
|
|
4176
4203
|
this.dashboardService.getPropertyItems(propertyKey).subscribe({
|
|
4177
4204
|
next: (res) => {
|
|
4205
|
+
if (!this.isCurrentValueRequest(propertyKey, requestVersion, 'remote')) {
|
|
4206
|
+
return;
|
|
4207
|
+
}
|
|
4178
4208
|
const items = res.data?.items || [];
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
label: item.name,
|
|
4183
|
-
value: item.key,
|
|
4184
|
-
})),
|
|
4209
|
+
const options = items.map((item) => ({
|
|
4210
|
+
label: item.name,
|
|
4211
|
+
value: item.key,
|
|
4185
4212
|
}));
|
|
4186
|
-
this.
|
|
4187
|
-
this.
|
|
4213
|
+
this.loadingValueKeys.delete(propertyKey);
|
|
4214
|
+
this.cacheAndPublishPropertyValueOptions(propertyKey, options);
|
|
4188
4215
|
},
|
|
4189
4216
|
error: () => {
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4217
|
+
if (!this.isCurrentValueRequest(propertyKey, requestVersion, 'remote')) {
|
|
4218
|
+
return;
|
|
4219
|
+
}
|
|
4220
|
+
// Keep the key uncached so a later input/metadata change can retry it.
|
|
4221
|
+
this.loadingValueKeys.delete(propertyKey);
|
|
4222
|
+
this.publishPropertyValueOptions(propertyKey, [], false);
|
|
4194
4223
|
},
|
|
4195
4224
|
});
|
|
4196
4225
|
}
|
|
4197
|
-
|
|
4198
|
-
|
|
4226
|
+
bumpValueRequestVersion(propertyKey) {
|
|
4227
|
+
const next = (this.valueRequestVersions.get(propertyKey) ?? 0) + 1;
|
|
4228
|
+
this.valueRequestVersions.set(propertyKey, next);
|
|
4229
|
+
return next;
|
|
4230
|
+
}
|
|
4231
|
+
isCurrentValueRequest(propertyKey, requestVersion, source) {
|
|
4232
|
+
return (this.valueRequestVersions.get(propertyKey) === requestVersion &&
|
|
4233
|
+
this.valueSourcesByKey.get(propertyKey) === source);
|
|
4234
|
+
}
|
|
4235
|
+
cacheAndPublishPropertyValueOptions(propertyKey, values) {
|
|
4236
|
+
this.valueOptionsByKey.set(propertyKey, values);
|
|
4237
|
+
this.publishPropertyValueOptions(propertyKey, values, false);
|
|
4238
|
+
}
|
|
4239
|
+
/** Publish only the active property's Values tab and loading state. */
|
|
4240
|
+
publishPropertyValueOptions(propertyKey, values, loading) {
|
|
4241
|
+
if ((this.propertyKey() ?? '') !== propertyKey)
|
|
4242
|
+
return;
|
|
4199
4243
|
this.quickOptions.update((opts) => ({ ...opts, values }));
|
|
4200
|
-
this.valuesLoading.set(
|
|
4244
|
+
this.valuesLoading.set(loading);
|
|
4201
4245
|
this.updateVisibleTabs();
|
|
4202
4246
|
}
|
|
4203
4247
|
/** Translate a `dashboardBuilder.*` key, falling back when it is missing. */
|
|
@@ -23098,23 +23142,46 @@ class ActionService {
|
|
|
23098
23142
|
// The target dashboard page id is configured via `config.targetPageId`
|
|
23099
23143
|
// (decoupled from the action's own GUID `id`); fall back to `action.id` for
|
|
23100
23144
|
// legacy actions that stored the target there. The host routes dashboards
|
|
23101
|
-
// at `.../dashboards/:dashboardId
|
|
23102
|
-
//
|
|
23145
|
+
// at `.../dashboards/:dashboardId`; the admin builder uses
|
|
23146
|
+
// `.../dashboard-builder/manage/:id`. Preserve those static segments and
|
|
23147
|
+
// replace only the active id so the host reloads the target page.
|
|
23103
23148
|
// Same-tab navigation (not a new tab) so it loads in place.
|
|
23104
23149
|
const targetPageId = action.config?.['targetPageId'] ?? action.id;
|
|
23105
|
-
//
|
|
23106
|
-
//
|
|
23107
|
-
//
|
|
23108
|
-
const
|
|
23109
|
-
|
|
23110
|
-
|
|
23111
|
-
undefined;
|
|
23112
|
-
const urlTree = this.
|
|
23150
|
+
// A dynamically-created dashboard item can inject the root ActivatedRoute.
|
|
23151
|
+
// Prefer the item route only when it owns URL segments; otherwise use the
|
|
23152
|
+
// routed builder/viewer context published through the singleton service.
|
|
23153
|
+
const publishedRoute = this.dashboardService.activatedRoute();
|
|
23154
|
+
const route = this.hasLocalUrlSegments(activatedRoute)
|
|
23155
|
+
? activatedRoute
|
|
23156
|
+
: (publishedRoute ?? activatedRoute ?? this.activatedRoute ?? undefined);
|
|
23157
|
+
const urlTree = this.createSiblingPageUrlTree(targetPageId, queryParams, route);
|
|
23158
|
+
this.navigateToTarget(action, urlTree);
|
|
23159
|
+
}
|
|
23160
|
+
/**
|
|
23161
|
+
* Replace the active dashboard id without dropping static segments from a
|
|
23162
|
+
* host route such as `manage/:id`. Angular's `../` moves by route-config
|
|
23163
|
+
* level, so from that route it resolves to `dashboard-builder/{target}` and
|
|
23164
|
+
* the host wildcard redirects to All Workspaces (issue #1140).
|
|
23165
|
+
*/
|
|
23166
|
+
createSiblingPageUrlTree(targetPageId, queryParams, route) {
|
|
23167
|
+
const currentSegments = route?.snapshot?.url
|
|
23168
|
+
?.map((segment) => segment.path)
|
|
23169
|
+
.filter((segment) => segment !== '') ?? [];
|
|
23170
|
+
if (route?.parent && currentSegments.length > 0) {
|
|
23171
|
+
return this.router.createUrlTree([...currentSegments.slice(0, -1), targetPageId], {
|
|
23172
|
+
queryParams,
|
|
23173
|
+
queryParamsHandling: 'merge',
|
|
23174
|
+
relativeTo: route.parent,
|
|
23175
|
+
});
|
|
23176
|
+
}
|
|
23177
|
+
return this.router.createUrlTree(['../', targetPageId], {
|
|
23113
23178
|
queryParams,
|
|
23114
23179
|
queryParamsHandling: 'merge',
|
|
23115
23180
|
relativeTo: route,
|
|
23116
23181
|
});
|
|
23117
|
-
|
|
23182
|
+
}
|
|
23183
|
+
hasLocalUrlSegments(route) {
|
|
23184
|
+
return (route?.snapshot?.url?.length ?? 0) > 0;
|
|
23118
23185
|
}
|
|
23119
23186
|
/**
|
|
23120
23187
|
* Navigate to the clicked entity's level workspace:
|
|
@@ -23152,7 +23219,11 @@ class ActionService {
|
|
|
23152
23219
|
String(recordId),
|
|
23153
23220
|
'level-workspace',
|
|
23154
23221
|
]);
|
|
23155
|
-
|
|
23222
|
+
// This absolute route belongs to the app-client. In the control-panel
|
|
23223
|
+
// builder, Router.navigateByUrl would feed it to the admin router, whose
|
|
23224
|
+
// wildcard redirects to All Workspaces. A browser-level current-tab
|
|
23225
|
+
// navigation lets the correct application shell load.
|
|
23226
|
+
this.navigateToTarget(action, urlTree, true);
|
|
23156
23227
|
}
|
|
23157
23228
|
/**
|
|
23158
23229
|
* The chart's selected workspace id (first URL segment). Sourced from the
|
|
@@ -23490,7 +23561,7 @@ class ActionService {
|
|
|
23490
23561
|
// "Dialog header"), not from the chart that opened it.
|
|
23491
23562
|
const header = resolveDashboardDialogHeader(dialogConfig);
|
|
23492
23563
|
// Dynamically import DashboardDialogComponent to avoid circular dependency
|
|
23493
|
-
import('./masterteam-dashboard-builder-dashboard-dialog.component-
|
|
23564
|
+
import('./masterteam-dashboard-builder-dashboard-dialog.component-BjQF7eiP.mjs').then(({ DashboardDialogComponent }) => {
|
|
23494
23565
|
// Open dialog using ModalService
|
|
23495
23566
|
this.modalService.openModal(DashboardDialogComponent, 'dialog', {
|
|
23496
23567
|
header: header.title,
|
|
@@ -23669,11 +23740,15 @@ class ActionService {
|
|
|
23669
23740
|
* Open navigation actions in their configured browser target. Persisted
|
|
23670
23741
|
* actions without this setting keep the documented current-tab default.
|
|
23671
23742
|
*/
|
|
23672
|
-
navigateToTarget(action, urlTree) {
|
|
23743
|
+
navigateToTarget(action, urlTree, requiresApplicationNavigation = false) {
|
|
23673
23744
|
if (action.config?.['navigationTarget'] === 'newTab') {
|
|
23674
23745
|
this.openInNewTab(urlTree);
|
|
23675
23746
|
return;
|
|
23676
23747
|
}
|
|
23748
|
+
if (requiresApplicationNavigation) {
|
|
23749
|
+
window.open(this.router.serializeUrl(urlTree), '_self');
|
|
23750
|
+
return;
|
|
23751
|
+
}
|
|
23677
23752
|
this.router.navigateByUrl(urlTree);
|
|
23678
23753
|
}
|
|
23679
23754
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: ActionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
@@ -50343,4 +50418,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
50343
50418
|
*/
|
|
50344
50419
|
|
|
50345
50420
|
export { ComparisonChartHandler as $, EntityPreviewCardComponent as A, ListStatisticCardComponent as B, CardContentComponent as C, DashboardItemStoreService as D, EChartComponent as E, FilterUtilsService as F, SkeletonCardComponent as G, HeaderCardComponent as H, resolveStatisticIconPlacement as I, StatisticCardComponent as J, TopbarCardComponent as K, LastHistoryLevelCardComponent as L, ChartDataService as M, BarChartHandler as N, PieChartHandler as O, PropertiesCardComponent as P, StackBarChartHandler as Q, axisFormatters as R, StaticFiltersComponent as S, TableCardComponent as T, groupDatesByYearAndMonth as U, GaugeChartHandler as V, TableViewHandler as W, OverviewCardHandler as X, TimelineHandler as Y, LineChartHandler as Z, SnapshotHandler as _, DashboardItem as a, GetChartActionsPipe as a$, SplitterChartHandler as a0, LevelCardHandler as a1, MapChartHandler as a2, RingGaugeChartHandler as a3, SPlusChartHandler as a4, PhaseGateStepperHandler as a5, formatCurrency as a6, getCurrencySuffix as a7, formatPercentage as a8, formatNumber as a9, StackBarControlUi as aA, ManageItem as aB, CHART_TYPES as aC, ManageItemService as aD, GeneralSettings as aE, DataSourceSettings as aF, ActionsSettings as aG, ChartViewer as aH, StyleStudioDrawer as aI, StyleSettingsRenderer as aJ, expandResetPatches as aK, StyleField as aL, SegmentedField as aM, ColorListField as aN, ArrayBuilderField as aO, KeyValueMapField as aP, LegendOrderField as aQ, ItemCardMenuComponent as aR, ChartFilterDrawer as aS, ItemContextToolbarComponent as aT, ItemConfigPopoverComponent as aU, GuidedConfigDialogComponent as aV, FilterChipsBarComponent as aW, FilterBuilderComponent as aX, DatasourcePanelComponent as aY, SchemaControlRendererComponent as aZ, FilterByGroupPipe as a_, formatDate as aa, createAxisFormatter as ab, createTooltipFormatter as ac, formatAxisLabel as ad, formatWordsUnderBar as ae, formatXAxis as af, handleFiltersForCustom as ag, handleFilterForCard as ah, handleFilterForSnapshot as ai, DashboardList as aj, MODULE_CLASSIFICATION_LOG as ak, MODULE_CLASSIFICATION_LOG_NAME as al, isLogClassification as am, HTTPMethod as an, DashboardBuilderService as ao, DashboardStoreService as ap, isManagePagesDeleteResult as aq, ManagePages as ar, ManageBreadcrumb as as, ManageFilterOnPage as at, DynamicFiltersConfig as au, ChartSettingsDrawer as av, DisplaySettings as aw, DefaultControlUi as ax, PieControlUi as ay, BarControlUi as az, DashboardDialogHeader as b, ItemGuidanceService as b$, CHART_CAPABILITIES as b0, getCapabilityById as b1, resolveCapability as b2, toBackendChartType as b3, normalizeChartTypeForRequest as b4, normalizeFilterOperation as b5, normalizeAggregateFunction as b6, normalizeFilters as b7, selectorFromLegacy as b8, moduleIdFromSelector as b9, STYLE_PRESETS as bA, presetsForCapability as bB, findPreset as bC, validate as bD, hasBlockingIssues as bE, groupIssuesByDomain as bF, parseAdvancedJson as bG, deepMerge$1 as bH, formatForEditor as bI, readByPath$1 as bJ, setByPath as bK, applyControlPatchToPersisted as bL, applyControlPatchesToPersisted as bM, getControlSchema as bN, listControlSchemaIds as bO, listControlSchemas as bP, getFallbackControlSchema as bQ, flattenSchema as bR, resolveDisplayFields as bS, buildDisplayFieldPredicate as bT, bindingKey as bU, getBinding as bV, listBindings as bW, listBindingsForChart as bX, readBoundValue as bY, ITEM_GUIDANCE_REGISTRY as bZ, describeGuidance as b_, toBackendSourceLink as ba, toFormSourceLink as bb, normalizeOnLoad as bc, normalizeBeforeSave as bd, normalizeBeforeRequest as be, CONFIG_DOMAINS as bf, domainsForCapability as bg, findDomain as bh, POPOVER_TABS as bi, POPOVER_TAB_SPECS as bj, titleToUi as bk, applyTitleToPersisted as bl, datasourceToUi as bm, fieldsToUi as bn, filtersToUi as bo, styleToUi as bp, applyStyleToPersisted as bq, layoutToUi as br, applyLayoutToPersisted as bs, labelLegendFormatToUi as bt, applyLabelLegendFormatToPersisted as bu, behaviorToUi as bv, applyBehaviorToPersisted as bw, applyFilterChipsToPersisted as bx, persistedToUi as by, buildAssembly as bz, cloneDeep$1 as c, DashboardBuilder as d, DashboardViewer as e, switchAllKeysSmall$1 as f, getNestedData as g, dynamicTextReplace as h, dynamicReorder as i, generalConfiguration as j, formatValue as k, getLocalizedTitle as l, sortChartData as m, addCommasToNumber as n, sortDataTableView as o, isMobilePlatform$1 as p, getColorFromConditions as q, resolveDashboardDialogHeader as r, switchAllKeysToLower as s, CardFilterComponent as t, DynamicFiltersComponent as u, CardInfoComponent as v, ChartCardComponent as w, resolveEntityUserPhoto as x, EntityInfoComponent as y, normalizeDashboardCardEntityValue as z };
|
|
50346
|
-
//# sourceMappingURL=masterteam-dashboard-builder-masterteam-dashboard-builder-
|
|
50421
|
+
//# sourceMappingURL=masterteam-dashboard-builder-masterteam-dashboard-builder-CotqczE9.mjs.map
|