@masterteam/dashboard-builder 0.0.117 → 0.0.118

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (18) hide show
  1. package/README.md +65 -75
  2. package/assets/i18n/ar.json +3 -1
  3. package/assets/i18n/en.json +3 -1
  4. package/fesm2022/{masterteam-dashboard-builder-dashboard-dialog.component-C3tEnWfy.mjs → masterteam-dashboard-builder-dashboard-dialog.component-DFy4sv6t.mjs} +2 -2
  5. package/fesm2022/{masterteam-dashboard-builder-dashboard-dialog.component-C3tEnWfy.mjs.map → masterteam-dashboard-builder-dashboard-dialog.component-DFy4sv6t.mjs.map} +1 -1
  6. package/fesm2022/{masterteam-dashboard-builder-masterteam-dashboard-builder-CMWrKUhw.mjs → masterteam-dashboard-builder-masterteam-dashboard-builder-2MrkLmtr.mjs} +590 -682
  7. package/fesm2022/masterteam-dashboard-builder-masterteam-dashboard-builder-2MrkLmtr.mjs.map +1 -0
  8. package/fesm2022/{masterteam-dashboard-builder-table-card.component-kHPxfvAb.mjs → masterteam-dashboard-builder-table-card.component-CKAm_KXn.mjs} +6 -6
  9. package/fesm2022/masterteam-dashboard-builder-table-card.component-CKAm_KXn.mjs.map +1 -0
  10. package/fesm2022/masterteam-dashboard-builder.mjs +1 -1
  11. package/package.json +7 -6
  12. package/types/masterteam-dashboard-builder.d.ts +47 -141
  13. package/fesm2022/masterteam-dashboard-builder-masterteam-dashboard-builder-CMWrKUhw.mjs.map +0 -1
  14. package/fesm2022/masterteam-dashboard-builder-riyadh.geo-CE3Amxoa.mjs +0 -3902
  15. package/fesm2022/masterteam-dashboard-builder-riyadh.geo-CE3Amxoa.mjs.map +0 -1
  16. package/fesm2022/masterteam-dashboard-builder-saudi.geo-C_9VzPCF.mjs +0 -2530
  17. package/fesm2022/masterteam-dashboard-builder-saudi.geo-C_9VzPCF.mjs.map +0 -1
  18. package/fesm2022/masterteam-dashboard-builder-table-card.component-kHPxfvAb.mjs.map +0 -1
@@ -1,11 +1,11 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, signal, Injectable, computed, Pipe, input, ViewEncapsulation, ChangeDetectionStrategy, Component, effect, untracked, forwardRef, ViewChild, DestroyRef, output, InjectionToken, ElementRef, NgZone, PLATFORM_ID, viewChild, ChangeDetectorRef, model, HostListener, contentChild } from '@angular/core';
2
+ import { inject, signal, Injectable, computed, Pipe, input, ViewEncapsulation, ChangeDetectionStrategy, Component, effect, untracked, forwardRef, ViewChild, DestroyRef, output, InjectionToken, ElementRef, NgZone, PLATFORM_ID, viewChild, afterNextRender, ChangeDetectorRef, model, HostListener, contentChild } from '@angular/core';
3
3
  import * as i1$1 from '@angular/common';
4
- import { CommonModule, DatePipe, isPlatformBrowser, DecimalPipe } from '@angular/common';
4
+ import { CommonModule, DatePipe, isPlatformBrowser, DOCUMENT, DecimalPipe } from '@angular/common';
5
5
  import * as i1 from '@angular/forms';
6
6
  import { FormsModule, NG_VALUE_ACCESSOR, FormBuilder, Validators, ReactiveFormsModule, NG_VALIDATORS, FormRecord, FormControl, FormGroup } from '@angular/forms';
7
7
  import { Router, ActivatedRoute } from '@angular/router';
8
- import { TranslocoService, TranslocoDirective } from '@jsverse/transloco';
8
+ import { TranslocoService, TranslocoDirective, TranslocoPipe } from '@jsverse/transloco';
9
9
  import * as i2$3 from 'angular-gridster2';
10
10
  import { DirTypes, GridsterModule } from 'angular-gridster2';
11
11
  import { Button } from '@masterteam/components/button';
@@ -21871,8 +21871,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
21871
21871
  /**
21872
21872
  * Map Chart Handler
21873
21873
  *
21874
- * Handles geographic visualization for ECharts maps and Leaflet maps.
21875
- * Matches exactly the old MapChartService behavior.
21874
+ * Prepares grouped geographic records for the dashboard map.
21876
21875
  */
21877
21876
  // Fallback list of colors for dynamic assignment
