@masterteam/dashboard-builder 0.0.103 → 0.0.104

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 { aU as ActionsSettings, b0 as ArrayBuilderField, a2 as BarChartHandler, aN as BarControlUi, be as CHART_CAPABILITIES, aQ as CHART_TYPES, bt as CONFIG_DOMAINS, bX as CUSTOM_COLOR_OPTION, C as CardContentComponent, t as CardFilterComponent, v as CardInfoComponent, w as ChartCardComponent, _ as ChartDataService, b4 as ChartFilterDrawer, aJ as ChartSettingsDrawer, aV as ChartViewer, a$ as ColorListField, ad as ComparisonChartHandler, a1 as DASHBOARD_ITEM_VISIBILITY, Q as DEFAULT_MAP_REGION_KEY, d as DashboardBuilder, aC as DashboardBuilderService, a as DashboardItem, D as DashboardItemStoreService, ax as DashboardList, aD as DashboardStoreService, e as DashboardViewer, aT as DataSourceSettings, ba as DatasourcePanelComponent, aL as DefaultControlUi, aK as DisplaySettings, u as DynamicFiltersComponent, aI as DynamicFiltersConfig, E as EChartComponent, P as EntitiesPreviewCardComponent, y as EntityInfoComponent, B as EntityPreviewCardComponent, b9 as FilterBuilderComponent, bc as FilterByGroupPipe, b8 as FilterChipsBarComponent, a7 as GaugeChartHandler, aS as GeneralSettings, bd as GetChartActionsPipe, b7 as GuidedConfigDialogComponent, aB as HTTPMethod, H as HeaderCardComponent, cc as ITEM_GUIDANCE_REGISTRY, b3 as ItemCardMenuComponent, b6 as ItemConfigPopoverComponent, b5 as ItemContextToolbarComponent, ce as ItemGuidanceService, b1 as KeyValueMapField, L as LastHistoryLevelCardComponent, b2 as LegendOrderField, af as LevelCardHandler, ab as LineChartHandler, G as ListStatisticCardComponent, R as MAP_DATA_ATTRIBUTION, I as MAP_FALLBACK_COLORS, M as MAP_MARKER_PATH, O as MAP_REGIONS, ay as MODULE_CLASSIFICATION_LOG, az as MODULE_CLASSIFICATION_LOG_NAME, aG as ManageBreadcrumb, aH as ManageFilterOnPage, aP as ManageItem, aR as ManageItemService, aF as ManagePages, ag as MapChartHandler, U as MapViewComponent, a9 as OverviewCardHandler, bw as POPOVER_TABS, bx as POPOVER_TAB_SPECS, aj as PhaseGateStepperHandler, a3 as PieChartHandler, aM as PieControlUi, P as PropertiesCardComponent, ah as RingGaugeChartHandler, ai as SPlusChartHandler, bO as STYLE_PRESETS, bb as SchemaControlRendererComponent, a_ as SegmentedField, V as SkeletonCardComponent, ac as SnapshotHandler, ae as SplitterChartHandler, a4 as StackBarChartHandler, aO as StackBarControlUi, S as StaticFiltersComponent, X as StatisticCardComponent, aZ as StyleField, aX as StyleSettingsRenderer, aW as StyleStudioDrawer, Y as TableCardComponent, a8 as TableViewHandler, aa as TimelineHandler, Z as TopbarCardComponent, n as addCommasToNumber, bK as applyBehaviorToPersisted, b_ as applyControlPatchToPersisted, b$ as applyControlPatchesToPersisted, bL as applyFilterChipsToPersisted, bI as applyLabelLegendFormatToPersisted, bG as applyLayoutToPersisted, bE as applyStyleToPersisted, bz as applyTitleToPersisted, a5 as axisFormatters, bJ as behaviorToUi, c7 as bindingKey, bN as buildAssembly, c6 as buildDisplayFieldPredicate, N as buildMapChartOption, c as cloneDeep, ap as createAxisFormatter, aq as createTooltipFormatter, bA as datasourceToUi, bV as deepMerge, cd as describeGuidance, bu as domainsForCapability, i as dynamicReorder, h as dynamicTextReplace, aY as expandResetPatches, bB as fieldsToUi, bC as filtersToUi, bv as findDomain, bQ as findPreset, c4 as flattenSchema, ar as formatAxisLabel, ak as formatCurrency, ao as formatDate, bW as formatForEditor, an as formatNumber, am as formatPercentage, k as formatValue, as as formatWordsUnderBar, at as formatXAxis, j as generalConfiguration, c8 as getBinding, bf as getCapabilityById, q as getColorFromConditions, c0 as getControlSchema, al as getCurrencySuffix, c3 as getFallbackControlSchema, l as getLocalizedTitle, g as getNestedData, a6 as groupDatesByYearAndMonth, bT as groupIssuesByDomain, av as handleFilterForCard, aw as handleFilterForSnapshot, au as handleFiltersForCustom, bS as hasBlockingIssues, aA as isLogClassification, aE as isManagePagesDeleteResult, p as isMobilePlatform, J as isPlottable, bH as labelLegendFormatToUi, bF as layoutToUi, c9 as listBindings, ca as listBindingsForChart, c1 as listControlSchemaIds, c2 as listControlSchemas, a0 as loadImmediately, A as mergePropertyAppearance, bn as moduleIdFromSelector, bk as normalizeAggregateFunction, bs as normalizeBeforeRequest, br as normalizeBeforeSave, bi as normalizeChartTypeForRequest, z as normalizeDashboardCardEntityValue, bj as normalizeFilterOperation, bl as normalizeFilters, bq as normalizeOnLoad, $ as observeNearViewport, bU as parseAdvancedJson, bM as persistedToUi, K as plottableGroups, bP as presetsForCapability, cb as readBoundValue, bY as readByPath, bg as resolveCapability, c5 as resolveDisplayFields, x as resolveEntityUserPhoto, T as resolveMapRegion, W as resolveStatisticIconPlacement, bm as selectorFromLegacy, bZ as setByPath, m as sortChartData, o as sortDataTableView, bD as styleToUi, f as switchAllKeysSmall, s as switchAllKeysToLower, by as titleToUi, bh as toBackendChartType, bo as toBackendSourceLink, bp as toFormSourceLink, bR as validate } from './masterteam-dashboard-builder-masterteam-dashboard-builder-DeQ5UwRF.mjs';
1
+ export { aU as ActionsSettings, b0 as ArrayBuilderField, a2 as BarChartHandler, aN as BarControlUi, be as CHART_CAPABILITIES, aQ as CHART_TYPES, bt as CONFIG_DOMAINS, bX as CUSTOM_COLOR_OPTION, C as CardContentComponent, t as CardFilterComponent, v as CardInfoComponent, w as ChartCardComponent, _ as ChartDataService, b4 as ChartFilterDrawer, aJ as ChartSettingsDrawer, aV as ChartViewer, a$ as ColorListField, ad as ComparisonChartHandler, a1 as DASHBOARD_ITEM_VISIBILITY, Q as DEFAULT_MAP_REGION_KEY, d as DashboardBuilder, aC as DashboardBuilderService, a as DashboardItem, D as DashboardItemStoreService, ax as DashboardList, aD as DashboardStoreService, e as DashboardViewer, aT as DataSourceSettings, ba as DatasourcePanelComponent, aL as DefaultControlUi, aK as DisplaySettings, u as DynamicFiltersComponent, aI as DynamicFiltersConfig, E as EChartComponent, P as EntitiesPreviewCardComponent, y as EntityInfoComponent, B as EntityPreviewCardComponent, b9 as FilterBuilderComponent, bc as FilterByGroupPipe, b8 as FilterChipsBarComponent, a7 as GaugeChartHandler, aS as GeneralSettings, bd as GetChartActionsPipe, b7 as GuidedConfigDialogComponent, aB as HTTPMethod, H as HeaderCardComponent, cc as ITEM_GUIDANCE_REGISTRY, b3 as ItemCardMenuComponent, b6 as ItemConfigPopoverComponent, b5 as ItemContextToolbarComponent, ce as ItemGuidanceService, b1 as KeyValueMapField, L as LastHistoryLevelCardComponent, b2 as LegendOrderField, af as LevelCardHandler, ab as LineChartHandler, G as ListStatisticCardComponent, R as MAP_DATA_ATTRIBUTION, I as MAP_FALLBACK_COLORS, M as MAP_MARKER_PATH, O as MAP_REGIONS, ay as MODULE_CLASSIFICATION_LOG, az as MODULE_CLASSIFICATION_LOG_NAME, aG as ManageBreadcrumb, aH as ManageFilterOnPage, aP as ManageItem, aR as ManageItemService, aF as ManagePages, ag as MapChartHandler, U as MapViewComponent, a9 as OverviewCardHandler, bw as POPOVER_TABS, bx as POPOVER_TAB_SPECS, aj as PhaseGateStepperHandler, a3 as PieChartHandler, aM as PieControlUi, P as PropertiesCardComponent, ah as RingGaugeChartHandler, ai as SPlusChartHandler, bO as STYLE_PRESETS, bb as SchemaControlRendererComponent, a_ as SegmentedField, V as SkeletonCardComponent, ac as SnapshotHandler, ae as SplitterChartHandler, a4 as StackBarChartHandler, aO as StackBarControlUi, S as StaticFiltersComponent, X as StatisticCardComponent, aZ as StyleField, aX as StyleSettingsRenderer, aW as StyleStudioDrawer, Y as TableCardComponent, a8 as TableViewHandler, aa as TimelineHandler, Z as TopbarCardComponent, n as addCommasToNumber, bK as applyBehaviorToPersisted, b_ as applyControlPatchToPersisted, b$ as applyControlPatchesToPersisted, bL as applyFilterChipsToPersisted, bI as applyLabelLegendFormatToPersisted, bG as applyLayoutToPersisted, bE as applyStyleToPersisted, bz as applyTitleToPersisted, a5 as axisFormatters, bJ as behaviorToUi, c7 as bindingKey, bN as buildAssembly, c6 as buildDisplayFieldPredicate, N as buildMapChartOption, c as cloneDeep, ap as createAxisFormatter, aq as createTooltipFormatter, bA as datasourceToUi, bV as deepMerge, cd as describeGuidance, bu as domainsForCapability, i as dynamicReorder, h as dynamicTextReplace, aY as expandResetPatches, bB as fieldsToUi, bC as filtersToUi, bv as findDomain, bQ as findPreset, c4 as flattenSchema, ar as formatAxisLabel, ak as formatCurrency, ao as formatDate, bW as formatForEditor, an as formatNumber, am as formatPercentage, k as formatValue, as as formatWordsUnderBar, at as formatXAxis, j as generalConfiguration, c8 as getBinding, bf as getCapabilityById, q as getColorFromConditions, c0 as getControlSchema, al as getCurrencySuffix, c3 as getFallbackControlSchema, l as getLocalizedTitle, g as getNestedData, a6 as groupDatesByYearAndMonth, bT as groupIssuesByDomain, av as handleFilterForCard, aw as handleFilterForSnapshot, au as handleFiltersForCustom, bS as hasBlockingIssues, aA as isLogClassification, aE as isManagePagesDeleteResult, p as isMobilePlatform, J as isPlottable, bH as labelLegendFormatToUi, bF as layoutToUi, c9 as listBindings, ca as listBindingsForChart, c1 as listControlSchemaIds, c2 as listControlSchemas, a0 as loadImmediately, A as mergePropertyAppearance, bn as moduleIdFromSelector, bk as normalizeAggregateFunction, bs as normalizeBeforeRequest, br as normalizeBeforeSave, bi as normalizeChartTypeForRequest, z as normalizeDashboardCardEntityValue, bj as normalizeFilterOperation, bl as normalizeFilters, bq as normalizeOnLoad, $ as observeNearViewport, bU as parseAdvancedJson, bM as persistedToUi, K as plottableGroups, bP as presetsForCapability, cb as readBoundValue, bY as readByPath, bg as resolveCapability, c5 as resolveDisplayFields, x as resolveEntityUserPhoto, T as resolveMapRegion, W as resolveStatisticIconPlacement, bm as selectorFromLegacy, bZ as setByPath, m as sortChartData, o as sortDataTableView, bD as styleToUi, f as switchAllKeysSmall, s as switchAllKeysToLower, by as titleToUi, bh as toBackendChartType, bo as toBackendSourceLink, bp as toFormSourceLink, bR as validate } from './masterteam-dashboard-builder-masterteam-dashboard-builder-CodhML2K.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.103",
3
+ "version": "0.0.104",
4
4
  "publishConfig": {
5
5
  "directory": "../../../dist/masterteam/dashboard-builder",
6
6
  "linkDirectory": true,
@@ -23,9 +23,9 @@
23
23
  "quill": "^2.0.3",
24
24
  "rxjs": "^7.8.2",
25
25
  "tailwindcss": "^4.2.2",
26
+ "@masterteam/icons": "^0.0.17",
26
27
  "@masterteam/timeline": "^0.0.23",
27
- "@masterteam/components": "^0.0.318",
28
- "@masterteam/icons": "^0.0.17"
28
+ "@masterteam/components": "^0.0.321"
29
29
  },
