@acorex-platform/module-dashboard-management-client 0.0.46 → 0.0.49

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 (24) hide show
  1. package/fesm2022/{acorex-platform-module-dashboard-management-client-acorex-platform-module-dashboard-management-client-Ey27MqFo.mjs → acorex-platform-module-dashboard-management-client-acorex-platform-module-dashboard-management-client-61Q_QY8l.mjs} +18 -18
  2. package/fesm2022/{acorex-platform-module-dashboard-management-client-acorex-platform-module-dashboard-management-client-Ey27MqFo.mjs.map → acorex-platform-module-dashboard-management-client-acorex-platform-module-dashboard-management-client-61Q_QY8l.mjs.map} +1 -1
  3. package/fesm2022/{acorex-platform-module-dashboard-management-client-bar-chart-widget.component-5c4X-lEC.mjs → acorex-platform-module-dashboard-management-client-bar-chart-widget.component-kw130ESN.mjs} +5 -5
  4. package/fesm2022/{acorex-platform-module-dashboard-management-client-bar-chart-widget.component-5c4X-lEC.mjs.map → acorex-platform-module-dashboard-management-client-bar-chart-widget.component-kw130ESN.mjs.map} +1 -1
  5. package/fesm2022/{acorex-platform-module-dashboard-management-client-chart-card-widget.component-BYdlIBv9.mjs → acorex-platform-module-dashboard-management-client-chart-card-widget.component-B2ztaswG.mjs} +4 -4
  6. package/fesm2022/{acorex-platform-module-dashboard-management-client-chart-card-widget.component-BYdlIBv9.mjs.map → acorex-platform-module-dashboard-management-client-chart-card-widget.component-B2ztaswG.mjs.map} +1 -1
  7. package/fesm2022/{acorex-platform-module-dashboard-management-client-chart-configurator-widget-edit.component-FhtkU52L.mjs → acorex-platform-module-dashboard-management-client-chart-configurator-widget-edit.component-BgR51eZ1.mjs} +2 -2
  8. package/fesm2022/{acorex-platform-module-dashboard-management-client-chart-configurator-widget-edit.component-FhtkU52L.mjs.map → acorex-platform-module-dashboard-management-client-chart-configurator-widget-edit.component-BgR51eZ1.mjs.map} +1 -1
  9. package/fesm2022/{acorex-platform-module-dashboard-management-client-chart-widget-data.util-DgCBHS1p.mjs → acorex-platform-module-dashboard-management-client-chart-widget-data.util-BLtv9sOm.mjs} +2 -2
  10. package/fesm2022/{acorex-platform-module-dashboard-management-client-chart-widget-data.util-DgCBHS1p.mjs.map → acorex-platform-module-dashboard-management-client-chart-widget-data.util-BLtv9sOm.mjs.map} +1 -1
  11. package/fesm2022/{acorex-platform-module-dashboard-management-client-donut-chart-widget.component-DRiIRbhX.mjs → acorex-platform-module-dashboard-management-client-donut-chart-widget.component-DB_7rLmK.mjs} +5 -5
  12. package/fesm2022/{acorex-platform-module-dashboard-management-client-donut-chart-widget.component-DRiIRbhX.mjs.map → acorex-platform-module-dashboard-management-client-donut-chart-widget.component-DB_7rLmK.mjs.map} +1 -1
  13. package/fesm2022/{acorex-platform-module-dashboard-management-client-funnel-chart-widget.component-BPY1NchM.mjs → acorex-platform-module-dashboard-management-client-funnel-chart-widget.component-CltmXb8c.mjs} +5 -5
  14. package/fesm2022/{acorex-platform-module-dashboard-management-client-funnel-chart-widget.component-BPY1NchM.mjs.map → acorex-platform-module-dashboard-management-client-funnel-chart-widget.component-CltmXb8c.mjs.map} +1 -1
  15. package/fesm2022/{acorex-platform-module-dashboard-management-client-gauge-chart-widget.component-Cy6fgife.mjs → acorex-platform-module-dashboard-management-client-gauge-chart-widget.component-Ci1cRFmt.mjs} +5 -5
  16. package/fesm2022/{acorex-platform-module-dashboard-management-client-gauge-chart-widget.component-Cy6fgife.mjs.map → acorex-platform-module-dashboard-management-client-gauge-chart-widget.component-Ci1cRFmt.mjs.map} +1 -1
  17. package/fesm2022/{acorex-platform-module-dashboard-management-client-heatmap-chart-widget.component-CTelqGbm.mjs → acorex-platform-module-dashboard-management-client-heatmap-chart-widget.component-CzJTc6rm.mjs} +5 -5
  18. package/fesm2022/{acorex-platform-module-dashboard-management-client-heatmap-chart-widget.component-CTelqGbm.mjs.map → acorex-platform-module-dashboard-management-client-heatmap-chart-widget.component-CzJTc6rm.mjs.map} +1 -1
  19. package/fesm2022/{acorex-platform-module-dashboard-management-client-index-P-PzUrbN.mjs → acorex-platform-module-dashboard-management-client-index-z10pHL3b.mjs} +2 -2
  20. package/fesm2022/{acorex-platform-module-dashboard-management-client-index-P-PzUrbN.mjs.map → acorex-platform-module-dashboard-management-client-index-z10pHL3b.mjs.map} +1 -1
  21. package/fesm2022/{acorex-platform-module-dashboard-management-client-line-chart-widget.component-B18VZb9t.mjs → acorex-platform-module-dashboard-management-client-line-chart-widget.component-Fu_lheQe.mjs} +5 -5
  22. package/fesm2022/{acorex-platform-module-dashboard-management-client-line-chart-widget.component-B18VZb9t.mjs.map → acorex-platform-module-dashboard-management-client-line-chart-widget.component-Fu_lheQe.mjs.map} +1 -1
  23. package/fesm2022/acorex-platform-module-dashboard-management-client.mjs +1 -1
  24. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-dashboard-management-client-chart-configurator-widget-edit.component-FhtkU52L.mjs","sources":["../../../../libs/modules/dashboard-management/client/src/lib/features/shared/widgets/chart/chart-color-rule-fields.util.ts","../../../../libs/modules/dashboard-management/client/src/lib/features/shared/widgets/chart/chart-configurator/chart-tab-properties.util.ts","../../../../libs/modules/dashboard-management/client/src/lib/features/shared/widgets/chart/chart-configurator/chart-configurator.catalog.ts","../../../../libs/modules/dashboard-management/client/src/lib/features/shared/widgets/chart/chart-configurator/chart-configurator.component.ts","../../../../libs/modules/dashboard-management/client/src/lib/features/shared/widgets/chart/chart-configurator/chart-configurator-widget-edit.component.ts"],"sourcesContent":["//#region ----- Imports -----\n\nimport {\n AXPWidgetsCatalog,\n AXPWidgetsList,\n type AXPFilterDefinition,\n} from '@acorex-platform/framework-shared/core';\nimport { AXP_CHART_QUERY_RESULT_TYPE } from '@acorex-platform/module-dashboard-management-client/contracts';\n\n//#endregion\n\n//#region ----- Constants -----\n\nconst FIELD_I18N = {\n id: '@dashboard:widgets.chart-configurator.color-rule-field-id',\n label: '@dashboard:widgets.chart-configurator.color-rule-field-label',\n name: '@dashboard:widgets.chart-configurator.color-rule-field-name',\n value: '@dashboard:widgets.chart-configurator.color-rule-field-value',\n} as const;\n\n//#endregion\n\n//#region ----- Filter definitions -----\n\nfunction stringFilterField(field: string, title: string): AXPFilterDefinition {\n return {\n field,\n title,\n widget: { type: AXPWidgetsCatalog.stringFilter },\n filterType: { advance: true, inline: false },\n };\n}\n\nfunction numberFilterField(field: string, title: string): AXPFilterDefinition {\n return {\n field,\n title,\n widget: { type: AXPWidgetsCatalog.numberFilter },\n filterType: { advance: true, inline: false },\n };\n}\n\n/**\n * Condition-builder fields for colour rules, derived from the chart/KPI result DTO.\n */\nexport function buildChartColorRuleFilterDefinitions(resultType: string): AXPFilterDefinition[] {\n switch (resultType) {\n case AXP_CHART_QUERY_RESULT_TYPE.barSeries:\n case AXP_CHART_QUERY_RESULT_TYPE.donutSeries:\n return [\n stringFilterField('id', FIELD_I18N.id),\n stringFilterField('label', FIELD_I18N.label),\n numberFilterField('value', FIELD_I18N.value),\n ];\n case AXP_CHART_QUERY_RESULT_TYPE.funnelSeries:\n return [\n stringFilterField('id', FIELD_I18N.id),\n stringFilterField('name', FIELD_I18N.name),\n numberFilterField('value', FIELD_I18N.value),\n ];\n case AXP_CHART_QUERY_RESULT_TYPE.lineSeries:\n return [stringFilterField('id', FIELD_I18N.id), stringFilterField('label', FIELD_I18N.label)];\n case AXP_CHART_QUERY_RESULT_TYPE.kpiSegmented:\n return [stringFilterField('label', FIELD_I18N.label), numberFilterField('value', FIELD_I18N.value)];\n case AXP_CHART_QUERY_RESULT_TYPE.kpiDetails:\n return [stringFilterField('label', FIELD_I18N.label), stringFilterField('value', FIELD_I18N.value)];\n default:\n return [];\n }\n}\n\nexport const CHART_COLOR_RULE_CONDITION_WIDGET = AXPWidgetsList.ExpressionBuilders.ConditionBuilder;\n\n//#endregion\n","//#region ----- Imports -----\n\nimport { AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport type { AXPWidgetProperty } from '@acorex-platform/framework-shared/widget-core';\nimport {\n AXP_APPEARANCE_PROPERTY_GROUP,\n AXP_DATA_PROPERTY_GROUP,\n} from '@acorex-platform/framework-client/layout/widgets';\n\nimport {\n buildChartColorRuleFilterDefinitions,\n CHART_COLOR_RULE_CONDITION_WIDGET,\n} from '../chart-color-rule-fields.util';\nimport { chartTypeUsesAxisLabels, chartTypeUsesColorRules } from '../chart-tab.util';\n\n//#endregion\n\n//#region ----- Constants -----\n\nconst QUERY_DEFINITION_ENTITY = 'PlatformManagement.QueryDefinition';\n\nconst TAB_I18N = {\n title: '@dashboard:widgets.chart-configurator.tab-label',\n titlePlaceholder: '@dashboard:widgets.chart-configurator.tab-label-placeholder',\n query: '@dashboard:widgets.chart-configurator.query',\n queryPlaceholder: '@general:widgets.query-options.query-placeholder',\n queryRequired: '@dashboard:widgets.chart-configurator.query-required',\n colorRules: '@dashboard:widgets.chart-configurator.color-rules',\n xAxisLabel: '@dashboard:widgets.bar-chart.x-axis-label',\n yAxisLabel: '@dashboard:widgets.bar-chart.y-axis-label',\n} as const;\n\n//#endregion\n\n//#region ----- Property builders -----\n\nfunction buildTabTitleProperty(): AXPWidgetProperty {\n return {\n name: 'title',\n title: TAB_I18N.title,\n group: AXP_APPEARANCE_PROPERTY_GROUP,\n order: 0,\n schema: {\n dataType: 'string',\n interface: {\n name: 'title',\n path: 'options.title',\n type: AXPWidgetsCatalog.text,\n options: {\n placeholder: TAB_I18N.titlePlaceholder,\n hasClearButton: true,\n multiLanguage: true,\n },\n },\n },\n visible: true,\n };\n}\n\nfunction buildQueryLookupProperty(resultType: string): AXPWidgetProperty {\n return {\n name: 'query',\n title: TAB_I18N.query,\n group: AXP_DATA_PROPERTY_GROUP,\n order: 1,\n schema: {\n dataType: 'string',\n interface: {\n name: 'query',\n path: 'options.query',\n type: AXPWidgetsCatalog.lookup,\n options: {\n entity: QUERY_DEFINITION_ENTITY,\n valueField: 'name',\n textField: 'catalogTitle',\n look: 'select',\n allowClear: true,\n allowSearch: true,\n placeholder: TAB_I18N.queryPlaceholder,\n filter: {\n logic: 'and',\n filters: [\n {\n field: 'resultType',\n operator: { type: 'equal' },\n value: resultType,\n },\n ],\n },\n },\n },\n },\n validations: [{ rule: 'required', message: TAB_I18N.queryRequired }],\n visible: true,\n };\n}\n\nfunction buildColorRulesProperty(resultType: string): AXPWidgetProperty {\n return {\n name: 'colorRules',\n title: TAB_I18N.colorRules,\n group: AXP_APPEARANCE_PROPERTY_GROUP,\n order: 2,\n showLabel: true,\n schema: {\n dataType: 'array',\n defaultValue: [],\n interface: {\n name: 'colorRules',\n path: 'options.colorRules',\n type: AXPWidgetsCatalog.repeaterLayout,\n options: {\n hasControls: true,\n allowReorder: true,\n },\n children: [\n {\n type: AXPWidgetsCatalog.flexLayout,\n name: 'colorRule',\n options: {\n flexDirection: 'column',\n gap: '0.5rem',\n alignItems: 'stretch',\n },\n children: [\n {\n type: CHART_COLOR_RULE_CONDITION_WIDGET,\n name: 'when',\n path: 'when',\n options: {\n filterDefinitions: buildChartColorRuleFilterDefinitions(resultType),\n },\n },\n {\n type: AXPWidgetsList.Editors.ColorChooser,\n name: 'color',\n path: 'color',\n options: {\n palette: 'theme',\n hasClearButton: true,\n },\n },\n ],\n },\n ],\n },\n },\n visible: true,\n };\n}\n\nfunction buildAxisLabelProperties(): AXPWidgetProperty[] {\n return [\n {\n name: 'xAxisLabel',\n title: TAB_I18N.xAxisLabel,\n group: AXP_APPEARANCE_PROPERTY_GROUP,\n order: 3,\n schema: {\n dataType: 'string',\n interface: {\n name: 'xAxisLabel',\n path: 'options.xAxisLabel',\n type: AXPWidgetsCatalog.text,\n options: { hasClearButton: true, multiLanguage: true },\n },\n },\n visible: true,\n },\n {\n name: 'yAxisLabel',\n title: TAB_I18N.yAxisLabel,\n group: AXP_APPEARANCE_PROPERTY_GROUP,\n order: 4,\n schema: {\n dataType: 'string',\n interface: {\n name: 'yAxisLabel',\n path: 'options.yAxisLabel',\n type: AXPWidgetsCatalog.text,\n options: { hasClearButton: true, multiLanguage: true },\n },\n },\n visible: true,\n },\n ];\n}\n\n/**\n * Tab-scoped properties for one chart type. Omits `queryTabs` — the chart card owns the tab list.\n */\nexport function buildChartTabPropertyDefinitions(resultType: string): AXPWidgetProperty[] {\n const properties: AXPWidgetProperty[] = [buildTabTitleProperty(), buildQueryLookupProperty(resultType)];\n\n if (chartTypeUsesColorRules(resultType)) {\n properties.push(buildColorRulesProperty(resultType));\n }\n\n if (chartTypeUsesAxisLabels(resultType)) {\n properties.push(...buildAxisLabelProperties());\n }\n\n return properties;\n}\n\n//#endregion\n","//#region ----- Imports -----\n\nimport type { ItemConfiguratorListItem } from '@acorex-platform/framework-client/layout/components';\nimport { coerceUnknownToMultiLanguageString, hasMultiLanguageContent, type AXPMultiLanguageString } from '@acorex-platform/framework-shared/core';\nimport {\n AXP_CHART_QUERY_RESULT_TYPE,\n RootConfig,\n} from '@acorex-platform/module-dashboard-management-client/contracts';\n\nimport { buildChartTabPropertyDefinitions } from './chart-tab-properties.util';\n\n//#endregion\n\n//#region ----- Types -----\n\ninterface ChartConfiguratorCatalogEntry {\n id: string;\n title: string;\n icon: string;\n description: string;\n resultType: string;\n}\n\n//#endregion\n\n//#region ----- Constants -----\n\nconst CATALOG_ENTRIES: ChartConfiguratorCatalogEntry[] = [\n {\n id: RootConfig.widgets.barChart,\n title: '@dashboard:widgets.bar-chart.widget-title',\n icon: 'fa-light fa-chart-bar',\n description: '@dashboard:widgets.bar-chart.widget-description',\n resultType: AXP_CHART_QUERY_RESULT_TYPE.barSeries,\n },\n {\n id: RootConfig.widgets.donutChart,\n title: '@dashboard:widgets.donut-chart.widget-title',\n icon: 'fa-light fa-donut',\n description: '@dashboard:widgets.donut-chart.widget-description',\n resultType: AXP_CHART_QUERY_RESULT_TYPE.donutSeries,\n },\n {\n id: RootConfig.widgets.lineChart,\n title: '@dashboard:widgets.line-chart.widget-title',\n icon: 'fa-light fa-chart-line',\n description: '@dashboard:widgets.line-chart.widget-description',\n resultType: AXP_CHART_QUERY_RESULT_TYPE.lineSeries,\n },\n {\n id: RootConfig.widgets.gaugeChart,\n title: '@dashboard:widgets.gauge-chart.widget-title',\n icon: 'fa-light fa-gauge',\n description: '@dashboard:widgets.gauge-chart.widget-description',\n resultType: AXP_CHART_QUERY_RESULT_TYPE.gaugeValue,\n },\n {\n id: RootConfig.widgets.funnelChart,\n title: '@dashboard:widgets.funnel-chart.widget-title',\n icon: 'fa-light fa-filter',\n description: '@dashboard:widgets.funnel-chart.widget-description',\n resultType: AXP_CHART_QUERY_RESULT_TYPE.funnelSeries,\n },\n {\n id: RootConfig.widgets.heatmapChart,\n title: '@dashboard:widgets.heatmap-chart.widget-title',\n icon: 'fa-light fa-grid-2',\n description: '@dashboard:widgets.heatmap-chart.widget-description',\n resultType: AXP_CHART_QUERY_RESULT_TYPE.heatmapSeries,\n },\n {\n id: RootConfig.widgets.kpiStatCard,\n title: '@dashboard:widgets.kpi-stat-card.widget-title',\n icon: 'fa-light fa-gauge-high',\n description: '@dashboard:widgets.kpi-stat-card.widget-description',\n resultType: AXP_CHART_QUERY_RESULT_TYPE.kpiStatCard,\n },\n {\n id: RootConfig.widgets.kpiProgress,\n title: '@dashboard:widgets.kpi-progress.widget-title',\n icon: 'fa-light fa-chart-bullet',\n description: '@dashboard:widgets.kpi-progress.widget-description',\n resultType: AXP_CHART_QUERY_RESULT_TYPE.kpiProgress,\n },\n {\n id: RootConfig.widgets.kpiSegmented,\n title: '@dashboard:widgets.kpi-segmented.widget-title',\n icon: 'fa-light fa-chart-simple',\n description: '@dashboard:widgets.kpi-segmented.widget-description',\n resultType: AXP_CHART_QUERY_RESULT_TYPE.kpiSegmented,\n },\n {\n id: RootConfig.widgets.kpiDetails,\n title: '@dashboard:widgets.kpi-details.widget-title',\n icon: 'fa-light fa-square-list',\n description: '@dashboard:widgets.kpi-details.widget-description',\n resultType: AXP_CHART_QUERY_RESULT_TYPE.kpiDetails,\n },\n];\n\n//#endregion\n\n//#region ----- Catalog -----\n\nfunction readTabLabel(options: Record<string, unknown>): AXPMultiLanguageString {\n return coerceUnknownToMultiLanguageString(options['title'] ?? options['label']);\n}\n\n/**\n * Chart / KPI types offered in the chart configurator.\n * When a tab label is set, the selected row shows that label and the type name as the subtitle.\n */\nexport function buildChartConfiguratorCatalog(\n options?: Record<string, unknown>,\n selectedType?: string,\n): ItemConfiguratorListItem[] {\n const tabLabel = options ? readTabLabel(options) : '';\n const typeId = selectedType?.trim() ?? '';\n\n return CATALOG_ENTRIES.map((entry) => {\n const propertyDefinitions = buildChartTabPropertyDefinitions(entry.resultType);\n const item: ItemConfiguratorListItem = {\n id: entry.id,\n title: entry.title,\n icon: entry.icon,\n description: entry.description,\n propertyDefinitions,\n };\n\n if (!hasMultiLanguageContent(tabLabel) || entry.id !== typeId) {\n return item;\n }\n\n return {\n ...item,\n title: tabLabel,\n description: entry.title as AXPMultiLanguageString,\n };\n });\n}\n\n//#endregion\n","//#region ----- Imports -----\n\nimport { AXPItemConfiguratorComponent, type ItemConfiguratorListItem } from '@acorex-platform/framework-client/layout/components';\nimport type { AXPOptionsData, AXPWidgetNode } from '@acorex-platform/framework-shared/core';\nimport { ChangeDetectionStrategy, Component, computed, effect, input, model, untracked } from '@angular/core';\nimport { isEqual } from 'lodash-es';\n\nimport {\n AXP_CHART_CONFIGURATOR_DEFAULT_TYPE,\n optionsAfterChartTypeSwitch,\n readStashedChartAppearance,\n} from '../chart-tab.util';\nimport { buildChartConfiguratorCatalog } from './chart-configurator.catalog';\n\n//#endregion\n\n//#region ----- Component -----\n\n/**\n * Pick a chart type and configure tab-scoped options via {@link AXPItemConfiguratorComponent}.\n * Bound value is an {@link AXPWidgetNode} (`type` + `options`).\n */\n@Component({\n selector: 'axm-chart-configurator',\n template: `\n <axp-item-configurator\n [(selectedItemId)]=\"selectedTypeModel\"\n [(values)]=\"optionsModel\"\n [label]=\"label()\"\n [readonly]=\"readonly()\"\n [items]=\"catalogItems()\"\n />\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'flex flex-col',\n '[attr.readonly]': 'readonly() ? \"\" : null',\n },\n styles: [\n `\n :host([readonly]) {\n pointer-events: none;\n opacity: 0.7;\n }\n `,\n ],\n imports: [AXPItemConfiguratorComponent],\n})\nexport class AXMChartConfiguratorComponent {\n //#region ----- Inputs -----\n\n readonly widget = model<AXPWidgetNode>({ type: '', options: {} });\n\n readonly label = input<string>('@dashboard:widgets.chart-configurator.label');\n\n readonly readonly = input<boolean>(false);\n\n //#endregion\n\n //#region ----- State -----\n\n protected readonly selectedTypeModel = model<string>('');\n\n protected readonly optionsModel = model<Record<string, unknown>>({});\n\n protected readonly catalogItems = computed<ItemConfiguratorListItem[]>(() =>\n buildChartConfiguratorCatalog(this.optionsModel(), this.selectedTypeModel()),\n );\n\n private lastSelectedType = '';\n\n private stashedAppearance: Record<string, unknown> = {};\n\n //#endregion\n\n //#region ----- Lifecycle -----\n\n constructor() {\n effect(() => {\n const opts = this.optionsModel();\n untracked(() => {\n this.stashedAppearance = {\n ...this.stashedAppearance,\n ...readStashedChartAppearance(opts),\n };\n });\n });\n\n effect(() => {\n const node = this.widget();\n const type = node?.type?.trim() ?? '';\n const opts = (node?.options ?? {}) as Record<string, unknown>;\n const nextType = type || AXP_CHART_CONFIGURATOR_DEFAULT_TYPE;\n const curType = untracked(() => this.selectedTypeModel());\n const curOpts = untracked(() => this.optionsModel());\n\n if (nextType !== curType || !isEqual(opts, curOpts)) {\n untracked(() => {\n this.selectedTypeModel.set(nextType);\n this.optionsModel.set({ ...opts });\n this.lastSelectedType = nextType;\n });\n }\n });\n\n effect(() => {\n const type = this.selectedTypeModel();\n untracked(() => {\n const previousType = this.lastSelectedType;\n if (!type || !previousType || type === previousType) {\n if (type) {\n this.lastSelectedType = type;\n }\n return;\n }\n const next = optionsAfterChartTypeSwitch(\n this.optionsModel(),\n previousType,\n type,\n this.stashedAppearance,\n );\n this.lastSelectedType = type;\n if (!isEqual(next, this.optionsModel())) {\n this.optionsModel.set(next);\n }\n });\n });\n\n effect(() => {\n const type = this.selectedTypeModel();\n const opts = this.optionsModel();\n const current = untracked(() => this.widget());\n const empty: AXPWidgetNode = { type: '', options: {} };\n const resolvedType = type || AXP_CHART_CONFIGURATOR_DEFAULT_TYPE;\n\n if (!resolvedType) {\n if (!isEqual(current ?? empty, empty)) {\n untracked(() => this.widget.set(empty));\n }\n return;\n }\n\n const next: AXPWidgetNode = {\n ...(current && typeof current === 'object' ? current : {}),\n type: resolvedType,\n options: { ...opts } as AXPOptionsData,\n };\n\n if (!isEqual(next, current)) {\n untracked(() => this.widget.set(next));\n }\n });\n }\n\n //#endregion\n}\n\n//#endregion\n","//#region ----- Imports -----\n\nimport { AXPValueWidgetComponent } from '@acorex-platform/framework-client/layout/widget-core';\nimport type { AXPWidgetNode } from '@acorex-platform/framework-shared/core';\nimport { ChangeDetectionStrategy, Component, computed, effect, model, signal, untracked } from '@angular/core';\nimport { isEqual } from 'lodash-es';\n\nimport { AXMChartConfiguratorComponent } from './chart-configurator.component';\n\n//#endregion\n\n//#region ----- Component -----\n\n@Component({\n selector: 'axm-chart-configurator-widget-edit',\n template: `\n @if (isInitialized()) {\n <axm-chart-configurator\n [(widget)]=\"widgetModel\"\n [label]=\"label()\"\n [readonly]=\"readonly()\"\n ></axm-chart-configurator>\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [AXMChartConfiguratorComponent],\n})\nexport class AXMChartConfiguratorWidgetEditComponent extends AXPValueWidgetComponent<AXPWidgetNode> {\n //#region ----- Computed Properties -----\n\n protected readonly readonly = computed<boolean>(() => this.options()['readonly'] === true);\n\n protected readonly label = computed<string>(\n () => (this.options()['label'] as string) || '@dashboard:widgets.chart-configurator.label',\n );\n\n //#endregion\n\n //#region ----- State -----\n\n protected readonly isInitialized = signal(false);\n\n protected readonly widgetModel = model<AXPWidgetNode>({ type: '', options: {} });\n\n //#endregion\n\n //#region ----- Effects -----\n\n private readonly syncValueToConfigurator = effect(() => {\n const value = this.getValue();\n\n if (value && value.type) {\n const currentModel = untracked(() => this.widgetModel());\n if (!isEqual(value, currentModel)) {\n untracked(() => {\n this.widgetModel.set(value);\n this.isInitialized.set(true);\n });\n }\n return;\n }\n\n untracked(() => {\n if (!this.isInitialized()) {\n this.isInitialized.set(true);\n }\n });\n });\n\n private readonly syncConfiguratorToValue = effect(() => {\n const modelValue = this.widgetModel();\n\n if (!untracked(() => this.isInitialized())) {\n return;\n }\n\n if (!modelValue?.type) {\n return;\n }\n\n const currentValue = untracked(() => this.getValue());\n if (!isEqual(modelValue, currentValue)) {\n untracked(() => {\n this.setValue(modelValue);\n });\n }\n });\n\n //#endregion\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;;;;;AAAA;AASA;AAEA;AAEA,MAAM,UAAU,GAAG;AACjB,IAAA,EAAE,EAAE,2DAA2D;AAC/D,IAAA,KAAK,EAAE,8DAA8D;AACrE,IAAA,IAAI,EAAE,6DAA6D;AACnE,IAAA,KAAK,EAAE,8DAA8D;CAC7D;AAEV;AAEA;AAEA,SAAS,iBAAiB,CAAC,KAAa,EAAE,KAAa,EAAA;IACrD,OAAO;QACL,KAAK;QACL,KAAK;AACL,QAAA,MAAM,EAAE,EAAE,IAAI,EAAE,iBAAiB,CAAC,YAAY,EAAE;QAChD,UAAU,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE;KAC7C;AACH;AAEA,SAAS,iBAAiB,CAAC,KAAa,EAAE,KAAa,EAAA;IACrD,OAAO;QACL,KAAK;QACL,KAAK;AACL,QAAA,MAAM,EAAE,EAAE,IAAI,EAAE,iBAAiB,CAAC,YAAY,EAAE;QAChD,UAAU,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE;KAC7C;AACH;AAEA;;AAEG;AACG,SAAU,oCAAoC,CAAC,UAAkB,EAAA;IACrE,QAAQ,UAAU;QAChB,KAAK,2BAA2B,CAAC,SAAS;QAC1C,KAAK,2BAA2B,CAAC,WAAW;YAC1C,OAAO;AACL,gB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ashboard-management-client-chart-configurator-widget-edit.component-BgR51eZ1.mjs","sources":["../../../../libs/modules/dashboard-management/client/src/lib/features/shared/widgets/chart/chart-color-rule-fields.util.ts","../../../../libs/modules/dashboard-management/client/src/lib/features/shared/widgets/chart/chart-configurator/chart-tab-properties.util.ts","../../../../libs/modules/dashboard-management/client/src/lib/features/shared/widgets/chart/chart-configurator/chart-configurator.catalog.ts","../../../../libs/modules/dashboard-management/client/src/lib/features/shared/widgets/chart/chart-configurator/chart-configurator.component.ts","../../../../libs/modules/dashboard-management/client/src/lib/features/shared/widgets/chart/chart-configurator/chart-configurator-widget-edit.component.ts"],"sourcesContent":["//#region ----- Imports -----\n\nimport {\n AXPWidgetsCatalog,\n AXPWidgetsList,\n type AXPFilterDefinition,\n} from '@acorex-platform/framework-shared/core';\nimport { AXP_CHART_QUERY_RESULT_TYPE } from '@acorex-platform/module-dashboard-management-client/contracts';\n\n//#endregion\n\n//#region ----- Constants -----\n\nconst FIELD_I18N = {\n id: '@dashboard:widgets.chart-configurator.color-rule-field-id',\n label: '@dashboard:widgets.chart-configurator.color-rule-field-label',\n name: '@dashboard:widgets.chart-configurator.color-rule-field-name',\n value: '@dashboard:widgets.chart-configurator.color-rule-field-value',\n} as const;\n\n//#endregion\n\n//#region ----- Filter definitions -----\n\nfunction stringFilterField(field: string, title: string): AXPFilterDefinition {\n return {\n field,\n title,\n widget: { type: AXPWidgetsCatalog.stringFilter },\n filterType: { advance: true, inline: false },\n };\n}\n\nfunction numberFilterField(field: string, title: string): AXPFilterDefinition {\n return {\n field,\n title,\n widget: { type: AXPWidgetsCatalog.numberFilter },\n filterType: { advance: true, inline: false },\n };\n}\n\n/**\n * Condition-builder fields for colour rules, derived from the chart/KPI result DTO.\n */\nexport function buildChartColorRuleFilterDefinitions(resultType: string): AXPFilterDefinition[] {\n switch (resultType) {\n case AXP_CHART_QUERY_RESULT_TYPE.barSeries:\n case AXP_CHART_QUERY_RESULT_TYPE.donutSeries:\n return [\n stringFilterField('id', FIELD_I18N.id),\n stringFilterField('label', FIELD_I18N.label),\n numberFilterField('value', FIELD_I18N.value),\n ];\n case AXP_CHART_QUERY_RESULT_TYPE.funnelSeries:\n return [\n stringFilterField('id', FIELD_I18N.id),\n stringFilterField('name', FIELD_I18N.name),\n numberFilterField('value', FIELD_I18N.value),\n ];\n case AXP_CHART_QUERY_RESULT_TYPE.lineSeries:\n return [stringFilterField('id', FIELD_I18N.id), stringFilterField('label', FIELD_I18N.label)];\n case AXP_CHART_QUERY_RESULT_TYPE.kpiSegmented:\n return [stringFilterField('label', FIELD_I18N.label), numberFilterField('value', FIELD_I18N.value)];\n case AXP_CHART_QUERY_RESULT_TYPE.kpiDetails:\n return [stringFilterField('label', FIELD_I18N.label), stringFilterField('value', FIELD_I18N.value)];\n default:\n return [];\n }\n}\n\nexport const CHART_COLOR_RULE_CONDITION_WIDGET = AXPWidgetsList.ExpressionBuilders.ConditionBuilder;\n\n//#endregion\n","//#region ----- Imports -----\n\nimport { AXPWidgetsCatalog, AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport type { AXPWidgetProperty } from '@acorex-platform/framework-shared/widget-core';\nimport {\n AXP_APPEARANCE_PROPERTY_GROUP,\n AXP_DATA_PROPERTY_GROUP,\n} from '@acorex-platform/framework-client/layout/widgets';\n\nimport {\n buildChartColorRuleFilterDefinitions,\n CHART_COLOR_RULE_CONDITION_WIDGET,\n} from '../chart-color-rule-fields.util';\nimport { chartTypeUsesAxisLabels, chartTypeUsesColorRules } from '../chart-tab.util';\n\n//#endregion\n\n//#region ----- Constants -----\n\nconst QUERY_DEFINITION_ENTITY = 'PlatformManagement.QueryDefinition';\n\nconst TAB_I18N = {\n title: '@dashboard:widgets.chart-configurator.tab-label',\n titlePlaceholder: '@dashboard:widgets.chart-configurator.tab-label-placeholder',\n query: '@dashboard:widgets.chart-configurator.query',\n queryPlaceholder: '@general:widgets.query-options.query-placeholder',\n queryRequired: '@dashboard:widgets.chart-configurator.query-required',\n colorRules: '@dashboard:widgets.chart-configurator.color-rules',\n xAxisLabel: '@dashboard:widgets.bar-chart.x-axis-label',\n yAxisLabel: '@dashboard:widgets.bar-chart.y-axis-label',\n} as const;\n\n//#endregion\n\n//#region ----- Property builders -----\n\nfunction buildTabTitleProperty(): AXPWidgetProperty {\n return {\n name: 'title',\n title: TAB_I18N.title,\n group: AXP_APPEARANCE_PROPERTY_GROUP,\n order: 0,\n schema: {\n dataType: 'string',\n interface: {\n name: 'title',\n path: 'options.title',\n type: AXPWidgetsCatalog.text,\n options: {\n placeholder: TAB_I18N.titlePlaceholder,\n hasClearButton: true,\n multiLanguage: true,\n },\n },\n },\n visible: true,\n };\n}\n\nfunction buildQueryLookupProperty(resultType: string): AXPWidgetProperty {\n return {\n name: 'query',\n title: TAB_I18N.query,\n group: AXP_DATA_PROPERTY_GROUP,\n order: 1,\n schema: {\n dataType: 'string',\n interface: {\n name: 'query',\n path: 'options.query',\n type: AXPWidgetsCatalog.lookup,\n options: {\n entity: QUERY_DEFINITION_ENTITY,\n valueField: 'name',\n textField: 'catalogTitle',\n look: 'select',\n allowClear: true,\n allowSearch: true,\n placeholder: TAB_I18N.queryPlaceholder,\n filter: {\n logic: 'and',\n filters: [\n {\n field: 'resultType',\n operator: { type: 'equal' },\n value: resultType,\n },\n ],\n },\n },\n },\n },\n validations: [{ rule: 'required', message: TAB_I18N.queryRequired }],\n visible: true,\n };\n}\n\nfunction buildColorRulesProperty(resultType: string): AXPWidgetProperty {\n return {\n name: 'colorRules',\n title: TAB_I18N.colorRules,\n group: AXP_APPEARANCE_PROPERTY_GROUP,\n order: 2,\n showLabel: true,\n schema: {\n dataType: 'array',\n defaultValue: [],\n interface: {\n name: 'colorRules',\n path: 'options.colorRules',\n type: AXPWidgetsCatalog.repeaterLayout,\n options: {\n hasControls: true,\n allowReorder: true,\n },\n children: [\n {\n type: AXPWidgetsCatalog.flexLayout,\n name: 'colorRule',\n options: {\n flexDirection: 'column',\n gap: '0.5rem',\n alignItems: 'stretch',\n },\n children: [\n {\n type: CHART_COLOR_RULE_CONDITION_WIDGET,\n name: 'when',\n path: 'when',\n options: {\n filterDefinitions: buildChartColorRuleFilterDefinitions(resultType),\n },\n },\n {\n type: AXPWidgetsList.Editors.ColorChooser,\n name: 'color',\n path: 'color',\n options: {\n palette: 'theme',\n hasClearButton: true,\n },\n },\n ],\n },\n ],\n },\n },\n visible: true,\n };\n}\n\nfunction buildAxisLabelProperties(): AXPWidgetProperty[] {\n return [\n {\n name: 'xAxisLabel',\n title: TAB_I18N.xAxisLabel,\n group: AXP_APPEARANCE_PROPERTY_GROUP,\n order: 3,\n schema: {\n dataType: 'string',\n interface: {\n name: 'xAxisLabel',\n path: 'options.xAxisLabel',\n type: AXPWidgetsCatalog.text,\n options: { hasClearButton: true, multiLanguage: true },\n },\n },\n visible: true,\n },\n {\n name: 'yAxisLabel',\n title: TAB_I18N.yAxisLabel,\n group: AXP_APPEARANCE_PROPERTY_GROUP,\n order: 4,\n schema: {\n dataType: 'string',\n interface: {\n name: 'yAxisLabel',\n path: 'options.yAxisLabel',\n type: AXPWidgetsCatalog.text,\n options: { hasClearButton: true, multiLanguage: true },\n },\n },\n visible: true,\n },\n ];\n}\n\n/**\n * Tab-scoped properties for one chart type. Omits `queryTabs` — the chart card owns the tab list.\n */\nexport function buildChartTabPropertyDefinitions(resultType: string): AXPWidgetProperty[] {\n const properties: AXPWidgetProperty[] = [buildTabTitleProperty(), buildQueryLookupProperty(resultType)];\n\n if (chartTypeUsesColorRules(resultType)) {\n properties.push(buildColorRulesProperty(resultType));\n }\n\n if (chartTypeUsesAxisLabels(resultType)) {\n properties.push(...buildAxisLabelProperties());\n }\n\n return properties;\n}\n\n//#endregion\n","//#region ----- Imports -----\n\nimport type { ItemConfiguratorListItem } from '@acorex-platform/framework-client/layout/components';\nimport { coerceUnknownToMultiLanguageString, hasMultiLanguageContent, type AXPMultiLanguageString } from '@acorex-platform/framework-shared/core';\nimport {\n AXP_CHART_QUERY_RESULT_TYPE,\n RootConfig,\n} from '@acorex-platform/module-dashboard-management-client/contracts';\n\nimport { buildChartTabPropertyDefinitions } from './chart-tab-properties.util';\n\n//#endregion\n\n//#region ----- Types -----\n\ninterface ChartConfiguratorCatalogEntry {\n id: string;\n title: string;\n icon: string;\n description: string;\n resultType: string;\n}\n\n//#endregion\n\n//#region ----- Constants -----\n\nconst CATALOG_ENTRIES: ChartConfiguratorCatalogEntry[] = [\n {\n id: RootConfig.widgets.barChart,\n title: '@dashboard:widgets.bar-chart.widget-title',\n icon: 'fa-light fa-chart-bar',\n description: '@dashboard:widgets.bar-chart.widget-description',\n resultType: AXP_CHART_QUERY_RESULT_TYPE.barSeries,\n },\n {\n id: RootConfig.widgets.donutChart,\n title: '@dashboard:widgets.donut-chart.widget-title',\n icon: 'fa-light fa-donut',\n description: '@dashboard:widgets.donut-chart.widget-description',\n resultType: AXP_CHART_QUERY_RESULT_TYPE.donutSeries,\n },\n {\n id: RootConfig.widgets.lineChart,\n title: '@dashboard:widgets.line-chart.widget-title',\n icon: 'fa-light fa-chart-line',\n description: '@dashboard:widgets.line-chart.widget-description',\n resultType: AXP_CHART_QUERY_RESULT_TYPE.lineSeries,\n },\n {\n id: RootConfig.widgets.gaugeChart,\n title: '@dashboard:widgets.gauge-chart.widget-title',\n icon: 'fa-light fa-gauge',\n description: '@dashboard:widgets.gauge-chart.widget-description',\n resultType: AXP_CHART_QUERY_RESULT_TYPE.gaugeValue,\n },\n {\n id: RootConfig.widgets.funnelChart,\n title: '@dashboard:widgets.funnel-chart.widget-title',\n icon: 'fa-light fa-filter',\n description: '@dashboard:widgets.funnel-chart.widget-description',\n resultType: AXP_CHART_QUERY_RESULT_TYPE.funnelSeries,\n },\n {\n id: RootConfig.widgets.heatmapChart,\n title: '@dashboard:widgets.heatmap-chart.widget-title',\n icon: 'fa-light fa-grid-2',\n description: '@dashboard:widgets.heatmap-chart.widget-description',\n resultType: AXP_CHART_QUERY_RESULT_TYPE.heatmapSeries,\n },\n {\n id: RootConfig.widgets.kpiStatCard,\n title: '@dashboard:widgets.kpi-stat-card.widget-title',\n icon: 'fa-light fa-gauge-high',\n description: '@dashboard:widgets.kpi-stat-card.widget-description',\n resultType: AXP_CHART_QUERY_RESULT_TYPE.kpiStatCard,\n },\n {\n id: RootConfig.widgets.kpiProgress,\n title: '@dashboard:widgets.kpi-progress.widget-title',\n icon: 'fa-light fa-chart-bullet',\n description: '@dashboard:widgets.kpi-progress.widget-description',\n resultType: AXP_CHART_QUERY_RESULT_TYPE.kpiProgress,\n },\n {\n id: RootConfig.widgets.kpiSegmented,\n title: '@dashboard:widgets.kpi-segmented.widget-title',\n icon: 'fa-light fa-chart-simple',\n description: '@dashboard:widgets.kpi-segmented.widget-description',\n resultType: AXP_CHART_QUERY_RESULT_TYPE.kpiSegmented,\n },\n {\n id: RootConfig.widgets.kpiDetails,\n title: '@dashboard:widgets.kpi-details.widget-title',\n icon: 'fa-light fa-square-list',\n description: '@dashboard:widgets.kpi-details.widget-description',\n resultType: AXP_CHART_QUERY_RESULT_TYPE.kpiDetails,\n },\n];\n\n//#endregion\n\n//#region ----- Catalog -----\n\nfunction readTabLabel(options: Record<string, unknown>): AXPMultiLanguageString {\n return coerceUnknownToMultiLanguageString(options['title'] ?? options['label']);\n}\n\n/**\n * Chart / KPI types offered in the chart configurator.\n * When a tab label is set, the selected row shows that label and the type name as the subtitle.\n */\nexport function buildChartConfiguratorCatalog(\n options?: Record<string, unknown>,\n selectedType?: string,\n): ItemConfiguratorListItem[] {\n const tabLabel = options ? readTabLabel(options) : '';\n const typeId = selectedType?.trim() ?? '';\n\n return CATALOG_ENTRIES.map((entry) => {\n const propertyDefinitions = buildChartTabPropertyDefinitions(entry.resultType);\n const item: ItemConfiguratorListItem = {\n id: entry.id,\n title: entry.title,\n icon: entry.icon,\n description: entry.description,\n propertyDefinitions,\n };\n\n if (!hasMultiLanguageContent(tabLabel) || entry.id !== typeId) {\n return item;\n }\n\n return {\n ...item,\n title: tabLabel,\n description: entry.title as AXPMultiLanguageString,\n };\n });\n}\n\n//#endregion\n","//#region ----- Imports -----\n\nimport { AXPItemConfiguratorComponent, type ItemConfiguratorListItem } from '@acorex-platform/framework-client/layout/components';\nimport type { AXPOptionsData, AXPWidgetNode } from '@acorex-platform/framework-shared/core';\nimport { ChangeDetectionStrategy, Component, computed, effect, input, model, untracked } from '@angular/core';\nimport { isEqual } from 'lodash-es';\n\nimport {\n AXP_CHART_CONFIGURATOR_DEFAULT_TYPE,\n optionsAfterChartTypeSwitch,\n readStashedChartAppearance,\n} from '../chart-tab.util';\nimport { buildChartConfiguratorCatalog } from './chart-configurator.catalog';\n\n//#endregion\n\n//#region ----- Component -----\n\n/**\n * Pick a chart type and configure tab-scoped options via {@link AXPItemConfiguratorComponent}.\n * Bound value is an {@link AXPWidgetNode} (`type` + `options`).\n */\n@Component({\n selector: 'axm-chart-configurator',\n template: `\n <axp-item-configurator\n [(selectedItemId)]=\"selectedTypeModel\"\n [(values)]=\"optionsModel\"\n [label]=\"label()\"\n [readonly]=\"readonly()\"\n [items]=\"catalogItems()\"\n />\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'flex flex-col',\n '[attr.readonly]': 'readonly() ? \"\" : null',\n },\n styles: [\n `\n :host([readonly]) {\n pointer-events: none;\n opacity: 0.7;\n }\n `,\n ],\n imports: [AXPItemConfiguratorComponent],\n})\nexport class AXMChartConfiguratorComponent {\n //#region ----- Inputs -----\n\n readonly widget = model<AXPWidgetNode>({ type: '', options: {} });\n\n readonly label = input<string>('@dashboard:widgets.chart-configurator.label');\n\n readonly readonly = input<boolean>(false);\n\n //#endregion\n\n //#region ----- State -----\n\n protected readonly selectedTypeModel = model<string>('');\n\n protected readonly optionsModel = model<Record<string, unknown>>({});\n\n protected readonly catalogItems = computed<ItemConfiguratorListItem[]>(() =>\n buildChartConfiguratorCatalog(this.optionsModel(), this.selectedTypeModel()),\n );\n\n private lastSelectedType = '';\n\n private stashedAppearance: Record<string, unknown> = {};\n\n //#endregion\n\n //#region ----- Lifecycle -----\n\n constructor() {\n effect(() => {\n const opts = this.optionsModel();\n untracked(() => {\n this.stashedAppearance = {\n ...this.stashedAppearance,\n ...readStashedChartAppearance(opts),\n };\n });\n });\n\n effect(() => {\n const node = this.widget();\n const type = node?.type?.trim() ?? '';\n const opts = (node?.options ?? {}) as Record<string, unknown>;\n const nextType = type || AXP_CHART_CONFIGURATOR_DEFAULT_TYPE;\n const curType = untracked(() => this.selectedTypeModel());\n const curOpts = untracked(() => this.optionsModel());\n\n if (nextType !== curType || !isEqual(opts, curOpts)) {\n untracked(() => {\n this.selectedTypeModel.set(nextType);\n this.optionsModel.set({ ...opts });\n this.lastSelectedType = nextType;\n });\n }\n });\n\n effect(() => {\n const type = this.selectedTypeModel();\n untracked(() => {\n const previousType = this.lastSelectedType;\n if (!type || !previousType || type === previousType) {\n if (type) {\n this.lastSelectedType = type;\n }\n return;\n }\n const next = optionsAfterChartTypeSwitch(\n this.optionsModel(),\n previousType,\n type,\n this.stashedAppearance,\n );\n this.lastSelectedType = type;\n if (!isEqual(next, this.optionsModel())) {\n this.optionsModel.set(next);\n }\n });\n });\n\n effect(() => {\n const type = this.selectedTypeModel();\n const opts = this.optionsModel();\n const current = untracked(() => this.widget());\n const empty: AXPWidgetNode = { type: '', options: {} };\n const resolvedType = type || AXP_CHART_CONFIGURATOR_DEFAULT_TYPE;\n\n if (!resolvedType) {\n if (!isEqual(current ?? empty, empty)) {\n untracked(() => this.widget.set(empty));\n }\n return;\n }\n\n const next: AXPWidgetNode = {\n ...(current && typeof current === 'object' ? current : {}),\n type: resolvedType,\n options: { ...opts } as AXPOptionsData,\n };\n\n if (!isEqual(next, current)) {\n untracked(() => this.widget.set(next));\n }\n });\n }\n\n //#endregion\n}\n\n//#endregion\n","//#region ----- Imports -----\n\nimport { AXPValueWidgetComponent } from '@acorex-platform/framework-client/layout/widget-core';\nimport type { AXPWidgetNode } from '@acorex-platform/framework-shared/core';\nimport { ChangeDetectionStrategy, Component, computed, effect, model, signal, untracked } from '@angular/core';\nimport { isEqual } from 'lodash-es';\n\nimport { AXMChartConfiguratorComponent } from './chart-configurator.component';\n\n//#endregion\n\n//#region ----- Component -----\n\n@Component({\n selector: 'axm-chart-configurator-widget-edit',\n template: `\n @if (isInitialized()) {\n <axm-chart-configurator\n [(widget)]=\"widgetModel\"\n [label]=\"label()\"\n [readonly]=\"readonly()\"\n ></axm-chart-configurator>\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [AXMChartConfiguratorComponent],\n})\nexport class AXMChartConfiguratorWidgetEditComponent extends AXPValueWidgetComponent<AXPWidgetNode> {\n //#region ----- Computed Properties -----\n\n protected readonly readonly = computed<boolean>(() => this.options()['readonly'] === true);\n\n protected readonly label = computed<string>(\n () => (this.options()['label'] as string) || '@dashboard:widgets.chart-configurator.label',\n );\n\n //#endregion\n\n //#region ----- State -----\n\n protected readonly isInitialized = signal(false);\n\n protected readonly widgetModel = model<AXPWidgetNode>({ type: '', options: {} });\n\n //#endregion\n\n //#region ----- Effects -----\n\n private readonly syncValueToConfigurator = effect(() => {\n const value = this.getValue();\n\n if (value && value.type) {\n const currentModel = untracked(() => this.widgetModel());\n if (!isEqual(value, currentModel)) {\n untracked(() => {\n this.widgetModel.set(value);\n this.isInitialized.set(true);\n });\n }\n return;\n }\n\n untracked(() => {\n if (!this.isInitialized()) {\n this.isInitialized.set(true);\n }\n });\n });\n\n private readonly syncConfiguratorToValue = effect(() => {\n const modelValue = this.widgetModel();\n\n if (!untracked(() => this.isInitialized())) {\n return;\n }\n\n if (!modelValue?.type) {\n return;\n }\n\n const currentValue = untracked(() => this.getValue());\n if (!isEqual(modelValue, currentValue)) {\n untracked(() => {\n this.setValue(modelValue);\n });\n }\n });\n\n //#endregion\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;;;;;AAAA;AASA;AAEA;AAEA,MAAM,UAAU,GAAG;AACjB,IAAA,EAAE,EAAE,2DAA2D;AAC/D,IAAA,KAAK,EAAE,8DAA8D;AAC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,EAAA,EAAA,EAAA,QAAA,EAZxC;;;;;;;;AAQT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAES,6BAA6B,EAAA,QAAA,EAAA,wBAAA,EAAA,MAAA,EAAA,CAAA,QAAA,EAAA,OAAA,EAAA,UAAA,EAAA,mBAAA,EAAA,cAAA,CAAA,EAAA,OAAA,EAAA,CAAA,cAAA,EAAA,yBAAA,EAAA,oBAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAE5B,uCAAuC,EAAA,UAAA,EAAA,CAAA;kBAdnD,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,oCAAoC;AAC9C,oBAAA,QAAQ,EAAE;;;;;;;;AAQT,EAAA,CAAA;oBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,OAAO,EAAE,CAAC,6BAA6B,CAAC;AACzC,iBAAA;;;"}
