@masterteam/dashboard-builder 0.0.67 → 0.0.68

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.
@@ -1,2 +1,2 @@
1
- export { az as ActionsSettings, aH as ArrayBuilderField, I as BarChartHandler, as as BarControlUi, aV as CHART_CAPABILITIES, av as CHART_TYPES, b8 as CONFIG_DOMAINS, C as CardContentComponent, q as CardFilterComponent, t as CardInfoComponent, u as ChartCardComponent, G as ChartDataService, aL as ChartFilterDrawer, ao as ChartSettingsDrawer, aA as ChartViewer, aG as ColorListField, X as ComparisonChartHandler, b as DashboardBuilder, ah as DashboardBuilderService, a as DashboardItem, D as DashboardItemStoreService, af as DashboardList, ai as DashboardStoreService, d as DashboardViewer, ay as DataSourceSettings, aR as DatasourcePanelComponent, aq as DefaultControlUi, ap as DisplaySettings, r as DynamicFiltersComponent, an as DynamicFiltersConfig, E as EChartComponent, P as EntitiesPreviewCardComponent, v as EntityInfoComponent, x as EntityPreviewCardComponent, aQ as FilterBuilderComponent, aT as FilterByGroupPipe, aP as FilterChipsBarComponent, O as GaugeChartHandler, ax as GeneralSettings, aU as GetChartActionsPipe, aO as GuidedConfigDialogComponent, ag as HTTPMethod, H as HeaderCardComponent, bS as ITEM_GUIDANCE_REGISTRY, aK as ItemCardMenuComponent, aN as ItemConfigPopoverComponent, aM as ItemContextToolbarComponent, bU as ItemGuidanceService, aI as KeyValueMapField, L as LastHistoryLevelCardComponent, aJ as LegendOrderField, Z as LevelCardHandler, V as LineChartHandler, y as ListStatisticCardComponent, al as ManageBreadcrumb, am as ManageFilterOnPage, au as ManageItem, aw as ManageItemService, ak as ManagePages, _ as MapChartHandler, R as OverviewCardHandler, bb as POPOVER_TABS, bc as POPOVER_TAB_SPECS, a1 as PhaseGateStepperHandler, J as PieChartHandler, ar as PieControlUi, P as PropertiesCardComponent, $ as RingGaugeChartHandler, a0 as SPlusChartHandler, bt as STYLE_PRESETS, aS as SchemaControlRendererComponent, aF as SegmentedField, z as SkeletonCardComponent, W as SnapshotHandler, Y as SplitterChartHandler, K as StackBarChartHandler, at as StackBarControlUi, S as StaticFiltersComponent, A as StatisticCardComponent, aE as StyleField, aC as StyleSettingsRenderer, aB as StyleStudioDrawer, T as TableCardComponent, Q as TableViewHandler, U as TimelineHandler, B as TopbarCardComponent, m as addCommasToNumber, bp as applyBehaviorToPersisted, bE as applyControlPatchToPersisted, bF as applyControlPatchesToPersisted, bq as applyFilterChipsToPersisted, bn as applyLabelLegendFormatToPersisted, bl as applyLayoutToPersisted, bj as applyStyleToPersisted, be as applyTitleToPersisted, M as axisFormatters, bo as behaviorToUi, bN as bindingKey, bs as buildAssembly, bM as buildDisplayFieldPredicate, c as cloneDeep, a7 as createAxisFormatter, a8 as createTooltipFormatter, bf as datasourceToUi, bA as deepMerge, bT as describeGuidance, b9 as domainsForCapability, h as dynamicReorder, f as dynamicTextReplace, aD as expandResetPatches, bg as fieldsToUi, bh as filtersToUi, ba as findDomain, bv as findPreset, bK as flattenSchema, a9 as formatAxisLabel, a2 as formatCurrency, a6 as formatDate, bB as formatForEditor, a5 as formatNumber, a4 as formatPercentage, j as formatValue, aa as formatWordsUnderBar, ab as formatXAxis, i as generalConfiguration, bO as getBinding, aW as getCapabilityById, p as getColorFromConditions, bG as getControlSchema, a3 as getCurrencySuffix, bJ as getFallbackControlSchema, k as getLocalizedTitle, g as getNestedData, N as groupDatesByYearAndMonth, by as groupIssuesByDomain, ad as handleFilterForCard, ae as handleFilterForSnapshot, ac as handleFiltersForCustom, bx as hasBlockingIssues, aj as isManagePagesDeleteResult, o as isMobilePlatform, bm as labelLegendFormatToUi, bk as layoutToUi, bP as listBindings, bQ as listBindingsForChart, bH as listControlSchemaIds, bI as listControlSchemas, b2 as moduleIdFromSelector, a$ as normalizeAggregateFunction, b7 as normalizeBeforeRequest, b6 as normalizeBeforeSave, aZ as normalizeChartTypeForRequest, w as normalizeDashboardCardEntityValue, a_ as normalizeFilterOperation, b0 as normalizeFilters, b5 as normalizeOnLoad, bz as parseAdvancedJson, br as persistedToUi, bu as presetsForCapability, bR as readBoundValue, bC as readByPath, aX as resolveCapability, bL as resolveDisplayFields, b1 as selectorFromLegacy, bD as setByPath, l as sortChartData, n as sortDataTableView, bi as styleToUi, e as switchAllKeysSmall, s as switchAllKeysToLower, bd as titleToUi, aY as toBackendChartType, b3 as toBackendSourceLink, b4 as toFormSourceLink, bw as validate } from './masterteam-dashboard-builder-masterteam-dashboard-builder-AOC8TnU0.mjs';
1
+ export { az as ActionsSettings, aH as ArrayBuilderField, I as BarChartHandler, as as BarControlUi, aV as CHART_CAPABILITIES, av as CHART_TYPES, b8 as CONFIG_DOMAINS, C as CardContentComponent, q as CardFilterComponent, t as CardInfoComponent, u as ChartCardComponent, G as ChartDataService, aL as ChartFilterDrawer, ao as ChartSettingsDrawer, aA as ChartViewer, aG as ColorListField, X as ComparisonChartHandler, b as DashboardBuilder, ah as DashboardBuilderService, a as DashboardItem, D as DashboardItemStoreService, af as DashboardList, ai as DashboardStoreService, d as DashboardViewer, ay as DataSourceSettings, aR as DatasourcePanelComponent, aq as DefaultControlUi, ap as DisplaySettings, r as DynamicFiltersComponent, an as DynamicFiltersConfig, E as EChartComponent, P as EntitiesPreviewCardComponent, v as EntityInfoComponent, x as EntityPreviewCardComponent, aQ as FilterBuilderComponent, aT as FilterByGroupPipe, aP as FilterChipsBarComponent, O as GaugeChartHandler, ax as GeneralSettings, aU as GetChartActionsPipe, aO as GuidedConfigDialogComponent, ag as HTTPMethod, H as HeaderCardComponent, bS as ITEM_GUIDANCE_REGISTRY, aK as ItemCardMenuComponent, aN as ItemConfigPopoverComponent, aM as ItemContextToolbarComponent, bU as ItemGuidanceService, aI as KeyValueMapField, L as LastHistoryLevelCardComponent, aJ as LegendOrderField, Z as LevelCardHandler, V as LineChartHandler, y as ListStatisticCardComponent, al as ManageBreadcrumb, am as ManageFilterOnPage, au as ManageItem, aw as ManageItemService, ak as ManagePages, _ as MapChartHandler, R as OverviewCardHandler, bb as POPOVER_TABS, bc as POPOVER_TAB_SPECS, a1 as PhaseGateStepperHandler, J as PieChartHandler, ar as PieControlUi, P as PropertiesCardComponent, $ as RingGaugeChartHandler, a0 as SPlusChartHandler, bt as STYLE_PRESETS, aS as SchemaControlRendererComponent, aF as SegmentedField, z as SkeletonCardComponent, W as SnapshotHandler, Y as SplitterChartHandler, K as StackBarChartHandler, at as StackBarControlUi, S as StaticFiltersComponent, A as StatisticCardComponent, aE as StyleField, aC as StyleSettingsRenderer, aB as StyleStudioDrawer, T as TableCardComponent, Q as TableViewHandler, U as TimelineHandler, B as TopbarCardComponent, m as addCommasToNumber, bp as applyBehaviorToPersisted, bE as applyControlPatchToPersisted, bF as applyControlPatchesToPersisted, bq as applyFilterChipsToPersisted, bn as applyLabelLegendFormatToPersisted, bl as applyLayoutToPersisted, bj as applyStyleToPersisted, be as applyTitleToPersisted, M as axisFormatters, bo as behaviorToUi, bN as bindingKey, bs as buildAssembly, bM as buildDisplayFieldPredicate, c as cloneDeep, a7 as createAxisFormatter, a8 as createTooltipFormatter, bf as datasourceToUi, bA as deepMerge, bT as describeGuidance, b9 as domainsForCapability, h as dynamicReorder, f as dynamicTextReplace, aD as expandResetPatches, bg as fieldsToUi, bh as filtersToUi, ba as findDomain, bv as findPreset, bK as flattenSchema, a9 as formatAxisLabel, a2 as formatCurrency, a6 as formatDate, bB as formatForEditor, a5 as formatNumber, a4 as formatPercentage, j as formatValue, aa as formatWordsUnderBar, ab as formatXAxis, i as generalConfiguration, bO as getBinding, aW as getCapabilityById, p as getColorFromConditions, bG as getControlSchema, a3 as getCurrencySuffix, bJ as getFallbackControlSchema, k as getLocalizedTitle, g as getNestedData, N as groupDatesByYearAndMonth, by as groupIssuesByDomain, ad as handleFilterForCard, ae as handleFilterForSnapshot, ac as handleFiltersForCustom, bx as hasBlockingIssues, aj as isManagePagesDeleteResult, o as isMobilePlatform, bm as labelLegendFormatToUi, bk as layoutToUi, bP as listBindings, bQ as listBindingsForChart, bH as listControlSchemaIds, bI as listControlSchemas, b2 as moduleIdFromSelector, a$ as normalizeAggregateFunction, b7 as normalizeBeforeRequest, b6 as normalizeBeforeSave, aZ as normalizeChartTypeForRequest, w as normalizeDashboardCardEntityValue, a_ as normalizeFilterOperation, b0 as normalizeFilters, b5 as normalizeOnLoad, bz as parseAdvancedJson, br as persistedToUi, bu as presetsForCapability, bR as readBoundValue, bC as readByPath, aX as resolveCapability, bL as resolveDisplayFields, b1 as selectorFromLegacy, bD as setByPath, l as sortChartData, n as sortDataTableView, bi as styleToUi, e as switchAllKeysSmall, s as switchAllKeysToLower, bd as titleToUi, aY as toBackendChartType, b3 as toBackendSourceLink, b4 as toFormSourceLink, bw as validate } from './masterteam-dashboard-builder-masterteam-dashboard-builder-B2u_ZfFj.mjs';
2
2
  //# sourceMappingURL=masterteam-dashboard-builder.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@masterteam/dashboard-builder",
