@masterteam/dashboard-builder 0.0.86 → 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.
- package/README.md +18 -0
- package/assets/dashboard-builder.css +1 -1
- package/assets/i18n/ar.json +1 -0
- package/fesm2022/{masterteam-dashboard-builder-dashboard-dialog.component-Cw9EV2Xn.mjs → masterteam-dashboard-builder-dashboard-dialog.component-BAqiC_bq.mjs} +2 -2
- package/fesm2022/{masterteam-dashboard-builder-dashboard-dialog.component-Cw9EV2Xn.mjs.map → masterteam-dashboard-builder-dashboard-dialog.component-BAqiC_bq.mjs.map} +1 -1
- package/fesm2022/{masterteam-dashboard-builder-masterteam-dashboard-builder-Bcn8YzoD.mjs → masterteam-dashboard-builder-masterteam-dashboard-builder-DJI6mi2b.mjs} +220 -30
- package/fesm2022/masterteam-dashboard-builder-masterteam-dashboard-builder-DJI6mi2b.mjs.map +1 -0
- package/fesm2022/masterteam-dashboard-builder.mjs +1 -1
- package/package.json +3 -3
- package/types/masterteam-dashboard-builder.d.ts +33 -11
- package/fesm2022/masterteam-dashboard-builder-masterteam-dashboard-builder-Bcn8YzoD.mjs.map +0 -1
|
@@ -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-
|
|
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.
|
|
3
|
+
"version": "0.0.87",
|
|
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/
|
|
26
|
+
"@masterteam/components": "^0.0.0-watch+1788938712186",
|
|
27
27
|
"@masterteam/icons": "^0.0.17",
|
|
28
|
-
"@masterteam/
|
|
28
|
+
"@masterteam/timeline": "^0.0.23"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"tslib": "^2.8.1",
|
|
@@ -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
|
-
*
|
|
895
|
-
*
|
|
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<"
|
|
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 */
|
|
@@ -3891,14 +3903,14 @@ declare class ChartCardComponent implements OnInit, OnDestroy {
|
|
|
3891
3903
|
/** Whether the user can act on the Configure CTA (builder mode). */
|
|
3892
3904
|
readonly canConfigure: _angular_core.Signal<boolean>;
|
|
3893
3905
|
readonly hasSplitterData: _angular_core.Signal<boolean>;
|
|
3894
|
-
readonly splitterOrientation: _angular_core.Signal<"
|
|
3906
|
+
readonly splitterOrientation: _angular_core.Signal<"vertical" | "horizontal">;
|
|
3895
3907
|
readonly splitterGap: _angular_core.Signal<number>;
|
|
3896
3908
|
readonly hasTimelineData: _angular_core.Signal<boolean>;
|
|
3897
3909
|
readonly timelineEvents: _angular_core.Signal<any[]>;
|
|
3898
3910
|
readonly timelineResources: _angular_core.Signal<any[]>;
|
|
3899
3911
|
readonly timelineLabels: _angular_core.Signal<any[]>;
|
|
3900
3912
|
readonly timelineLegendIconType: _angular_core.Signal<string>;
|
|
3901
|
-
readonly timelineLegendPosition: _angular_core.Signal<"
|
|
3913
|
+
readonly timelineLegendPosition: _angular_core.Signal<"bottom" | "top" | "right" | "left">;
|
|
3902
3914
|
/** Timeline legend visibility — honors the Style Studio "Show legend" toggle. */
|
|
3903
3915
|
readonly timelineLegendShow: _angular_core.Signal<boolean>;
|
|
3904
3916
|
readonly timelineHeaderBgColor: _angular_core.Signal<string | null>;
|
|
@@ -4026,7 +4038,7 @@ declare class EChartComponent implements OnInit, AfterViewInit, OnChanges, OnDes
|
|
|
4026
4038
|
readonly showCustomLegend: _angular_core.Signal<boolean>;
|
|
4027
4039
|
readonly customLegendIconIsRect: _angular_core.Signal<boolean>;
|
|
4028
4040
|
/** Custom HTML legend placement from the configured legend position. */
|
|
4029
|
-
readonly customLegendPosition: _angular_core.Signal<"
|
|
4041
|
+
readonly customLegendPosition: _angular_core.Signal<"bottom" | "top" | "right" | "left">;
|
|
4030
4042
|
constructor();
|
|
4031
4043
|
ngOnInit(): Promise<void>;
|
|
4032
4044
|
ngAfterViewInit(): void;
|
|
@@ -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<"
|
|
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 */
|
|
@@ -4707,7 +4729,7 @@ declare class TableCardComponent implements OnInit, OnDestroy {
|
|
|
4707
4729
|
* two never disagree about visibility.
|
|
4708
4730
|
*/
|
|
4709
4731
|
readonly hasLegend: _angular_core.Signal<boolean>;
|
|
4710
|
-
readonly legendPosition: _angular_core.Signal<"
|
|
4732
|
+
readonly legendPosition: _angular_core.Signal<"bottom" | "top" | "right" | "left">;
|
|
4711
4733
|
readonly legendIconType: _angular_core.Signal<string>;
|
|
4712
4734
|
readonly isSideLegend: _angular_core.Signal<boolean>;
|
|
4713
4735
|
/** Processed table rows */
|
|
@@ -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<"
|
|
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
|
|
@@ -9050,12 +9072,12 @@ interface MapRow {
|
|
|
9050
9072
|
* boolean). Controlled: `value` in, `valueChange` out.
|
|
9051
9073
|
*/
|
|
9052
9074
|
declare class KeyValueMapField {
|
|
9053
|
-
readonly value: _angular_core.InputSignal<
|
|
9075
|
+
readonly value: _angular_core.InputSignal<Record<string, unknown> | unknown[] | null>;
|
|
9054
9076
|
readonly keys: _angular_core.InputSignal<ControlOption[]>;
|
|
9055
9077
|
readonly valueFields: _angular_core.InputSignal<ControlField[]>;
|
|
9056
9078
|
/** When true, store/read a positional array aligned to `keys` order. */
|
|
9057
9079
|
readonly asArray: _angular_core.InputSignal<boolean>;
|
|
9058
|
-
readonly valueChange: _angular_core.OutputEmitterRef<
|
|
9080
|
+
readonly valueChange: _angular_core.OutputEmitterRef<Record<string, unknown> | unknown[]>;
|
|
9059
9081
|
readonly rows: _angular_core.WritableSignal<MapRow[]>;
|
|
9060
9082
|
private readonly destroyRef;
|
|
9061
9083
|
/** Subscriptions for the current row set; torn down on every rebuild. */
|