@masterteam/dashboard-builder 0.0.104 → 0.0.105
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 +20 -0
- package/fesm2022/{masterteam-dashboard-builder-dashboard-dialog.component-C3X9UhZk.mjs → masterteam-dashboard-builder-dashboard-dialog.component-SArcXK1q.mjs} +2 -2
- package/fesm2022/{masterteam-dashboard-builder-dashboard-dialog.component-C3X9UhZk.mjs.map → masterteam-dashboard-builder-dashboard-dialog.component-SArcXK1q.mjs.map} +1 -1
- package/fesm2022/{masterteam-dashboard-builder-masterteam-dashboard-builder-CodhML2K.mjs → masterteam-dashboard-builder-masterteam-dashboard-builder-B5FHNszT.mjs} +130 -29
- package/fesm2022/masterteam-dashboard-builder-masterteam-dashboard-builder-B5FHNszT.mjs.map +1 -0
- package/fesm2022/masterteam-dashboard-builder.mjs +1 -1
- package/package.json +3 -3
- package/types/masterteam-dashboard-builder.d.ts +23 -2
- package/fesm2022/masterteam-dashboard-builder-masterteam-dashboard-builder-CodhML2K.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -322,6 +322,11 @@ Legacy generic-table configs are still read;
|
|
|
322
322
|
`lookupProperty` becomes the phase-status role, with conservative runtime
|
|
323
323
|
fallbacks until the remaining roles are configured and saved.
|
|
324
324
|
|
|
325
|
+
Phase columns follow `phaseOrderProperty` when it is set; without it they keep
|
|
326
|
+
the order the rows arrive in. The backend does not return phases in phase
|
|
327
|
+
order, and the PhaseGate module currently has no order property to bind, so a
|
|
328
|
+
table with no order role shows the backend's row order.
|
|
329
|
+
|
|
325
330
|
## Phase Gate Stepper Contract
|
|
326
331
|
|
|
327
332
|
`phase-gate-stepper-card` is a `TableView` chart request (`requestType:
|
|
@@ -426,6 +431,8 @@ ignored.
|
|
|
426
431
|
laid out in a box that reserves the legend's edge so the two never overlap.
|
|
427
432
|
Overlapping marker labels are dropped rather than stacked
|
|
428
433
|
(`labelLayout.hideOverlap`); the marker stays and its name is in the tooltip.
|
|
434
|
+
The pin is anchored by its tip (`symbolOffset: [0, '-50%']`), so the point of
|
|
435
|
+
the pin, not its middle, sits on the record's coordinate.
|
|
429
436
|
The map can be panned and zoomed (`geo.roam`). Clicking a marker emits
|
|
430
437
|
`pointClick`, which `chart-card` forwards as an `onAction` `click`
|
|
431
438
|
carrying the record — but only when the widget has actions configured.
|
|
@@ -645,6 +652,19 @@ both under `parentFilter` and as flat keys. This keeps current
|
|
|
645
652
|
current history entry instead of pushing one, so Back leaves the dashboard
|
|
646
653
|
rather than first stepping to the same URL without its defaults. Filters the
|
|
647
654
|
user applies still push an entry each.
|
|
655
|
+
- Grouped bars place each bar by its category key, not its position. The axis
|
|
656
|
+
is the response's `categories` in their order, plus any category that has
|
|
657
|
+
bars but no label (e.g. "NA"); a bar type a category lacks leaves an empty
|
|
658
|
+
slot. Each data point carries the stacked bar's click keys: `key` (bar type),
|
|
659
|
+
`xAxisKey` / `xAxisKeyFilter` (category key) and `title` (category label).
|
|
660
|
+
- Ring gauges clip each ring at the end of the 0–100 scale; the value label
|
|
661
|
+
still shows the real number. A response with no row returns `noData: true`,
|
|
662
|
+
so the card shows its empty state instead of a bare gauge.
|
|
663
|
+
- The Gauge Chart's "Show progress ring" (`configAsType.showGaugeProgress`) is
|
|
664
|
+
opt-in: only `true` draws the ring, so gauges saved without it look as they
|
|
665
|
+
always did.
|
|
666
|
+
- Table cells read Checkbox values the backend sends as text (`"True"` /
|
|
667
|
+
`"False"`), so a false value shows "No".
|
|
648
668
|
|
|
649
669
|
## Development
|
|
650
670
|
|
|
@@ -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-B5FHNszT.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-SArcXK1q.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"masterteam-dashboard-builder-dashboard-dialog.component-C3X9UhZk.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,WAA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AG,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-SArcXK1q.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,CA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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;;;;"}
|
|
@@ -8204,7 +8204,8 @@ const GAUGE_SECTION = {
|
|
|
8204
8204
|
label: 'Show progress ring',
|
|
8205
8205
|
type: 'boolean',
|
|
8206
8206
|
path: 'clientConfig.configAsType.showGaugeProgress',
|
|
8207
|
-
|
|
8207
|
+
// Off, to match the handler: an unset value draws no ring.
|
|
8208
|
+
default: false,
|
|
8208
8209
|
},
|
|
8209
8210
|
{
|
|
8210
8211
|
key: 'gaugeColor',
|
|
@@ -15339,22 +15340,40 @@ class BarChartHandler {
|
|
|
15339
15340
|
? [0, groupedBorderRadius, groupedBorderRadius, 0]
|
|
15340
15341
|
: [groupedBorderRadius, groupedBorderRadius, 0, 0]
|
|
15341
15342
|
: [0, 0, 0, 0];
|
|
15343
|
+
// One axis slot per category. The backend lists every category of a
|
|
15344
|
+
// lookup/status property, in that property's order, but sends bars only
|
|
15345
|
+
// for the categories that have data, and only the bar types each of them
|
|
15346
|
+
// has. So a bar is placed by its category key, never by its position.
|
|
15347
|
+
const axisCategories = this.resolveGroupedCategories(categories, dataResponse.values || []);
|
|
15348
|
+
const slotOf = this.createCategorySlotResolver(axisCategories);
|
|
15342
15349
|
// Build series for each bar type
|
|
15343
15350
|
const seriesMap = new Map();
|
|
15344
15351
|
barTypes.forEach((type) => {
|
|
15345
|
-
seriesMap.set(type.key,
|
|
15352
|
+
seriesMap.set(type.key, new Array(axisCategories.length).fill(null));
|
|
15346
15353
|
});
|
|
15347
15354
|
// Populate series data from values
|
|
15348
15355
|
(dataResponse.values || []).forEach((categoryData) => {
|
|
15356
|
+
const slot = slotOf(categoryData?.category);
|
|
15357
|
+
if (slot === undefined)
|
|
15358
|
+
return;
|
|
15359
|
+
const category = axisCategories[slot];
|
|
15349
15360
|
(categoryData.bars || []).forEach((bar) => {
|
|
15350
|
-
const
|
|
15351
|
-
|
|
15352
|
-
|
|
15353
|
-
|
|
15354
|
-
|
|
15355
|
-
|
|
15356
|
-
|
|
15357
|
-
|
|
15361
|
+
const barKey = this.resolveBarKey(bar);
|
|
15362
|
+
const seriesData = seriesMap.get(barKey);
|
|
15363
|
+
if (!seriesData)
|
|
15364
|
+
return;
|
|
15365
|
+
// Same click keys as a stacked bar's data point: `key` is the bar type,
|
|
15366
|
+
// `xAxisKey` / `xAxisKeyFilter` / `title` name the category, so an
|
|
15367
|
+
// action can tell which bar of which category was clicked.
|
|
15368
|
+
seriesData[slot] = {
|
|
15369
|
+
value: bar.value,
|
|
15370
|
+
key: barKey,
|
|
15371
|
+
xAxisKey: category.key,
|
|
15372
|
+
xAxisKeyFilter: category.key,
|
|
15373
|
+
title: category.label,
|
|
15374
|
+
extraValues: bar.extraValues,
|
|
15375
|
+
groupValues: bar.groupValues,
|
|
15376
|
+
};
|
|
15358
15377
|
});
|
|
15359
15378
|
});
|
|
15360
15379
|
// Build series
|
|
@@ -15378,11 +15397,7 @@ class BarChartHandler {
|
|
|
15378
15397
|
});
|
|
15379
15398
|
});
|
|
15380
15399
|
// Category labels
|
|
15381
|
-
const xAxisData =
|
|
15382
|
-
if (typeof cat === 'string')
|
|
15383
|
-
return cat;
|
|
15384
|
-
return cat.label || cat.name || cat.key || '';
|
|
15385
|
-
});
|
|
15400
|
+
const xAxisData = axisCategories.map((category) => category.label);
|
|
15386
15401
|
const legendPosition = this.normalizeLegendPosition(configAsType?.['legend']?.position);
|
|
15387
15402
|
const legendVisible = configAsType?.['legend']?.show ?? true;
|
|
15388
15403
|
const baseConfig = {
|
|
@@ -15534,6 +15549,65 @@ class BarChartHandler {
|
|
|
15534
15549
|
resolveBarKey(bar) {
|
|
15535
15550
|
return String(bar?.barType ?? bar?.key ?? '');
|
|
15536
15551
|
}
|
|
15552
|
+
/**
|
|
15553
|
+
* The grouped chart's category axis: the response's `categories` in their
|
|
15554
|
+
* order, then any category that has bars but no label. Labels exist only
|
|
15555
|
+
* for lookup/status categories, and even there they cover only the items,
|
|
15556
|
+
* not the "NA" bucket for records with no value.
|
|
15557
|
+
*/
|
|
15558
|
+
resolveGroupedCategories(categories, values) {
|
|
15559
|
+
const resolved = [];
|
|
15560
|
+
const seen = new Set();
|
|
15561
|
+
const seenLoose = new Set();
|
|
15562
|
+
const add = (key, label) => {
|
|
15563
|
+
if (seen.has(key))
|
|
15564
|
+
return;
|
|
15565
|
+
seen.add(key);
|
|
15566
|
+
seenLoose.add(key.toLowerCase());
|
|
15567
|
+
resolved.push({ key, label });
|
|
15568
|
+
};
|
|
15569
|
+
categories.forEach((cat) => {
|
|
15570
|
+
if (typeof cat === 'string') {
|
|
15571
|
+
add(cat, cat);
|
|
15572
|
+
return;
|
|
15573
|
+
}
|
|
15574
|
+
const key = String(cat?.key ?? '');
|
|
15575
|
+
add(key, cat?.label || cat?.name || key);
|
|
15576
|
+
});
|
|
15577
|
+
values.forEach((value) => {
|
|
15578
|
+
if (value?.category === null || value?.category === undefined)
|
|
15579
|
+
return;
|
|
15580
|
+
const key = String(value.category);
|
|
15581
|
+
// A labelled category in other casing already has its slot.
|
|
15582
|
+
if (seenLoose.has(key.toLowerCase()))
|
|
15583
|
+
return;
|
|
15584
|
+
add(key, key);
|
|
15585
|
+
});
|
|
15586
|
+
return resolved;
|
|
15587
|
+
}
|
|
15588
|
+
/**
|
|
15589
|
+
* Finds a category's axis slot. The backend groups categories with a
|
|
15590
|
+
* case-sensitive comparison, so an exact match comes first; a
|
|
15591
|
+
* case-insensitive one only rescues a key whose casing differs between
|
|
15592
|
+
* `categories` and `values`.
|
|
15593
|
+
*/
|
|
15594
|
+
createCategorySlotResolver(categories) {
|
|
15595
|
+
const exact = new Map();
|
|
15596
|
+
const loose = new Map();
|
|
15597
|
+
categories.forEach(({ key }, index) => {
|
|
15598
|
+
if (!exact.has(key))
|
|
15599
|
+
exact.set(key, index);
|
|
15600
|
+
const lower = key.toLowerCase();
|
|
15601
|
+
if (!loose.has(lower))
|
|
15602
|
+
loose.set(lower, index);
|
|
15603
|
+
});
|
|
15604
|
+
return (category) => {
|
|
15605
|
+
if (category === null || category === undefined)
|
|
15606
|
+
return undefined;
|
|
15607
|
+
const key = String(category);
|
|
15608
|
+
return exact.get(key) ?? loose.get(key.toLowerCase());
|
|
15609
|
+
};
|
|
15610
|
+
}
|
|
15537
15611
|
normalizeLegendPosition(position) {
|
|
15538
15612
|
return position === 'top' ||
|
|
15539
15613
|
position === 'right' ||
|
|
@@ -17664,7 +17738,9 @@ class GaugeChartHandler {
|
|
|
17664
17738
|
// Pass-5: gauge handler now honors schema-bound controls.
|
|
17665
17739
|
// - configAsType.gaugeColor → series color override
|
|
17666
17740
|
// - configAsType.showGaugeProgress → progress ring visibility
|
|
17667
|
-
|
|
17741
|
+
// The ring is opt-in: gauges saved before the control worked never drew
|
|
17742
|
+
// one, and an unset value must keep them looking the same.
|
|
17743
|
+
const showGaugeProgress = configAsType?.['showGaugeProgress'] === true;
|
|
17668
17744
|
const gaugeColor = configAsType?.['gaugeColor'];
|
|
17669
17745
|
// Pass-5: apply the configured number format to the displayed gauge value.
|
|
17670
17746
|
// Gated on clientConfig.format being present so legacy gauges (no format)
|
|
@@ -17692,9 +17768,6 @@ class GaugeChartHandler {
|
|
|
17692
17768
|
item.display ||
|
|
17693
17769
|
item.key,
|
|
17694
17770
|
key: item.key,
|
|
17695
|
-
progress: {
|
|
17696
|
-
show: showGaugeProgress,
|
|
17697
|
-
},
|
|
17698
17771
|
detail: {
|
|
17699
17772
|
valueAnimation: true,
|
|
17700
17773
|
formatter: numberFormat
|
|
@@ -17734,6 +17807,9 @@ class GaugeChartHandler {
|
|
|
17734
17807
|
type: 'gauge',
|
|
17735
17808
|
min: gaugeMin,
|
|
17736
17809
|
max: gaugeMax,
|
|
17810
|
+
// ECharts reads `progress.show` only from the series. Set on each
|
|
17811
|
+
// data item, as it was before, the toggle did nothing.
|
|
17812
|
+
progress: { show: showGaugeProgress },
|
|
17737
17813
|
avoidLabelOverlap: false,
|
|
17738
17814
|
label: {
|
|
17739
17815
|
show: configAsType?.['label']?.['show'],
|
|
@@ -21319,7 +21395,10 @@ class RingGaugeChartHandler {
|
|
|
21319
21395
|
show: true,
|
|
21320
21396
|
overlap: false,
|
|
21321
21397
|
roundCap: true,
|
|
21322
|
-
|
|
21398
|
+
// Keeps each ring inside the gauge's 0–100 scale. Unclipped, a
|
|
21399
|
+
// value over 100 kept drawing past the end of the arc, round to a
|
|
21400
|
+
// full circle at 200. The value label still shows the real number.
|
|
21401
|
+
clip: true,
|
|
21323
21402
|
itemStyle: {
|
|
21324
21403
|
borderWidth: gapBetweenBars,
|
|
21325
21404
|
borderColor: '#E6EBF8',
|
|
@@ -21561,7 +21640,8 @@ class RingGaugeChartHandler {
|
|
|
21561
21640
|
return { values: [] };
|
|
21562
21641
|
}
|
|
21563
21642
|
/**
|
|
21564
|
-
*
|
|
21643
|
+
* Options for a response with no row. `noData` makes the chart card show its
|
|
21644
|
+
* "No data" state; without it the card drew a bare, empty gauge.
|
|
21565
21645
|
*/
|
|
21566
21646
|
getEmptyChartOptions() {
|
|
21567
21647
|
return {
|
|
@@ -21572,6 +21652,7 @@ class RingGaugeChartHandler {
|
|
|
21572
21652
|
},
|
|
21573
21653
|
],
|
|
21574
21654
|
graphic: [],
|
|
21655
|
+
noData: true,
|
|
21575
21656
|
};
|
|
21576
21657
|
}
|
|
21577
21658
|
/**
|
|
@@ -23836,7 +23917,7 @@ class ActionService {
|
|
|
23836
23917
|
// "Dialog header"), not from the chart that opened it.
|
|
23837
23918
|
const header = resolveDashboardDialogHeader(dialogConfig);
|
|
23838
23919
|
// Dynamically import DashboardDialogComponent to avoid circular dependency
|
|
23839
|
-
import('./masterteam-dashboard-builder-dashboard-dialog.component-
|
|
23920
|
+
import('./masterteam-dashboard-builder-dashboard-dialog.component-SArcXK1q.mjs').then(({ DashboardDialogComponent }) => {
|
|
23840
23921
|
// Open dialog using ModalService
|
|
23841
23922
|
this.modalService.openModal(DashboardDialogComponent, 'dialog', {
|
|
23842
23923
|
header: header.title,
|
|
@@ -27651,6 +27732,10 @@ function buildMapChartOption(groups, region, legend, font = {}) {
|
|
|
27651
27732
|
coordinateSystem: 'geo',
|
|
27652
27733
|
symbol: MAP_MARKER_PATH,
|
|
27653
27734
|
symbolSize: 16,
|
|
27735
|
+
// ECharts centres a symbol on its coordinate, but this pin points with
|
|
27736
|
+
// its bottom tip. Lifting it by half its height puts the tip, not the
|
|
27737
|
+
// pin's middle, on the location.
|
|
27738
|
+
symbolOffset: [0, '-50%'],
|
|
27654
27739
|
itemStyle: { color },
|
|
27655
27740
|
data: group.points.map((point) => ({
|
|
27656
27741
|
name: point.displayName || '',
|
|
@@ -28981,6 +29066,25 @@ function resolveEntityUserPhoto(value) {
|
|
|
28981
29066
|
}
|
|
28982
29067
|
return '';
|
|
28983
29068
|
}
|
|
29069
|
+
/**
|
|
29070
|
+
* The dashboard backend sends a Checkbox value as text (`"True"` / `"False"`),
|
|
29071
|
+
* so `Boolean(value)` read every non-empty string, `"False"` included, as
|
|
29072
|
+
* checked. Parsed the same way as the table card's `toBooleanValue`.
|
|
29073
|
+
*/
|
|
29074
|
+
function resolveEntityCheckbox(value) {
|
|
29075
|
+
if (typeof value === 'boolean')
|
|
29076
|
+
return value;
|
|
29077
|
+
if (typeof value === 'number')
|
|
29078
|
+
return value === 1;
|
|
29079
|
+
if (typeof value === 'string') {
|
|
29080
|
+
const text = value.trim().toLowerCase();
|
|
29081
|
+
return text === 'true' || text === '1' || text === 'yes';
|
|
29082
|
+
}
|
|
29083
|
+
if (value && typeof value === 'object' && 'value' in value) {
|
|
29084
|
+
return resolveEntityCheckbox(value.value);
|
|
29085
|
+
}
|
|
29086
|
+
return false;
|
|
29087
|
+
}
|
|
28984
29088
|
class EntityInfoComponent {
|
|
28985
29089
|
transloco = inject(TranslocoService);
|
|
28986
29090
|
httpContext = new HttpContext().set(REQUEST_CONTEXT, {
|
|
@@ -29089,10 +29193,7 @@ class EntityInfoComponent {
|
|
|
29089
29193
|
return value.details?.color || value.color || '';
|
|
29090
29194
|
}, ...(ngDevMode ? [{ debugName: "lookupColor" }] : /* istanbul ignore next */ []));
|
|
29091
29195
|
// === Checkbox values ===
|
|
29092
|
-
checkboxValue = computed(() => {
|
|
29093
|
-
const value = this.data()?.value;
|
|
29094
|
-
return Boolean(value);
|
|
29095
|
-
}, ...(ngDevMode ? [{ debugName: "checkboxValue" }] : /* istanbul ignore next */ []));
|
|
29196
|
+
checkboxValue = computed(() => resolveEntityCheckbox(this.data()?.value), ...(ngDevMode ? [{ debugName: "checkboxValue" }] : /* istanbul ignore next */ []));
|
|
29096
29197
|
checkboxLabel = computed(() => this.transloco.translate(this.checkboxValue() ? 'dashboardBuilder.yes' : 'dashboardBuilder.no'), ...(ngDevMode ? [{ debugName: "checkboxLabel" }] : /* istanbul ignore next */ []));
|
|
29097
29198
|
// === Status values ===
|
|
29098
29199
|
statusName = computed(() => {
|
|
@@ -48910,7 +49011,7 @@ class DashboardList {
|
|
|
48910
49011
|
this.dashboards.reload();
|
|
48911
49012
|
}
|
|
48912
49013
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: DashboardList, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
48913
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: DashboardList, isStandalone: true, selector: "mt-dashboard-list", inputs: { isPage: { classPropertyName: "isPage", publicName: "isPage", isSignal: true, isRequired: false, transformFunction: null }, pageTitle: { classPropertyName: "pageTitle", publicName: "pageTitle", isSignal: true, isRequired: false, transformFunction: null }, baseRoute: { classPropertyName: "baseRoute", publicName: "baseRoute", isSignal: true, isRequired: false, transformFunction: null }, showCreateButton: { classPropertyName: "showCreateButton", publicName: "showCreateButton", isSignal: true, isRequired: false, transformFunction: null }, showViewButton: { classPropertyName: "showViewButton", publicName: "showViewButton", isSignal: true, isRequired: false, transformFunction: null }, showEditButton: { classPropertyName: "showEditButton", publicName: "showEditButton", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dashboardAction: "dashboardAction", dashboardCreated: "dashboardCreated" }, queries: [{ propertyName: "headerEnd", first: true, predicate: ["headerEnd"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "nameTpl", first: true, predicate: ["nameTpl"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-container *transloco=\"let t; prefix: 'dashboardBuilder.dashboard'\">\r\n <!-- Page mode -->\r\n @if (isPage()) {\r\n <mt-page\r\n [title]=\"pageTitle() || t('dashboards')\"\r\n [avatarIcon]=\"'chart.bar-chart-square-03'\"\r\n [avatarStyle]=\"{\r\n '--p-avatar-background': 'var(--p-cyan-100)',\r\n '--p-avatar-color': 'var(--p-cyan-700)',\r\n }\"\r\n >\r\n @if (headerEnd(); as hostActions) {\r\n <ng-template #headerEnd>\r\n <ng-container *ngTemplateOutlet=\"hostActions\" />\r\n </ng-template>\r\n }\r\n <!-- Content -->\r\n <ng-container *ngTemplateOutlet=\"tableContent\" />\r\n </mt-page>\r\n } @else {\r\n <!-- Non-page mode -->\r\n <div class=\"dashboard-list space-y-3\">\r\n <!-- Header -->\r\n <h2 class=\"text-2xl font-semibold text-surface-900 dark:text-surface-0\">\r\n {{ t(\"dashboards\") }}\r\n </h2>\r\n\r\n <!-- Content -->\r\n <ng-container *ngTemplateOutlet=\"tableContent\" />\r\n </div>\r\n }\r\n\r\n <!-- Reusable table content template -->\r\n <ng-template #tableContent>\r\n <!-- Custom cell templates -->\r\n <ng-template #nameTpl let-row>\r\n <span class=\"font-semibold text-surface-900 dark:text-surface-0\">\r\n {{ getDashboardName(row) }}\r\n </span>\r\n </ng-template>\r\n\r\n <!-- Dashboard Table -->\r\n <mt-table\r\n [data]=\"dashboardList()\"\r\n [columns]=\"tableColumns()\"\r\n [actions]=\"tableActions()\"\r\n [rowActions]=\"rowActions()\"\r\n [loading]=\"isLoading()\"\r\n [showFilters]=\"true\"\r\n [generalSearch]=\"true\"\r\n dataKey=\"id\"\r\n storageKey=\"dashboard-list-table\"\r\n (cellChange)=\"onToggleChange($event)\"\r\n />\r\n </ng-template>\r\n</ng-container>\r\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "component", type: Table, selector: "mt-table", inputs: ["filters", "data", "columns", "rowActions", "size", "showGridlines", "stripedRows", "selectableRows", "clickableRows", "generalSearch", "lazyLocalSearch", "showFilters", "filterMode", "loading", "updating", "lazy", "lazyLocalSort", "lazyTotalRecords", "reorderableColumns", "reorderableRows", "dataKey", "storageKey", "storageMode", "persistStateExclude", "exportable", "printable", "groupable", "groupCountMap", "cellClickFilter", "freezeActions", "virtualScroll", "virtualScrollItemSize", "scrollHeight", "printTitle", "exportFilename", "actionShape", "rowActionsLoadingFn", "tableLayout", "noCard", "tabs", "tabsOptionLabel", "tabsOptionValue", "activeTab", "actions", "captionStartTemplate", "captionEndTemplate", "emptyTitle", "emptyDescription", "emptyActionLabel", "emptyActionIcon", "externalFiltersActive", "paginatorPosition", "alwaysShowPaginator", "rowsPerPageOptions", "pageSize", "currentPage", "first", "filterTerm", "groupBy", "sortField", "sortDirection"], outputs: ["selectionChange", "cellChange", "lazyLoad", "columnReorder", "rowReorder", "rowClick", "emptyAction", "filtersCleared", "rowActionsRequested", "filtersChange", "activeTabChange", "onTabChange", "pageSizeChange", "currentPageChange", "firstChange", "filterTermChange", "groupByChange", "sortFieldChange", "sortDirectionChange"] }, { kind: "component", type: Page, selector: "mt-page", inputs: ["backButton", "backButtonIcon", "avatarIcon", "avatarStyle", "avatarShape", "title", "tabs", "activeTab", "contentClass", "contentId"], outputs: ["backButtonClick", "tabChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
49014
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: DashboardList, isStandalone: true, selector: "mt-dashboard-list", inputs: { isPage: { classPropertyName: "isPage", publicName: "isPage", isSignal: true, isRequired: false, transformFunction: null }, pageTitle: { classPropertyName: "pageTitle", publicName: "pageTitle", isSignal: true, isRequired: false, transformFunction: null }, baseRoute: { classPropertyName: "baseRoute", publicName: "baseRoute", isSignal: true, isRequired: false, transformFunction: null }, showCreateButton: { classPropertyName: "showCreateButton", publicName: "showCreateButton", isSignal: true, isRequired: false, transformFunction: null }, showViewButton: { classPropertyName: "showViewButton", publicName: "showViewButton", isSignal: true, isRequired: false, transformFunction: null }, showEditButton: { classPropertyName: "showEditButton", publicName: "showEditButton", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dashboardAction: "dashboardAction", dashboardCreated: "dashboardCreated" }, queries: [{ propertyName: "headerEnd", first: true, predicate: ["headerEnd"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "nameTpl", first: true, predicate: ["nameTpl"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-container *transloco=\"let t; prefix: 'dashboardBuilder.dashboard'\">\r\n <!-- Page mode -->\r\n @if (isPage()) {\r\n <mt-page\r\n [title]=\"pageTitle() || t('dashboards')\"\r\n [avatarIcon]=\"'chart.bar-chart-square-03'\"\r\n [avatarStyle]=\"{\r\n '--p-avatar-background': 'var(--p-cyan-100)',\r\n '--p-avatar-color': 'var(--p-cyan-700)',\r\n }\"\r\n >\r\n @if (headerEnd(); as hostActions) {\r\n <ng-template #headerEnd>\r\n <ng-container *ngTemplateOutlet=\"hostActions\" />\r\n </ng-template>\r\n }\r\n <!-- Content -->\r\n <ng-container *ngTemplateOutlet=\"tableContent\" />\r\n </mt-page>\r\n } @else {\r\n <!-- Non-page mode -->\r\n <div class=\"dashboard-list space-y-3\">\r\n <!-- Header -->\r\n <h2 class=\"text-2xl font-semibold text-surface-900 dark:text-surface-0\">\r\n {{ t(\"dashboards\") }}\r\n </h2>\r\n\r\n <!-- Content -->\r\n <ng-container *ngTemplateOutlet=\"tableContent\" />\r\n </div>\r\n }\r\n\r\n <!-- Reusable table content template -->\r\n <ng-template #tableContent>\r\n <!-- Custom cell templates -->\r\n <ng-template #nameTpl let-row>\r\n <span class=\"font-semibold text-surface-900 dark:text-surface-0\">\r\n {{ getDashboardName(row) }}\r\n </span>\r\n </ng-template>\r\n\r\n <!-- Dashboard Table -->\r\n <mt-table\r\n [data]=\"dashboardList()\"\r\n [columns]=\"tableColumns()\"\r\n [actions]=\"tableActions()\"\r\n [rowActions]=\"rowActions()\"\r\n [loading]=\"isLoading()\"\r\n [showFilters]=\"true\"\r\n [generalSearch]=\"true\"\r\n dataKey=\"id\"\r\n storageKey=\"dashboard-list-table\"\r\n (cellChange)=\"onToggleChange($event)\"\r\n />\r\n </ng-template>\r\n</ng-container>\r\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "component", type: Table, selector: "mt-table", inputs: ["filters", "data", "columns", "rowActions", "size", "showGridlines", "stripedRows", "selectableRows", "clickableRows", "generalSearch", "lazyLocalSearch", "showFilters", "filterMode", "filterCloseOnOutsideClick", "loading", "updating", "lazy", "lazyLocalSort", "lazyTotalRecords", "reorderableColumns", "reorderableRows", "dataKey", "storageKey", "storageMode", "persistStateExclude", "exportable", "printable", "groupable", "groupCountMap", "cellClickFilter", "freezeActions", "virtualScroll", "virtualScrollItemSize", "scrollHeight", "printTitle", "exportFilename", "actionShape", "rowActionsLoadingFn", "tableLayout", "noCard", "tabs", "tabsOptionLabel", "tabsOptionValue", "activeTab", "actions", "captionStartTemplate", "captionEndTemplate", "emptyTitle", "emptyDescription", "emptyActionLabel", "emptyActionIcon", "externalFiltersActive", "paginatorPosition", "alwaysShowPaginator", "rowsPerPageOptions", "pageSize", "currentPage", "first", "filterTerm", "groupBy", "sortField", "sortDirection"], outputs: ["selectionChange", "cellChange", "lazyLoad", "columnReorder", "rowReorder", "rowClick", "emptyAction", "filtersCleared", "rowActionsRequested", "filtersChange", "activeTabChange", "onTabChange", "pageSizeChange", "currentPageChange", "firstChange", "filterTermChange", "groupByChange", "sortFieldChange", "sortDirectionChange"] }, { kind: "component", type: Page, selector: "mt-page", inputs: ["backButton", "backButtonIcon", "avatarIcon", "avatarStyle", "avatarShape", "title", "tabs", "activeTab", "contentClass", "contentId"], outputs: ["backButtonClick", "tabChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
48914
49015
|
}
|
|
48915
49016
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: DashboardList, decorators: [{
|
|
48916
49017
|
type: Component,
|
|
@@ -51929,5 +52030,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
51929
52030
|
* Generated bundle index. Do not edit.
|
|
51930
52031
|
*/
|
|
51931
52032
|
|
|
51932
|
-
export {
|
|
51933
|
-
//# sourceMappingURL=masterteam-dashboard-builder-masterteam-dashboard-builder-
|
|
52033
|
+
export { ChartDataService as $, normalizeDashboardCardEntityValue as A, mergePropertyAppearance as B, CardContentComponent as C, DashboardItemStoreService as D, EChartComponent as E, FilterUtilsService as F, EntityPreviewCardComponent as G, HeaderCardComponent as H, ListStatisticCardComponent as I, MAP_FALLBACK_COLORS as J, isPlottable as K, LastHistoryLevelCardComponent as L, MAP_MARKER_PATH as M, plottableGroups as N, buildMapChartOption as O, PropertiesCardComponent as P, MAP_REGIONS as Q, DEFAULT_MAP_REGION_KEY as R, StaticFiltersComponent as S, MAP_DATA_ATTRIBUTION as T, resolveMapRegion as U, MapViewComponent as V, SkeletonCardComponent as W, resolveStatisticIconPlacement as X, StatisticCardComponent as Y, TableCardComponent as Z, TopbarCardComponent as _, DashboardItem as a, SegmentedField as a$, observeNearViewport as a0, loadImmediately as a1, DASHBOARD_ITEM_VISIBILITY as a2, BarChartHandler as a3, PieChartHandler as a4, StackBarChartHandler as a5, axisFormatters as a6, groupDatesByYearAndMonth as a7, GaugeChartHandler as a8, TableViewHandler as a9, MODULE_CLASSIFICATION_LOG_NAME as aA, isLogClassification as aB, HTTPMethod as aC, DashboardBuilderService as aD, DashboardStoreService as aE, isManagePagesDeleteResult as aF, ManagePages as aG, ManageBreadcrumb as aH, ManageFilterOnPage as aI, DynamicFiltersConfig as aJ, ChartSettingsDrawer as aK, DisplaySettings as aL, DefaultControlUi as aM, PieControlUi as aN, BarControlUi as aO, StackBarControlUi as aP, ManageItem as aQ, CHART_TYPES as aR, ManageItemService as aS, GeneralSettings as aT, DataSourceSettings as aU, ActionsSettings as aV, ChartViewer as aW, StyleStudioDrawer as aX, StyleSettingsRenderer as aY, expandResetPatches as aZ, StyleField as a_, OverviewCardHandler as aa, TimelineHandler as ab, LineChartHandler as ac, SnapshotHandler as ad, ComparisonChartHandler as ae, SplitterChartHandler as af, LevelCardHandler as ag, MapChartHandler as ah, RingGaugeChartHandler as ai, SPlusChartHandler as aj, PhaseGateStepperHandler as ak, formatCurrency as al, getCurrencySuffix as am, formatPercentage as an, formatNumber as ao, formatDate as ap, createAxisFormatter as aq, createTooltipFormatter as ar, formatAxisLabel as as, formatWordsUnderBar as at, formatXAxis as au, handleFiltersForCustom as av, handleFilterForCard as aw, handleFilterForSnapshot as ax, DashboardList as ay, MODULE_CLASSIFICATION_LOG as az, DashboardDialogHeader as b, applyControlPatchToPersisted as b$, ColorListField as b0, ArrayBuilderField as b1, KeyValueMapField as b2, LegendOrderField as b3, ItemCardMenuComponent as b4, ChartFilterDrawer as b5, ItemContextToolbarComponent as b6, ItemConfigPopoverComponent as b7, GuidedConfigDialogComponent as b8, FilterChipsBarComponent as b9, applyTitleToPersisted as bA, datasourceToUi as bB, fieldsToUi as bC, filtersToUi as bD, styleToUi as bE, applyStyleToPersisted as bF, layoutToUi as bG, applyLayoutToPersisted as bH, labelLegendFormatToUi as bI, applyLabelLegendFormatToPersisted as bJ, behaviorToUi as bK, applyBehaviorToPersisted as bL, applyFilterChipsToPersisted as bM, persistedToUi as bN, buildAssembly as bO, STYLE_PRESETS as bP, presetsForCapability as bQ, findPreset as bR, validate as bS, hasBlockingIssues as bT, groupIssuesByDomain as bU, parseAdvancedJson as bV, deepMerge$1 as bW, formatForEditor as bX, CUSTOM_COLOR_OPTION as bY, readByPath$1 as bZ, setByPath as b_, FilterBuilderComponent as ba, DatasourcePanelComponent as bb, SchemaControlRendererComponent as bc, FilterByGroupPipe as bd, GetChartActionsPipe as be, CHART_CAPABILITIES as bf, getCapabilityById as bg, resolveCapability as bh, toBackendChartType as bi, normalizeChartTypeForRequest as bj, normalizeFilterOperation as bk, normalizeAggregateFunction as bl, normalizeFilters as bm, selectorFromLegacy as bn, moduleIdFromSelector as bo, toBackendSourceLink as bp, toFormSourceLink as bq, normalizeOnLoad as br, normalizeBeforeSave as bs, normalizeBeforeRequest as bt, CONFIG_DOMAINS as bu, domainsForCapability as bv, findDomain as bw, POPOVER_TABS as bx, POPOVER_TAB_SPECS as by, titleToUi as bz, cloneDeep$1 as c, applyControlPatchesToPersisted as c0, getControlSchema as c1, listControlSchemaIds as c2, listControlSchemas as c3, getFallbackControlSchema as c4, flattenSchema as c5, resolveDisplayFields as c6, buildDisplayFieldPredicate as c7, bindingKey as c8, getBinding as c9, listBindings as ca, listBindingsForChart as cb, readBoundValue as cc, ITEM_GUIDANCE_REGISTRY as cd, describeGuidance as ce, ItemGuidanceService as cf, 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, resolveEntityCheckbox as y, EntityInfoComponent as z };
|
|
52034
|
+
//# sourceMappingURL=masterteam-dashboard-builder-masterteam-dashboard-builder-B5FHNszT.mjs.map
|