3
- "version": "0.0.67",
3
+ "version": "0.0.68",
4
4
  "publishConfig": {
5
5
  "directory": "../../../dist/masterteam/dashboard-builder",
6
6
  "linkDirectory": true,
@@ -23,7 +23,7 @@
23
23
  "quill": "^2.0.3",
24
24
  "rxjs": "^7.8.2",
25
25
  "tailwindcss": "^4.2.2",
26
- "@masterteam/components": "^0.0.234",
26
+ "@masterteam/components": "^0.0.236",
27
27
  "@masterteam/formula-builder": "^0.0.27",
28
28
  "@masterteam/icons": "^0.0.17",
29
29
  "@masterteam/timeline": "^0.0.20"
@@ -1189,7 +1189,7 @@ declare function formatForEditor(value: unknown): string;
1189
1189
  * renders a small bespoke editor so structured config never falls back to a raw
1190
1190
  * JSON textarea. `json` is retained ONLY for the Advanced escape hatch.
1191
1191
  */
1192
- type ControlFieldType = 'text' | 'multilineText' | 'number' | 'boolean' | 'color' | 'select' | 'multiselect' | 'iconPicker' | 'palette' | 'json' | 'numberRange' | 'cssDimension' | 'segmented' | 'colorList' | 'arrayBuilder' | 'keyValueMap' | 'conditionBuilder' | 'legendOrder';
1192
+ type ControlFieldType = 'text' | 'multilineText' | 'number' | 'boolean' | 'color' | 'select' | 'multiselect' | 'iconPicker' | 'palette' | 'json' | 'numberRange' | 'cssDimension' | 'segmented' | 'colorList' | 'arrayBuilder' | 'keyValueMap' | 'conditionBuilder' | 'legendOrder' | 'entryColors';
1193
1193
  /** Where the control lives in the popover. */
1194
1194
  type ControlSectionScope = 'simple' | 'advanced';
1195
1195
  /** Domain bucket — used by the popover to group controls and validation. */
@@ -4480,6 +4480,12 @@ declare class TableCardComponent implements OnInit, OnDestroy {
4480
4480
  readonly labels: _angular_core.WritableSignal<any[]>;
4481
4481
  /** Table legends are visible by default for backward compatibility. */
4482
4482
  readonly showLegend: _angular_core.Signal<boolean>;
4483
+ /**
4484
+ * Whether there is a legend to render at all. Shared by both hosts (the card
4485
+ * header's top-end slot and, when the header is hidden, the card body) so the
4486
+ * two never disagree about visibility.
4487
+ */
4488
+ readonly hasLegend: _angular_core.Signal<boolean>;
4483
4489
  /** Processed table rows */
4484
4490
  readonly tableRows: _angular_core.WritableSignal<any[]>;
4485
4491
  /** Grouped data */
@@ -8326,10 +8332,18 @@ interface LegendOrderItem {
8326
8332
  * `clientConfig.configAsType.legend.overrideLegendOrder`. Reset emits `[]`
8327
8333
  * (natural order). Every row also exposes an independent color override keyed
8328
8334
  * by the rendered legend name.
8335
+ *
8336
+ * With `reorderable` false the rows become a pure color editor (no drag handle,
8337
+ * no reset-order button, no `valueChange`). That is the mode the Bar-colors
8338
+ * control uses: a plain bar chart's bar order comes from the data / the "Sort
8339
+ * bars by" control, so an order override would persist a key the runtime never
8340
+ * reads.
8329
8341
  */
8330
8342
  declare class LegendOrderField {
8331
8343
  readonly items: _angular_core.InputSignal<LegendOrderItem[]>;
8332
8344
  readonly colorOverrides: _angular_core.InputSignal<Record<string, unknown>>;
8345
+ /** When false, render colors only — no drag handle, no order reset. */
8346
+ readonly reorderable: _angular_core.InputSignal<boolean>;
8333
8347
  readonly valueChange: _angular_core.OutputEmitterRef<string[]>;
8334
8348
  readonly colorChange: _angular_core.OutputEmitterRef<LegendColorChange>;
8335
8349
  /** Working list is just the input — reorder mutates a copy and emits. */
@@ -8339,7 +8353,7 @@ declare class LegendOrderField {
8339
8353
  colorFor(item: LegendOrderItem): string | null;
8340
8354
  setColor(item: LegendOrderItem, color: unknown): void;
8341
8355
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<LegendOrderField, never>;
8342
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<LegendOrderField, "mt-legend-order-field", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "colorOverrides": { "alias": "colorOverrides"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "colorChange": "colorChange"; }, never, never, true, never>;
8356
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<LegendOrderField, "mt-legend-order-field", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "colorOverrides": { "alias": "colorOverrides"; "required": false; "isSignal": true; }; "reorderable": { "alias": "reorderable"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "colorChange": "colorChange"; }, never, never, true, never>;
8343
8357
  }
8344
8358
 
8345
8359
  interface NavGroup {