@masterteam/dashboard-builder 0.0.118 → 0.0.119

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,3 +1,3 @@
1
- export { aZ as ActionsSettings, b5 as ArrayBuilderField, a6 as BarChartHandler, aS as BarControlUi, bj as CHART_CAPABILITIES, aV as CHART_TYPES, by as CONFIG_DOMAINS, c0 as CUSTOM_COLOR_OPTION, c as CardContentComponent, B as CardFilterComponent, H as CardInfoComponent, I as ChartCardComponent, a2 as ChartDataService, b9 as ChartFilterDrawer, aO as ChartSettingsDrawer, a_ as ChartViewer, b4 as ColorListField, ah as ComparisonChartHandler, a5 as DASHBOARD_ITEM_VISIBILITY, W as DEFAULT_MAP_REGION_KEY, l as DashboardBuilder, aH as DashboardBuilderService, e as DashboardItem, D as DashboardItemStoreService, aC as DashboardList, aI as DashboardStoreService, m as DashboardViewer, aY as DataSourceSettings, bf as DatasourcePanelComponent, aQ as DefaultControlUi, aP as DisplaySettings, G as DynamicFiltersComponent, aN as DynamicFiltersConfig, J as EChartComponent, P as EntitiesPreviewCardComponent, E as EntityInfoComponent, Q as EntityPreviewCardComponent, be as FilterBuilderComponent, bh as FilterByGroupPipe, bd as FilterChipsBarComponent, ab as GaugeChartHandler, aX as GeneralSettings, bi as GetChartActionsPipe, bc as GuidedConfigDialogComponent, aG as HTTPMethod, R as HeaderCardComponent, ch as ITEM_GUIDANCE_REGISTRY, b8 as ItemCardMenuComponent, bb as ItemConfigPopoverComponent, ba as ItemContextToolbarComponent, cj as ItemGuidanceService, b6 as KeyValueMapField, T as LastHistoryLevelCardComponent, b7 as LegendOrderField, aj as LevelCardHandler, af as LineChartHandler, U as ListStatisticCardComponent, V as MAP_REGIONS, aD as MODULE_CLASSIFICATION_LOG, aE as MODULE_CLASSIFICATION_LOG_NAME, aL as ManageBreadcrumb, aM as ManageFilterOnPage, aU as ManageItem, aW as ManageItemService, aK as ManagePages, ak as MapChartHandler, Y as MapViewComponent, ad as OverviewCardHandler, bB as POPOVER_TABS, bC as POPOVER_TAB_SPECS, an as PhaseGateStepperHandler, a7 as PieChartHandler, aR as PieControlUi, P as PropertiesCardComponent, al as RingGaugeChartHandler, am as SPlusChartHandler, bT as STYLE_PRESETS, bg as SchemaControlRendererComponent, b3 as SegmentedField, Z as SkeletonCardComponent, ag as SnapshotHandler, ai as SplitterChartHandler, a8 as StackBarChartHandler, aT as StackBarControlUi, S as StaticFiltersComponent, $ as StatisticCardComponent, b2 as StyleField, b0 as StyleSettingsRenderer, a$ as StyleStudioDrawer, ac as TableViewHandler, ae as TimelineHandler, a1 as TopbarCardComponent, x as addCommasToNumber, bP as applyBehaviorToPersisted, aB as applyBuiltInConditions, c3 as applyControlPatchToPersisted, c4 as applyControlPatchesToPersisted, bQ as applyFilterChipsToPersisted, bN as applyLabelLegendFormatToPersisted, bL as applyLayoutToPersisted, bJ as applyStyleToPersisted, bE as applyTitleToPersisted, a9 as axisFormatters, bO as behaviorToUi, cc as bindingKey, bS as buildAssembly, cb as buildDisplayFieldPredicate, k as cloneDeep, at as createAxisFormatter, au as createTooltipFormatter, bF as datasourceToUi, M as dateDisplayRawValue, b_ as deepMerge, ci as describeGuidance, bz as domainsForCapability, d as dynamicReorder, t as dynamicTextReplace, b1 as expandResetPatches, bG as fieldsToUi, bH as filtersToUi, bA as findDomain, bV as findPreset, c9 as flattenSchema, av as formatAxisLabel, ao as formatCurrency, as as formatDate, b$ as formatForEditor, ar as formatNumber, aq as formatPercentage, f as formatValue, aw as formatWordsUnderBar, ax as formatXAxis, u as generalConfiguration, cd as getBinding, bk as getCapabilityById, A as getColorFromConditions, c5 as getControlSchema, ap as getCurrencySuffix, c8 as getFallbackControlSchema, v as getLocalizedTitle, q as getNestedData, aa as groupDatesByYearAndMonth, bY as groupIssuesByDomain, az as handleFilterForCard, aA as handleFilterForSnapshot, ay as handleFiltersForCustom, bX as hasBlockingIssues, aF as isLogClassification, aJ as isManagePagesDeleteResult, z as isMobilePlatform, bM as labelLegendFormatToUi, bK as layoutToUi, ce as listBindings, cf as listBindingsForChart, c6 as listControlSchemaIds, c7 as listControlSchemas, a4 as loadImmediately, a0 as loadTableCard, O as mergePropertyAppearance, bs as moduleIdFromSelector, bp as normalizeAggregateFunction, bx as normalizeBeforeRequest, bw as normalizeBeforeSave, bn as normalizeChartTypeForRequest, N as normalizeDashboardCardEntityValue, bo as normalizeFilterOperation, bq as normalizeFilters, bv as normalizeOnLoad, a3 as observeNearViewport, bZ as parseAdvancedJson, bR as persistedToUi, bU as presetsForCapability, cg as readBoundValue, c1 as readByPath, bl as resolveCapability, ca as resolveDisplayFields, L as resolveEntityCheckbox, K as resolveEntityUserPhoto, X as resolveMapRegion, _ as resolveStatisticIconPlacement, br as selectorFromLegacy, c2 as setByPath, w as sortChartData, y as sortDataTableView, bI as styleToUi, p as switchAllKeysSmall, s as switchAllKeysToLower, bD as titleToUi, bm as toBackendChartType, bt as toBackendSourceLink, bu as toFormSourceLink, bW as validate } from './masterteam-dashboard-builder-masterteam-dashboard-builder-2MrkLmtr.mjs';
1
+ export { aZ as ActionsSettings, b5 as ArrayBuilderField, a6 as BarChartHandler, aS as BarControlUi, bj as CHART_CAPABILITIES, aV as CHART_TYPES, by as CONFIG_DOMAINS, c0 as CUSTOM_COLOR_OPTION, c as CardContentComponent, B as CardFilterComponent, H as CardInfoComponent, I as ChartCardComponent, a2 as ChartDataService, b9 as ChartFilterDrawer, aO as ChartSettingsDrawer, a_ as ChartViewer, b4 as ColorListField, ah as ComparisonChartHandler, ck as DASHBOARD_BUILDER_ASSIST, a5 as DASHBOARD_ITEM_VISIBILITY, W as DEFAULT_MAP_REGION_KEY, l as DashboardBuilder, aH as DashboardBuilderService, e as DashboardItem, D as DashboardItemStoreService, aC as DashboardList, aI as DashboardStoreService, m as DashboardViewer, aY as DataSourceSettings, bf as DatasourcePanelComponent, aQ as DefaultControlUi, aP as DisplaySettings, G as DynamicFiltersComponent, aN as DynamicFiltersConfig, J as EChartComponent, P as EntitiesPreviewCardComponent, E as EntityInfoComponent, Q as EntityPreviewCardComponent, be as FilterBuilderComponent, bh as FilterByGroupPipe, bd as FilterChipsBarComponent, ab as GaugeChartHandler, aX as GeneralSettings, bi as GetChartActionsPipe, bc as GuidedConfigDialogComponent, aG as HTTPMethod, R as HeaderCardComponent, ch as ITEM_GUIDANCE_REGISTRY, b8 as ItemCardMenuComponent, bb as ItemConfigPopoverComponent, ba as ItemContextToolbarComponent, cj as ItemGuidanceService, b6 as KeyValueMapField, T as LastHistoryLevelCardComponent, b7 as LegendOrderField, aj as LevelCardHandler, af as LineChartHandler, U as ListStatisticCardComponent, V as MAP_REGIONS, aD as MODULE_CLASSIFICATION_LOG, aE as MODULE_CLASSIFICATION_LOG_NAME, aL as ManageBreadcrumb, aM as ManageFilterOnPage, aU as ManageItem, aW as ManageItemService, aK as ManagePages, ak as MapChartHandler, Y as MapViewComponent, ad as OverviewCardHandler, bB as POPOVER_TABS, bC as POPOVER_TAB_SPECS, an as PhaseGateStepperHandler, a7 as PieChartHandler, aR as PieControlUi, P as PropertiesCardComponent, al as RingGaugeChartHandler, am as SPlusChartHandler, bT as STYLE_PRESETS, bg as SchemaControlRendererComponent, b3 as SegmentedField, Z as SkeletonCardComponent, ag as SnapshotHandler, ai as SplitterChartHandler, a8 as StackBarChartHandler, aT as StackBarControlUi, S as StaticFiltersComponent, $ as StatisticCardComponent, b2 as StyleField, b0 as StyleSettingsRenderer, a$ as StyleStudioDrawer, ac as TableViewHandler, ae as TimelineHandler, a1 as TopbarCardComponent, cl as WIDGET_PALETTE_TILE_HOST, x as addCommasToNumber, bP as applyBehaviorToPersisted, aB as applyBuiltInConditions, c3 as applyControlPatchToPersisted, c4 as applyControlPatchesToPersisted, bQ as applyFilterChipsToPersisted, bN as applyLabelLegendFormatToPersisted, bL as applyLayoutToPersisted, bJ as applyStyleToPersisted, bE as applyTitleToPersisted, a9 as axisFormatters, bO as behaviorToUi, cc as bindingKey, bS as buildAssembly, cb as buildDisplayFieldPredicate, k as cloneDeep, at as createAxisFormatter, au as createTooltipFormatter, cm as dashboardLevelOptions, bF as datasourceToUi, M as dateDisplayRawValue, b_ as deepMerge, ci as describeGuidance, bz as domainsForCapability, d as dynamicReorder, t as dynamicTextReplace, b1 as expandResetPatches, bG as fieldsToUi, bH as filtersToUi, bA as findDomain, bV as findPreset, cn as firstFreePosition, c9 as flattenSchema, av as formatAxisLabel, ao as formatCurrency, as as formatDate, b$ as formatForEditor, ar as formatNumber, aq as formatPercentage, f as formatValue, aw as formatWordsUnderBar, ax as formatXAxis, u as generalConfiguration, cd as getBinding, bk as getCapabilityById, A as getColorFromConditions, c5 as getControlSchema, ap as getCurrencySuffix, c8 as getFallbackControlSchema, v as getLocalizedTitle, q as getNestedData, aa as groupDatesByYearAndMonth, bY as groupIssuesByDomain, az as handleFilterForCard, aA as handleFilterForSnapshot, ay as handleFiltersForCustom, bX as hasBlockingIssues, aF as isLogClassification, aJ as isManagePagesDeleteResult, z as isMobilePlatform, bM as labelLegendFormatToUi, bK as layoutToUi, ce as listBindings, cf as listBindingsForChart, c6 as listControlSchemaIds, c7 as listControlSchemas, a4 as loadImmediately, a0 as loadTableCard, O as mergePropertyAppearance, bs as moduleIdFromSelector, bp as normalizeAggregateFunction, bx as normalizeBeforeRequest, bw as normalizeBeforeSave, bn as normalizeChartTypeForRequest, N as normalizeDashboardCardEntityValue, bo as normalizeFilterOperation, bq as normalizeFilters, bv as normalizeOnLoad, a3 as observeNearViewport, bZ as parseAdvancedJson, bR as persistedToUi, bU as presetsForCapability, cg as readBoundValue, c1 as readByPath, bl as resolveCapability, ca as resolveDisplayFields, L as resolveEntityCheckbox, K as resolveEntityUserPhoto, X as resolveMapRegion, _ as resolveStatisticIconPlacement, br as selectorFromLegacy, c2 as setByPath, w as sortChartData, y as sortDataTableView, bI as styleToUi, p as switchAllKeysSmall, s as switchAllKeysToLower, bD as titleToUi, bm as toBackendChartType, bt as toBackendSourceLink, bu as toFormSourceLink, bW as validate } from './masterteam-dashboard-builder-masterteam-dashboard-builder-D4ioW0Wu.mjs';
2
2
  export * from '@masterteam/dashboard-builder/access';
