@masterteam/dashboard-builder 0.0.94 → 0.0.96
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 +597 -586
- package/assets/dashboard-builder.css +1 -1
- package/assets/i18n/ar.json +10 -3
- package/assets/i18n/en.json +10 -1
- package/fesm2022/{masterteam-dashboard-builder-dashboard-dialog.component-BpIXu0xi.mjs → masterteam-dashboard-builder-dashboard-dialog.component-CwWfkuF6.mjs} +2 -2
- package/fesm2022/{masterteam-dashboard-builder-dashboard-dialog.component-BpIXu0xi.mjs.map → masterteam-dashboard-builder-dashboard-dialog.component-CwWfkuF6.mjs.map} +1 -1
- package/fesm2022/{masterteam-dashboard-builder-masterteam-dashboard-builder-D8g_x5LK.mjs → masterteam-dashboard-builder-masterteam-dashboard-builder-oJge6v9b.mjs} +340 -45
- package/fesm2022/masterteam-dashboard-builder-masterteam-dashboard-builder-oJge6v9b.mjs.map +1 -0
- package/fesm2022/masterteam-dashboard-builder.mjs +1 -1
- package/package.json +3 -3
- package/types/masterteam-dashboard-builder.d.ts +50 -8
- package/fesm2022/masterteam-dashboard-builder-masterteam-dashboard-builder-D8g_x5LK.mjs.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { aR as ActionsSettings, aZ as ArrayBuilderField, $ as BarChartHandler, aK as BarControlUi, bb as CHART_CAPABILITIES, aN as CHART_TYPES, bq as CONFIG_DOMAINS, bU as CUSTOM_COLOR_OPTION, C as CardContentComponent, t as CardFilterComponent, v as CardInfoComponent, w as ChartCardComponent, _ as ChartDataService, b1 as ChartFilterDrawer, aG as ChartSettingsDrawer, aS as ChartViewer, aY as ColorListField, aa as ComparisonChartHandler, Q as DEFAULT_MAP_REGION_KEY, d as DashboardBuilder, az as DashboardBuilderService, a as DashboardItem, D as DashboardItemStoreService, au as DashboardList, aA as DashboardStoreService, e as DashboardViewer, aQ as DataSourceSettings, b7 as DatasourcePanelComponent, aI as DefaultControlUi, aH as DisplaySettings, u as DynamicFiltersComponent, aF as DynamicFiltersConfig, E as EChartComponent, P as EntitiesPreviewCardComponent, y as EntityInfoComponent, B as EntityPreviewCardComponent, b6 as FilterBuilderComponent, b9 as FilterByGroupPipe, b5 as FilterChipsBarComponent, a4 as GaugeChartHandler, aP as GeneralSettings, ba as GetChartActionsPipe, b4 as GuidedConfigDialogComponent, ay as HTTPMethod, H as HeaderCardComponent, c9 as ITEM_GUIDANCE_REGISTRY, b0 as ItemCardMenuComponent, b3 as ItemConfigPopoverComponent, b2 as ItemContextToolbarComponent, cb as ItemGuidanceService, a_ as KeyValueMapField, L as LastHistoryLevelCardComponent, a$ as LegendOrderField, ac as LevelCardHandler, a8 as LineChartHandler, G as ListStatisticCardComponent, R as MAP_DATA_ATTRIBUTION, I as MAP_FALLBACK_COLORS, M as MAP_MARKER_PATH, O as MAP_REGIONS, av as MODULE_CLASSIFICATION_LOG, aw as MODULE_CLASSIFICATION_LOG_NAME, aD as ManageBreadcrumb, aE as ManageFilterOnPage, aM as ManageItem, aO as ManageItemService, aC as ManagePages, ad as MapChartHandler, U as MapViewComponent, a6 as OverviewCardHandler, bt as POPOVER_TABS, bu as POPOVER_TAB_SPECS, ag as PhaseGateStepperHandler, a0 as PieChartHandler, aJ as PieControlUi, P as PropertiesCardComponent, ae as RingGaugeChartHandler, af as SPlusChartHandler, bL as STYLE_PRESETS, b8 as SchemaControlRendererComponent, aX as SegmentedField, V as SkeletonCardComponent, a9 as SnapshotHandler, ab as SplitterChartHandler, a1 as StackBarChartHandler, aL as StackBarControlUi, S as StaticFiltersComponent, X as StatisticCardComponent, aW as StyleField, aU as StyleSettingsRenderer, aT as StyleStudioDrawer, Y as TableCardComponent, a5 as TableViewHandler, a7 as TimelineHandler, Z as TopbarCardComponent, n as addCommasToNumber, bH as applyBehaviorToPersisted, bX as applyControlPatchToPersisted, bY as applyControlPatchesToPersisted, bI as applyFilterChipsToPersisted, bF as applyLabelLegendFormatToPersisted, bD as applyLayoutToPersisted, bB as applyStyleToPersisted, bw as applyTitleToPersisted, a2 as axisFormatters, bG as behaviorToUi, c4 as bindingKey, bK as buildAssembly, c3 as buildDisplayFieldPredicate, N as buildMapChartOption, c as cloneDeep, am as createAxisFormatter, an as createTooltipFormatter, bx as datasourceToUi, bS as deepMerge, ca as describeGuidance, br as domainsForCapability, i as dynamicReorder, h as dynamicTextReplace, aV as expandResetPatches, by as fieldsToUi, bz as filtersToUi, bs as findDomain, bN as findPreset, c1 as flattenSchema, ao as formatAxisLabel, ah as formatCurrency, al as formatDate, bT as formatForEditor, ak as formatNumber, aj as formatPercentage, k as formatValue, ap as formatWordsUnderBar, aq as formatXAxis, j as generalConfiguration, c5 as getBinding, bc as getCapabilityById, q as getColorFromConditions, bZ as getControlSchema, ai as getCurrencySuffix, c0 as getFallbackControlSchema, l as getLocalizedTitle, g as getNestedData, a3 as groupDatesByYearAndMonth, bQ as groupIssuesByDomain, as as handleFilterForCard, at as handleFilterForSnapshot, ar as handleFiltersForCustom, bP as hasBlockingIssues, ax as isLogClassification, aB as isManagePagesDeleteResult, p as isMobilePlatform, J as isPlottable, bE as labelLegendFormatToUi, bC as layoutToUi, c6 as listBindings, c7 as listBindingsForChart, b_ as listControlSchemaIds, b$ as listControlSchemas, A as mergePropertyAppearance, bk as moduleIdFromSelector, bh as normalizeAggregateFunction, bp as normalizeBeforeRequest, bo as normalizeBeforeSave, bf as normalizeChartTypeForRequest, z as normalizeDashboardCardEntityValue, bg as normalizeFilterOperation, bi as normalizeFilters, bn as normalizeOnLoad, bR as parseAdvancedJson, bJ as persistedToUi, K as plottableGroups, bM as presetsForCapability, c8 as readBoundValue, bV as readByPath, bd as resolveCapability, c2 as resolveDisplayFields, x as resolveEntityUserPhoto, T as resolveMapRegion, W as resolveStatisticIconPlacement, bj as selectorFromLegacy, bW as setByPath, m as sortChartData, o as sortDataTableView, bA as styleToUi, f as switchAllKeysSmall, s as switchAllKeysToLower, bv as titleToUi, be as toBackendChartType, bl as toBackendSourceLink, bm as toFormSourceLink, bO as validate } from './masterteam-dashboard-builder-masterteam-dashboard-builder-
|
|
1
|
+
export { aR as ActionsSettings, aZ as ArrayBuilderField, $ as BarChartHandler, aK as BarControlUi, bb as CHART_CAPABILITIES, aN as CHART_TYPES, bq as CONFIG_DOMAINS, bU as CUSTOM_COLOR_OPTION, C as CardContentComponent, t as CardFilterComponent, v as CardInfoComponent, w as ChartCardComponent, _ as ChartDataService, b1 as ChartFilterDrawer, aG as ChartSettingsDrawer, aS as ChartViewer, aY as ColorListField, aa as ComparisonChartHandler, Q as DEFAULT_MAP_REGION_KEY, d as DashboardBuilder, az as DashboardBuilderService, a as DashboardItem, D as DashboardItemStoreService, au as DashboardList, aA as DashboardStoreService, e as DashboardViewer, aQ as DataSourceSettings, b7 as DatasourcePanelComponent, aI as DefaultControlUi, aH as DisplaySettings, u as DynamicFiltersComponent, aF as DynamicFiltersConfig, E as EChartComponent, P as EntitiesPreviewCardComponent, y as EntityInfoComponent, B as EntityPreviewCardComponent, b6 as FilterBuilderComponent, b9 as FilterByGroupPipe, b5 as FilterChipsBarComponent, a4 as GaugeChartHandler, aP as GeneralSettings, ba as GetChartActionsPipe, b4 as GuidedConfigDialogComponent, ay as HTTPMethod, H as HeaderCardComponent, c9 as ITEM_GUIDANCE_REGISTRY, b0 as ItemCardMenuComponent, b3 as ItemConfigPopoverComponent, b2 as ItemContextToolbarComponent, cb as ItemGuidanceService, a_ as KeyValueMapField, L as LastHistoryLevelCardComponent, a$ as LegendOrderField, ac as LevelCardHandler, a8 as LineChartHandler, G as ListStatisticCardComponent, R as MAP_DATA_ATTRIBUTION, I as MAP_FALLBACK_COLORS, M as MAP_MARKER_PATH, O as MAP_REGIONS, av as MODULE_CLASSIFICATION_LOG, aw as MODULE_CLASSIFICATION_LOG_NAME, aD as ManageBreadcrumb, aE as ManageFilterOnPage, aM as ManageItem, aO as ManageItemService, aC as ManagePages, ad as MapChartHandler, U as MapViewComponent, a6 as OverviewCardHandler, bt as POPOVER_TABS, bu as POPOVER_TAB_SPECS, ag as PhaseGateStepperHandler, a0 as PieChartHandler, aJ as PieControlUi, P as PropertiesCardComponent, ae as RingGaugeChartHandler, af as SPlusChartHandler, bL as STYLE_PRESETS, b8 as SchemaControlRendererComponent, aX as SegmentedField, V as SkeletonCardComponent, a9 as SnapshotHandler, ab as SplitterChartHandler, a1 as StackBarChartHandler, aL as StackBarControlUi, S as StaticFiltersComponent, X as StatisticCardComponent, aW as StyleField, aU as StyleSettingsRenderer, aT as StyleStudioDrawer, Y as TableCardComponent, a5 as TableViewHandler, a7 as TimelineHandler, Z as TopbarCardComponent, n as addCommasToNumber, bH as applyBehaviorToPersisted, bX as applyControlPatchToPersisted, bY as applyControlPatchesToPersisted, bI as applyFilterChipsToPersisted, bF as applyLabelLegendFormatToPersisted, bD as applyLayoutToPersisted, bB as applyStyleToPersisted, bw as applyTitleToPersisted, a2 as axisFormatters, bG as behaviorToUi, c4 as bindingKey, bK as buildAssembly, c3 as buildDisplayFieldPredicate, N as buildMapChartOption, c as cloneDeep, am as createAxisFormatter, an as createTooltipFormatter, bx as datasourceToUi, bS as deepMerge, ca as describeGuidance, br as domainsForCapability, i as dynamicReorder, h as dynamicTextReplace, aV as expandResetPatches, by as fieldsToUi, bz as filtersToUi, bs as findDomain, bN as findPreset, c1 as flattenSchema, ao as formatAxisLabel, ah as formatCurrency, al as formatDate, bT as formatForEditor, ak as formatNumber, aj as formatPercentage, k as formatValue, ap as formatWordsUnderBar, aq as formatXAxis, j as generalConfiguration, c5 as getBinding, bc as getCapabilityById, q as getColorFromConditions, bZ as getControlSchema, ai as getCurrencySuffix, c0 as getFallbackControlSchema, l as getLocalizedTitle, g as getNestedData, a3 as groupDatesByYearAndMonth, bQ as groupIssuesByDomain, as as handleFilterForCard, at as handleFilterForSnapshot, ar as handleFiltersForCustom, bP as hasBlockingIssues, ax as isLogClassification, aB as isManagePagesDeleteResult, p as isMobilePlatform, J as isPlottable, bE as labelLegendFormatToUi, bC as layoutToUi, c6 as listBindings, c7 as listBindingsForChart, b_ as listControlSchemaIds, b$ as listControlSchemas, A as mergePropertyAppearance, bk as moduleIdFromSelector, bh as normalizeAggregateFunction, bp as normalizeBeforeRequest, bo as normalizeBeforeSave, bf as normalizeChartTypeForRequest, z as normalizeDashboardCardEntityValue, bg as normalizeFilterOperation, bi as normalizeFilters, bn as normalizeOnLoad, bR as parseAdvancedJson, bJ as persistedToUi, K as plottableGroups, bM as presetsForCapability, c8 as readBoundValue, bV as readByPath, bd as resolveCapability, c2 as resolveDisplayFields, x as resolveEntityUserPhoto, T as resolveMapRegion, W as resolveStatisticIconPlacement, bj as selectorFromLegacy, bW as setByPath, m as sortChartData, o as sortDataTableView, bA as styleToUi, f as switchAllKeysSmall, s as switchAllKeysToLower, bv as titleToUi, be as toBackendChartType, bl as toBackendSourceLink, bm as toFormSourceLink, bO as validate } from './masterteam-dashboard-builder-masterteam-dashboard-builder-oJge6v9b.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.96",
|
|
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.308",
|
|
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",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _masterteam_dashboard_builder from '@masterteam/dashboard-builder';
|
|
2
2
|
import * as _angular_core from '@angular/core';
|
|
3
|
-
import { OnInit, OnDestroy, AfterViewInit, OnChanges, SimpleChanges, TemplateRef, PipeTransform } from '@angular/core';
|
|
3
|
+
import { OnInit, OnDestroy, AfterViewInit, OnChanges, SimpleChanges, TemplateRef, WritableSignal, PipeTransform } from '@angular/core';
|
|
4
4
|
import { GridsterItem, GridsterConfig } from 'angular-gridster2';
|
|
5
5
|
import { ContextMenu } from 'primeng/contextmenu';
|
|
6
6
|
import { MenuItem } from 'primeng/api';
|
|
@@ -699,13 +699,13 @@ declare class ItemCardMenuComponent {
|
|
|
699
699
|
/** Backend ChartType enum names that the host BE accepts in execution payloads. */
|
|
700
700
|
type BackendChartType = 'BarChart' | 'PropertiesBarChar' | 'DonutChart' | 'TableChart' | 'SplitterChart' | 'BarStackChart' | 'TimeLine' | 'OverviewCard' | 'TableView' | 'PercentagePieChart' | 'Properties' | 'FormulaBarChart' | 'ComparisonChart' | 'BarV2Chart' | 'PieV2Chart' | 'StackBarV2Chart' | 'CardViewV2Chart' | 'GaugeChart' | 'LineChart' | 'SplitChart' | 'GaugeComponentChart' | 'PropertyCardView';
|
|
701
701
|
type RequestType$1 = 'level' | 'levellog' | 'log' | 'custom' | 'snapShot' | 'levelCards' | 'timelineProjectDependencies' | 'customSplus' | 'phaseGate';
|
|
702
|
-
type QueryEditorKind = 'none' | 'general' | 'table' | 'properties' | 'timeline' | 'timelineMultiLevel' | 'phaseGateTable' | 'map' | 'splitter' | 'snapshot' | 'phaseGate' | 'repeater';
|
|
702
|
+
type QueryEditorKind = 'none' | 'general' | 'lineChart' | 'table' | 'properties' | 'timeline' | 'timelineMultiLevel' | 'phaseGateTable' | 'map' | 'splitter' | 'snapshot' | 'phaseGate' | 'repeater';
|
|
703
703
|
type RendererKey = 'chart' | 'map' | 'table' | 'phaseGateTable' | 'timeline' | 'listStatistic' | 'levelCards' | 'properties' | 'entityPreview' | 'performanceCard' | 'performanceGaugeCard' | 'splitter' | 'phaseGateStepper' | 'header' | 'topbar' | 'repeater' | 'group' | 'raw';
|
|
704
704
|
type Product = 'pplus' | 'splus' | 'report';
|
|
705
705
|
/** Generic display schema field key. Open string to allow registry-specific extensions. */
|
|
706
706
|
type DisplayField = string;
|
|
707
707
|
/** Generic query schema field key. */
|
|
708
|
-
type QueryField = 'valueProperty' | 'aggregateFunction' | 'groupByProperties' | 'autoStack' | 'stackProperties' | 'autoStackByProperty' | 'categoryProperty' | 'color' | 'formula' | 'filters' | 'extraProperties' | 'showAdvancedSettings' | 'barType' | 'baseProperties' | 'rowIdentityProperty' | 'phaseNameProperty' | 'phaseIdProperty' | 'phaseOrderProperty' | 'phaseStatusProperty' | 'phaseProgressProperty' | 'phaseIsCurrentProperty' | 'phaseIsCompletedProperty' | 'phaseAllItemsCompletedProperty' | 'levelId' | 'levelDataId' | 'timeFrame' | 'year' | 'getAveragePerPeriod' | 'selectedProperties';
|
|
708
|
+
type QueryField = 'xAxisProperty' | 'yAxisProperty' | 'function' | 'valueProperty' | 'aggregateFunction' | 'groupByProperties' | 'autoStack' | 'stackProperties' | 'autoStackByProperty' | 'categoryProperty' | 'color' | 'formula' | 'filters' | 'extraProperties' | 'showAdvancedSettings' | 'barType' | 'baseProperties' | 'rowIdentityProperty' | 'phaseNameProperty' | 'phaseIdProperty' | 'phaseOrderProperty' | 'phaseStatusProperty' | 'phaseProgressProperty' | 'phaseIsCurrentProperty' | 'phaseIsCompletedProperty' | 'phaseAllItemsCompletedProperty' | 'levelId' | 'levelDataId' | 'timeFrame' | 'year' | 'getAveragePerPeriod' | 'selectedProperties';
|
|
709
709
|
interface QuerySchema {
|
|
710
710
|
/** Visible chart-specific fields (subset of QueryField, in chosen order). */
|
|
711
711
|
fields: QueryField[];
|
|
@@ -1417,6 +1417,11 @@ interface ControlField {
|
|
|
1417
1417
|
asArray?: boolean;
|
|
1418
1418
|
/** Collapse large per-property rows until the author chooses a property. */
|
|
1419
1419
|
collapsibleRows?: boolean;
|
|
1420
|
+
/**
|
|
1421
|
+
* For the Properties Card editor, place localized label overrides in the
|
|
1422
|
+
* same per-property row while continuing to persist them at their own path.
|
|
1423
|
+
*/
|
|
1424
|
+
integratedLabelsPath?: string;
|
|
1420
1425
|
/**
|
|
1421
1426
|
* For a `select` sub-field of a `keyValueMap`: offer a literal colour
|
|
1422
1427
|
* alongside the listed options. Selecting `CUSTOM_COLOR_OPTION` swaps in a
|
|
@@ -5598,6 +5603,7 @@ declare class LineChartHandler {
|
|
|
5598
5603
|
* Returns ECharts config directly with noData, width, divClass properties
|
|
5599
5604
|
*/
|
|
5600
5605
|
handleLineChart(dataResponse: any, config: ItemConfig): any;
|
|
5606
|
+
private toLineChartData;
|
|
5601
5607
|
/**
|
|
5602
5608
|
* Build ECharts configuration
|
|
5603
5609
|
*/
|
|
@@ -8239,6 +8245,13 @@ interface ChartQuery {
|
|
|
8239
8245
|
series: ChartQuerySeries[];
|
|
8240
8246
|
}
|
|
8241
8247
|
|
|
8248
|
+
interface LineChartQueryValue {
|
|
8249
|
+
xAxisProperty: string;
|
|
8250
|
+
yAxisProperty: string;
|
|
8251
|
+
function: 'Sum' | 'Avg' | 'Count';
|
|
8252
|
+
extraProperties: string[];
|
|
8253
|
+
}
|
|
8254
|
+
|
|
8242
8255
|
/** Properties grouped by module for select with [group]="true" */
|
|
8243
8256
|
interface PropertyGroup {
|
|
8244
8257
|
label: string;
|
|
@@ -8332,7 +8345,7 @@ interface ModuleProperties {
|
|
|
8332
8345
|
/**
|
|
8333
8346
|
* Query component type based on chart type and component name
|
|
8334
8347
|
*/
|
|
8335
|
-
type QueryComponentType = 'general' | 'table' | 'timeline' | 'timelineMultiLevel' | 'phaseGateTable' | 'map' | 'splitter' | 'properties' | 'snapshot' | 'phaseGate' | 'repeater' | 'none';
|
|
8348
|
+
type QueryComponentType = 'general' | 'lineChart' | 'table' | 'timeline' | 'timelineMultiLevel' | 'phaseGateTable' | 'map' | 'splitter' | 'properties' | 'snapshot' | 'phaseGate' | 'repeater' | 'none';
|
|
8336
8349
|
type TimelineTimeFrame = 'monthly' | 'quarterly' | 'biannually' | 'annually';
|
|
8337
8350
|
/**
|
|
8338
8351
|
* Data Source Settings Component
|
|
@@ -8577,6 +8590,7 @@ declare class DataSourceSettings {
|
|
|
8577
8590
|
* Handle query change (general query)
|
|
8578
8591
|
*/
|
|
8579
8592
|
onQueryChange(query: ChartQuery): void;
|
|
8593
|
+
onLineChartQueryChange(query: LineChartQueryValue): void;
|
|
8580
8594
|
/**
|
|
8581
8595
|
* Handle table query change
|
|
8582
8596
|
*/
|
|
@@ -9055,6 +9069,7 @@ declare class StyleStudioDrawer {
|
|
|
9055
9069
|
/** The live preview viewer; only its content shows refresh feedback. */
|
|
9056
9070
|
private readonly previewViewer;
|
|
9057
9071
|
private previewSyncTimer;
|
|
9072
|
+
private scrollSpyFrame;
|
|
9058
9073
|
constructor();
|
|
9059
9074
|
private schedulePreviewSync;
|
|
9060
9075
|
/** Re-process + push the working config into the isolated preview store. */
|
|
@@ -9122,6 +9137,7 @@ declare class StyleStudioDrawer {
|
|
|
9122
9137
|
scrollTo(section: ControlSection): void;
|
|
9123
9138
|
/** Scroll-spy: highlight the top-most section currently in view. */
|
|
9124
9139
|
onScroll(): void;
|
|
9140
|
+
private updateActiveSectionFromScroll;
|
|
9125
9141
|
private setActiveSection;
|
|
9126
9142
|
resetAll(): void;
|
|
9127
9143
|
apply(): void;
|
|
@@ -9158,6 +9174,10 @@ declare class StyleSettingsRenderer {
|
|
|
9158
9174
|
readonly patch: _angular_core.OutputEmitterRef<ControlPatch>;
|
|
9159
9175
|
/** Emitted when the empty-state "switch to Advanced" affordance is used. */
|
|
9160
9176
|
readonly requestScope: _angular_core.OutputEmitterRef<ControlSectionScope>;
|
|
9177
|
+
/** Do not construct/serialize the full clientConfig editor on a mode switch. */
|
|
9178
|
+
readonly advancedJsonOpen: _angular_core.WritableSignal<boolean>;
|
|
9179
|
+
constructor();
|
|
9180
|
+
toggleAdvancedJson(): void;
|
|
9161
9181
|
/** Use the exact same section objects as the rail, without relocalizing. */
|
|
9162
9182
|
readonly sections: _angular_core.Signal<RenderSection[]>;
|
|
9163
9183
|
readonly isEmpty: _angular_core.Signal<boolean>;
|
|
@@ -9178,7 +9198,7 @@ declare class StyleSettingsRenderer {
|
|
|
9178
9198
|
* `cardStyleConfig.shadows` array, so a reset must clear BOTH or the rendered
|
|
9179
9199
|
* box-shadow lingers. Shared by resetSection() and resetAll().
|
|
9180
9200
|
*/
|
|
9181
|
-
declare function expandResetPatches(path: string, mirrorPaths?: string[]): ControlPatch[];
|
|
9201
|
+
declare function expandResetPatches(path: string, mirrorPaths?: string[], integratedLabelsPath?: string): ControlPatch[];
|
|
9182
9202
|
/**
|
|
9183
9203
|
* Renders ONE schema `ControlField` as the appropriate `mt-*` control using
|
|
9184
9204
|
* reactive forms (no ngModel). Scalar types own a `FormControl` synced from the
|
|
@@ -9208,6 +9228,7 @@ declare class StyleField {
|
|
|
9208
9228
|
/** Read the field value from `path`, falling back to the first non-empty mirror. */
|
|
9209
9229
|
private readCurrent;
|
|
9210
9230
|
constructor();
|
|
9231
|
+
private readonly resolvedOptions;
|
|
9211
9232
|
options(): ControlOption[];
|
|
9212
9233
|
/** select uses a search box once the list is long enough to need one. */
|
|
9213
9234
|
get useFilter(): boolean;
|
|
@@ -9227,12 +9248,15 @@ declare class StyleField {
|
|
|
9227
9248
|
get numberMax(): number;
|
|
9228
9249
|
conditionFields(): ControlField[];
|
|
9229
9250
|
addLabel(fallback: string): string;
|
|
9251
|
+
private readonly resolvedMapKeys;
|
|
9230
9252
|
mapKeys(): ControlOption[];
|
|
9231
9253
|
readArray(): unknown[];
|
|
9232
9254
|
readColors(): string[];
|
|
9233
9255
|
readMap(): Record<string, unknown>;
|
|
9234
9256
|
/** keyValueMap accepts either a map or a positional array (asArray mode). */
|
|
9235
9257
|
readMapOrArray(): Record<string, unknown> | unknown[];
|
|
9258
|
+
readIntegratedLabels(): Record<string, unknown>;
|
|
9259
|
+
onIntegratedLabelsChange(value: Record<string, unknown>): void;
|
|
9236
9260
|
readLegendColorOverrides(): Record<string, unknown>;
|
|
9237
9261
|
readOverrideLabels(): OverrideLabelRow[];
|
|
9238
9262
|
readJson(): string;
|
|
@@ -9341,6 +9365,12 @@ interface MapRow {
|
|
|
9341
9365
|
key: string;
|
|
9342
9366
|
label: string;
|
|
9343
9367
|
group: FormGroup;
|
|
9368
|
+
labelGroup: FormGroup<{
|
|
9369
|
+
en: FormControl;
|
|
9370
|
+
ar: FormControl;
|
|
9371
|
+
}>;
|
|
9372
|
+
showLabels: WritableSignal<boolean>;
|
|
9373
|
+
showInfo: WritableSignal<boolean>;
|
|
9344
9374
|
/**
|
|
9345
9375
|
* Colour pickers for this row's `allowCustomColor` sub-fields, keyed by
|
|
9346
9376
|
* sub-field key. Deliberately OUTSIDE `group`: `mt-color-picker-field` adds a
|
|
@@ -9372,9 +9402,13 @@ declare class KeyValueMapField {
|
|
|
9372
9402
|
/** When true, store/read a positional array aligned to `keys` order. */
|
|
9373
9403
|
readonly asArray: _angular_core.InputSignal<boolean>;
|
|
9374
9404
|
readonly collapsibleRows: _angular_core.InputSignal<boolean>;
|
|
9405
|
+
/** Properties Card: edit localized labels in the same positional row. */
|
|
9406
|
+
readonly integratedLabels: _angular_core.InputSignal<boolean>;
|
|
9407
|
+
readonly labelOverrides: _angular_core.InputSignal<Record<string, unknown>>;
|
|
9375
9408
|
readonly valueChange: _angular_core.OutputEmitterRef<Record<string, unknown> | unknown[]>;
|
|
9376
|
-
readonly
|
|
9377
|
-
readonly
|
|
9409
|
+
readonly labelOverridesChange: _angular_core.OutputEmitterRef<Record<string, unknown>>;
|
|
9410
|
+
readonly rows: WritableSignal<MapRow[]>;
|
|
9411
|
+
readonly expandedRows: WritableSignal<ReadonlySet<string>>;
|
|
9378
9412
|
private readonly destroyRef;
|
|
9379
9413
|
/** Subscriptions for the current row set; torn down on every rebuild. */
|
|
9380
9414
|
private rowSubs;
|
|
@@ -9392,6 +9426,10 @@ declare class KeyValueMapField {
|
|
|
9392
9426
|
readonly inputFields: _angular_core.Signal<ControlField[]>;
|
|
9393
9427
|
readonly toggleFields: _angular_core.Signal<ControlField[]>;
|
|
9394
9428
|
readonly userFields: _angular_core.Signal<ControlField[]>;
|
|
9429
|
+
readonly propertyLayoutFields: _angular_core.Signal<ControlField[]>;
|
|
9430
|
+
readonly infoFields: _angular_core.Signal<ControlField[]>;
|
|
9431
|
+
toggleLabels(row: MapRow, enabled: boolean): void;
|
|
9432
|
+
toggleInfo(row: MapRow, enabled: boolean): void;
|
|
9395
9433
|
isExpanded(key: string): boolean;
|
|
9396
9434
|
toggleRow(key: string): void;
|
|
9397
9435
|
/**
|
|
@@ -9422,13 +9460,17 @@ declare class KeyValueMapField {
|
|
|
9422
9460
|
private createCustomColorControls;
|
|
9423
9461
|
private modeKey;
|
|
9424
9462
|
private existingFor;
|
|
9463
|
+
private labelsFor;
|
|
9464
|
+
/** The card renderer resolves localized label keys case-insensitively. */
|
|
9465
|
+
private labelKeyFor;
|
|
9425
9466
|
private clean;
|
|
9426
9467
|
/** Keep persisted keys that this version of the editor does not expose. */
|
|
9427
9468
|
private mergedRow;
|
|
9428
9469
|
private emit;
|
|
9470
|
+
private emitLabels;
|
|
9429
9471
|
private matchesCurrent;
|
|
9430
9472
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<KeyValueMapField, never>;
|
|
9431
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<KeyValueMapField, "mt-key-value-map-field", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "keys": { "alias": "keys"; "required": false; "isSignal": true; }; "valueFields": { "alias": "valueFields"; "required": false; "isSignal": true; }; "asArray": { "alias": "asArray"; "required": false; "isSignal": true; }; "collapsibleRows": { "alias": "collapsibleRows"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
9473
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<KeyValueMapField, "mt-key-value-map-field", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "keys": { "alias": "keys"; "required": false; "isSignal": true; }; "valueFields": { "alias": "valueFields"; "required": false; "isSignal": true; }; "asArray": { "alias": "asArray"; "required": false; "isSignal": true; }; "collapsibleRows": { "alias": "collapsibleRows"; "required": false; "isSignal": true; }; "integratedLabels": { "alias": "integratedLabels"; "required": false; "isSignal": true; }; "labelOverrides": { "alias": "labelOverrides"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "labelOverridesChange": "labelOverridesChange"; }, never, never, true, never>;
|
|
9432
9474
|
}
|
|
9433
9475
|
|
|
9434
9476
|
/**
|