@mintplayer/ng-bootstrap 22.15.0 → 22.17.0

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.
@@ -11,8 +11,12 @@ class BsHierarchyChartComponent {
11
11
  ...(ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []));
12
12
  this.rootId = model(undefined, /* @ts-ignore */
13
13
  ...(ngDevMode ? [{ debugName: "rootId" }] : /* istanbul ignore next */ []));
14
- /** Levels rendered outward from the focus, or `'auto'` for every loaded level. */
15
- this.maxDepth = input(2, /* @ts-ignore */
14
+ /**
15
+ * Levels rendered outward from the focus, or `'auto'` for every loaded level.
16
+ * Unset leaves the element's own default: `'auto'`, or a 2-level window when
17
+ * a `loadChildren` loader is bound.
18
+ */
19
+ this.maxDepth = input(undefined, /* @ts-ignore */
16
20
  ...(ngDevMode ? [{ debugName: "maxDepth" }] : /* istanbul ignore next */ []));
17
21
  this.minAngle = input(0.2, /* @ts-ignore */
18
22
  ...(ngDevMode ? [{ debugName: "minAngle" }] : /* istanbul ignore next */ []));
@@ -20,8 +24,22 @@ class BsHierarchyChartComponent {
20
24
  ...(ngDevMode ? [{ debugName: "minSize" }] : /* istanbul ignore next */ []));
21
25
  this.showLabels = input(true, /* @ts-ignore */
22
26
  ...(ngDevMode ? [{ debugName: "showLabels" }] : /* istanbul ignore next */ []));
23
- this.labelMinArea = input(0.03, /* @ts-ignore */
24
- ...(ngDevMode ? [{ debugName: "labelMinArea" }] : /* istanbul ignore next */ []));
27
+ /** Label font size in device px, constant across host size and zoom. */
28
+ this.labelFontSize = input(12, /* @ts-ignore */
29
+ ...(ngDevMode ? [{ debugName: "labelFontSize" }] : /* istanbul ignore next */ []));
30
+ /** Opaque color behind the chart for label contrast; unset = auto-detected. */
31
+ this.backdrop = input(undefined, /* @ts-ignore */
32
+ ...(ngDevMode ? [{ debugName: "backdrop" }] : /* istanbul ignore next */ []));
33
+ /** Gesture allowlist for the geometric zoom: 'wheel pinch' | 'wheel' | 'pinch' | 'none'. */
34
+ this.zoomGestures = input('wheel pinch', /* @ts-ignore */
35
+ ...(ngDevMode ? [{ debugName: "zoomGestures" }] : /* istanbul ignore next */ []));
36
+ this.zoomHintLabel = input(undefined, /* @ts-ignore */
37
+ ...(ngDevMode ? [{ debugName: "zoomHintLabel" }] : /* istanbul ignore next */ []));
38
+ /** Renders the focus path as buttons above the chart. */
39
+ this.showBreadcrumb = input(false, /* @ts-ignore */
40
+ ...(ngDevMode ? [{ debugName: "showBreadcrumb" }] : /* istanbul ignore next */ []));
41
+ this.breadcrumbLabel = input(undefined, /* @ts-ignore */
42
+ ...(ngDevMode ? [{ debugName: "breadcrumbLabel" }] : /* istanbul ignore next */ []));
25
43
  this.colorMin = input(0, /* @ts-ignore */
26
44
  ...(ngDevMode ? [{ debugName: "colorMin" }] : /* istanbul ignore next */ []));
27
45
  this.colorMax = input(100, /* @ts-ignore */
@@ -64,8 +82,12 @@ class BsHierarchyChartComponent {
64
82
  el.layout = this.layout(); });
65
83
  effect(() => { const el = this.chartRef()?.nativeElement; if (el)
66
84
  el.rootId = this.rootId(); });
67
- effect(() => { const el = this.chartRef()?.nativeElement; if (el)
68
- el.maxDepth = this.maxDepth(); });
85
+ effect(() => {
86
+ const el = this.chartRef()?.nativeElement;
87
+ const depth = this.maxDepth();
88
+ if (el && depth !== undefined)
89
+ el.maxDepth = depth;
90
+ });
69
91
  effect(() => { const el = this.chartRef()?.nativeElement; if (el)
70
92
  el.minAngle = this.minAngle(); });
71
93
  effect(() => { const el = this.chartRef()?.nativeElement; if (el)
@@ -73,7 +95,25 @@ class BsHierarchyChartComponent {
73
95
  effect(() => { const el = this.chartRef()?.nativeElement; if (el)
74
96
  el.showLabels = this.showLabels(); });
75
97
  effect(() => { const el = this.chartRef()?.nativeElement; if (el)
76
- el.labelMinArea = this.labelMinArea(); });
98
+ el.labelFontSize = this.labelFontSize(); });
99
+ effect(() => { const el = this.chartRef()?.nativeElement; if (el)
100
+ el.backdrop = this.backdrop(); });
101
+ effect(() => { const el = this.chartRef()?.nativeElement; if (el)
102
+ el.zoomGestures = this.zoomGestures(); });
103
+ effect(() => {
104
+ const el = this.chartRef()?.nativeElement;
105
+ const label = this.zoomHintLabel();
106
+ if (el && label !== undefined)
107
+ el.zoomHintLabel = label;
108
+ });
109
+ effect(() => { const el = this.chartRef()?.nativeElement; if (el)
110
+ el.showBreadcrumb = this.showBreadcrumb(); });
111
+ effect(() => {
112
+ const el = this.chartRef()?.nativeElement;
113
+ const label = this.breadcrumbLabel();
114
+ if (el && label !== undefined)
115
+ el.breadcrumbLabel = label;
116
+ });
77
117
  effect(() => { const el = this.chartRef()?.nativeElement; if (el)
78
118
  el.colorMin = this.colorMin(); });
79
119
  effect(() => { const el = this.chartRef()?.nativeElement; if (el)
@@ -137,12 +177,12 @@ class BsHierarchyChartComponent {
137
177
  this.nodeLoadError.emit(event.detail);
138
178
  }
139
179
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsHierarchyChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
140
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.8", type: BsHierarchyChartComponent, isStandalone: true, selector: "bs-hierarchy-chart", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, rootId: { classPropertyName: "rootId", publicName: "rootId", isSignal: true, isRequired: false, transformFunction: null }, maxDepth: { classPropertyName: "maxDepth", publicName: "maxDepth", isSignal: true, isRequired: false, transformFunction: null }, minAngle: { classPropertyName: "minAngle", publicName: "minAngle", isSignal: true, isRequired: false, transformFunction: null }, minSize: { classPropertyName: "minSize", publicName: "minSize", isSignal: true, isRequired: false, transformFunction: null }, showLabels: { classPropertyName: "showLabels", publicName: "showLabels", isSignal: true, isRequired: false, transformFunction: null }, labelMinArea: { classPropertyName: "labelMinArea", publicName: "labelMinArea", isSignal: true, isRequired: false, transformFunction: null }, colorMin: { classPropertyName: "colorMin", publicName: "colorMin", isSignal: true, isRequired: false, transformFunction: null }, colorMax: { classPropertyName: "colorMax", publicName: "colorMax", isSignal: true, isRequired: false, transformFunction: null }, colorStart: { classPropertyName: "colorStart", publicName: "colorStart", isSignal: true, isRequired: false, transformFunction: null }, colorEnd: { classPropertyName: "colorEnd", publicName: "colorEnd", isSignal: true, isRequired: false, transformFunction: null }, transitionDuration: { classPropertyName: "transitionDuration", publicName: "transitionDuration", isSignal: true, isRequired: false, transformFunction: null }, locale: { classPropertyName: "locale", publicName: "locale", isSignal: true, isRequired: false, transformFunction: null }, inputLabel: { classPropertyName: "inputLabel", publicName: "inputLabel", isSignal: true, isRequired: false, transformFunction: null }, zoomOutLabel: { classPropertyName: "zoomOutLabel", publicName: "zoomOutLabel", isSignal: true, isRequired: false, transformFunction: null }, metricUnitLabel: { classPropertyName: "metricUnitLabel", publicName: "metricUnitLabel", isSignal: true, isRequired: false, transformFunction: null }, valueUnitLabel: { classPropertyName: "valueUnitLabel", publicName: "valueUnitLabel", isSignal: true, isRequired: false, transformFunction: null }, loadingLabel: { classPropertyName: "loadingLabel", publicName: "loadingLabel", isSignal: true, isRequired: false, transformFunction: null }, tooltipFormatter: { classPropertyName: "tooltipFormatter", publicName: "tooltipFormatter", isSignal: true, isRequired: false, transformFunction: null }, labelFormatter: { classPropertyName: "labelFormatter", publicName: "labelFormatter", isSignal: true, isRequired: false, transformFunction: null }, loadChildren: { classPropertyName: "loadChildren", publicName: "loadChildren", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { rootId: "rootIdChange", zoom: "zoom", nodeSelect: "nodeSelect", nodeHover: "nodeHover", nodeLoadError: "nodeLoadError" }, viewQueries: [{ propertyName: "chartRef", first: true, predicate: ["chart"], descendants: true, isSignal: true }], ngImport: i0, template: "<mp-hierarchy-chart bsForwardAria\n #chart\n class=\"bs-hierarchy-chart\"\n (hierarchy-zoom)=\"onZoom($event)\"\n (hierarchy-node-select)=\"onNodeSelect($event)\"\n (hierarchy-node-hover)=\"onNodeHover($event)\"\n (hierarchy-node-load-error)=\"onNodeLoadError($event)\"\n></mp-hierarchy-chart>\n", styles: [":host{display:block}\n"], dependencies: [{ kind: "directive", type: BsForwardAriaDirective, selector: "[bsForwardAria]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
180
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.8", type: BsHierarchyChartComponent, isStandalone: true, selector: "bs-hierarchy-chart", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, rootId: { classPropertyName: "rootId", publicName: "rootId", isSignal: true, isRequired: false, transformFunction: null }, maxDepth: { classPropertyName: "maxDepth", publicName: "maxDepth", isSignal: true, isRequired: false, transformFunction: null }, minAngle: { classPropertyName: "minAngle", publicName: "minAngle", isSignal: true, isRequired: false, transformFunction: null }, minSize: { classPropertyName: "minSize", publicName: "minSize", isSignal: true, isRequired: false, transformFunction: null }, showLabels: { classPropertyName: "showLabels", publicName: "showLabels", isSignal: true, isRequired: false, transformFunction: null }, labelFontSize: { classPropertyName: "labelFontSize", publicName: "labelFontSize", isSignal: true, isRequired: false, transformFunction: null }, backdrop: { classPropertyName: "backdrop", publicName: "backdrop", isSignal: true, isRequired: false, transformFunction: null }, zoomGestures: { classPropertyName: "zoomGestures", publicName: "zoomGestures", isSignal: true, isRequired: false, transformFunction: null }, zoomHintLabel: { classPropertyName: "zoomHintLabel", publicName: "zoomHintLabel", isSignal: true, isRequired: false, transformFunction: null }, showBreadcrumb: { classPropertyName: "showBreadcrumb", publicName: "showBreadcrumb", isSignal: true, isRequired: false, transformFunction: null }, breadcrumbLabel: { classPropertyName: "breadcrumbLabel", publicName: "breadcrumbLabel", isSignal: true, isRequired: false, transformFunction: null }, colorMin: { classPropertyName: "colorMin", publicName: "colorMin", isSignal: true, isRequired: false, transformFunction: null }, colorMax: { classPropertyName: "colorMax", publicName: "colorMax", isSignal: true, isRequired: false, transformFunction: null }, colorStart: { classPropertyName: "colorStart", publicName: "colorStart", isSignal: true, isRequired: false, transformFunction: null }, colorEnd: { classPropertyName: "colorEnd", publicName: "colorEnd", isSignal: true, isRequired: false, transformFunction: null }, transitionDuration: { classPropertyName: "transitionDuration", publicName: "transitionDuration", isSignal: true, isRequired: false, transformFunction: null }, locale: { classPropertyName: "locale", publicName: "locale", isSignal: true, isRequired: false, transformFunction: null }, inputLabel: { classPropertyName: "inputLabel", publicName: "inputLabel", isSignal: true, isRequired: false, transformFunction: null }, zoomOutLabel: { classPropertyName: "zoomOutLabel", publicName: "zoomOutLabel", isSignal: true, isRequired: false, transformFunction: null }, metricUnitLabel: { classPropertyName: "metricUnitLabel", publicName: "metricUnitLabel", isSignal: true, isRequired: false, transformFunction: null }, valueUnitLabel: { classPropertyName: "valueUnitLabel", publicName: "valueUnitLabel", isSignal: true, isRequired: false, transformFunction: null }, loadingLabel: { classPropertyName: "loadingLabel", publicName: "loadingLabel", isSignal: true, isRequired: false, transformFunction: null }, tooltipFormatter: { classPropertyName: "tooltipFormatter", publicName: "tooltipFormatter", isSignal: true, isRequired: false, transformFunction: null }, labelFormatter: { classPropertyName: "labelFormatter", publicName: "labelFormatter", isSignal: true, isRequired: false, transformFunction: null }, loadChildren: { classPropertyName: "loadChildren", publicName: "loadChildren", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { rootId: "rootIdChange", zoom: "zoom", nodeSelect: "nodeSelect", nodeHover: "nodeHover", nodeLoadError: "nodeLoadError" }, viewQueries: [{ propertyName: "chartRef", first: true, predicate: ["chart"], descendants: true, isSignal: true }], ngImport: i0, template: "<mp-hierarchy-chart bsForwardAria\n #chart\n class=\"bs-hierarchy-chart\"\n (hierarchy-zoom)=\"onZoom($event)\"\n (hierarchy-node-select)=\"onNodeSelect($event)\"\n (hierarchy-node-hover)=\"onNodeHover($event)\"\n (hierarchy-node-load-error)=\"onNodeLoadError($event)\"\n></mp-hierarchy-chart>\n", styles: [":host{display:block}\n"], dependencies: [{ kind: "directive", type: BsForwardAriaDirective, selector: "[bsForwardAria]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
141
181
  }
142
182
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsHierarchyChartComponent, decorators: [{
143
183
  type: Component,
144
184
  args: [{ selector: 'bs-hierarchy-chart', imports: [BsForwardAriaDirective], schemas: [CUSTOM_ELEMENTS_SCHEMA], changeDetection: ChangeDetectionStrategy.OnPush, template: "<mp-hierarchy-chart bsForwardAria\n #chart\n class=\"bs-hierarchy-chart\"\n (hierarchy-zoom)=\"onZoom($event)\"\n (hierarchy-node-select)=\"onNodeSelect($event)\"\n (hierarchy-node-hover)=\"onNodeHover($event)\"\n (hierarchy-node-load-error)=\"onNodeLoadError($event)\"\n></mp-hierarchy-chart>\n", styles: [":host{display:block}\n"] }]
145
- }], ctorParameters: () => [], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", required: false }] }], rootId: [{ type: i0.Input, args: [{ isSignal: true, alias: "rootId", required: false }] }, { type: i0.Output, args: ["rootIdChange"] }], maxDepth: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxDepth", required: false }] }], minAngle: [{ type: i0.Input, args: [{ isSignal: true, alias: "minAngle", required: false }] }], minSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "minSize", required: false }] }], showLabels: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLabels", required: false }] }], labelMinArea: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelMinArea", required: false }] }], colorMin: [{ type: i0.Input, args: [{ isSignal: true, alias: "colorMin", required: false }] }], colorMax: [{ type: i0.Input, args: [{ isSignal: true, alias: "colorMax", required: false }] }], colorStart: [{ type: i0.Input, args: [{ isSignal: true, alias: "colorStart", required: false }] }], colorEnd: [{ type: i0.Input, args: [{ isSignal: true, alias: "colorEnd", required: false }] }], transitionDuration: [{ type: i0.Input, args: [{ isSignal: true, alias: "transitionDuration", required: false }] }], locale: [{ type: i0.Input, args: [{ isSignal: true, alias: "locale", required: false }] }], inputLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputLabel", required: false }] }], zoomOutLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "zoomOutLabel", required: false }] }], metricUnitLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "metricUnitLabel", required: false }] }], valueUnitLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueUnitLabel", required: false }] }], loadingLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingLabel", required: false }] }], tooltipFormatter: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipFormatter", required: false }] }], labelFormatter: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelFormatter", required: false }] }], loadChildren: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadChildren", required: false }] }], zoom: [{ type: i0.Output, args: ["zoom"] }], nodeSelect: [{ type: i0.Output, args: ["nodeSelect"] }], nodeHover: [{ type: i0.Output, args: ["nodeHover"] }], nodeLoadError: [{ type: i0.Output, args: ["nodeLoadError"] }], chartRef: [{ type: i0.ViewChild, args: ['chart', { isSignal: true }] }] } });
185
+ }], ctorParameters: () => [], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", required: false }] }], rootId: [{ type: i0.Input, args: [{ isSignal: true, alias: "rootId", required: false }] }, { type: i0.Output, args: ["rootIdChange"] }], maxDepth: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxDepth", required: false }] }], minAngle: [{ type: i0.Input, args: [{ isSignal: true, alias: "minAngle", required: false }] }], minSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "minSize", required: false }] }], showLabels: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLabels", required: false }] }], labelFontSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelFontSize", required: false }] }], backdrop: [{ type: i0.Input, args: [{ isSignal: true, alias: "backdrop", required: false }] }], zoomGestures: [{ type: i0.Input, args: [{ isSignal: true, alias: "zoomGestures", required: false }] }], zoomHintLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "zoomHintLabel", required: false }] }], showBreadcrumb: [{ type: i0.Input, args: [{ isSignal: true, alias: "showBreadcrumb", required: false }] }], breadcrumbLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "breadcrumbLabel", required: false }] }], colorMin: [{ type: i0.Input, args: [{ isSignal: true, alias: "colorMin", required: false }] }], colorMax: [{ type: i0.Input, args: [{ isSignal: true, alias: "colorMax", required: false }] }], colorStart: [{ type: i0.Input, args: [{ isSignal: true, alias: "colorStart", required: false }] }], colorEnd: [{ type: i0.Input, args: [{ isSignal: true, alias: "colorEnd", required: false }] }], transitionDuration: [{ type: i0.Input, args: [{ isSignal: true, alias: "transitionDuration", required: false }] }], locale: [{ type: i0.Input, args: [{ isSignal: true, alias: "locale", required: false }] }], inputLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputLabel", required: false }] }], zoomOutLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "zoomOutLabel", required: false }] }], metricUnitLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "metricUnitLabel", required: false }] }], valueUnitLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueUnitLabel", required: false }] }], loadingLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingLabel", required: false }] }], tooltipFormatter: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipFormatter", required: false }] }], labelFormatter: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelFormatter", required: false }] }], loadChildren: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadChildren", required: false }] }], zoom: [{ type: i0.Output, args: ["zoom"] }], nodeSelect: [{ type: i0.Output, args: ["nodeSelect"] }], nodeHover: [{ type: i0.Output, args: ["nodeHover"] }], nodeLoadError: [{ type: i0.Output, args: ["nodeLoadError"] }], chartRef: [{ type: i0.ViewChild, args: ['chart', { isSignal: true }] }] } });
146
186
 