3
3
  //# 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.118",
3
+ "version": "0.0.119",
4
4
  "publishConfig": {
5
5
  "directory": "../../../dist/masterteam/dashboard-builder",
6
6
  "linkDirectory": true,
@@ -23,11 +23,12 @@
23
23
  "quill": "^2.0.3",
24
24
  "rxjs": "^7.8.2",
25
25
  "tailwindcss": "^4.2.2",
26
- "@masterteam/data-grid": "^0.0.5",
27
- "@masterteam/icons": "^0.0.17",
26
+ "@masterteam/components": "^0.0.340",
28
27
  "@masterteam/data-table": "^0.0.8",
29
28
  "@masterteam/timeline": "^0.0.24",
30
- "@masterteam/components": "^0.0.339"
29
+ "@masterteam/data-grid": "^0.0.5",
30
+ "@masterteam/icons": "^0.0.17",
31
+ "@masterteam/faris": "^0.2.0"
31
32
  },
32
33
  "dependencies": {
33
34
  "tslib": "^2.8.1",
@@ -35,6 +36,11 @@
35
36
  "maplibre-gl": "^6.17.0"
36
37
  },
37
38
  "sideEffects": false,
39
+ "peerDependenciesMeta": {
40
+ "@masterteam/faris": {
41
+ "optional": true
42
+ }
43
+ },
38
44
  "module": "fesm2022/masterteam-dashboard-builder.mjs",