30
30
  "dependencies": {
31
31
  "tslib": "^2.8.1",
@@ -3708,7 +3708,7 @@ declare class CardFilterComponent implements OnInit {
3708
3708
  /** Language code */
3709
3709
  readonly langCode: _angular_core.Signal<string>;
3710
3710
  /** Filter type */
3711
- readonly filterType: _angular_core.Signal<"text" | "date" | "select" | "multiselect" | "multiSelect" | "daterange">;
3711
+ readonly filterType: _angular_core.Signal<"date" | "text" | "select" | "multiselect" | "multiSelect" | "daterange">;
3712
3712
  /** Filter options */
3713
3713
  readonly options: _angular_core.Signal<_masterteam_dashboard_builder.FilterOption[]>;
3714
3714
  /** Placeholder text */
@@ -3929,7 +3929,7 @@ declare class MapViewComponent {
3929
3929
  /** Hide the group legend when the widget's legend control is off. */
3930
3930
  readonly showLegend: _angular_core.InputSignal<boolean>;
3931
3931
  /** Where the widget's legend control puts the legend. */
3932
- readonly legendPosition: _angular_core.InputSignal<"left" | "right" | "top" | "bottom">;
3932
+ readonly legendPosition: _angular_core.InputSignal<"bottom" | "top" | "right" | "left">;
3933
3933
  /** Legend marker shape, from the widget's legend control. */
3934
3934
  readonly legendIcon: _angular_core.InputSignal<string | undefined>;
3935
3935
  /** Forwarded to `mt-echart` so it keys its chart instance per widget. */
@@ -4112,7 +4112,7 @@ declare class ChartCardComponent implements OnInit, OnDestroy {
4112
4112
  readonly mapViewConfig: _angular_core.Signal<MapViewConfig>;
4113
4113
  /** The widget's legend controls also govern the map's group legend. */
4114
4114
  readonly mapLegendShow: _angular_core.Signal<boolean>;
4115
- readonly mapLegendPosition: _angular_core.Signal<"left" | "right" | "top" | "bottom">;
4115
+ readonly mapLegendPosition: _angular_core.Signal<"bottom" | "top" | "right" | "left">;
4116
4116
  readonly mapLegendIcon: _angular_core.Signal<string | undefined>;
4117
4117
  private readonly mapLegend;
4118
4118
  onMapPointClick(point: MapViewPoint): void;
@@ -4126,14 +4126,14 @@ declare class ChartCardComponent implements OnInit, OnDestroy {
4126
4126
  /** Whether the user can act on the Configure CTA (builder mode). */
4127
4127
  readonly canConfigure: _angular_core.Signal<boolean>;
4128
4128
  readonly hasSplitterData: _angular_core.Signal<boolean>;
4129
- readonly splitterOrientation: _angular_core.Signal<"horizontal" | "vertical">;
4129
+ readonly splitterOrientation: _angular_core.Signal<"vertical" | "horizontal">;
4130
4130
  readonly splitterGap: _angular_core.Signal<number>;
4131
4131
  readonly hasTimelineData: _angular_core.Signal<boolean>;
4132
4132
  readonly timelineEvents: _angular_core.Signal<any[]>;
4133
4133
  readonly timelineResources: _angular_core.Signal<any[]>;
4134
4134
  readonly timelineLabels: _angular_core.Signal<any[]>;
4135
4135
  readonly timelineLegendIconType: _angular_core.Signal<string>;
4136
- readonly timelineLegendPosition: _angular_core.Signal<"left" | "right" | "top" | "bottom">;
4136
+ readonly timelineLegendPosition: _angular_core.Signal<"bottom" | "top" | "right" | "left">;
4137
4137
  /** Timeline legend visibility — honors the Style Studio "Show legend" toggle. */
4138
4138
  readonly timelineLegendShow: _angular_core.Signal<boolean>;
4139
4139
  readonly timelineHeaderBgColor: _angular_core.Signal<string | null>;
@@ -4264,7 +4264,7 @@ declare class EChartComponent implements OnInit, AfterViewInit, OnChanges, OnDes
4264
4264
  readonly showCustomLegend: _angular_core.Signal<boolean>;
4265
4265
  readonly customLegendIconIsRect: _angular_core.Signal<boolean>;
4266
4266
  /** Custom HTML legend placement from the configured legend position. */
4267
- readonly customLegendPosition: _angular_core.Signal<"left" | "right" | "top" | "bottom">;
4267
+ readonly customLegendPosition: _angular_core.Signal<"bottom" | "top" | "right" | "left">;
4268
4268
  constructor();
4269
4269
  ngOnInit(): Promise<void>;
4270
4270
  ngAfterViewInit(): void;
@@ -4651,7 +4651,7 @@ declare class HeaderCardComponent implements OnInit, OnDestroy {
4651
4651
  /** Icon name */
4652
4652
  readonly icon: _angular_core.Signal<string>;
4653
4653
  /** Position of the layout icon relative to the header title. */
4654
- readonly iconPlacement: _angular_core.Signal<"top" | "start" | "end">;
4654
+ readonly iconPlacement: _angular_core.Signal<"start" | "end" | "top">;
4655
4655
  /** Logo configuration */
4656
4656
  readonly logo: _angular_core.Signal<any>;
4657
4657
  /** Logo URL */
@@ -4967,7 +4967,7 @@ declare class TableCardComponent implements OnInit, OnDestroy {
4967
4967
  * two never disagree about visibility.
4968
4968
  */
4969
4969
  readonly hasLegend: _angular_core.Signal<boolean>;
4970
- readonly legendPosition: _angular_core.Signal<"left" | "right" | "top" | "bottom">;
4970
+ readonly legendPosition: _angular_core.Signal<"bottom" | "top" | "right" | "left">;
4971
4971
  readonly legendIconType: _angular_core.Signal<string>;
4972
4972
  readonly isSideLegend: _angular_core.Signal<boolean>;
4973
4973
  /** Processed table rows */
@@ -5159,7 +5159,7 @@ declare class TopbarCardComponent implements OnInit, OnDestroy {
5159
5159
  readonly showSubtitle: _angular_core.Signal<boolean>;
5160
5160
  readonly icon: _angular_core.Signal<any>;
5161
5161
  /** Position of the layout icon relative to the topbar title. */
5162
- readonly iconPlacement: _angular_core.Signal<"top" | "start" | "end">;
5162
+ readonly iconPlacement: _angular_core.Signal<"start" | "end" | "top">;
5163
5163
  /**
5164
5164
  * Center the icon/title block within the topbar row
5165
5165
  * (configAsType.headerCardConfig.isHeaderCentered === true) — same source
@@ -5169,7 +5169,7 @@ declare class TopbarCardComponent implements OnInit, OnDestroy {
5169
5169
  readonly iconColor: _angular_core.Signal<any>;
5170
5170
  readonly iconBackgroundColor: _angular_core.Signal<any>;
5171
5171
  readonly borderColor: _angular_core.Signal<any>;
5172
- readonly borderWidth: _angular_core.Signal<1 | 0>;
5172
+ readonly borderWidth: _angular_core.Signal<0 | 1>;
5173
5173
  readonly padding: _angular_core.Signal<number>;
5174
5174
  readonly titleFontSize: _angular_core.Signal<number>;
5175
5175
  readonly subtitleFontSize: _angular_core.Signal<number>;
@@ -5847,6 +5847,7 @@ declare class LevelCardHandler {
5847
5847
  }
5848
5848
 
5849
5849
  declare class MapChartHandler {
5850
+ private readonly storeService;
5850
5851
  private mapCity;
5851
5852
  /**
5852
5853
  * handleMapChart - for ECharts geo map
@@ -5855,6 +5856,22 @@ declare class MapChartHandler {
5855
5856
  handleMapChart(dataResponse: any, config: ItemConfig): any;
5856
5857
  private normalizeLegendPosition;
5857
5858
  private getLegendLayout;
5859
+ /**
5860
+ * The group a record is plotted under.
5861
+ *
5862
+ * The grouping property is optional: with none configured every record
5863
+ * lands in one unnamed group, which the map draws without a legend entry.
5864
+ * A record with no grouping value is grouped as "Unknown" rather than
5865
+ * dropped — the backend omits null properties from the row, so a missing
5866
+ * key means "no value", not "not requested".
5867
+ */
5868
+ private resolveGroupName;
5869
+ /**
5870
+ * Status values arrive as `{ display, en, ar, color }`, users as
5871
+ * `{ displayName }`, lookups as `{ display: { en, ar } }` and multi-user
5872
+ * properties as an array of users; anything else is a plain value.
5873
+ */
5874
+ private displayText;
5858
5875
  /**
5859
5876
  * handleLeafletMap - matches functionName from CHART_TYPES
5860
5877
  * Returns data directly as array of grouped records
@@ -8417,7 +8434,7 @@ declare class DataSourceSettings {
8417
8434
  * Active tab within the selection cycle: Selection (pick modules) · Source
8418
8435
  * Links (joins, only with >1 selection) · Query (fields).
8419
8436
  */
8420
- readonly activeSection: _angular_core.WritableSignal<"selection" | "query" | "sourceLinks">;
8437
+ readonly activeSection: _angular_core.WritableSignal<"query" | "selection" | "sourceLinks">;
8421
8438
  /** Selection mode inside the selection tab (informative authoring). */
8422
8439
  readonly selectionMode: _angular_core.WritableSignal<"advanced" | "context">;
8423
8440
  readonly contextTargetSelector: _angular_core.WritableSignal<string | null>;
@@ -9400,7 +9417,7 @@ interface MapRow {
9400
9417
  * boolean). Controlled: `value` in, `valueChange` out.
9401
9418
  */
9402
9419
  declare class KeyValueMapField {
9403
- readonly value: _angular_core.InputSignal<unknown[] | Record<string, unknown> | null>;
9420
+ readonly value: _angular_core.InputSignal<Record<string, unknown> | unknown[] | null>;
9404
9421
  readonly keys: _angular_core.InputSignal<ControlOption[]>;
9405
9422
  readonly valueFields: _angular_core.InputSignal<ControlField[]>;
9406
9423
  /** When true, store/read a positional array aligned to `keys` order. */
@@ -9409,7 +9426,7 @@ declare class KeyValueMapField {
9409
9426
  /** Properties Card: edit localized labels in the same positional row. */
9410
9427
  readonly integratedLabels: _angular_core.InputSignal<boolean>;
9411
9428
  readonly labelOverrides: _angular_core.InputSignal<Record<string, unknown>>;
9412
- readonly valueChange: _angular_core.OutputEmitterRef<unknown[] | Record<string, unknown>>;
9429
+ readonly valueChange: _angular_core.OutputEmitterRef<Record<string, unknown> | unknown[]>;
9413
9430
  readonly labelOverridesChange: _angular_core.OutputEmitterRef<Record<string, unknown>>;
9414
9431
  readonly rows: WritableSignal<MapRow[]>;
9415
9432
  readonly expandedRows: WritableSignal<ReadonlySet<string>>;