@@ -1,6 +1,6 @@
1
1
  import { runtimeQueryCollectionData } from '@acorex-platform/framework-shared/core';
2
2
  import { isObjectLike, isNumber, isString } from 'lodash';
3
- import { k as fetchChartQueryResult, l as applyChartColorRulesFromOptions } from './acorex-platform-module-dashboard-management-client-acorex-platform-module-dashboard-management-client-Ey27MqFo.mjs';
3
+ import { k as fetchChartQueryResult, l as applyChartColorRulesFromOptions } from './acorex-platform-module-dashboard-management-client-acorex-platform-module-dashboard-management-client-61Q_QY8l.mjs';
4
4
 
5
5
  /**
6
6
  * Normalizes AI / Chart Generator agent payloads into shapes dashboard chart widgets expect.
@@ -586,4 +586,4 @@ async function loadGaugeChartValue(opts, deps) {
586
586
  //#endregion
587
587
 
588
588
  export { loadDonutChartItems as a, loadFunnelChartItems as b, loadGaugeChartValue as c, loadHeatmapChartItems as d, loadLineChartSeries as e, loadBarChartItems as l, resolveChartAxisLabels as r };
589
- //# sourceMappingURL=acorex-platform-module-dashboard-management-client-chart-widget-data.util-DgCBHS1p.mjs.map
589
+ //# sourceMappingURL=acorex-platform-module-dashboard-management-client-chart-widget-data.util-BLtv9sOm.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-dashboard-management-client-chart-widget-data.util-DgCBHS1p.mjs","sources":["../../../../libs/modules/dashboard-management/client/src/lib/features/shared/widgets/chart/chart-widget-ai-options.util.ts","../../../../libs/modules/dashboard-management/client/src/lib/features/shared/widgets/chart/chart-widget-data.util.ts"],"sourcesContent":["/**\n * Normalizes AI / Chart Generator agent payloads into shapes dashboard chart widgets expect.\n * Called before every `load*Chart*` resolver in {@link chart-widget-data.util.ts}.\n */\n\nimport { isNumber, isObjectLike, isString } from 'lodash';\n\nfunction asRecord(value: unknown): Record<string, unknown> | undefined {\n return isObjectLike(value) && !Array.isArray(value) ? (value as Record<string, unknown>) : undefined;\n}\n\nfunction toNumber(value: unknown): number | undefined {\n if (isNumber(value) && Number.isFinite(value)) {\n return value;\n }\n if (isString(value) && value.trim()) {\n const parsed = Number(value);\n if (Number.isFinite(parsed)) {\n return parsed;\n }\n }\n return undefined;\n}\n\nfunction promoteLabelsToAxisCategories(opts: Record<string, unknown>): void {\n const xAxis = asRecord(opts['xAxis']);\n if (xAxis && Array.isArray(xAxis['labels']) && !Array.isArray(opts['labels'])) {\n opts['labels'] = xAxis['labels'];\n }\n\n const labels = opts['labels'];\n if (!Array.isArray(labels)) {\n return;\n }\n\n const nextXAxis = xAxis ?? {};\n if (!Array.isArray(nextXAxis['categories'])) {\n opts['xAxis'] = { ...nextXAxis, categories: labels };\n }\n}\n\nfunction materializeLabelValueRows(labels: unknown[], values: unknown[]): Array<{ label: string; value: number }> {\n const rows: Array<{ label: string; value: number }> = [];\n const length = Math.min(labels.length, values.length);\n for (let index = 0; index < length; index++) {\n const value = toNumber(values[index]);\n const label = String(labels[index] ?? '').trim();\n if (!label || value === undefined) {\n continue;\n }\n rows.push({ label, value });\n }\n return rows;\n}\n\nfunction readCategoriesForExpand(opts: Record<string, unknown>): string[] {\n const xAxis = asRecord(opts['xAxis']);\n const fromAxis = xAxis?.['categories'] ?? xAxis?.['labels'];\n if (Array.isArray(fromAxis)) {\n return fromAxis.map((entry) => String(entry ?? ''));\n }\n if (Array.isArray(opts['labels'])) {\n return opts['labels'].map((entry) => String(entry ?? ''));\n }\n return [];\n}\n\nfunction materializeDataSourceFromLabelsAndSeries(opts: Record<string, unknown>): void {\n if (opts['dataSource'] != null || opts['items'] != null) {\n return;\n }\n const labels = readCategoriesForExpand(opts);\n if (labels.length === 0) {\n return;\n }\n\n const values = opts['values'];\n if (Array.isArray(values)) {\n const rows = materializeLabelValueRows(labels, values);\n if (rows.length > 0) {\n opts['dataSource'] = rows;\n }\n return;\n }\n\n const rawSeries = opts['series'];\n if (!Array.isArray(rawSeries) || rawSeries.length === 0) {\n return;\n }\n const first = rawSeries[0];\n if (!isObjectLike(first)) {\n return;\n }\n const seriesData = (first as Record<string, unknown>)['data'];\n if (!Array.isArray(seriesData)) {\n return;\n }\n const rows = materializeLabelValueRows(labels, seriesData);\n if (rows.length > 0) {\n opts['dataSource'] = rows;\n }\n}\n\nfunction unwrapNestedDataObject(opts: Record<string, unknown>): void {\n const data = opts['data'];\n if (data == null || typeof data !== 'object' || Array.isArray(data)) {\n return;\n }\n\n const dataObj = data as Record<string, unknown>;\n\n if (Array.isArray(dataObj['labels']) && opts['labels'] == null) {\n opts['labels'] = dataObj['labels'];\n }\n const xAxisObj = asRecord(dataObj['xAxis']);\n if (xAxisObj && Array.isArray(xAxisObj['labels']) && opts['xAxis'] == null) {\n opts['xAxis'] = xAxisObj;\n }\n if (Array.isArray(dataObj['values']) && opts['values'] == null) {\n opts['values'] = dataObj['values'];\n }\n if (Array.isArray(dataObj['series']) && opts['series'] == null) {\n opts['series'] = dataObj['series'];\n }\n if (Array.isArray(dataObj['items'])) {\n if (opts['items'] == null) {\n opts['items'] = dataObj['items'];\n }\n if (opts['dataSource'] == null) {\n opts['dataSource'] = dataObj['items'];\n }\n }\n\n const scalarValue = toNumber(dataObj['value']);\n if (scalarValue !== undefined && opts['value'] == null && opts['dataSource'] == null) {\n opts['value'] = scalarValue;\n opts['dataSource'] = scalarValue;\n }\n\n delete opts['data'];\n}\n\n/**\n * Expands common AI chart option shapes (`props`, `data`, `labels`+`series`, etc.)\n * into `dataSource` / `xAxis.categories` / scalar gauge values understood by chart loaders.\n */\nexport function expandAiChartWidgetOptions(opts: Record<string, unknown>): void {\n unwrapNestedDataObject(opts);\n\n if (Array.isArray(opts['data']) && opts['dataSource'] == null && opts['items'] == null) {\n opts['dataSource'] = opts['data'];\n delete opts['data'];\n }\n\n if (Array.isArray(opts['items']) && opts['dataSource'] == null) {\n opts['dataSource'] = opts['items'];\n }\n\n promoteLabelsToAxisCategories(opts);\n materializeDataSourceFromLabelsAndSeries(opts);\n\n if (opts['dataSource'] == null) {\n const scalar = toNumber(opts['value']);\n if (scalar !== undefined) {\n opts['dataSource'] = scalar;\n }\n }\n}\n","/**\n * Resolves chart widget payloads from AXPQuery bindings, inline `options.dataSource`,\n * or common AI-emitted shapes (`series` + `xAxis.categories`, etc.).\n */\n\nimport type { AXPQueryExecutor } from '@acorex-platform/framework-client/runtime';\nimport { runtimeQueryCollectionData } from '@acorex-platform/framework-shared/core';\nimport type {\n AXPBarChartQueryItem,\n AXPBarChartQueryResult,\n AXPDonutChartQueryItem,\n AXPDonutChartQueryResult,\n AXPFunnelChartQueryItem,\n AXPFunnelChartQueryResult,\n AXPGaugeChartQueryResult,\n AXPHeatmapChartQueryItem,\n AXPHeatmapChartQueryResult,\n AXPLineChartQueryPoint,\n AXPLineChartQueryResult,\n AXPLineChartQuerySeries,\n} from '@acorex-platform/module-dashboard-management-client/contracts';\nimport { isNumber, isObjectLike, isString } from 'lodash';\n\nimport { applyChartColorRulesFromOptions } from './chart-color-rules.util';\nimport { fetchChartQueryResult } from './chart-query-load.util';\nimport { expandAiChartWidgetOptions } from './chart-widget-ai-options.util';\n\n//#region ----- Shared helpers -----\n\nfunction asRecord(value: unknown): Record<string, unknown> | undefined {\n return isObjectLike(value) && !Array.isArray(value) ? (value as Record<string, unknown>) : undefined;\n}\n\nfunction readAxisTitle(axis: unknown): string | undefined {\n const row = asRecord(axis);\n const title = row?.['title'];\n return isString(title) && title.trim() ? title.trim() : undefined;\n}\n\nfunction readAxisCategoriesFromRecord(axis: Record<string, unknown> | undefined): string[] {\n if (!axis) {\n return [];\n }\n const categories = axis['categories'] ?? axis['labels'];\n if (!Array.isArray(categories)) {\n return [];\n }\n return categories.map((entry) => String(entry ?? ''));\n}\n\nfunction readAxisCategories(opts: Record<string, unknown>): string[] {\n const fromXAxis = readAxisCategoriesFromRecord(asRecord(opts['xAxis']));\n if (fromXAxis.length > 0) {\n return fromXAxis;\n }\n const labels = opts['labels'];\n if (Array.isArray(labels)) {\n return labels.map((entry) => String(entry ?? ''));\n }\n return [];\n}\n\nfunction zipCategoryValues(categories: string[], values: unknown[]): AXPLineChartQueryPoint[] {\n const points: AXPLineChartQueryPoint[] = [];\n const length = Math.min(categories.length, values.length);\n for (let index = 0; index < length; index++) {\n const y = values[index];\n if (!isNumber(y)) {\n continue;\n }\n points.push({ x: categories[index], y });\n }\n return points;\n}\n\nfunction seriesLabel(raw: Record<string, unknown>): string | undefined {\n const label = raw['label'] ?? raw['name'];\n return isString(label) && label.trim() ? label.trim() : undefined;\n}\n\nfunction toNumber(value: unknown): number | undefined {\n if (isNumber(value) && Number.isFinite(value)) {\n return value;\n }\n if (isString(value) && value.trim()) {\n const parsed = Number(value);\n if (Number.isFinite(parsed)) {\n return parsed;\n }\n }\n return undefined;\n}\n\nfunction normalizeLinePoints(rawData: unknown, categories: string[]): AXPLineChartQueryPoint[] {\n if (!Array.isArray(rawData) || rawData.length === 0) {\n return [];\n }\n\n const first = rawData[0];\n if (isNumber(first)) {\n return zipCategoryValues(categories, rawData);\n }\n\n const points: AXPLineChartQueryPoint[] = [];\n for (const entry of rawData) {\n if (!isObjectLike(entry)) {\n continue;\n }\n const row = entry as Record<string, unknown>;\n const y = toNumber(row['y'] ?? row['value'] ?? row['count'] ?? row['productCount']);\n if (y === undefined) {\n continue;\n }\n const x =\n row['x'] ??\n row['label'] ??\n row['name'] ??\n row['brandLabel'] ??\n row['brandTitle'] ??\n row['brand'] ??\n row['category'];\n if (x == null || x === '') {\n continue;\n }\n points.push({ x: x as number | string, y });\n }\n return points;\n}\n\nfunction toLineChartSeries(row: Record<string, unknown>, index: number, categories: string[]): AXPLineChartQuerySeries | undefined {\n const data = normalizeLinePoints(row['data'], categories);\n if (data.length === 0) {\n return undefined;\n }\n return {\n id: isString(row['id']) ? row['id'] : `series-${index + 1}`,\n label: seriesLabel(row),\n lineColor: isString(row['lineColor']) ? row['lineColor'] : undefined,\n fillColor: isString(row['fillColor']) ? row['fillColor'] : undefined,\n data,\n };\n}\n\nconst LINE_CHART_LABEL_KEYS = ['label', 'name', 'brandLabel', 'brandTitle', 'brand', 'category'] as const;\n\nfunction isLineChartLabelValueRow(row: Record<string, unknown>): boolean {\n if (Array.isArray(row['data'])) {\n return false;\n }\n const labelRaw = LINE_CHART_LABEL_KEYS.map((key) => row[key]).find((value) => value != null && value !== '');\n const y = toNumber(row['value'] ?? row['y'] ?? row['count'] ?? row['productCount']);\n return labelRaw != null && y !== undefined;\n}\n\n/** Bar/donut-style `{ label, value }[]` → one line series (common AI chart agent output). */\nfunction normalizeLineSeriesFromLabelValueItems(rawItems: unknown[]): AXPLineChartQuerySeries[] {\n const points: AXPLineChartQueryPoint[] = [];\n for (const entry of rawItems) {\n if (!isObjectLike(entry)) {\n continue;\n }\n const row = entry as Record<string, unknown>;\n if (!isLineChartLabelValueRow(row)) {\n continue;\n }\n const labelRaw = LINE_CHART_LABEL_KEYS.map((key) => row[key]).find((value) => value != null && value !== '');\n const y = toNumber(row['value'] ?? row['y'] ?? row['count'] ?? row['productCount']);\n if (labelRaw == null || y === undefined) {\n continue;\n }\n points.push({ x: String(labelRaw), y });\n }\n if (points.length === 0) {\n return [];\n }\n return [{ id: 'series-1', data: points }];\n}\n\nfunction tryNormalizeLineSeriesFromLabelValueRows(rawItems: unknown[]): AXPLineChartQuerySeries[] {\n if (!Array.isArray(rawItems) || rawItems.length === 0) {\n return [];\n }\n const rows = rawItems.filter(isObjectLike) as Record<string, unknown>[];\n if (rows.length === 0 || rows.length !== rawItems.length || !rows.every(isLineChartLabelValueRow)) {\n return [];\n }\n return normalizeLineSeriesFromLabelValueItems(rawItems);\n}\n\nfunction normalizeLineSeriesFromOptions(opts: Record<string, unknown>): AXPLineChartQuerySeries[] {\n const categories = readAxisCategories(opts);\n const series: AXPLineChartQuerySeries[] = [];\n\n const fromDataSource = opts['dataSource'] ?? (Array.isArray(opts['data']) ? opts['data'] : undefined);\n if (Array.isArray(fromDataSource) && fromDataSource.length > 0) {\n fromDataSource.forEach((entry, index) => {\n if (!isObjectLike(entry)) {\n return;\n }\n const normalized = toLineChartSeries(entry as Record<string, unknown>, index, categories);\n if (normalized) {\n series.push(normalized);\n }\n });\n if (series.length > 0) {\n return series;\n }\n const labelValueFromDataSource = tryNormalizeLineSeriesFromLabelValueRows(fromDataSource);\n if (labelValueFromDataSource.length > 0) {\n return labelValueFromDataSource;\n }\n }\n\n const inlineData = opts['data'];\n if (Array.isArray(inlineData) && inlineData.length > 0) {\n const points = normalizeLinePoints(inlineData, categories);\n if (points.length > 0) {\n return [{ id: 'series-1', data: points }];\n }\n }\n\n if (inlineData != null && typeof inlineData === 'object' && !Array.isArray(inlineData)) {\n const wrapped = inlineData as Record<string, unknown>;\n const wrappedSeries = wrapped['series'];\n if (Array.isArray(wrappedSeries) && wrappedSeries.length > 0) {\n const points = normalizeLinePoints(wrappedSeries, categories);\n if (points.length > 0) {\n return [{ id: 'series-1', data: points }];\n }\n }\n }\n\n const rawSeries = opts['series'];\n if (!Array.isArray(rawSeries) || rawSeries.length === 0) {\n return [];\n }\n\n rawSeries.forEach((entry, index) => {\n if (!isObjectLike(entry)) {\n return;\n }\n const normalized = toLineChartSeries(entry as Record<string, unknown>, index, categories);\n if (normalized) {\n series.push(normalized);\n }\n });\n if (series.length > 0) {\n return series;\n }\n return tryNormalizeLineSeriesFromLabelValueRows(rawSeries);\n}\n\nfunction normalizeLabelValueItems(\n opts: Record<string, unknown>,\n labelKeys: string[],\n): Array<{ id?: string; label: string; value: number; color?: string }> {\n const categories = readAxisCategories(opts);\n const rawItems = opts['items'] ?? opts['dataSource'] ?? opts['data'];\n const items: Array<{ id?: string; label: string; value: number; color?: string }> = [];\n\n if (Array.isArray(rawItems) && rawItems.length > 0) {\n rawItems.forEach((entry, index) => {\n if (!isObjectLike(entry)) {\n return;\n }\n const row = entry as Record<string, unknown>;\n const labelRaw = labelKeys.map((key) => row[key]).find((value) => value != null && value !== '');\n const label = labelRaw != null ? String(labelRaw) : '';\n const value = toNumber(row['value'] ?? row['y'] ?? row['count'] ?? row['productCount']);\n if (!label || value === undefined) {\n return;\n }\n items.push({\n id: isString(row['id']) ? row['id'] : `item-${index + 1}`,\n label,\n value,\n color: isString(row['color']) ? row['color'] : undefined,\n });\n });\n return items;\n }\n\n const rawSeries = opts['series'];\n if (Array.isArray(rawSeries) && rawSeries.length > 0 && categories.length > 0) {\n const first = rawSeries[0];\n if (!isObjectLike(first)) {\n return [];\n }\n const row = first as Record<string, unknown>;\n const values = Array.isArray(row['data']) ? row['data'] : [];\n return zipCategoryValues(categories, values).map((point, index) => ({\n id: `item-${index + 1}`,\n label: String(point.x),\n value: point.y,\n }));\n }\n\n return [];\n}\n\n/** Loads collection items when `options.dataSource` is a query key. */\nexport async function loadQueryDataSourceItems(\n queryExecutor: AXPQueryExecutor,\n queryKey: string,\n): Promise<unknown[]> {\n const key = queryKey.trim();\n if (!key) {\n return [];\n }\n\n try {\n const result = await queryExecutor.fetch(key, { skip: 0, take: 10_000, sort: [] });\n const page = runtimeQueryCollectionData(result);\n return Array.isArray(page?.items) ? page.items : [];\n } catch {\n return [];\n }\n}\n\ntype ChartDataLoadDeps = {\n queryExecutor: AXPQueryExecutor;\n queryKey?: string;\n queryInput?: Record<string, unknown>;\n};\n\n/** Merges `xAxisLabel` / `yAxisLabel` with AI `xAxis.title` / `yAxis.title` fallbacks. */\nexport function resolveChartAxisLabels(opts: Record<string, unknown>): {\n xAxisLabel: unknown;\n yAxisLabel: unknown;\n} {\n const xAxisLabel = opts['xAxisLabel'] ?? readAxisTitle(opts['xAxis']);\n const yAxisLabel = opts['yAxisLabel'] ?? readAxisTitle(opts['yAxis']);\n return { xAxisLabel, yAxisLabel };\n}\n\n//#endregion\n\n//#region ----- Line chart -----\n\nexport async function loadLineChartSeries(\n opts: Record<string, unknown>,\n deps: ChartDataLoadDeps,\n): Promise<AXPLineChartQuerySeries[]> {\n expandAiChartWidgetOptions(opts);\n\n if (deps.queryKey) {\n const payload = await fetchChartQueryResult<AXPLineChartQueryResult>(\n deps.queryExecutor,\n deps.queryKey,\n deps.queryInput,\n );\n return applyChartColorRulesFromOptions(payload?.series ?? [], opts, 'lineColor');\n }\n\n const inline = normalizeLineSeriesFromOptions(opts);\n if (inline.length > 0) {\n return applyChartColorRulesFromOptions(inline, opts, 'lineColor');\n }\n\n const dataSource = opts['dataSource'];\n if (isString(dataSource) && dataSource.trim()) {\n const items = await loadQueryDataSourceItems(deps.queryExecutor, dataSource);\n return applyChartColorRulesFromOptions(\n normalizeLineSeriesFromOptions({ ...opts, dataSource: items }),\n opts,\n 'lineColor',\n );\n }\n\n return [];\n}\n\n//#endregion\n\n//#region ----- Bar chart -----\n\nexport async function loadBarChartItems(\n opts: Record<string, unknown>,\n deps: ChartDataLoadDeps,\n): Promise<AXPBarChartQueryItem[]> {\n expandAiChartWidgetOptions(opts);\n\n if (deps.queryKey) {\n const payload = await fetchChartQueryResult<AXPBarChartQueryResult>(\n deps.queryExecutor,\n deps.queryKey,\n deps.queryInput,\n );\n return applyChartColorRulesFromOptions(payload?.items ?? [], opts);\n }\n\n const inline = normalizeLabelValueItems(opts, ['label', 'name', 'brand', 'brandLabel', 'brandTitle', 'category']);\n if (inline.length > 0) {\n return applyChartColorRulesFromOptions(\n inline.map((item) => ({\n id: item.id ?? item.label,\n label: item.label,\n value: item.value,\n color: item.color,\n })),\n opts,\n );\n }\n\n const dataSource = opts['dataSource'];\n if (isString(dataSource) && dataSource.trim()) {\n const items = await loadQueryDataSourceItems(deps.queryExecutor, dataSource);\n return applyChartColorRulesFromOptions(\n normalizeLabelValueItems({ ...opts, dataSource: items }, ['label', 'name', 'brand', 'brandLabel', 'brandTitle', 'category']).map(\n (item) => ({\n id: item.id ?? item.label,\n label: item.label,\n value: item.value,\n color: item.color,\n }),\n ),\n opts,\n );\n }\n\n return [];\n}\n\n//#endregion\n\n//#region ----- Donut chart -----\n\nexport async function loadDonutChartItems(\n opts: Record<string, unknown>,\n deps: ChartDataLoadDeps,\n): Promise<AXPDonutChartQueryItem[]> {\n expandAiChartWidgetOptions(opts);\n\n if (deps.queryKey) {\n const payload = await fetchChartQueryResult<AXPDonutChartQueryResult>(\n deps.queryExecutor,\n deps.queryKey,\n deps.queryInput,\n );\n return applyChartColorRulesFromOptions(payload?.items ?? [], opts);\n }\n\n const inline = normalizeLabelValueItems(opts, ['label', 'name', 'brandLabel', 'brandTitle', 'brand', 'category']);\n if (inline.length > 0) {\n return applyChartColorRulesFromOptions(\n inline.map((item) => ({\n id: item.id ?? item.label,\n label: item.label,\n value: item.value,\n color: item.color,\n })),\n opts,\n );\n }\n\n const dataSource = opts['dataSource'];\n if (isString(dataSource) && dataSource.trim()) {\n const items = await loadQueryDataSourceItems(deps.queryExecutor, dataSource);\n return applyChartColorRulesFromOptions(\n normalizeLabelValueItems({ ...opts, dataSource: items }, ['label', 'name', 'brandLabel', 'brandTitle', 'brand', 'category']).map((item) => ({\n id: item.id ?? item.label,\n label: item.label,\n value: item.value,\n color: item.color,\n })),\n opts,\n );\n }\n\n return [];\n}\n\n//#endregion\n\n//#region ----- Funnel chart -----\n\nexport async function loadFunnelChartItems(\n opts: Record<string, unknown>,\n deps: ChartDataLoadDeps,\n): Promise<AXPFunnelChartQueryItem[]> {\n expandAiChartWidgetOptions(opts);\n\n if (deps.queryKey) {\n const payload = await fetchChartQueryResult<AXPFunnelChartQueryResult>(\n deps.queryExecutor,\n deps.queryKey,\n deps.queryInput,\n );\n return applyChartColorRulesFromOptions(payload?.items ?? [], opts);\n }\n\n const inline = normalizeLabelValueItems(opts, ['name', 'label', 'brandLabel', 'brandTitle', 'brand', 'category']);\n if (inline.length > 0) {\n return applyChartColorRulesFromOptions(\n inline.map((item) => ({\n id: item.id ?? item.label,\n name: item.label,\n value: item.value,\n color: item.color,\n })),\n opts,\n );\n }\n\n const dataSource = opts['dataSource'];\n if (isString(dataSource) && dataSource.trim()) {\n const items = await loadQueryDataSourceItems(deps.queryExecutor, dataSource);\n return loadFunnelChartItems({ ...opts, dataSource: items }, { ...deps, queryKey: undefined });\n }\n\n return [];\n}\n\n//#endregion\n\n//#region ----- Heatmap chart -----\n\nexport async function loadHeatmapChartItems(\n opts: Record<string, unknown>,\n deps: ChartDataLoadDeps,\n): Promise<AXPHeatmapChartQueryItem[]> {\n expandAiChartWidgetOptions(opts);\n\n if (deps.queryKey) {\n const payload = await fetchChartQueryResult<AXPHeatmapChartQueryResult>(\n deps.queryExecutor,\n deps.queryKey,\n deps.queryInput,\n );\n return payload?.items ?? [];\n }\n\n const rawItems = opts['items'] ?? opts['dataSource'] ?? opts['data'];\n if (Array.isArray(rawItems) && rawItems.length > 0) {\n const items: AXPHeatmapChartQueryItem[] = [];\n rawItems.forEach((entry) => {\n if (!isObjectLike(entry)) {\n return;\n }\n const row = entry as Record<string, unknown>;\n const x = row['x'];\n const y = row['y'];\n const value = toNumber(row['value'] ?? row['v']);\n if (x == null || y == null || value === undefined) {\n return;\n }\n const item: AXPHeatmapChartQueryItem = {\n x: x as number | string,\n y: y as number | string,\n value,\n };\n if (row['label'] != null) {\n item.label = String(row['label']);\n }\n items.push(item);\n });\n return items;\n }\n\n const dataSource = opts['dataSource'];\n if (isString(dataSource) && dataSource.trim()) {\n const items = await loadQueryDataSourceItems(deps.queryExecutor, dataSource);\n return loadHeatmapChartItems({ ...opts, dataSource: items }, { ...deps, queryKey: undefined });\n }\n\n return [];\n}\n\n//#endregion\n\n//#region ----- Gauge chart -----\n\nexport async function loadGaugeChartValue(\n opts: Record<string, unknown>,\n deps: ChartDataLoadDeps,\n): Promise<number> {\n expandAiChartWidgetOptions(opts);\n\n if (deps.queryKey) {\n const payload = await fetchChartQueryResult<AXPGaugeChartQueryResult>(\n deps.queryExecutor,\n deps.queryKey,\n deps.queryInput,\n );\n return typeof payload?.value === 'number' ? payload.value : 0;\n }\n\n const dataSource = opts['dataSource'];\n if (isNumber(dataSource)) {\n return dataSource;\n }\n\n if (isString(dataSource) && dataSource.trim()) {\n const payload = await fetchChartQueryResult<AXPGaugeChartQueryResult | number>(\n deps.queryExecutor,\n dataSource.trim(),\n );\n if (isNumber(payload)) {\n return payload;\n }\n if (payload && typeof payload === 'object' && isNumber(payload.value)) {\n return payload.value;\n }\n }\n\n const fallback = toNumber(opts['value']);\n return fallback ?? 0;\n}\n\n//#endregion\n"],"names":["asRecord","toNumber"],"mappings":";;;;AAAA;;;AAGG;AAIH,SAASA,UAAQ,CAAC,KAAc,EAAA;IAC9B,OAAO,YAAY,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,GAAI,KAAiC,GAAG,SAAS;AACtG;AAEA,SAASC,UAAQ,CAAC,KAAc,EAAA;AAC9B,IAAA,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;AAC7C,QAAA,OAAO,KAAK;IACd;IACA,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,EAAE,EAAE;AACnC,QAAA,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC;AAC5B,QAAA,IAAI,M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C,IAA6B,EAC7B,IAAuB,EAAA;IAEvB,0BAA0B,CAAC,IAAI,CAAC;AAEhC,IAAA,IAAI,IAAI,CAAC,QAAQ,EAAE;AACjB,QAAA,MAAM,OAAO,GAAG,MAAM,qBAAqB,CACzC,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,UAAU,CAChB;AACD,QAAA,OAAO,OAAO,OAAO,EAAE,KAAK,KAAK,QAAQ,GAAG,OAAO,CAAC,KAAK,GAAG,CAAC;IAC/D;AAEA,IAAA,MAAM,UAAU,GAAG,IAAI,CAAC,YAAY,CAAC;AACrC,IAAA,IAAI,QAAQ,CAAC,UAAU,CAAC,EAAE;AACxB,QAAA,OAAO,UAAU;IACnB;IAEA,IAAI,QAAQ,CAAC,UAAU,CAAC,IAAI,UAAU,CAAC,IAAI,EAAE,EAAE;AAC7C,QAAA,MAAM,OAAO,GAAG,MAAM,qBAAqB,CACzC,IAAI,CAAC,aAAa,EAClB,UAAU,CAAC,IAAI,EAAE,CAClB;AACD,QAAA,IAAI,QAAQ,CAAC,OAAO,CAAC,EAAE;AACrB,YAAA,OAAO,OAAO;QAChB;AACA,QAAA,IAAI,OAAO,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;YACrE,OAAO,OAAO,CAAC,KAAK;QACtB;IACF;IAEA,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACxC,OAAO,QAAQ,IAAI,CAAC;AACtB;AAEA;;"}
1
+ {"version":3,"file":"acorex-platform-module-dashboard-management-client-chart-widget-data.util-BLtv9sOm.mjs","sources":["../../../../libs/modules/dashboard-management/client/src/lib/features/shared/widgets/chart/chart-widget-ai-options.util.ts","../../../../libs/modules/dashboard-management/client/src/lib/features/shared/widgets/chart/chart-widget-data.util.ts"],"sourcesContent":["/**\n * Normalizes AI / Chart Generator agent payloads into shapes dashboard chart widgets expect.\n * Called before every `load*Chart*` resolver in {@link chart-widget-data.util.ts}.\n */\n\nimport { isNumber, isObjectLike, isString } from 'lodash';\n\nfunction asRecord(value: unknown): Record<string, unknown> | undefined {\n return isObjectLike(value) && !Array.isArray(value) ? (value as Record<string, unknown>) : undefined;\n}\n\nfunction toNumber(value: unknown): number | undefined {\n if (isNumber(value) && Number.isFinite(value)) {\n return value;\n }\n if (isString(value) && value.trim()) {\n const parsed = Number(value);\n if (Number.isFinite(parsed)) {\n return parsed;\n }\n }\n return undefined;\n}\n\nfunction promoteLabelsToAxisCategories(opts: Record<string, unknown>): void {\n const xAxis = asRecord(opts['xAxis']);\n if (xAxis && Array.isArray(xAxis['labels']) && !Array.isArray(opts['labels'])) {\n opts['labels'] = xAxis['labels'];\n }\n\n const labels = opts['labels'];\n if (!Array.isArray(labels)) {\n return;\n }\n\n const nextXAxis = xAxis ?? {};\n if (!Array.isArray(nextXAxis['categories'])) {\n opts['xAxis'] = { ...nextXAxis, categories: labels };\n }\n}\n\nfunction materializeLabelValueRows(labels: unknown[], values: unknown[]): Array<{ label: string; value: number }> {\n const rows: Array<{ label: string; value: number }> = [];\n const length = Math.min(labels.length, values.length);\n for (let index = 0; index < length; index++) {\n const value = toNumber(values[index]);\n const label = String(labels[index] ?? '').trim();\n if (!label || value === undefined) {\n continue;\n }\n rows.push({ label, value });\n }\n return rows;\n}\n\nfunction readCategoriesForExpand(opts: Record<string, unknown>): string[] {\n const xAxis = asRecord(opts['xAxis']);\n const fromAxis = xAxis?.['categories'] ?? xAxis?.['labels'];\n if (Array.isArray(fromAxis)) {\n return fromAxis.map((entry) => String(entry ?? ''));\n }\n if (Array.isArray(opts['labels'])) {\n return opts['labels'].map((entry) => String(entry ?? ''));\n }\n return [];\n}\n\nfunction materializeDataSourceFromLabelsAndSeries(opts: Record<string, unknown>): void {\n if (opts['dataSource'] != null || opts['items'] != null) {\n return;\n }\n const labels = readCategoriesForExpand(opts);\n if (labels.length === 0) {\n return;\n }\n\n const values = opts['values'];\n if (Array.isArray(values)) {\n const rows = materializeLabelValueRows(labels, values);\n if (rows.length > 0) {\n opts['dataSource'] = rows;\n }\n return;\n }\n\n const rawSeries = opts['series'];\n if (!Array.isArray(rawSeries) || rawSeries.length === 0) {\n return;\n }\n const first = rawSeries[0];\n if (!isObjectLike(first)) {\n return;\n }\n const seriesData = (first as Record<string, unknown>)['data'];\n if (!Array.isArray(seriesData)) {\n return;\n }\n const rows = materializeLabelValueRows(labels, seriesData);\n if (rows.length > 0) {\n opts['dataSource'] = rows;\n }\n}\n\nfunction unwrapNestedDataObject(opts: Record<string, unknown>): void {\n const data = opts['data'];\n if (data == null || typeof data !== 'object' || Array.isArray(data)) {\n return;\n }\n\n const dataObj = data as Record<string, unknown>;\n\n if (Array.isArray(dataObj['labels']) && opts['labels'] == null) {\n opts['labels'] = dataObj['labels'];\n }\n const xAxisObj = asRecord(dataObj['xAxis']);\n if (xAxisObj && Array.isArray(xAxisObj['labels']) && opts['xAxis'] == null) {\n opts['xAxis'] = xAxisObj;\n }\n if (Array.isArray(dataObj['values']) && opts['values'] == null) {\n opts['values'] = dataObj['values'];\n }\n if (Array.isArray(dataObj['series']) && opts['series'] == null) {\n opts['series'] = dataObj['series'];\n }\n if (Array.isArray(dataObj['items'])) {\n if (opts['items'] == null) {\n opts['items'] = dataObj['items'];\n }\n if (opts['dataSource'] == null) {\n opts['dataSource'] = dataObj['items'];\n }\n }\n\n const scalarValue = toNumber(dataObj['value']);\n if (scalarValue !== undefined && opts['value'] == null && opts['dataSource'] == null) {\n opts['value'] = scalarValue;\n opts['dataSource'] = scalarValue;\n }\n\n delete opts['data'];\n}\n\n/**\n * Expands common AI chart option shapes (`props`, `data`, `labels`+`series`, etc.)\n * into `dataSource` / `xAxis.categories` / scalar gauge values understood by chart loaders.\n */\nexport function expandAiChartWidgetOptions(opts: Record<string, unknown>): void {\n unwrapNestedDataObject(opts);\n\n if (Array.isArray(opts['data']) && opts['dataSource'] == null && opts['items'] == null) {\n opts['dataSource'] = opts['data'];\n delete opts['data'];\n }\n\n if (Array.isArray(opts['items']) && opts['dataSource'] == null) {\n opts['dataSource'] = opts['items'];\n }\n\n promoteLabelsToAxisCategories(opts);\n materializeDataSourceFromLabelsAndSeries(opts);\n\n if (opts['dataSource'] == null) {\n const scalar = toNumber(opts['value']);\n if (scalar !== undefined) {\n opts['dataSource'] = scalar;\n }\n }\n}\n","/**\n * Resolves chart widget payloads from AXPQuery bindings, inline `options.dataSource`,\n * or common AI-emitted shapes (`series` + `xAxis.categories`, etc.).\n */\n\nimport type { AXPQueryExecutor } from '@acorex-platform/framework-client/runtime';\nimport { runtimeQueryCollectionData } from '@acorex-platform/framework-shared/core';\nimport type {\n AXPBarChartQueryItem,\n AXPBarChartQueryResult,\n AXPDonutChartQueryItem,\n AXPDonutChartQueryResult,\n AXPFunnelChartQueryItem,\n AXPFunnelChartQueryResult,\n AXPGaugeChartQueryResult,\n AXPHeatmapChartQueryItem,\n AXPHeatmapChartQueryResult,\n AXPLineChartQueryPoint,\n AXPLineChartQueryResult,\n AXPLineChartQuerySeries,\n} from '@acorex-platform/module-dashboard-management-client/contracts';\nimport { isNumber, isObjectLike, isString } from 'lodash';\n\nimport { applyChartColorRulesFromOptions } from './chart-color-rules.util';\nimport { fetchChartQueryResult } from './chart-query-load.util';\nimport { expandAiChartWidgetOptions } from './chart-widget-ai-options.util';\n\n//#region ----- Shared helpers -----\n\nfunction asRecord(value: unknown): Record<string, unknown> | undefined {\n return isObjectLike(value) && !Array.isArray(value) ? (value as Record<string, unknown>) : undefined;\n}\n\nfunction readAxisTitle(axis: unknown): string | undefined {\n const row = asRecord(axis);\n const title = row?.['title'];\n return isString(title) && title.trim() ? title.trim() : undefined;\n}\n\nfunction readAxisCategoriesFromRecord(axis: Record<string, unknown> | undefined): string[] {\n if (!axis) {\n return [];\n }\n const categories = axis['categories'] ?? axis['labels'];\n if (!Array.isArray(categories)) {\n return [];\n }\n return categories.map((entry) => String(entry ?? ''));\n}\n\nfunction readAxisCategories(opts: Record<string, unknown>): string[] {\n const fromXAxis = readAxisCategoriesFromRecord(asRecord(opts['xAxis']));\n if (fromXAxis.length > 0) {\n return fromXAxis;\n }\n const labels = opts['labels'];\n if (Array.isArray(labels)) {\n return labels.map((entry) => String(entry ?? ''));\n }\n return [];\n}\n\nfunction zipCategoryValues(categories: string[], values: unknown[]): AXPLineChartQueryPoint[] {\n const points: AXPLineChartQueryPoint[] = [];\n const length = Math.min(categories.length, values.length);\n for (let index = 0; index < length; index++) {\n const y = values[index];\n if (!isNumber(y)) {\n continue;\n }\n points.push({ x: categories[index], y });\n }\n return points;\n}\n\nfunction seriesLabel(raw: Record<string, unknown>): string | undefined {\n const label = raw['label'] ?? raw['name'];\n return isString(label) && label.trim() ? label.trim() : undefined;\n}\n\nfunction toNumber(value: unknown): number | undefined {\n if (isNumber(value) && Number.isFinite(value)) {\n return value;\n }\n if (isString(value) && value.trim()) {\n const parsed = Number(value);\n if (Number.isFinite(parsed)) {\n return parsed;\n }\n }\n return undefined;\n}\n\nfunction normalizeLinePoints(rawData: unknown, categories: string[]): AXPLineChartQueryPoint[] {\n if (!Array.isArray(rawData) || rawData.length === 0) {\n return [];\n }\n\n const first = rawData[0];\n if (isNumber(first)) {\n return zipCategoryValues(categories, rawData);\n }\n\n const points: AXPLineChartQueryPoint[] = [];\n for (const entry of rawData) {\n if (!isObjectLike(entry)) {\n continue;\n }\n const row = entry as Record<string, unknown>;\n const y = toNumber(row['y'] ?? row['value'] ?? row['count'] ?? row['productCount']);\n if (y === undefined) {\n continue;\n }\n const x =\n row['x'] ??\n row['label'] ??\n row['name'] ??\n row['brandLabel'] ??\n row['brandTitle'] ??\n row['brand'] ??\n row['category'];\n if (x == null || x === '') {\n continue;\n }\n points.push({ x: x as number | string, y });\n }\n return points;\n}\n\nfunction toLineChartSeries(row: Record<string, unknown>, index: number, categories: string[]): AXPLineChartQuerySeries | undefined {\n const data = normalizeLinePoints(row['data'], categories);\n if (data.length === 0) {\n return undefined;\n }\n return {\n id: isString(row['id']) ? row['id'] : `series-${index + 1}`,\n label: seriesLabel(row),\n lineColor: isString(row['lineColor']) ? row['lineColor'] : undefined,\n fillColor: isString(row['fillColor']) ? row['fillColor'] : undefined,\n data,\n };\n}\n\nconst LINE_CHART_LABEL_KEYS = ['label', 'name', 'brandLabel', 'brandTitle', 'brand', 'category'] as const;\n\nfunction isLineChartLabelValueRow(row: Record<string, unknown>): boolean {\n if (Array.isArray(row['data'])) {\n return false;\n }\n const labelRaw = LINE_CHART_LABEL_KEYS.map((key) => row[key]).find((value) => value != null && value !== '');\n const y = toNumber(row['value'] ?? row['y'] ?? row['count'] ?? row['productCount']);\n return labelRaw != null && y !== undefined;\n}\n\n/** Bar/donut-style `{ label, value }[]` → one line series (common AI chart agent output). */\nfunction normalizeLineSeriesFromLabelValueItems(rawItems: unknown[]): AXPLineChartQuerySeries[] {\n const points: AXPLineChartQueryPoint[] = [];\n for (const entry of rawItems) {\n if (!isObjectLike(entry)) {\n continue;\n }\n const row = entry as Record<string, unknown>;\n if (!isLineChartLabelValueRow(row)) {\n continue;\n }\n const labelRaw = LINE_CHART_LABEL_KEYS.map((key) => row[key]).find((value) => value != null && value !== '');\n const y = toNumber(row['value'] ?? row['y'] ?? row['count'] ?? row['productCount']);\n if (labelRaw == null || y === undefined) {\n continue;\n }\n points.push({ x: String(labelRaw), y });\n }\n if (points.length === 0) {\n return [];\n }\n return [{ id: 'series-1', data: points }];\n}\n\nfunction tryNormalizeLineSeriesFromLabelValueRows(rawItems: unknown[]): AXPLineChartQuerySeries[] {\n if (!Array.isArray(rawItems) || rawItems.length === 0) {\n return [];\n }\n const rows = rawItems.filter(isObjectLike) as Record<string, unknown>[];\n if (rows.length === 0 || rows.length !== rawItems.length || !rows.every(isLineChartLabelValueRow)) {\n return [];\n }\n return normalizeLineSeriesFromLabelValueItems(rawItems);\n}\n\nfunction normalizeLineSeriesFromOptions(opts: Record<string, unknown>): AXPLineChartQuerySeries[] {\n const categories = readAxisCategories(opts);\n const series: AXPLineChartQuerySeries[] = [];\n\n const fromDataSource = opts['dataSource'] ?? (Array.isArray(opts['data']) ? opts['data'] : undefined);\n if (Array.isArray(fromDataSource) && fromDataSource.length > 0) {\n fromDataSource.forEach((entry, index) => {\n if (!isObjectLike(entry)) {\n return;\n }\n const normalized = toLineChartSeries(entry as Record<string, unknown>, index, categories);\n if (normalized) {\n series.push(normalized);\n }\n });\n if (series.length > 0) {\n return series;\n }\n const labelValueFromDataSource = tryNormalizeLineSeriesFromLabelValueRows(fromDataSource);\n if (labelValueFromDataSource.length > 0) {\n return labelValueFromDataSource;\n }\n }\n\n const inlineData = opts['data'];\n if (Array.isArray(inlineData) && inlineData.length > 0) {\n const points = normalizeLinePoints(inlineData, categories);\n if (points.length > 0) {\n return [{ id: 'series-1', data: points }];\n }\n }\n\n if (inlineData != null && typeof inlineData === 'object' && !Array.isArray(inlineData)) {\n const wrapped = inlineData as Record<string, unknown>;\n const wrappedSeries = wrapped['series'];\n if (Array.isArray(wrappedSeries) && wrappedSeries.length > 0) {\n const points = normalizeLinePoints(wrappedSeries, categories);\n if (points.length > 0) {\n return [{ id: 'series-1', data: points }];\n }\n }\n }\n\n const rawSeries = opts['series'];\n if (!Array.isArray(rawSeries) || rawSeries.length === 0) {\n return [];\n }\n\n rawSeries.forEach((entry, index) => {\n if (!isObjectLike(entry)) {\n return;\n }\n const normalized = toLineChartSeries(entry as Record<string, unknown>, index, categories);\n if (normalized) {\n series.push(normalized);\n }\n });\n if (series.length > 0) {\n return series;\n }\n return tryNormalizeLineSeriesFromLabelValueRows(rawSeries);\n}\n\nfunction normalizeLabelValueItems(\n opts: Record<string, unknown>,\n labelKeys: string[],\n): Array<{ id?: string; label: string; value: number; color?: string }> {\n const categories = readAxisCategories(opts);\n const rawItems = opts['items'] ?? opts['dataSource'] ?? opts['data'];\n const items: Array<{ id?: string; label: string; value: number; color?: string }> = [];\n\n if (Array.isArray(rawItems) && rawItems.length > 0) {\n rawItems.forEach((entry, index) => {\n if (!isObjectLike(entry)) {\n return;\n }\n const row = entry as Record<string, unknown>;\n const labelRaw = labelKeys.map((key) => row[key]).find((value) => value != null && value !== '');\n const label = labelRaw != null ? String(labelRaw) : '';\n const value = toNumber(row['value'] ?? row['y'] ?? row['count'] ?? row['productCount']);\n if (!label || value === undefined) {\n return;\n }\n items.push({\n id: isString(row['id']) ? row['id'] : `item-${index + 1}`,\n label,\n value,\n color: isString(row['color']) ? row['color'] : undefined,\n });\n });\n return items;\n }\n\n const rawSeries = opts['series'];\n if (Array.isArray(rawSeries) && rawSeries.length > 0 && categories.length > 0) {\n const first = rawSeries[0];\n if (!isObjectLike(first)) {\n return [];\n }\n const row = first as Record<string, unknown>;\n const values = Array.isArray(row['data']) ? row['data'] : [];\n return zipCategoryValues(categories, values).map((point, index) => ({\n id: `item-${index + 1}`,\n label: String(point.x),\n value: point.y,\n }));\n }\n\n return [];\n}\n\n/** Loads collection items when `options.dataSource` is a query key. */\nexport async function loadQueryDataSourceItems(\n queryExecutor: AXPQueryExecutor,\n queryKey: string,\n): Promise<unknown[]> {\n const key = queryKey.trim();\n if (!key) {\n return [];\n }\n\n try {\n const result = await queryExecutor.fetch(key, { skip: 0, take: 10_000, sort: [] });\n const page = runtimeQueryCollectionData(result);\n return Array.isArray(page?.items) ? page.items : [];\n } catch {\n return [];\n }\n}\n\ntype ChartDataLoadDeps = {\n queryExecutor: AXPQueryExecutor;\n queryKey?: string;\n queryInput?: Record<string, unknown>;\n};\n\n/** Merges `xAxisLabel` / `yAxisLabel` with AI `xAxis.title` / `yAxis.title` fallbacks. */\nexport function resolveChartAxisLabels(opts: Record<string, unknown>): {\n xAxisLabel: unknown;\n yAxisLabel: unknown;\n} {\n const xAxisLabel = opts['xAxisLabel'] ?? readAxisTitle(opts['xAxis']);\n const yAxisLabel = opts['yAxisLabel'] ?? readAxisTitle(opts['yAxis']);\n return { xAxisLabel, yAxisLabel };\n}\n\n//#endregion\n\n//#region ----- Line chart -----\n\nexport async function loadLineChartSeries(\n opts: Record<string, unknown>,\n deps: ChartDataLoadDeps,\n): Promise<AXPLineChartQuerySeries[]> {\n expandAiChartWidgetOptions(opts);\n\n if (deps.queryKey) {\n const payload = await fetchChartQueryResult<AXPLineChartQueryResult>(\n deps.queryExecutor,\n deps.queryKey,\n deps.queryInput,\n );\n return applyChartColorRulesFromOptions(payload?.series ?? [], opts, 'lineColor');\n }\n\n const inline = normalizeLineSeriesFromOptions(opts);\n if (inline.length > 0) {\n return applyChartColorRulesFromOptions(inline, opts, 'lineColor');\n }\n\n const dataSource = opts['dataSource'];\n if (isString(dataSource) && dataSource.trim()) {\n const items = await loadQueryDataSourceItems(deps.queryExecutor, dataSource);\n return applyChartColorRulesFromOptions(\n normalizeLineSeriesFromOptions({ ...opts, dataSource: items }),\n opts,\n 'lineColor',\n );\n }\n\n return [];\n}\n\n//#endregion\n\n//#region ----- Bar chart -----\n\nexport async function loadBarChartItems(\n opts: Record<string, unknown>,\n deps: ChartDataLoadDeps,\n): Promise<AXPBarChartQueryItem[]> {\n expandAiChartWidgetOptions(opts);\n\n if (deps.queryKey) {\n const payload = await fetchChartQueryResult<AXPBarChartQueryResult>(\n deps.queryExecutor,\n deps.queryKey,\n deps.queryInput,\n );\n return applyChartColorRulesFromOptions(payload?.items ?? [], opts);\n }\n\n const inline = normalizeLabelValueItems(opts, ['label', 'name', 'brand', 'brandLabel', 'brandTitle', 'category']);\n if (inline.length > 0) {\n return applyChartColorRulesFromOptions(\n inline.map((item) => ({\n id: item.id ?? item.label,\n label: item.label,\n value: item.value,\n color: item.color,\n })),\n opts,\n );\n }\n\n const dataSource = opts['dataSource'];\n if (isString(dataSource) && dataSource.trim()) {\n const items = await loadQueryDataSourceItems(deps.queryExecutor, dataSource);\n return applyChartColorRulesFromOptions(\n normalizeLabelValueItems({ ...opts, dataSource: items }, ['label', 'name', 'brand', 'brandLabel', 'brandTitle', 'category']).map(\n (item) => ({\n id: item.id ?? item.label,\n label: item.label,\n value: item.value,\n color: item.color,\n }),\n ),\n opts,\n );\n }\n\n return [];\n}\n\n//#endregion\n\n//#region ----- Donut chart -----\n\nexport async function loadDonutChartItems(\n opts: Record<string, unknown>,\n deps: ChartDataLoadDeps,\n): Promise<AXPDonutChartQueryItem[]> {\n expandAiChartWidgetOptions(opts);\n\n if (deps.queryKey) {\n const payload = await fetchChartQueryResult<AXPDonutChartQueryResult>(\n deps.queryExecutor,\n deps.queryKey,\n deps.queryInput,\n );\n return applyChartColorRulesFromOptions(payload?.items ?? [], opts);\n }\n\n const inline = normalizeLabelValueItems(opts, ['label', 'name', 'brandLabel', 'brandTitle', 'brand', 'category']);\n if (inline.length > 0) {\n return applyChartColorRulesFromOptions(\n inline.map((item) => ({\n id: item.id ?? item.label,\n label: item.label,\n value: item.value,\n color: item.color,\n })),\n opts,\n );\n }\n\n const dataSource = opts['dataSource'];\n if (isString(dataSource) && dataSource.trim()) {\n const items = await loadQueryDataSourceItems(deps.queryExecutor, dataSource);\n return applyChartColorRulesFromOptions(\n normalizeLabelValueItems({ ...opts, dataSource: items }, ['label', 'name', 'brandLabel', 'brandTitle', 'brand', 'category']).map((item) => ({\n id: item.id ?? item.label,\n label: item.label,\n value: item.value,\n color: item.color,\n })),\n opts,\n );\n }\n\n return [];\n}\n\n//#endregion\n\n//#region ----- Funnel chart -----\n\nexport async function loadFunnelChartItems(\n opts: Record<string, unknown>,\n deps: ChartDataLoadDeps,\n): Promise<AXPFunnelChartQueryItem[]> {\n expandAiChartWidgetOptions(opts);\n\n if (deps.queryKey) {\n const payload = await fetchChartQueryResult<AXPFunnelChartQueryResult>(\n deps.queryExecutor,\n deps.queryKey,\n deps.queryInput,\n );\n return applyChartColorRulesFromOptions(payload?.items ?? [], opts);\n }\n\n const inline = normalizeLabelValueItems(opts, ['name', 'label', 'brandLabel', 'brandTitle', 'brand', 'category']);\n if (inline.length > 0) {\n return applyChartColorRulesFromOptions(\n inline.map((item) => ({\n id: item.id ?? item.label,\n name: item.label,\n value: item.value,\n color: item.color,\n })),\n opts,\n );\n }\n\n const dataSource = opts['dataSource'];\n if (isString(dataSource) && dataSource.trim()) {\n const items = await loadQueryDataSourceItems(deps.queryExecutor, dataSource);\n return loadFunnelChartItems({ ...opts, dataSource: items }, { ...deps, queryKey: undefined });\n }\n\n return [];\n}\n\n//#endregion\n\n//#region ----- Heatmap chart -----\n\nexport async function loadHeatmapChartItems(\n opts: Record<string, unknown>,\n deps: ChartDataLoadDeps,\n): Promise<AXPHeatmapChartQueryItem[]> {\n expandAiChartWidgetOptions(opts);\n\n if (deps.queryKey) {\n const payload = await fetchChartQueryResult<AXPHeatmapChartQueryResult>(\n deps.queryExecutor,\n deps.queryKey,\n deps.queryInput,\n );\n return payload?.items ?? [];\n }\n\n const rawItems = opts['items'] ?? opts['dataSource'] ?? opts['data'];\n if (Array.isArray(rawItems) && rawItems.length > 0) {\n const items: AXPHeatmapChartQueryItem[] = [];\n rawItems.forEach((entry) => {\n if (!isObjectLike(entry)) {\n return;\n }\n const row = entry as Record<string, unknown>;\n const x = row['x'];\n const y = row['y'];\n const value = toNumber(row['value'] ?? row['v']);\n if (x == null || y == null || value === undefined) {\n return;\n }\n const item: AXPHeatmapChartQueryItem = {\n x: x as number | string,\n y: y as number | string,\n value,\n };\n if (row['label'] != null) {\n item.label = String(row['label']);\n }\n items.push(item);\n });\n return items;\n }\n\n const dataSource = opts['dataSource'];\n if (isString(dataSource) && dataSource.trim()) {\n const items = await loadQueryDataSourceItems(deps.queryExecutor, dataSource);\n return loadHeatmapChartItems({ ...opts, dataSource: items }, { ...deps, queryKey: undefined });\n }\n\n return [];\n}\n\n//#endregion\n\n//#region ----- Gauge chart -----\n\nexport async function loadGaugeChartValue(\n opts: Record<string, unknown>,\n deps: ChartDataLoadDeps,\n): Promise<number> {\n expandAiChartWidgetOptions(opts);\n\n if (deps.queryKey) {\n const payload = await fetchChartQueryResult<AXPGaugeChartQueryResult>(\n deps.queryExecutor,\n deps.queryKey,\n deps.queryInput,\n );\n return typeof payload?.value === 'number' ? payload.value : 0;\n }\n\n const dataSource = opts['dataSource'];\n if (isNumber(dataSource)) {\n return dataSource;\n }\n\n if (isString(dataSource) && dataSource.trim()) {\n const payload = await fetchChartQueryResult<AXPGaugeChartQueryResult | number>(\n deps.queryExecutor,\n dataSource.trim(),\n );\n if (isNumber(payload)) {\n return payload;\n }\n if (payload && typeof payload === 'object' && isNumber(payload.value)) {\n return payload.value;\n }\n }\n\n const fallback = toNumber(opts['value']);\n return fallback ?? 0;\n}\n\n//#endregion\n"],"names":["asRecord","toNumber"],"mappings":";;;;AAAA;;;AAGG;AAIH,SAASA,UAAQ,CAAC,KAAc,EAAA;IAC9B,OAAO,YAAY,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,GAAI,KAAiC,GAAG,SAAS;AACtG;AAEA,SAASC,UAAQ,CAAC,KAAc,EAAA;AAC9B,IAAA,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;AAC7C,QAAA,OAAO,KAAK;IACd;IACA,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,EAAE,EAAE;AACnC,QAAA,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC;AAC5B,QAAA,IAAI,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;AAC3B,YAAA,OAAO,MAAM;QACf;IACF;AACA,IAAA,OAAO,SAAS;AAClB;AAEA,SAAS,6BAA6B,CAAC,IAA6B,EAAA;IAClE,MAAM,KAAK,GAAGD,UAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACrC,IAAI,KAAK,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,EAAE;QAC7E,IAAI,CAAC,QAAQ,CAAC,GAAG,KAAK,CAA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AAU,CAAC,EAAE;AACxB,QAAA,OAAO,UAAU;IACnB;IAEA,IAAI,QAAQ,CAAC,UAAU,CAAC,IAAI,UAAU,CAAC,IAAI,EAAE,EAAE;AAC7C,QAAA,MAAM,OAAO,GAAG,MAAM,qBAAqB,CACzC,IAAI,CAAC,aAAa,EAClB,UAAU,CAAC,IAAI,EAAE,CAClB;AACD,QAAA,IAAI,QAAQ,CAAC,OAAO,CAAC,EAAE;AACrB,YAAA,OAAO,OAAO;QAChB;AACA,QAAA,IAAI,OAAO,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;YACrE,OAAO,OAAO,CAAC,KAAK;QACtB;IACF;IAEA,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACxC,OAAO,QAAQ,IAAI,CAAC;AACtB;AAEA;;"}
@@ -4,8 +4,8 @@ import { AXTranslationService } from '@acorex/core/translation';
4
4
  import { AXPQueryExecutor } from '@acorex-platform/framework-client/runtime';
