@masterteam/dashboard-builder 0.0.13 → 0.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@masterteam/dashboard-builder",
3
- "version": "0.0.13",
3
+ "version": "0.0.15",
4
4
  "publishConfig": {
5
5
  "directory": "../../../dist/masterteam/dashboard-builder",
6
6
  "linkDirectory": true,
@@ -21,7 +21,7 @@
21
21
  "primeng": "21.0.1",
22
22
  "rxjs": "^7.8.2",
23
23
  "tailwindcss": "^4.1.17",
24
- "@masterteam/components": "^0.0.122",
24
+ "@masterteam/components": "^0.0.124",
25
25
  "@masterteam/icons": "^0.0.14"
26
26
  },
27
27
  "dependencies": {
@@ -683,6 +683,8 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
683
683
  readonly pageId: _angular_core.InputSignal<string | number | null>;
684
684
  /** Standalone mode (when true, builder runs without API calls) */
685
685
  readonly standalone: _angular_core.InputSignal<boolean>;
686
+ /** Optional services filter used by manage-item metadata tree loading */
687
+ readonly services: _angular_core.InputSignal<readonly string[] | null>;
686
688
  /** Standalone dashboard data model */
687
689
  readonly dashboardData: _angular_core.ModelSignal<DashboardBuilderData | null>;
688
690
  /** Read-only mode */
@@ -801,7 +803,7 @@ declare class DashboardBuilder implements OnInit, OnDestroy {
801
803
  private applyDashboardData;
802
804
  private emitDashboardDataChange;
803
805
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<DashboardBuilder, never>;
804
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<DashboardBuilder, "mt-dashboard-builder", never, { "isPage": { "alias": "isPage"; "required": false; "isSignal": true; }; "pageTitle": { "alias": "pageTitle"; "required": false; "isSignal": true; }; "backButton": { "alias": "backButton"; "required": false; "isSignal": true; }; "pageId": { "alias": "pageId"; "required": false; "isSignal": true; }; "standalone": { "alias": "standalone"; "required": false; "isSignal": true; }; "dashboardData": { "alias": "dashboardData"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; }, { "dashboardData": "dashboardDataChange"; "pageChange": "pageChange"; "chartsChange": "chartsChange"; "onSave": "onSave"; "onBack": "onBack"; "onAddChart": "onAddChart"; "onEditChart": "onEditChart"; }, never, never, true, never>;
806
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<DashboardBuilder, "mt-dashboard-builder", never, { "isPage": { "alias": "isPage"; "required": false; "isSignal": true; }; "pageTitle": { "alias": "pageTitle"; "required": false; "isSignal": true; }; "backButton": { "alias": "backButton"; "required": false; "isSignal": true; }; "pageId": { "alias": "pageId"; "required": false; "isSignal": true; }; "standalone": { "alias": "standalone"; "required": false; "isSignal": true; }; "services": { "alias": "services"; "required": false; "isSignal": true; }; "dashboardData": { "alias": "dashboardData"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; }, { "dashboardData": "dashboardDataChange"; "pageChange": "pageChange"; "chartsChange": "chartsChange"; "onSave": "onSave"; "onBack": "onBack"; "onAddChart": "onAddChart"; "onEditChart": "onEditChart"; }, never, never, true, never>;
805
807
  }
806
808
 
807
809
  /**
@@ -3211,6 +3213,10 @@ declare class DashboardBuilderService {
3211
3213
  * Tree data cache for building selector name map
3212
3214
  */
3213
3215
  readonly treeData: _angular_core.WritableSignal<ServiceItem[]>;
3216
+ /**
3217
+ * Optional services filter for the modules tree request.
3218
+ */
3219
+ readonly modulesTreeServices: _angular_core.WritableSignal<readonly string[] | null>;
3214
3220
  /**
3215
3221
  * Fixed selections that cannot be removed or edited in SelectionConfiguration.
3216
3222
  * These selections are always shown and are read-only.
@@ -3241,6 +3247,7 @@ declare class DashboardBuilderService {
3241
3247
  * Clear all fixed selections
3242
3248
  */
3243
3249
  clearFixedSelections(): void;
3250
+ setModulesTreeServices(services: readonly string[] | null | undefined): void;
3244
3251
  /**
3245
3252
  * Add a single fixed selection
3246
3253
  * @param selection Selection to add as fixed
@@ -4373,6 +4380,7 @@ declare class ManageItem implements OnInit {
4373
4380
  cols: number;
4374
4381
  rows: number;
4375
4382
  };
4383
+ services?: readonly string[] | null;
4376
4384
  } | null>;
4377
4385
  /** Whether chart type is pre-selected (hides type selection) */
4378
4386
  readonly hasPreselectedType: _angular_core.Signal<boolean>;
@@ -1 +0,0 @@
1
- {"version":3,"file":"masterteam-dashboard-builder-dashboard-dialog.component-CF1Lnyxf.mjs","sources":["../../../../packages/masterteam/dashboard-builder/src/lib/dashboard-item/services/filter-utils.service.ts","../../../../packages/masterteam/dashboard-builder/src/lib/dashboard-item/components/dashboard-dialog/dashboard-dialog.component.ts","../../../../packages/masterteam/dashboard-builder/src/lib/dashboard-item/components/dashboard-dialog/dashboard-dialog.component.html"],"sourcesContent":["/**\r\n * Filter Utilities Service\r\n *\r\n * Handles dynamic filter processing for dashboard charts.\r\n * Replaces old handleFilters.ts functionality.\r\n */\r\n\r\nimport { Injectable, inject } from '@angular/core';\r\nimport { TranslocoService } from '@jsverse/transloco';\r\n\r\n/**\r\n * Extra filters configuration\r\n */\r\nexport interface ExtraFiltersConfig {\r\n dynamicFilters?: DynamicFilter[];\r\n staticFilters?: StaticFilter[];\r\n}\r\n\r\nexport interface DynamicFilter {\r\n key: string;\r\n configuration?: {\r\n isMultiple?: boolean;\r\n payload?: {\r\n selection?: Array<{\r\n filters?: Array<{\r\n propertyKey: string;\r\n propertyData?: any;\r\n }>;\r\n }>;\r\n };\r\n };\r\n}\r\n\r\nexport interface StaticFilter {\r\n key: string;\r\n value: any;\r\n}\r\n\r\n/**\r\n * Filter relation for conditional filter logic\r\n */\r\ninterface FilterRelation {\r\n type: string;\r\n key: string;\r\n value: 'deleteIfThereValue' | 'deleteIfThereNoValue';\r\n}\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class FilterUtilsService {\r\n private readonly transloco = inject(TranslocoService);\r\n\r\n // Registry of function placeholders\r\n private functionPlaceholders: Record<\r\n string,\r\n {\r\n pattern: RegExp;\r\n handler: (args: string[], params: Record<string, any>) => string;\r\n }\r\n > = {\r\n startOfMonth: {\r\n pattern: /^startOfMonth\\((.+?),(.+?)\\)$/,\r\n handler: (args, params) => {\r\n const month = parseInt(\r\n String(this.resolveValueForParam(args[0], params)),\r\n 10,\r\n );\r\n const year = parseInt(\r\n String(this.resolveValueForParam(args[1], params)),\r\n 10,\r\n );\r\n if (month && year) {\r\n return this.formatDateDMY(1, month, year);\r\n }\r\n return '';\r\n },\r\n },\r\n endOfMonth: {\r\n pattern: /^endOfMonth\\((.+?),(.+?)\\)$/,\r\n handler: (args, params) => {\r\n const month = parseInt(\r\n String(this.resolveValueForParam(args[0], params)),\r\n 10,\r\n );\r\n const year = parseInt(\r\n String(this.resolveValueForParam(args[1], params)),\r\n 10,\r\n );\r\n if (month && year) {\r\n const lastDay = this.getLastDayOfMonth(month, year);\r\n return this.formatDateDMY(lastDay, month, year);\r\n }\r\n return '';\r\n },\r\n },\r\n monthRange: {\r\n pattern: /^monthRange\\((.+?),(.+?)\\)$/,\r\n handler: (args, params) => {\r\n const month = parseInt(\r\n String(this.resolveValueForParam(args[0], params)),\r\n 10,\r\n );\r\n const year = parseInt(\r\n String(this.resolveValueForParam(args[1], params)),\r\n 10,\r\n );\r\n if (month && year) {\r\n const startDate = this.formatDateDMY(1, month, year);\r\n const lastDay = this.getLastDayOfMonth(month, year);\r\n const endDate = this.formatDateDMY(lastDay, month, year);\r\n return `${startDate},${endDate}`;\r\n }\r\n return '';\r\n },\r\n },\r\n };\r\n\r\n /**\r\n * Handle filters for custom chart requests\r\n */\r\n handleFiltersForCustom(\r\n configItem: any,\r\n params: Record<string, any>,\r\n extraFilters?: ExtraFiltersConfig,\r\n ): any {\r\n // Deep clone to avoid mutation\r\n const config = JSON.parse(JSON.stringify(configItem));\r\n\r\n // Process selections\r\n config.selection?.forEach((selection: any) => {\r\n // Replace placeholders in moduleId\r\n if (typeof selection.moduleId === 'string') {\r\n selection.moduleId = this.dynamicTextReplace(\r\n selection.moduleId,\r\n params,\r\n );\r\n }\r\n\r\n // Add dynamic filters from extraFilters\r\n if (extraFilters?.dynamicFilters?.length) {\r\n extraFilters.dynamicFilters.forEach((dynamicFilter) => {\r\n const filterKey = dynamicFilter.key;\r\n const paramValue = params?.[filterKey];\r\n\r\n if (\r\n paramValue !== undefined &&\r\n paramValue !== null &&\r\n paramValue !== ''\r\n ) {\r\n const configuration = dynamicFilter.configuration;\r\n const templateFilter =\r\n configuration?.payload?.selection?.[0]?.filters?.[0];\r\n\r\n if (templateFilter) {\r\n const newFilter: any = {\r\n propertyKey: templateFilter.propertyKey,\r\n propertyValue: paramValue,\r\n operation: configuration?.isMultiple ? 'OneOf' : 'Equal',\r\n logical: 'And',\r\n operationLevel: null,\r\n };\r\n\r\n if (templateFilter.propertyData) {\r\n newFilter.propertyData = templateFilter.propertyData;\r\n }\r\n\r\n if (!selection.filters) {\r\n selection.filters = [];\r\n }\r\n\r\n selection.filters.push(newFilter);\r\n }\r\n }\r\n });\r\n }\r\n\r\n // Process and filter existing filters\r\n selection.filters = selection.filters?.filter((filter: any) => {\r\n let shouldKeepFilter = true;\r\n let newPropertyValue = filter.propertyValue;\r\n\r\n // Handle placeholders in filter.propertyValue\r\n if (typeof newPropertyValue === 'string') {\r\n const matches = newPropertyValue.match(/{{(.*?)}}(\\?)?/g);\r\n if (matches) {\r\n for (const match of matches) {\r\n const processedValue = this.processCommaPlaceholders(\r\n match,\r\n params,\r\n );\r\n if (processedValue === null) {\r\n shouldKeepFilter = false;\r\n break;\r\n }\r\n newPropertyValue = newPropertyValue.replace(\r\n match,\r\n processedValue,\r\n );\r\n }\r\n\r\n if (shouldKeepFilter) {\r\n newPropertyValue =\r\n this.resolvePlaceholdersRecursively(newPropertyValue, params) ||\r\n newPropertyValue;\r\n filter.propertyValue = newPropertyValue;\r\n }\r\n }\r\n }\r\n\r\n // Remove if propertyValue is 'ignoreFilter'\r\n if (shouldKeepFilter && filter.propertyValue === 'ignoreFilter') {\r\n shouldKeepFilter = false;\r\n }\r\n\r\n // Check relations for conditional removal\r\n if (shouldKeepFilter && Array.isArray(filter.relations)) {\r\n for (const relation of filter.relations as FilterRelation[]) {\r\n if (relation.type === 'realationBetweenPageFilters') {\r\n const paramVal = params?.[relation.key];\r\n if (relation.value === 'deleteIfThereValue' && paramVal) {\r\n shouldKeepFilter = false;\r\n break;\r\n } else if (\r\n relation.value === 'deleteIfThereNoValue' &&\r\n !paramVal\r\n ) {\r\n shouldKeepFilter = false;\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n\r\n return shouldKeepFilter;\r\n });\r\n\r\n // Clean up empty properties on filters\r\n selection.filters?.forEach((filter: any) => {\r\n if (!filter?.operation) delete filter.operation;\r\n if (!filter?.operationLevel) delete filter.operationLevel;\r\n if (!filter?.logical) delete filter.logical;\r\n });\r\n });\r\n\r\n return config;\r\n }\r\n\r\n /**\r\n * Handle filters for card/overview requests\r\n */\r\n handleFilterForCard(\r\n filters: any[],\r\n params: Record<string, any>,\r\n ): Record<string, any> {\r\n const filteredList = filters.filter((filter: any) => {\r\n const propertyValue = filter.propertyValue;\r\n const matches = propertyValue?.match(/{{(.*?)}}(\\?)?/g);\r\n\r\n let shouldKeepFilter = true;\r\n let newPropertyValue = propertyValue;\r\n\r\n if (matches) {\r\n for (const match of matches) {\r\n const processedValue = this.processCommaPlaceholders(match, params);\r\n if (processedValue === null) {\r\n shouldKeepFilter = false;\r\n break;\r\n }\r\n newPropertyValue = newPropertyValue.replace(match, processedValue);\r\n }\r\n\r\n if (shouldKeepFilter) {\r\n newPropertyValue =\r\n this.resolvePlaceholdersRecursively(newPropertyValue, params) ||\r\n newPropertyValue;\r\n filter.propertyValue = newPropertyValue;\r\n }\r\n }\r\n\r\n return shouldKeepFilter;\r\n });\r\n\r\n const result: Record<string, any> = {};\r\n filteredList.forEach((filter: any) => {\r\n result[filter.propertyKey] = filter.propertyValue;\r\n });\r\n\r\n return result;\r\n }\r\n\r\n /**\r\n * Handle filter for snapshot requests\r\n */\r\n handleFilterForSnapshot(\r\n levelId: string,\r\n params: Record<string, any>,\r\n ): string {\r\n return this.dynamicTextReplace(levelId, params);\r\n }\r\n\r\n /**\r\n * Replace dynamic placeholders in text\r\n */\r\n dynamicTextReplace(\r\n text: string,\r\n params: Record<string, any>,\r\n keepIfNotFound = false,\r\n ): string {\r\n if (!text) return '';\r\n\r\n const enrichedParams = {\r\n ...params,\r\n currentYear: new Date().getFullYear().toString(),\r\n currentWeek: this.getCurrentWeekOfYear().toString(),\r\n createdAt: new Date().toLocaleDateString('en-US', {\r\n day: 'numeric',\r\n month: 'long',\r\n year: 'numeric',\r\n }),\r\n };\r\n\r\n return text.replace(/\\{\\{([\\w.]+)\\}\\}/g, (match, key) => {\r\n let value = this.getNestedValue(enrichedParams, key);\r\n\r\n // Case-insensitive fallback\r\n if (value === undefined) {\r\n const lowerKey = key.toLowerCase();\r\n const foundKey = Object.keys(enrichedParams).find(\r\n (k) => k.toLowerCase() === lowerKey,\r\n );\r\n if (foundKey) {\r\n value = this.getNestedValue(enrichedParams, foundKey);\r\n }\r\n }\r\n\r\n return value !== undefined ? String(value) : keepIfNotFound ? match : '';\r\n });\r\n }\r\n\r\n // ============================================\r\n // Private Helper Methods\r\n // ============================================\r\n\r\n private resolveValueForParam(\r\n value: string,\r\n params: Record<string, any>,\r\n ): string | number | null {\r\n const orParts = value.split('||').map((p) => p.trim());\r\n\r\n for (const part of orParts) {\r\n if (!isNaN(Number(part))) {\r\n return Number(part);\r\n }\r\n\r\n const paramValue = this.getNestedValue(params, part);\r\n if (\r\n paramValue !== undefined &&\r\n paramValue !== null &&\r\n paramValue !== ''\r\n ) {\r\n return paramValue;\r\n }\r\n }\r\n\r\n return null;\r\n }\r\n\r\n private getLastDayOfMonth(month: number, year: number): number {\r\n return new Date(year, month, 0).getDate();\r\n }\r\n\r\n private formatDateDMY(day: number, month: number, year: number): string {\r\n const dd = String(day).padStart(2, '0');\r\n const mm = String(month).padStart(2, '0');\r\n return `${dd}-${mm}-${year}`;\r\n }\r\n\r\n private getCurrentWeekOfYear(): number {\r\n const now = new Date();\r\n const start = new Date(now.getFullYear(), 0, 1);\r\n const diff = now.getTime() - start.getTime();\r\n const oneWeek = 1000 * 60 * 60 * 24 * 7;\r\n return Math.ceil(diff / oneWeek);\r\n }\r\n\r\n private getNestedValue(obj: any, path: string): any {\r\n return path.split('.').reduce((current, key) => current?.[key], obj);\r\n }\r\n\r\n private processFunctionPlaceholder(\r\n placeholder: string,\r\n params: Record<string, any>,\r\n ): string | null {\r\n for (const funcName in this.functionPlaceholders) {\r\n const { pattern, handler } = this.functionPlaceholders[funcName];\r\n const match = placeholder.match(pattern);\r\n if (match) {\r\n const args = match.slice(1).map((arg) => arg.trim());\r\n return handler(args, params);\r\n }\r\n }\r\n return null;\r\n }\r\n\r\n private handleSpecialPlaceholders(\r\n placeholder: string,\r\n params: Record<string, any>,\r\n ): string | number {\r\n // Try function placeholders first\r\n const functionResult = this.processFunctionPlaceholder(placeholder, params);\r\n if (functionResult !== null) {\r\n return functionResult;\r\n }\r\n\r\n const getCurrentDate = () => new Date();\r\n const getFirstDateOfCurrentYear = () => {\r\n const currentYear = new Date().getFullYear();\r\n return new Date(Date.UTC(currentYear, 0, 1));\r\n };\r\n const getEndDateOfCurrentYear = () => {\r\n const currentYear = new Date().getFullYear();\r\n return new Date(Date.UTC(currentYear, 11, 31));\r\n };\r\n\r\n const adjustDate = (date: Date, amount: number, unit: string): Date => {\r\n const newDate = new Date(date);\r\n switch (unit) {\r\n case 'd':\r\n newDate.setUTCDate(newDate.getUTCDate() + amount);\r\n break;\r\n case 'm':\r\n newDate.setUTCMonth(newDate.getUTCMonth() + amount);\r\n break;\r\n case 'y':\r\n newDate.setUTCFullYear(newDate.getUTCFullYear() + amount);\r\n break;\r\n }\r\n return newDate;\r\n };\r\n\r\n // Date patterns\r\n const datePattern =\r\n /^(currentDate|firstDateOfCurrentYear|startDateOfCurrentYear|endDateOfCurrentYear)([+-]\\d+)?([dmy])?$/;\r\n const dateMatches = placeholder.match(datePattern);\r\n\r\n if (dateMatches) {\r\n const [, baseDate, adjustment = '', unit = ''] = dateMatches;\r\n\r\n let date: Date;\r\n switch (baseDate) {\r\n case 'currentDate':\r\n date = getCurrentDate();\r\n break;\r\n case 'firstDateOfCurrentYear':\r\n case 'startDateOfCurrentYear':\r\n date = getFirstDateOfCurrentYear();\r\n break;\r\n case 'endDateOfCurrentYear':\r\n date = getEndDateOfCurrentYear();\r\n break;\r\n default:\r\n date = getCurrentDate();\r\n }\r\n\r\n if (adjustment) {\r\n const amount = parseInt(adjustment, 10);\r\n const timeUnit = unit || 'd';\r\n date = adjustDate(date, amount, timeUnit);\r\n }\r\n\r\n return date.toISOString().split('T')[0];\r\n }\r\n\r\n // Number patterns\r\n const numberPattern = /^(\\d+)([+-]\\d+)?$/;\r\n const numberMatches = placeholder.match(numberPattern);\r\n\r\n if (numberMatches) {\r\n const [, baseNumber, adjustment = ''] = numberMatches;\r\n let resultNumber = parseInt(baseNumber, 10);\r\n\r\n if (adjustment) {\r\n resultNumber += parseInt(adjustment, 10);\r\n }\r\n\r\n return resultNumber.toString();\r\n }\r\n\r\n // Fallback to params\r\n return this.getNestedValue(params, placeholder) || '';\r\n }\r\n\r\n private resolveValue(value: string, params: Record<string, any>): any {\r\n // String literal\r\n if (\r\n (value.startsWith('\"') && value.endsWith('\"')) ||\r\n (value.startsWith(\"'\") && value.endsWith(\"'\"))\r\n ) {\r\n return value.slice(1, -1);\r\n }\r\n\r\n // Number\r\n if (!isNaN(Number(value))) {\r\n return Number(value);\r\n }\r\n\r\n // Boolean/null/undefined\r\n if (value === 'true') return true;\r\n if (value === 'false') return false;\r\n if (value === 'null') return null;\r\n if (value === 'undefined') return undefined;\r\n\r\n // Parameter key\r\n return this.getNestedValue(params, value);\r\n }\r\n\r\n private evaluateConditionalExpression(\r\n expression: string,\r\n params: Record<string, any>,\r\n ): string | null {\r\n const ternaryPattern = /^(.+?)\\s*\\?\\s*(.+?)\\s*:\\s*(.+?)$/;\r\n const match = expression.match(ternaryPattern);\r\n\r\n if (!match) {\r\n return null;\r\n }\r\n\r\n const [, condition, trueValue, falseValue] = match;\r\n\r\n let conditionResult = false;\r\n\r\n const comparisonPattern = /^(.+?)\\s*(==|===|!=|!==|>|<|>=|<=)\\s*(.+?)$/;\r\n const compMatch = condition.match(comparisonPattern);\r\n\r\n if (compMatch) {\r\n const [, left, operator, right] = compMatch;\r\n const leftValue = this.resolveValue(left.trim(), params);\r\n const rightValue = this.resolveValue(right.trim(), params);\r\n\r\n switch (operator) {\r\n case '==':\r\n case '===':\r\n conditionResult = leftValue == rightValue;\r\n break;\r\n case '!=':\r\n case '!==':\r\n conditionResult = leftValue != rightValue;\r\n break;\r\n case '>':\r\n conditionResult = leftValue > rightValue;\r\n break;\r\n case '<':\r\n conditionResult = leftValue < rightValue;\r\n break;\r\n case '>=':\r\n conditionResult = leftValue >= rightValue;\r\n break;\r\n case '<=':\r\n conditionResult = leftValue <= rightValue;\r\n break;\r\n }\r\n } else {\r\n const value = this.resolveValue(condition.trim(), params);\r\n conditionResult = !!value;\r\n }\r\n\r\n const resultValue = conditionResult ? trueValue.trim() : falseValue.trim();\r\n\r\n if (resultValue === 'null') return null;\r\n if (resultValue === 'undefined') return '';\r\n\r\n return String(this.resolveValue(resultValue, params));\r\n }\r\n\r\n private resolvePlaceholdersRecursively(\r\n value: string,\r\n params: Record<string, any>,\r\n ): string | null {\r\n if (!value.match(/{{(.*?)}}/)) {\r\n return value;\r\n }\r\n\r\n const replaced = this.dynamicTextReplace(value, params);\r\n\r\n if (replaced === value && replaced.match(/{{(.*?)}}/)) {\r\n return null;\r\n }\r\n\r\n if (replaced.match(/{{(.*?)}}/)) {\r\n return this.resolvePlaceholdersRecursively(replaced, params);\r\n }\r\n\r\n return replaced;\r\n }\r\n\r\n private processCommaPlaceholders(\r\n match: string,\r\n params: Record<string, any>,\r\n ): string | null {\r\n const rawContent = match.replace(/{{|}}/g, '');\r\n\r\n // Try function placeholders\r\n const functionResult = this.processFunctionPlaceholder(rawContent, params);\r\n if (functionResult !== null) {\r\n return functionResult;\r\n }\r\n\r\n // Try conditional expression\r\n if (rawContent.includes('?') && rawContent.includes(':')) {\r\n const conditionalResult = this.evaluateConditionalExpression(\r\n rawContent,\r\n params,\r\n );\r\n if (conditionalResult !== null) {\r\n return conditionalResult;\r\n }\r\n }\r\n\r\n // Remove optional marker and process comma-separated params\r\n const cleanContent = rawContent.replace(/\\?/g, '');\r\n const paramNames = cleanContent.split(',');\r\n const paramValues: string[] = [];\r\n\r\n for (const paramName of paramNames) {\r\n const trimmedName = paramName.trim();\r\n const orParts = trimmedName.split('||').map((p) => p.trim());\r\n\r\n let resolvedValueForThisPart: string | null = null;\r\n for (const orPart of orParts) {\r\n const resolvedName = this.resolvePlaceholdersRecursively(\r\n orPart,\r\n params,\r\n );\r\n if (resolvedName) {\r\n const finalValue = this.handleSpecialPlaceholders(\r\n resolvedName,\r\n params,\r\n );\r\n if (finalValue !== '') {\r\n resolvedValueForThisPart = String(finalValue);\r\n break;\r\n }\r\n }\r\n }\r\n\r\n if (!resolvedValueForThisPart) {\r\n return null;\r\n }\r\n\r\n paramValues.push(resolvedValueForThisPart);\r\n }\r\n\r\n const hasEmptyValues = paramValues.some(\r\n (value) => value === '' || value === undefined,\r\n );\r\n if (hasEmptyValues) {\r\n return null;\r\n }\r\n\r\n return paramValues.join(',');\r\n }\r\n}\r\n","/**\r\n * Dashboard Dialog Component\r\n *\r\n * A flexible dialog wrapper that renders a DashboardItem inside.\r\n * Uses the same ItemConfig structure - maximum code reuse.\r\n *\r\n * The dialog simply wraps DashboardItem, so any chart/table/card\r\n * that works inline will work in a dialog too.\r\n */\r\n\r\nimport {\r\n Component,\r\n inject,\r\n input,\r\n signal,\r\n computed,\r\n OnInit,\r\n} from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { TranslocoDirective, TranslocoService } from '@jsverse/transloco';\r\nimport { ModalService } from '@masterteam/components/modal';\r\nimport { ModalRef } from '@masterteam/components/dialog';\r\nimport { Button } from '@masterteam/components/button';\r\n\r\nimport { ItemConfig } from '../../../models/dashboard.model';\r\nimport { DashboardItemStoreService } from '../../services/item-store.service';\r\nimport { FilterUtilsService } from '../../services/filter-utils.service';\r\nimport { DashboardItem } from '../../dashboard-item';\r\n\r\n/**\r\n * Dashboard Dialog Component\r\n *\r\n * Opened via ModalService, renders a DashboardItem inside.\r\n * Usage:\r\n * this.modalService.open(DashboardDialogComponent, {\r\n * data: { config: itemConfig, params: queryParams }\r\n * });\r\n */\r\n@Component({\r\n selector: 'mt-dashboard-dialog',\r\n standalone: true,\r\n imports: [CommonModule, TranslocoDirective, Button, DashboardItem],\r\n templateUrl: './dashboard-dialog.component.html',\r\n})\r\nexport class DashboardDialogComponent implements OnInit {\r\n private readonly itemStore = inject(DashboardItemStoreService);\r\n private readonly filterUtils = inject(FilterUtilsService);\r\n private readonly transloco = inject(TranslocoService);\r\n readonly modal = inject(ModalService);\r\n private readonly ref = inject(ModalRef);\r\n\r\n // Inputs from modal data\r\n readonly config = input<ItemConfig | null>(null);\r\n readonly params = input<Record<string, any>>({});\r\n readonly title = input<string | null>(null);\r\n\r\n // State\r\n readonly dialogConfig = signal<ItemConfig | null>(null);\r\n readonly actionParams = signal<Record<string, any>>({});\r\n\r\n // Computed\r\n readonly mergedParams = computed(() => ({\r\n ...this.params(),\r\n ...this.actionParams(),\r\n }));\r\n\r\n readonly processedConfig = computed(() => {\r\n debugger;\r\n\r\n const config = this.dialogConfig();\r\n if (!config) return null;\r\n\r\n // Deep clone and process filters\r\n const cloned = JSON.parse(JSON.stringify(config)) as ItemConfig;\r\n\r\n // Apply filter processing if service config exists\r\n if (cloned.serviceConfig) {\r\n const processed = this.filterUtils.handleFiltersForCustom(\r\n cloned.serviceConfig,\r\n this.mergedParams(),\r\n );\r\n cloned.serviceConfig = processed;\r\n }\r\n return cloned;\r\n });\r\n\r\n ngOnInit(): void {\r\n // Set config from input\r\n const config = this.config();\r\n if (config) {\r\n this.dialogConfig.set(config);\r\n }\r\n\r\n // Set params from input\r\n const params = this.params();\r\n if (params) {\r\n this.actionParams.set(params);\r\n }\r\n }\r\n\r\n /**\r\n * Close dialog\r\n */\r\n close(result?: any): void {\r\n this.ref.close(result);\r\n }\r\n\r\n /**\r\n * Handle actions from the inner DashboardItem\r\n */\r\n onItemAction(event: any): void {\r\n // If it's a close action, close the dialog\r\n if (event?.type === 'closeDialog') {\r\n this.close(event?.data);\r\n return;\r\n }\r\n\r\n // For navigation actions, close dialog and let parent handle\r\n if (event?.type === 'navigate' || event?.type === 'navigateTo') {\r\n this.close(event);\r\n return;\r\n }\r\n\r\n // For other actions, could emit to parent or handle internally\r\n console.log('Dialog action:', event);\r\n }\r\n}\r\n\r\n/**\r\n * Helper service for opening dashboard dialogs\r\n */\r\nexport function openDashboardDialog(\r\n modalService: ModalService,\r\n config: ItemConfig,\r\n params?: Record<string, any>,\r\n options?: {\r\n title?: string;\r\n size?: 'sm' | 'md' | 'lg' | 'xl' | 'full';\r\n },\r\n): ModalRef {\r\n const sizeClass = {\r\n sm: 'max-w-md',\r\n md: 'max-w-2xl',\r\n lg: 'max-w-4xl',\r\n xl: 'max-w-6xl',\r\n full: 'max-w-[95vw]',\r\n }[options?.size || 'lg'];\r\n\r\n return modalService.openModal(DashboardDialogComponent, 'dialog', {\r\n header: options?.title || '',\r\n styleClass: sizeClass,\r\n data: {\r\n config,\r\n params: params || {},\r\n title: options?.title,\r\n },\r\n });\r\n}\r\n","<div\r\n [class]=\"modal.contentClass + ' p-0 min-h-[300px] max-h-[80vh] overflow-auto'\"\r\n *transloco=\"let t; prefix: 'dashboard'\"\r\n>\r\n <!-- Dashboard Item renders whatever the config specifies -->\r\n @if (processedConfig()) {\r\n <mt-dashboard-item\r\n [config]=\"processedConfig()!\"\r\n [queryParams]=\"mergedParams()\"\r\n [isDialog]=\"true\"\r\n (actionTriggered)=\"onItemAction($event)\"\r\n />\r\n } @else {\r\n <!-- Loading state while config is being processed -->\r\n <div class=\"flex items-center justify-center min-h-[200px]\">\r\n <i class=\"pi pi-spin pi-spinner text-4xl text-primary\"></i>\r\n </div>\r\n }\r\n</div>\r\n<!--\r\n<div [class]=\"modal.footerClass\" *transloco=\"let t; prefix: 'dashboard'\">\r\n <mt-button [label]=\"t('close')\" severity=\"secondary\" (onClick)=\"close()\" />\r\n</div> -->\r\n"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;AAKG;MA6CU,kBAAkB,CAAA;AACZ,IAAA,SAAS,GAAG,MAAM,CAAC,gBAAgB,CAAC;;AAG7C,IAAA,oBAAoB,GAMxB;AACF,QAAA,YAAY,EAAE;AACZ,YAAA,OAAO,EAAE,+BAA+B;AACxC,YAAA,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAI;gBACxB,MAAM,KAAK,GAAG,QAAQ,CACpB,MAAM,CAAC,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,EAClD,EAAE,CACH;gBACD,MAAM,IAAI,GAAG,QAAQ,CACnB,MAAM,CAAC,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,EAClD,EAAE,CACH;AACD,gBAAA,IAAI,KAAK,IAAI,IAAI,EAAE;oBACjB,OAAO,IAAI,CAAC,aAAa,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC;gBAC3C;AACA,gBAAA,OAAO,EAAE;YACX,CAAC;AACF,SAAA;AACD,QAAA,UAAU,EAAE;AACV,YAAA,OAAO,EAAE,6BAA6B;AACtC,YAAA,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAI;gBACxB,MAAM,KAAK,GAAG,QAAQ,CACpB,MAAM,CAAC,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,EAClD,EAAE,CACH;gBACD,MAAM,IAAI,GAAG,QAAQ,CACnB,MAAM,CAAC,IAA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