21878
21877
  const FALLBACK_COLORS = [
@@ -21886,180 +21885,12 @@ const FALLBACK_COLORS = [
21886
21885
  '#9a60b4',
21887
21886
  '#ea7ccc',
21888
21887
  ];
21889
- // Custom marker path from SVG
21890
- const CUSTOM_MARKER_PATH = 'path://M6.99998 0.666687C5.24336 0.666599 3.55769 1.35982 2.30935 2.59568C1.06101 3.83154 0.350879 5.51016 0.333313 7.26669C0.333313 11.8334 6.20831 16.9167 6.45831 17.1334C6.60926 17.2625 6.80135 17.3334 6.99998 17.3334C7.19861 17.3334 7.3907 17.2625 7.54165 17.1334C7.83331 16.9167 13.6666 11.8334 13.6666 7.26669C13.6491 5.51016 12.939 3.83154 11.6906 2.59568C10.4423 1.35982 8.7566 0.666599 6.99998 0.666687ZM6.99998 9.83335C6.42312 9.83335 5.85921 9.66229 5.37957 9.34181C4.89992 9.02132 4.52609 8.5658 4.30533 8.03285C4.08458 7.4999 4.02682 6.91345 4.13936 6.34767C4.2519 5.7819 4.52968 5.2622 4.93758 4.85429C5.34549 4.44639 5.86519 4.1686 6.43097 4.05606C6.99674 3.94352 7.58319 4.00128 8.11614 4.22204C8.64909 4.44279 9.10461 4.81663 9.4251 5.29627C9.74559 5.77592 9.91665 6.33983 9.91665 6.91669C9.91665 7.29971 9.8412 7.67898 9.69463 8.03285C9.54805 8.38671 9.33321 8.70825 9.06237 8.97908C8.79154 9.24992 8.47001 9.46476 8.11614 9.61134C7.76227 9.75791 7.383 9.83335 6.99998 9.83335Z';
21891
21888
  class MapChartHandler {
21892
21889
  storeService = inject(DashboardStoreService);
21893
- mapCity = 'Saudi';
21894
- /**
21895
- * handleMapChart - for ECharts geo map
21896
- * Returns ECharts option directly
21897
- */
21890
+ /** Compatibility with saved configurations that use the older handler key. */
21898
21891
  handleMapChart(dataResponse, config) {
21899
- // 1) Extract keys from config
21900
- const configAsType = config.clientConfig?.configAsType || {};
21901
- const legendPosition = this.normalizeLegendPosition(configAsType?.['legend']?.position);
21902
- const locationKeyConfig = config.serviceConfig?.query?.['locationProperty']?.toLowerCase();
21903
- const groupingKeyConfig = config.serviceConfig?.query?.['groupingProperty']?.toLowerCase();
21904
- const mapType = config.clientConfig?.['map'];
21905
- if (mapType && mapType !== 'SaudiArabia') {
21906
- this.mapCity = 'RiyadhGovernorate';
21907
- }
21908
- // Group records by the grouping property
21909
- const groupedRecords = new Map();
21910
- // 2) Iterate over data.values
21911
- const values = dataResponse?.values || [];
21912
- // Table/Map tooltips sit beside the rows: tooltips[i] is values[i]'s (#1842).
21913
- const tooltips = Array.isArray(dataResponse?.tooltips)
21914
- ? dataResponse.tooltips
21915
- : [];
21916
- values.forEach((record, recordIndex) => {
21917
- const recordKeys = Object.keys(record);
21918
- const locationKeyInRecord = recordKeys.find((k) => k.toLowerCase() === locationKeyConfig);
21919
- if (!locationKeyInRecord)
21920
- return;
21921
- const locationProp = record[locationKeyInRecord];
21922
- if (!locationProp || !locationProp.value)
21923
- return;
21924
- // parse lat/lon
21925
- const lat = parseFloat(locationProp.value.lat);
21926
- const lon = parseFloat(locationProp.value.lon);
21927
- if (isNaN(lat) || isNaN(lon))
21928
- return;
21929
- const groupName = this.resolveGroupName(record, groupingKeyConfig);
21930
- // location display
21931
- const locationDisplay = locationProp.value.display_name || 'Untitled';
21932
- // one scatter point
21933
- const pointData = {
21934
- name: locationDisplay,
21935
- value: [lon, lat, locationDisplay],
21936
- extraValues: record,
21937
- tooltip: tooltips[recordIndex],
21938
- };
21939
- // Insert into grouped map
21940
- if (!groupedRecords.has(groupName)) {
21941
- groupedRecords.set(groupName, []);
21942
- }
21943
- groupedRecords.get(groupName).push(pointData);
21944
- });
21945
- // 3) Build dynamic color assignment & create scatter series
21946
- const seriesList = [];
21947
- const legendNames = [];
21948
- const colorAssignments = new Map();
21949
- let colorIndex = 0;
21950
- groupedRecords.forEach((points, groupName) => {
21951
- let color = colorAssignments.get(groupName);
21952
- if (!color) {
21953
- color = FALLBACK_COLORS[colorIndex % FALLBACK_COLORS.length];
21954
- colorIndex++;
21955
- colorAssignments.set(groupName, color);
21956
- }
21957
- // create series
21958
- seriesList.push({
21959
- name: groupName,
21960
- type: 'scatter',
21961
- coordinateSystem: 'geo',
21962
- data: points,
21963
- symbolSize: 10,
21964
- symbol: CUSTOM_MARKER_PATH,
21965
- itemStyle: { color },
21966
- label: {
21967
- show: true,
21968
- position: 'bottom',
21969
- distance: 8,
21970
- color: '#333',
21971
- fontFamily: generalConfiguration?.fontConfig?.fontFamily,
21972
- fontSize: generalConfiguration?.fontConfig?.fontSizeConfig?.category,
21973
- fontWeight: 'normal',
21974
- formatter: (value) => {
21975
- return formatWordsUnderBar(value?.data?.name);
21976
- },
21977
- },
21978
- emphasis: {
21979
- itemStyle: {
21980
- color,
21981
- shadowBlur: 10,
21982
- shadowColor: 'rgba(0, 0, 0, 0.3)',
21983
- },
21984
- label: {
21985
- fontWeight: 'bold',
21986
- },
21987
- },
21988
- zlevel: 2,
21989
- });
21990
- // The single group of an ungrouped map has no name to list.
21991
- if (groupName)
21992
- legendNames.push(groupName);
21993
- });
21994
- // 4) Construct final ECharts option
21995
- const option = {
21996
- tooltip: {
21997
- trigger: 'item',
21998
- formatter: (params) => params.name,
21999
- },
22000
- geo: {
22001
- map: this.mapCity,
22002
- roam: true,
22003
- center: [46.6753, 24.7136],
22004
- zoom: 1.8,
22005
- itemStyle: {
22006
- areaColor: '#f5f5f5',
22007
- borderColor: '#ccc',
22008
- borderWidth: 1.5,
22009
- },
22010
- emphasis: {
22011
- itemStyle: {
22012
- areaColor: '#e6e6e6',
22013
- },
22014
- },
22015
- label: { show: false },
22016
- },
22017
- legend: {
22018
- type: 'scroll',
22019
- ...this.getLegendLayout(legendPosition),
22020
- data: legendNames,
22021
- icon: configAsType?.['legend']?.['iconType'] || 'circle',
22022
- show: configAsType?.['legend']?.show ?? true,
22023
- textStyle: {
22024
- fontFamily: generalConfiguration?.fontConfig?.fontFamily,
22025
- fontSize: generalConfiguration?.fontConfig?.fontSizeConfig?.legend,
22026
- color: '#333',
22027
- },
22028
- },
22029
- series: seriesList,
22030
- };
22031
- return option;
21892
+ return this.handleLeafletMap(dataResponse, config);
22032
21893
  }
22033
- normalizeLegendPosition(position) {
22034
- return position === 'top' ||
22035
- position === 'right' ||
22036
- position === 'bottom' ||
22037
- position === 'left'
22038
- ? position
22039
- : 'bottom';
22040
- }
22041
- getLegendLayout(position) {
22042
- switch (position) {
22043
- case 'top':
22044
- return { top: '3%', left: 'center', orient: 'horizontal' };
22045
- case 'left':
22046
- return { left: '2%', top: 'middle', orient: 'vertical' };
22047
- case 'right':
22048
- return { right: '2%', top: 'middle', orient: 'vertical' };
22049
- case 'bottom':
22050
- default:
22051
- return { bottom: '3%', left: 'center', orient: 'horizontal' };
22052
- }
22053
- }
22054
- /**
22055
- * The group a record is plotted under.
22056
- *
22057
- * The grouping property is optional: with none configured every record
22058
- * lands in one unnamed group, which the map draws without a legend entry.
22059
- * A record with no grouping value is grouped as "Unknown" rather than
22060
- * dropped — the backend omits null properties from the row, so a missing
22061
- * key means "no value", not "not requested".
22062
- */
22063
21894
  resolveGroupName(record, groupingKey) {
22064
21895
  if (!groupingKey)
22065
21896
  return '';
@@ -25087,7 +24918,7 @@ class ActionService {
25087
24918
  // "Dialog header"), not from the chart that opened it.
25088
24919
  const header = resolveDashboardDialogHeader(dialogConfig);
25089
24920
  // Dynamically import DashboardDialogComponent to avoid circular dependency
25090
- import('./masterteam-dashboard-builder-dashboard-dialog.component-C3tEnWfy.mjs').then(({ DashboardDialogComponent }) => {
24921
+ import('./masterteam-dashboard-builder-dashboard-dialog.component-DFy4sv6t.mjs').then(({ DashboardDialogComponent }) => {
25091
24922
  // Open dialog using ModalService
25092
24923
  this.modalService.openModal(DashboardDialogComponent, 'dialog', {
25093
24924
  header: header.title,
@@ -25712,128 +25543,128 @@ class CardFilterComponent {
25712
25543
  }
25713
25544
  }
25714
25545
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: CardFilterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
25715
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: CardFilterComponent, isStandalone: true, selector: "mt-card-filter", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: false, transformFunction: null }, dashboardId: { classPropertyName: "dashboardId", publicName: "dashboardId", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { filterChange: "filterChange" }, ngImport: i0, template: `
25716
- <div class="card-filter" *transloco="let t; prefix: 'dashboard'">
25717
- @switch (filterType()) {
25718
- @case ('select') {
25719
- <select
25720
- class="filter-select"
25721
- [(ngModel)]="selectedValue"
25722
- (ngModelChange)="onFilterChange($event)"
25723
- >
25724
- @if (placeholder()) {
25725
- <option [value]="null" disabled>{{ placeholder() }}</option>
25726
- }
25727
- @for (option of options(); track option.key) {
25728
- <option [value]="option.value">
25729
- {{
25730
- option.label[langCode()] || option.label['en'] || option.key
25731
- }}
25732
- </option>
25733
- }
25734
- </select>
25735
- }
25736
- @case ('multiSelect') {
25737
- <div class="multi-select-container">
25738
- <!-- Simplified multi-select -->
25739
- <select
25740
- class="filter-select"
25741
- multiple
25742
- [(ngModel)]="selectedValues"
25743
- (ngModelChange)="onMultiFilterChange($event)"
25744
- >
25745
- @for (option of options(); track option.key) {
25746
- <option [value]="option.value">
25747
- {{
25748
- option.label[langCode()] || option.label['en'] || option.key
25749
- }}
25750
- </option>
25751
- }
25752
- </select>
25753
- </div>
25754
- }
25755
- @case ('dateRange') {
25756
- <div class="date-range-container">
25757
- <input
25758
- type="date"
25759
- class="filter-date"
25760
- [(ngModel)]="startDate"
25761
- (ngModelChange)="onDateChange()"
25762
- />
25763
- <span class="date-separator">-</span>
25764
- <input
25765
- type="date"
25766
- class="filter-date"
25767
- [(ngModel)]="endDate"
25768
- (ngModelChange)="onDateChange()"
25769
- />
25770
- </div>
25771
- }
25772
- }
25773
- </div>
25546
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: CardFilterComponent, isStandalone: true, selector: "mt-card-filter", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: false, transformFunction: null }, dashboardId: { classPropertyName: "dashboardId", publicName: "dashboardId", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { filterChange: "filterChange" }, ngImport: i0, template: `
25547
+ <div class="card-filter" *transloco="let t; prefix: 'dashboard'">
25548
+ @switch (filterType()) {
25549
+ @case ('select') {
25550
+ <select
25551
+ class="filter-select"
25552
+ [(ngModel)]="selectedValue"
25553
+ (ngModelChange)="onFilterChange($event)"
25554
+ >
25555
+ @if (placeholder()) {
25556
+ <option [value]="null" disabled>{{ placeholder() }}</option>
25557
+ }
25558
+ @for (option of options(); track option.key) {
25559
+ <option [value]="option.value">
25560
+ {{
25561
+ option.label[langCode()] || option.label['en'] || option.key
25562
+ }}
25563
+ </option>
25564
+ }
25565
+ </select>
25566
+ }
25567
+ @case ('multiSelect') {
25568
+ <div class="multi-select-container">
25569
+ <!-- Simplified multi-select -->
25570
+ <select
25571
+ class="filter-select"
25572
+ multiple
25573
+ [(ngModel)]="selectedValues"
25574
+ (ngModelChange)="onMultiFilterChange($event)"
25575
+ >
25576
+ @for (option of options(); track option.key) {
25577
+ <option [value]="option.value">
25578
+ {{
25579
+ option.label[langCode()] || option.label['en'] || option.key
25580
+ }}
25581
+ </option>
25582
+ }
25583
+ </select>
25584
+ </div>
25585
+ }
25586
+ @case ('dateRange') {
25587
+ <div class="date-range-container">
25588
+ <input
25589
+ type="date"
25590
+ class="filter-date"
25591
+ [(ngModel)]="startDate"
25592
+ (ngModelChange)="onDateChange()"
25593
+ />
25594
+ <span class="date-separator">-</span>
25595
+ <input
25596
+ type="date"
25597
+ class="filter-date"
25598
+ [(ngModel)]="endDate"
25599
+ (ngModelChange)="onDateChange()"
25600
+ />
25601
+ </div>
25602
+ }
25603
+ }
25604
+ </div>
25774
25605
  `, isInline: true, styles: [".card-filter{display:flex;align-items:center;gap:.5rem}.filter-select{padding:.375rem .75rem;border:1px solid #e0e0e0;border-radius:.375rem;font-size:.875rem;background:#fff;color:#333;min-width:120px;cursor:pointer;transition:border-color .15s ease}.filter-select:focus{outline:none;border-color:#4caf50}.filter-select:hover{border-color:#bbb}.multi-select-container{position:relative}.date-range-container{display:flex;align-items:center;gap:.25rem}.filter-date{padding:.375rem .5rem;border:1px solid #e0e0e0;border-radius:.375rem;font-size:.875rem;background:#fff;color:#333}.filter-date:focus{outline:none;border-color:#4caf50}.date-separator{color:#999;font-size:.875rem}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i1.SelectMultipleControlValueAccessor, selector: "select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
25775
25606
  }
25776
25607
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: CardFilterComponent, decorators: [{
25777
25608
  type: Component,
25778
- args: [{ selector: 'mt-card-filter', standalone: true, imports: [CommonModule, FormsModule, TranslocoDirective], template: `
25779
- <div class="card-filter" *transloco="let t; prefix: 'dashboard'">
25780
- @switch (filterType()) {
25781
- @case ('select') {
25782
- <select
25783
- class="filter-select"
25784
- [(ngModel)]="selectedValue"
25785
- (ngModelChange)="onFilterChange($event)"
25786
- >
25787
- @if (placeholder()) {
25788
- <option [value]="null" disabled>{{ placeholder() }}</option>
25789
- }
25790
- @for (option of options(); track option.key) {
25791
- <option [value]="option.value">
25792
- {{
25793
- option.label[langCode()] || option.label['en'] || option.key
25794
- }}
25795
- </option>
25796
- }
25797
- </select>
25798
- }
25799
- @case ('multiSelect') {
25800
- <div class="multi-select-container">
25801
- <!-- Simplified multi-select -->
25802
- <select
25803
- class="filter-select"
25804
- multiple
25805
- [(ngModel)]="selectedValues"
25806
- (ngModelChange)="onMultiFilterChange($event)"
25807
- >
25808
- @for (option of options(); track option.key) {
25809
- <option [value]="option.value">
25810
- {{
25811
- option.label[langCode()] || option.label['en'] || option.key
25812
- }}
25813
- </option>
25814
- }
25815
- </select>
25816
- </div>
25817
- }
25818
- @case ('dateRange') {
25819
- <div class="date-range-container">
25820
- <input
25821
- type="date"
25822
- class="filter-date"
25823
- [(ngModel)]="startDate"
25824
- (ngModelChange)="onDateChange()"
25825
- />
25826
- <span class="date-separator">-</span>
25827
- <input
25828
- type="date"
25829
- class="filter-date"
25830
- [(ngModel)]="endDate"
25831
- (ngModelChange)="onDateChange()"
25832
- />
25833
- </div>
25834
- }
25835
- }
25836
- </div>
25609
+ args: [{ selector: 'mt-card-filter', standalone: true, imports: [CommonModule, FormsModule, TranslocoDirective], template: `
25610
+ <div class="card-filter" *transloco="let t; prefix: 'dashboard'">
25611
+ @switch (filterType()) {
25612
+ @case ('select') {
25613
+ <select
25614
+ class="filter-select"
25615
+ [(ngModel)]="selectedValue"
25616
+ (ngModelChange)="onFilterChange($event)"
25617
+ >
25618
+ @if (placeholder()) {
25619
+ <option [value]="null" disabled>{{ placeholder() }}</option>
25620
+ }
25621
+ @for (option of options(); track option.key) {
25622
+ <option [value]="option.value">
25623
+ {{
25624
+ option.label[langCode()] || option.label['en'] || option.key
25625
+ }}
25626
+ </option>
25627
+ }
25628
+ </select>
25629
+ }
25630
+ @case ('multiSelect') {
25631
+ <div class="multi-select-container">
25632
+ <!-- Simplified multi-select -->
25633
+ <select
25634
+ class="filter-select"
25635
+ multiple
25636
+ [(ngModel)]="selectedValues"
25637
+ (ngModelChange)="onMultiFilterChange($event)"
25638
+ >
25639
+ @for (option of options(); track option.key) {
25640
+ <option [value]="option.value">
25641
+ {{
25642
+ option.label[langCode()] || option.label['en'] || option.key
25643
+ }}
25644
+ </option>
25645
+ }
25646
+ </select>
25647
+ </div>
25648
+ }
25649
+ @case ('dateRange') {
25650
+ <div class="date-range-container">
25651
+ <input
25652
+ type="date"
25653
+ class="filter-date"
25654
+ [(ngModel)]="startDate"
25655
+ (ngModelChange)="onDateChange()"
25656
+ />
25657
+ <span class="date-separator">-</span>
25658
+ <input
25659
+ type="date"
25660
+ class="filter-date"
25661
+ [(ngModel)]="endDate"
25662
+ (ngModelChange)="onDateChange()"
25663
+ />
25664
+ </div>
25665
+ }
25666
+ }
25667
+ </div>
25837
25668
  `, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".card-filter{display:flex;align-items:center;gap:.5rem}.filter-select{padding:.375rem .75rem;border:1px solid #e0e0e0;border-radius:.375rem;font-size:.875rem;background:#fff;color:#333;min-width:120px;cursor:pointer;transition:border-color .15s ease}.filter-select:focus{outline:none;border-color:#4caf50}.filter-select:hover{border-color:#bbb}.multi-select-container{position:relative}.date-range-container{display:flex;align-items:center;gap:.25rem}.filter-date{padding:.375rem .5rem;border:1px solid #e0e0e0;border-radius:.375rem;font-size:.875rem;background:#fff;color:#333}.filter-date:focus{outline:none;border-color:#4caf50}.date-separator{color:#999;font-size:.875rem}\n"] }]
25838
25669
  }], propDecorators: { config: [{ type: i0.Input, args: [{ isSignal: true, alias: "config", required: false }] }], dashboardId: [{ type: i0.Input, args: [{ isSignal: true, alias: "dashboardId", required: false }] }], filterChange: [{ type: i0.Output, args: ["filterChange"] }] } });
25839
25670
 
@@ -27744,30 +27575,30 @@ class CardInfoComponent {
27744
27575
  return typeof info.value === 'string' ? info.value : '';
27745
27576
  }, ...(ngDevMode ? [{ debugName: "tooltipContent" }] : /* istanbul ignore next */ []));
27746
27577
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: CardInfoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
27747
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: CardInfoComponent, isStandalone: true, selector: "mt-card-info", inputs: { cardInfo: { classPropertyName: "cardInfo", publicName: "cardInfo", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
27748
- @if (showInfo()) {
27749
- <span
27750
- class="card-info-icon"
27751
- [mtTooltip]="tooltipContent()"
27752
- tooltipPosition="bottom"
27753
- >
27754
- <i class="pi pi-info-circle"></i>
27755
- </span>
27756
- }
27578
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: CardInfoComponent, isStandalone: true, selector: "mt-card-info", inputs: { cardInfo: { classPropertyName: "cardInfo", publicName: "cardInfo", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
27579
+ @if (showInfo()) {
27580
+ <span
27581
+ class="card-info-icon"
27582
+ [mtTooltip]="tooltipContent()"
27583
+ tooltipPosition="bottom"
27584
+ >
27585
+ <i class="pi pi-info-circle"></i>
27586
+ </span>
27587
+ }
27757
27588
  `, isInline: true, styles: [".card-info-icon{display:inline-flex;align-items:center;justify-content:center;cursor:help;color:#666;font-size:1rem;transition:color .15s ease}.card-info-icon:hover{color:#333}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: Tooltip$1, selector: "[mtTooltip]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
27758
27589
  }
27759
27590
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: CardInfoComponent, decorators: [{
27760
27591
  type: Component,
27761
- args: [{ selector: 'mt-card-info', standalone: true, imports: [CommonModule, Tooltip$1], template: `
27762
- @if (showInfo()) {
27763
- <span
27764
- class="card-info-icon"
27765
- [mtTooltip]="tooltipContent()"
27766
- tooltipPosition="bottom"
27767
- >
27768
- <i class="pi pi-info-circle"></i>
27769
- </span>
27770
- }
27592
+ args: [{ selector: 'mt-card-info', standalone: true, imports: [CommonModule, Tooltip$1], template: `
27593
+ @if (showInfo()) {
27594
+ <span
27595
+ class="card-info-icon"
27596
+ [mtTooltip]="tooltipContent()"
27597
+ tooltipPosition="bottom"
27598
+ >
27599
+ <i class="pi pi-info-circle"></i>
27600
+ </span>
27601
+ }
27771
27602
  `, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".card-info-icon{display:inline-flex;align-items:center;justify-content:center;cursor:help;color:#666;font-size:1rem;transition:color .15s ease}.card-info-icon:hover{color:#333}\n"] }]
27772
27603
  }], propDecorators: { cardInfo: [{ type: i0.Input, args: [{ isSignal: true, alias: "cardInfo", required: false }] }] } });
27773
27604
 
@@ -27789,15 +27620,21 @@ function hasPointTooltip(tooltip) {
27789
27620
  function pointTooltipHtml(tooltip, moreLabel) {
27790
27621
  if (!hasPointTooltip(tooltip))
27791
27622
  return '';
27623
+ const lines = pointTooltipLines(tooltip, moreLabel).map(escapeHtml);
27624
+ return `<div style="margin-top:6px;padding-top:6px;border-top:1px solid rgba(128,128,128,.25);font-size:12px;line-height:1.5">${lines.join('<br/>')}</div>`;
27625
+ }
27626
+ function pointTooltipLines(tooltip, moreLabel) {
27627
+ if (!hasPointTooltip(tooltip))
27628
+ return [];
27792
27629
  const records = tooltip.records ?? [];
27793
- const field = (f) => `${escapeHtml(f.label || f.key)}: ${escapeHtml(f.displayValue ?? f.value ?? '–')}`;
27630
+ const field = (f) => `${f.label || f.key || ''}: ${String(f.displayValue ?? f.value ?? '–')}`;
27794
27631
  const lines = records.length === 1
27795
27632
  ? (records[0].fields ?? []).map(field)
27796
27633
  : records.map((record) => (record.fields ?? []).map(field).join(' · '));
27797
27634
  const remaining = Number(tooltip.remainingCount) || 0;
27798
27635
  if (remaining > 0)
27799
- lines.push(escapeHtml(moreLabel(remaining)));
27800
- return `<div style="margin-top:6px;padding-top:6px;border-top:1px solid rgba(128,128,128,.25);font-size:12px;line-height:1.5">${lines.join('<br/>')}</div>`;
27636
+ lines.push(moreLabel(remaining));
27637
+ return lines;
27801
27638
  }
27802
27639
 
27803
27640
  /**
@@ -29359,373 +29196,445 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
29359
29196
  `, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block;width:100%;height:100%;min-height:0;position:relative}.chart-wrapper{width:100%;height:96%;display:flex;justify-content:center;align-items:center;position:relative;min-height:0}.chart-wrapper.in-group-with-header{height:86%}.scroll-wrapper{width:100%;height:96%;overflow-x:auto;overflow-y:hidden;position:relative;min-height:0}.scroll-wrapper.in-group-with-header{height:86%}.chart{width:100%;height:100%;min-height:0}.chart-scroll{width:100%;height:100%;min-height:0;overflow-y:hidden}.custom-legend{position:absolute;bottom:10px;left:0;right:0;z-index:1000;background:transparent;padding:4px 8px;display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:4px;width:100%;max-width:100%}.custom-legend.has-scroll{bottom:25px}.custom-legend.custom-legend--top{top:10px;bottom:auto}.custom-legend.custom-legend--left{top:0;bottom:0;right:auto;width:auto;max-width:45%;flex-direction:column;justify-content:center;align-items:flex-start}.custom-legend.custom-legend--right{top:0;bottom:0;left:auto;width:auto;max-width:45%;flex-direction:column;justify-content:center;align-items:flex-start}.legend-item{display:flex;align-items:center;gap:3px;padding:2px 4px;border-radius:3px;cursor:pointer;transition:all .2s ease;-webkit-user-select:none;user-select:none;font-size:11px;white-space:nowrap;background:transparent;line-height:1.2;flex-direction:row}.legend-item:hover{background-color:#0000000d}.legend-item.disabled{opacity:.5}.legend-item.disabled .legend-text{text-decoration:line-through}.legend-icon{width:10px;height:10px;border-radius:50%;flex-shrink:0}.legend-text{font-family:inherit}\n"] }]
29360
29197
  }], ctorParameters: () => [], propDecorators: { dashboardId: [{ type: i0.Input, args: [{ isSignal: true, alias: "dashboardId", required: false }] }], chartConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "chartConfig", required: false }] }], configurationItem: [{ type: i0.Input, args: [{ isSignal: true, alias: "configurationItem", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], inGroup: [{ type: i0.Input, args: [{ isSignal: true, alias: "inGroup", required: false }] }], headerHidden: [{ type: i0.Input, args: [{ isSignal: true, alias: "headerHidden", required: false }] }], chartClick: [{ type: i0.Output, args: ["chartClick"] }], chartDblClick: [{ type: i0.Output, args: ["chartDblClick"] }] } });
29361
29198
 
29362
- /**
29363
- * Builds the ECharts `geo` + scatter option for the Map Chart widget.
29364
- *
29365
- * Kept pure and separate from the component so the grouping, colour assignment
29366
- * and coordinate filtering can be unit-tested without a DOM or an ECharts
29367
- * instance. Mirrors the legacy dashboardBuilder `MapChartService` option so the
29368
- * widget renders the same way it always did.
29369
- */
29370
- /** Marker silhouette, carried over from the legacy service's Figma export. */
29371
- const MAP_MARKER_PATH = 'path://M6.99998 0.666687C5.24336 0.666599 3.55769 1.35982 2.30935 2.59568C1.06101 3.83154 0.350879 5.51016 0.333313 7.26669C0.333313 11.8334 6.20831 16.9167 6.45831 17.1334C6.60926 17.2625 6.80135 17.3334 6.99998 17.3334C7.19861 17.3334 7.3907 17.2625 7.54165 17.1334C7.83331 16.9167 13.6666 11.8334 13.6666 7.26669C13.6491 5.51016 12.939 3.83154 11.6906 2.59568C10.4423 1.35982 8.7566 0.666599 6.99998 0.666687ZM6.99998 9.83335C6.42312 9.83335 5.85921 9.66229 5.37957 9.34181C4.89992 9.02132 4.52609 8.5658 4.30533 8.03285C4.08458 7.4999 4.02682 6.91345 4.13936 6.34767C4.2519 5.7819 4.52968 5.2622 4.93758 4.85429C5.34549 4.44639 5.86519 4.1686 6.43097 4.05606C6.99674 3.94352 7.58319 4.00128 8.11614 4.22204C8.64909 4.44279 9.10461 4.81663 9.4251 5.29627C9.74559 5.77592 9.91665 6.33983 9.91665 6.91669C9.91665 7.29971 9.8412 7.67898 9.69463 8.03285C9.54805 8.38671 9.33321 8.70825 9.06237 8.97908C8.79154 9.24992 8.47001 9.46476 8.11614 9.61134C7.76227 9.75791 7.383 9.83335 6.99998 9.83335Z';
29372
- /** Assigned in order to groups that carry no colour of their own. */
29373
- const MAP_FALLBACK_COLORS = [
29374
- '#5470c6',
29375
- '#91cc75',
29376
- '#fac858',
29377
- '#ee6666',
29378
- '#73c0de',
29379
- '#3ba272',
29380
- '#fc8452',
29381
- '#9a60b4',
29382
- '#ea7ccc',
29383
- ];
29384
- function isPlottable(point) {
29385
- const lat = Number(point?.lat);
29386
- const lon = Number(point?.lon);
29387
- return (Number.isFinite(lat) &&
29388
- Number.isFinite(lon) &&
29389
- lat >= -90 &&
29390
- lat <= 90 &&
29391
- lon >= -180 &&
29392
- lon <= 180);
29393
- }
29394
- /** Groups that have at least one record with usable coordinates. */
29199
+ const OPEN_FREE_MAP = 'https://tiles.openfreemap.org';
29200
+ const RASTER_STYLE = {
29201
+ version: 8,
29202
+ sources: {
29203
+ osm: {
29204
+ type: 'raster',
29205
+ tiles: ['https://tile.openstreetmap.org/{z}/{x}/{y}.png'],
29206
+ tileSize: 256,
29207
+ maxzoom: 19,
29208
+ attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap contributors</a>',
29209
+ },
29210
+ },
29211
+ layers: [{ id: 'osm', type: 'raster', source: 'osm' }],
29212
+ };
29213
+ let vectorStyle;
29214
+ function loadVectorStyle() {
29215
+ return (vectorStyle ??= fetchVectorStyle().then((style) => {
29216
+ if (!style)
29217
+ vectorStyle = undefined;
29218
+ return style;
29219
+ }));
29220
+ }
29221
+ async function fetchVectorStyle() {
29222
+ const controller = new AbortController();
29223
+ const timeout = setTimeout(() => controller.abort(), 4000);
29224
+ try {
29225
+ const response = await fetch(`${OPEN_FREE_MAP}/styles/liberty`, {
29226
+ signal: controller.signal,
29227
+ });
29228
+ if (!response.ok)
29229
+ return null;
29230
+ const style = (await response.json());
29231
+ return style?.version === 8 && style.sources && Array.isArray(style.layers)
29232
+ ? style
29233
+ : null;
29234
+ }
29235
+ catch {
29236
+ return null;
29237
+ }
29238
+ finally {
29239
+ clearTimeout(timeout);
29240
+ }
29241
+ }
29242
+ function placeLabelLayers(style) {
29243
+ return style.layers
29244
+ .filter((layer) => layer.type === 'symbol' &&
29245
+ JSON.stringify(layer.layout?.['text-field'] ?? '').includes('name'))
29246
+ .map((layer) => layer.id);
29247
+ }
29248
+ function placeName(arabic) {
29249
+ // Liberty also uses OpenMapTiles' underscore spelling for English names.
29250
+ return arabic
29251
+ ? ['coalesce', ['get', 'name:ar'], ['get', 'name']]
29252
+ : [
29253
+ 'coalesce',
29254
+ ['get', 'name:en'],
29255
+ ['get', 'name_en'],
29256
+ ['get', 'name:latin'],
29257
+ ['get', 'name'],
29258
+ ];
29259
+ }
29260
+ function isVectorBasemapError(error) {
29261
+ const url = error.url ?? error.message;
29262
+ return url.includes(OPEN_FREE_MAP) && !url.includes('/fonts/');
29263
+ }
29264
+
29395
29265
  function plottableGroups(groups) {
29396
- return (groups ?? [])
29397
- .filter((group) => !!group)
29266
+ return groups
29398
29267
  .map((group) => ({
29399
29268
  ...group,
29400
- groupName: group.groupName ?? '',
29401
- points: (group.points ?? []).filter(isPlottable),
29269
+ points: group.points.filter(({ lat, lon }) => Number.isFinite(lat) &&
29270
+ Number.isFinite(lon) &&
29271
+ Math.abs(lat) <= 90 &&
29272
+ Math.abs(lon) <= 180),
29402
29273
  }))
29403
29274
  .filter((group) => group.points.length > 0);
29404
29275
  }
29405
- function legendLayout(position) {
29406
- switch (position) {
29407
- case 'top':
29408
- return { top: '3%', left: 'center', orient: 'horizontal' };
29409
- case 'left':
29410
- return { left: '2%', top: 'middle', orient: 'vertical' };
29411
- case 'right':
29412
- return { right: '2%', top: 'middle', orient: 'vertical' };
29413
- case 'bottom':
29414
- default:
29415
- return { bottom: '3%', left: 'center', orient: 'horizontal' };
29416
- }
29417
- }
29418
- /**
29419
- * Where the boundaries are laid out.
29420
- *
29421
- * `layoutCenter` + `layoutSize` keep the map's geographic aspect ratio and
29422
- * letter-box it in the widget. A left/right/top/bottom box stretched the map
29423
- * to the box instead, so a narrow widget drew the country tall and thin.
29424
- *
29425
- * `geo` has no grid to keep clear of the legend, so without the offset the
29426
- * legend prints over whichever markers sit under it — southern ones for a
29427
- * bottom legend. Moving the centre away from the legend keeps the two apart.
29428
- */
29429
- function geoLayout(legend) {
29430
- if (!legend.show)
29431
- return { layoutCenter: ['50%', '50%'], layoutSize: '100%' };
29432
- switch (legend.position) {
29433
- case 'top':
29434
- return { layoutCenter: ['50%', '56%'], layoutSize: '88%' };
29435
- case 'left':
29436
- return { layoutCenter: ['58%', '50%'], layoutSize: '88%' };
29437
- case 'right':
29438
- return { layoutCenter: ['42%', '50%'], layoutSize: '88%' };
29439
- case 'bottom':
29440
- default:
29441
- return { layoutCenter: ['50%', '44%'], layoutSize: '88%' };
29442
- }
29443
- }
29444
- /**
29445
- * Longitude degrees shrink with latitude. ECharts' default `aspectScale`
29446
- * (0.75) suits ~41°; near the equator it draws countries too narrow.
29447
- */
29448
- function aspectScaleAt(latitude) {
29449
- return Math.cos((latitude * Math.PI) / 180);
29450
- }
29451
- /**
29452
- * The ECharts option for a Map Chart.
29453
- *
29454
- * Returns `null` when nothing is plottable, so the caller can show its own
29455
- * empty state instead of an ECharts canvas with an invisible scatter series.
29456
- */
29457
- function buildMapChartOption(groups, region, legend, font = {}) {
29458
- const usable = plottableGroups(groups);
29459
- if (!usable.length)
29460
- return null;
29461
- const legendNames = [];
29462
- const series = usable.map((group, index) => {
29463
- const color = group.color || MAP_FALLBACK_COLORS[index % MAP_FALLBACK_COLORS.length];
29464
- // An ungrouped map is one unnamed group, with nothing to list.
29465
- if (group.groupName)
29466
- legendNames.push(group.groupName);
29467
- return {
29468
- name: group.groupName,
29469
- type: 'scatter',
29470
- coordinateSystem: 'geo',
29471
- symbol: MAP_MARKER_PATH,
29472
- symbolSize: 16,
29473
- // ECharts centres a symbol on its coordinate, but this pin points with
29474
- // its bottom tip. Lifting it by half its height puts the tip, not the
29475
- // pin's middle, on the location.
29476
- symbolOffset: [0, '-50%'],
29477
- itemStyle: { color },
29478
- data: group.points.map((point) => ({
29479
- name: point.displayName || '',
29480
- // ECharts geo wants [lon, lat]; the third slot rides along for tooltips.
29481
- value: [Number(point.lon), Number(point.lat), point.displayName || ''],
29482
- extraValues: point.extraValues,
29483
- pointTooltip: point.tooltip,
29484
- })),
29485
- label: {
29486
- show: true,
29487
- position: 'bottom',
29488
- distance: 8,
29489
- color: '#333',
29490
- fontFamily: font.fontFamily,
29491
- fontSize: font.labelSize ?? 10,
29492
- fontWeight: 'normal',
29493
- formatter: (params) => params?.data?.name ?? '',
29494
- },
29495
- // Records in the same city sit a few pixels apart, and their labels then
29496
- // print on top of each other. ECharts drops the colliding ones rather
29497
- // than stacking them; the marker itself always stays visible, and
29498
- // hovering shows the name in the tooltip.
29499
- labelLayout: { hideOverlap: true },
29500
- emphasis: {
29501
- itemStyle: { color, shadowBlur: 10, shadowColor: 'rgba(0,0,0,0.3)' },
29502
- label: { fontWeight: 'bold' },
29503
- },
29504
- zlevel: 2,
29505
- };
29506
- });
29507
- const legendShown = legend.show && legendNames.length > 0;
29508
- return {
29509
- tooltip: {
29510
- trigger: 'item',
29511
- // A pin's Tooltip Properties are added by mt-echart, as for every
29512
- // chart; adding them here as well listed each field twice (#1842).
29513
- formatter: (params) => params?.seriesName
29514
- ? `${params.name}<br/>${params.seriesName}`
29515
- : (params?.name ?? ''),
29516
- },
29517
- geo: {
29518
- map: region.echartsName,
29519
- roam: true,
29520
- center: region.center,
29521
- zoom: region.zoom,
29522
- ...geoLayout({ ...legend, show: legendShown }),
29523
- aspectScale: aspectScaleAt(region.center[1]),
29524
- // The boundaries are backdrop only. Interactive regions took the hover
29525
- // and click away from the pins drawn over them (no pin tooltip, no click
29526
- // dialog) and printed their own region name on top of the pin labels.
29527
- // No `tooltip: { show: false }` here: a pin builds its tooltip from
29528
- // item, series, then its coordinate system (this geo), so that hid
29529
- // every pin's tooltip as well (#1847). `silent` already keeps the
29530
- // regions quiet.
29531
- silent: true,
29532
- itemStyle: {
29533
- areaColor: '#f5f5f5',
29534
- borderColor: '#ccc',
29535
- borderWidth: 1.5,
29276
+ const MAP_POINTS_SOURCE = 'dashboard-map-points';
29277
+ const CLUSTERS_LAYER = 'dashboard-map-clusters';
29278
+ const PINS_LAYER = 'dashboard-map-pins';
29279
+ const PIN_IMAGE = 'dashboard-map-pin';
29280
+ const PIN_RATIO = 2;
29281
+ const POINTS_SOURCE = {
29282
+ type: 'geojson',
29283
+ data: { type: 'FeatureCollection', features: [] },
29284
+ cluster: true,
29285
+ clusterRadius: 40,
29286
+ clusterMaxZoom: 14,
29287
+ };
29288
+ function pointLayers(clusterFont) {
29289
+ return [
29290
+ {
29291
+ id: CLUSTERS_LAYER,
29292
+ type: 'circle',
29293
+ source: MAP_POINTS_SOURCE,
29294
+ filter: ['has', 'point_count'],
29295
+ paint: {
29296
+ 'circle-color': '#1a73e8',
29297
+ 'circle-radius': ['step', ['get', 'point_count'], 16, 10, 20, 50, 26],
29298
+ 'circle-stroke-color': '#fff',
29299
+ 'circle-stroke-width': 2,
29536
29300
  },
29537
- emphasis: { disabled: true },
29538
- label: { show: false },
29539
29301
  },
29540
- legend: {
29541
- type: 'scroll',
29542
- ...legendLayout(legend.position),
29543
- data: legendNames,
29544
- icon: legend.icon || 'circle',
29545
- show: legendShown,
29546
- textStyle: {
29547
- fontFamily: font.fontFamily,
29548
- fontSize: font.legendSize ?? 12,
29549
- color: '#333',
29302
+ {
29303
+ id: 'dashboard-map-cluster-count',
29304
+ type: 'symbol',
29305
+ source: MAP_POINTS_SOURCE,
29306
+ filter: ['has', 'point_count'],
29307
+ layout: {
29308
+ 'text-field': ['get', 'point_count_abbreviated'],
29309
+ 'text-font': clusterFont,
29310
+ 'text-size': 12,
29311
+ 'text-allow-overlap': true,
29312
+ 'text-ignore-placement': true,
29550
29313
  },
29314
+ paint: { 'text-color': '#fff' },
29551
29315
  },
29552
- series,
29553
- };
29316
+ {
29317
+ id: PINS_LAYER,
29318
+ type: 'symbol',
29319
+ source: MAP_POINTS_SOURCE,
29320
+ filter: ['!', ['has', 'point_count']],
29321
+ layout: {
29322
+ 'icon-image': PIN_IMAGE,
29323
+ 'icon-anchor': 'bottom',
29324
+ 'icon-allow-overlap': true,
29325
+ 'icon-ignore-placement': true,
29326
+ },
29327
+ },
29328
+ ];
29329
+ }
29330
+ const PIN_SVG = '<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 0 28 40">' +
29331
+ '<path d="M14 1C6.8 1 1 6.7 1 13.8 1 23.4 14 39 14 39s13-15.6 13-25.2C27 6.7 21.2 1 14 1z" ' +
29332
+ 'fill="#1a73e8" stroke="#0b4fb3" stroke-width="1.5"/><circle cx="14" cy="13.8" r="5" fill="#fff"/></svg>';
29333
+ let pinImage;
29334
+ function loadPinImage() {
29335
+ return (pinImage ??= new Promise((resolve, reject) => {
29336
+ const image = new Image();
29337
+ image.onload = () => {
29338
+ const canvas = document.createElement('canvas');
29339
+ canvas.width = image.width * PIN_RATIO;
29340
+ canvas.height = image.height * PIN_RATIO;
29341
+ const context = canvas.getContext('2d');
29342
+ if (!context) {
29343
+ reject(new Error('Map pin canvas is unavailable'));
29344
+ return;
29345
+ }
29346
+ context.drawImage(image, 0, 0, canvas.width, canvas.height);
29347
+ resolve(context.getImageData(0, 0, canvas.width, canvas.height));
29348
+ };
29349
+ image.onerror = () => reject(new Error('Map pin image could not be loaded'));
29350
+ image.src = 'data:image/svg+xml,' + encodeURIComponent(PIN_SVG);
29351
+ }).catch((error) => {
29352
+ pinImage = undefined;
29353
+ throw error;
29354
+ }));
29554
29355
  }
29555
29356
 
29556
- /**
29557
- * Map regions available to the Map Chart widget.
29558
- *
29559
- * The widget draws boundaries from GeoJSON registered with ECharts rather than
29560
- * fetching raster tiles, so it needs no network, no API key and no third-party
29561
- * usage policy — the same approach the legacy dashboardBuilder app used.
29562
- *
29563
- * Each region's GeoJSON is lazy-loaded: the files are a few hundred KB and only
29564
- * a dashboard containing a Map Chart should pay for them.
29565
- */
29566
- /**
29567
- * Keyed by the lowercased persisted `clientConfig.map` value.
29568
- *
29569
- * `riyadhgovernorate` is the name the legacy ECharts handler used for the same
29570
- * region, so configs written by either side resolve.
29571
- */
29357
+ const SAUDI_ARABIA = { center: [45, 24], zoom: 4 };
29358
+ const RIYADH = { center: [46.6753, 24.7136], zoom: 8 };
29572
29359
  const MAP_REGIONS = {
29573
- saudiarabia: {
29574
- echartsName: 'Saudi',
29575
- center: [46.6753, 24.7136],
29576
- zoom: 1.45,
29577
- load: () => import('./masterteam-dashboard-builder-saudi.geo-C_9VzPCF.mjs').then((m) => m.saudiGeoJson),
29578
- },
29579
- riyadh: {
29580
- echartsName: 'RiyadhGovernorate',
29581
- center: [46.6753, 24.7136],
29582
- zoom: 0.72,
29583
- load: () => import('./masterteam-dashboard-builder-riyadh.geo-CE3Amxoa.mjs').then((m) => m.riyadhGeoJson),
29584
- },
29585
- riyadhgovernorate: {
29586
- echartsName: 'RiyadhGovernorate',
29587
- center: [46.6753, 24.7136],
29588
- zoom: 0.72,
29589
- load: () => import('./masterteam-dashboard-builder-riyadh.geo-CE3Amxoa.mjs').then((m) => m.riyadhGeoJson),
29590
- },
29360
+ saudiarabia: SAUDI_ARABIA,
29361
+ riyadh: RIYADH,
29362
+ riyadhgovernorate: RIYADH,
29591
29363
  };
29592
29364
  const DEFAULT_MAP_REGION_KEY = 'saudiarabia';
29593
- /** Attribution for the bundled boundaries. Rendered by the widget; keep it. */
29594
- const MAP_DATA_ATTRIBUTION = '© OpenStreetMap contributors (ODbL)';
29595
29365
  function resolveMapRegion(value) {
29596
29366
  const key = String(value ?? '')
29597
29367
  .trim()
29598
29368
  .toLowerCase();
29599
- return MAP_REGIONS[key] ?? MAP_REGIONS[DEFAULT_MAP_REGION_KEY];
29369
+ return Object.hasOwn(MAP_REGIONS, key) ? MAP_REGIONS[key] : SAUDI_ARABIA;
29370
+ }
29371
+
29372
+ let mapLibre;
29373
+ function loadMapLibre() {
29374
+ return (mapLibre ??= import('maplibre-gl')
29375
+ .then((module) => {
29376
+ module.setWorkerUrl(new URL('assets/map/maplibre-gl-worker.mjs', document.baseURI).href);
29377
+ return module;
29378
+ })
29379
+ .catch((error) => {
29380
+ mapLibre = undefined;
29381
+ throw error;
29382
+ }));
29600
29383
  }
29601
29384
 
29602
- /**
29603
- * Map View Component
29604
- *
29605
- * Renderer for the `Map Chart` widget. `MapChartHandler.handleLeafletMap`
29606
- * groups the records by the configured grouping property and resolves each
29607
- * record's location property into `{ lat, lon }`; this component plots those
29608
- * groups over the region's boundaries.
29609
- *
29610
- * The boundaries are GeoJSON bundled with the package and registered with
29611
- * ECharts (`echarts.registerMap`) — the same approach the legacy
29612
- * dashboardBuilder app used. Nothing is fetched at runtime, so the widget has
29613
- * no API key, no third-party usage policy and no dependency on the browser
29614
- * reaching a tile host; it renders identically offline.
29615
- *
29616
- * Registration has to happen before ECharts is handed an option naming the map,
29617
- * so the option stays `null` until the GeoJSON is in the registry.
29618
- */
29619
- /**
29620
- * ECharts' map registry is global and registration is idempotent, so the names
29621
- * already registered are tracked once per module rather than per component.
29622
- */
29623
- const registeredRegions = new Set();
29624
29385
  class MapViewComponent {
29625
- /** Grouped records from `MapChartHandler.handleLeafletMap`. */
29626
29386
  groups = input([], ...(ngDevMode ? [{ debugName: "groups" }] : /* istanbul ignore next */ []));
29627
- /** Persisted Style Studio map controls. */
29628
29387
  config = input({}, ...(ngDevMode ? [{ debugName: "config" }] : /* istanbul ignore next */ []));
29629
- /** Hide the group legend when the widget's legend control is off. */
29630
29388
  showLegend = input(true, ...(ngDevMode ? [{ debugName: "showLegend" }] : /* istanbul ignore next */ []));
29631
- /** Where the widget's legend control puts the legend. */
29632
29389
  legendPosition = input('bottom', ...(ngDevMode ? [{ debugName: "legendPosition" }] : /* istanbul ignore next */ []));
29633
- /** Legend marker shape, from the widget's legend control. */
29634
- legendIcon = input(undefined, ...(ngDevMode ? [{ debugName: "legendIcon" }] : /* istanbul ignore next */ []));
29635
- /** Forwarded to `mt-echart` so it keys its chart instance per widget. */
29390
+ legendIcon = input(...(ngDevMode ? [undefined, { debugName: "legendIcon" }] : /* istanbul ignore next */ []));
29636
29391
  dashboardId = input('', ...(ngDevMode ? [{ debugName: "dashboardId" }] : /* istanbul ignore next */ []));
29637
29392
  configurationItem = input(null, ...(ngDevMode ? [{ debugName: "configurationItem" }] : /* istanbul ignore next */ []));
29638
29393
  inGroup = input(false, ...(ngDevMode ? [{ debugName: "inGroup" }] : /* istanbul ignore next */ []));
29639
- /** Emitted when a marker is clicked, for the widget's row actions. */
29640
29394
  pointClick = output();
29641
- /** Emitted when a marker is double-clicked. */
29642
29395
  pointDblClick = output();
29643
- /** The ECharts map name currently in the global registry, once loaded. */
29644
- registeredName = signal(null, ...(ngDevMode ? [{ debugName: "registeredName" }] : /* istanbul ignore next */ []));
29645
- attribution = MAP_DATA_ATTRIBUTION;
29646
- region = computed(() => resolveMapRegion(this.config()?.mapRegion), ...(ngDevMode ? [{ debugName: "region" }] : /* istanbul ignore next */ []));
29647
- hasPoints = computed(() => plottableGroups(this.groups()).length > 0, ...(ngDevMode ? [{ debugName: "hasPoints" }] : /* istanbul ignore next */ []));
29648
- /**
29649
- * `null` until the region's boundaries are registered — handing ECharts a
29650
- * `geo.map` name it does not know renders an empty canvas with no error.
29651
- */
29652
- option = computed(() => {
29653
- const region = this.region();
29654
- if (this.registeredName() !== region.echartsName)
29655
- return null;
29656
- return buildMapChartOption(this.groups(), region, {
29657
- show: this.showLegend(),
29658
- position: this.legendPosition(),
29659
- icon: this.legendIcon(),
29660
- }, {
29661
- fontFamily: generalConfiguration?.fontConfig?.fontFamily,
29662
- labelSize: generalConfiguration?.fontConfig?.fontSizeConfig?.category,
29663
- legendSize: generalConfiguration?.fontConfig?.fontSizeConfig?.legend,
29664
- });
29665
- }, ...(ngDevMode ? [{ debugName: "option" }] : /* istanbul ignore next */ []));
29396
+ document = inject(DOCUMENT);
29397
+ destroyRef = inject(DestroyRef);
29398
+ zone = inject(NgZone);
29399
+ transloco = inject(TranslocoService);
29400
+ container = viewChild.required('map');
29401
+ language = toSignal(this.transloco.langChanges$);
29402
+ arabic = computed(() => this.language()?.split('-')[0] === 'ar' ||
29403
+ this.document.documentElement.dir === 'rtl', ...(ngDevMode ? [{ debugName: "arabic" }] : /* istanbul ignore next */ []));
29404
+ region = computed(() => resolveMapRegion(this.config().mapRegion), ...(ngDevMode ? [{ debugName: "region" }] : /* istanbul ignore next */ []));
29405
+ hiddenGroups = signal(new Set(), ...(ngDevMode ? [{ debugName: "hiddenGroups" }] : /* istanbul ignore next */ []));
29406
+ usableGroups = computed(() => plottableGroups(this.groups()), ...(ngDevMode ? [{ debugName: "usableGroups" }] : /* istanbul ignore next */ []));
29407
+ visiblePoints = computed(() => {
29408
+ const showLegend = this.showLegend();
29409
+ const hidden = this.hiddenGroups();
29410
+ return this.usableGroups().flatMap((group) => showLegend && hidden.has(group.groupName)
29411
+ ? []
29412
+ : group.points.map((point) => ({ point, groupName: group.groupName })));
29413
+ }, ...(ngDevMode ? [{ debugName: "visiblePoints" }] : /* istanbul ignore next */ []));
29414
+ legendGroups = computed(() => this.usableGroups().filter((group) => group.groupName), ...(ngDevMode ? [{ debugName: "legendGroups" }] : /* istanbul ignore next */ []));
29415
+ noLocations = computed(() => this.usableGroups().length === 0, ...(ngDevMode ? [{ debugName: "noLocations" }] : /* istanbul ignore next */ []));
29416
+ status = signal('loading', ...(ngDevMode ? [{ debugName: "status" }] : /* istanbul ignore next */ []));
29417
+ map;
29418
+ popup;
29419
+ observer;
29420
+ labels = [];
29421
+ nextPointId = 0;
29422
+ pointsById = new Map();
29423
+ fitPending = false;
29666
29424
  constructor() {
29425
+ afterNextRender(() => this.zone.runOutsideAngular(() => void this.mountMap()));
29667
29426
  effect(() => {
29427
+ if (this.status() !== 'ready')
29428
+ return;
29429
+ const points = this.visiblePoints();
29668
29430
  const region = this.region();
29669
- untracked(() => void this.ensureRegistered(region));
29431
+ this.zone.runOutsideAngular(() => this.updatePoints(points, region));
29432
+ });
29433
+ effect(() => {
29434
+ const arabic = this.arabic();
29435
+ if (this.status() !== 'ready')
29436
+ return;
29437
+ this.zone.runOutsideAngular(() => this.updateLabels(arabic));
29438
+ });
29439
+ this.destroyRef.onDestroy(() => {
29440
+ this.zone.runOutsideAngular(() => {
29441
+ this.observer?.disconnect();
29442
+ this.popup?.remove();
29443
+ this.map?.remove();
29444
+ this.map = undefined;
29445
+ });
29670
29446
  });
29671
29447
  }
29672
- /**
29673
- * Loads the region's GeoJSON (lazily — the files are large) and registers it
29674
- * under the name the option refers to. `import('echarts')` resolves to the
29675
- * same module instance `mt-echart` uses, so the registration is visible to
29676
- * the chart it renders.
29677
- */
29678
- async ensureRegistered(region) {
29679
- if (registeredRegions.has(region.echartsName)) {
29680
- this.registeredName.set(region.echartsName);
29681
- return;
29682
- }
29448
+ isGroupVisible(name) {
29449
+ return !this.hiddenGroups().has(name);
29450
+ }
29451
+ toggleGroup(name) {
29452
+ this.hiddenGroups.update((hidden) => {
29453
+ const next = new Set(hidden);
29454
+ if (!next.delete(name))
29455
+ next.add(name);
29456
+ return next;
29457
+ });
29458
+ }
29459
+ async mountMap() {
29683
29460
  try {
29684
- const [echarts, geoJson] = await Promise.all([
29685
- import('echarts'),
29686
- region.load(),
29461
+ const [mapLibre, vector, pin] = await Promise.all([
29462
+ loadMapLibre(),
29463
+ loadVectorStyle(),
29464
+ loadPinImage(),
29687
29465
  ]);
29688
- echarts.registerMap(region.echartsName, geoJson);
29689
- registeredRegions.add(region.echartsName);
29690
- this.registeredName.set(region.echartsName);
29466
+ if (this.destroyRef.destroyed)
29467
+ return;
29468
+ const container = this.container().nativeElement;
29469
+ let style = vector ?? RASTER_STYLE;
29470
+ this.labels = placeLabelLayers(style);
29471
+ const map = new mapLibre.Map({
29472
+ container,
29473
+ style,
29474
+ ...this.region(),
29475
+ attributionControl: { compact: true },
29476
+ doubleClickZoom: false,
29477
+ dragRotate: false,
29478
+ trackResize: false,
29479
+ });
29480
+ this.map = map;
29481
+ map.addControl(new mapLibre.NavigationControl({ showCompass: false }), this.arabic() ? 'top-left' : 'top-right');
29482
+ map.on('style.load', () => {
29483
+ if (!map.hasImage(PIN_IMAGE)) {
29484
+ map.addImage(PIN_IMAGE, pin, { pixelRatio: PIN_RATIO });
29485
+ }
29486
+ if (!map.getSource(MAP_POINTS_SOURCE)) {
29487
+ map.addSource(MAP_POINTS_SOURCE, POINTS_SOURCE);
29488
+ const font = style.glyphs
29489
+ ? ['Noto Sans Regular']
29490
+ : ['Arial', 'sans-serif'];
29491
+ for (const layer of pointLayers(font))
29492
+ map.addLayer(layer);
29493
+ }
29494
+ this.status.set('ready');
29495
+ });
29496
+ map.on('error', ({ error }) => {
29497
+ if (style === RASTER_STYLE || !isVectorBasemapError(error))
29498
+ return;
29499
+ style = RASTER_STYLE;
29500
+ this.labels = [];
29501
+ this.status.set('loading');
29502
+ this.popup?.remove();
29503
+ map.setStyle(style, { diff: false });
29504
+ });
29505
+ map.on('click', CLUSTERS_LAYER, (event) => void this.zoomToCluster(map, event));
29506
+ map.on('click', PINS_LAYER, (event) => this.openPoint(mapLibre, map, event));
29507
+ map.on('dblclick', PINS_LAYER, (event) => {
29508
+ const entry = this.pointAt(event);
29509
+ if (entry)
29510
+ this.zone.run(() => this.pointDblClick.emit(entry.point));
29511
+ });
29512
+ for (const layer of [CLUSTERS_LAYER, PINS_LAYER]) {
29513
+ map.on('mouseenter', layer, () => (map.getCanvas().style.cursor = 'pointer'));
29514
+ map.on('mouseleave', layer, () => (map.getCanvas().style.cursor = ''));
29515
+ }
29516
+ this.observer = new ResizeObserver(() => {
29517
+ if (!container.clientWidth || !container.clientHeight)
29518
+ return;
29519
+ map.resize();
29520
+ if (this.fitPending)
29521
+ this.fitPoints();
29522
+ });
29523
+ this.observer.observe(container);
29691
29524
  }
29692
- catch (error) {
29693
- console.error('Failed to load map boundaries:', error);
29525
+ catch {
29526
+ if (!this.destroyRef.destroyed)
29527
+ this.status.set('unavailable');
29694
29528
  }
29695
29529
  }
29696
- /**
29697
- * `mt-echart` forwards ECharts' own click payload; the record that produced
29698
- * the marker rides along on `extraValues`.
29699
- */
29700
- onChartClick(event) {
29701
- const point = this.toPoint(event?.data);
29702
- if (point)
29703
- this.pointClick.emit(point);
29530
+ updateLabels(arabic) {
29531
+ for (const layer of this.labels) {
29532
+ this.map?.setLayoutProperty(layer, 'text-field', placeName(arabic));
29533
+ }
29704
29534
  }
29705
- onChartDblClick(event) {
29706
- const point = this.toPoint(event?.data);
29707
- if (point)
29708
- this.pointDblClick.emit(point);
29535
+ updatePoints(points, region) {
29536
+ const source = this.map?.getSource(MAP_POINTS_SOURCE);
29537
+ if (!source)
29538
+ return;
29539
+ this.popup?.remove();
29540
+ this.pointsById.clear();
29541
+ const features = points.map((entry) => {
29542
+ const id = this.nextPointId++;
29543
+ this.pointsById.set(id, entry);
29544
+ return {
29545
+ type: 'Feature',
29546
+ geometry: {
29547
+ type: 'Point',
29548
+ coordinates: [entry.point.lon, entry.point.lat],
29549
+ },
29550
+ properties: { id },
29551
+ };
29552
+ });
29553
+ void source.setData({ type: 'FeatureCollection', features });
29554
+ if (points.length) {
29555
+ this.fitPoints();
29556
+ }
29557
+ else {
29558
+ this.fitPending = false;
29559
+ this.map?.jumpTo(region);
29560
+ }
29709
29561
  }
29710
- toPoint(data) {
29711
- if (!data)
29712
- return null;
29713
- const value = Array.isArray(data.value) ? data.value : [];
29714
- return {
29715
- displayName: data.name ?? '',
29716
- lon: Number(value[0]),
29717
- lat: Number(value[1]),
29718
- color: '',
29719
- extraValues: data.extraValues,
29720
- };
29562
+ fitPoints() {
29563
+ const map = this.map;
29564
+ if (!map)
29565
+ return;
29566
+ const container = map.getContainer();
29567
+ const size = Math.min(container.clientWidth, container.clientHeight);
29568
+ this.fitPending = size === 0;
29569
+ if (this.fitPending)
29570
+ return;
29571
+ const coordinates = Array.from(this.pointsById.values(), ({ point }) => [point.lon, point.lat]);
29572
+ if (coordinates.length === 1) {
29573
+ map.jumpTo({ center: coordinates[0], zoom: 15 });
29574
+ }
29575
+ else if (coordinates.length > 1) {
29576
+ const bounds = coordinates.reduce(([west, south, east, north], [lon, lat]) => [
29577
+ Math.min(west, lon),
29578
+ Math.min(south, lat),
29579
+ Math.max(east, lon),
29580
+ Math.max(north, lat),
29581
+ ], [180, 90, -180, -90]);
29582
+ map.fitBounds(bounds, {
29583
+ padding: Math.min(48, size / 4),
29584
+ maxZoom: 15,
29585
+ duration: 0,
29586
+ });
29587
+ }
29588
+ }
29589
+ async zoomToCluster(map, event) {
29590
+ const feature = event.features?.[0];
29591
+ const source = map.getSource(MAP_POINTS_SOURCE);
29592
+ if (!source || feature?.geometry.type !== 'Point')
29593
+ return;
29594
+ try {
29595
+ const zoom = await source.getClusterExpansionZoom(feature.properties['cluster_id']);
29596
+ if (this.map !== map || map.getSource(MAP_POINTS_SOURCE) !== source)
29597
+ return;
29598
+ const [lon, lat] = feature.geometry.coordinates;
29599
+ map.easeTo({ center: [lon, lat], zoom });
29600
+ }
29601
+ catch {
29602
+ // A cluster can disappear while a new points input is being indexed.
29603
+ }
29604
+ }
29605
+ pointAt(event) {
29606
+ return this.pointsById.get(event.features?.[0]?.properties['id']);
29607
+ }
29608
+ openPoint(mapLibre, map, event) {
29609
+ const entry = this.pointAt(event);
29610
+ if (!entry)
29611
+ return;
29612
+ const { point, groupName } = entry;
29613
+ const content = this.document.createElement('div');
29614
+ content.dir = 'auto';
29615
+ const title = this.document.createElement('strong');
29616
+ title.textContent = point.displayName;
29617
+ content.append(title);
29618
+ const lines = pointTooltipLines(point.tooltip, (count) => this.arabic() ? `+${count} أخرى` : `+${count} more`);
29619
+ for (const text of [groupName, ...lines].filter(Boolean)) {
29620
+ const line = this.document.createElement('div');
29621
+ line.textContent = text;
29622
+ content.append(line);
29623
+ }
29624
+ this.popup?.remove();
29625
+ this.popup = new mapLibre.Popup({ offset: [0, -36], maxWidth: '260px' })
29626
+ .setLngLat([point.lon, point.lat])
29627
+ .setDOMContent(content)
29628
+ .addTo(map);
29629
+ this.zone.run(() => this.pointClick.emit(point));
29721
29630
  }
29722
29631
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: MapViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
29723
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: MapViewComponent, isStandalone: true, selector: "mt-map-view", inputs: { groups: { classPropertyName: "groups", publicName: "groups", isSignal: true, isRequired: false, transformFunction: null }, config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: false, transformFunction: null }, showLegend: { classPropertyName: "showLegend", publicName: "showLegend", isSignal: true, isRequired: false, transformFunction: null }, legendPosition: { classPropertyName: "legendPosition", publicName: "legendPosition", isSignal: true, isRequired: false, transformFunction: null }, legendIcon: { classPropertyName: "legendIcon", publicName: "legendIcon", isSignal: true, isRequired: false, transformFunction: null }, dashboardId: { classPropertyName: "dashboardId", publicName: "dashboardId", isSignal: true, isRequired: false, transformFunction: null }, configurationItem: { classPropertyName: "configurationItem", publicName: "configurationItem", isSignal: true, isRequired: false, transformFunction: null }, inGroup: { classPropertyName: "inGroup", publicName: "inGroup", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pointClick: "pointClick", pointDblClick: "pointDblClick" }, host: { classAttribute: "mt-map-view" }, ngImport: i0, template: "<div\r\n class=\"mt-map-view__surface\"\r\n *transloco=\"let t; prefix: 'dashboardBuilder'\"\r\n>\r\n @if (option(); as chartOption) {\r\n <mt-echart\r\n [dashboardId]=\"dashboardId()\"\r\n [chartConfig]=\"chartOption\"\r\n [configurationItem]=\"configurationItem()\"\r\n [inGroup]=\"inGroup()\"\r\n (chartClick)=\"onChartClick($event)\"\r\n (chartDblClick)=\"onChartDblClick($event)\"\r\n />\r\n <!--\r\n ODbL requires the boundary data to be credited wherever it is shown.\r\n Everything is drawn from the bundled GeoJSON, so nothing is requested at\r\n runtime and no record data leaves the browser.\r\n -->\r\n <div class=\"mt-map-view__attribution\">{{ attribution }}</div>\r\n } @else if (!hasPoints()) {\r\n <div class=\"mt-map-view__empty\">\r\n <span>{{ t(\"map.noLocations\") }}</span>\r\n </div>\r\n } @else {\r\n <div class=\"mt-map-view__loading\" role=\"status\">\r\n <div class=\"mt-map-view__spinner\" aria-hidden=\"true\"></div>\r\n <span class=\"mt-map-view__sr\">{{ t(\"map.loadingBoundaries\") }}</span>\r\n </div>\r\n }\r\n</div>\r\n", styles: [":host{display:block;width:100%;height:100%;min-height:0}.mt-map-view__surface{position:relative;width:100%;height:100%;min-height:0}.mt-map-view__attribution{position:absolute;inset-block-end:0;inset-inline-end:0;padding:0 .25rem;color:var(--p-text-muted-color, #64748b);font-size:.625rem;line-height:1rem;pointer-events:none}.mt-map-view__empty,.mt-map-view__loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}.mt-map-view__empty span{padding:.25rem .625rem;border:1px solid var(--p-surface-200, #e5e7eb);border-radius:.375rem;background:var(--p-surface-0, #ffffff);color:var(--p-text-muted-color, #64748b);font-size:.75rem}.mt-map-view__spinner{width:1.5rem;height:1.5rem;border:2px solid var(--p-surface-200, #e5e7eb);border-top-color:var(--p-primary-500, #2563eb);border-radius:999px;animation:mt-map-view-spin .8s linear infinite}@keyframes mt-map-view-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.mt-map-view__spinner{animation:none}}.mt-map-view__sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}\n"], dependencies: [{ kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "component", type: EChartComponent, selector: "mt-echart", inputs: ["dashboardId", "chartConfig", "configurationItem", "height", "inGroup", "headerHidden"], outputs: ["chartClick", "chartDblClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
29632
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: MapViewComponent, isStandalone: true, selector: "mt-map-view", inputs: { groups: { classPropertyName: "groups", publicName: "groups", isSignal: true, isRequired: false, transformFunction: null }, config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: false, transformFunction: null }, showLegend: { classPropertyName: "showLegend", publicName: "showLegend", isSignal: true, isRequired: false, transformFunction: null }, legendPosition: { classPropertyName: "legendPosition", publicName: "legendPosition", isSignal: true, isRequired: false, transformFunction: null }, legendIcon: { classPropertyName: "legendIcon", publicName: "legendIcon", isSignal: true, isRequired: false, transformFunction: null }, dashboardId: { classPropertyName: "dashboardId", publicName: "dashboardId", isSignal: true, isRequired: false, transformFunction: null }, configurationItem: { classPropertyName: "configurationItem", publicName: "configurationItem", isSignal: true, isRequired: false, transformFunction: null }, inGroup: { classPropertyName: "inGroup", publicName: "inGroup", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pointClick: "pointClick", pointDblClick: "pointDblClick" }, host: { classAttribute: "mt-map-view" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["map"], descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"map-layout\" [attr.data-legend-position]=\"legendPosition()\">\r\n <div class=\"map-surface\">\r\n <div\r\n #map\r\n class=\"map-canvas\"\r\n role=\"region\"\r\n [attr.aria-label]=\"'dashboardBuilder.map.title' | transloco\"\r\n ></div>\r\n @if (status() === \"loading\") {\r\n <span class=\"map-status\" role=\"status\">{{\r\n \"dashboardBuilder.map.loadingBoundaries\" | transloco\r\n }}</span>\r\n } @else if (status() === \"unavailable\") {\r\n <span class=\"map-status\" role=\"status\">{{\r\n \"dashboardBuilder.map.unavailable\" | transloco\r\n }}</span>\r\n } @else if (noLocations()) {\r\n <span class=\"map-status\">{{\r\n \"dashboardBuilder.map.noLocations\" | transloco\r\n }}</span>\r\n }\r\n </div>\r\n\r\n @if (showLegend() && legendGroups().length) {\r\n <div class=\"map-legend\">\r\n @for (group of legendGroups(); track $index) {\r\n <button\r\n type=\"button\"\r\n [attr.aria-pressed]=\"isGroupVisible(group.groupName)\"\r\n (click)=\"toggleGroup(group.groupName)\"\r\n >\r\n <span\r\n class=\"map-legend-marker\"\r\n aria-hidden=\"true\"\r\n [attr.data-shape]=\"legendIcon()\"\r\n [style.background-color]=\"group.color || '#1a73e8'\"\r\n ></span>\r\n {{ group.groupName }}\r\n </button>\r\n }\r\n </div>\r\n }\r\n</div>\r\n", styles: [":host{display:block;width:100%;height:100%;min-height:0}.map-layout{display:flex;flex-direction:column;width:100%;height:100%}.map-layout[data-legend-position=top]{flex-direction:column-reverse}.map-layout[data-legend-position=left],.map-layout[data-legend-position=right]{flex-direction:row}.map-layout[data-legend-position=left] .map-legend{order:-1}.map-layout:dir(rtl)[data-legend-position=left],.map-layout:dir(rtl)[data-legend-position=right]{flex-direction:row-reverse}.map-surface{position:relative;flex:1;min-width:0;min-height:0;background:var(--p-surface-100, #f1f5f9)}@media(max-width:768px){.map-surface{min-height:14rem}}.map-canvas{position:absolute;inset:0}.map-status{position:absolute;inset-block-start:.5rem;inset-inline-start:50%;translate:-50% 0;max-width:60%;padding:.25rem .5rem;border-radius:.375rem;background:var(--p-surface-0, #fff);color:var(--p-text-muted-color, #475569);font-size:.75rem;text-align:center;pointer-events:none}.map-status:dir(rtl){translate:50% 0}.map-legend{display:flex;align-items:center;justify-content:safe center;max-height:35%;overflow:auto;padding:.125rem}.map-layout[data-legend-position=left] .map-legend,.map-layout[data-legend-position=right] .map-legend{flex-direction:column;align-items:flex-start;max-width:35%;max-height:100%}.map-legend button{display:inline-flex;align-items:center;gap:.25rem;padding:.25rem;border:0;background:transparent;color:inherit;font:inherit;font-size:.75rem;text-align:start;cursor:pointer}.map-legend button[aria-pressed=false]{opacity:.55;text-decoration:line-through}.map-legend-marker{flex:0 0 auto;width:.625rem;height:.625rem;border-radius:50%}.map-legend-marker[data-shape=rect],.map-legend-marker[data-shape=diamond],.map-legend-marker[data-shape=triangle]{border-radius:0}.map-legend-marker[data-shape=roundRect]{border-radius:.2rem}.map-legend-marker[data-shape=diamond]{clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%)}.map-legend-marker[data-shape=triangle]{clip-path:polygon(50% 0,100% 100%,0 100%)}\n"], dependencies: [{ kind: "pipe", type: TranslocoPipe, name: "transloco" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
29724
29633
  }
29725
29634
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: MapViewComponent, decorators: [{
29726
29635
  type: Component,
29727
- args: [{ selector: 'mt-map-view', standalone: true, imports: [TranslocoDirective, EChartComponent], changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'mt-map-view' }, template: "<div\r\n class=\"mt-map-view__surface\"\r\n *transloco=\"let t; prefix: 'dashboardBuilder'\"\r\n>\r\n @if (option(); as chartOption) {\r\n <mt-echart\r\n [dashboardId]=\"dashboardId()\"\r\n [chartConfig]=\"chartOption\"\r\n [configurationItem]=\"configurationItem()\"\r\n [inGroup]=\"inGroup()\"\r\n (chartClick)=\"onChartClick($event)\"\r\n (chartDblClick)=\"onChartDblClick($event)\"\r\n />\r\n <!--\r\n ODbL requires the boundary data to be credited wherever it is shown.\r\n Everything is drawn from the bundled GeoJSON, so nothing is requested at\r\n runtime and no record data leaves the browser.\r\n -->\r\n <div class=\"mt-map-view__attribution\">{{ attribution }}</div>\r\n } @else if (!hasPoints()) {\r\n <div class=\"mt-map-view__empty\">\r\n <span>{{ t(\"map.noLocations\") }}</span>\r\n </div>\r\n } @else {\r\n <div class=\"mt-map-view__loading\" role=\"status\">\r\n <div class=\"mt-map-view__spinner\" aria-hidden=\"true\"></div>\r\n <span class=\"mt-map-view__sr\">{{ t(\"map.loadingBoundaries\") }}</span>\r\n </div>\r\n }\r\n</div>\r\n", styles: [":host{display:block;width:100%;height:100%;min-height:0}.mt-map-view__surface{position:relative;width:100%;height:100%;min-height:0}.mt-map-view__attribution{position:absolute;inset-block-end:0;inset-inline-end:0;padding:0 .25rem;color:var(--p-text-muted-color, #64748b);font-size:.625rem;line-height:1rem;pointer-events:none}.mt-map-view__empty,.mt-map-view__loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}.mt-map-view__empty span{padding:.25rem .625rem;border:1px solid var(--p-surface-200, #e5e7eb);border-radius:.375rem;background:var(--p-surface-0, #ffffff);color:var(--p-text-muted-color, #64748b);font-size:.75rem}.mt-map-view__spinner{width:1.5rem;height:1.5rem;border:2px solid var(--p-surface-200, #e5e7eb);border-top-color:var(--p-primary-500, #2563eb);border-radius:999px;animation:mt-map-view-spin .8s linear infinite}@keyframes mt-map-view-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.mt-map-view__spinner{animation:none}}.mt-map-view__sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}\n"] }]
29728
- }], ctorParameters: () => [], propDecorators: { groups: [{ type: i0.Input, args: [{ isSignal: true, alias: "groups", required: false }] }], config: [{ type: i0.Input, args: [{ isSignal: true, alias: "config", required: false }] }], showLegend: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLegend", required: false }] }], legendPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "legendPosition", required: false }] }], legendIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "legendIcon", required: false }] }], dashboardId: [{ type: i0.Input, args: [{ isSignal: true, alias: "dashboardId", required: false }] }], configurationItem: [{ type: i0.Input, args: [{ isSignal: true, alias: "configurationItem", required: false }] }], inGroup: [{ type: i0.Input, args: [{ isSignal: true, alias: "inGroup", required: false }] }], pointClick: [{ type: i0.Output, args: ["pointClick"] }], pointDblClick: [{ type: i0.Output, args: ["pointDblClick"] }] } });
29636
+ args: [{ selector: 'mt-map-view', imports: [TranslocoPipe], changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'mt-map-view' }, template: "<div class=\"map-layout\" [attr.data-legend-position]=\"legendPosition()\">\r\n <div class=\"map-surface\">\r\n <div\r\n #map\r\n class=\"map-canvas\"\r\n role=\"region\"\r\n [attr.aria-label]=\"'dashboardBuilder.map.title' | transloco\"\r\n ></div>\r\n @if (status() === \"loading\") {\r\n <span class=\"map-status\" role=\"status\">{{\r\n \"dashboardBuilder.map.loadingBoundaries\" | transloco\r\n }}</span>\r\n } @else if (status() === \"unavailable\") {\r\n <span class=\"map-status\" role=\"status\">{{\r\n \"dashboardBuilder.map.unavailable\" | transloco\r\n }}</span>\r\n } @else if (noLocations()) {\r\n <span class=\"map-status\">{{\r\n \"dashboardBuilder.map.noLocations\" | transloco\r\n }}</span>\r\n }\r\n </div>\r\n\r\n @if (showLegend() && legendGroups().length) {\r\n <div class=\"map-legend\">\r\n @for (group of legendGroups(); track $index) {\r\n <button\r\n type=\"button\"\r\n [attr.aria-pressed]=\"isGroupVisible(group.groupName)\"\r\n (click)=\"toggleGroup(group.groupName)\"\r\n >\r\n <span\r\n class=\"map-legend-marker\"\r\n aria-hidden=\"true\"\r\n [attr.data-shape]=\"legendIcon()\"\r\n [style.background-color]=\"group.color || '#1a73e8'\"\r\n ></span>\r\n {{ group.groupName }}\r\n </button>\r\n }\r\n </div>\r\n }\r\n</div>\r\n", styles: [":host{display:block;width:100%;height:100%;min-height:0}.map-layout{display:flex;flex-direction:column;width:100%;height:100%}.map-layout[data-legend-position=top]{flex-direction:column-reverse}.map-layout[data-legend-position=left],.map-layout[data-legend-position=right]{flex-direction:row}.map-layout[data-legend-position=left] .map-legend{order:-1}.map-layout:dir(rtl)[data-legend-position=left],.map-layout:dir(rtl)[data-legend-position=right]{flex-direction:row-reverse}.map-surface{position:relative;flex:1;min-width:0;min-height:0;background:var(--p-surface-100, #f1f5f9)}@media(max-width:768px){.map-surface{min-height:14rem}}.map-canvas{position:absolute;inset:0}.map-status{position:absolute;inset-block-start:.5rem;inset-inline-start:50%;translate:-50% 0;max-width:60%;padding:.25rem .5rem;border-radius:.375rem;background:var(--p-surface-0, #fff);color:var(--p-text-muted-color, #475569);font-size:.75rem;text-align:center;pointer-events:none}.map-status:dir(rtl){translate:50% 0}.map-legend{display:flex;align-items:center;justify-content:safe center;max-height:35%;overflow:auto;padding:.125rem}.map-layout[data-legend-position=left] .map-legend,.map-layout[data-legend-position=right] .map-legend{flex-direction:column;align-items:flex-start;max-width:35%;max-height:100%}.map-legend button{display:inline-flex;align-items:center;gap:.25rem;padding:.25rem;border:0;background:transparent;color:inherit;font:inherit;font-size:.75rem;text-align:start;cursor:pointer}.map-legend button[aria-pressed=false]{opacity:.55;text-decoration:line-through}.map-legend-marker{flex:0 0 auto;width:.625rem;height:.625rem;border-radius:50%}.map-legend-marker[data-shape=rect],.map-legend-marker[data-shape=diamond],.map-legend-marker[data-shape=triangle]{border-radius:0}.map-legend-marker[data-shape=roundRect]{border-radius:.2rem}.map-legend-marker[data-shape=diamond]{clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%)}.map-legend-marker[data-shape=triangle]{clip-path:polygon(50% 0,100% 100%,0 100%)}\n"] }]
29637
+ }], ctorParameters: () => [], propDecorators: { groups: [{ type: i0.Input, args: [{ isSignal: true, alias: "groups", required: false }] }], config: [{ type: i0.Input, args: [{ isSignal: true, alias: "config", required: false }] }], showLegend: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLegend", required: false }] }], legendPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "legendPosition", required: false }] }], legendIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "legendIcon", required: false }] }], dashboardId: [{ type: i0.Input, args: [{ isSignal: true, alias: "dashboardId", required: false }] }], configurationItem: [{ type: i0.Input, args: [{ isSignal: true, alias: "configurationItem", required: false }] }], inGroup: [{ type: i0.Input, args: [{ isSignal: true, alias: "inGroup", required: false }] }], pointClick: [{ type: i0.Output, args: ["pointClick"] }], pointDblClick: [{ type: i0.Output, args: ["pointDblClick"] }], container: [{ type: i0.ViewChild, args: ['map', { isSignal: true }] }] } });
29729
29638
 
29730
29639
  /** How long a click waits for a second one when Double Click is configured. */
29731
29640
  const DOUBLE_CLICK_WINDOW_MS = 250;
@@ -29905,9 +29814,8 @@ class ChartCardComponent {
29905
29814
  }, ...(ngDevMode ? [{ debugName: "componentViewMode" }] : /* istanbul ignore next */ []));
29906
29815
  /* ---------- Map view helpers ---------- */
29907
29816
  /**
29908
- * `MapChartHandler.handleLeafletMap` returns a bare array of
29909
- * `{ groupName, color, points }` rather than an ECharts option, so the map
29910
- * widget is rendered by `mt-map-view` instead of `mt-echart`.
29817
+ * `MapChartHandler.handleLeafletMap` returns the grouped records consumed
29818
+ * by `mt-map-view`.
29911
29819
  */
29912
29820
  mapGroups = computed(() => {
29913
29821
  const data = this.dataHandled();
@@ -31137,11 +31045,11 @@ class ListStatisticCardComponent {
31137
31045
  this.onAction.emit({ type, data: body });
31138
31046
  }
31139
31047
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: ListStatisticCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
31140
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.8", type: ListStatisticCardComponent, isStandalone: true, selector: "mt-list-statistic-card", inputs: { dashboardId: { classPropertyName: "dashboardId", publicName: "dashboardId", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { onAction: "onAction" }, ngImport: i0, template: "<div class=\"flex h-full w-full justify-between\">\n <mt-statistic-card\n [config]=\"dataHandled()\"\n [style.width]=\"dataHandled()?.width\"\n [styleConfig]=\"styleConfig()\"\n [configurationItem]=\"configurationItem()\"\n (cardClick)=\"doActions($event, 'click')\"\n />\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: StatisticCardComponent, selector: "mt-statistic-card", inputs: ["config", "styleConfig", "configurationItem"], outputs: ["cardClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
31048
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.8", type: ListStatisticCardComponent, isStandalone: true, selector: "mt-list-statistic-card", inputs: { dashboardId: { classPropertyName: "dashboardId", publicName: "dashboardId", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { onAction: "onAction" }, ngImport: i0, template: "<div class=\"flex h-full w-full justify-between\">\r\n <mt-statistic-card\r\n [config]=\"dataHandled()\"\r\n [style.width]=\"dataHandled()?.width\"\r\n [styleConfig]=\"styleConfig()\"\r\n [configurationItem]=\"configurationItem()\"\r\n (cardClick)=\"doActions($event, 'click')\"\r\n />\r\n</div>\r\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: StatisticCardComponent, selector: "mt-statistic-card", inputs: ["config", "styleConfig", "configurationItem"], outputs: ["cardClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
31141
31049
  }
31142
31050
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: ListStatisticCardComponent, decorators: [{
31143
31051
  type: Component,
31144
- args: [{ selector: 'mt-list-statistic-card', standalone: true, imports: [CommonModule, StatisticCardComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"flex h-full w-full justify-between\">\n <mt-statistic-card\n [config]=\"dataHandled()\"\n [style.width]=\"dataHandled()?.width\"\n [styleConfig]=\"styleConfig()\"\n [configurationItem]=\"configurationItem()\"\n (cardClick)=\"doActions($event, 'click')\"\n />\n</div>\n" }]
31052
+ args: [{ selector: 'mt-list-statistic-card', standalone: true, imports: [CommonModule, StatisticCardComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"flex h-full w-full justify-between\">\r\n <mt-statistic-card\r\n [config]=\"dataHandled()\"\r\n [style.width]=\"dataHandled()?.width\"\r\n [styleConfig]=\"styleConfig()\"\r\n [configurationItem]=\"configurationItem()\"\r\n (cardClick)=\"doActions($event, 'click')\"\r\n />\r\n</div>\r\n" }]
31145
31053
  }], propDecorators: { dashboardId: [{ type: i0.Input, args: [{ isSignal: true, alias: "dashboardId", required: true }] }], onAction: [{ type: i0.Output, args: ["onAction"] }] } });
31146
31054
 
31147
31055
  /**
@@ -31533,34 +31441,34 @@ class SkeletonCardComponent {
31533
31441
  }
31534
31442
  }
31535
31443
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: SkeletonCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
31536
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: SkeletonCardComponent, isStandalone: true, selector: "mt-skeleton-card", inputs: { dashboardId: { classPropertyName: "dashboardId", publicName: "dashboardId", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: `
31537
- <div class="skeleton-container">
31538
- @for (skeleton of skeletons(); track $index) {
31539
- <div
31540
- class="skeleton-item"
31541
- [style.width]="skeleton.width"
31542
- [style.height]="skeleton.height"
31543
- >
31544
- <div class="skeleton-animation"></div>
31545
- </div>
31546
- }
31547
- </div>
31444
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: SkeletonCardComponent, isStandalone: true, selector: "mt-skeleton-card", inputs: { dashboardId: { classPropertyName: "dashboardId", publicName: "dashboardId", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: `
31445
+ <div class="skeleton-container">
31446
+ @for (skeleton of skeletons(); track $index) {
31447
+ <div
31448
+ class="skeleton-item"
31449
+ [style.width]="skeleton.width"
31450
+ [style.height]="skeleton.height"
31451
+ >
31452
+ <div class="skeleton-animation"></div>
31453
+ </div>
31454
+ }
31455
+ </div>
31548
31456
  `, isInline: true, styles: [".skeleton-container{display:flex;flex-wrap:wrap;gap:1rem;width:100%;padding:1rem}.skeleton-item{background:#f5f5f5;border-radius:.5rem;overflow:hidden;position:relative}.skeleton-animation{position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.4),transparent);animation:shimmer 1.5s infinite}@keyframes shimmer{0%{transform:translate(-100%)}to{transform:translate(100%)}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
31549
31457
  }
31550
31458
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: SkeletonCardComponent, decorators: [{
31551
31459
  type: Component,
31552
- args: [{ selector: 'mt-skeleton-card', standalone: true, imports: [CommonModule], template: `
31553
- <div class="skeleton-container">
31554
- @for (skeleton of skeletons(); track $index) {
31555
- <div
31556
- class="skeleton-item"
31557
- [style.width]="skeleton.width"
31558
- [style.height]="skeleton.height"
31559
- >
31560
- <div class="skeleton-animation"></div>
31561
- </div>
31562
- }
31563
- </div>
31460
+ args: [{ selector: 'mt-skeleton-card', standalone: true, imports: [CommonModule], template: `
31461
+ <div class="skeleton-container">
31462
+ @for (skeleton of skeletons(); track $index) {
31463
+ <div
31464
+ class="skeleton-item"
31465
+ [style.width]="skeleton.width"
31466
+ [style.height]="skeleton.height"
31467
+ >
31468
+ <div class="skeleton-animation"></div>
31469
+ </div>
31470
+ }
31471
+ </div>
31564
31472
  `, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".skeleton-container{display:flex;flex-wrap:wrap;gap:1rem;width:100%;padding:1rem}.skeleton-item{background:#f5f5f5;border-radius:.5rem;overflow:hidden;position:relative}.skeleton-animation{position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.4),transparent);animation:shimmer 1.5s infinite}@keyframes shimmer{0%{transform:translate(-100%)}to{transform:translate(100%)}}\n"] }]
31565
31473
  }], propDecorators: { dashboardId: [{ type: i0.Input, args: [{ isSignal: true, alias: "dashboardId", required: true }] }] } });
31566
31474
 
@@ -32234,7 +32142,7 @@ class PropertiesCardComponent {
32234
32142
  return '';
32235
32143
  }
32236
32144
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: PropertiesCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
32237
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: PropertiesCardComponent, isStandalone: true, selector: "mt-properties-card, mt-entities-preview-card", inputs: { dashboardId: { classPropertyName: "dashboardId", publicName: "dashboardId", isSignal: true, isRequired: true, transformFunction: null }, inGroup: { classPropertyName: "inGroup", publicName: "inGroup", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onAction: "onAction" }, ngImport: i0, template: "<mt-card-content\n [inGroup]=\"inGroup()\"\n [headerConfig]=\"\n configurationItem()?.clientConfig?.configAsType?.['headerCardConfig']\n \"\n [styleConfig]=\"\n configurationItem()?.clientConfig?.displayConfig?.['StyleConfig']\n \"\n [cardStyleConfig]=\"\n configurationItem()?.clientConfig?.configAsType?.['cardStyleConfig']\n \"\n [density]=\"configurationItem()?.clientConfig?.configAsType?.['density']\"\n [padding]=\"configurationItem()?.clientConfig?.configAsType?.['padding']\"\n [title]=\"title()\"\n>\n <ng-container body>\n <ng-container *transloco=\"let t; prefix: 'dashboardBuilder'\">\n @if (showTabs()) {\n <div class=\"mb-3\">\n <mt-tabs\n [(active)]=\"tabSelected\"\n [options]=\"tabOptions()\"\n size=\"small\"\n />\n </div>\n }\n\n <div\n class=\"overflow-y-auto overflow-x-hidden\"\n [style.max-height]=\"inGroup() ? '500px' : null\"\n >\n @if (currentTabCards().length === 0) {\n <div class=\"py-6 text-center text-sm text-gray-400\">\n {{ t(\"noData\") }}\n </div>\n } @else {\n <div\n class=\"db-cards-grid\"\n [class.db-cards-grid--gallery]=\"galleryMode()\"\n >\n @for (cardView of currentTabCards(); track cardView.trackId) {\n <div\n class=\"mb-2 cursor-pointer p-2\"\n (click)=\"onCardClick(cardView.card)\"\n >\n <div class=\"rounded-lg bg-white p-3 shadow-sm\">\n @defer (on viewport) {\n <ng-container>\n @if (cardView.entities.length > 0) {\n <mt-entities-preview\n [entities]=\"cardView.entities\"\n [stackOnNarrow]=\"false\"\n />\n } @else {\n <div class=\"py-6 text-center text-sm text-gray-400\">\n {{ t(\"noData\") }}\n </div>\n }\n </ng-container>\n } @placeholder {\n <div class=\"min-h-24 p-2\">\n <div class=\"flex animate-pulse flex-col gap-3\">\n <div class=\"h-4 w-2/3 rounded bg-surface-200\"></div>\n <div class=\"h-4 w-full rounded bg-surface-100\"></div>\n <div class=\"h-4 w-5/6 rounded bg-surface-100\"></div>\n </div>\n </div>\n }\n </div>\n </div>\n }\n </div>\n }\n </div>\n </ng-container>\n </ng-container>\n</mt-card-content>\n", styles: [":host{display:block;height:100%}.db-cards-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:.25rem}.db-cards-grid--gallery{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "component", type: Tabs, selector: "mt-tabs", inputs: ["options", "optionLabel", "optionValue", "active", "mode", "moreLabel", "defaultIcon", "size", "fluid", "disabled", "searchThreshold"], outputs: ["activeChange", "onChange"] }, { kind: "component", type: CardContentComponent, selector: "mt-card-content", inputs: ["title", "inGroup", "groupHeader", "headerConfig", "styleConfig", "cardStyleConfig", "density", "padding", "showHeader", "headerClickable", "isNoTopEnd", "isChart", "titleEditable"], outputs: ["headerClick", "titleChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, deferBlockDependencies: [() => [EntitiesPreview]] });
32145
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: PropertiesCardComponent, isStandalone: true, selector: "mt-properties-card, mt-entities-preview-card", inputs: { dashboardId: { classPropertyName: "dashboardId", publicName: "dashboardId", isSignal: true, isRequired: true, transformFunction: null }, inGroup: { classPropertyName: "inGroup", publicName: "inGroup", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onAction: "onAction" }, ngImport: i0, template: "<mt-card-content\r\n [inGroup]=\"inGroup()\"\r\n [headerConfig]=\"\r\n configurationItem()?.clientConfig?.configAsType?.['headerCardConfig']\r\n \"\r\n [styleConfig]=\"\r\n configurationItem()?.clientConfig?.displayConfig?.['StyleConfig']\r\n \"\r\n [cardStyleConfig]=\"\r\n configurationItem()?.clientConfig?.configAsType?.['cardStyleConfig']\r\n \"\r\n [density]=\"configurationItem()?.clientConfig?.configAsType?.['density']\"\r\n [padding]=\"configurationItem()?.clientConfig?.configAsType?.['padding']\"\r\n [title]=\"title()\"\r\n>\r\n <ng-container body>\r\n <ng-container *transloco=\"let t; prefix: 'dashboardBuilder'\">\r\n @if (showTabs()) {\r\n <div class=\"mb-3\">\r\n <mt-tabs\r\n [(active)]=\"tabSelected\"\r\n [options]=\"tabOptions()\"\r\n size=\"small\"\r\n />\r\n </div>\r\n }\r\n\r\n <div\r\n class=\"overflow-y-auto overflow-x-hidden\"\r\n [style.max-height]=\"inGroup() ? '500px' : null\"\r\n >\r\n @if (currentTabCards().length === 0) {\r\n <div class=\"py-6 text-center text-sm text-gray-400\">\r\n {{ t(\"noData\") }}\r\n </div>\r\n } @else {\r\n <div\r\n class=\"db-cards-grid\"\r\n [class.db-cards-grid--gallery]=\"galleryMode()\"\r\n >\r\n @for (cardView of currentTabCards(); track cardView.trackId) {\r\n <div\r\n class=\"mb-2 cursor-pointer p-2\"\r\n (click)=\"onCardClick(cardView.card)\"\r\n >\r\n <div class=\"rounded-lg bg-white p-3 shadow-sm\">\r\n @defer (on viewport) {\r\n <ng-container>\r\n @if (cardView.entities.length > 0) {\r\n <mt-entities-preview\r\n [entities]=\"cardView.entities\"\r\n [stackOnNarrow]=\"false\"\r\n />\r\n } @else {\r\n <div class=\"py-6 text-center text-sm text-gray-400\">\r\n {{ t(\"noData\") }}\r\n </div>\r\n }\r\n </ng-container>\r\n } @placeholder {\r\n <div class=\"min-h-24 p-2\">\r\n <div class=\"flex animate-pulse flex-col gap-3\">\r\n <div class=\"h-4 w-2/3 rounded bg-surface-200\"></div>\r\n <div class=\"h-4 w-full rounded bg-surface-100\"></div>\r\n <div class=\"h-4 w-5/6 rounded bg-surface-100\"></div>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n }\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n</mt-card-content>\r\n", styles: [":host{display:block;height:100%}.db-cards-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:.25rem}.db-cards-grid--gallery{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "component", type: Tabs, selector: "mt-tabs", inputs: ["options", "optionLabel", "optionValue", "active", "mode", "moreLabel", "defaultIcon", "size", "fluid", "disabled", "searchThreshold"], outputs: ["activeChange", "onChange"] }, { kind: "component", type: CardContentComponent, selector: "mt-card-content", inputs: ["title", "inGroup", "groupHeader", "headerConfig", "styleConfig", "cardStyleConfig", "density", "padding", "showHeader", "headerClickable", "isNoTopEnd", "isChart", "titleEditable"], outputs: ["headerClick", "titleChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, deferBlockDependencies: [() => [EntitiesPreview]] });
32238
32146
  }
32239
32147
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: PropertiesCardComponent, decorators: [{
32240
32148
  type: Component,
@@ -32244,7 +32152,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
32244
32152
  Tabs,
32245
32153
  EntitiesPreview,
32246
32154
  CardContentComponent,
32247
- ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<mt-card-content\n [inGroup]=\"inGroup()\"\n [headerConfig]=\"\n configurationItem()?.clientConfig?.configAsType?.['headerCardConfig']\n \"\n [styleConfig]=\"\n configurationItem()?.clientConfig?.displayConfig?.['StyleConfig']\n \"\n [cardStyleConfig]=\"\n configurationItem()?.clientConfig?.configAsType?.['cardStyleConfig']\n \"\n [density]=\"configurationItem()?.clientConfig?.configAsType?.['density']\"\n [padding]=\"configurationItem()?.clientConfig?.configAsType?.['padding']\"\n [title]=\"title()\"\n>\n <ng-container body>\n <ng-container *transloco=\"let t; prefix: 'dashboardBuilder'\">\n @if (showTabs()) {\n <div class=\"mb-3\">\n <mt-tabs\n [(active)]=\"tabSelected\"\n [options]=\"tabOptions()\"\n size=\"small\"\n />\n </div>\n }\n\n <div\n class=\"overflow-y-auto overflow-x-hidden\"\n [style.max-height]=\"inGroup() ? '500px' : null\"\n >\n @if (currentTabCards().length === 0) {\n <div class=\"py-6 text-center text-sm text-gray-400\">\n {{ t(\"noData\") }}\n </div>\n } @else {\n <div\n class=\"db-cards-grid\"\n [class.db-cards-grid--gallery]=\"galleryMode()\"\n >\n @for (cardView of currentTabCards(); track cardView.trackId) {\n <div\n class=\"mb-2 cursor-pointer p-2\"\n (click)=\"onCardClick(cardView.card)\"\n >\n <div class=\"rounded-lg bg-white p-3 shadow-sm\">\n @defer (on viewport) {\n <ng-container>\n @if (cardView.entities.length > 0) {\n <mt-entities-preview\n [entities]=\"cardView.entities\"\n [stackOnNarrow]=\"false\"\n />\n } @else {\n <div class=\"py-6 text-center text-sm text-gray-400\">\n {{ t(\"noData\") }}\n </div>\n }\n </ng-container>\n } @placeholder {\n <div class=\"min-h-24 p-2\">\n <div class=\"flex animate-pulse flex-col gap-3\">\n <div class=\"h-4 w-2/3 rounded bg-surface-200\"></div>\n <div class=\"h-4 w-full rounded bg-surface-100\"></div>\n <div class=\"h-4 w-5/6 rounded bg-surface-100\"></div>\n </div>\n </div>\n }\n </div>\n </div>\n }\n </div>\n }\n </div>\n </ng-container>\n </ng-container>\n</mt-card-content>\n", styles: [":host{display:block;height:100%}.db-cards-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:.25rem}.db-cards-grid--gallery{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}\n"] }]
32155
+ ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<mt-card-content\r\n [inGroup]=\"inGroup()\"\r\n [headerConfig]=\"\r\n configurationItem()?.clientConfig?.configAsType?.['headerCardConfig']\r\n \"\r\n [styleConfig]=\"\r\n configurationItem()?.clientConfig?.displayConfig?.['StyleConfig']\r\n \"\r\n [cardStyleConfig]=\"\r\n configurationItem()?.clientConfig?.configAsType?.['cardStyleConfig']\r\n \"\r\n [density]=\"configurationItem()?.clientConfig?.configAsType?.['density']\"\r\n [padding]=\"configurationItem()?.clientConfig?.configAsType?.['padding']\"\r\n [title]=\"title()\"\r\n>\r\n <ng-container body>\r\n <ng-container *transloco=\"let t; prefix: 'dashboardBuilder'\">\r\n @if (showTabs()) {\r\n <div class=\"mb-3\">\r\n <mt-tabs\r\n [(active)]=\"tabSelected\"\r\n [options]=\"tabOptions()\"\r\n size=\"small\"\r\n />\r\n </div>\r\n }\r\n\r\n <div\r\n class=\"overflow-y-auto overflow-x-hidden\"\r\n [style.max-height]=\"inGroup() ? '500px' : null\"\r\n >\r\n @if (currentTabCards().length === 0) {\r\n <div class=\"py-6 text-center text-sm text-gray-400\">\r\n {{ t(\"noData\") }}\r\n </div>\r\n } @else {\r\n <div\r\n class=\"db-cards-grid\"\r\n [class.db-cards-grid--gallery]=\"galleryMode()\"\r\n >\r\n @for (cardView of currentTabCards(); track cardView.trackId) {\r\n <div\r\n class=\"mb-2 cursor-pointer p-2\"\r\n (click)=\"onCardClick(cardView.card)\"\r\n >\r\n <div class=\"rounded-lg bg-white p-3 shadow-sm\">\r\n @defer (on viewport) {\r\n <ng-container>\r\n @if (cardView.entities.length > 0) {\r\n <mt-entities-preview\r\n [entities]=\"cardView.entities\"\r\n [stackOnNarrow]=\"false\"\r\n />\r\n } @else {\r\n <div class=\"py-6 text-center text-sm text-gray-400\">\r\n {{ t(\"noData\") }}\r\n </div>\r\n }\r\n </ng-container>\r\n } @placeholder {\r\n <div class=\"min-h-24 p-2\">\r\n <div class=\"flex animate-pulse flex-col gap-3\">\r\n <div class=\"h-4 w-2/3 rounded bg-surface-200\"></div>\r\n <div class=\"h-4 w-full rounded bg-surface-100\"></div>\r\n <div class=\"h-4 w-5/6 rounded bg-surface-100\"></div>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n }\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n</mt-card-content>\r\n", styles: [":host{display:block;height:100%}.db-cards-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:.25rem}.db-cards-grid--gallery{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}\n"] }]
32248
32156
  }], ctorParameters: () => [], propDecorators: { dashboardId: [{ type: i0.Input, args: [{ isSignal: true, alias: "dashboardId", required: true }] }], inGroup: [{ type: i0.Input, args: [{ isSignal: true, alias: "inGroup", required: false }] }], onAction: [{ type: i0.Output, args: ["onAction"] }] } });
32249
32157
 
32250
32158
  /**
@@ -33792,9 +33700,9 @@ class DashboardItem {
33792
33700
  return merged;
33793
33701
  }
33794
33702
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: DashboardItem, deps: [], target: i0.ɵɵFactoryTarget.Component });
33795
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: DashboardItem, isStandalone: true, selector: "mt-dashboard-item", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: false, transformFunction: null }, chartTypeId: { classPropertyName: "chartTypeId", publicName: "chartTypeId", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, useCachedDataOnly: { classPropertyName: "useCachedDataOnly", publicName: "useCachedDataOnly", isSignal: true, isRequired: false, transformFunction: null }, pageName: { classPropertyName: "pageName", publicName: "pageName", isSignal: true, isRequired: false, transformFunction: null }, inGroup: { classPropertyName: "inGroup", publicName: "inGroup", isSignal: true, isRequired: false, transformFunction: null }, isDialog: { classPropertyName: "isDialog", publicName: "isDialog", isSignal: true, isRequired: false, transformFunction: null }, queryParams: { classPropertyName: "queryParams", publicName: "queryParams", isSignal: true, isRequired: false, transformFunction: null }, extraFilters: { classPropertyName: "extraFilters", publicName: "extraFilters", isSignal: true, isRequired: false, transformFunction: null }, reportId: { classPropertyName: "reportId", publicName: "reportId", isSignal: true, isRequired: false, transformFunction: null }, ignoreQueryFilter: { classPropertyName: "ignoreQueryFilter", publicName: "ignoreQueryFilter", isSignal: true, isRequired: false, transformFunction: null }, builderMode: { classPropertyName: "builderMode", publicName: "builderMode", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { actionTriggered: "actionTriggered", configureRequested: "configureRequested", titleEdited: "titleEdited" }, ngImport: i0, template: "@if (isLoading()) {\r\n <mt-skeleton-card [dashboardId]=\"dashboardId()\"></mt-skeleton-card>\r\n} @else if (hasError()) {\r\n <div\r\n class=\"db-item-state db-item-state--error flex flex-col items-center justify-center h-full p-4 text-center\"\r\n *transloco=\"let t; prefix: 'dashboardBuilder'\"\r\n data-dashboard-ux-state=\"data-error\"\r\n >\r\n <mt-icon\r\n icon=\"general.alert-circle\"\r\n class=\"text-4xl text-red-500 mb-2\"\r\n ></mt-icon>\r\n <p class=\"text-red-500 font-medium\">\r\n {{ t(\"guided.dataError\") }}\r\n </p>\r\n <p class=\"text-xs text-muted-color max-w-md leading-snug mt-1\">\r\n {{ errorMessage() || t(\"guided.dataErrorHint\") }}\r\n </p>\r\n <mt-button\r\n class=\"mt-2\"\r\n [label]=\"t('guided.retry')\"\r\n severity=\"secondary\"\r\n size=\"small\"\r\n icon=\"arrow.refresh-cw-01\"\r\n (onClick)=\"refresh()\"\r\n data-dashboard-action=\"retry\"\r\n />\r\n </div>\r\n} @else if (needsConfiguration()) {\r\n <div\r\n class=\"db-item-state db-item-state--unconfigured flex h-full flex-col items-center justify-center gap-3 p-6 text-center bg-surface-50 rounded-md border border-dashed border-surface-300 relative\"\r\n *transloco=\"let t; prefix: 'dashboardBuilder'\"\r\n [attr.data-dashboard-ux-state]=\"guidanceUxState()\"\r\n data-dashboard-primary-action=\"configure-datasource\"\r\n >\r\n <mt-icon\r\n [icon]=\"guidanceIcon()\"\r\n class=\"text-4xl text-primary-500\"\r\n ></mt-icon>\r\n\r\n <div class=\"flex flex-col items-center gap-1\">\r\n <h3 class=\"text-base font-semibold text-surface-700\">\r\n {{ guidanceTitle() }}\r\n </h3>\r\n <p class=\"text-xs text-muted-color max-w-md leading-relaxed\">\r\n {{ guidanceHint() }}\r\n </p>\r\n </div>\r\n\r\n <mt-button\r\n [label]=\"guidancePrimaryLabel()\"\r\n [icon]=\"guidancePrimaryIcon()\"\r\n severity=\"primary\"\r\n size=\"small\"\r\n (onClick)=\"onConfigureRequested()\"\r\n data-dashboard-action=\"configure-datasource\"\r\n [attr.aria-label]=\"guidancePrimaryLabel()\"\r\n />\r\n\r\n @if (guidanceSecondaryLabel()) {\r\n <mt-button\r\n [label]=\"guidanceSecondaryLabel()\"\r\n [icon]=\"guidanceSecondaryIcon()\"\r\n severity=\"secondary\"\r\n size=\"small\"\r\n [text]=\"true\"\r\n (onClick)=\"onSecondaryRequested()\"\r\n [attr.aria-label]=\"guidanceSecondaryLabel()\"\r\n />\r\n }\r\n </div>\r\n} @else {\r\n @switch (componentName()) {\r\n <!-- Chart Types -->\r\n @case (\"chart\") {\r\n <mt-chart-card\r\n [dashboardId]=\"dashboardId()\"\r\n [reportId]=\"reportId()\"\r\n [inGroup]=\"inGroup()\"\r\n [titleEditable]=\"false\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n (onConfigure)=\"onConfigureRequested()\"\r\n (onTitleChange)=\"onTitleChange($event)\"\r\n >\r\n </mt-chart-card>\r\n }\r\n\r\n <!-- Map Chart -->\r\n @case (\"map\") {\r\n <mt-chart-card\r\n [dashboardId]=\"dashboardId()\"\r\n [reportId]=\"reportId()\"\r\n [inGroup]=\"inGroup()\"\r\n [titleEditable]=\"false\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n (onConfigure)=\"onConfigureRequested()\"\r\n (onTitleChange)=\"onTitleChange($event)\"\r\n >\r\n </mt-chart-card>\r\n }\r\n\r\n <!-- Background Text -->\r\n @case (\"BackgroundTextChart\") {\r\n <mt-header-card\r\n [dashboardId]=\"dashboardId()\"\r\n [titleEditable]=\"false\"\r\n (titleChange)=\"onTitleChange($event)\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n >\r\n </mt-header-card>\r\n }\r\n\r\n <!-- Chart Custom With Card Info -->\r\n @case (\"chartCustomWithCardInfo\") {\r\n <mt-chart-card\r\n [dashboardId]=\"dashboardId()\"\r\n [reportId]=\"reportId()\"\r\n [inGroup]=\"inGroup()\"\r\n [titleEditable]=\"false\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n (onConfigure)=\"onConfigureRequested()\"\r\n (onTitleChange)=\"onTitleChange($event)\"\r\n >\r\n </mt-chart-card>\r\n }\r\n\r\n <!-- List of Charts -->\r\n @case (\"listOfcharts\") {\r\n <mt-chart-card\r\n [dashboardId]=\"dashboardId()\"\r\n [reportId]=\"reportId()\"\r\n [inGroup]=\"inGroup()\"\r\n [titleEditable]=\"false\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n (onConfigure)=\"onConfigureRequested()\"\r\n (onTitleChange)=\"onTitleChange($event)\"\r\n >\r\n </mt-chart-card>\r\n }\r\n\r\n <!-- List of Cards Statistic -->\r\n @case (\"listOfCardsStatistic\") {\r\n <mt-list-statistic-card\r\n [dashboardId]=\"dashboardId()\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n >\r\n </mt-list-statistic-card>\r\n }\r\n\r\n <!-- Cards Statistic (single) -->\r\n @case (\"cardsStatistic\") {\r\n <mt-list-statistic-card\r\n [dashboardId]=\"dashboardId()\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n >\r\n </mt-list-statistic-card>\r\n }\r\n\r\n <!-- Header -->\r\n @case (\"header\") {\r\n <mt-header-card\r\n [dashboardId]=\"dashboardId()\"\r\n [titleEditable]=\"false\"\r\n (titleChange)=\"onTitleChange($event)\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n >\r\n </mt-header-card>\r\n }\r\n\r\n <!-- Footer (same as header) -->\r\n @case (\"footer\") {\r\n <mt-header-card\r\n [dashboardId]=\"dashboardId()\"\r\n [titleEditable]=\"false\"\r\n (titleChange)=\"onTitleChange($event)\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n >\r\n </mt-header-card>\r\n }\r\n\r\n <!-- Label (same as header) -->\r\n @case (\"label\") {\r\n <mt-header-card\r\n [dashboardId]=\"dashboardId()\"\r\n [titleEditable]=\"false\"\r\n (titleChange)=\"onTitleChange($event)\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n >\r\n </mt-header-card>\r\n }\r\n\r\n <!-- List of Level Cards -->\r\n @case (\"listOfLevelCards\") {\r\n <mt-properties-card\r\n [dashboardId]=\"dashboardId()\"\r\n [inGroup]=\"inGroup()\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n >\r\n </mt-properties-card>\r\n }\r\n\r\n @case (\"entitiesPreview\") {\r\n <mt-properties-card\r\n [dashboardId]=\"dashboardId()\"\r\n [inGroup]=\"inGroup()\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n >\r\n </mt-properties-card>\r\n }\r\n\r\n <!-- Table. The table card renders the data grid, so it loads on demand\r\n (@defer) and the grid stays out of every host bundle that only imports\r\n the dashboard-builder main entry. -->\r\n @case (\"table\") {\r\n @defer (on immediate) {\r\n <mt-table-card\r\n [dashboardId]=\"dashboardId()\"\r\n [inGroup]=\"inGroup()\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n >\r\n </mt-table-card>\r\n } @placeholder {\r\n <mt-skeleton-card [dashboardId]=\"dashboardId()\"></mt-skeleton-card>\r\n }\r\n }\r\n\r\n <!-- Phase Gate Table -->\r\n @case (\"phaseGateTable\") {\r\n @defer (on immediate) {\r\n <mt-table-card\r\n [dashboardId]=\"dashboardId()\"\r\n [inGroup]=\"inGroup()\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n >\r\n </mt-table-card>\r\n } @placeholder {\r\n <mt-skeleton-card [dashboardId]=\"dashboardId()\"></mt-skeleton-card>\r\n }\r\n }\r\n\r\n <!-- Topbar -->\r\n @case (\"topbar\") {\r\n <mt-topbar-card\r\n [dashboardId]=\"dashboardId()\"\r\n [defaultBreadcrumbLabel]=\"pageName()\"\r\n [titleEditable]=\"false\"\r\n (titleChange)=\"onTitleChange($event)\"\r\n ></mt-topbar-card>\r\n }\r\n\r\n <!-- Timeline -->\r\n @case (\"timeline\") {\r\n <mt-chart-card\r\n [dashboardId]=\"dashboardId()\"\r\n [reportId]=\"reportId()\"\r\n [inGroup]=\"inGroup()\"\r\n [titleEditable]=\"false\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n (onConfigure)=\"onConfigureRequested()\"\r\n (onTitleChange)=\"onTitleChange($event)\"\r\n >\r\n </mt-chart-card>\r\n }\r\n\r\n <!-- Timeline Project Dependencies -->\r\n @case (\"timelineProjectDependencies\") {\r\n <mt-chart-card\r\n [dashboardId]=\"dashboardId()\"\r\n [reportId]=\"reportId()\"\r\n [inGroup]=\"inGroup()\"\r\n [titleEditable]=\"false\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n (onConfigure)=\"onConfigureRequested()\"\r\n (onTitleChange)=\"onTitleChange($event)\"\r\n >\r\n </mt-chart-card>\r\n }\r\n\r\n <!-- Last History Level Card (TableView shape) -->\r\n @case (\"lastHistoryLevelCard\") {\r\n <mt-last-history-level-card\r\n [dashboardId]=\"dashboardId()\"\r\n [reportId]=\"reportId()\"\r\n [inGroup]=\"inGroup()\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n >\r\n </mt-last-history-level-card>\r\n }\r\n\r\n <!-- Entity Preview -->\r\n @case (\"entityPreview\") {\r\n <mt-entity-preview-card [dashboardId]=\"dashboardId()\">\r\n </mt-entity-preview-card>\r\n }\r\n\r\n <!-- Entity Preview With Formula -->\r\n @case (\"entityPreviewWithFormula\") {\r\n <mt-entity-preview-card [dashboardId]=\"dashboardId()\">\r\n </mt-entity-preview-card>\r\n }\r\n\r\n <!-- Performance Card (BarV2Chart formula -> entity preview style) -->\r\n @case (\"performanceCard\") {\r\n <mt-entity-preview-card [dashboardId]=\"dashboardId()\">\r\n </mt-entity-preview-card>\r\n }\r\n\r\n <!-- Performance Gauge Card (S+) -->\r\n @case (\"performanceGaugeCard\") {\r\n <mt-chart-card\r\n [dashboardId]=\"dashboardId()\"\r\n [reportId]=\"reportId()\"\r\n [inGroup]=\"inGroup()\"\r\n [titleEditable]=\"false\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n (onConfigure)=\"onConfigureRequested()\"\r\n (onTitleChange)=\"onTitleChange($event)\"\r\n >\r\n </mt-chart-card>\r\n }\r\n\r\n <!-- Cluster Stacked Chart -->\r\n @case (\"clusterStackedChart\") {\r\n <mt-chart-card\r\n [dashboardId]=\"dashboardId()\"\r\n [reportId]=\"reportId()\"\r\n [inGroup]=\"inGroup()\"\r\n [titleEditable]=\"false\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n (onConfigure)=\"onConfigureRequested()\"\r\n (onTitleChange)=\"onTitleChange($event)\"\r\n >\r\n </mt-chart-card>\r\n }\r\n\r\n <!-- List Component S+ Card -->\r\n @case (\"listComponentSplusCard\") {\r\n <mt-list-statistic-card\r\n [dashboardId]=\"dashboardId()\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n >\r\n </mt-list-statistic-card>\r\n }\r\n\r\n <!-- Splitter Chart -->\r\n @case (\"splitterChart\") {\r\n <mt-chart-card\r\n [dashboardId]=\"dashboardId()\"\r\n [reportId]=\"reportId()\"\r\n [inGroup]=\"inGroup()\"\r\n [titleEditable]=\"false\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n (onConfigure)=\"onConfigureRequested()\"\r\n (onTitleChange)=\"onTitleChange($event)\"\r\n >\r\n </mt-chart-card>\r\n }\r\n\r\n <!-- Repeater (same as header) -->\r\n @case (\"repeater\") {\r\n <mt-header-card\r\n [dashboardId]=\"dashboardId()\"\r\n [titleEditable]=\"false\"\r\n (titleChange)=\"onTitleChange($event)\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n >\r\n </mt-header-card>\r\n }\r\n\r\n <!-- Level Cards With Static -->\r\n @case (\"levelCardsWithStatic\") {\r\n <mt-list-statistic-card\r\n [dashboardId]=\"dashboardId()\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n >\r\n </mt-list-statistic-card>\r\n }\r\n\r\n <!-- Phase Gate Stepper Card -->\r\n @case (\"phaseGateStepperCard\") {\r\n <mt-chart-card\r\n [dashboardId]=\"dashboardId()\"\r\n [reportId]=\"reportId()\"\r\n [inGroup]=\"inGroup()\"\r\n [titleEditable]=\"false\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n (onConfigure)=\"onConfigureRequested()\"\r\n (onTitleChange)=\"onTitleChange($event)\"\r\n >\r\n </mt-chart-card>\r\n }\r\n\r\n <!-- Dialog: rendered inside DashboardDialogComponent as a Table view.\r\n Header hidden \u2014 the dialog header already names it. -->\r\n @case (\"dialog\") {\r\n @defer (on immediate) {\r\n <mt-table-card\r\n [dashboardId]=\"dashboardId()\"\r\n [inGroup]=\"inGroup()\"\r\n [hideHeader]=\"true\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n >\r\n </mt-table-card>\r\n } @placeholder {\r\n <mt-skeleton-card [dashboardId]=\"dashboardId()\"></mt-skeleton-card>\r\n }\r\n }\r\n\r\n <!-- Default: try chart -->\r\n @default {\r\n <mt-chart-card\r\n [dashboardId]=\"dashboardId()\"\r\n [reportId]=\"reportId()\"\r\n [inGroup]=\"inGroup()\"\r\n [titleEditable]=\"false\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n (onConfigure)=\"onConfigureRequested()\"\r\n (onTitleChange)=\"onTitleChange($event)\"\r\n >\r\n </mt-chart-card>\r\n }\r\n }\r\n}\r\n", styles: [":host{display:block;width:100%;height:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "component", type: Button, selector: "mt-button", inputs: ["icon", "label", "tooltip", "class", "type", "styleClass", "severity", "badge", "variant", "badgeSeverity", "size", "iconPos", "autofocus", "fluid", "raised", "rounded", "text", "plain", "outlined", "link", "disabled", "loading", "pInputs", "ariaLabel"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: Icon, selector: "mt-icon", inputs: ["icon"] }, { kind: "component", type: ChartCardComponent, selector: "mt-chart-card", inputs: ["dashboardId", "reportId", "inGroup", "isConfigMode", "titleEditable"], outputs: ["onAction", "onConfigure", "onTitleChange"] }, { kind: "component", type: ListStatisticCardComponent, selector: "mt-list-statistic-card", inputs: ["dashboardId"], outputs: ["onAction"] }, { kind: "component", type: HeaderCardComponent, selector: "mt-header-card", inputs: ["dashboardId", "titleEditable"], outputs: ["onAction", "titleChange"] }, { kind: "component", type: TopbarCardComponent, selector: "mt-topbar-card", inputs: ["dashboardId", "defaultBreadcrumbLabel", "titleEditable"], outputs: ["titleChange"] }, { kind: "component", type: SkeletonCardComponent, selector: "mt-skeleton-card", inputs: ["dashboardId"] }, { kind: "component", type: PropertiesCardComponent, selector: "mt-properties-card, mt-entities-preview-card", inputs: ["dashboardId", "inGroup"], outputs: ["onAction"] }, { kind: "component", type: EntityPreviewCardComponent, selector: "mt-entity-preview-card", inputs: ["dashboardId"] }, { kind: "component", type: LastHistoryLevelCardComponent, selector: "mt-last-history-level-card", inputs: ["dashboardId", "reportId", "inGroup"], outputs: ["onAction"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None, deferBlockDependencies: [() => [import('./masterteam-dashboard-builder-table-card.component-kHPxfvAb.mjs').then(m => m.TableCardComponent)], () => [import('./masterteam-dashboard-builder-table-card.component-kHPxfvAb.mjs').then(m => m.TableCardComponent)], () => [import('./masterteam-dashboard-builder-table-card.component-kHPxfvAb.mjs').then(m => m.TableCardComponent)]] });
33703
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: DashboardItem, isStandalone: true, selector: "mt-dashboard-item", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: false, transformFunction: null }, chartTypeId: { classPropertyName: "chartTypeId", publicName: "chartTypeId", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, useCachedDataOnly: { classPropertyName: "useCachedDataOnly", publicName: "useCachedDataOnly", isSignal: true, isRequired: false, transformFunction: null }, pageName: { classPropertyName: "pageName", publicName: "pageName", isSignal: true, isRequired: false, transformFunction: null }, inGroup: { classPropertyName: "inGroup", publicName: "inGroup", isSignal: true, isRequired: false, transformFunction: null }, isDialog: { classPropertyName: "isDialog", publicName: "isDialog", isSignal: true, isRequired: false, transformFunction: null }, queryParams: { classPropertyName: "queryParams", publicName: "queryParams", isSignal: true, isRequired: false, transformFunction: null }, extraFilters: { classPropertyName: "extraFilters", publicName: "extraFilters", isSignal: true, isRequired: false, transformFunction: null }, reportId: { classPropertyName: "reportId", publicName: "reportId", isSignal: true, isRequired: false, transformFunction: null }, ignoreQueryFilter: { classPropertyName: "ignoreQueryFilter", publicName: "ignoreQueryFilter", isSignal: true, isRequired: false, transformFunction: null }, builderMode: { classPropertyName: "builderMode", publicName: "builderMode", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { actionTriggered: "actionTriggered", configureRequested: "configureRequested", titleEdited: "titleEdited" }, ngImport: i0, template: "@if (isLoading()) {\r\n <mt-skeleton-card [dashboardId]=\"dashboardId()\"></mt-skeleton-card>\r\n} @else if (hasError()) {\r\n <div\r\n class=\"db-item-state db-item-state--error flex flex-col items-center justify-center h-full p-4 text-center\"\r\n *transloco=\"let t; prefix: 'dashboardBuilder'\"\r\n data-dashboard-ux-state=\"data-error\"\r\n >\r\n <mt-icon\r\n icon=\"general.alert-circle\"\r\n class=\"text-4xl text-red-500 mb-2\"\r\n ></mt-icon>\r\n <p class=\"text-red-500 font-medium\">\r\n {{ t(\"guided.dataError\") }}\r\n </p>\r\n <p class=\"text-xs text-muted-color max-w-md leading-snug mt-1\">\r\n {{ errorMessage() || t(\"guided.dataErrorHint\") }}\r\n </p>\r\n <mt-button\r\n class=\"mt-2\"\r\n [label]=\"t('guided.retry')\"\r\n severity=\"secondary\"\r\n size=\"small\"\r\n icon=\"arrow.refresh-cw-01\"\r\n (onClick)=\"refresh()\"\r\n data-dashboard-action=\"retry\"\r\n />\r\n </div>\r\n} @else if (needsConfiguration()) {\r\n <div\r\n class=\"db-item-state db-item-state--unconfigured flex h-full flex-col items-center justify-center gap-3 p-6 text-center bg-surface-50 rounded-md border border-dashed border-surface-300 relative\"\r\n *transloco=\"let t; prefix: 'dashboardBuilder'\"\r\n [attr.data-dashboard-ux-state]=\"guidanceUxState()\"\r\n data-dashboard-primary-action=\"configure-datasource\"\r\n >\r\n <mt-icon\r\n [icon]=\"guidanceIcon()\"\r\n class=\"text-4xl text-primary-500\"\r\n ></mt-icon>\r\n\r\n <div class=\"flex flex-col items-center gap-1\">\r\n <h3 class=\"text-base font-semibold text-surface-700\">\r\n {{ guidanceTitle() }}\r\n </h3>\r\n <p class=\"text-xs text-muted-color max-w-md leading-relaxed\">\r\n {{ guidanceHint() }}\r\n </p>\r\n </div>\r\n\r\n <mt-button\r\n [label]=\"guidancePrimaryLabel()\"\r\n [icon]=\"guidancePrimaryIcon()\"\r\n severity=\"primary\"\r\n size=\"small\"\r\n (onClick)=\"onConfigureRequested()\"\r\n data-dashboard-action=\"configure-datasource\"\r\n [attr.aria-label]=\"guidancePrimaryLabel()\"\r\n />\r\n\r\n @if (guidanceSecondaryLabel()) {\r\n <mt-button\r\n [label]=\"guidanceSecondaryLabel()\"\r\n [icon]=\"guidanceSecondaryIcon()\"\r\n severity=\"secondary\"\r\n size=\"small\"\r\n [text]=\"true\"\r\n (onClick)=\"onSecondaryRequested()\"\r\n [attr.aria-label]=\"guidanceSecondaryLabel()\"\r\n />\r\n }\r\n </div>\r\n} @else {\r\n @switch (componentName()) {\r\n <!-- Chart Types -->\r\n @case (\"chart\") {\r\n <mt-chart-card\r\n [dashboardId]=\"dashboardId()\"\r\n [reportId]=\"reportId()\"\r\n [inGroup]=\"inGroup()\"\r\n [titleEditable]=\"false\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n (onConfigure)=\"onConfigureRequested()\"\r\n (onTitleChange)=\"onTitleChange($event)\"\r\n >\r\n </mt-chart-card>\r\n }\r\n\r\n <!-- Map Chart -->\r\n @case (\"map\") {\r\n <mt-chart-card\r\n [dashboardId]=\"dashboardId()\"\r\n [reportId]=\"reportId()\"\r\n [inGroup]=\"inGroup()\"\r\n [titleEditable]=\"false\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n (onConfigure)=\"onConfigureRequested()\"\r\n (onTitleChange)=\"onTitleChange($event)\"\r\n >\r\n </mt-chart-card>\r\n }\r\n\r\n <!-- Background Text -->\r\n @case (\"BackgroundTextChart\") {\r\n <mt-header-card\r\n [dashboardId]=\"dashboardId()\"\r\n [titleEditable]=\"false\"\r\n (titleChange)=\"onTitleChange($event)\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n >\r\n </mt-header-card>\r\n }\r\n\r\n <!-- Chart Custom With Card Info -->\r\n @case (\"chartCustomWithCardInfo\") {\r\n <mt-chart-card\r\n [dashboardId]=\"dashboardId()\"\r\n [reportId]=\"reportId()\"\r\n [inGroup]=\"inGroup()\"\r\n [titleEditable]=\"false\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n (onConfigure)=\"onConfigureRequested()\"\r\n (onTitleChange)=\"onTitleChange($event)\"\r\n >\r\n </mt-chart-card>\r\n }\r\n\r\n <!-- List of Charts -->\r\n @case (\"listOfcharts\") {\r\n <mt-chart-card\r\n [dashboardId]=\"dashboardId()\"\r\n [reportId]=\"reportId()\"\r\n [inGroup]=\"inGroup()\"\r\n [titleEditable]=\"false\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n (onConfigure)=\"onConfigureRequested()\"\r\n (onTitleChange)=\"onTitleChange($event)\"\r\n >\r\n </mt-chart-card>\r\n }\r\n\r\n <!-- List of Cards Statistic -->\r\n @case (\"listOfCardsStatistic\") {\r\n <mt-list-statistic-card\r\n [dashboardId]=\"dashboardId()\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n >\r\n </mt-list-statistic-card>\r\n }\r\n\r\n <!-- Cards Statistic (single) -->\r\n @case (\"cardsStatistic\") {\r\n <mt-list-statistic-card\r\n [dashboardId]=\"dashboardId()\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n >\r\n </mt-list-statistic-card>\r\n }\r\n\r\n <!-- Header -->\r\n @case (\"header\") {\r\n <mt-header-card\r\n [dashboardId]=\"dashboardId()\"\r\n [titleEditable]=\"false\"\r\n (titleChange)=\"onTitleChange($event)\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n >\r\n </mt-header-card>\r\n }\r\n\r\n <!-- Footer (same as header) -->\r\n @case (\"footer\") {\r\n <mt-header-card\r\n [dashboardId]=\"dashboardId()\"\r\n [titleEditable]=\"false\"\r\n (titleChange)=\"onTitleChange($event)\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n >\r\n </mt-header-card>\r\n }\r\n\r\n <!-- Label (same as header) -->\r\n @case (\"label\") {\r\n <mt-header-card\r\n [dashboardId]=\"dashboardId()\"\r\n [titleEditable]=\"false\"\r\n (titleChange)=\"onTitleChange($event)\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n >\r\n </mt-header-card>\r\n }\r\n\r\n <!-- List of Level Cards -->\r\n @case (\"listOfLevelCards\") {\r\n <mt-properties-card\r\n [dashboardId]=\"dashboardId()\"\r\n [inGroup]=\"inGroup()\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n >\r\n </mt-properties-card>\r\n }\r\n\r\n @case (\"entitiesPreview\") {\r\n <mt-properties-card\r\n [dashboardId]=\"dashboardId()\"\r\n [inGroup]=\"inGroup()\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n >\r\n </mt-properties-card>\r\n }\r\n\r\n <!-- Table. The table card renders the data grid, so it loads on demand\r\n (@defer) and the grid stays out of every host bundle that only imports\r\n the dashboard-builder main entry. -->\r\n @case (\"table\") {\r\n @defer (on immediate) {\r\n <mt-table-card\r\n [dashboardId]=\"dashboardId()\"\r\n [inGroup]=\"inGroup()\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n >\r\n </mt-table-card>\r\n } @placeholder {\r\n <mt-skeleton-card [dashboardId]=\"dashboardId()\"></mt-skeleton-card>\r\n }\r\n }\r\n\r\n <!-- Phase Gate Table -->\r\n @case (\"phaseGateTable\") {\r\n @defer (on immediate) {\r\n <mt-table-card\r\n [dashboardId]=\"dashboardId()\"\r\n [inGroup]=\"inGroup()\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n >\r\n </mt-table-card>\r\n } @placeholder {\r\n <mt-skeleton-card [dashboardId]=\"dashboardId()\"></mt-skeleton-card>\r\n }\r\n }\r\n\r\n <!-- Topbar -->\r\n @case (\"topbar\") {\r\n <mt-topbar-card\r\n [dashboardId]=\"dashboardId()\"\r\n [defaultBreadcrumbLabel]=\"pageName()\"\r\n [titleEditable]=\"false\"\r\n (titleChange)=\"onTitleChange($event)\"\r\n ></mt-topbar-card>\r\n }\r\n\r\n <!-- Timeline -->\r\n @case (\"timeline\") {\r\n <mt-chart-card\r\n [dashboardId]=\"dashboardId()\"\r\n [reportId]=\"reportId()\"\r\n [inGroup]=\"inGroup()\"\r\n [titleEditable]=\"false\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n (onConfigure)=\"onConfigureRequested()\"\r\n (onTitleChange)=\"onTitleChange($event)\"\r\n >\r\n </mt-chart-card>\r\n }\r\n\r\n <!-- Timeline Project Dependencies -->\r\n @case (\"timelineProjectDependencies\") {\r\n <mt-chart-card\r\n [dashboardId]=\"dashboardId()\"\r\n [reportId]=\"reportId()\"\r\n [inGroup]=\"inGroup()\"\r\n [titleEditable]=\"false\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n (onConfigure)=\"onConfigureRequested()\"\r\n (onTitleChange)=\"onTitleChange($event)\"\r\n >\r\n </mt-chart-card>\r\n }\r\n\r\n <!-- Last History Level Card (TableView shape) -->\r\n @case (\"lastHistoryLevelCard\") {\r\n <mt-last-history-level-card\r\n [dashboardId]=\"dashboardId()\"\r\n [reportId]=\"reportId()\"\r\n [inGroup]=\"inGroup()\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n >\r\n </mt-last-history-level-card>\r\n }\r\n\r\n <!-- Entity Preview -->\r\n @case (\"entityPreview\") {\r\n <mt-entity-preview-card [dashboardId]=\"dashboardId()\">\r\n </mt-entity-preview-card>\r\n }\r\n\r\n <!-- Entity Preview With Formula -->\r\n @case (\"entityPreviewWithFormula\") {\r\n <mt-entity-preview-card [dashboardId]=\"dashboardId()\">\r\n </mt-entity-preview-card>\r\n }\r\n\r\n <!-- Performance Card (BarV2Chart formula -> entity preview style) -->\r\n @case (\"performanceCard\") {\r\n <mt-entity-preview-card [dashboardId]=\"dashboardId()\">\r\n </mt-entity-preview-card>\r\n }\r\n\r\n <!-- Performance Gauge Card (S+) -->\r\n @case (\"performanceGaugeCard\") {\r\n <mt-chart-card\r\n [dashboardId]=\"dashboardId()\"\r\n [reportId]=\"reportId()\"\r\n [inGroup]=\"inGroup()\"\r\n [titleEditable]=\"false\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n (onConfigure)=\"onConfigureRequested()\"\r\n (onTitleChange)=\"onTitleChange($event)\"\r\n >\r\n </mt-chart-card>\r\n }\r\n\r\n <!-- Cluster Stacked Chart -->\r\n @case (\"clusterStackedChart\") {\r\n <mt-chart-card\r\n [dashboardId]=\"dashboardId()\"\r\n [reportId]=\"reportId()\"\r\n [inGroup]=\"inGroup()\"\r\n [titleEditable]=\"false\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n (onConfigure)=\"onConfigureRequested()\"\r\n (onTitleChange)=\"onTitleChange($event)\"\r\n >\r\n </mt-chart-card>\r\n }\r\n\r\n <!-- List Component S+ Card -->\r\n @case (\"listComponentSplusCard\") {\r\n <mt-list-statistic-card\r\n [dashboardId]=\"dashboardId()\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n >\r\n </mt-list-statistic-card>\r\n }\r\n\r\n <!-- Splitter Chart -->\r\n @case (\"splitterChart\") {\r\n <mt-chart-card\r\n [dashboardId]=\"dashboardId()\"\r\n [reportId]=\"reportId()\"\r\n [inGroup]=\"inGroup()\"\r\n [titleEditable]=\"false\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n (onConfigure)=\"onConfigureRequested()\"\r\n (onTitleChange)=\"onTitleChange($event)\"\r\n >\r\n </mt-chart-card>\r\n }\r\n\r\n <!-- Repeater (same as header) -->\r\n @case (\"repeater\") {\r\n <mt-header-card\r\n [dashboardId]=\"dashboardId()\"\r\n [titleEditable]=\"false\"\r\n (titleChange)=\"onTitleChange($event)\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n >\r\n </mt-header-card>\r\n }\r\n\r\n <!-- Level Cards With Static -->\r\n @case (\"levelCardsWithStatic\") {\r\n <mt-list-statistic-card\r\n [dashboardId]=\"dashboardId()\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n >\r\n </mt-list-statistic-card>\r\n }\r\n\r\n <!-- Phase Gate Stepper Card -->\r\n @case (\"phaseGateStepperCard\") {\r\n <mt-chart-card\r\n [dashboardId]=\"dashboardId()\"\r\n [reportId]=\"reportId()\"\r\n [inGroup]=\"inGroup()\"\r\n [titleEditable]=\"false\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n (onConfigure)=\"onConfigureRequested()\"\r\n (onTitleChange)=\"onTitleChange($event)\"\r\n >\r\n </mt-chart-card>\r\n }\r\n\r\n <!-- Dialog: rendered inside DashboardDialogComponent as a Table view.\r\n Header hidden \u2014 the dialog header already names it. -->\r\n @case (\"dialog\") {\r\n @defer (on immediate) {\r\n <mt-table-card\r\n [dashboardId]=\"dashboardId()\"\r\n [inGroup]=\"inGroup()\"\r\n [hideHeader]=\"true\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n >\r\n </mt-table-card>\r\n } @placeholder {\r\n <mt-skeleton-card [dashboardId]=\"dashboardId()\"></mt-skeleton-card>\r\n }\r\n }\r\n\r\n <!-- Default: try chart -->\r\n @default {\r\n <mt-chart-card\r\n [dashboardId]=\"dashboardId()\"\r\n [reportId]=\"reportId()\"\r\n [inGroup]=\"inGroup()\"\r\n [titleEditable]=\"false\"\r\n (onAction)=\"doActions($event.data, $event.type)\"\r\n (onConfigure)=\"onConfigureRequested()\"\r\n (onTitleChange)=\"onTitleChange($event)\"\r\n >\r\n </mt-chart-card>\r\n }\r\n }\r\n}\r\n", styles: [":host{display:block;width:100%;height:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "component", type: Button, selector: "mt-button", inputs: ["icon", "label", "tooltip", "class", "type", "styleClass", "severity", "badge", "variant", "badgeSeverity", "size", "iconPos", "autofocus", "fluid", "raised", "rounded", "text", "plain", "outlined", "link", "disabled", "loading", "pInputs", "ariaLabel"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: Icon, selector: "mt-icon", inputs: ["icon"] }, { kind: "component", type: ChartCardComponent, selector: "mt-chart-card", inputs: ["dashboardId", "reportId", "inGroup", "isConfigMode", "titleEditable"], outputs: ["onAction", "onConfigure", "onTitleChange"] }, { kind: "component", type: ListStatisticCardComponent, selector: "mt-list-statistic-card", inputs: ["dashboardId"], outputs: ["onAction"] }, { kind: "component", type: HeaderCardComponent, selector: "mt-header-card", inputs: ["dashboardId", "titleEditable"], outputs: ["onAction", "titleChange"] }, { kind: "component", type: TopbarCardComponent, selector: "mt-topbar-card", inputs: ["dashboardId", "defaultBreadcrumbLabel", "titleEditable"], outputs: ["titleChange"] }, { kind: "component", type: SkeletonCardComponent, selector: "mt-skeleton-card", inputs: ["dashboardId"] }, { kind: "component", type: PropertiesCardComponent, selector: "mt-properties-card, mt-entities-preview-card", inputs: ["dashboardId", "inGroup"], outputs: ["onAction"] }, { kind: "component", type: EntityPreviewCardComponent, selector: "mt-entity-preview-card", inputs: ["dashboardId"] }, { kind: "component", type: LastHistoryLevelCardComponent, selector: "mt-last-history-level-card", inputs: ["dashboardId", "reportId", "inGroup"], outputs: ["onAction"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None, deferBlockDependencies: [() => [import('./masterteam-dashboard-builder-table-card.component-CKAm_KXn.mjs').then(m => m.TableCardComponent)], () => [import('./masterteam-dashboard-builder-table-card.component-CKAm_KXn.mjs').then(m => m.TableCardComponent)], () => [import('./masterteam-dashboard-builder-table-card.component-CKAm_KXn.mjs').then(m => m.TableCardComponent)]] });
33796
33704
  }
33797
- i0.ɵɵngDeclareClassMetadataAsync({ minVersion: "18.0.0", version: "21.2.8", ngImport: i0, type: DashboardItem, resolveDeferredDeps: () => [import('./masterteam-dashboard-builder-table-card.component-kHPxfvAb.mjs').then(m => m.TableCardComponent)], resolveMetadata: TableCardComponent => ({ decorators: [{
33705
+ i0.ɵɵngDeclareClassMetadataAsync({ minVersion: "18.0.0", version: "21.2.8", ngImport: i0, type: DashboardItem, resolveDeferredDeps: () => [import('./masterteam-dashboard-builder-table-card.component-CKAm_KXn.mjs').then(m => m.TableCardComponent)], resolveMetadata: TableCardComponent => ({ decorators: [{
33798
33706
  type: Component,
33799
33707
  args: [{ selector: 'mt-dashboard-item', standalone: true, imports: [
33800
33708
  CommonModule,
@@ -36146,7 +36054,7 @@ class StyleStudioDrawer {
36146
36054
  return out === full ? fallback : out;
36147
36055
  }
36148
36056
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: StyleStudioDrawer, deps: [], target: i0.ɵɵFactoryTarget.Component });
36149
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: StyleStudioDrawer, isStandalone: true, selector: "mt-style-studio-drawer", viewQueries: [{ propertyName: "scrollPane", first: true, predicate: ["scrollPane"], descendants: true, isSignal: true }, { propertyName: "previewViewer", first: true, predicate: ChartViewer, descendants: true, isSignal: true }], ngImport: i0, template: "<div\n [class]=\"modal.contentClass + ' db-style-studio flex h-full min-h-0 flex-col'\"\n *transloco=\"let t; prefix: 'dashboardBuilder'\"\n>\n <!-- Header -->\n <div\n class=\"flex flex-wrap items-center gap-3 border-b border-surface-200 bg-surface-0 px-4 py-3\"\n >\n <span\n class=\"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-primary-100 text-primary-600\"\n >\n <mt-icon [icon]=\"chartIcon()\" class=\"text-lg\" />\n </span>\n <div class=\"mr-auto min-w-0\">\n <h3 class=\"truncate text-sm font-semibold text-color\">\n {{ t(\"styleStudio.title\") }}\n </h3>\n <p class=\"truncate text-xs text-muted-color\" mtTruncateTooltip>\n {{ chartName() }}\n </p>\n </div>\n\n <mt-segmented-field\n [options]=\"scopeOptions()\"\n [value]=\"scope()\"\n [ariaLabel]=\"t('styleStudio.detailLevel')\"\n (valueChange)=\"onScopeChange($event)\"\n />\n\n <mt-text-field\n class=\"w-56 self-center\"\n icon=\"general.search-md\"\n iconPosition=\"start\"\n [placeholder]=\"t('styleStudio.findSetting')\"\n [field]=\"false\"\n [formControl]=\"searchControl\"\n />\n </div>\n\n <!-- Body -->\n <div class=\"flex min-h-0 flex-1\">\n <!-- Left rail (sections grouped under category headers) -->\n <nav\n class=\"db-style-studio__rail hidden w-52 shrink-0 flex-col gap-1 overflow-y-auto border-r border-surface-200 bg-surface-50 p-2 md:flex\"\n >\n @for (group of navGroups(); track group.label) {\n <div class=\"mt-2 first:mt-0\">\n <p\n class=\"px-3 pb-1 pt-1 text-[0.65rem] font-semibold uppercase tracking-wider text-muted-color\"\n >\n {{ group.label }}\n </p>\n @for (section of group.sections; track section.key) {\n <button\n type=\"button\"\n class=\"flex w-full items-center gap-2 rounded-lg px-3 py-1.5 text-left text-sm font-medium transition-colors duration-200\"\n [class.bg-surface-0]=\"activeSection() === section.key\"\n [class.text-primary-600]=\"activeSection() === section.key\"\n [class.shadow-sm]=\"activeSection() === section.key\"\n [class.text-muted-color]=\"activeSection() !== section.key\"\n [class.hover:bg-surface-100]=\"activeSection() !== section.key\"\n (click)=\"scrollTo(section)\"\n >\n <mt-icon [icon]=\"section.icon\" class=\"text-base\" />\n <span class=\"truncate\" mtTruncateTooltip>{{\n section.label\n }}</span>\n </button>\n }\n </div>\n }\n </nav>\n\n <!-- Settings pane -->\n <div\n #scrollPane\n class=\"min-w-0 flex-1 overflow-y-auto p-4\"\n (scroll)=\"onScroll()\"\n >\n <mt-style-settings-renderer\n [visibleSections]=\"navSections()\"\n [persisted]=\"itemConfig()\"\n [capability]=\"capability()\"\n [scope]=\"scope()\"\n [legendItems]=\"legendItems()\"\n (patch)=\"onPatch($event)\"\n (requestScope)=\"scope.set($event)\"\n />\n </div>\n\n <!-- Resizable splitter (config \u2194 preview) -->\n <div\n class=\"db-style-studio__splitter hidden w-1.5 shrink-0 cursor-col-resize touch-none bg-surface-200 transition-colors hover:bg-primary-400 lg:block\"\n role=\"separator\"\n aria-orientation=\"vertical\"\n [attr.aria-label]=\"t('styleStudio.messages.resizePreview')\"\n (pointerdown)=\"startResize($event)\"\n (pointermove)=\"onResizeMove($event)\"\n (pointerup)=\"endResize()\"\n (pointercancel)=\"endResize()\"\n ></div>\n\n <!-- Live preview (renders ALL widget types via the dashboard item) -->\n <div\n class=\"db-style-studio__preview hidden shrink-0 flex-col bg-surface-50 p-4 lg:flex\"\n [style.width.px]=\"previewWidth()\"\n >\n <div\n class=\"mb-2 flex items-center gap-1.5 text-xs font-semibold uppercase tracking-wide text-muted-color\"\n >\n <mt-icon icon=\"general.eye\" class=\"text-sm\" />\n <span>{{ t(\"styleStudio.livePreview\") }}</span>\n </div>\n <div class=\"min-h-0 flex-1 overflow-auto\">\n <!-- Dialog chrome. A linked dialog opens in a modal, so its header \u2014\n not a card header \u2014 is what the \"Dialog header\" section edits.\n Both wrappers collapse to `contents` for every other widget, so\n the ordinary preview layout is untouched. -->\n <div [class]=\"previewFrameClass()\">\n @if (isDialogPreview()) {\n <div\n class=\"flex shrink-0 items-center gap-2 border-b border-surface-200 bg-surface-100 px-5 py-4\"\n >\n @if (dialogHeaderPreview().icon) {\n <mt-icon\n [icon]=\"$any(dialogHeaderPreview().icon)\"\n class=\"shrink-0 text-lg\"\n [style.color]=\"dialogHeaderPreview().iconColor || 'inherit'\"\n />\n }\n <span\n class=\"min-w-0 flex-1 truncate font-semibold text-color\"\n mtTruncateTooltip\n >{{\n dialogHeaderPreview().title ||\n t(\"styleStudio.messages.untitledDialog\")\n }}</span\n >\n <span\n class=\"flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-surface-0 text-muted-color\"\n aria-hidden=\"true\"\n >\n <mt-icon icon=\"general.x-close\" class=\"text-sm\" />\n </span>\n </div>\n }\n <div [class]=\"previewBodyClass()\">\n <mt-chart-viewer\n [config]=\"previewConfig()\"\n [chartTypeId]=\"previewChartTypeId()\"\n [hideHeader]=\"isDialogPreview()\"\n [useCachedDataOnly]=\"true\"\n />\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<!-- Footer \u2014 sibling of content so the drawer pins it to the bottom -->\n<div\n [class]=\"\n modal.footerClass + ' border-t border-surface-200 bg-surface-0 px-4 py-3'\n \"\n *transloco=\"let t; prefix: 'dashboardBuilder'\"\n>\n <mt-button\n [label]=\"t('styleStudio.resetAll')\"\n icon=\"arrow.refresh-ccw-01\"\n severity=\"secondary\"\n variant=\"text\"\n class=\"mr-auto\"\n (onClick)=\"resetAll()\"\n />\n <mt-button [label]=\"t('cancel')\" variant=\"outlined\" (onClick)=\"close()\" />\n <mt-button [label]=\"t('apply')\" icon=\"general.check\" (onClick)=\"apply()\" />\n</div>\n", styles: ["@charset \"UTF-8\";.db-style-studio mt-style-field,.db-style-studio mt-text-field,.db-style-studio mt-number-field,.db-style-studio mt-select-field,.db-style-studio mt-multi-select-field,.db-style-studio mt-textarea-field,.db-style-studio mt-slider-field,.db-style-studio mt-color-picker-field{display:block;width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "component", type: Button, selector: "mt-button", inputs: ["icon", "label", "tooltip", "class", "type", "styleClass", "severity", "badge", "variant", "badgeSeverity", "size", "iconPos", "autofocus", "fluid", "raised", "rounded", "text", "plain", "outlined", "link", "disabled", "loading", "pInputs", "ariaLabel"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: TextField, selector: "mt-text-field", inputs: ["field", "hint", "label", "placeholder", "class", "type", "readonly", "pInputs", "required", "maxLength", "icon", "iconPosition"] }, { kind: "component", type: Icon, selector: "mt-icon", inputs: ["icon"] }, { kind: "directive", type: TruncateTooltip, selector: "[mtTruncateTooltip]" }, { kind: "component", type: StyleSettingsRenderer, selector: "mt-style-settings-renderer", inputs: ["visibleSections", "persisted", "capability", "scope", "legendItems"], outputs: ["patch", "requestScope"] }, { kind: "component", type: SegmentedField, selector: "mt-segmented-field", inputs: ["options", "value", "disabled", "ariaLabel"], outputs: ["valueChange"] }, { kind: "component", type: ChartViewer, selector: "mt-chart-viewer", inputs: ["config", "chartTypeId", "hideHeader", "useCachedDataOnly"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
36057
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: StyleStudioDrawer, isStandalone: true, selector: "mt-style-studio-drawer", viewQueries: [{ propertyName: "scrollPane", first: true, predicate: ["scrollPane"], descendants: true, isSignal: true }, { propertyName: "previewViewer", first: true, predicate: ChartViewer, descendants: true, isSignal: true }], ngImport: i0, template: "<div\r\n [class]=\"modal.contentClass + ' db-style-studio flex h-full min-h-0 flex-col'\"\r\n *transloco=\"let t; prefix: 'dashboardBuilder'\"\r\n>\r\n <!-- Header -->\r\n <div\r\n class=\"flex flex-wrap items-center gap-3 border-b border-surface-200 bg-surface-0 px-4 py-3\"\r\n >\r\n <span\r\n class=\"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-primary-100 text-primary-600\"\r\n >\r\n <mt-icon [icon]=\"chartIcon()\" class=\"text-lg\" />\r\n </span>\r\n <div class=\"mr-auto min-w-0\">\r\n <h3 class=\"truncate text-sm font-semibold text-color\">\r\n {{ t(\"styleStudio.title\") }}\r\n </h3>\r\n <p class=\"truncate text-xs text-muted-color\" mtTruncateTooltip>\r\n {{ chartName() }}\r\n </p>\r\n </div>\r\n\r\n <mt-segmented-field\r\n [options]=\"scopeOptions()\"\r\n [value]=\"scope()\"\r\n [ariaLabel]=\"t('styleStudio.detailLevel')\"\r\n (valueChange)=\"onScopeChange($event)\"\r\n />\r\n\r\n <mt-text-field\r\n class=\"w-56 self-center\"\r\n icon=\"general.search-md\"\r\n iconPosition=\"start\"\r\n [placeholder]=\"t('styleStudio.findSetting')\"\r\n [field]=\"false\"\r\n [formControl]=\"searchControl\"\r\n />\r\n </div>\r\n\r\n <!-- Body -->\r\n <div class=\"flex min-h-0 flex-1\">\r\n <!-- Left rail (sections grouped under category headers) -->\r\n <nav\r\n class=\"db-style-studio__rail hidden w-52 shrink-0 flex-col gap-1 overflow-y-auto border-r border-surface-200 bg-surface-50 p-2 md:flex\"\r\n >\r\n @for (group of navGroups(); track group.label) {\r\n <div class=\"mt-2 first:mt-0\">\r\n <p\r\n class=\"px-3 pb-1 pt-1 text-[0.65rem] font-semibold uppercase tracking-wider text-muted-color\"\r\n >\r\n {{ group.label }}\r\n </p>\r\n @for (section of group.sections; track section.key) {\r\n <button\r\n type=\"button\"\r\n class=\"flex w-full items-center gap-2 rounded-lg px-3 py-1.5 text-left text-sm font-medium transition-colors duration-200\"\r\n [class.bg-surface-0]=\"activeSection() === section.key\"\r\n [class.text-primary-600]=\"activeSection() === section.key\"\r\n [class.shadow-sm]=\"activeSection() === section.key\"\r\n [class.text-muted-color]=\"activeSection() !== section.key\"\r\n [class.hover:bg-surface-100]=\"activeSection() !== section.key\"\r\n (click)=\"scrollTo(section)\"\r\n >\r\n <mt-icon [icon]=\"section.icon\" class=\"text-base\" />\r\n <span class=\"truncate\" mtTruncateTooltip>{{\r\n section.label\r\n }}</span>\r\n </button>\r\n }\r\n </div>\r\n }\r\n </nav>\r\n\r\n <!-- Settings pane -->\r\n <div\r\n #scrollPane\r\n class=\"min-w-0 flex-1 overflow-y-auto p-4\"\r\n (scroll)=\"onScroll()\"\r\n >\r\n <mt-style-settings-renderer\r\n [visibleSections]=\"navSections()\"\r\n [persisted]=\"itemConfig()\"\r\n [capability]=\"capability()\"\r\n [scope]=\"scope()\"\r\n [legendItems]=\"legendItems()\"\r\n (patch)=\"onPatch($event)\"\r\n (requestScope)=\"scope.set($event)\"\r\n />\r\n </div>\r\n\r\n <!-- Resizable splitter (config \u2194 preview) -->\r\n <div\r\n class=\"db-style-studio__splitter hidden w-1.5 shrink-0 cursor-col-resize touch-none bg-surface-200 transition-colors hover:bg-primary-400 lg:block\"\r\n role=\"separator\"\r\n aria-orientation=\"vertical\"\r\n [attr.aria-label]=\"t('styleStudio.messages.resizePreview')\"\r\n (pointerdown)=\"startResize($event)\"\r\n (pointermove)=\"onResizeMove($event)\"\r\n (pointerup)=\"endResize()\"\r\n (pointercancel)=\"endResize()\"\r\n ></div>\r\n\r\n <!-- Live preview (renders ALL widget types via the dashboard item) -->\r\n <div\r\n class=\"db-style-studio__preview hidden shrink-0 flex-col bg-surface-50 p-4 lg:flex\"\r\n [style.width.px]=\"previewWidth()\"\r\n >\r\n <div\r\n class=\"mb-2 flex items-center gap-1.5 text-xs font-semibold uppercase tracking-wide text-muted-color\"\r\n >\r\n <mt-icon icon=\"general.eye\" class=\"text-sm\" />\r\n <span>{{ t(\"styleStudio.livePreview\") }}</span>\r\n </div>\r\n <div class=\"min-h-0 flex-1 overflow-auto\">\r\n <!-- Dialog chrome. A linked dialog opens in a modal, so its header \u2014\r\n not a card header \u2014 is what the \"Dialog header\" section edits.\r\n Both wrappers collapse to `contents` for every other widget, so\r\n the ordinary preview layout is untouched. -->\r\n <div [class]=\"previewFrameClass()\">\r\n @if (isDialogPreview()) {\r\n <div\r\n class=\"flex shrink-0 items-center gap-2 border-b border-surface-200 bg-surface-100 px-5 py-4\"\r\n >\r\n @if (dialogHeaderPreview().icon) {\r\n <mt-icon\r\n [icon]=\"$any(dialogHeaderPreview().icon)\"\r\n class=\"shrink-0 text-lg\"\r\n [style.color]=\"dialogHeaderPreview().iconColor || 'inherit'\"\r\n />\r\n }\r\n <span\r\n class=\"min-w-0 flex-1 truncate font-semibold text-color\"\r\n mtTruncateTooltip\r\n >{{\r\n dialogHeaderPreview().title ||\r\n t(\"styleStudio.messages.untitledDialog\")\r\n }}</span\r\n >\r\n <span\r\n class=\"flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-surface-0 text-muted-color\"\r\n aria-hidden=\"true\"\r\n >\r\n <mt-icon icon=\"general.x-close\" class=\"text-sm\" />\r\n </span>\r\n </div>\r\n }\r\n <div [class]=\"previewBodyClass()\">\r\n <mt-chart-viewer\r\n [config]=\"previewConfig()\"\r\n [chartTypeId]=\"previewChartTypeId()\"\r\n [hideHeader]=\"isDialogPreview()\"\r\n [useCachedDataOnly]=\"true\"\r\n />\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<!-- Footer \u2014 sibling of content so the drawer pins it to the bottom -->\r\n<div\r\n [class]=\"\r\n modal.footerClass + ' border-t border-surface-200 bg-surface-0 px-4 py-3'\r\n \"\r\n *transloco=\"let t; prefix: 'dashboardBuilder'\"\r\n>\r\n <mt-button\r\n [label]=\"t('styleStudio.resetAll')\"\r\n icon=\"arrow.refresh-ccw-01\"\r\n severity=\"secondary\"\r\n variant=\"text\"\r\n class=\"mr-auto\"\r\n (onClick)=\"resetAll()\"\r\n />\r\n <mt-button [label]=\"t('cancel')\" variant=\"outlined\" (onClick)=\"close()\" />\r\n <mt-button [label]=\"t('apply')\" icon=\"general.check\" (onClick)=\"apply()\" />\r\n</div>\r\n", styles: ["@charset \"UTF-8\";.db-style-studio mt-style-field,.db-style-studio mt-text-field,.db-style-studio mt-number-field,.db-style-studio mt-select-field,.db-style-studio mt-multi-select-field,.db-style-studio mt-textarea-field,.db-style-studio mt-slider-field,.db-style-studio mt-color-picker-field{display:block;width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "component", type: Button, selector: "mt-button", inputs: ["icon", "label", "tooltip", "class", "type", "styleClass", "severity", "badge", "variant", "badgeSeverity", "size", "iconPos", "autofocus", "fluid", "raised", "rounded", "text", "plain", "outlined", "link", "disabled", "loading", "pInputs", "ariaLabel"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: TextField, selector: "mt-text-field", inputs: ["field", "hint", "label", "placeholder", "class", "type", "readonly", "pInputs", "required", "maxLength", "icon", "iconPosition"] }, { kind: "component", type: Icon, selector: "mt-icon", inputs: ["icon"] }, { kind: "directive", type: TruncateTooltip, selector: "[mtTruncateTooltip]" }, { kind: "component", type: StyleSettingsRenderer, selector: "mt-style-settings-renderer", inputs: ["visibleSections", "persisted", "capability", "scope", "legendItems"], outputs: ["patch", "requestScope"] }, { kind: "component", type: SegmentedField, selector: "mt-segmented-field", inputs: ["options", "value", "disabled", "ariaLabel"], outputs: ["valueChange"] }, { kind: "component", type: ChartViewer, selector: "mt-chart-viewer", inputs: ["config", "chartTypeId", "hideHeader", "useCachedDataOnly"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
36150
36058
  }
36151
36059
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: StyleStudioDrawer, decorators: [{
36152
36060
  type: Component,
@@ -36161,7 +36069,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
36161
36069
  StyleSettingsRenderer,
36162
36070
  SegmentedField,
36163
36071
  ChartViewer,
36164
- ], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<div\n [class]=\"modal.contentClass + ' db-style-studio flex h-full min-h-0 flex-col'\"\n *transloco=\"let t; prefix: 'dashboardBuilder'\"\n>\n <!-- Header -->\n <div\n class=\"flex flex-wrap items-center gap-3 border-b border-surface-200 bg-surface-0 px-4 py-3\"\n >\n <span\n class=\"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-primary-100 text-primary-600\"\n >\n <mt-icon [icon]=\"chartIcon()\" class=\"text-lg\" />\n </span>\n <div class=\"mr-auto min-w-0\">\n <h3 class=\"truncate text-sm font-semibold text-color\">\n {{ t(\"styleStudio.title\") }}\n </h3>\n <p class=\"truncate text-xs text-muted-color\" mtTruncateTooltip>\n {{ chartName() }}\n </p>\n </div>\n\n <mt-segmented-field\n [options]=\"scopeOptions()\"\n [value]=\"scope()\"\n [ariaLabel]=\"t('styleStudio.detailLevel')\"\n (valueChange)=\"onScopeChange($event)\"\n />\n\n <mt-text-field\n class=\"w-56 self-center\"\n icon=\"general.search-md\"\n iconPosition=\"start\"\n [placeholder]=\"t('styleStudio.findSetting')\"\n [field]=\"false\"\n [formControl]=\"searchControl\"\n />\n </div>\n\n <!-- Body -->\n <div class=\"flex min-h-0 flex-1\">\n <!-- Left rail (sections grouped under category headers) -->\n <nav\n class=\"db-style-studio__rail hidden w-52 shrink-0 flex-col gap-1 overflow-y-auto border-r border-surface-200 bg-surface-50 p-2 md:flex\"\n >\n @for (group of navGroups(); track group.label) {\n <div class=\"mt-2 first:mt-0\">\n <p\n class=\"px-3 pb-1 pt-1 text-[0.65rem] font-semibold uppercase tracking-wider text-muted-color\"\n >\n {{ group.label }}\n </p>\n @for (section of group.sections; track section.key) {\n <button\n type=\"button\"\n class=\"flex w-full items-center gap-2 rounded-lg px-3 py-1.5 text-left text-sm font-medium transition-colors duration-200\"\n [class.bg-surface-0]=\"activeSection() === section.key\"\n [class.text-primary-600]=\"activeSection() === section.key\"\n [class.shadow-sm]=\"activeSection() === section.key\"\n [class.text-muted-color]=\"activeSection() !== section.key\"\n [class.hover:bg-surface-100]=\"activeSection() !== section.key\"\n (click)=\"scrollTo(section)\"\n >\n <mt-icon [icon]=\"section.icon\" class=\"text-base\" />\n <span class=\"truncate\" mtTruncateTooltip>{{\n section.label\n }}</span>\n </button>\n }\n </div>\n }\n </nav>\n\n <!-- Settings pane -->\n <div\n #scrollPane\n class=\"min-w-0 flex-1 overflow-y-auto p-4\"\n (scroll)=\"onScroll()\"\n >\n <mt-style-settings-renderer\n [visibleSections]=\"navSections()\"\n [persisted]=\"itemConfig()\"\n [capability]=\"capability()\"\n [scope]=\"scope()\"\n [legendItems]=\"legendItems()\"\n (patch)=\"onPatch($event)\"\n (requestScope)=\"scope.set($event)\"\n />\n </div>\n\n <!-- Resizable splitter (config \u2194 preview) -->\n <div\n class=\"db-style-studio__splitter hidden w-1.5 shrink-0 cursor-col-resize touch-none bg-surface-200 transition-colors hover:bg-primary-400 lg:block\"\n role=\"separator\"\n aria-orientation=\"vertical\"\n [attr.aria-label]=\"t('styleStudio.messages.resizePreview')\"\n (pointerdown)=\"startResize($event)\"\n (pointermove)=\"onResizeMove($event)\"\n (pointerup)=\"endResize()\"\n (pointercancel)=\"endResize()\"\n ></div>\n\n <!-- Live preview (renders ALL widget types via the dashboard item) -->\n <div\n class=\"db-style-studio__preview hidden shrink-0 flex-col bg-surface-50 p-4 lg:flex\"\n [style.width.px]=\"previewWidth()\"\n >\n <div\n class=\"mb-2 flex items-center gap-1.5 text-xs font-semibold uppercase tracking-wide text-muted-color\"\n >\n <mt-icon icon=\"general.eye\" class=\"text-sm\" />\n <span>{{ t(\"styleStudio.livePreview\") }}</span>\n </div>\n <div class=\"min-h-0 flex-1 overflow-auto\">\n <!-- Dialog chrome. A linked dialog opens in a modal, so its header \u2014\n not a card header \u2014 is what the \"Dialog header\" section edits.\n Both wrappers collapse to `contents` for every other widget, so\n the ordinary preview layout is untouched. -->\n <div [class]=\"previewFrameClass()\">\n @if (isDialogPreview()) {\n <div\n class=\"flex shrink-0 items-center gap-2 border-b border-surface-200 bg-surface-100 px-5 py-4\"\n >\n @if (dialogHeaderPreview().icon) {\n <mt-icon\n [icon]=\"$any(dialogHeaderPreview().icon)\"\n class=\"shrink-0 text-lg\"\n [style.color]=\"dialogHeaderPreview().iconColor || 'inherit'\"\n />\n }\n <span\n class=\"min-w-0 flex-1 truncate font-semibold text-color\"\n mtTruncateTooltip\n >{{\n dialogHeaderPreview().title ||\n t(\"styleStudio.messages.untitledDialog\")\n }}</span\n >\n <span\n class=\"flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-surface-0 text-muted-color\"\n aria-hidden=\"true\"\n >\n <mt-icon icon=\"general.x-close\" class=\"text-sm\" />\n </span>\n </div>\n }\n <div [class]=\"previewBodyClass()\">\n <mt-chart-viewer\n [config]=\"previewConfig()\"\n [chartTypeId]=\"previewChartTypeId()\"\n [hideHeader]=\"isDialogPreview()\"\n [useCachedDataOnly]=\"true\"\n />\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<!-- Footer \u2014 sibling of content so the drawer pins it to the bottom -->\n<div\n [class]=\"\n modal.footerClass + ' border-t border-surface-200 bg-surface-0 px-4 py-3'\n \"\n *transloco=\"let t; prefix: 'dashboardBuilder'\"\n>\n <mt-button\n [label]=\"t('styleStudio.resetAll')\"\n icon=\"arrow.refresh-ccw-01\"\n severity=\"secondary\"\n variant=\"text\"\n class=\"mr-auto\"\n (onClick)=\"resetAll()\"\n />\n <mt-button [label]=\"t('cancel')\" variant=\"outlined\" (onClick)=\"close()\" />\n <mt-button [label]=\"t('apply')\" icon=\"general.check\" (onClick)=\"apply()\" />\n</div>\n", styles: ["@charset \"UTF-8\";.db-style-studio mt-style-field,.db-style-studio mt-text-field,.db-style-studio mt-number-field,.db-style-studio mt-select-field,.db-style-studio mt-multi-select-field,.db-style-studio mt-textarea-field,.db-style-studio mt-slider-field,.db-style-studio mt-color-picker-field{display:block;width:100%}\n"] }]
36072
+ ], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<div\r\n [class]=\"modal.contentClass + ' db-style-studio flex h-full min-h-0 flex-col'\"\r\n *transloco=\"let t; prefix: 'dashboardBuilder'\"\r\n>\r\n <!-- Header -->\r\n <div\r\n class=\"flex flex-wrap items-center gap-3 border-b border-surface-200 bg-surface-0 px-4 py-3\"\r\n >\r\n <span\r\n class=\"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-primary-100 text-primary-600\"\r\n >\r\n <mt-icon [icon]=\"chartIcon()\" class=\"text-lg\" />\r\n </span>\r\n <div class=\"mr-auto min-w-0\">\r\n <h3 class=\"truncate text-sm font-semibold text-color\">\r\n {{ t(\"styleStudio.title\") }}\r\n </h3>\r\n <p class=\"truncate text-xs text-muted-color\" mtTruncateTooltip>\r\n {{ chartName() }}\r\n </p>\r\n </div>\r\n\r\n <mt-segmented-field\r\n [options]=\"scopeOptions()\"\r\n [value]=\"scope()\"\r\n [ariaLabel]=\"t('styleStudio.detailLevel')\"\r\n (valueChange)=\"onScopeChange($event)\"\r\n />\r\n\r\n <mt-text-field\r\n class=\"w-56 self-center\"\r\n icon=\"general.search-md\"\r\n iconPosition=\"start\"\r\n [placeholder]=\"t('styleStudio.findSetting')\"\r\n [field]=\"false\"\r\n [formControl]=\"searchControl\"\r\n />\r\n </div>\r\n\r\n <!-- Body -->\r\n <div class=\"flex min-h-0 flex-1\">\r\n <!-- Left rail (sections grouped under category headers) -->\r\n <nav\r\n class=\"db-style-studio__rail hidden w-52 shrink-0 flex-col gap-1 overflow-y-auto border-r border-surface-200 bg-surface-50 p-2 md:flex\"\r\n >\r\n @for (group of navGroups(); track group.label) {\r\n <div class=\"mt-2 first:mt-0\">\r\n <p\r\n class=\"px-3 pb-1 pt-1 text-[0.65rem] font-semibold uppercase tracking-wider text-muted-color\"\r\n >\r\n {{ group.label }}\r\n </p>\r\n @for (section of group.sections; track section.key) {\r\n <button\r\n type=\"button\"\r\n class=\"flex w-full items-center gap-2 rounded-lg px-3 py-1.5 text-left text-sm font-medium transition-colors duration-200\"\r\n [class.bg-surface-0]=\"activeSection() === section.key\"\r\n [class.text-primary-600]=\"activeSection() === section.key\"\r\n [class.shadow-sm]=\"activeSection() === section.key\"\r\n [class.text-muted-color]=\"activeSection() !== section.key\"\r\n [class.hover:bg-surface-100]=\"activeSection() !== section.key\"\r\n (click)=\"scrollTo(section)\"\r\n >\r\n <mt-icon [icon]=\"section.icon\" class=\"text-base\" />\r\n <span class=\"truncate\" mtTruncateTooltip>{{\r\n section.label\r\n }}</span>\r\n </button>\r\n }\r\n </div>\r\n }\r\n </nav>\r\n\r\n <!-- Settings pane -->\r\n <div\r\n #scrollPane\r\n class=\"min-w-0 flex-1 overflow-y-auto p-4\"\r\n (scroll)=\"onScroll()\"\r\n >\r\n <mt-style-settings-renderer\r\n [visibleSections]=\"navSections()\"\r\n [persisted]=\"itemConfig()\"\r\n [capability]=\"capability()\"\r\n [scope]=\"scope()\"\r\n [legendItems]=\"legendItems()\"\r\n (patch)=\"onPatch($event)\"\r\n (requestScope)=\"scope.set($event)\"\r\n />\r\n </div>\r\n\r\n <!-- Resizable splitter (config \u2194 preview) -->\r\n <div\r\n class=\"db-style-studio__splitter hidden w-1.5 shrink-0 cursor-col-resize touch-none bg-surface-200 transition-colors hover:bg-primary-400 lg:block\"\r\n role=\"separator\"\r\n aria-orientation=\"vertical\"\r\n [attr.aria-label]=\"t('styleStudio.messages.resizePreview')\"\r\n (pointerdown)=\"startResize($event)\"\r\n (pointermove)=\"onResizeMove($event)\"\r\n (pointerup)=\"endResize()\"\r\n (pointercancel)=\"endResize()\"\r\n ></div>\r\n\r\n <!-- Live preview (renders ALL widget types via the dashboard item) -->\r\n <div\r\n class=\"db-style-studio__preview hidden shrink-0 flex-col bg-surface-50 p-4 lg:flex\"\r\n [style.width.px]=\"previewWidth()\"\r\n >\r\n <div\r\n class=\"mb-2 flex items-center gap-1.5 text-xs font-semibold uppercase tracking-wide text-muted-color\"\r\n >\r\n <mt-icon icon=\"general.eye\" class=\"text-sm\" />\r\n <span>{{ t(\"styleStudio.livePreview\") }}</span>\r\n </div>\r\n <div class=\"min-h-0 flex-1 overflow-auto\">\r\n <!-- Dialog chrome. A linked dialog opens in a modal, so its header \u2014\r\n not a card header \u2014 is what the \"Dialog header\" section edits.\r\n Both wrappers collapse to `contents` for every other widget, so\r\n the ordinary preview layout is untouched. -->\r\n <div [class]=\"previewFrameClass()\">\r\n @if (isDialogPreview()) {\r\n <div\r\n class=\"flex shrink-0 items-center gap-2 border-b border-surface-200 bg-surface-100 px-5 py-4\"\r\n >\r\n @if (dialogHeaderPreview().icon) {\r\n <mt-icon\r\n [icon]=\"$any(dialogHeaderPreview().icon)\"\r\n class=\"shrink-0 text-lg\"\r\n [style.color]=\"dialogHeaderPreview().iconColor || 'inherit'\"\r\n />\r\n }\r\n <span\r\n class=\"min-w-0 flex-1 truncate font-semibold text-color\"\r\n mtTruncateTooltip\r\n >{{\r\n dialogHeaderPreview().title ||\r\n t(\"styleStudio.messages.untitledDialog\")\r\n }}</span\r\n >\r\n <span\r\n class=\"flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-surface-0 text-muted-color\"\r\n aria-hidden=\"true\"\r\n >\r\n <mt-icon icon=\"general.x-close\" class=\"text-sm\" />\r\n </span>\r\n </div>\r\n }\r\n <div [class]=\"previewBodyClass()\">\r\n <mt-chart-viewer\r\n [config]=\"previewConfig()\"\r\n [chartTypeId]=\"previewChartTypeId()\"\r\n [hideHeader]=\"isDialogPreview()\"\r\n [useCachedDataOnly]=\"true\"\r\n />\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<!-- Footer \u2014 sibling of content so the drawer pins it to the bottom -->\r\n<div\r\n [class]=\"\r\n modal.footerClass + ' border-t border-surface-200 bg-surface-0 px-4 py-3'\r\n \"\r\n *transloco=\"let t; prefix: 'dashboardBuilder'\"\r\n>\r\n <mt-button\r\n [label]=\"t('styleStudio.resetAll')\"\r\n icon=\"arrow.refresh-ccw-01\"\r\n severity=\"secondary\"\r\n variant=\"text\"\r\n class=\"mr-auto\"\r\n (onClick)=\"resetAll()\"\r\n />\r\n <mt-button [label]=\"t('cancel')\" variant=\"outlined\" (onClick)=\"close()\" />\r\n <mt-button [label]=\"t('apply')\" icon=\"general.check\" (onClick)=\"apply()\" />\r\n</div>\r\n", styles: ["@charset \"UTF-8\";.db-style-studio mt-style-field,.db-style-studio mt-text-field,.db-style-studio mt-number-field,.db-style-studio mt-select-field,.db-style-studio mt-multi-select-field,.db-style-studio mt-textarea-field,.db-style-studio mt-slider-field,.db-style-studio mt-color-picker-field{display:block;width:100%}\n"] }]
36165
36073
  }], ctorParameters: () => [], propDecorators: { scrollPane: [{ type: i0.ViewChild, args: ['scrollPane', { isSignal: true }] }], previewViewer: [{ type: i0.ViewChild, args: [i0.forwardRef(() => ChartViewer), { isSignal: true }] }] } });
36166
36074
 
36167
36075
  /**
@@ -37085,7 +36993,7 @@ class CustomApiConfiguration {
37085
36993
  useExisting: forwardRef(() => CustomApiConfiguration),
37086
36994
  multi: true,
37087
36995
  },
37088
- ], ngImport: i0, template: "<mt-card\n [title]=\"t('customApi')\"\n *transloco=\"let t; prefix: 'dashboardBuilder'\"\n>\n <div class=\"flex flex-col gap-4\">\n <p class=\"text-sm text-muted-color\">\n {{ t(\"customApiDescription\") }}\n </p>\n\n <div class=\"grid grid-cols-12 gap-4\">\n <!-- HTTP Method -->\n <div class=\"col-span-3\">\n <mt-select-field\n [label]=\"t('httpMethod')\"\n [options]=\"methodOptions\"\n optionLabel=\"label\"\n optionValue=\"value\"\n [ngModel]=\"method()\"\n (ngModelChange)=\"onMethodChange($event)\"\n [disabled]=\"disabled()\"\n />\n </div>\n\n <!-- Custom API URL -->\n <div class=\"col-span-9\">\n <mt-text-field\n [label]=\"t('customApiUrl')\"\n [placeholder]=\"t('customApiUrlPlaceholder')\"\n [ngModel]=\"customApiUrl()\"\n (ngModelChange)=\"onUrlChange($event)\"\n [disabled]=\"disabled()\"\n />\n </div>\n </div>\n </div>\n</mt-card>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "component", type: SelectField, selector: "mt-select-field", inputs: ["field", "hint", "label", "placeholder", "hasPlaceholderPrefix", "class", "readonly", "pInputs", "options", "optionValue", "optionLabel", "filter", "filterBy", "dataKey", "showClear", "clearAfterSelect", "required", "group", "size", "optionGroupLabel", "optionGroupChildren", "loading", "optionIcon", "optionIconColor", "optionIconShape", "optionAvatarShape", "optionGroupIcon", "optionGroupIconColor", "optionGroupIconShape", "optionGroupAvatarShape", "markCurrentUser"], outputs: ["onChange"] }, { kind: "component", type: TextField, selector: "mt-text-field", inputs: ["field", "hint", "label", "placeholder", "class", "type", "readonly", "pInputs", "required", "maxLength", "icon", "iconPosition"] }, { kind: "component", type: Card, selector: "mt-card", inputs: ["class", "title", "paddingless"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
36996
+ ], ngImport: i0, template: "<mt-card\r\n [title]=\"t('customApi')\"\r\n *transloco=\"let t; prefix: 'dashboardBuilder'\"\r\n>\r\n <div class=\"flex flex-col gap-4\">\r\n <p class=\"text-sm text-muted-color\">\r\n {{ t(\"customApiDescription\") }}\r\n </p>\r\n\r\n <div class=\"grid grid-cols-12 gap-4\">\r\n <!-- HTTP Method -->\r\n <div class=\"col-span-3\">\r\n <mt-select-field\r\n [label]=\"t('httpMethod')\"\r\n [options]=\"methodOptions\"\r\n optionLabel=\"label\"\r\n optionValue=\"value\"\r\n [ngModel]=\"method()\"\r\n (ngModelChange)=\"onMethodChange($event)\"\r\n [disabled]=\"disabled()\"\r\n />\r\n </div>\r\n\r\n <!-- Custom API URL -->\r\n <div class=\"col-span-9\">\r\n <mt-text-field\r\n [label]=\"t('customApiUrl')\"\r\n [placeholder]=\"t('customApiUrlPlaceholder')\"\r\n [ngModel]=\"customApiUrl()\"\r\n (ngModelChange)=\"onUrlChange($event)\"\r\n [disabled]=\"disabled()\"\r\n />\r\n </div>\r\n </div>\r\n </div>\r\n</mt-card>\r\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "component", type: SelectField, selector: "mt-select-field", inputs: ["field", "hint", "label", "placeholder", "hasPlaceholderPrefix", "class", "readonly", "pInputs", "options", "optionValue", "optionLabel", "filter", "filterBy", "dataKey", "showClear", "clearAfterSelect", "required", "group", "size", "optionGroupLabel", "optionGroupChildren", "loading", "optionIcon", "optionIconColor", "optionIconShape", "optionAvatarShape", "optionGroupIcon", "optionGroupIconColor", "optionGroupIconShape", "optionGroupAvatarShape", "markCurrentUser"], outputs: ["onChange"] }, { kind: "component", type: TextField, selector: "mt-text-field", inputs: ["field", "hint", "label", "placeholder", "class", "type", "readonly", "pInputs", "required", "maxLength", "icon", "iconPosition"] }, { kind: "component", type: Card, selector: "mt-card", inputs: ["class", "title", "paddingless"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
37089
36997
  }
37090
36998
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: CustomApiConfiguration, decorators: [{
37091
36999
  type: Component,
@@ -37102,7 +37010,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
37102
37010
  useExisting: forwardRef(() => CustomApiConfiguration),
37103
37011
  multi: true,
37104
37012
  },
37105
- ], template: "<mt-card\n [title]=\"t('customApi')\"\n *transloco=\"let t; prefix: 'dashboardBuilder'\"\n>\n <div class=\"flex flex-col gap-4\">\n <p class=\"text-sm text-muted-color\">\n {{ t(\"customApiDescription\") }}\n </p>\n\n <div class=\"grid grid-cols-12 gap-4\">\n <!-- HTTP Method -->\n <div class=\"col-span-3\">\n <mt-select-field\n [label]=\"t('httpMethod')\"\n [options]=\"methodOptions\"\n optionLabel=\"label\"\n optionValue=\"value\"\n [ngModel]=\"method()\"\n (ngModelChange)=\"onMethodChange($event)\"\n [disabled]=\"disabled()\"\n />\n </div>\n\n <!-- Custom API URL -->\n <div class=\"col-span-9\">\n <mt-text-field\n [label]=\"t('customApiUrl')\"\n [placeholder]=\"t('customApiUrlPlaceholder')\"\n [ngModel]=\"customApiUrl()\"\n (ngModelChange)=\"onUrlChange($event)\"\n [disabled]=\"disabled()\"\n />\n </div>\n </div>\n </div>\n</mt-card>\n" }]
37013
+ ], template: "<mt-card\r\n [title]=\"t('customApi')\"\r\n *transloco=\"let t; prefix: 'dashboardBuilder'\"\r\n>\r\n <div class=\"flex flex-col gap-4\">\r\n <p class=\"text-sm text-muted-color\">\r\n {{ t(\"customApiDescription\") }}\r\n </p>\r\n\r\n <div class=\"grid grid-cols-12 gap-4\">\r\n <!-- HTTP Method -->\r\n <div class=\"col-span-3\">\r\n <mt-select-field\r\n [label]=\"t('httpMethod')\"\r\n [options]=\"methodOptions\"\r\n optionLabel=\"label\"\r\n optionValue=\"value\"\r\n [ngModel]=\"method()\"\r\n (ngModelChange)=\"onMethodChange($event)\"\r\n [disabled]=\"disabled()\"\r\n />\r\n </div>\r\n\r\n <!-- Custom API URL -->\r\n <div class=\"col-span-9\">\r\n <mt-text-field\r\n [label]=\"t('customApiUrl')\"\r\n [placeholder]=\"t('customApiUrlPlaceholder')\"\r\n [ngModel]=\"customApiUrl()\"\r\n (ngModelChange)=\"onUrlChange($event)\"\r\n [disabled]=\"disabled()\"\r\n />\r\n </div>\r\n </div>\r\n </div>\r\n</mt-card>\r\n" }]
37106
37014
  }] });
37107
37015
 
37108
37016
  const NUMERIC_VIEW_TYPES = new Set(['number', 'percentage', 'currency']);
@@ -38653,7 +38561,7 @@ class TimelineQuery {
38653
38561
  useExisting: forwardRef(() => TimelineQuery),
38654
38562
  multi: true,
38655
38563
  },
38656
- ], ngImport: i0, template: "<div class=\"flex flex-col gap-4\" *transloco=\"let t; prefix: 'dashboardBuilder'\">\n <div class=\"grid grid-cols-1 md:grid-cols-2 gap-4\">\n <!-- Pivot Property -->\n <mt-select-field\n [label]=\"t('pivotProperty')\"\n [options]=\"useGroupedSelect() ? propertiesGrouped() : propertiesFlat()\"\n [group]=\"useGroupedSelect()\"\n optionLabel=\"name\"\n optionValue=\"key\"\n optionGroupLabel=\"label\"\n optionGroupChildren=\"items\"\n [filter]=\"true\"\n [placeholder]=\"t('selectProperty')\"\n [ngModel]=\"query().pivotProperty\"\n (ngModelChange)=\"updateField('pivotProperty', $event)\"\n [disabled]=\"disabled\"\n />\n\n <!-- Lookup Property -->\n <mt-select-field\n [label]=\"t('lookupProperty')\"\n [options]=\"useGroupedSelect() ? propertiesGrouped() : propertiesFlat()\"\n [group]=\"useGroupedSelect()\"\n optionLabel=\"name\"\n optionValue=\"key\"\n optionGroupLabel=\"label\"\n optionGroupChildren=\"items\"\n [filter]=\"true\"\n [placeholder]=\"t('selectProperty')\"\n [ngModel]=\"query().lookupProperty\"\n (ngModelChange)=\"updateField('lookupProperty', $event)\"\n [disabled]=\"disabled\"\n />\n\n <!-- Time Frame -->\n <mt-select-field\n [label]=\"t('timeFrame')\"\n [options]=\"timeFrameOptions\"\n optionLabel=\"label\"\n optionValue=\"value\"\n [placeholder]=\"t('selectTimeFrame')\"\n [ngModel]=\"query().timeFrame\"\n (ngModelChange)=\"updateField('timeFrame', $event)\"\n [disabled]=\"disabled\"\n />\n\n <!-- Start Point Time Property -->\n <mt-select-field\n [label]=\"t('startPointTimeProperty')\"\n [options]=\"useGroupedSelect() ? propertiesGrouped() : propertiesFlat()\"\n [group]=\"useGroupedSelect()\"\n optionLabel=\"name\"\n optionValue=\"key\"\n optionGroupLabel=\"label\"\n optionGroupChildren=\"items\"\n [filter]=\"true\"\n [placeholder]=\"t('selectProperty')\"\n [ngModel]=\"query().startPoint_timeProperty\"\n (ngModelChange)=\"updateField('startPoint_timeProperty', $event)\"\n [disabled]=\"disabled\"\n />\n\n <!-- End Point Time Property -->\n <mt-select-field\n [label]=\"t('endPointTimeProperty')\"\n [options]=\"useGroupedSelect() ? propertiesGrouped() : propertiesFlat()\"\n [group]=\"useGroupedSelect()\"\n optionLabel=\"name\"\n optionValue=\"key\"\n optionGroupLabel=\"label\"\n optionGroupChildren=\"items\"\n [filter]=\"true\"\n [placeholder]=\"t('selectProperty')\"\n [ngModel]=\"query().endPoint_timeProperty\"\n (ngModelChange)=\"updateField('endPoint_timeProperty', $event)\"\n [disabled]=\"disabled\"\n />\n </div>\n\n <!-- Extra Properties -->\n <div class=\"w-full\">\n <mt-multi-select-field\n [label]=\"t('extraProperties')\"\n [options]=\"useGroupedSelect() ? propertiesGrouped() : propertiesFlat()\"\n [group]=\"useGroupedSelect()\"\n optionLabel=\"name\"\n optionValue=\"key\"\n optionGroupLabel=\"label\"\n optionGroupChildren=\"items\"\n [filter]=\"true\"\n [placeholder]=\"t('selectProperties')\"\n [ngModel]=\"query().extraProperties\"\n (ngModelChange)=\"updateField('extraProperties', $event)\"\n [disabled]=\"disabled\"\n />\n </div>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "component", type: SelectField, selector: "mt-select-field", inputs: ["field", "hint", "label", "placeholder", "hasPlaceholderPrefix", "class", "readonly", "pInputs", "options", "optionValue", "optionLabel", "filter", "filterBy", "dataKey", "showClear", "clearAfterSelect", "required", "group", "size", "optionGroupLabel", "optionGroupChildren", "loading", "optionIcon", "optionIconColor", "optionIconShape", "optionAvatarShape", "optionGroupIcon", "optionGroupIconColor", "optionGroupIconShape", "optionGroupAvatarShape", "markCurrentUser"], outputs: ["onChange"] }, { kind: "component", type: MultiSelectField, selector: "mt-multi-select-field", inputs: ["field", "label", "placeholder", "class", "readonly", "pInputs", "options", "optionValue", "optionLabel", "filter", "filterBy", "dataKey", "showClear", "display", "required", "maxSelectedLabels", "group", "virtualScroll", "virtualScrollItemSize", "optionGroupLabel", "optionGroupChildren", "optionIcon", "optionIconColor", "optionIconShape", "optionAvatarShape", "optionGroupIcon", "optionGroupIconColor", "optionGroupIconShape", "optionGroupAvatarShape"], outputs: ["onChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
38564
+ ], ngImport: i0, template: "<div class=\"flex flex-col gap-4\" *transloco=\"let t; prefix: 'dashboardBuilder'\">\r\n <div class=\"grid grid-cols-1 md:grid-cols-2 gap-4\">\r\n <!-- Pivot Property -->\r\n <mt-select-field\r\n [label]=\"t('pivotProperty')\"\r\n [options]=\"useGroupedSelect() ? propertiesGrouped() : propertiesFlat()\"\r\n [group]=\"useGroupedSelect()\"\r\n optionLabel=\"name\"\r\n optionValue=\"key\"\r\n optionGroupLabel=\"label\"\r\n optionGroupChildren=\"items\"\r\n [filter]=\"true\"\r\n [placeholder]=\"t('selectProperty')\"\r\n [ngModel]=\"query().pivotProperty\"\r\n (ngModelChange)=\"updateField('pivotProperty', $event)\"\r\n [disabled]=\"disabled\"\r\n />\r\n\r\n <!-- Lookup Property -->\r\n <mt-select-field\r\n [label]=\"t('lookupProperty')\"\r\n [options]=\"useGroupedSelect() ? propertiesGrouped() : propertiesFlat()\"\r\n [group]=\"useGroupedSelect()\"\r\n optionLabel=\"name\"\r\n optionValue=\"key\"\r\n optionGroupLabel=\"label\"\r\n optionGroupChildren=\"items\"\r\n [filter]=\"true\"\r\n [placeholder]=\"t('selectProperty')\"\r\n [ngModel]=\"query().lookupProperty\"\r\n (ngModelChange)=\"updateField('lookupProperty', $event)\"\r\n [disabled]=\"disabled\"\r\n />\r\n\r\n <!-- Time Frame -->\r\n <mt-select-field\r\n [label]=\"t('timeFrame')\"\r\n [options]=\"timeFrameOptions\"\r\n optionLabel=\"label\"\r\n optionValue=\"value\"\r\n [placeholder]=\"t('selectTimeFrame')\"\r\n [ngModel]=\"query().timeFrame\"\r\n (ngModelChange)=\"updateField('timeFrame', $event)\"\r\n [disabled]=\"disabled\"\r\n />\r\n\r\n <!-- Start Point Time Property -->\r\n <mt-select-field\r\n [label]=\"t('startPointTimeProperty')\"\r\n [options]=\"useGroupedSelect() ? propertiesGrouped() : propertiesFlat()\"\r\n [group]=\"useGroupedSelect()\"\r\n optionLabel=\"name\"\r\n optionValue=\"key\"\r\n optionGroupLabel=\"label\"\r\n optionGroupChildren=\"items\"\r\n [filter]=\"true\"\r\n [placeholder]=\"t('selectProperty')\"\r\n [ngModel]=\"query().startPoint_timeProperty\"\r\n (ngModelChange)=\"updateField('startPoint_timeProperty', $event)\"\r\n [disabled]=\"disabled\"\r\n />\r\n\r\n <!-- End Point Time Property -->\r\n <mt-select-field\r\n [label]=\"t('endPointTimeProperty')\"\r\n [options]=\"useGroupedSelect() ? propertiesGrouped() : propertiesFlat()\"\r\n [group]=\"useGroupedSelect()\"\r\n optionLabel=\"name\"\r\n optionValue=\"key\"\r\n optionGroupLabel=\"label\"\r\n optionGroupChildren=\"items\"\r\n [filter]=\"true\"\r\n [placeholder]=\"t('selectProperty')\"\r\n [ngModel]=\"query().endPoint_timeProperty\"\r\n (ngModelChange)=\"updateField('endPoint_timeProperty', $event)\"\r\n [disabled]=\"disabled\"\r\n />\r\n </div>\r\n\r\n <!-- Extra Properties -->\r\n <div class=\"w-full\">\r\n <mt-multi-select-field\r\n [label]=\"t('extraProperties')\"\r\n [options]=\"useGroupedSelect() ? propertiesGrouped() : propertiesFlat()\"\r\n [group]=\"useGroupedSelect()\"\r\n optionLabel=\"name\"\r\n optionValue=\"key\"\r\n optionGroupLabel=\"label\"\r\n optionGroupChildren=\"items\"\r\n [filter]=\"true\"\r\n [placeholder]=\"t('selectProperties')\"\r\n [ngModel]=\"query().extraProperties\"\r\n (ngModelChange)=\"updateField('extraProperties', $event)\"\r\n [disabled]=\"disabled\"\r\n />\r\n </div>\r\n</div>\r\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "component", type: SelectField, selector: "mt-select-field", inputs: ["field", "hint", "label", "placeholder", "hasPlaceholderPrefix", "class", "readonly", "pInputs", "options", "optionValue", "optionLabel", "filter", "filterBy", "dataKey", "showClear", "clearAfterSelect", "required", "group", "size", "optionGroupLabel", "optionGroupChildren", "loading", "optionIcon", "optionIconColor", "optionIconShape", "optionAvatarShape", "optionGroupIcon", "optionGroupIconColor", "optionGroupIconShape", "optionGroupAvatarShape", "markCurrentUser"], outputs: ["onChange"] }, { kind: "component", type: MultiSelectField, selector: "mt-multi-select-field", inputs: ["field", "label", "placeholder", "class", "readonly", "pInputs", "options", "optionValue", "optionLabel", "filter", "filterBy", "dataKey", "showClear", "display", "required", "maxSelectedLabels", "group", "virtualScroll", "virtualScrollItemSize", "optionGroupLabel", "optionGroupChildren", "optionIcon", "optionIconColor", "optionIconShape", "optionAvatarShape", "optionGroupIcon", "optionGroupIconColor", "optionGroupIconShape", "optionGroupAvatarShape"], outputs: ["onChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
38657
38565
  }
38658
38566
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: TimelineQuery, decorators: [{
38659
38567
  type: Component,
@@ -38669,7 +38577,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
38669
38577
  useExisting: forwardRef(() => TimelineQuery),
38670
38578
  multi: true,
38671
38579
  },
38672
- ], template: "<div class=\"flex flex-col gap-4\" *transloco=\"let t; prefix: 'dashboardBuilder'\">\n <div class=\"grid grid-cols-1 md:grid-cols-2 gap-4\">\n <!-- Pivot Property -->\n <mt-select-field\n [label]=\"t('pivotProperty')\"\n [options]=\"useGroupedSelect() ? propertiesGrouped() : propertiesFlat()\"\n [group]=\"useGroupedSelect()\"\n optionLabel=\"name\"\n optionValue=\"key\"\n optionGroupLabel=\"label\"\n optionGroupChildren=\"items\"\n [filter]=\"true\"\n [placeholder]=\"t('selectProperty')\"\n [ngModel]=\"query().pivotProperty\"\n (ngModelChange)=\"updateField('pivotProperty', $event)\"\n [disabled]=\"disabled\"\n />\n\n <!-- Lookup Property -->\n <mt-select-field\n [label]=\"t('lookupProperty')\"\n [options]=\"useGroupedSelect() ? propertiesGrouped() : propertiesFlat()\"\n [group]=\"useGroupedSelect()\"\n optionLabel=\"name\"\n optionValue=\"key\"\n optionGroupLabel=\"label\"\n optionGroupChildren=\"items\"\n [filter]=\"true\"\n [placeholder]=\"t('selectProperty')\"\n [ngModel]=\"query().lookupProperty\"\n (ngModelChange)=\"updateField('lookupProperty', $event)\"\n [disabled]=\"disabled\"\n />\n\n <!-- Time Frame -->\n <mt-select-field\n [label]=\"t('timeFrame')\"\n [options]=\"timeFrameOptions\"\n optionLabel=\"label\"\n optionValue=\"value\"\n [placeholder]=\"t('selectTimeFrame')\"\n [ngModel]=\"query().timeFrame\"\n (ngModelChange)=\"updateField('timeFrame', $event)\"\n [disabled]=\"disabled\"\n />\n\n <!-- Start Point Time Property -->\n <mt-select-field\n [label]=\"t('startPointTimeProperty')\"\n [options]=\"useGroupedSelect() ? propertiesGrouped() : propertiesFlat()\"\n [group]=\"useGroupedSelect()\"\n optionLabel=\"name\"\n optionValue=\"key\"\n optionGroupLabel=\"label\"\n optionGroupChildren=\"items\"\n [filter]=\"true\"\n [placeholder]=\"t('selectProperty')\"\n [ngModel]=\"query().startPoint_timeProperty\"\n (ngModelChange)=\"updateField('startPoint_timeProperty', $event)\"\n [disabled]=\"disabled\"\n />\n\n <!-- End Point Time Property -->\n <mt-select-field\n [label]=\"t('endPointTimeProperty')\"\n [options]=\"useGroupedSelect() ? propertiesGrouped() : propertiesFlat()\"\n [group]=\"useGroupedSelect()\"\n optionLabel=\"name\"\n optionValue=\"key\"\n optionGroupLabel=\"label\"\n optionGroupChildren=\"items\"\n [filter]=\"true\"\n [placeholder]=\"t('selectProperty')\"\n [ngModel]=\"query().endPoint_timeProperty\"\n (ngModelChange)=\"updateField('endPoint_timeProperty', $event)\"\n [disabled]=\"disabled\"\n />\n </div>\n\n <!-- Extra Properties -->\n <div class=\"w-full\">\n <mt-multi-select-field\n [label]=\"t('extraProperties')\"\n [options]=\"useGroupedSelect() ? propertiesGrouped() : propertiesFlat()\"\n [group]=\"useGroupedSelect()\"\n optionLabel=\"name\"\n optionValue=\"key\"\n optionGroupLabel=\"label\"\n optionGroupChildren=\"items\"\n [filter]=\"true\"\n [placeholder]=\"t('selectProperties')\"\n [ngModel]=\"query().extraProperties\"\n (ngModelChange)=\"updateField('extraProperties', $event)\"\n [disabled]=\"disabled\"\n />\n </div>\n</div>\n" }]
38580
+ ], template: "<div class=\"flex flex-col gap-4\" *transloco=\"let t; prefix: 'dashboardBuilder'\">\r\n <div class=\"grid grid-cols-1 md:grid-cols-2 gap-4\">\r\n <!-- Pivot Property -->\r\n <mt-select-field\r\n [label]=\"t('pivotProperty')\"\r\n [options]=\"useGroupedSelect() ? propertiesGrouped() : propertiesFlat()\"\r\n [group]=\"useGroupedSelect()\"\r\n optionLabel=\"name\"\r\n optionValue=\"key\"\r\n optionGroupLabel=\"label\"\r\n optionGroupChildren=\"items\"\r\n [filter]=\"true\"\r\n [placeholder]=\"t('selectProperty')\"\r\n [ngModel]=\"query().pivotProperty\"\r\n (ngModelChange)=\"updateField('pivotProperty', $event)\"\r\n [disabled]=\"disabled\"\r\n />\r\n\r\n <!-- Lookup Property -->\r\n <mt-select-field\r\n [label]=\"t('lookupProperty')\"\r\n [options]=\"useGroupedSelect() ? propertiesGrouped() : propertiesFlat()\"\r\n [group]=\"useGroupedSelect()\"\r\n optionLabel=\"name\"\r\n optionValue=\"key\"\r\n optionGroupLabel=\"label\"\r\n optionGroupChildren=\"items\"\r\n [filter]=\"true\"\r\n [placeholder]=\"t('selectProperty')\"\r\n [ngModel]=\"query().lookupProperty\"\r\n (ngModelChange)=\"updateField('lookupProperty', $event)\"\r\n [disabled]=\"disabled\"\r\n />\r\n\r\n <!-- Time Frame -->\r\n <mt-select-field\r\n [label]=\"t('timeFrame')\"\r\n [options]=\"timeFrameOptions\"\r\n optionLabel=\"label\"\r\n optionValue=\"value\"\r\n [placeholder]=\"t('selectTimeFrame')\"\r\n [ngModel]=\"query().timeFrame\"\r\n (ngModelChange)=\"updateField('timeFrame', $event)\"\r\n [disabled]=\"disabled\"\r\n />\r\n\r\n <!-- Start Point Time Property -->\r\n <mt-select-field\r\n [label]=\"t('startPointTimeProperty')\"\r\n [options]=\"useGroupedSelect() ? propertiesGrouped() : propertiesFlat()\"\r\n [group]=\"useGroupedSelect()\"\r\n optionLabel=\"name\"\r\n optionValue=\"key\"\r\n optionGroupLabel=\"label\"\r\n optionGroupChildren=\"items\"\r\n [filter]=\"true\"\r\n [placeholder]=\"t('selectProperty')\"\r\n [ngModel]=\"query().startPoint_timeProperty\"\r\n (ngModelChange)=\"updateField('startPoint_timeProperty', $event)\"\r\n [disabled]=\"disabled\"\r\n />\r\n\r\n <!-- End Point Time Property -->\r\n <mt-select-field\r\n [label]=\"t('endPointTimeProperty')\"\r\n [options]=\"useGroupedSelect() ? propertiesGrouped() : propertiesFlat()\"\r\n [group]=\"useGroupedSelect()\"\r\n optionLabel=\"name\"\r\n optionValue=\"key\"\r\n optionGroupLabel=\"label\"\r\n optionGroupChildren=\"items\"\r\n [filter]=\"true\"\r\n [placeholder]=\"t('selectProperty')\"\r\n [ngModel]=\"query().endPoint_timeProperty\"\r\n (ngModelChange)=\"updateField('endPoint_timeProperty', $event)\"\r\n [disabled]=\"disabled\"\r\n />\r\n </div>\r\n\r\n <!-- Extra Properties -->\r\n <div class=\"w-full\">\r\n <mt-multi-select-field\r\n [label]=\"t('extraProperties')\"\r\n [options]=\"useGroupedSelect() ? propertiesGrouped() : propertiesFlat()\"\r\n [group]=\"useGroupedSelect()\"\r\n optionLabel=\"name\"\r\n optionValue=\"key\"\r\n optionGroupLabel=\"label\"\r\n optionGroupChildren=\"items\"\r\n [filter]=\"true\"\r\n [placeholder]=\"t('selectProperties')\"\r\n [ngModel]=\"query().extraProperties\"\r\n (ngModelChange)=\"updateField('extraProperties', $event)\"\r\n [disabled]=\"disabled\"\r\n />\r\n </div>\r\n</div>\r\n" }]
38673
38581
  }], propDecorators: { propertiesFlat: [{ type: i0.Input, args: [{ isSignal: true, alias: "propertiesFlat", required: false }] }], propertiesGrouped: [{ type: i0.Input, args: [{ isSignal: true, alias: "propertiesGrouped", required: false }] }] } });
38674
38582
 
38675
38583
  /**
@@ -41128,7 +41036,7 @@ class GeneralSettings {
41128
41036
  return labels[category] || category;
41129
41037
  }
41130
41038
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: GeneralSettings, deps: [], target: i0.ɵɵFactoryTarget.Component });
41131
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: GeneralSettings, isStandalone: true, selector: "mt-general-settings", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: false, transformFunction: null }, isDialog: { classPropertyName: "isDialog", publicName: "isDialog", isSignal: true, isRequired: false, transformFunction: null }, hasPreselectedType: { classPropertyName: "hasPreselectedType", publicName: "hasPreselectedType", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { configChange: "configChange", chartTypeChange: "chartTypeChange" }, ngImport: i0, template: "<div class=\"flex flex-col gap-4\" *transloco=\"let t; prefix: 'dashboardBuilder'\">\n <!-- Basic Info Card -->\n <mt-card [title]=\"t('basicInfo')\">\n <div class=\"grid grid-cols-1 md:grid-cols-2 gap-4\">\n <!-- English Title -->\n <mt-text-field\n [label]=\"t('titleEn')\"\n [ngModel]=\"config()?.clientConfig?.title?.en || ''\"\n (ngModelChange)=\"updateTitle('en', $event)\"\n [placeholder]=\"t('enterTitleEn')\"\n />\n\n <!-- Arabic Title -->\n <mt-text-field\n [label]=\"t('titleAr')\"\n [ngModel]=\"config()?.clientConfig?.title?.ar || ''\"\n (ngModelChange)=\"updateTitle('ar', $event)\"\n [placeholder]=\"t('enterTitleAr')\"\n dir=\"rtl\"\n />\n\n <!-- Component Name (readonly info) -->\n @if (selectedChartType(); as chartType) {\n <div class=\"md:col-span-2\">\n <div class=\"text-sm text-muted-color mb-1\">\n {{ t(\"selectedType\") }}\n </div>\n <div\n class=\"flex items-center gap-2 p-3 bg-surface-50 rounded-lg border border-surface-200\"\n >\n <mt-icon\n [icon]=\"chartType.icon\"\n class=\"text-lg text-primary-500\"\n ></mt-icon>\n <span class=\"font-medium\">{{ chartType.name }}</span>\n <span class=\"text-sm text-muted-color\"\n >({{ chartType.serviceType }})</span\n >\n </div>\n </div>\n }\n </div>\n </mt-card>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "component", type: TextField, selector: "mt-text-field", inputs: ["field", "hint", "label", "placeholder", "class", "type", "readonly", "pInputs", "required", "maxLength", "icon", "iconPosition"] }, { kind: "component", type: Card, selector: "mt-card", inputs: ["class", "title", "paddingless"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "component", type: Icon, selector: "mt-icon", inputs: ["icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
41039
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: GeneralSettings, isStandalone: true, selector: "mt-general-settings", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: false, transformFunction: null }, isDialog: { classPropertyName: "isDialog", publicName: "isDialog", isSignal: true, isRequired: false, transformFunction: null }, hasPreselectedType: { classPropertyName: "hasPreselectedType", publicName: "hasPreselectedType", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { configChange: "configChange", chartTypeChange: "chartTypeChange" }, ngImport: i0, template: "<div class=\"flex flex-col gap-4\" *transloco=\"let t; prefix: 'dashboardBuilder'\">\r\n <!-- Basic Info Card -->\r\n <mt-card [title]=\"t('basicInfo')\">\r\n <div class=\"grid grid-cols-1 md:grid-cols-2 gap-4\">\r\n <!-- English Title -->\r\n <mt-text-field\r\n [label]=\"t('titleEn')\"\r\n [ngModel]=\"config()?.clientConfig?.title?.en || ''\"\r\n (ngModelChange)=\"updateTitle('en', $event)\"\r\n [placeholder]=\"t('enterTitleEn')\"\r\n />\r\n\r\n <!-- Arabic Title -->\r\n <mt-text-field\r\n [label]=\"t('titleAr')\"\r\n [ngModel]=\"config()?.clientConfig?.title?.ar || ''\"\r\n (ngModelChange)=\"updateTitle('ar', $event)\"\r\n [placeholder]=\"t('enterTitleAr')\"\r\n dir=\"rtl\"\r\n />\r\n\r\n <!-- Component Name (readonly info) -->\r\n @if (selectedChartType(); as chartType) {\r\n <div class=\"md:col-span-2\">\r\n <div class=\"text-sm text-muted-color mb-1\">\r\n {{ t(\"selectedType\") }}\r\n </div>\r\n <div\r\n class=\"flex items-center gap-2 p-3 bg-surface-50 rounded-lg border border-surface-200\"\r\n >\r\n <mt-icon\r\n [icon]=\"chartType.icon\"\r\n class=\"text-lg text-primary-500\"\r\n ></mt-icon>\r\n <span class=\"font-medium\">{{ chartType.name }}</span>\r\n <span class=\"text-sm text-muted-color\"\r\n >({{ chartType.serviceType }})</span\r\n >\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n </mt-card>\r\n</div>\r\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: TranslocoDirective, selector: "[transloco]", inputs: ["transloco", "translocoParams", "translocoScope", "translocoRead", "translocoPrefix", "translocoLang", "translocoLoadingTpl"] }, { kind: "component", type: TextField, selector: "mt-text-field", inputs: ["field", "hint", "label", "placeholder", "class", "type", "readonly", "pInputs", "required", "maxLength", "icon", "iconPosition"] }, { kind: "component", type: Card, selector: "mt-card", inputs: ["class", "title", "paddingless"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "component", type: Icon, selector: "mt-icon", inputs: ["icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
41132
41040
  }
41133
41041
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: GeneralSettings, decorators: [{
41134
41042
  type: Component,
@@ -41140,7 +41048,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
41140
41048
  Card,
41141
41049
  TooltipModule,
41142
41050
  Icon,
41143
- ], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<div class=\"flex flex-col gap-4\" *transloco=\"let t; prefix: 'dashboardBuilder'\">\n <!-- Basic Info Card -->\n <mt-card [title]=\"t('basicInfo')\">\n <div class=\"grid grid-cols-1 md:grid-cols-2 gap-4\">\n <!-- English Title -->\n <mt-text-field\n [label]=\"t('titleEn')\"\n [ngModel]=\"config()?.clientConfig?.title?.en || ''\"\n (ngModelChange)=\"updateTitle('en', $event)\"\n [placeholder]=\"t('enterTitleEn')\"\n />\n\n <!-- Arabic Title -->\n <mt-text-field\n [label]=\"t('titleAr')\"\n [ngModel]=\"config()?.clientConfig?.title?.ar || ''\"\n (ngModelChange)=\"updateTitle('ar', $event)\"\n [placeholder]=\"t('enterTitleAr')\"\n dir=\"rtl\"\n />\n\n <!-- Component Name (readonly info) -->\n @if (selectedChartType(); as chartType) {\n <div class=\"md:col-span-2\">\n <div class=\"text-sm text-muted-color mb-1\">\n {{ t(\"selectedType\") }}\n </div>\n <div\n class=\"flex items-center gap-2 p-3 bg-surface-50 rounded-lg border border-surface-200\"\n >\n <mt-icon\n [icon]=\"chartType.icon\"\n class=\"text-lg text-primary-500\"\n ></mt-icon>\n <span class=\"font-medium\">{{ chartType.name }}</span>\n <span class=\"text-sm text-muted-color\"\n >({{ chartType.serviceType }})</span\n >\n </div>\n </div>\n }\n </div>\n </mt-card>\n</div>\n" }]
41051
+ ], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<div class=\"flex flex-col gap-4\" *transloco=\"let t; prefix: 'dashboardBuilder'\">\r\n <!-- Basic Info Card -->\r\n <mt-card [title]=\"t('basicInfo')\">\r\n <div class=\"grid grid-cols-1 md:grid-cols-2 gap-4\">\r\n <!-- English Title -->\r\n <mt-text-field\r\n [label]=\"t('titleEn')\"\r\n [ngModel]=\"config()?.clientConfig?.title?.en || ''\"\r\n (ngModelChange)=\"updateTitle('en', $event)\"\r\n [placeholder]=\"t('enterTitleEn')\"\r\n />\r\n\r\n <!-- Arabic Title -->\r\n <mt-text-field\r\n [label]=\"t('titleAr')\"\r\n [ngModel]=\"config()?.clientConfig?.title?.ar || ''\"\r\n (ngModelChange)=\"updateTitle('ar', $event)\"\r\n [placeholder]=\"t('enterTitleAr')\"\r\n dir=\"rtl\"\r\n />\r\n\r\n <!-- Component Name (readonly info) -->\r\n @if (selectedChartType(); as chartType) {\r\n <div class=\"md:col-span-2\">\r\n <div class=\"text-sm text-muted-color mb-1\">\r\n {{ t(\"selectedType\") }}\r\n </div>\r\n <div\r\n class=\"flex items-center gap-2 p-3 bg-surface-50 rounded-lg border border-surface-200\"\r\n >\r\n <mt-icon\r\n [icon]=\"chartType.icon\"\r\n class=\"text-lg text-primary-500\"\r\n ></mt-icon>\r\n <span class=\"font-medium\">{{ chartType.name }}</span>\r\n <span class=\"text-sm text-muted-color\"\r\n >({{ chartType.serviceType }})</span\r\n >\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n </mt-card>\r\n</div>\r\n" }]
41144
41052
  }], propDecorators: { config: [{ type: i0.Input, args: [{ isSignal: true, alias: "config", required: false }] }], isDialog: [{ type: i0.Input, args: [{ isSignal: true, alias: "isDialog", required: false }] }], hasPreselectedType: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasPreselectedType", required: false }] }], configChange: [{ type: i0.Output, args: ["configChange"] }], chartTypeChange: [{ type: i0.Output, args: ["chartTypeChange"] }] } });
41145
41053
 
41146
41054
  /**
@@ -46308,7 +46216,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
46308
46216
  * A static import here would put the whole grid in every host bundle that imports
46309
46217
  * `@masterteam/dashboard-builder`.
46310
46218
  */
46311
- const loadTableCard = () => import('./masterteam-dashboard-builder-table-card.component-kHPxfvAb.mjs').then((m) => m.TableCardComponent);
46219
+ const loadTableCard = () => import('./masterteam-dashboard-builder-table-card.component-CKAm_KXn.mjs').then((m) => m.TableCardComponent);
46312
46220
 
46313
46221
  /**
46314
46222
  * Dashboard Item Components Index
@@ -50458,11 +50366,11 @@ class DashboardList {
50458
50366
  this.dashboards.reload();
50459
50367
  }
50460
50368
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: DashboardList, deps: [], target: i0.ɵɵFactoryTarget.Component });
50461
- 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'\">\n <!-- Page mode -->\n @if (isPage()) {\n <mt-page\n [title]=\"pageTitle() || t('dashboards')\"\n [avatarIcon]=\"'chart.bar-chart-square-03'\"\n [avatarStyle]=\"{\n '--p-avatar-background': 'var(--p-cyan-100)',\n '--p-avatar-color': 'var(--p-cyan-700)',\n }\"\n >\n @if (headerEnd(); as hostActions) {\n <ng-template #headerEnd>\n <ng-container *ngTemplateOutlet=\"hostActions\" />\n </ng-template>\n }\n <!-- Content -->\n <ng-container *ngTemplateOutlet=\"tableContent\" />\n </mt-page>\n } @else {\n <!-- Non-page mode -->\n <div class=\"dashboard-list space-y-3\">\n <!-- Header -->\n <h2 class=\"text-2xl font-semibold text-surface-900 dark:text-surface-0\">\n {{ t(\"dashboards\") }}\n </h2>\n\n <!-- Content -->\n <ng-container *ngTemplateOutlet=\"tableContent\" />\n </div>\n }\n\n <!-- Reusable table content template -->\n <ng-template #tableContent>\n <!-- Custom cell templates -->\n <ng-template #nameTpl let-row>\n <span class=\"font-semibold text-surface-900 dark:text-surface-0\">\n {{ getDashboardName(row) }}\n </span>\n </ng-template>\n\n <!-- Dashboard Table -->\n <mt-table\n [data]=\"dashboardList()\"\n [columns]=\"tableColumns()\"\n [actions]=\"tableActions()\"\n [rowActions]=\"rowActions()\"\n [loading]=\"isLoading()\"\n [showFilters]=\"true\"\n [generalSearch]=\"true\"\n dataKey=\"id\"\n storageKey=\"dashboard-list-table\"\n (cellChange)=\"onToggleChange($event)\"\n />\n </ng-template>\n</ng-container>\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 });
50369
+ 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 });
50462
50370
  }
50463
50371
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: DashboardList, decorators: [{
50464
50372
  type: Component,
50465
- args: [{ selector: 'mt-dashboard-list', standalone: true, imports: [CommonModule, TranslocoDirective, Table, Page], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *transloco=\"let t; prefix: 'dashboardBuilder.dashboard'\">\n <!-- Page mode -->\n @if (isPage()) {\n <mt-page\n [title]=\"pageTitle() || t('dashboards')\"\n [avatarIcon]=\"'chart.bar-chart-square-03'\"\n [avatarStyle]=\"{\n '--p-avatar-background': 'var(--p-cyan-100)',\n '--p-avatar-color': 'var(--p-cyan-700)',\n }\"\n >\n @if (headerEnd(); as hostActions) {\n <ng-template #headerEnd>\n <ng-container *ngTemplateOutlet=\"hostActions\" />\n </ng-template>\n }\n <!-- Content -->\n <ng-container *ngTemplateOutlet=\"tableContent\" />\n </mt-page>\n } @else {\n <!-- Non-page mode -->\n <div class=\"dashboard-list space-y-3\">\n <!-- Header -->\n <h2 class=\"text-2xl font-semibold text-surface-900 dark:text-surface-0\">\n {{ t(\"dashboards\") }}\n </h2>\n\n <!-- Content -->\n <ng-container *ngTemplateOutlet=\"tableContent\" />\n </div>\n }\n\n <!-- Reusable table content template -->\n <ng-template #tableContent>\n <!-- Custom cell templates -->\n <ng-template #nameTpl let-row>\n <span class=\"font-semibold text-surface-900 dark:text-surface-0\">\n {{ getDashboardName(row) }}\n </span>\n </ng-template>\n\n <!-- Dashboard Table -->\n <mt-table\n [data]=\"dashboardList()\"\n [columns]=\"tableColumns()\"\n [actions]=\"tableActions()\"\n [rowActions]=\"rowActions()\"\n [loading]=\"isLoading()\"\n [showFilters]=\"true\"\n [generalSearch]=\"true\"\n dataKey=\"id\"\n storageKey=\"dashboard-list-table\"\n (cellChange)=\"onToggleChange($event)\"\n />\n </ng-template>\n</ng-container>\n" }]
50373
+ args: [{ selector: 'mt-dashboard-list', standalone: true, imports: [CommonModule, TranslocoDirective, Table, Page], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, 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" }]
50466
50374
  }], propDecorators: { nameTpl: [{ type: i0.ViewChild, args: ['nameTpl', { isSignal: true }] }], headerEnd: [{ type: i0.ContentChild, args: ['headerEnd', { isSignal: true }] }], isPage: [{ type: i0.Input, args: [{ isSignal: true, alias: "isPage", required: false }] }], pageTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageTitle", required: false }] }], baseRoute: [{ type: i0.Input, args: [{ isSignal: true, alias: "baseRoute", required: false }] }], showCreateButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCreateButton", required: false }] }], showViewButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "showViewButton", required: false }] }], showEditButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "showEditButton", required: false }] }], dashboardAction: [{ type: i0.Output, args: ["dashboardAction"] }], dashboardCreated: [{ type: i0.Output, args: ["dashboardCreated"] }] } });
50467
50375
 
50468
50376
  /**
@@ -53477,5 +53385,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
53477
53385
  * Generated bundle index. Do not edit.
53478
53386
  */
53479
53387
 
53480
- export { DEFAULT_MAP_REGION_KEY as $, getColorFromConditions as A, CardFilterComponent as B, ClickDispatcher as C, DashboardItemStoreService as D, EntityInfoComponent as E, FilterUtilsService as F, DynamicFiltersComponent as G, CardInfoComponent as H, ChartCardComponent as I, EChartComponent as J, resolveEntityUserPhoto as K, resolveEntityCheckbox as L, dateDisplayRawValue as M, normalizeDashboardCardEntityValue as N, mergePropertyAppearance as O, PropertiesCardComponent as P, EntityPreviewCardComponent as Q, HeaderCardComponent as R, StaticFiltersComponent as S, LastHistoryLevelCardComponent as T, ListStatisticCardComponent as U, MAP_MARKER_PATH as V, MAP_FALLBACK_COLORS as W, isPlottable as X, plottableGroups as Y, buildMapChartOption as Z, MAP_REGIONS as _, fillColorForPercentageProperty as a, CHART_TYPES as a$, MAP_DATA_ATTRIBUTION as a0, resolveMapRegion as a1, MapViewComponent as a2, SkeletonCardComponent as a3, resolveStatisticIconPlacement as a4, StatisticCardComponent as a5, loadTableCard as a6, TopbarCardComponent as a7, ChartDataService as a8, observeNearViewport as a9, createTooltipFormatter as aA, formatAxisLabel as aB, formatWordsUnderBar as aC, formatXAxis as aD, handleFiltersForCustom as aE, handleFilterForCard as aF, handleFilterForSnapshot as aG, applyBuiltInConditions as aH, DashboardList as aI, MODULE_CLASSIFICATION_LOG as aJ, MODULE_CLASSIFICATION_LOG_NAME as aK, isLogClassification as aL, HTTPMethod as aM, DashboardBuilderService as aN, DashboardStoreService as aO, isManagePagesDeleteResult as aP, ManagePages as aQ, ManageBreadcrumb as aR, ManageFilterOnPage as aS, DynamicFiltersConfig as aT, ChartSettingsDrawer as aU, DisplaySettings as aV, DefaultControlUi as aW, PieControlUi as aX, BarControlUi as aY, StackBarControlUi as aZ, ManageItem as a_, loadImmediately as aa, DASHBOARD_ITEM_VISIBILITY as ab, BarChartHandler as ac, PieChartHandler as ad, StackBarChartHandler as ae, axisFormatters as af, groupDatesByYearAndMonth as ag, GaugeChartHandler as ah, TableViewHandler as ai, OverviewCardHandler as aj, TimelineHandler as ak, LineChartHandler as al, SnapshotHandler as am, ComparisonChartHandler as an, SplitterChartHandler as ao, LevelCardHandler as ap, MapChartHandler as aq, RingGaugeChartHandler as ar, SPlusChartHandler as as, PhaseGateStepperHandler as at, formatCurrency as au, getCurrencySuffix as av, formatPercentage as aw, formatNumber as ax, formatDate as ay, createAxisFormatter as az, resolveLegendColorOverride as b, findPreset as b$, ManageItemService as b0, GeneralSettings as b1, DataSourceSettings as b2, ActionsSettings as b3, ChartViewer as b4, StyleStudioDrawer as b5, StyleSettingsRenderer as b6, expandResetPatches as b7, StyleField as b8, SegmentedField as b9, toFormSourceLink as bA, normalizeOnLoad as bB, normalizeBeforeSave as bC, normalizeBeforeRequest as bD, CONFIG_DOMAINS as bE, domainsForCapability as bF, findDomain as bG, POPOVER_TABS as bH, POPOVER_TAB_SPECS as bI, titleToUi as bJ, applyTitleToPersisted as bK, datasourceToUi as bL, fieldsToUi as bM, filtersToUi as bN, styleToUi as bO, applyStyleToPersisted as bP, layoutToUi as bQ, applyLayoutToPersisted as bR, labelLegendFormatToUi as bS, applyLabelLegendFormatToPersisted as bT, behaviorToUi as bU, applyBehaviorToPersisted as bV, applyFilterChipsToPersisted as bW, persistedToUi as bX, buildAssembly as bY, STYLE_PRESETS as bZ, presetsForCapability as b_, ColorListField as ba, ArrayBuilderField as bb, KeyValueMapField as bc, LegendOrderField as bd, ItemCardMenuComponent as be, ChartFilterDrawer as bf, ItemContextToolbarComponent as bg, ItemConfigPopoverComponent as bh, GuidedConfigDialogComponent as bi, FilterChipsBarComponent as bj, FilterBuilderComponent as bk, DatasourcePanelComponent as bl, SchemaControlRendererComponent as bm, FilterByGroupPipe as bn, GetChartActionsPipe as bo, CHART_CAPABILITIES as bp, getCapabilityById as bq, resolveCapability as br, toBackendChartType as bs, normalizeChartTypeForRequest as bt, normalizeFilterOperation as bu, normalizeAggregateFunction as bv, normalizeFilters as bw, selectorFromLegacy as bx, moduleIdFromSelector as by, toBackendSourceLink as bz, CardContentComponent as c, validate as c0, hasBlockingIssues as c1, groupIssuesByDomain as c2, parseAdvancedJson as c3, deepMerge$1 as c4, formatForEditor as c5, CUSTOM_COLOR_OPTION as c6, readByPath$1 as c7, setByPath as c8, applyControlPatchToPersisted as c9, applyControlPatchesToPersisted as ca, getControlSchema as cb, listControlSchemaIds as cc, listControlSchemas as cd, getFallbackControlSchema as ce, flattenSchema as cf, resolveDisplayFields as cg, buildDisplayFieldPredicate as ch, bindingKey as ci, getBinding as cj, listBindings as ck, listBindingsForChart as cl, readBoundValue as cm, ITEM_GUIDANCE_REGISTRY as cn, describeGuidance as co, ItemGuidanceService as cp, dynamicReorder as d, DashboardItem as e, formatValue as f, getLegendOverrideOrder as g, hasDoubleClickAction as h, resolveDashboardDialogHeader as i, DashboardDialogHeader as j, cloneDeep$1 as k, DashboardBuilder as l, DashboardViewer as m, normalizePhaseGatePropertyIdentity as n, orderLegendItems as o, switchAllKeysSmall as p, getNestedData as q, resolvePhaseGateResponseKey as r, switchAllKeysToLower as s, dynamicTextReplace as t, generalConfiguration as u, getLocalizedTitle as v, sortChartData as w, addCommasToNumber as x, sortDataTableView as y, isMobilePlatform$1 as z };
53481
- //# sourceMappingURL=masterteam-dashboard-builder-masterteam-dashboard-builder-CMWrKUhw.mjs.map
53388
+ export { StatisticCardComponent as $, getColorFromConditions as A, CardFilterComponent as B, ClickDispatcher as C, DashboardItemStoreService as D, EntityInfoComponent as E, FilterUtilsService as F, DynamicFiltersComponent as G, CardInfoComponent as H, ChartCardComponent as I, EChartComponent as J, resolveEntityUserPhoto as K, resolveEntityCheckbox as L, dateDisplayRawValue as M, normalizeDashboardCardEntityValue as N, mergePropertyAppearance as O, PropertiesCardComponent as P, EntityPreviewCardComponent as Q, HeaderCardComponent as R, StaticFiltersComponent as S, LastHistoryLevelCardComponent as T, ListStatisticCardComponent as U, MAP_REGIONS as V, DEFAULT_MAP_REGION_KEY as W, resolveMapRegion as X, MapViewComponent as Y, SkeletonCardComponent as Z, resolveStatisticIconPlacement as _, fillColorForPercentageProperty as a, StyleStudioDrawer as a$, loadTableCard as a0, TopbarCardComponent as a1, ChartDataService as a2, observeNearViewport as a3, loadImmediately as a4, DASHBOARD_ITEM_VISIBILITY as a5, BarChartHandler as a6, PieChartHandler as a7, StackBarChartHandler as a8, axisFormatters as a9, handleFilterForSnapshot as aA, applyBuiltInConditions as aB, DashboardList as aC, MODULE_CLASSIFICATION_LOG as aD, MODULE_CLASSIFICATION_LOG_NAME as aE, isLogClassification as aF, HTTPMethod as aG, DashboardBuilderService as aH, DashboardStoreService as aI, isManagePagesDeleteResult as aJ, ManagePages as aK, ManageBreadcrumb as aL, ManageFilterOnPage as aM, DynamicFiltersConfig as aN, ChartSettingsDrawer as aO, DisplaySettings as aP, DefaultControlUi as aQ, PieControlUi as aR, BarControlUi as aS, StackBarControlUi as aT, ManageItem as aU, CHART_TYPES as aV, ManageItemService as aW, GeneralSettings as aX, DataSourceSettings as aY, ActionsSettings as aZ, ChartViewer as a_, groupDatesByYearAndMonth as aa, GaugeChartHandler as ab, TableViewHandler as ac, OverviewCardHandler as ad, TimelineHandler as ae, LineChartHandler as af, SnapshotHandler as ag, ComparisonChartHandler as ah, SplitterChartHandler as ai, LevelCardHandler as aj, MapChartHandler as ak, RingGaugeChartHandler as al, SPlusChartHandler as am, PhaseGateStepperHandler as an, formatCurrency as ao, getCurrencySuffix as ap, formatPercentage as aq, formatNumber as ar, formatDate as as, createAxisFormatter as at, createTooltipFormatter as au, formatAxisLabel as av, formatWordsUnderBar as aw, formatXAxis as ax, handleFiltersForCustom as ay, handleFilterForCard as az, resolveLegendColorOverride as b, formatForEditor as b$, StyleSettingsRenderer as b0, expandResetPatches as b1, StyleField as b2, SegmentedField as b3, ColorListField as b4, ArrayBuilderField as b5, KeyValueMapField as b6, LegendOrderField as b7, ItemCardMenuComponent as b8, ChartFilterDrawer as b9, findDomain as bA, POPOVER_TABS as bB, POPOVER_TAB_SPECS as bC, titleToUi as bD, applyTitleToPersisted as bE, datasourceToUi as bF, fieldsToUi as bG, filtersToUi as bH, styleToUi as bI, applyStyleToPersisted as bJ, layoutToUi as bK, applyLayoutToPersisted as bL, labelLegendFormatToUi as bM, applyLabelLegendFormatToPersisted as bN, behaviorToUi as bO, applyBehaviorToPersisted as bP, applyFilterChipsToPersisted as bQ, persistedToUi as bR, buildAssembly as bS, STYLE_PRESETS as bT, presetsForCapability as bU, findPreset as bV, validate as bW, hasBlockingIssues as bX, groupIssuesByDomain as bY, parseAdvancedJson as bZ, deepMerge$1 as b_, ItemContextToolbarComponent as ba, ItemConfigPopoverComponent as bb, GuidedConfigDialogComponent as bc, FilterChipsBarComponent as bd, FilterBuilderComponent as be, DatasourcePanelComponent as bf, SchemaControlRendererComponent as bg, FilterByGroupPipe as bh, GetChartActionsPipe as bi, CHART_CAPABILITIES as bj, getCapabilityById as bk, resolveCapability as bl, toBackendChartType as bm, normalizeChartTypeForRequest as bn, normalizeFilterOperation as bo, normalizeAggregateFunction as bp, normalizeFilters as bq, selectorFromLegacy as br, moduleIdFromSelector as bs, toBackendSourceLink as bt, toFormSourceLink as bu, normalizeOnLoad as bv, normalizeBeforeSave as bw, normalizeBeforeRequest as bx, CONFIG_DOMAINS as by, domainsForCapability as bz, CardContentComponent as c, CUSTOM_COLOR_OPTION as c0, readByPath$1 as c1, setByPath as c2, applyControlPatchToPersisted as c3, applyControlPatchesToPersisted as c4, getControlSchema as c5, listControlSchemaIds as c6, listControlSchemas as c7, getFallbackControlSchema as c8, flattenSchema as c9, resolveDisplayFields as ca, buildDisplayFieldPredicate as cb, bindingKey as cc, getBinding as cd, listBindings as ce, listBindingsForChart as cf, readBoundValue as cg, ITEM_GUIDANCE_REGISTRY as ch, describeGuidance as ci, ItemGuidanceService as cj, dynamicReorder as d, DashboardItem as e, formatValue as f, getLegendOverrideOrder as g, hasDoubleClickAction as h, resolveDashboardDialogHeader as i, DashboardDialogHeader as j, cloneDeep$1 as k, DashboardBuilder as l, DashboardViewer as m, normalizePhaseGatePropertyIdentity as n, orderLegendItems as o, switchAllKeysSmall as p, getNestedData as q, resolvePhaseGateResponseKey as r, switchAllKeysToLower as s, dynamicTextReplace as t, generalConfiguration as u, getLocalizedTitle as v, sortChartData as w, addCommasToNumber as x, sortDataTableView as y, isMobilePlatform$1 as z };
53389
+ //# sourceMappingURL=masterteam-dashboard-builder-masterteam-dashboard-builder-2MrkLmtr.mjs.map