147
187
  /**
148
188
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-charts-hierarchy.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/charts/hierarchy/src/hierarchy-chart/hierarchy-chart.component.ts","../../../../libs/mintplayer-ng-bootstrap/charts/hierarchy/src/hierarchy-chart/hierarchy-chart.component.html","../../../../libs/mintplayer-ng-bootstrap/charts/hierarchy/mintplayer-ng-bootstrap-charts-hierarchy.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n CUSTOM_ELEMENTS_SCHEMA,\n effect,\n ElementRef,\n input,\n model,\n output,\n viewChild,\n} from '@angular/core';\nimport {\n MpHierarchyChart,\n type HierarchyChartLayout,\n type HierarchyChildrenLoader,\n type HierarchyHoverEventDetail,\n type HierarchyLoadErrorEventDetail,\n type HierarchyNode,\n type HierarchyNodeEventDetail,\n type HierarchyNodeFormatter,\n} from '@mintplayer/web-components/charts/hierarchy';\n\n// Side-effect import: registers the `<mp-hierarchy-chart>` custom element.\nimport '@mintplayer/web-components/charts/hierarchy';\n\nimport { BsForwardAriaDirective } from '@mintplayer/ng-bootstrap/a11y';\n\n@Component({\n selector: 'bs-hierarchy-chart',\n templateUrl: './hierarchy-chart.component.html',\n styleUrls: ['./hierarchy-chart.component.scss'],\n imports: [BsForwardAriaDirective],\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsHierarchyChartComponent {\n readonly data = input<HierarchyNode | undefined>(undefined);\n readonly layout = input<HierarchyChartLayout>('sunburst');\n readonly rootId = model<string | undefined>(undefined);\n /** Levels rendered outward from the focus, or `'auto'` for every loaded level. */\n readonly maxDepth = input<number | 'auto'>(2);\n readonly minAngle = input<number>(0.2);\n readonly minSize = input<number>(4);\n readonly showLabels = input<boolean>(true);\n readonly labelMinArea = input<number>(0.03);\n readonly colorMin = input<number>(0);\n readonly colorMax = input<number>(100);\n readonly colorStart = input<string>('#fe0000');\n readonly colorEnd = input<string>('#21b577');\n readonly transitionDuration = input<number>(300);\n readonly locale = input<string | undefined>(undefined);\n readonly inputLabel = input<string | undefined>(undefined);\n readonly zoomOutLabel = input<string | undefined>(undefined);\n readonly metricUnitLabel = input<string | undefined>(undefined);\n readonly valueUnitLabel = input<string | undefined>(undefined);\n readonly loadingLabel = input<string | undefined>(undefined);\n readonly tooltipFormatter = input<HierarchyNodeFormatter | undefined>(undefined);\n readonly labelFormatter = input<HierarchyNodeFormatter | undefined>(undefined);\n readonly loadChildren = input<HierarchyChildrenLoader | undefined>(undefined);\n\n readonly zoom = output<HierarchyNodeEventDetail>();\n readonly nodeSelect = output<HierarchyNodeEventDetail>();\n readonly nodeHover = output<HierarchyHoverEventDetail>();\n readonly nodeLoadError = output<HierarchyLoadErrorEventDetail>();\n\n readonly chartRef = viewChild<ElementRef<MpHierarchyChart>>('chart');\n\n constructor() {\n // One effect per input, deliberately: a `data` write must not re-fire on\n // every zoom tick and vice versa.\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.data = this.data(); });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.layout = this.layout(); });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.rootId = this.rootId(); });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.maxDepth = this.maxDepth(); });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.minAngle = this.minAngle(); });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.minSize = this.minSize(); });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.showLabels = this.showLabels(); });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.labelMinArea = this.labelMinArea(); });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.colorMin = this.colorMin(); });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.colorMax = this.colorMax(); });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.colorStart = this.colorStart(); });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.colorEnd = this.colorEnd(); });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.transitionDuration = this.transitionDuration(); });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.locale = this.locale(); });\n effect(() => {\n const el = this.chartRef()?.nativeElement;\n if (el) el.inputLabel = this.inputLabel() ?? null;\n });\n effect(() => {\n const el = this.chartRef()?.nativeElement;\n const label = this.zoomOutLabel();\n if (el && label !== undefined) el.zoomOutLabel = label;\n });\n effect(() => {\n const el = this.chartRef()?.nativeElement;\n const label = this.metricUnitLabel();\n if (el && label !== undefined) el.metricUnitLabel = label;\n });\n effect(() => {\n const el = this.chartRef()?.nativeElement;\n const label = this.valueUnitLabel();\n if (el && label !== undefined) el.valueUnitLabel = label;\n });\n effect(() => {\n const el = this.chartRef()?.nativeElement;\n const label = this.loadingLabel();\n if (el && label !== undefined) el.loadingLabel = label;\n });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.tooltipFormatter = this.tooltipFormatter(); });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.labelFormatter = this.labelFormatter(); });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.loadChildren = this.loadChildren(); });\n }\n\n protected onZoom(event: Event): void {\n const detail = (event as CustomEvent<HierarchyNodeEventDetail>).detail;\n this.rootId.set((event.target as MpHierarchyChart).rootId);\n this.zoom.emit(detail);\n }\n\n protected onNodeSelect(event: Event): void {\n this.nodeSelect.emit((event as CustomEvent<HierarchyNodeEventDetail>).detail);\n }\n\n protected onNodeHover(event: Event): void {\n this.nodeHover.emit((event as CustomEvent<HierarchyHoverEventDetail>).detail);\n }\n\n protected onNodeLoadError(event: Event): void {\n this.nodeLoadError.emit((event as CustomEvent<HierarchyLoadErrorEventDetail>).detail);\n }\n}\n","<mp-hierarchy-chart bsForwardAria\n #chart\n class=\"bs-hierarchy-chart\"\n (hierarchy-zoom)=\"onZoom($event)\"\n (hierarchy-node-select)=\"onNodeSelect($event)\"\n (hierarchy-node-hover)=\"onNodeHover($event)\"\n (hierarchy-node-load-error)=\"onNodeLoadError($event)\"\n></mp-hierarchy-chart>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAmCa,yBAAyB,CAAA;AAgCpC,IAAA,WAAA,GAAA;QA/BS,IAAA,CAAA,IAAI,GAAG,KAAK,CAA4B,SAAS;iFAAC;QAClD,IAAA,CAAA,MAAM,GAAG,KAAK,CAAuB,UAAU;mFAAC;QAChD,IAAA,CAAA,MAAM,GAAG,KAAK,CAAqB,SAAS;mFAAC;;QAE7C,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAkB,CAAC;qFAAC;QACpC,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAS,GAAG;qFAAC;QAC7B,IAAA,CAAA,OAAO,GAAG,KAAK,CAAS,CAAC;oFAAC;QAC1B,IAAA,CAAA,UAAU,GAAG,KAAK,CAAU,IAAI;uFAAC;QACjC,IAAA,CAAA,YAAY,GAAG,KAAK,CAAS,IAAI;yFAAC;QAClC,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAS,CAAC;qFAAC;QAC3B,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAS,GAAG;qFAAC;QAC7B,IAAA,CAAA,UAAU,GAAG,KAAK,CAAS,SAAS;uFAAC;QACrC,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAS,SAAS;qFAAC;QACnC,IAAA,CAAA,kBAAkB,GAAG,KAAK,CAAS,GAAG;+FAAC;QACvC,IAAA,CAAA,MAAM,GAAG,KAAK,CAAqB,SAAS;mFAAC;QAC7C,IAA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BARrC,SAAS;+BACE,oBAAoB,EAAA,OAAA,EAGrB,CAAC,sBAAsB,CAAC,EAAA,OAAA,EACxB,CAAC,sBAAsB,CAAC,EAAA,eAAA,EAChB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,+SAAA,EAAA,MAAA,EAAA,CAAA,wBAAA,CAAA,EAAA;ygFAgCa,OAAO,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEjErE;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-charts-hierarchy.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/charts/hierarchy/src/hierarchy-chart/hierarchy-chart.component.ts","../../../../libs/mintplayer-ng-bootstrap/charts/hierarchy/src/hierarchy-chart/hierarchy-chart.component.html","../../../../libs/mintplayer-ng-bootstrap/charts/hierarchy/mintplayer-ng-bootstrap-charts-hierarchy.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n CUSTOM_ELEMENTS_SCHEMA,\n effect,\n ElementRef,\n input,\n model,\n output,\n viewChild,\n} from '@angular/core';\nimport {\n MpHierarchyChart,\n type HierarchyChartLayout,\n type HierarchyChildrenLoader,\n type HierarchyHoverEventDetail,\n type HierarchyLoadErrorEventDetail,\n type HierarchyNode,\n type HierarchyNodeEventDetail,\n type HierarchyNodeFormatter,\n} from '@mintplayer/web-components/charts/hierarchy';\n\n// Side-effect import: registers the `<mp-hierarchy-chart>` custom element.\nimport '@mintplayer/web-components/charts/hierarchy';\n\nimport { BsForwardAriaDirective } from '@mintplayer/ng-bootstrap/a11y';\n\n@Component({\n selector: 'bs-hierarchy-chart',\n templateUrl: './hierarchy-chart.component.html',\n styleUrls: ['./hierarchy-chart.component.scss'],\n imports: [BsForwardAriaDirective],\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsHierarchyChartComponent {\n readonly data = input<HierarchyNode | undefined>(undefined);\n readonly layout = input<HierarchyChartLayout>('sunburst');\n readonly rootId = model<string | undefined>(undefined);\n /**\n * Levels rendered outward from the focus, or `'auto'` for every loaded level.\n * Unset leaves the element's own default: `'auto'`, or a 2-level window when\n * a `loadChildren` loader is bound.\n */\n readonly maxDepth = input<number | 'auto' | undefined>(undefined);\n readonly minAngle = input<number>(0.2);\n readonly minSize = input<number>(4);\n readonly showLabels = input<boolean>(true);\n /** Label font size in device px, constant across host size and zoom. */\n readonly labelFontSize = input<number>(12);\n /** Opaque color behind the chart for label contrast; unset = auto-detected. */\n readonly backdrop = input<string | undefined>(undefined);\n /** Gesture allowlist for the geometric zoom: 'wheel pinch' | 'wheel' | 'pinch' | 'none'. */\n readonly zoomGestures = input<string>('wheel pinch');\n readonly zoomHintLabel = input<string | undefined>(undefined);\n /** Renders the focus path as buttons above the chart. */\n readonly showBreadcrumb = input<boolean>(false);\n readonly breadcrumbLabel = input<string | undefined>(undefined);\n readonly colorMin = input<number>(0);\n readonly colorMax = input<number>(100);\n readonly colorStart = input<string>('#fe0000');\n readonly colorEnd = input<string>('#21b577');\n readonly transitionDuration = input<number>(300);\n readonly locale = input<string | undefined>(undefined);\n readonly inputLabel = input<string | undefined>(undefined);\n readonly zoomOutLabel = input<string | undefined>(undefined);\n readonly metricUnitLabel = input<string | undefined>(undefined);\n readonly valueUnitLabel = input<string | undefined>(undefined);\n readonly loadingLabel = input<string | undefined>(undefined);\n readonly tooltipFormatter = input<HierarchyNodeFormatter | undefined>(undefined);\n readonly labelFormatter = input<HierarchyNodeFormatter | undefined>(undefined);\n readonly loadChildren = input<HierarchyChildrenLoader | undefined>(undefined);\n\n readonly zoom = output<HierarchyNodeEventDetail>();\n readonly nodeSelect = output<HierarchyNodeEventDetail>();\n readonly nodeHover = output<HierarchyHoverEventDetail>();\n readonly nodeLoadError = output<HierarchyLoadErrorEventDetail>();\n\n readonly chartRef = viewChild<ElementRef<MpHierarchyChart>>('chart');\n\n constructor() {\n // One effect per input, deliberately: a `data` write must not re-fire on\n // every zoom tick and vice versa.\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.data = this.data(); });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.layout = this.layout(); });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.rootId = this.rootId(); });\n effect(() => {\n const el = this.chartRef()?.nativeElement;\n const depth = this.maxDepth();\n if (el && depth !== undefined) el.maxDepth = depth;\n });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.minAngle = this.minAngle(); });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.minSize = this.minSize(); });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.showLabels = this.showLabels(); });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.labelFontSize = this.labelFontSize(); });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.backdrop = this.backdrop(); });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.zoomGestures = this.zoomGestures(); });\n effect(() => {\n const el = this.chartRef()?.nativeElement;\n const label = this.zoomHintLabel();\n if (el && label !== undefined) el.zoomHintLabel = label;\n });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.showBreadcrumb = this.showBreadcrumb(); });\n effect(() => {\n const el = this.chartRef()?.nativeElement;\n const label = this.breadcrumbLabel();\n if (el && label !== undefined) el.breadcrumbLabel = label;\n });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.colorMin = this.colorMin(); });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.colorMax = this.colorMax(); });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.colorStart = this.colorStart(); });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.colorEnd = this.colorEnd(); });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.transitionDuration = this.transitionDuration(); });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.locale = this.locale(); });\n effect(() => {\n const el = this.chartRef()?.nativeElement;\n if (el) el.inputLabel = this.inputLabel() ?? null;\n });\n effect(() => {\n const el = this.chartRef()?.nativeElement;\n const label = this.zoomOutLabel();\n if (el && label !== undefined) el.zoomOutLabel = label;\n });\n effect(() => {\n const el = this.chartRef()?.nativeElement;\n const label = this.metricUnitLabel();\n if (el && label !== undefined) el.metricUnitLabel = label;\n });\n effect(() => {\n const el = this.chartRef()?.nativeElement;\n const label = this.valueUnitLabel();\n if (el && label !== undefined) el.valueUnitLabel = label;\n });\n effect(() => {\n const el = this.chartRef()?.nativeElement;\n const label = this.loadingLabel();\n if (el && label !== undefined) el.loadingLabel = label;\n });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.tooltipFormatter = this.tooltipFormatter(); });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.labelFormatter = this.labelFormatter(); });\n effect(() => { const el = this.chartRef()?.nativeElement; if (el) el.loadChildren = this.loadChildren(); });\n }\n\n protected onZoom(event: Event): void {\n const detail = (event as CustomEvent<HierarchyNodeEventDetail>).detail;\n this.rootId.set((event.target as MpHierarchyChart).rootId);\n this.zoom.emit(detail);\n }\n\n protected onNodeSelect(event: Event): void {\n this.nodeSelect.emit((event as CustomEvent<HierarchyNodeEventDetail>).detail);\n }\n\n protected onNodeHover(event: Event): void {\n this.nodeHover.emit((event as CustomEvent<HierarchyHoverEventDetail>).detail);\n }\n\n protected onNodeLoadError(event: Event): void {\n this.nodeLoadError.emit((event as CustomEvent<HierarchyLoadErrorEventDetail>).detail);\n }\n}\n","<mp-hierarchy-chart bsForwardAria\n #chart\n class=\"bs-hierarchy-chart\"\n (hierarchy-zoom)=\"onZoom($event)\"\n (hierarchy-node-select)=\"onNodeSelect($event)\"\n (hierarchy-node-hover)=\"onNodeHover($event)\"\n (hierarchy-node-load-error)=\"onNodeLoadError($event)\"\n></mp-hierarchy-chart>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAmCa,yBAAyB,CAAA;AA6CpC,IAAA,WAAA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EAAA,YAAA,EAAA,SAAA,EAAA,WAAA,EAAA,aAAA,EAAA,eAAA,EAAA,EAAA,WAAA,EAAA,CAAA,EAAA,YAAA,EAAA,UAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EAAA,CAAA,OAAA,CAAA,EAAA,WAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECnCtC,+SAQA,EAAA,MAAA,EAAA,CAAA,wBAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDuBY,sBAAsB,EAAA,QAAA,EAAA,iBAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAIrB,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBARrC,SAAS;+BACE,oBAAoB,EAAA,OAAA,EAGrB,CAAC,sBAAsB,CAAC,EAAA,OAAA,EACxB,CAAC,sBAAsB,CAAC,EAAA,eAAA,EAChB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,+SAAA,EAAA,MAAA,EAAA,CAAA,wBAAA,CAAA,EAAA;uhGA6Ca,OAAO,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE9ErE;;AAEG;;;;"}
@@ -2,9 +2,16 @@ import * as i0 from '@angular/core';
2
2
  import { Pipe } from '@angular/core';
3
3
 
4
4
  class BsLinifyPipe {
5
+ /**
6
+ * Splits text into lines, normalizing CRLF first.
7
+ *
8
+ * The `/g` flag is load-bearing: without it only the FIRST CRLF was rewritten
9
+ * and every later line of Windows-authored text kept a trailing `\r`, which
10
+ * then rode along into whatever the consumer rendered or compared.
11
+ */
5
12
  transform(value, removeEmptyEntries = true) {
6
13
  const split = value
7
- .replace('\r\n', '\n')
14
+ .replace(/\r\n/g, '\n')
8
15
  .split('\n');
9
16
  return removeEmptyEntries
10
17
  ? split.filter((line) => line !== '')
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-linify.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/linify/src/linify.pipe.ts","../../../../libs/mintplayer-ng-bootstrap/linify/mintplayer-ng-bootstrap-linify.ts"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'bsLinify',\n})\nexport class BsLinifyPipe implements PipeTransform {\n transform(value: string, removeEmptyEntries = true) {\n const split = value\n .replace('\\r\\n', '\\n')\n .split('\\n');\n\n return removeEmptyEntries\n ? split.filter((line) => line !== '')\n : split;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAKa,YAAY,CAAA;AACvB,IAAA,SAAS,CAAC,KAAa,EAAE,kBAAkB,GAAG,IAAI,EAAA;QAChD,MAAM,KAAK,GAAG;AACX,aAAA,OAAO,CAAC,MAAM,EAAE,IAAI;aACpB,KAAK,CAAC,IAAI,CAAC;AAEd,QAAA,OAAO;AACL,cAAE,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,KAAK,IAAI,KAAK,EAAE;cAClC,KAAK;IACX;8GATW,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;4GAAZ,YAAY,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,UAAA,EAAA,CAAA,CAAA;;2FAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;kBAHxB,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACJ,oBAAA,IAAI,EAAE,UAAU;AACjB,iBAAA;;;ACJD;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-linify.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/linify/src/linify.pipe.ts","../../../../libs/mintplayer-ng-bootstrap/linify/mintplayer-ng-bootstrap-linify.ts"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'bsLinify',\n})\nexport class BsLinifyPipe implements PipeTransform {\n /**\n * Splits text into lines, normalizing CRLF first.\n *\n * The `/g` flag is load-bearing: without it only the FIRST CRLF was rewritten\n * and every later line of Windows-authored text kept a trailing `\\r`, which\n * then rode along into whatever the consumer rendered or compared.\n */\n transform(value: string, removeEmptyEntries = true) {\n const split = value\n .replace(/\\r\\n/g, '\\n')\n .split('\\n');\n\n return removeEmptyEntries\n ? split.filter((line) => line !== '')\n : split;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAKa,YAAY,CAAA;AACvB;;;;;;AAMG;AACH,IAAA,SAAS,CAAC,KAAa,EAAE,kBAAkB,GAAG,IAAI,EAAA;QAChD,MAAM,KAAK,GAAG;AACX,aAAA,OAAO,CAAC,OAAO,EAAE,IAAI;aACrB,KAAK,CAAC,IAAI,CAAC;AAEd,QAAA,OAAO;AACL,cAAE,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,KAAK,IAAI,KAAK,EAAE;cAClC,KAAK;IACX;8GAhBW,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;4GAAZ,YAAY,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,UAAA,EAAA,CAAA,CAAA;;2FAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;kBAHxB,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACJ,oBAAA,IAAI,EAAE,UAAU;AACjB,iBAAA;;;ACJD;;AAEG;;;;"}
@@ -2,12 +2,22 @@ import * as i0 from '@angular/core';
2
2
  import { Pipe } from '@angular/core';
3
3
 
4
4
  class BsSlugifyPipe {
5
+ /**
6
+ * Turns a title into a URL slug.
7
+ *
8
+ * Latin text is still decomposed and stripped of diacritics, so `Crème` stays
9
+ * `creme` and existing slugs are unchanged. What changed is the character
10
+ * class: it keeps letters and numbers in ANY script (`\p{L}\p{N}`) instead of
11
+ * ASCII `\w`. The old class removed every character of a script with no Latin
12
+ * decomposition, so a non-Latin title slugified to the empty string — a route
13
+ * segment that cannot work rather than one that merely looks unfamiliar.
14
+ */
5
15
  transform(value) {
6
16
  return value.toString().toLowerCase()
7
17
  .replace(/\s+/g, '-') // Replace spaces with -
8
18
  .normalize("NFD").replace(/[\u0300-\u036f]/g, "") // Remove diacritics
9
- .replace(/[^\w\-]+/g, '') // Remove all non-word chars
10
- .replace(/\-\-+/g, '-') // Replace multiple - with single -
19
+ .replace(/[^\p{L}\p{N}_-]+/gu, '') // Remove all non-word chars
20
+ .replace(/-{2,}/g, '-') // Replace multiple - with single -
11
21
  .replace(/^-+/, '') // Trim - from start of text
12
22
  .replace(/-+$/, ''); // Trim - from end of text
13
23
  }
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-slugify.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/slugify/src/slugify.pipe.ts","../../../../libs/mintplayer-ng-bootstrap/slugify/mintplayer-ng-bootstrap-slugify.ts"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'bsSlugify',\n pure: true,\n})\nexport class BsSlugifyPipe implements PipeTransform {\n transform(value: string) {\n return value.toString().toLowerCase()\n .replace(/\\s+/g, '-') // Replace spaces with -\n .normalize(\"NFD\").replace(/[\\u0300-\\u036f]/g, \"\") // Remove diacritics\n .replace(/[^\\w\\-]+/g, '') // Remove all non-word chars\n .replace(/\\-\\-+/g, '-') // Replace multiple - with single -\n .replace(/^-+/, '') // Trim - from start of text\n .replace(/-+$/, ''); // Trim - from end of text\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAMa,aAAa,CAAA;AACxB,IAAA,SAAS,CAAC,KAAa,EAAA;AACrB,QAAA,OAAO,KAAK,CAAC,QAAQ,EAAE,CAAC,WAAW;AAChC,aAAA,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC;aACpB,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC;AAChD,aAAA,OAAO,CAAC,WAAW,EAAE,EAAE,CAAC;AACxB,aAAA,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC;AACtB,aAAA,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC;AAClB,aAAA,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACxB;8GATW,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;4GAAb,aAAa,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,CAAA;;2FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBAJzB,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACJ,oBAAA,IAAI,EAAE,WAAW;AACjB,oBAAA,IAAI,EAAE,IAAI;AACX,iBAAA;;;ACLD;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-slugify.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/slugify/src/slugify.pipe.ts","../../../../libs/mintplayer-ng-bootstrap/slugify/mintplayer-ng-bootstrap-slugify.ts"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'bsSlugify',\n pure: true,\n})\nexport class BsSlugifyPipe implements PipeTransform {\n /**\n * Turns a title into a URL slug.\n *\n * Latin text is still decomposed and stripped of diacritics, so `Crème` stays\n * `creme` and existing slugs are unchanged. What changed is the character\n * class: it keeps letters and numbers in ANY script (`\\p{L}\\p{N}`) instead of\n * ASCII `\\w`. The old class removed every character of a script with no Latin\n * decomposition, so a non-Latin title slugified to the empty string — a route\n * segment that cannot work rather than one that merely looks unfamiliar.\n */\n transform(value: string) {\n return value.toString().toLowerCase()\n .replace(/\\s+/g, '-') // Replace spaces with -\n .normalize(\"NFD\").replace(/[\\u0300-\\u036f]/g, \"\") // Remove diacritics\n .replace(/[^\\p{L}\\p{N}_-]+/gu, '') // Remove all non-word chars\n .replace(/-{2,}/g, '-') // Replace multiple - with single -\n .replace(/^-+/, '') // Trim - from start of text\n .replace(/-+$/, ''); // Trim - from end of text\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAMa,aAAa,CAAA;AACxB;;;;;;;;;AASG;AACH,IAAA,SAAS,CAAC,KAAa,EAAA;AACrB,QAAA,OAAO,KAAK,CAAC,QAAQ,EAAE,CAAC,WAAW;AAChC,aAAA,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC;aACpB,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC;AAChD,aAAA,OAAO,CAAC,oBAAoB,EAAE,EAAE,CAAC;AACjC,aAAA,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC;AACtB,aAAA,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC;AAClB,aAAA,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACxB;8GAnBW,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;4GAAb,aAAa,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,CAAA;;2FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBAJzB,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACJ,oBAAA,IAAI,EAAE,WAAW;AACjB,oBAAA,IAAI,EAAE,IAAI;AACX,iBAAA;;;ACLD;;AAEG;;;;"}
@@ -2,18 +2,23 @@ import * as i0 from '@angular/core';
2
2
  import { Pipe } from '@angular/core';
3
3
 
4
4
  class BsWordCountPipe {
5
+ /**
6
+ * Counts words, where a word is any run of non-whitespace.
7
+ *
8
+ * Splits on `/\s+/` rather than collapsing whitespace and splitting on a
9
+ * literal space: the earlier version collapsed only runs of TWO or more
10
+ * whitespace characters, so a single newline or tab between two words was
11
+ * neither collapsed nor split on and the pair counted as one word — while two
12
+ * or more whitespace characters happened to work, which is what made it hard
13
+ * to notice.
14
+ */
5
15
  transform(value) {
6
- if ((value === null) || (value === '')) {
16
+ if (!value)
7
17
  return 0;
8
- }
9
- else {
10
- return value
11
- .replace(/(^\s+)|(\s+$)/gi, '')
12
- .replace(/\s{2,}/gi, ' ')
13
- .split(' ')
14
- .filter(w => w !== '')
15
- .length;
16
- }
18
+ return value
19
+ .split(/\s+/)
20
+ .filter((word) => word !== '')
21
+ .length;
17
22
  }
18
23
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsWordCountPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
19
24
  static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: BsWordCountPipe, isStandalone: true, name: "bsWordCount" }); }
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-word-count.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/word-count/src/word-count.pipe.ts","../../../../libs/mintplayer-ng-bootstrap/word-count/mintplayer-ng-bootstrap-word-count.ts"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'bsWordCount',\n pure: true,\n})\nexport class BsWordCountPipe implements PipeTransform {\n transform(value: string) {\n if ((value === null) || (value === '')) {\n return 0;\n } else {\n return value\n .replace(/(^\\s+)|(\\s+$)/gi, '')\n .replace(/\\s{2,}/gi, ' ')\n .split(' ')\n .filter(w => w !== '')\n .length;\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAMa,eAAe,CAAA;AAC1B,IAAA,SAAS,CAAC,KAAa,EAAA;AACrB,QAAA,IAAI,CAAC,KAAK,KAAK,IAAI,MAAM,KAAK,KAAK,EAAE,CAAC,EAAE;AACtC,YAAA,OAAO,CAAC;QACV;aAAO;AACL,YAAA,OAAO;AACJ,iBAAA,OAAO,CAAC,iBAAiB,EAAE,EAAE;AAC7B,iBAAA,OAAO,CAAC,UAAU,EAAE,GAAG;iBACvB,KAAK,CAAC,GAAG;iBACT,MAAM,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE;AACpB,iBAAA,MAAM;QACX;IACF;8GAZW,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;4GAAf,eAAe,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,aAAA,EAAA,CAAA,CAAA;;2FAAf,eAAe,EAAA,UAAA,EAAA,CAAA;kBAJ3B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACJ,oBAAA,IAAI,EAAE,aAAa;AACnB,oBAAA,IAAI,EAAE,IAAI;AACX,iBAAA;;;ACLD;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-word-count.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/word-count/src/word-count.pipe.ts","../../../../libs/mintplayer-ng-bootstrap/word-count/mintplayer-ng-bootstrap-word-count.ts"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'bsWordCount',\n pure: true,\n})\nexport class BsWordCountPipe implements PipeTransform {\n /**\n * Counts words, where a word is any run of non-whitespace.\n *\n * Splits on `/\\s+/` rather than collapsing whitespace and splitting on a\n * literal space: the earlier version collapsed only runs of TWO or more\n * whitespace characters, so a single newline or tab between two words was\n * neither collapsed nor split on and the pair counted as one word — while two\n * or more whitespace characters happened to work, which is what made it hard\n * to notice.\n */\n transform(value: string) {\n if (!value) return 0;\n return value\n .split(/\\s+/)\n .filter((word) => word !== '')\n .length;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAMa,eAAe,CAAA;AAC1B;;;;;;;;;AASG;AACH,IAAA,SAAS,CAAC,KAAa,EAAA;AACrB,QAAA,IAAI,CAAC,KAAK;AAAE,YAAA,OAAO,CAAC;AACpB,QAAA,OAAO;aACJ,KAAK,CAAC,KAAK;aACX,MAAM,CAAC,CAAC,IAAI,KAAK,IAAI,KAAK,EAAE;AAC5B,aAAA,MAAM;IACX;8GAjBW,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;4GAAf,eAAe,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,aAAA,EAAA,CAAA,CAAA;;2FAAf,eAAe,EAAA,UAAA,EAAA,CAAA;kBAJ3B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACJ,oBAAA,IAAI,EAAE,aAAa;AACnB,oBAAA,IAAI,EAAE,IAAI;AACX,iBAAA;;;ACLD;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mintplayer/ng-bootstrap",
3
3
  "private": false,
4
- "version": "22.15.0",
4
+ "version": "22.17.0",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -7,12 +7,25 @@ declare class BsHierarchyChartComponent {
7
7
  readonly data: _angular_core.InputSignal<HierarchyNode | undefined>;
8
8
  readonly layout: _angular_core.InputSignal<HierarchyChartLayout>;
9
9
  readonly rootId: _angular_core.ModelSignal<string | undefined>;
10
- /** Levels rendered outward from the focus, or `'auto'` for every loaded level. */
11
- readonly maxDepth: _angular_core.InputSignal<number | "auto">;
10
+ /**
11
+ * Levels rendered outward from the focus, or `'auto'` for every loaded level.
12
+ * Unset leaves the element's own default: `'auto'`, or a 2-level window when
13
+ * a `loadChildren` loader is bound.
14
+ */
15
+ readonly maxDepth: _angular_core.InputSignal<number | "auto" | undefined>;
12
16
  readonly minAngle: _angular_core.InputSignal<number>;
13
17
  readonly minSize: _angular_core.InputSignal<number>;
14
18
  readonly showLabels: _angular_core.InputSignal<boolean>;
15
- readonly labelMinArea: _angular_core.InputSignal<number>;
19
+ /** Label font size in device px, constant across host size and zoom. */
20
+ readonly labelFontSize: _angular_core.InputSignal<number>;
21
+ /** Opaque color behind the chart for label contrast; unset = auto-detected. */
22
+ readonly backdrop: _angular_core.InputSignal<string | undefined>;
23
+ /** Gesture allowlist for the geometric zoom: 'wheel pinch' | 'wheel' | 'pinch' | 'none'. */
24
+ readonly zoomGestures: _angular_core.InputSignal<string>;
25
+ readonly zoomHintLabel: _angular_core.InputSignal<string | undefined>;
26
+ /** Renders the focus path as buttons above the chart. */
27
+ readonly showBreadcrumb: _angular_core.InputSignal<boolean>;
28
+ readonly breadcrumbLabel: _angular_core.InputSignal<string | undefined>;
16
29
  readonly colorMin: _angular_core.InputSignal<number>;
17
30
  readonly colorMax: _angular_core.InputSignal<number>;
18
31
  readonly colorStart: _angular_core.InputSignal<string>;
@@ -38,7 +51,7 @@ declare class BsHierarchyChartComponent {
38
51
  protected onNodeHover(event: Event): void;
39
52
  protected onNodeLoadError(event: Event): void;
40
53
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsHierarchyChartComponent, never>;
41
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsHierarchyChartComponent, "bs-hierarchy-chart", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "layout": { "alias": "layout"; "required": false; "isSignal": true; }; "rootId": { "alias": "rootId"; "required": false; "isSignal": true; }; "maxDepth": { "alias": "maxDepth"; "required": false; "isSignal": true; }; "minAngle": { "alias": "minAngle"; "required": false; "isSignal": true; }; "minSize": { "alias": "minSize"; "required": false; "isSignal": true; }; "showLabels": { "alias": "showLabels"; "required": false; "isSignal": true; }; "labelMinArea": { "alias": "labelMinArea"; "required": false; "isSignal": true; }; "colorMin": { "alias": "colorMin"; "required": false; "isSignal": true; }; "colorMax": { "alias": "colorMax"; "required": false; "isSignal": true; }; "colorStart": { "alias": "colorStart"; "required": false; "isSignal": true; }; "colorEnd": { "alias": "colorEnd"; "required": false; "isSignal": true; }; "transitionDuration": { "alias": "transitionDuration"; "required": false; "isSignal": true; }; "locale": { "alias": "locale"; "required": false; "isSignal": true; }; "inputLabel": { "alias": "inputLabel"; "required": false; "isSignal": true; }; "zoomOutLabel": { "alias": "zoomOutLabel"; "required": false; "isSignal": true; }; "metricUnitLabel": { "alias": "metricUnitLabel"; "required": false; "isSignal": true; }; "valueUnitLabel": { "alias": "valueUnitLabel"; "required": false; "isSignal": true; }; "loadingLabel": { "alias": "loadingLabel"; "required": false; "isSignal": true; }; "tooltipFormatter": { "alias": "tooltipFormatter"; "required": false; "isSignal": true; }; "labelFormatter": { "alias": "labelFormatter"; "required": false; "isSignal": true; }; "loadChildren": { "alias": "loadChildren"; "required": false; "isSignal": true; }; }, { "rootId": "rootIdChange"; "zoom": "zoom"; "nodeSelect": "nodeSelect"; "nodeHover": "nodeHover"; "nodeLoadError": "nodeLoadError"; }, never, never, true, never>;
54
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsHierarchyChartComponent, "bs-hierarchy-chart", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "layout": { "alias": "layout"; "required": false; "isSignal": true; }; "rootId": { "alias": "rootId"; "required": false; "isSignal": true; }; "maxDepth": { "alias": "maxDepth"; "required": false; "isSignal": true; }; "minAngle": { "alias": "minAngle"; "required": false; "isSignal": true; }; "minSize": { "alias": "minSize"; "required": false; "isSignal": true; }; "showLabels": { "alias": "showLabels"; "required": false; "isSignal": true; }; "labelFontSize": { "alias": "labelFontSize"; "required": false; "isSignal": true; }; "backdrop": { "alias": "backdrop"; "required": false; "isSignal": true; }; "zoomGestures": { "alias": "zoomGestures"; "required": false; "isSignal": true; }; "zoomHintLabel": { "alias": "zoomHintLabel"; "required": false; "isSignal": true; }; "showBreadcrumb": { "alias": "showBreadcrumb"; "required": false; "isSignal": true; }; "breadcrumbLabel": { "alias": "breadcrumbLabel"; "required": false; "isSignal": true; }; "colorMin": { "alias": "colorMin"; "required": false; "isSignal": true; }; "colorMax": { "alias": "colorMax"; "required": false; "isSignal": true; }; "colorStart": { "alias": "colorStart"; "required": false; "isSignal": true; }; "colorEnd": { "alias": "colorEnd"; "required": false; "isSignal": true; }; "transitionDuration": { "alias": "transitionDuration"; "required": false; "isSignal": true; }; "locale": { "alias": "locale"; "required": false; "isSignal": true; }; "inputLabel": { "alias": "inputLabel"; "required": false; "isSignal": true; }; "zoomOutLabel": { "alias": "zoomOutLabel"; "required": false; "isSignal": true; }; "metricUnitLabel": { "alias": "metricUnitLabel"; "required": false; "isSignal": true; }; "valueUnitLabel": { "alias": "valueUnitLabel"; "required": false; "isSignal": true; }; "loadingLabel": { "alias": "loadingLabel"; "required": false; "isSignal": true; }; "tooltipFormatter": { "alias": "tooltipFormatter"; "required": false; "isSignal": true; }; "labelFormatter": { "alias": "labelFormatter"; "required": false; "isSignal": true; }; "loadChildren": { "alias": "loadChildren"; "required": false; "isSignal": true; }; }, { "rootId": "rootIdChange"; "zoom": "zoom"; "nodeSelect": "nodeSelect"; "nodeHover": "nodeHover"; "nodeLoadError": "nodeLoadError"; }, never, never, true, never>;
42
55
  }
43
56
 
44
57
  export { BsHierarchyChartComponent };
@@ -2,6 +2,13 @@ import * as i0 from '@angular/core';
2
2
  import { PipeTransform } from '@angular/core';
3
3
 
4
4
  declare class BsLinifyPipe implements PipeTransform {
5
+ /**
6
+ * Splits text into lines, normalizing CRLF first.
7
+ *
8
+ * The `/g` flag is load-bearing: without it only the FIRST CRLF was rewritten
9
+ * and every later line of Windows-authored text kept a trailing `\r`, which
10
+ * then rode along into whatever the consumer rendered or compared.
11
+ */
5
12
  transform(value: string, removeEmptyEntries?: boolean): string[];
6
13
  static ɵfac: i0.ɵɵFactoryDeclaration<BsLinifyPipe, never>;
7
14
  static ɵpipe: i0.ɵɵPipeDeclaration<BsLinifyPipe, "bsLinify", true>;
@@ -2,6 +2,16 @@ import * as i0 from '@angular/core';
2
2
  import { PipeTransform } from '@angular/core';
3
3
 
4
4
  declare class BsSlugifyPipe implements PipeTransform {
5
+ /**
6
+ * Turns a title into a URL slug.
7
+ *
8
+ * Latin text is still decomposed and stripped of diacritics, so `Crème` stays
9
+ * `creme` and existing slugs are unchanged. What changed is the character
10
+ * class: it keeps letters and numbers in ANY script (`\p{L}\p{N}`) instead of
11
+ * ASCII `\w`. The old class removed every character of a script with no Latin
12
+ * decomposition, so a non-Latin title slugified to the empty string — a route
13
+ * segment that cannot work rather than one that merely looks unfamiliar.
14
+ */
5
15
  transform(value: string): string;
6
16
  static ɵfac: i0.ɵɵFactoryDeclaration<BsSlugifyPipe, never>;
7
17
  static ɵpipe: i0.ɵɵPipeDeclaration<BsSlugifyPipe, "bsSlugify", true>;
@@ -2,6 +2,16 @@ import * as i0 from '@angular/core';
2
2
  import { PipeTransform } from '@angular/core';
3
3
 
4
4
  declare class BsWordCountPipe implements PipeTransform {
5
+ /**
6
+ * Counts words, where a word is any run of non-whitespace.
7
+ *
8
+ * Splits on `/\s+/` rather than collapsing whitespace and splitting on a
9
+ * literal space: the earlier version collapsed only runs of TWO or more
10
+ * whitespace characters, so a single newline or tab between two words was
11
+ * neither collapsed nor split on and the pair counted as one word — while two
12
+ * or more whitespace characters happened to work, which is what made it hard
13
+ * to notice.
14
+ */
5
15
  transform(value: string): number;
6
16
  static ɵfac: i0.ɵɵFactoryDeclaration<BsWordCountPipe, never>;
7
17
  static ɵpipe: i0.ɵɵPipeDeclaration<BsWordCountPipe, "bsWordCount", true>;