@masterteam/dashboard-builder 0.0.85 → 0.0.87

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 { aG as ActionsSettings, aO as ArrayBuilderField, N as BarChartHandler, az as BarControlUi, b0 as CHART_CAPABILITIES, aC as CHART_TYPES, bf as CONFIG_DOMAINS, C as CardContentComponent, t as CardFilterComponent, v as CardInfoComponent, w as ChartCardComponent, M as ChartDataService, aS as ChartFilterDrawer, av as ChartSettingsDrawer, aH as ChartViewer, aN as ColorListField, $ as ComparisonChartHandler, d as DashboardBuilder, ao as DashboardBuilderService, a as DashboardItem, D as DashboardItemStoreService, aj as DashboardList, ap as DashboardStoreService, e as DashboardViewer, aF as DataSourceSettings, aY as DatasourcePanelComponent, ax as DefaultControlUi, aw as DisplaySettings, u as DynamicFiltersComponent, au as DynamicFiltersConfig, E as EChartComponent, P as EntitiesPreviewCardComponent, y as EntityInfoComponent, A as EntityPreviewCardComponent, aX as FilterBuilderComponent, a_ as FilterByGroupPipe, aW as FilterChipsBarComponent, V as GaugeChartHandler, aE as GeneralSettings, a$ as GetChartActionsPipe, aV as GuidedConfigDialogComponent, an as HTTPMethod, H as HeaderCardComponent, bZ as ITEM_GUIDANCE_REGISTRY, aR as ItemCardMenuComponent, aU as ItemConfigPopoverComponent, aT as ItemContextToolbarComponent, b$ as ItemGuidanceService, aP as KeyValueMapField, L as LastHistoryLevelCardComponent, aQ as LegendOrderField, a1 as LevelCardHandler, Z as LineChartHandler, B as ListStatisticCardComponent, ak as MODULE_CLASSIFICATION_LOG, al as MODULE_CLASSIFICATION_LOG_NAME, as as ManageBreadcrumb, at as ManageFilterOnPage, aB as ManageItem, aD as ManageItemService, ar as ManagePages, a2 as MapChartHandler, X as OverviewCardHandler, bi as POPOVER_TABS, bj as POPOVER_TAB_SPECS, a5 as PhaseGateStepperHandler, O as PieChartHandler, ay as PieControlUi, P as PropertiesCardComponent, a3 as RingGaugeChartHandler, a4 as SPlusChartHandler, bA as STYLE_PRESETS, aZ as SchemaControlRendererComponent, aM as SegmentedField, G as SkeletonCardComponent, _ as SnapshotHandler, a0 as SplitterChartHandler, Q as StackBarChartHandler, aA as StackBarControlUi, S as StaticFiltersComponent, J as StatisticCardComponent, aL as StyleField, aJ as StyleSettingsRenderer, aI as StyleStudioDrawer, T as TableCardComponent, W as TableViewHandler, Y as TimelineHandler, K as TopbarCardComponent, n as addCommasToNumber, bw as applyBehaviorToPersisted, bL as applyControlPatchToPersisted, bM as applyControlPatchesToPersisted, bx as applyFilterChipsToPersisted, bu as applyLabelLegendFormatToPersisted, bs as applyLayoutToPersisted, bq as applyStyleToPersisted, bl as applyTitleToPersisted, R as axisFormatters, bv as behaviorToUi, bU as bindingKey, bz as buildAssembly, bT as buildDisplayFieldPredicate, c as cloneDeep, ab as createAxisFormatter, ac as createTooltipFormatter, bm as datasourceToUi, bH as deepMerge, b_ as describeGuidance, bg as domainsForCapability, i as dynamicReorder, h as dynamicTextReplace, aK as expandResetPatches, bn as fieldsToUi, bo as filtersToUi, bh as findDomain, bC as findPreset, bR as flattenSchema, ad as formatAxisLabel, a6 as formatCurrency, aa as formatDate, bI as formatForEditor, a9 as formatNumber, a8 as formatPercentage, k as formatValue, ae as formatWordsUnderBar, af as formatXAxis, j as generalConfiguration, bV as getBinding, b1 as getCapabilityById, q as getColorFromConditions, bN as getControlSchema, a7 as getCurrencySuffix, bQ as getFallbackControlSchema, l as getLocalizedTitle, g as getNestedData, U as groupDatesByYearAndMonth, bF as groupIssuesByDomain, ah as handleFilterForCard, ai as handleFilterForSnapshot, ag as handleFiltersForCustom, bE as hasBlockingIssues, am as isLogClassification, aq as isManagePagesDeleteResult, p as isMobilePlatform, bt as labelLegendFormatToUi, br as layoutToUi, bW as listBindings, bX as listBindingsForChart, bO as listControlSchemaIds, bP as listControlSchemas, b9 as moduleIdFromSelector, b6 as normalizeAggregateFunction, be as normalizeBeforeRequest, bd as normalizeBeforeSave, b4 as normalizeChartTypeForRequest, z as normalizeDashboardCardEntityValue, b5 as normalizeFilterOperation, b7 as normalizeFilters, bc as normalizeOnLoad, bG as parseAdvancedJson, by as persistedToUi, bB as presetsForCapability, bY as readBoundValue, bJ as readByPath, b2 as resolveCapability, bS as resolveDisplayFields, x as resolveEntityUserPhoto, I as resolveStatisticIconPlacement, b8 as selectorFromLegacy, bK as setByPath, m as sortChartData, o as sortDataTableView, bp as styleToUi, f as switchAllKeysSmall, s as switchAllKeysToLower, bk as titleToUi, b3 as toBackendChartType, ba as toBackendSourceLink, bb as toFormSourceLink, bD as validate } from './masterteam-dashboard-builder-masterteam-dashboard-builder-ZuZRSX7e.mjs';
1
+ export { aG as ActionsSettings, aO as ArrayBuilderField, N as BarChartHandler, az as BarControlUi, b0 as CHART_CAPABILITIES, aC as CHART_TYPES, bf as CONFIG_DOMAINS, C as CardContentComponent, t as CardFilterComponent, v as CardInfoComponent, w as ChartCardComponent, M as ChartDataService, aS as ChartFilterDrawer, av as ChartSettingsDrawer, aH as ChartViewer, aN as ColorListField, $ as ComparisonChartHandler, d as DashboardBuilder, ao as DashboardBuilderService, a as DashboardItem, D as DashboardItemStoreService, aj as DashboardList, ap as DashboardStoreService, e as DashboardViewer, aF as DataSourceSettings, aY as DatasourcePanelComponent, ax as DefaultControlUi, aw as DisplaySettings, u as DynamicFiltersComponent, au as DynamicFiltersConfig, E as EChartComponent, P as EntitiesPreviewCardComponent, y as EntityInfoComponent, A as EntityPreviewCardComponent, aX as FilterBuilderComponent, a_ as FilterByGroupPipe, aW as FilterChipsBarComponent, V as GaugeChartHandler, aE as GeneralSettings, a$ as GetChartActionsPipe, aV as GuidedConfigDialogComponent, an as HTTPMethod, H as HeaderCardComponent, bZ as ITEM_GUIDANCE_REGISTRY, aR as ItemCardMenuComponent, aU as ItemConfigPopoverComponent, aT as ItemContextToolbarComponent, b$ as ItemGuidanceService, aP as KeyValueMapField, L as LastHistoryLevelCardComponent, aQ as LegendOrderField, a1 as LevelCardHandler, Z as LineChartHandler, B as ListStatisticCardComponent, ak as MODULE_CLASSIFICATION_LOG, al as MODULE_CLASSIFICATION_LOG_NAME, as as ManageBreadcrumb, at as ManageFilterOnPage, aB as ManageItem, aD as ManageItemService, ar as ManagePages, a2 as MapChartHandler, X as OverviewCardHandler, bi as POPOVER_TABS, bj as POPOVER_TAB_SPECS, a5 as PhaseGateStepperHandler, O as PieChartHandler, ay as PieControlUi, P as PropertiesCardComponent, a3 as RingGaugeChartHandler, a4 as SPlusChartHandler, bA as STYLE_PRESETS, aZ as SchemaControlRendererComponent, aM as SegmentedField, G as SkeletonCardComponent, _ as SnapshotHandler, a0 as SplitterChartHandler, Q as StackBarChartHandler, aA as StackBarControlUi, S as StaticFiltersComponent, J as StatisticCardComponent, aL as StyleField, aJ as StyleSettingsRenderer, aI as StyleStudioDrawer, T as TableCardComponent, W as TableViewHandler, Y as TimelineHandler, K as TopbarCardComponent, n as addCommasToNumber, bw as applyBehaviorToPersisted, bL as applyControlPatchToPersisted, bM as applyControlPatchesToPersisted, bx as applyFilterChipsToPersisted, bu as applyLabelLegendFormatToPersisted, bs as applyLayoutToPersisted, bq as applyStyleToPersisted, bl as applyTitleToPersisted, R as axisFormatters, bv as behaviorToUi, bU as bindingKey, bz as buildAssembly, bT as buildDisplayFieldPredicate, c as cloneDeep, ab as createAxisFormatter, ac as createTooltipFormatter, bm as datasourceToUi, bH as deepMerge, b_ as describeGuidance, bg as domainsForCapability, i as dynamicReorder, h as dynamicTextReplace, aK as expandResetPatches, bn as fieldsToUi, bo as filtersToUi, bh as findDomain, bC as findPreset, bR as flattenSchema, ad as formatAxisLabel, a6 as formatCurrency, aa as formatDate, bI as formatForEditor, a9 as formatNumber, a8 as formatPercentage, k as formatValue, ae as formatWordsUnderBar, af as formatXAxis, j as generalConfiguration, bV as getBinding, b1 as getCapabilityById, q as getColorFromConditions, bN as getControlSchema, a7 as getCurrencySuffix, bQ as getFallbackControlSchema, l as getLocalizedTitle, g as getNestedData, U as groupDatesByYearAndMonth, bF as groupIssuesByDomain, ah as handleFilterForCard, ai as handleFilterForSnapshot, ag as handleFiltersForCustom, bE as hasBlockingIssues, am as isLogClassification, aq as isManagePagesDeleteResult, p as isMobilePlatform, bt as labelLegendFormatToUi, br as layoutToUi, bW as listBindings, bX as listBindingsForChart, bO as listControlSchemaIds, bP as listControlSchemas, b9 as moduleIdFromSelector, b6 as normalizeAggregateFunction, be as normalizeBeforeRequest, bd as normalizeBeforeSave, b4 as normalizeChartTypeForRequest, z as normalizeDashboardCardEntityValue, b5 as normalizeFilterOperation, b7 as normalizeFilters, bc as normalizeOnLoad, bG as parseAdvancedJson, by as persistedToUi, bB as presetsForCapability, bY as readBoundValue, bJ as readByPath, b2 as resolveCapability, bS as resolveDisplayFields, x as resolveEntityUserPhoto, I as resolveStatisticIconPlacement, b8 as selectorFromLegacy, bK as setByPath, m as sortChartData, o as sortDataTableView, bp as styleToUi, f as switchAllKeysSmall, s as switchAllKeysToLower, bk as titleToUi, b3 as toBackendChartType, ba as toBackendSourceLink, bb as toFormSourceLink, bD as validate } from './masterteam-dashboard-builder-masterteam-dashboard-builder-DJI6mi2b.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.85",
3
+ "version": "0.0.87",
4
4
  "publishConfig": {
5
5
  "directory": "../../../dist/masterteam/dashboard-builder",
6
6
  "linkDirectory": true,
@@ -23,8 +23,8 @@
23
23
  "quill": "^2.0.3",
24
24
  "rxjs": "^7.8.2",
25
25
  "tailwindcss": "^4.2.2",
26
+ "@masterteam/components": "^0.0.0-watch+1788938712186",
26
27
  "@masterteam/icons": "^0.0.17",
27
- "@masterteam/components": "^0.0.279",
28
28
  "@masterteam/timeline": "^0.0.23"
29
29
  },