5
5
  import * as i0 from '@angular/core';
6
6
  import { inject, signal, effect, computed, ChangeDetectionStrategy, Component } from '@angular/core';
7
- import { e as AXPDashboardWidgetComponent, f as resolveChartQueryTabs, g as AXPChartQueryTabsComponent } from './acorex-platform-module-dashboard-management-client-acorex-platform-module-dashboard-management-client-Ey27MqFo.mjs';
8
- import { a as loadDonutChartItems } from './acorex-platform-module-dashboard-management-client-chart-widget-data.util-DgCBHS1p.mjs';
7
+ import { e as AXPDashboardWidgetComponent, f as resolveChartQueryTabs, g as AXPChartQueryTabsComponent } from './acorex-platform-module-dashboard-management-client-acorex-platform-module-dashboard-management-client-61Q_QY8l.mjs';
8
+ import { a as loadDonutChartItems } from './acorex-platform-module-dashboard-management-client-chart-widget-data.util-BLtv9sOm.mjs';
9
9
  import { a as AXP_CHART_LEGEND_OPTIONS_DONUT, o as omitChartFixedSize } from './acorex-platform-module-dashboard-management-client-chart-legend.util-C1zqTQEf.mjs';
10
10
 
11
11
  /**
@@ -134,12 +134,12 @@ class AXPDonutChartWidgetViewComponent extends AXPDashboardWidgetComponent {
134
134
  // reserved for future drill-down
135
135
  }
136
136
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPDonutChartWidgetViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
137
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXPDonutChartWidgetViewComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<div class=\"axp-chart-widget-host\">\n <axp-chart-query-tabs\n [tabs]=\"queryTabs()\"\n [activeIndex]=\"activeTabIndex()\"\n (activeIndexChange)=\"selectQueryTab($event)\"\n />\n <div class=\"axp-chart-widget-host__body axp-chart-widget-host__body--with-legend\">\n <div class=\"axp-chart-widget-host__chart axp-chart-widget-host__chart--radial\">\n <ax-donut-chart\n #chart\n [data]=\"data()\"\n [options]=\"donutChartOptions()\"\n (segmentClick)=\"handleDonutChartSegmentClick($event)\"\n ></ax-donut-chart>\n </div>\n <!-- ----- Series indicator (legend) ----- -->\n @if (data().length > 0) {\n <div class=\"axp-chart-widget-host__legend\">\n <ax-chart-legend [chart]=\"chart\" [options]=\"legendOptions\"></ax-chart-legend>\n </div>\n }\n </div>\n</div>\n", styles: ["@layer properties;:host{display:block;width:100%;height:100%;min-height:0px;overflow:hidden}:host:has(.axp-chart-widget-host__chart--heatmap){block-size:auto;overflow:visible;min-block-size:0}.axp-chart-widget-host{display:flex;height:100%;min-height:0px;width:100%;flex-direction:column;gap:var(--spacing, .25rem)}.axp-chart-widget-host:has(.axp-chart-widget-host__chart--heatmap){block-size:auto;min-block-size:0;overflow:visible}.axp-chart-widget-host__body{display:flex;min-height:0px;flex:1;flex-direction:column;gap:var(--spacing, .25rem);padding-bottom:calc(var(--spacing, .25rem) * 2)}.axp-chart-widget-host__body:not(.axp-chart-widget-host__body--with-legend)>.axp-chart-widget-host__chart--radial{flex:1 1 auto}.axp-chart-widget-host__body--with-legend{min-height:0px;flex:1;gap:var(--spacing, .25rem);display:grid;grid-template-rows:minmax(0,1fr) auto}.axp-chart-widget-host__chart{position:relative;min-height:calc(var(--spacing, .25rem) * 64);width:100%;overflow:hidden;grid-row:1}.axp-chart-widget-host__chart--radial{position:relative;margin-inline:auto;align-self:center;justify-self:center;overflow:hidden;grid-row:1;flex:0 0 auto;height:auto;width:min(100%,18rem);max-width:100%;min-height:12rem;min-width:8rem;aspect-ratio:1 / 1}.axp-chart-widget-host__chart--funnel{position:relative;width:100%;overflow:hidden;block-size:20rem;flex:0 0 auto;max-block-size:24rem;min-block-size:16rem}.axp-chart-widget-host__chart--funnel ax-funnel-chart,.axp-chart-widget-host__chart--funnel .ax-funnel-chart-container{display:block;block-size:100%;inline-size:100%;min-block-size:0}.axp-chart-widget-host__body:has(.axp-chart-widget-host__chart--funnel){flex:none}.axp-chart-widget-host__chart--heatmap{position:relative;width:100%;max-width:100%;inline-size:100%;block-size:auto;flex:0 0 auto;overflow:visible;min-height:0!important;min-block-size:0!important;max-block-size:none}.axp-chart-widget-host__chart--heatmap ax-heatmap-chart,.axp-chart-widget-host__chart--heatmap .ax-heatmap-chart-container{display:block;inline-size:100%;max-inline-size:100%;block-size:auto;min-block-size:0;overflow:visible}.axp-chart-widget-host__body:has(.axp-chart-widget-host__chart--heatmap){flex:none;block-size:auto;min-block-size:0;overflow:visible}.axp-chart-widget-host__legend{width:100%;flex:none;grid-row:2;min-height:0;min-width:0;max-width:100%;display:flex;justify-content:flex-start;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:rgb(var(--ax-sys-color-border-lighter-surface)) transparent}:host ::ng-deep ax-chart-legend{display:block!important;height:auto!important;max-height:none;width:max-content;min-width:100%;max-width:none}:host ::ng-deep .ax-chart-legend{--ax-legend-bg: var(--ax-sys-color-lighter-surface);--ax-legend-text: var(--ax-sys-color-on-lighter-surface);--ax-legend-border: var(--ax-sys-color-border-lighter-surface);--ax-legend-radius: .625rem;--ax-legend-padding: .375rem .5rem;--ax-legend-gap: .375rem;--ax-legend-item-height: auto;height:auto;max-height:none;width:100%;overflow:visible;padding:var(--ax-legend-padding);gap:var(--ax-legend-gap);color:rgb(var(--ax-legend-text))}:host ::ng-deep .ax-chart-legend.ax-legend-horizontal{flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:flex-start;width:max-content;min-width:100%;max-width:none;overflow:visible;border:none;background:transparent;background-color:transparent;padding:.125rem .75rem .7rem;gap:.5rem}:host ::ng-deep .ax-legend-item{align-items:center;flex-shrink:0;gap:.375rem;height:auto;min-height:1.5rem;padding-block:.2rem;padding-inline:.5rem;border-radius:9999px;border:1px solid rgb(var(--ax-sys-color-border-lightest-surface));background-color:rgb(var(--ax-sys-color-lightest-surface));white-space:nowrap;transition:background-color .15s ease,border-color .15s ease,box-shadow .15s ease,opacity .15s ease,transform .15s ease}:host ::ng-deep .ax-legend-item:hover{border-color:rgb(var(--ax-sys-color-primary-500));background-color:rgb(var(--ax-sys-color-primary-500));box-shadow:0 1px 2px #0f172a0f}@supports (color: color-mix(in lab,red,red)){:host ::ng-deep .ax-legend-item:hover{border-color:color-mix(in srgb,rgb(var(--ax-sys-color-primary-500)) 35%,rgb(var(--ax-sys-color-border-lightest-surface)))}}@supports (color: color-mix(in lab,red,red)){:host ::ng-deep .ax-legend-item:hover{background-color:color-mix(in srgb,rgb(var(--ax-sys-color-primary-500)) 6%,rgb(var(--ax-sys-color-lightest-surface)))}}:host ::ng-deep .ax-legend-item:active{transform:scale(.98)}:host ::ng-deep .ax-legend-item.ax-legend-item-hidden{opacity:.62}:host ::ng-deep .ax-legend-color{width:.625rem;height:.625rem;flex-shrink:0;border-radius:9999px;box-shadow:0 0 0 1px rgb(var(--ax-legend-text))}@supports (color: color-mix(in lab,red,red)){:host ::ng-deep .ax-legend-color{box-shadow:0 0 0 1px color-mix(in srgb,rgb(var(--ax-legend-text)) 18%,transparent)}}:host ::ng-deep .ax-legend-name{font-size:var(--text-xs, .75rem);line-height:var(--tw-leading, var(--text-xs--line-height, calc(1 / .75)));--tw-font-weight: var(--font-weight-medium, 500);font-weight:var(--font-weight-medium, 500);max-width:9rem;overflow:hidden;text-overflow:ellipsis}:host ::ng-deep .ax-legend-value{font-size:var(--text-xs, .75rem);line-height:var(--tw-leading, var(--text-xs--line-height, calc(1 / .75)));--tw-font-weight: var(--font-weight-semibold, 600);font-weight:var(--font-weight-semibold, 600);--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);margin-inline-start:0;opacity:1;color:rgb(var(--ax-sys-color-on-lightest-surface))}:host ::ng-deep .ax-legend-percentage{margin-inline-start:0;border-radius:9999px;padding-inline:.4rem;padding-block:.125rem;font-size:.6875rem;line-height:1;font-weight:600;font-variant-numeric:tabular-nums;background-color:rgb(var(--ax-legend-text))}@supports (color: color-mix(in lab,red,red)){:host ::ng-deep .ax-legend-percentage{background-color:color-mix(in srgb,rgb(var(--ax-legend-text)) 12%,transparent)}}:host ::ng-deep ax-donut-chart,:host ::ng-deep ax-gauge-chart,:host ::ng-deep ax-bar-chart,:host ::ng-deep ax-line-chart,:host ::ng-deep ax-funnel-chart{display:block!important;width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important}:host ::ng-deep .axp-chart-widget-host__chart--heatmap ax-heatmap-chart{display:block!important;width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}:host ::ng-deep ax-donut-chart .ax-donut-chart,:host ::ng-deep ax-gauge-chart .ax-gauge-chart,:host ::ng-deep ax-bar-chart .ax-bar-chart,:host ::ng-deep ax-line-chart .ax-line-chart,:host ::ng-deep ax-funnel-chart .ax-funnel-chart-container{min-height:0!important;height:100%!important;width:100%!important;padding:.25rem!important}:host ::ng-deep .axp-chart-widget-host__chart--heatmap ax-heatmap-chart .ax-heatmap-chart-container,:host ::ng-deep .axp-chart-widget-host__chart--heatmap .ax-heatmap-chart{min-height:0!important;height:auto!important;width:100%!important;max-width:100%!important;padding:.25rem!important;overflow:visible!important}:host ::ng-deep .axp-chart-widget-host__chart--heatmap svg{display:block;width:100%!important;max-width:100%!important;height:auto!important;overflow:visible!important}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@property --tw-ordinal{syntax: \"*\"; inherits: false;}@property --tw-slashed-zero{syntax: \"*\"; inherits: false;}@property --tw-numeric-figure{syntax: \"*\"; inherits: false;}@property --tw-numeric-spacing{syntax: \"*\"; inherits: false;}@property --tw-numeric-fraction{syntax: \"*\"; inherits: false;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-font-weight: initial;--tw-ordinal: initial;--tw-slashed-zero: initial;--tw-numeric-figure: initial;--tw-numeric-spacing: initial;--tw-numeric-fraction: initial}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "component", type: AXDonutChartComponent, selector: "ax-donut-chart", inputs: ["data", "options"], outputs: ["segmentClick", "segmentHover"] }, { kind: "component", type: AXChartLegendComponent, selector: "ax-chart-legend", inputs: ["chart", "options"], outputs: ["itemClick", "itemMouseEnter", "itemMouseLeave"] }, { kind: "component", type: AXPChartQueryTabsComponent, selector: "axp-chart-query-tabs", inputs: ["tabs", "activeIndex"], outputs: ["activeIndexChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
137
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXPDonutChartWidgetViewComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<div class=\"axp-chart-widget-host\">\n <axp-chart-query-tabs\n [tabs]=\"queryTabs()\"\n [activeIndex]=\"activeTabIndex()\"\n (activeIndexChange)=\"selectQueryTab($event)\"\n />\n <div class=\"axp-chart-widget-host__body axp-chart-widget-host__body--with-legend\">\n <div class=\"axp-chart-widget-host__chart axp-chart-widget-host__chart--radial\">\n <ax-donut-chart\n #chart\n [data]=\"data()\"\n [options]=\"donutChartOptions()\"\n (segmentClick)=\"handleDonutChartSegmentClick($event)\"\n ></ax-donut-chart>\n </div>\n <!-- ----- Series indicator (legend) ----- -->\n @if (data().length > 0) {\n <div class=\"axp-chart-widget-host__legend\">\n <ax-chart-legend [chart]=\"chart\" [options]=\"legendOptions\"></ax-chart-legend>\n </div>\n }\n </div>\n</div>\n", styles: ["@layer properties;:host{display:block;width:100%;height:100%;min-height:0px;overflow:hidden}:host:has(.axp-chart-widget-host__chart--heatmap){block-size:auto;overflow:visible;min-block-size:0}.axp-chart-widget-host{display:flex;height:100%;min-height:0px;width:100%;flex-direction:column;gap:var(--spacing, .25rem)}.axp-chart-widget-host:has(.axp-chart-widget-host__chart--heatmap){block-size:auto;min-block-size:0;overflow:visible}.axp-chart-widget-host__body{display:flex;min-height:0px;flex:1;flex-direction:column;gap:var(--spacing, .25rem);padding-bottom:calc(var(--spacing, .25rem) * 2)}.axp-chart-widget-host__body:not(.axp-chart-widget-host__body--with-legend)>.axp-chart-widget-host__chart--radial{flex:1 1 auto}.axp-chart-widget-host__body--with-legend{min-height:0px;flex:1;gap:var(--spacing, .25rem);display:grid;grid-template-rows:minmax(0,1fr) auto}.axp-chart-widget-host__chart{position:relative;min-height:calc(var(--spacing, .25rem) * 64);width:100%;overflow:hidden;grid-row:1}.axp-chart-widget-host__chart--radial{position:relative;margin-inline:auto;align-self:center;justify-self:center;overflow:hidden;grid-row:1;flex:0 0 auto;height:auto;width:min(100%,18rem);max-width:100%;min-height:12rem;min-width:8rem;aspect-ratio:1 / 1}.axp-chart-widget-host__chart--funnel{position:relative;width:100%;overflow:hidden;block-size:20rem;flex:0 0 auto;max-block-size:24rem;min-block-size:16rem}.axp-chart-widget-host__chart--funnel ax-funnel-chart,.axp-chart-widget-host__chart--funnel .ax-funnel-chart-container{display:block;block-size:100%;inline-size:100%;min-block-size:0}.axp-chart-widget-host__body:has(.axp-chart-widget-host__chart--funnel){flex:none}.axp-chart-widget-host__chart--heatmap{position:relative;width:100%;max-width:100%;inline-size:100%;block-size:auto;flex:0 0 auto;overflow:visible;min-height:0!important;min-block-size:0!important;max-block-size:none}.axp-chart-widget-host__chart--heatmap ax-heatmap-chart,.axp-chart-widget-host__chart--heatmap .ax-heatmap-chart-container{display:block;inline-size:100%;max-inline-size:100%;block-size:auto;min-block-size:0;overflow:visible}.axp-chart-widget-host__body:has(.axp-chart-widget-host__chart--heatmap){flex:none;block-size:auto;min-block-size:0;overflow:visible}.axp-chart-widget-host__legend{width:100%;flex:none;grid-row:2;min-height:0;min-width:0;max-width:100%;display:flex;justify-content:flex-start;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:rgb(var(--ax-sys-color-border-lighter-surface)) transparent}:host ::ng-deep ax-chart-legend{display:block!important;height:auto!important;max-height:none;width:max-content;min-width:100%;max-width:none}:host ::ng-deep .ax-chart-legend{--ax-legend-bg: var(--ax-sys-color-lighter-surface);--ax-legend-text: var(--ax-sys-color-on-lighter-surface);--ax-legend-border: var(--ax-sys-color-border-lighter-surface);--ax-legend-radius: .625rem;--ax-legend-padding: .375rem .5rem;--ax-legend-gap: .375rem;--ax-legend-item-height: auto;height:auto;max-height:none;width:100%;overflow:visible;padding:var(--ax-legend-padding);gap:var(--ax-legend-gap);color:rgb(var(--ax-legend-text))}:host ::ng-deep .ax-chart-legend.ax-legend-horizontal{flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:flex-start;width:max-content;min-width:100%;max-width:none;overflow:visible;border:none;background:transparent;background-color:transparent;padding:.125rem .75rem .7rem;gap:.5rem}:host ::ng-deep .ax-legend-item{align-items:center;flex-shrink:0;gap:.375rem;height:auto;min-height:1.5rem;padding-block:.2rem;padding-inline:.5rem;border-radius:9999px;border:1px solid rgb(var(--ax-sys-color-border-lightest-surface));background-color:rgb(var(--ax-sys-color-lightest-surface));white-space:nowrap;transition:background-color .15s ease,border-color .15s ease,box-shadow .15s ease,opacity .15s ease,transform .15s ease}:host ::ng-deep .ax-legend-item:hover{border-color:rgb(var(--ax-sys-color-primary-500));background-color:rgb(var(--ax-sys-color-primary-500));box-shadow:0 1px 2px #0f172a0f}@supports (color: color-mix(in lab,red,red)){:host ::ng-deep .ax-legend-item:hover{border-color:color-mix(in srgb,rgb(var(--ax-sys-color-primary-500)) 35%,rgb(var(--ax-sys-color-border-lightest-surface)))}}@supports (color: color-mix(in lab,red,red)){:host ::ng-deep .ax-legend-item:hover{background-color:color-mix(in srgb,rgb(var(--ax-sys-color-primary-500)) 6%,rgb(var(--ax-sys-color-lightest-surface)))}}:host ::ng-deep .ax-legend-item:active{transform:scale(.98)}:host ::ng-deep .ax-legend-item.ax-legend-item-hidden{opacity:.62}:host ::ng-deep .ax-legend-color{width:.625rem;height:.625rem;flex-shrink:0;border-radius:9999px;box-shadow:0 0 0 1px rgb(var(--ax-legend-text))}@supports (color: color-mix(in lab,red,red)){:host ::ng-deep .ax-legend-color{box-shadow:0 0 0 1px color-mix(in srgb,rgb(var(--ax-legend-text)) 18%,transparent)}}:host ::ng-deep .ax-legend-name{font-size:var(--text-xs, .75rem);line-height:var(--tw-leading, var(--text-xs--line-height, calc(1 / .75)));--tw-font-weight: var(--font-weight-medium, 500);font-weight:var(--font-weight-medium, 500);max-width:9rem;overflow:hidden;text-overflow:ellipsis}:host ::ng-deep .ax-legend-value{font-size:var(--text-xs, .75rem);line-height:var(--tw-leading, var(--text-xs--line-height, calc(1 / .75)));--tw-font-weight: var(--font-weight-semibold, 600);font-weight:var(--font-weight-semibold, 600);--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);margin-inline-start:0;opacity:1;color:rgb(var(--ax-sys-color-on-lightest-surface))}:host ::ng-deep .ax-legend-percentage{margin-inline-start:0;border-radius:9999px;padding-inline:.4rem;padding-block:.125rem;font-size:.6875rem;line-height:1;font-weight:600;font-variant-numeric:tabular-nums;background-color:rgb(var(--ax-legend-text))}@supports (color: color-mix(in lab,red,red)){:host ::ng-deep .ax-legend-percentage{background-color:color-mix(in srgb,rgb(var(--ax-legend-text)) 12%,transparent)}}:host ::ng-deep ax-donut-chart,:host ::ng-deep ax-gauge-chart,:host ::ng-deep ax-bar-chart,:host ::ng-deep ax-line-chart,:host ::ng-deep ax-funnel-chart{display:block!important;width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important}:host ::ng-deep .axp-chart-widget-host__chart--heatmap ax-heatmap-chart{display:block!important;width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}:host ::ng-deep ax-donut-chart .ax-donut-chart,:host ::ng-deep ax-gauge-chart .ax-gauge-chart,:host ::ng-deep ax-bar-chart .ax-bar-chart,:host ::ng-deep ax-line-chart .ax-line-chart,:host ::ng-deep ax-funnel-chart .ax-funnel-chart-container{min-height:0!important;height:100%!important;width:100%!important;padding:.25rem!important}:host ::ng-deep .axp-chart-widget-host__chart--heatmap ax-heatmap-chart .ax-heatmap-chart-container,:host ::ng-deep .axp-chart-widget-host__chart--heatmap .ax-heatmap-chart{min-height:0!important;height:auto!important;width:100%!important;max-width:100%!important;padding:.25rem!important;overflow:visible!important}:host ::ng-deep .axp-chart-widget-host__chart--heatmap svg{display:block;width:100%!important;max-width:100%!important;height:auto!important;overflow:visible!important}:host:has(.ax-chart-empty){block-size:100%;overflow:hidden}.axp-chart-widget-host:has(.ax-chart-empty){block-size:100%;overflow:hidden}.axp-chart-widget-host__body:has(.ax-chart-empty){flex:1 1 auto;min-block-size:0;overflow:hidden}.axp-chart-widget-host__chart--heatmap:has(.ax-chart-empty){flex:1 1 auto;block-size:100%;min-block-size:16rem!important;overflow:hidden}:host ::ng-deep .axp-chart-widget-host__chart--heatmap:has(.ax-chart-empty) ax-heatmap-chart,:host ::ng-deep .axp-chart-widget-host__chart--heatmap:has(.ax-chart-empty) ax-heatmap-chart .ax-heatmap-chart-container{display:block!important;width:100%!important;max-width:100%!important;height:100%!important;min-height:16rem!important;max-height:none!important;overflow:hidden!important}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@property --tw-ordinal{syntax: \"*\"; inherits: false;}@property --tw-slashed-zero{syntax: \"*\"; inherits: false;}@property --tw-numeric-figure{syntax: \"*\"; inherits: false;}@property --tw-numeric-spacing{syntax: \"*\"; inherits: false;}@property --tw-numeric-fraction{syntax: \"*\"; inherits: false;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-font-weight: initial;--tw-ordinal: initial;--tw-slashed-zero: initial;--tw-numeric-figure: initial;--tw-numeric-spacing: initial;--tw-numeric-fraction: initial}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "component", type: AXDonutChartComponent, selector: "ax-donut-chart", inputs: ["data", "options"], outputs: ["segmentClick", "segmentHover"] }, { kind: "component", type: AXChartLegendComponent, selector: "ax-chart-legend", inputs: ["chart", "options"], outputs: ["itemClick", "itemMouseEnter", "itemMouseLeave"] }, { kind: "component", type: AXPChartQueryTabsComponent, selector: "axp-chart-query-tabs", inputs: ["tabs", "activeIndex"], outputs: ["activeIndexChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
138
138
  }
139
139
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPDonutChartWidgetViewComponent, decorators: [{
140
140
  type: Component,
141
- args: [{ imports: [AXDonutChartComponent, AXChartLegendComponent, AXPChartQueryTabsComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"axp-chart-widget-host\">\n <axp-chart-query-tabs\n [tabs]=\"queryTabs()\"\n [activeIndex]=\"activeTabIndex()\"\n (activeIndexChange)=\"selectQueryTab($event)\"\n />\n <div class=\"axp-chart-widget-host__body axp-chart-widget-host__body--with-legend\">\n <div class=\"axp-chart-widget-host__chart axp-chart-widget-host__chart--radial\">\n <ax-donut-chart\n #chart\n [data]=\"data()\"\n [options]=\"donutChartOptions()\"\n (segmentClick)=\"handleDonutChartSegmentClick($event)\"\n ></ax-donut-chart>\n </div>\n <!-- ----- Series indicator (legend) ----- -->\n @if (data().length > 0) {\n <div class=\"axp-chart-widget-host__legend\">\n <ax-chart-legend [chart]=\"chart\" [options]=\"legendOptions\"></ax-chart-legend>\n </div>\n }\n </div>\n</div>\n", styles: ["@layer properties;:host{display:block;width:100%;height:100%;min-height:0px;overflow:hidden}:host:has(.axp-chart-widget-host__chart--heatmap){block-size:auto;overflow:visible;min-block-size:0}.axp-chart-widget-host{display:flex;height:100%;min-height:0px;width:100%;flex-direction:column;gap:var(--spacing, .25rem)}.axp-chart-widget-host:has(.axp-chart-widget-host__chart--heatmap){block-size:auto;min-block-size:0;overflow:visible}.axp-chart-widget-host__body{display:flex;min-height:0px;flex:1;flex-direction:column;gap:var(--spacing, .25rem);padding-bottom:calc(var(--spacing, .25rem) * 2)}.axp-chart-widget-host__body:not(.axp-chart-widget-host__body--with-legend)>.axp-chart-widget-host__chart--radial{flex:1 1 auto}.axp-chart-widget-host__body--with-legend{min-height:0px;flex:1;gap:var(--spacing, .25rem);display:grid;grid-template-rows:minmax(0,1fr) auto}.axp-chart-widget-host__chart{position:relative;min-height:calc(var(--spacing, .25rem) * 64);width:100%;overflow:hidden;grid-row:1}.axp-chart-widget-host__chart--radial{position:relative;margin-inline:auto;align-self:center;justify-self:center;overflow:hidden;grid-row:1;flex:0 0 auto;height:auto;width:min(100%,18rem);max-width:100%;min-height:12rem;min-width:8rem;aspect-ratio:1 / 1}.axp-chart-widget-host__chart--funnel{position:relative;width:100%;overflow:hidden;block-size:20rem;flex:0 0 auto;max-block-size:24rem;min-block-size:16rem}.axp-chart-widget-host__chart--funnel ax-funnel-chart,.axp-chart-widget-host__chart--funnel .ax-funnel-chart-container{display:block;block-size:100%;inline-size:100%;min-block-size:0}.axp-chart-widget-host__body:has(.axp-chart-widget-host__chart--funnel){flex:none}.axp-chart-widget-host__chart--heatmap{position:relative;width:100%;max-width:100%;inline-size:100%;block-size:auto;flex:0 0 auto;overflow:visible;min-height:0!important;min-block-size:0!important;max-block-size:none}.axp-chart-widget-host__chart--heatmap ax-heatmap-chart,.axp-chart-widget-host__chart--heatmap .ax-heatmap-chart-container{display:block;inline-size:100%;max-inline-size:100%;block-size:auto;min-block-size:0;overflow:visible}.axp-chart-widget-host__body:has(.axp-chart-widget-host__chart--heatmap){flex:none;block-size:auto;min-block-size:0;overflow:visible}.axp-chart-widget-host__legend{width:100%;flex:none;grid-row:2;min-height:0;min-width:0;max-width:100%;display:flex;justify-content:flex-start;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:rgb(var(--ax-sys-color-border-lighter-surface)) transparent}:host ::ng-deep ax-chart-legend{display:block!important;height:auto!important;max-height:none;width:max-content;min-width:100%;max-width:none}:host ::ng-deep .ax-chart-legend{--ax-legend-bg: var(--ax-sys-color-lighter-surface);--ax-legend-text: var(--ax-sys-color-on-lighter-surface);--ax-legend-border: var(--ax-sys-color-border-lighter-surface);--ax-legend-radius: .625rem;--ax-legend-padding: .375rem .5rem;--ax-legend-gap: .375rem;--ax-legend-item-height: auto;height:auto;max-height:none;width:100%;overflow:visible;padding:var(--ax-legend-padding);gap:var(--ax-legend-gap);color:rgb(var(--ax-legend-text))}:host ::ng-deep .ax-chart-legend.ax-legend-horizontal{flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:flex-start;width:max-content;min-width:100%;max-width:none;overflow:visible;border:none;background:transparent;background-color:transparent;padding:.125rem .75rem .7rem;gap:.5rem}:host ::ng-deep .ax-legend-item{align-items:center;flex-shrink:0;gap:.375rem;height:auto;min-height:1.5rem;padding-block:.2rem;padding-inline:.5rem;border-radius:9999px;border:1px solid rgb(var(--ax-sys-color-border-lightest-surface));background-color:rgb(var(--ax-sys-color-lightest-surface));white-space:nowrap;transition:background-color .15s ease,border-color .15s ease,box-shadow .15s ease,opacity .15s ease,transform .15s ease}:host ::ng-deep .ax-legend-item:hover{border-color:rgb(var(--ax-sys-color-primary-500));background-color:rgb(var(--ax-sys-color-primary-500));box-shadow:0 1px 2px #0f172a0f}@supports (color: color-mix(in lab,red,red)){:host ::ng-deep .ax-legend-item:hover{border-color:color-mix(in srgb,rgb(var(--ax-sys-color-primary-500)) 35%,rgb(var(--ax-sys-color-border-lightest-surface)))}}@supports (color: color-mix(in lab,red,red)){:host ::ng-deep .ax-legend-item:hover{background-color:color-mix(in srgb,rgb(var(--ax-sys-color-primary-500)) 6%,rgb(var(--ax-sys-color-lightest-surface)))}}:host ::ng-deep .ax-legend-item:active{transform:scale(.98)}:host ::ng-deep .ax-legend-item.ax-legend-item-hidden{opacity:.62}:host ::ng-deep .ax-legend-color{width:.625rem;height:.625rem;flex-shrink:0;border-radius:9999px;box-shadow:0 0 0 1px rgb(var(--ax-legend-text))}@supports (color: color-mix(in lab,red,red)){:host ::ng-deep .ax-legend-color{box-shadow:0 0 0 1px color-mix(in srgb,rgb(var(--ax-legend-text)) 18%,transparent)}}:host ::ng-deep .ax-legend-name{font-size:var(--text-xs, .75rem);line-height:var(--tw-leading, var(--text-xs--line-height, calc(1 / .75)));--tw-font-weight: var(--font-weight-medium, 500);font-weight:var(--font-weight-medium, 500);max-width:9rem;overflow:hidden;text-overflow:ellipsis}:host ::ng-deep .ax-legend-value{font-size:var(--text-xs, .75rem);line-height:var(--tw-leading, var(--text-xs--line-height, calc(1 / .75)));--tw-font-weight: var(--font-weight-semibold, 600);font-weight:var(--font-weight-semibold, 600);--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);margin-inline-start:0;opacity:1;color:rgb(var(--ax-sys-color-on-lightest-surface))}:host ::ng-deep .ax-legend-percentage{margin-inline-start:0;border-radius:9999px;padding-inline:.4rem;padding-block:.125rem;font-size:.6875rem;line-height:1;font-weight:600;font-variant-numeric:tabular-nums;background-color:rgb(var(--ax-legend-text))}@supports (color: color-mix(in lab,red,red)){:host ::ng-deep .ax-legend-percentage{background-color:color-mix(in srgb,rgb(var(--ax-legend-text)) 12%,transparent)}}:host ::ng-deep ax-donut-chart,:host ::ng-deep ax-gauge-chart,:host ::ng-deep ax-bar-chart,:host ::ng-deep ax-line-chart,:host ::ng-deep ax-funnel-chart{display:block!important;width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important}:host ::ng-deep .axp-chart-widget-host__chart--heatmap ax-heatmap-chart{display:block!important;width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}:host ::ng-deep ax-donut-chart .ax-donut-chart,:host ::ng-deep ax-gauge-chart .ax-gauge-chart,:host ::ng-deep ax-bar-chart .ax-bar-chart,:host ::ng-deep ax-line-chart .ax-line-chart,:host ::ng-deep ax-funnel-chart .ax-funnel-chart-container{min-height:0!important;height:100%!important;width:100%!important;padding:.25rem!important}:host ::ng-deep .axp-chart-widget-host__chart--heatmap ax-heatmap-chart .ax-heatmap-chart-container,:host ::ng-deep .axp-chart-widget-host__chart--heatmap .ax-heatmap-chart{min-height:0!important;height:auto!important;width:100%!important;max-width:100%!important;padding:.25rem!important;overflow:visible!important}:host ::ng-deep .axp-chart-widget-host__chart--heatmap svg{display:block;width:100%!important;max-width:100%!important;height:auto!important;overflow:visible!important}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@property --tw-ordinal{syntax: \"*\"; inherits: false;}@property --tw-slashed-zero{syntax: \"*\"; inherits: false;}@property --tw-numeric-figure{syntax: \"*\"; inherits: false;}@property --tw-numeric-spacing{syntax: \"*\"; inherits: false;}@property --tw-numeric-fraction{syntax: \"*\"; inherits: false;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-font-weight: initial;--tw-ordinal: initial;--tw-slashed-zero: initial;--tw-numeric-figure: initial;--tw-numeric-spacing: initial;--tw-numeric-fraction: initial}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
141
+ args: [{ imports: [AXDonutChartComponent, AXChartLegendComponent, AXPChartQueryTabsComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"axp-chart-widget-host\">\n <axp-chart-query-tabs\n [tabs]=\"queryTabs()\"\n [activeIndex]=\"activeTabIndex()\"\n (activeIndexChange)=\"selectQueryTab($event)\"\n />\n <div class=\"axp-chart-widget-host__body axp-chart-widget-host__body--with-legend\">\n <div class=\"axp-chart-widget-host__chart axp-chart-widget-host__chart--radial\">\n <ax-donut-chart\n #chart\n [data]=\"data()\"\n [options]=\"donutChartOptions()\"\n (segmentClick)=\"handleDonutChartSegmentClick($event)\"\n ></ax-donut-chart>\n </div>\n <!-- ----- Series indicator (legend) ----- -->\n @if (data().length > 0) {\n <div class=\"axp-chart-widget-host__legend\">\n <ax-chart-legend [chart]=\"chart\" [options]=\"legendOptions\"></ax-chart-legend>\n </div>\n }\n </div>\n</div>\n", styles: ["@layer properties;:host{display:block;width:100%;height:100%;min-height:0px;overflow:hidden}:host:has(.axp-chart-widget-host__chart--heatmap){block-size:auto;overflow:visible;min-block-size:0}.axp-chart-widget-host{display:flex;height:100%;min-height:0px;width:100%;flex-direction:column;gap:var(--spacing, .25rem)}.axp-chart-widget-host:has(.axp-chart-widget-host__chart--heatmap){block-size:auto;min-block-size:0;overflow:visible}.axp-chart-widget-host__body{display:flex;min-height:0px;flex:1;flex-direction:column;gap:var(--spacing, .25rem);padding-bottom:calc(var(--spacing, .25rem) * 2)}.axp-chart-widget-host__body:not(.axp-chart-widget-host__body--with-legend)>.axp-chart-widget-host__chart--radial{flex:1 1 auto}.axp-chart-widget-host__body--with-legend{min-height:0px;flex:1;gap:var(--spacing, .25rem);display:grid;grid-template-rows:minmax(0,1fr) auto}.axp-chart-widget-host__chart{position:relative;min-height:calc(var(--spacing, .25rem) * 64);width:100%;overflow:hidden;grid-row:1}.axp-chart-widget-host__chart--radial{position:relative;margin-inline:auto;align-self:center;justify-self:center;overflow:hidden;grid-row:1;flex:0 0 auto;height:auto;width:min(100%,18rem);max-width:100%;min-height:12rem;min-width:8rem;aspect-ratio:1 / 1}.axp-chart-widget-host__chart--funnel{position:relative;width:100%;overflow:hidden;block-size:20rem;flex:0 0 auto;max-block-size:24rem;min-block-size:16rem}.axp-chart-widget-host__chart--funnel ax-funnel-chart,.axp-chart-widget-host__chart--funnel .ax-funnel-chart-container{display:block;block-size:100%;inline-size:100%;min-block-size:0}.axp-chart-widget-host__body:has(.axp-chart-widget-host__chart--funnel){flex:none}.axp-chart-widget-host__chart--heatmap{position:relative;width:100%;max-width:100%;inline-size:100%;block-size:auto;flex:0 0 auto;overflow:visible;min-height:0!important;min-block-size:0!important;max-block-size:none}.axp-chart-widget-host__chart--heatmap ax-heatmap-chart,.axp-chart-widget-host__chart--heatmap .ax-heatmap-chart-container{display:block;inline-size:100%;max-inline-size:100%;block-size:auto;min-block-size:0;overflow:visible}.axp-chart-widget-host__body:has(.axp-chart-widget-host__chart--heatmap){flex:none;block-size:auto;min-block-size:0;overflow:visible}.axp-chart-widget-host__legend{width:100%;flex:none;grid-row:2;min-height:0;min-width:0;max-width:100%;display:flex;justify-content:flex-start;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:rgb(var(--ax-sys-color-border-lighter-surface)) transparent}:host ::ng-deep ax-chart-legend{display:block!important;height:auto!important;max-height:none;width:max-content;min-width:100%;max-width:none}:host ::ng-deep .ax-chart-legend{--ax-legend-bg: var(--ax-sys-color-lighter-surface);--ax-legend-text: var(--ax-sys-color-on-lighter-surface);--ax-legend-border: var(--ax-sys-color-border-lighter-surface);--ax-legend-radius: .625rem;--ax-legend-padding: .375rem .5rem;--ax-legend-gap: .375rem;--ax-legend-item-height: auto;height:auto;max-height:none;width:100%;overflow:visible;padding:var(--ax-legend-padding);gap:var(--ax-legend-gap);color:rgb(var(--ax-legend-text))}:host ::ng-deep .ax-chart-legend.ax-legend-horizontal{flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:flex-start;width:max-content;min-width:100%;max-width:none;overflow:visible;border:none;background:transparent;background-color:transparent;padding:.125rem .75rem .7rem;gap:.5rem}:host ::ng-deep .ax-legend-item{align-items:center;flex-shrink:0;gap:.375rem;height:auto;min-height:1.5rem;padding-block:.2rem;padding-inline:.5rem;border-radius:9999px;border:1px solid rgb(var(--ax-sys-color-border-lightest-surface));background-color:rgb(var(--ax-sys-color-lightest-surface));white-space:nowrap;transition:background-color .15s ease,border-color .15s ease,box-shadow .15s ease,opacity .15s ease,transform .15s ease}:host ::ng-deep .ax-legend-item:hover{border-color:rgb(var(--ax-sys-color-primary-500));background-color:rgb(var(--ax-sys-color-primary-500));box-shadow:0 1px 2px #0f172a0f}@supports (color: color-mix(in lab,red,red)){:host ::ng-deep .ax-legend-item:hover{border-color:color-mix(in srgb,rgb(var(--ax-sys-color-primary-500)) 35%,rgb(var(--ax-sys-color-border-lightest-surface)))}}@supports (color: color-mix(in lab,red,red)){:host ::ng-deep .ax-legend-item:hover{background-color:color-mix(in srgb,rgb(var(--ax-sys-color-primary-500)) 6%,rgb(var(--ax-sys-color-lightest-surface)))}}:host ::ng-deep .ax-legend-item:active{transform:scale(.98)}:host ::ng-deep .ax-legend-item.ax-legend-item-hidden{opacity:.62}:host ::ng-deep .ax-legend-color{width:.625rem;height:.625rem;flex-shrink:0;border-radius:9999px;box-shadow:0 0 0 1px rgb(var(--ax-legend-text))}@supports (color: color-mix(in lab,red,red)){:host ::ng-deep .ax-legend-color{box-shadow:0 0 0 1px color-mix(in srgb,rgb(var(--ax-legend-text)) 18%,transparent)}}:host ::ng-deep .ax-legend-name{font-size:var(--text-xs, .75rem);line-height:var(--tw-leading, var(--text-xs--line-height, calc(1 / .75)));--tw-font-weight: var(--font-weight-medium, 500);font-weight:var(--font-weight-medium, 500);max-width:9rem;overflow:hidden;text-overflow:ellipsis}:host ::ng-deep .ax-legend-value{font-size:var(--text-xs, .75rem);line-height:var(--tw-leading, var(--text-xs--line-height, calc(1 / .75)));--tw-font-weight: var(--font-weight-semibold, 600);font-weight:var(--font-weight-semibold, 600);--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);margin-inline-start:0;opacity:1;color:rgb(var(--ax-sys-color-on-lightest-surface))}:host ::ng-deep .ax-legend-percentage{margin-inline-start:0;border-radius:9999px;padding-inline:.4rem;padding-block:.125rem;font-size:.6875rem;line-height:1;font-weight:600;font-variant-numeric:tabular-nums;background-color:rgb(var(--ax-legend-text))}@supports (color: color-mix(in lab,red,red)){:host ::ng-deep .ax-legend-percentage{background-color:color-mix(in srgb,rgb(var(--ax-legend-text)) 12%,transparent)}}:host ::ng-deep ax-donut-chart,:host ::ng-deep ax-gauge-chart,:host ::ng-deep ax-bar-chart,:host ::ng-deep ax-line-chart,:host ::ng-deep ax-funnel-chart{display:block!important;width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important}:host ::ng-deep .axp-chart-widget-host__chart--heatmap ax-heatmap-chart{display:block!important;width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}:host ::ng-deep ax-donut-chart .ax-donut-chart,:host ::ng-deep ax-gauge-chart .ax-gauge-chart,:host ::ng-deep ax-bar-chart .ax-bar-chart,:host ::ng-deep ax-line-chart .ax-line-chart,:host ::ng-deep ax-funnel-chart .ax-funnel-chart-container{min-height:0!important;height:100%!important;width:100%!important;padding:.25rem!important}:host ::ng-deep .axp-chart-widget-host__chart--heatmap ax-heatmap-chart .ax-heatmap-chart-container,:host ::ng-deep .axp-chart-widget-host__chart--heatmap .ax-heatmap-chart{min-height:0!important;height:auto!important;width:100%!important;max-width:100%!important;padding:.25rem!important;overflow:visible!important}:host ::ng-deep .axp-chart-widget-host__chart--heatmap svg{display:block;width:100%!important;max-width:100%!important;height:auto!important;overflow:visible!important}:host:has(.ax-chart-empty){block-size:100%;overflow:hidden}.axp-chart-widget-host:has(.ax-chart-empty){block-size:100%;overflow:hidden}.axp-chart-widget-host__body:has(.ax-chart-empty){flex:1 1 auto;min-block-size:0;overflow:hidden}.axp-chart-widget-host__chart--heatmap:has(.ax-chart-empty){flex:1 1 auto;block-size:100%;min-block-size:16rem!important;overflow:hidden}:host ::ng-deep .axp-chart-widget-host__chart--heatmap:has(.ax-chart-empty) ax-heatmap-chart,:host ::ng-deep .axp-chart-widget-host__chart--heatmap:has(.ax-chart-empty) ax-heatmap-chart .ax-heatmap-chart-container{display:block!important;width:100%!important;max-width:100%!important;height:100%!important;min-height:16rem!important;max-height:none!important;overflow:hidden!important}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@property --tw-ordinal{syntax: \"*\"; inherits: false;}@property --tw-slashed-zero{syntax: \"*\"; inherits: false;}@property --tw-numeric-figure{syntax: \"*\"; inherits: false;}@property --tw-numeric-spacing{syntax: \"*\"; inherits: false;}@property --tw-numeric-fraction{syntax: \"*\"; inherits: false;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-font-weight: initial;--tw-ordinal: initial;--tw-slashed-zero: initial;--tw-numeric-figure: initial;--tw-numeric-spacing: initial;--tw-numeric-fraction: initial}}}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"] }]
142
142
  }], ctorParameters: () => [] });
143
143
 
144
144
  export { AXPDonutChartWidgetViewComponent };
145
- //# sourceMappingURL=acorex-platform-module-dashboard-management-client-donut-chart-widget.component-DRiIRbhX.mjs.map
145
+ //# sourceMappingURL=acorex-platform-module-dashboard-management-client-donut-chart-widget.component-DB_7rLmK.mjs.map