39
45
  "typings": "types/masterteam-dashboard-builder.d.ts",
40
46
  "exports": {
@@ -48,6 +54,10 @@
48
54
  "./access": {
49
55
  "types": "./types/masterteam-dashboard-builder-access.d.ts",
50
56
  "default": "./fesm2022/masterteam-dashboard-builder-access.mjs"
57
+ },
58
+ "./faris": {
59
+ "types": "./types/masterteam-dashboard-builder-faris.d.ts",
60
+ "default": "./fesm2022/masterteam-dashboard-builder-faris.mjs"
51
61
  }
52
62
  },
53
63
  "type": "module"
@@ -0,0 +1,98 @@
1
+ import * as i0 from '@angular/core';
2
+ import * as _masterteam_dashboard_builder from '@masterteam/dashboard-builder';
3
+ import { ChartTypeConfig, DashboardBuilderAssist, DashboardChartItem } from '@masterteam/dashboard-builder';
4
+ import { MTIcon } from '@masterteam/icons';
5
+ import { FarisDashboardDocument } from '@masterteam/faris';
6
+
7
+ declare class FarisDashboardDrafts {
8
+ readonly mtFarisNewDashboardLink: i0.InputSignal<string | readonly unknown[] | null>;
9
+ private readonly builder;
10
+ private readonly pageActions;
11
+ private readonly targets;
12
+ private readonly registry;
13
+ private readonly session;
14
+ private readonly config;
15
+ private readonly transloco;
16
+ private readonly destroyRef;
17
+ private readonly router;
18
+ private readonly confirmation;
19
+ private readonly intent;
20
+ readonly levelId: i0.WritableSignal<number | null>;
21
+ private readonly records;
22
+ private readonly documents;
23
+ private readonly filled;
24
+ private readonly arriving;
25
+ private readonly timers;
26
+ private readonly arrivalTimers;
27
+ private readonly pendingConfirmations;
28
+ private readonly filledLabel;
29
+ private readonly target;
30
+ private readonly marks;
31
+ constructor();
32
+ private localized;
33
+ private load;
34
+ private openDashboard;
35
+ private confirm;
36
+ private loadDashboard;
37
+ private arrive;
38
+ /** A mark leaves when the user changed the widget (its geometry does not count). */
39
+ private dropChangedMarks;
40
+ private dropMark;
41
+ private clearTimers;
42
+ static ɵfac: i0.ɵɵFactoryDeclaration<FarisDashboardDrafts, never>;
43
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FarisDashboardDrafts, "mt-dashboard-builder[mtFarisDrafts]", never, { "mtFarisNewDashboardLink": { "alias": "mtFarisNewDashboardLink"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
44
+ }
45
+
46
+ /** The list supplies a level and opens whole drafts in the unsaved builder. */
47
+ declare class FarisDashboardListDrafts {
48
+ private readonly list;
49
+ private readonly config;
50
+ private readonly router;
51
+ private readonly intent;
52
+ private readonly levelId;
53
+ private readonly levels;
54
+ private readonly levelOptions;
55
+ constructor();
56
+ static ɵfac: i0.ɵɵFactoryDeclaration<FarisDashboardListDrafts, never>;
57
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FarisDashboardListDrafts, "mt-dashboard-list[mtFarisDrafts]", never, {}, {}, never, never, true, never>;
58
+ }
59
+
60
+ declare class FarisWidgetPaletteTile {
61
+ readonly widget: i0.InputSignal<ChartTypeConfig>;
62
+ readonly label: i0.InputSignal<string>;
63
+ protected readonly host: _masterteam_dashboard_builder.WidgetPaletteTileHost;
64
+ protected readonly split: i0.WritableSignal<boolean>;
65
+ private pointerType;
66
+ protected onPointerDown(event: PointerEvent): void;
67
+ protected choose(choice: 'assist' | 'select'): void;
68
+ static ɵfac: i0.ɵɵFactoryDeclaration<FarisWidgetPaletteTile, never>;
69
+ static ɵcmp: i0.ɵɵComponentDeclaration<FarisWidgetPaletteTile, "mt-faris-widget-palette-tile", never, { "widget": { "alias": "widget"; "required": true; "isSignal": true; }; "label": { "alias": "label"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
70
+ }
71
+
72
+ declare class FarisDashboardAssist implements DashboardBuilderAssist {
73
+ private readonly actions;
74
+ private readonly injector;
75
+ private readonly transloco;
76
+ readonly typeIds: i0.Signal<ReadonlySet<string>>;
77
+ readonly paletteTile: typeof FarisWidgetPaletteTile;
78
+ readonly itemLabel: i0.Signal<any>;
79
+ readonly itemIcon: MTIcon;
80
+ canAssistItem(item: DashboardChartItem): boolean;
81
+ static ɵfac: i0.ɵɵFactoryDeclaration<FarisDashboardAssist, never>;
82
+ static ɵprov: i0.ɵɵInjectableDeclaration<FarisDashboardAssist>;
83
+ }
84
+
85
+ /** One in-memory handoff to a new, unsaved dashboard. */
86
+ declare class FarisDashboardIntent {
87
+ private pending;
88
+ set(document: FarisDashboardDocument, draftId: string, levelId?: number | null): void;
89
+ take(): {
90
+ document: FarisDashboardDocument;
91
+ draftId: string;
92
+ levelId: number | null;
93
+ } | null;
94
+ static ɵfac: i0.ɵɵFactoryDeclaration<FarisDashboardIntent, never>;
95
+ static ɵprov: i0.ɵɵInjectableDeclaration<FarisDashboardIntent>;
96
+ }
97
+
98
+ export { FarisDashboardAssist, FarisDashboardDrafts, FarisDashboardIntent, FarisDashboardListDrafts, FarisWidgetPaletteTile };