30
30
  "dependencies": {
@@ -891,8 +891,20 @@ declare function toBackendSourceLink(link: any, fallbackId: number): any;
891
891
  * (source1SelectionId / source1PropertyKey) both restore correctly — the
892
892
  * source-link form was rendering blank because it only read the FE keys.
893
893
  *
894
- * BE chained links use `sourceLinkId2` with the source1/source2 link
895
- * properties swapped (matching the runtime join direction); mirror that.
894
+ * A chained ("From previous link") row is encoded on EITHER side:
895
+ *
896
+ * - `sourceLinkId` — side 1 comes from a previous link's result, joined on
897
+ * `source1LinkProperty`. This is what `toBackendSourceLink` writes for a
898
+ * row the builder authored, and it maps straight back with no swap.
899
+ * - `sourceLinkId2` — side 2 comes from a previous link's result (what the
900
+ * backend's context-navigation path builder emits). The form only models
901
+ * "previous link on side 1", so that encoding is mirrored into side 1 with
902
+ * the two link properties swapped.
903
+ *
904
+ * Reading only `sourceLinkId2` silently dropped `sourceLinkId` on the way back
905
+ * in, so a row saved as chained reloaded as selection-to-selection and the
906
+ * builder's link-type tab snapped back to "Selection ↔ Selection" the moment a
907
+ * previous link was picked (#1546).
896
908
  */
897
909
  declare function toFormSourceLink(link: any): any;
898
910
  /**
@@ -3662,7 +3674,7 @@ declare class CardFilterComponent implements OnInit {
3662
3674
  /** Language code */
3663
3675
  readonly langCode: _angular_core.Signal<string>;
3664
3676
  /** Filter type */
3665
- readonly filterType: _angular_core.Signal<"select" | "text" | "date" | "multiselect" | "multiSelect" | "daterange">;
3677
+ readonly filterType: _angular_core.Signal<"date" | "text" | "select" | "multiselect" | "multiSelect" | "daterange">;
3666
3678
  /** Filter options */
3667
3679
  readonly options: _angular_core.Signal<_masterteam_dashboard_builder.FilterOption[]>;
3668
3680
  /** Placeholder text */
@@ -4151,6 +4163,16 @@ declare class EntityInfoComponent {
4151
4163
  /** Computed viewType in lowercase */
4152
4164
  readonly viewTypeLower: _angular_core.Signal<string>;
4153
4165
  readonly textValue: _angular_core.Signal<any>;
4166
+ /**
4167
+ * A `LongText` property stores rich-text HTML authored in the editor, so the
4168
+ * cell has to render it as markup — interpolating it printed the raw
4169
+ * `<p>…</p>` source into the table. Angular sanitizes `[innerHTML]`, and this
4170
+ * matches `mt-entity-long-text`, which is what the level-workspace table
4171
+ * renders the same property with.
4172
+ */
4173
+ readonly longTextHtml: _angular_core.Signal<any>;
4174
+ /** Tag-stripped text for the `title` tooltip — an attribute can't hold markup. */
4175
+ readonly longTextTooltip: _angular_core.Signal<string>;
4154
4176
  readonly numericValue: _angular_core.Signal<number | null>;
4155
4177
  readonly dateDisplayValue: _angular_core.Signal<any>;
4156
4178
  readonly currencyDisplayValue: _angular_core.Signal<any>;
@@ -4391,7 +4413,7 @@ declare class HeaderCardComponent implements OnInit, OnDestroy {
4391
4413
  /** Icon name */
4392
4414
  readonly icon: _angular_core.Signal<string>;
4393
4415
  /** Position of the layout icon relative to the header title. */
4394
- readonly iconPlacement: _angular_core.Signal<"end" | "start" | "top">;
4416
+ readonly iconPlacement: _angular_core.Signal<"start" | "end" | "top">;
4395
4417
  /** Logo configuration */
4396
4418
  readonly logo: _angular_core.Signal<any>;
4397
4419
  /** Logo URL */
@@ -4896,7 +4918,7 @@ declare class TopbarCardComponent implements OnInit, OnDestroy {
4896
4918
  readonly showSubtitle: _angular_core.Signal<boolean>;
4897
4919
  readonly icon: _angular_core.Signal<any>;
4898
4920
  /** Position of the layout icon relative to the topbar title. */
4899
- readonly iconPlacement: _angular_core.Signal<"end" | "start" | "top">;
4921
+ readonly iconPlacement: _angular_core.Signal<"start" | "end" | "top">;
4900
4922
  /**
4901
4923
  * Center the icon/title block within the topbar row
4902
4924
  * (configAsType.headerCardConfig.isHeaderCentered === true) — same source
@@ -5182,6 +5204,16 @@ declare class BarChartHandler {
5182
5204
  * Transforms bar chart data into entity preview format (flat array of properties)
5183
5205
  */
5184
5206
  handleEntityPreviewWithFormula(dataResponse: any, config: ItemConfig): any;
5207
+ /**
5208
+ * #1549 — a bar in the chart response is identified by `barType`, not `key`.
5209
+ * `ChartTypesServiceV2.BuildSingleCategoryChart` emits
5210
+ * `{ barType, value, color, extraValues }` and matches it against
5211
+ * `barTypes[].key`. Reading `key` alone made every lookup miss: the category
5212
+ * axis rendered a row of empty strings, the response's per-bar colors were
5213
+ * dropped, and grouped mode discarded every bar. `key` stays as the fallback
5214
+ * for the older, entity-shaped payloads that do carry it.
5215
+ */
5216
+ private resolveBarKey;
5185
5217
  private normalizeLegendPosition;
5186
5218
  private getLegendLayout;
5187
5219
  private getLegendGridOffset;