@sentropic/design-system-angular 0.37.0 → 0.38.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.
- package/LICENSE +21 -0
- package/LICENSE.THIRD-PARTY.md +110 -0
- package/dist/Accordion.js +3 -3
- package/dist/Alert.js +3 -3
- package/dist/AnomalySwimLaneChart.js +3 -3
- package/dist/AppChrome.js +3 -3
- package/dist/AppHeader.js +3 -3
- package/dist/AppShell.js +3 -3
- package/dist/ArcDiagramChart.d.ts +3 -1
- package/dist/ArcDiagramChart.d.ts.map +1 -1
- package/dist/ArcDiagramChart.js +9 -23
- package/dist/ArcDiagramChart.js.map +1 -1
- package/dist/AreaChart.js +3 -3
- package/dist/AreaRangeChart.js +3 -3
- package/dist/AreaSplineRangeChart.js +3 -3
- package/dist/AspectRatio.js +3 -3
- package/dist/Autosave.js +3 -3
- package/dist/Avatar.js +3 -3
- package/dist/AvatarGroup.js +3 -3
- package/dist/BackToTop.js +3 -3
- package/dist/Badge.js +3 -3
- package/dist/BarChart.js +3 -3
- package/dist/BellCurveChart.js +5 -5
- package/dist/BoxPlotChart.js +3 -3
- package/dist/Breadcrumb.js +3 -3
- package/dist/BulletChart.js +5 -5
- package/dist/BumpChart.js +5 -5
- package/dist/Button.d.ts +5 -1
- package/dist/Button.d.ts.map +1 -1
- package/dist/Button.js +15 -3
- package/dist/Button.js.map +1 -1
- package/dist/ButtonGroup.js +3 -3
- package/dist/Calendar.d.ts +12 -1
- package/dist/Calendar.d.ts.map +1 -1
- package/dist/Calendar.js +27 -3
- package/dist/Calendar.js.map +1 -1
- package/dist/CalendarHeatmapChart.d.ts.map +1 -1
- package/dist/CalendarHeatmapChart.js +27 -25
- package/dist/CalendarHeatmapChart.js.map +1 -1
- package/dist/CandlestickChart.js +3 -3
- package/dist/Card.js +3 -3
- package/dist/ChatComposer.js +3 -3
- package/dist/ChatMessage.js +3 -3
- package/dist/ChatThread.js +3 -3
- package/dist/Checkbox.d.ts +3 -1
- package/dist/Checkbox.d.ts.map +1 -1
- package/dist/Checkbox.js +9 -3
- package/dist/Checkbox.js.map +1 -1
- package/dist/CheckboxGroup.js +3 -3
- package/dist/ChordDiagram.js +3 -3
- package/dist/CodeSnippet.js +3 -3
- package/dist/Col.js +3 -3
- package/dist/Collapsible.js +3 -3
- package/dist/ColorScaleBar.js +3 -3
- package/dist/ColorSwatch.js +3 -3
- package/dist/ColumnPyramidChart.js +3 -3
- package/dist/ColumnRangeChart.js +3 -3
- package/dist/ComboChart.js +3 -3
- package/dist/Combobox.js +3 -3
- package/dist/ConfigItemCard.js +3 -3
- package/dist/Container.js +3 -3
- package/dist/ContentSwitcher.js +3 -3
- package/dist/ContextPanel.js +3 -3
- package/dist/ContourChart.d.ts.map +1 -1
- package/dist/ContourChart.js +51 -45
- package/dist/ContourChart.js.map +1 -1
- package/dist/CopyButton.js +3 -3
- package/dist/Dashboard.js +3 -3
- package/dist/DashboardGrid.js +3 -3
- package/dist/DataImage.js +3 -3
- package/dist/DataTable.js +3 -3
- package/dist/DatePicker.js +3 -3
- package/dist/DecompositionTreeChart.js +3 -3
- package/dist/Density2DChart.js +3 -3
- package/dist/DependencyWheelChart.d.ts +3 -1
- package/dist/DependencyWheelChart.d.ts.map +1 -1
- package/dist/DependencyWheelChart.js +9 -23
- package/dist/DependencyWheelChart.js.map +1 -1
- package/dist/DisplaySettings.js +3 -3
- package/dist/DivergentBarChart.js +3 -3
- package/dist/Divider.js +3 -3
- package/dist/DonutChart.js +3 -3
- package/dist/Drawer.js +3 -3
- package/dist/Dropdown.js +3 -3
- package/dist/DumbbellChart.js +5 -5
- package/dist/Embed.js +3 -3
- package/dist/EmptyState.js +3 -3
- package/dist/ErrorBarChart.js +3 -3
- package/dist/ErrorSummary.js +3 -3
- package/dist/EventFeedPanel.js +5 -5
- package/dist/FieldCard.js +3 -3
- package/dist/FileUploader.js +3 -3
- package/dist/FilterBar.js +3 -3
- package/dist/FilterPill.js +3 -3
- package/dist/FlamegraphChart.js +3 -3
- package/dist/Flex.js +3 -3
- package/dist/Footer.js +3 -3
- package/dist/ForceGraph.js +3 -3
- package/dist/Form.js +3 -3
- package/dist/FormGroup.js +3 -3
- package/dist/FunnelChart.js +3 -3
- package/dist/GanttChart.js +3 -3
- package/dist/GaugeChart.js +3 -3
- package/dist/GeoChart.js +5 -5
- package/dist/GraphLegend.js +3 -3
- package/dist/Grid.js +3 -3
- package/dist/HLCChart.js +3 -3
- package/dist/Header.js +3 -3
- package/dist/HeatmapChart.d.ts.map +1 -1
- package/dist/HeatmapChart.js +51 -45
- package/dist/HeatmapChart.js.map +1 -1
- package/dist/HeikinAshiChart.js +3 -3
- package/dist/Hidden.js +3 -3
- package/dist/Highlight.js +3 -3
- package/dist/HistogramChart.js +3 -3
- package/dist/HollowCandlestickChart.js +3 -3
- package/dist/Icon.d.ts +6 -1
- package/dist/Icon.d.ts.map +1 -1
- package/dist/Icon.js +46 -4
- package/dist/Icon.js.map +1 -1
- package/dist/IconButton.js +3 -3
- package/dist/IdentityMenu.js +3 -3
- package/dist/Inline.d.ts +16 -1
- package/dist/Inline.d.ts.map +1 -1
- package/dist/Inline.js +36 -5
- package/dist/Inline.js.map +1 -1
- package/dist/InlineLoading.js +3 -3
- package/dist/Input.d.ts +3 -1
- package/dist/Input.d.ts.map +1 -1
- package/dist/Input.js +9 -3
- package/dist/Input.js.map +1 -1
- package/dist/ItemChart.js +3 -3
- package/dist/KanbanBoard.js +3 -3
- package/dist/KpiCard.d.ts.map +1 -1
- package/dist/KpiCard.js +9 -4
- package/dist/KpiCard.js.map +1 -1
- package/dist/LanguageSelector.js +3 -3
- package/dist/LanguageToggle.js +3 -3
- package/dist/LineChart.d.ts +12 -0
- package/dist/LineChart.d.ts.map +1 -1
- package/dist/LineChart.js +15 -6
- package/dist/LineChart.js.map +1 -1
- package/dist/Link.js +3 -3
- package/dist/ListReportPage.js +3 -3
- package/dist/LoadingState.js +3 -3
- package/dist/LollipopChart.js +3 -3
- package/dist/MarimekkoChart.js +5 -5
- package/dist/MasterDetail.js +3 -3
- package/dist/MediaContent.js +3 -3
- package/dist/Menu.js +3 -3
- package/dist/MenuPopover.d.ts +25 -3
- package/dist/MenuPopover.d.ts.map +1 -1
- package/dist/MenuPopover.js +105 -15
- package/dist/MenuPopover.js.map +1 -1
- package/dist/MenuTriggerButton.js +3 -3
- package/dist/MessageActions.js +3 -3
- package/dist/MessageStatusBadge.js +3 -3
- package/dist/Modal.js +3 -3
- package/dist/MultiSelect.js +3 -3
- package/dist/NavActionStack.js +3 -3
- package/dist/NavDrawer.js +3 -3
- package/dist/NavItem.js +3 -3
- package/dist/NavRail.js +3 -3
- package/dist/NavSection.d.ts +1 -1
- package/dist/NavSection.d.ts.map +1 -1
- package/dist/NavSection.js +20 -9
- package/dist/NavSection.js.map +1 -1
- package/dist/NavShell.js +3 -3
- package/dist/Notification.js +3 -3
- package/dist/NumberInput.d.ts +3 -1
- package/dist/NumberInput.d.ts.map +1 -1
- package/dist/NumberInput.js +9 -3
- package/dist/NumberInput.js.map +1 -1
- package/dist/OHLCChart.js +5 -5
- package/dist/ObjectPage.js +3 -3
- package/dist/OrderedList.js +3 -3
- package/dist/OrganizationChart.js +5 -5
- package/dist/OverflowMenu.js +3 -3
- package/dist/Overline.js +3 -3
- package/dist/PackedBubblesChart.js +5 -5
- package/dist/Pagination.js +3 -3
- package/dist/PaginationNav.js +3 -3
- package/dist/PanelSection.d.ts +12 -0
- package/dist/PanelSection.d.ts.map +1 -1
- package/dist/PanelSection.js +16 -4
- package/dist/PanelSection.js.map +1 -1
- package/dist/PanelStack.d.ts +17 -0
- package/dist/PanelStack.d.ts.map +1 -1
- package/dist/PanelStack.js +20 -3
- package/dist/PanelStack.js.map +1 -1
- package/dist/ParallelCoordinatesChart.js +5 -5
- package/dist/ParetoChart.js +5 -5
- package/dist/PasswordInput.js +3 -3
- package/dist/PointAndFigureChart.d.ts.map +1 -1
- package/dist/PointAndFigureChart.js +19 -15
- package/dist/PointAndFigureChart.js.map +1 -1
- package/dist/PolygonChart.js +5 -5
- package/dist/Popover.js +3 -3
- package/dist/Popper.js +3 -3
- package/dist/Portal.js +3 -3
- package/dist/PriorityMatrix.d.ts +103 -0
- package/dist/PriorityMatrix.d.ts.map +1 -0
- package/dist/PriorityMatrix.js +495 -0
- package/dist/PriorityMatrix.js.map +1 -0
- package/dist/ProgressBar.js +3 -3
- package/dist/ProgressIndicator.js +3 -3
- package/dist/Quote.js +3 -3
- package/dist/RadarChart.js +3 -3
- package/dist/Radio.js +3 -3
- package/dist/RadioGroup.js +3 -3
- package/dist/RangeSlider.js +3 -3
- package/dist/Rating.js +3 -3
- package/dist/RenkoChart.d.ts.map +1 -1
- package/dist/RenkoChart.js +22 -16
- package/dist/RenkoChart.js.map +1 -1
- package/dist/RibbonChart.js +3 -3
- package/dist/RoseChart.js +3 -3
- package/dist/Row.js +3 -3
- package/dist/SankeyChart.js +3 -3
- package/dist/ScatterPlot.js +3 -3
- package/dist/ScoreCard.js +3 -3
- package/dist/Search.d.ts.map +1 -1
- package/dist/Search.js +7 -5
- package/dist/Search.js.map +1 -1
- package/dist/Select.d.ts +3 -1
- package/dist/Select.d.ts.map +1 -1
- package/dist/Select.js +9 -3
- package/dist/Select.js.map +1 -1
- package/dist/SelectableList.js +3 -3
- package/dist/SelectableRow.js +3 -3
- package/dist/SelectionChip.d.ts.map +1 -1
- package/dist/SelectionChip.js +7 -5
- package/dist/SelectionChip.js.map +1 -1
- package/dist/SideNav.js +3 -3
- package/dist/SkeletonText.js +3 -3
- package/dist/SkipLink.js +3 -3
- package/dist/SlideIndicator.js +3 -3
- package/dist/Slider.js +3 -3
- package/dist/SolidGaugeChart.js +3 -3
- package/dist/Sparkline.js +3 -3
- package/dist/Stack.js +3 -3
- package/dist/StackedBarChart.d.ts.map +1 -1
- package/dist/StackedBarChart.js +32 -18
- package/dist/StackedBarChart.js.map +1 -1
- package/dist/StateTimelineChart.js +3 -3
- package/dist/StatusDot.js +3 -3
- package/dist/StatusHistoryChart.js +3 -3
- package/dist/StepLineChart.js +3 -3
- package/dist/Stepper.js +3 -3
- package/dist/StreamgraphChart.js +3 -3
- package/dist/StreamingMessage.js +3 -3
- package/dist/StructuredList.js +3 -3
- package/dist/SunburstChart.js +5 -5
- package/dist/Switch.js +3 -3
- package/dist/Table.js +3 -3
- package/dist/TableOfContents.js +3 -3
- package/dist/Tabs.js +3 -3
- package/dist/Tag.js +3 -3
- package/dist/Textarea.d.ts +3 -1
- package/dist/Textarea.d.ts.map +1 -1
- package/dist/Textarea.js +9 -3
- package/dist/Textarea.js.map +1 -1
- package/dist/ThemeProvider.js +3 -3
- package/dist/Tile.js +3 -3
- package/dist/TileGroup.js +3 -3
- package/dist/TileMapChart.js +3 -3
- package/dist/TimePicker.js +3 -3
- package/dist/TimeRangePicker.d.ts +23 -2
- package/dist/TimeRangePicker.d.ts.map +1 -1
- package/dist/TimeRangePicker.js +156 -24
- package/dist/TimeRangePicker.js.map +1 -1
- package/dist/Timeline.js +3 -3
- package/dist/TimelineChart.d.ts.map +1 -1
- package/dist/TimelineChart.js +4 -4
- package/dist/TimelineChart.js.map +1 -1
- package/dist/Toast.js +3 -3
- package/dist/Toggle.js +3 -3
- package/dist/Toggletip.js +3 -3
- package/dist/Tooltip.js +3 -3
- package/dist/TraceWaterfallChart.js +3 -3
- package/dist/Transcription.js +3 -3
- package/dist/TreeView.js +3 -3
- package/dist/TreegraphChart.js +5 -5
- package/dist/TreemapChart.js +5 -5
- package/dist/Typography.js +3 -3
- package/dist/UnorderedList.js +3 -3
- package/dist/UtilityPanel.js +3 -3
- package/dist/VariablePieChart.js +3 -3
- package/dist/VectorFieldChart.d.ts.map +1 -1
- package/dist/VectorFieldChart.js +20 -16
- package/dist/VectorFieldChart.js.map +1 -1
- package/dist/VennChart.js +3 -3
- package/dist/ViolinChart.js +3 -3
- package/dist/WaffleChart.js +3 -3
- package/dist/WaterfallChart.js +3 -3
- package/dist/WindBarbChart.d.ts.map +1 -1
- package/dist/WindBarbChart.js +19 -15
- package/dist/WindBarbChart.js.map +1 -1
- package/dist/Wizard.js +4 -4
- package/dist/WordCloudChart.js +3 -3
- package/dist/chartScale.d.ts +8 -0
- package/dist/chartScale.d.ts.map +1 -1
- package/dist/chartScale.js +48 -5
- package/dist/chartScale.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/priorityLabels.d.ts +143 -0
- package/dist/priorityLabels.d.ts.map +1 -0
- package/dist/priorityLabels.js +240 -0
- package/dist/priorityLabels.js.map +1 -0
- package/dist/styles.css +87 -4
- package/package.json +8 -6
- package/dist/GeoMap.d.ts +0 -204
- package/dist/GeoMap.d.ts.map +0 -1
- package/dist/GeoMap.js +0 -715
- package/dist/GeoMap.js.map +0 -1
|
@@ -0,0 +1,495 @@
|
|
|
1
|
+
import { Component, Input as NgInput } from "@angular/core";
|
|
2
|
+
import { placePriorityLabels } from "./priorityLabels.js";
|
|
3
|
+
import { classNames } from "./classNames.js";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
const MARGIN = { top: 26, right: 18, bottom: 36, left: 48 };
|
|
6
|
+
const TICKS = [0, 20, 40, 60, 80, 100];
|
|
7
|
+
const TONES = [
|
|
8
|
+
"category1",
|
|
9
|
+
"category2",
|
|
10
|
+
"category3",
|
|
11
|
+
"category4",
|
|
12
|
+
"category5",
|
|
13
|
+
"category6",
|
|
14
|
+
"category7",
|
|
15
|
+
"category8",
|
|
16
|
+
];
|
|
17
|
+
const QUADRANT_NAMES = {
|
|
18
|
+
"quick-wins": "Gains rapides",
|
|
19
|
+
"major-projects": "Projets majeurs",
|
|
20
|
+
wait: "Attendre",
|
|
21
|
+
drop: "Ne pas faire",
|
|
22
|
+
};
|
|
23
|
+
function splitLabel(value) {
|
|
24
|
+
const chars = [...value];
|
|
25
|
+
if (chars.length <= 12)
|
|
26
|
+
return [value];
|
|
27
|
+
const mid = Math.ceil(chars.length / 2);
|
|
28
|
+
const space = value.lastIndexOf(" ", mid + 4);
|
|
29
|
+
if (space > 2 && space < value.length - 2)
|
|
30
|
+
return [value.slice(0, space), value.slice(space + 1)];
|
|
31
|
+
return [value.slice(0, mid), value.slice(mid)];
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Fixed obstacles for the placement: keep-out bands around the two threshold
|
|
35
|
+
* lines plus one rectangle per quadrant name, in frame pixels. Estimated from
|
|
36
|
+
* the rendered geometry (11px names); a soft cost, not a hard exclusion.
|
|
37
|
+
*/
|
|
38
|
+
function buildMatrixObstacles(tx, ty, plotW, plotH) {
|
|
39
|
+
const names = [
|
|
40
|
+
{ x: MARGIN.left + 6, y: MARGIN.top + 14, anchor: "start", text: QUADRANT_NAMES["quick-wins"] },
|
|
41
|
+
{ x: MARGIN.left + plotW - 6, y: MARGIN.top + 14, anchor: "end", text: QUADRANT_NAMES["major-projects"] },
|
|
42
|
+
{ x: MARGIN.left + 6, y: MARGIN.top + plotH - 8, anchor: "start", text: QUADRANT_NAMES.wait },
|
|
43
|
+
{ x: MARGIN.left + plotW - 6, y: MARGIN.top + plotH - 8, anchor: "end", text: QUADRANT_NAMES.drop },
|
|
44
|
+
];
|
|
45
|
+
const out = [
|
|
46
|
+
{ x: tx - 3, y: MARGIN.top, w: 6, h: plotH },
|
|
47
|
+
{ x: MARGIN.left, y: ty - 3, w: plotW, h: 6 },
|
|
48
|
+
];
|
|
49
|
+
for (const q of names) {
|
|
50
|
+
const w = [...q.text].length * 6.5 + 4;
|
|
51
|
+
out.push({ x: q.anchor === "start" ? q.x : q.x - w, y: q.y - 9, w, h: 12 });
|
|
52
|
+
}
|
|
53
|
+
return out;
|
|
54
|
+
}
|
|
55
|
+
/** Accessible coordinate text; non-finite values read as N/A, never NaN. */
|
|
56
|
+
function coordText(v) {
|
|
57
|
+
return Number.isFinite(v) ? String(v) : "N/A";
|
|
58
|
+
}
|
|
59
|
+
export class PriorityMatrix {
|
|
60
|
+
static stComponentName = "PriorityMatrix";
|
|
61
|
+
componentName = "PriorityMatrix";
|
|
62
|
+
MARGIN = MARGIN;
|
|
63
|
+
ticks = TICKS;
|
|
64
|
+
data;
|
|
65
|
+
title;
|
|
66
|
+
xLabel;
|
|
67
|
+
yLabel;
|
|
68
|
+
xThreshold;
|
|
69
|
+
yThreshold;
|
|
70
|
+
width;
|
|
71
|
+
height;
|
|
72
|
+
radius;
|
|
73
|
+
label;
|
|
74
|
+
classInput;
|
|
75
|
+
get hostClass() {
|
|
76
|
+
return classNames("st-priorityMatrix", this.classInput);
|
|
77
|
+
}
|
|
78
|
+
get safeData() {
|
|
79
|
+
return this.data ?? [];
|
|
80
|
+
}
|
|
81
|
+
get widthValue() {
|
|
82
|
+
return this.width ?? 640;
|
|
83
|
+
}
|
|
84
|
+
get heightValue() {
|
|
85
|
+
return this.height ?? 400;
|
|
86
|
+
}
|
|
87
|
+
get radiusValue() {
|
|
88
|
+
return this.radius ?? 5;
|
|
89
|
+
}
|
|
90
|
+
get titleValue() {
|
|
91
|
+
return this.title ?? "Matrice de priorisation";
|
|
92
|
+
}
|
|
93
|
+
get xThresholdValue() {
|
|
94
|
+
return this.xThreshold ?? 50;
|
|
95
|
+
}
|
|
96
|
+
get yThresholdValue() {
|
|
97
|
+
return this.yThreshold ?? 50;
|
|
98
|
+
}
|
|
99
|
+
get viewBox() {
|
|
100
|
+
return `0 0 ${this.widthValue} ${this.heightValue}`;
|
|
101
|
+
}
|
|
102
|
+
get plotW() {
|
|
103
|
+
return Math.max(this.widthValue - MARGIN.left - MARGIN.right, 1);
|
|
104
|
+
}
|
|
105
|
+
get plotH() {
|
|
106
|
+
return Math.max(this.heightValue - MARGIN.top - MARGIN.bottom, 1);
|
|
107
|
+
}
|
|
108
|
+
tickX(v) {
|
|
109
|
+
return Number.isFinite(v) ? MARGIN.left + (Math.min(Math.max(v, 0), 100) / 100) * this.plotW : MARGIN.left;
|
|
110
|
+
}
|
|
111
|
+
tickY(v) {
|
|
112
|
+
return Number.isFinite(v) ? MARGIN.top + (1 - Math.min(Math.max(v, 0), 100) / 100) * this.plotH : MARGIN.top;
|
|
113
|
+
}
|
|
114
|
+
get tx() {
|
|
115
|
+
return this.tickX(this.xThresholdValue);
|
|
116
|
+
}
|
|
117
|
+
get ty() {
|
|
118
|
+
return this.tickY(this.yThresholdValue);
|
|
119
|
+
}
|
|
120
|
+
get quads() {
|
|
121
|
+
const { tx, ty, plotW, plotH } = this;
|
|
122
|
+
return [
|
|
123
|
+
{ id: "quick-wins", x: MARGIN.left, y: MARGIN.top, w: tx - MARGIN.left, h: ty - MARGIN.top },
|
|
124
|
+
{ id: "major-projects", x: tx, y: MARGIN.top, w: MARGIN.left + plotW - tx, h: ty - MARGIN.top },
|
|
125
|
+
{ id: "wait", x: MARGIN.left, y: ty, w: tx - MARGIN.left, h: MARGIN.top + plotH - ty },
|
|
126
|
+
{ id: "drop", x: tx, y: ty, w: MARGIN.left + plotW - tx, h: MARGIN.top + plotH - ty },
|
|
127
|
+
];
|
|
128
|
+
}
|
|
129
|
+
get quadNames() {
|
|
130
|
+
const { plotW, plotH } = this;
|
|
131
|
+
return [
|
|
132
|
+
{ id: "quick-wins", x: MARGIN.left + 6, y: MARGIN.top + 14, anchor: "start" },
|
|
133
|
+
{ id: "major-projects", x: MARGIN.left + plotW - 6, y: MARGIN.top + 14, anchor: "end" },
|
|
134
|
+
{ id: "wait", x: MARGIN.left + 6, y: MARGIN.top + plotH - 8, anchor: "start" },
|
|
135
|
+
{ id: "drop", x: MARGIN.left + plotW - 6, y: MARGIN.top + plotH - 8, anchor: "end" },
|
|
136
|
+
];
|
|
137
|
+
}
|
|
138
|
+
quadName(id) {
|
|
139
|
+
return QUADRANT_NAMES[id] ?? id;
|
|
140
|
+
}
|
|
141
|
+
get yAxisLabelY() {
|
|
142
|
+
return MARGIN.top + this.plotH / 2;
|
|
143
|
+
}
|
|
144
|
+
get yAxisLabelTransform() {
|
|
145
|
+
return `rotate(-90 12 ${this.yAxisLabelY})`;
|
|
146
|
+
}
|
|
147
|
+
get points() {
|
|
148
|
+
return this.safeData.map((d, i) => ({
|
|
149
|
+
cx: this.tickX(d.x),
|
|
150
|
+
cy: this.tickY(d.y),
|
|
151
|
+
datum: d,
|
|
152
|
+
index: i,
|
|
153
|
+
tone: d.tone ?? TONES[i % TONES.length],
|
|
154
|
+
}));
|
|
155
|
+
}
|
|
156
|
+
// Cached placement (ForceGraph precedent): the annealing pass costs ~1ms at
|
|
157
|
+
// 13 points but ~40ms at 50, and must not rerun on every change-detection
|
|
158
|
+
// cycle. Recomputed in ngOnInit/ngOnChanges only. Public because the template
|
|
159
|
+
// reads it; treat it as read-only from outside.
|
|
160
|
+
placed = [];
|
|
161
|
+
ngOnInit() {
|
|
162
|
+
this.refreshPlaced();
|
|
163
|
+
}
|
|
164
|
+
ngOnChanges(_changes) {
|
|
165
|
+
this.refreshPlaced();
|
|
166
|
+
}
|
|
167
|
+
refreshPlaced() {
|
|
168
|
+
const boxes = this.safeData.map((d) => {
|
|
169
|
+
const lines = splitLabel(d.label);
|
|
170
|
+
const longest = Math.max(...lines.map((l) => [...l].length));
|
|
171
|
+
return { w: Math.min(120, 12 + 7 * longest), h: lines.length > 1 ? 34 : 20, lines };
|
|
172
|
+
});
|
|
173
|
+
this.placed = placePriorityLabels(this.safeData.map((d) => ({ x: d.x, y: d.y, label: d.label })), boxes, {
|
|
174
|
+
width: this.widthValue,
|
|
175
|
+
height: this.heightValue,
|
|
176
|
+
marginLeft: MARGIN.left,
|
|
177
|
+
marginTop: MARGIN.top,
|
|
178
|
+
plotWidth: this.plotW,
|
|
179
|
+
plotHeight: this.plotH,
|
|
180
|
+
}, {
|
|
181
|
+
xThreshold: this.xThresholdValue,
|
|
182
|
+
yThreshold: this.yThresholdValue,
|
|
183
|
+
obstacles: buildMatrixObstacles(this.tx, this.ty, this.plotW, this.plotH),
|
|
184
|
+
}).map((p) => ({ ...p, lines: boxes[p.index].lines }));
|
|
185
|
+
}
|
|
186
|
+
get dataValueItems() {
|
|
187
|
+
return this.safeData.map((d) => `${d.label} : complexité ${coordText(d.x)}, valeur ${coordText(d.y)}`);
|
|
188
|
+
}
|
|
189
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: PriorityMatrix, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
190
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: PriorityMatrix, isStandalone: true, selector: "st-priority-matrix", inputs: { data: "data", title: "title", xLabel: "xLabel", yLabel: "yLabel", xThreshold: "xThreshold", yThreshold: "yThreshold", width: "width", height: "height", radius: "radius", label: "label", classInput: ["class", "classInput"] }, usesOnChanges: true, ngImport: i0, template: `
|
|
191
|
+
<div [attr.data-st-component]="componentName" [class]="hostClass">
|
|
192
|
+
<div class="st-priorityMatrix__visual" role="img" [attr.aria-label]="label">
|
|
193
|
+
<svg
|
|
194
|
+
[attr.viewBox]="viewBox"
|
|
195
|
+
preserveAspectRatio="xMidYMid meet"
|
|
196
|
+
width="100%"
|
|
197
|
+
height="100%"
|
|
198
|
+
focusable="false"
|
|
199
|
+
aria-hidden="true"
|
|
200
|
+
>
|
|
201
|
+
@if (titleValue) {
|
|
202
|
+
<text class="st-priorityMatrix__title" [attr.x]="MARGIN.left" y="15" text-anchor="start">{{ titleValue }}</text>
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
@for (q of quads; track q.id) {
|
|
206
|
+
<rect
|
|
207
|
+
[attr.class]="'st-priorityMatrix__quad st-priorityMatrix__quad--' + q.id"
|
|
208
|
+
[attr.x]="q.x"
|
|
209
|
+
[attr.y]="q.y"
|
|
210
|
+
[attr.width]="q.w"
|
|
211
|
+
[attr.height]="q.h"
|
|
212
|
+
></rect>
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
@for (t of ticks; track t) {
|
|
216
|
+
<line
|
|
217
|
+
class="st-priorityMatrix__grid"
|
|
218
|
+
[attr.x1]="MARGIN.left"
|
|
219
|
+
[attr.x2]="widthValue - MARGIN.right"
|
|
220
|
+
[attr.y1]="tickY(t)"
|
|
221
|
+
[attr.y2]="tickY(t)"
|
|
222
|
+
></line>
|
|
223
|
+
<text
|
|
224
|
+
class="st-priorityMatrix__tick"
|
|
225
|
+
[attr.x]="MARGIN.left - 6"
|
|
226
|
+
[attr.y]="tickY(t)"
|
|
227
|
+
text-anchor="end"
|
|
228
|
+
dominant-baseline="middle"
|
|
229
|
+
>{{ t }}</text>
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
@for (t of ticks; track t) {
|
|
233
|
+
<text
|
|
234
|
+
class="st-priorityMatrix__tick"
|
|
235
|
+
[attr.x]="tickX(t)"
|
|
236
|
+
[attr.y]="heightValue - MARGIN.bottom + 16"
|
|
237
|
+
text-anchor="middle"
|
|
238
|
+
>{{ t }}</text>
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
<line
|
|
242
|
+
class="st-priorityMatrix__axis"
|
|
243
|
+
[attr.x1]="MARGIN.left"
|
|
244
|
+
[attr.x2]="MARGIN.left"
|
|
245
|
+
[attr.y1]="MARGIN.top"
|
|
246
|
+
[attr.y2]="heightValue - MARGIN.bottom"
|
|
247
|
+
></line>
|
|
248
|
+
<line
|
|
249
|
+
class="st-priorityMatrix__axis"
|
|
250
|
+
[attr.x1]="MARGIN.left"
|
|
251
|
+
[attr.x2]="widthValue - MARGIN.right"
|
|
252
|
+
[attr.y1]="heightValue - MARGIN.bottom"
|
|
253
|
+
[attr.y2]="heightValue - MARGIN.bottom"
|
|
254
|
+
></line>
|
|
255
|
+
|
|
256
|
+
<line class="st-priorityMatrix__threshold" [attr.x1]="tx" [attr.x2]="tx" [attr.y1]="MARGIN.top" [attr.y2]="MARGIN.top + plotH"></line>
|
|
257
|
+
<line class="st-priorityMatrix__threshold" [attr.x1]="MARGIN.left" [attr.x2]="MARGIN.left + plotW" [attr.y1]="ty" [attr.y2]="ty"></line>
|
|
258
|
+
|
|
259
|
+
@for (q of quadNames; track q.id) {
|
|
260
|
+
<text class="st-priorityMatrix__quadName" [attr.x]="q.x" [attr.y]="q.y" [attr.text-anchor]="q.anchor">{{ quadName(q.id) }}</text>
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
@if (xLabel) {
|
|
264
|
+
<text
|
|
265
|
+
class="st-priorityMatrix__axisLabel"
|
|
266
|
+
[attr.x]="MARGIN.left + plotW / 2"
|
|
267
|
+
[attr.y]="heightValue - 4"
|
|
268
|
+
text-anchor="middle"
|
|
269
|
+
>{{ xLabel }}</text>
|
|
270
|
+
}
|
|
271
|
+
@if (yLabel) {
|
|
272
|
+
<text
|
|
273
|
+
class="st-priorityMatrix__axisLabel"
|
|
274
|
+
[attr.x]="12"
|
|
275
|
+
[attr.y]="yAxisLabelY"
|
|
276
|
+
text-anchor="middle"
|
|
277
|
+
[attr.transform]="yAxisLabelTransform"
|
|
278
|
+
>{{ yLabel }}</text>
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
@for (p of points; track p.index) {
|
|
282
|
+
<circle
|
|
283
|
+
[attr.class]="'st-priorityMatrix__point st-priorityMatrix__point--' + p.tone"
|
|
284
|
+
[attr.cx]="p.cx"
|
|
285
|
+
[attr.cy]="p.cy"
|
|
286
|
+
[attr.r]="radiusValue"
|
|
287
|
+
></circle>
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
@for (p of placed; track p.index) {
|
|
291
|
+
<line
|
|
292
|
+
class="st-priorityMatrix__leader"
|
|
293
|
+
[attr.x1]="p.leaderX1"
|
|
294
|
+
[attr.y1]="p.leaderY1"
|
|
295
|
+
[attr.x2]="p.leaderX2"
|
|
296
|
+
[attr.y2]="p.leaderY2"
|
|
297
|
+
></line>
|
|
298
|
+
<rect
|
|
299
|
+
class="st-priorityMatrix__labelBox"
|
|
300
|
+
[attr.x]="p.x"
|
|
301
|
+
[attr.y]="p.y"
|
|
302
|
+
[attr.width]="p.w"
|
|
303
|
+
[attr.height]="p.h"
|
|
304
|
+
rx="3"
|
|
305
|
+
></rect>
|
|
306
|
+
@for (line of p.lines; track $index) {
|
|
307
|
+
<text
|
|
308
|
+
class="st-priorityMatrix__labelText"
|
|
309
|
+
[attr.x]="p.x + p.w / 2"
|
|
310
|
+
[attr.y]="p.y + 13 + $index * 13"
|
|
311
|
+
text-anchor="middle"
|
|
312
|
+
>{{ line }}</text>
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
</svg>
|
|
316
|
+
</div>
|
|
317
|
+
|
|
318
|
+
@if (dataValueItems.length > 0) {
|
|
319
|
+
<ul class="st-chartDataList" [attr.aria-label]="'Data values for ' + label">
|
|
320
|
+
@for (item of dataValueItems; track $index) {
|
|
321
|
+
<li>{{ item }}</li>
|
|
322
|
+
}
|
|
323
|
+
</ul>
|
|
324
|
+
}
|
|
325
|
+
</div>
|
|
326
|
+
`, isInline: true });
|
|
327
|
+
}
|
|
328
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: PriorityMatrix, decorators: [{
|
|
329
|
+
type: Component,
|
|
330
|
+
args: [{
|
|
331
|
+
selector: "st-priority-matrix",
|
|
332
|
+
standalone: true,
|
|
333
|
+
template: `
|
|
334
|
+
<div [attr.data-st-component]="componentName" [class]="hostClass">
|
|
335
|
+
<div class="st-priorityMatrix__visual" role="img" [attr.aria-label]="label">
|
|
336
|
+
<svg
|
|
337
|
+
[attr.viewBox]="viewBox"
|
|
338
|
+
preserveAspectRatio="xMidYMid meet"
|
|
339
|
+
width="100%"
|
|
340
|
+
height="100%"
|
|
341
|
+
focusable="false"
|
|
342
|
+
aria-hidden="true"
|
|
343
|
+
>
|
|
344
|
+
@if (titleValue) {
|
|
345
|
+
<text class="st-priorityMatrix__title" [attr.x]="MARGIN.left" y="15" text-anchor="start">{{ titleValue }}</text>
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
@for (q of quads; track q.id) {
|
|
349
|
+
<rect
|
|
350
|
+
[attr.class]="'st-priorityMatrix__quad st-priorityMatrix__quad--' + q.id"
|
|
351
|
+
[attr.x]="q.x"
|
|
352
|
+
[attr.y]="q.y"
|
|
353
|
+
[attr.width]="q.w"
|
|
354
|
+
[attr.height]="q.h"
|
|
355
|
+
></rect>
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
@for (t of ticks; track t) {
|
|
359
|
+
<line
|
|
360
|
+
class="st-priorityMatrix__grid"
|
|
361
|
+
[attr.x1]="MARGIN.left"
|
|
362
|
+
[attr.x2]="widthValue - MARGIN.right"
|
|
363
|
+
[attr.y1]="tickY(t)"
|
|
364
|
+
[attr.y2]="tickY(t)"
|
|
365
|
+
></line>
|
|
366
|
+
<text
|
|
367
|
+
class="st-priorityMatrix__tick"
|
|
368
|
+
[attr.x]="MARGIN.left - 6"
|
|
369
|
+
[attr.y]="tickY(t)"
|
|
370
|
+
text-anchor="end"
|
|
371
|
+
dominant-baseline="middle"
|
|
372
|
+
>{{ t }}</text>
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
@for (t of ticks; track t) {
|
|
376
|
+
<text
|
|
377
|
+
class="st-priorityMatrix__tick"
|
|
378
|
+
[attr.x]="tickX(t)"
|
|
379
|
+
[attr.y]="heightValue - MARGIN.bottom + 16"
|
|
380
|
+
text-anchor="middle"
|
|
381
|
+
>{{ t }}</text>
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
<line
|
|
385
|
+
class="st-priorityMatrix__axis"
|
|
386
|
+
[attr.x1]="MARGIN.left"
|
|
387
|
+
[attr.x2]="MARGIN.left"
|
|
388
|
+
[attr.y1]="MARGIN.top"
|
|
389
|
+
[attr.y2]="heightValue - MARGIN.bottom"
|
|
390
|
+
></line>
|
|
391
|
+
<line
|
|
392
|
+
class="st-priorityMatrix__axis"
|
|
393
|
+
[attr.x1]="MARGIN.left"
|
|
394
|
+
[attr.x2]="widthValue - MARGIN.right"
|
|
395
|
+
[attr.y1]="heightValue - MARGIN.bottom"
|
|
396
|
+
[attr.y2]="heightValue - MARGIN.bottom"
|
|
397
|
+
></line>
|
|
398
|
+
|
|
399
|
+
<line class="st-priorityMatrix__threshold" [attr.x1]="tx" [attr.x2]="tx" [attr.y1]="MARGIN.top" [attr.y2]="MARGIN.top + plotH"></line>
|
|
400
|
+
<line class="st-priorityMatrix__threshold" [attr.x1]="MARGIN.left" [attr.x2]="MARGIN.left + plotW" [attr.y1]="ty" [attr.y2]="ty"></line>
|
|
401
|
+
|
|
402
|
+
@for (q of quadNames; track q.id) {
|
|
403
|
+
<text class="st-priorityMatrix__quadName" [attr.x]="q.x" [attr.y]="q.y" [attr.text-anchor]="q.anchor">{{ quadName(q.id) }}</text>
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
@if (xLabel) {
|
|
407
|
+
<text
|
|
408
|
+
class="st-priorityMatrix__axisLabel"
|
|
409
|
+
[attr.x]="MARGIN.left + plotW / 2"
|
|
410
|
+
[attr.y]="heightValue - 4"
|
|
411
|
+
text-anchor="middle"
|
|
412
|
+
>{{ xLabel }}</text>
|
|
413
|
+
}
|
|
414
|
+
@if (yLabel) {
|
|
415
|
+
<text
|
|
416
|
+
class="st-priorityMatrix__axisLabel"
|
|
417
|
+
[attr.x]="12"
|
|
418
|
+
[attr.y]="yAxisLabelY"
|
|
419
|
+
text-anchor="middle"
|
|
420
|
+
[attr.transform]="yAxisLabelTransform"
|
|
421
|
+
>{{ yLabel }}</text>
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
@for (p of points; track p.index) {
|
|
425
|
+
<circle
|
|
426
|
+
[attr.class]="'st-priorityMatrix__point st-priorityMatrix__point--' + p.tone"
|
|
427
|
+
[attr.cx]="p.cx"
|
|
428
|
+
[attr.cy]="p.cy"
|
|
429
|
+
[attr.r]="radiusValue"
|
|
430
|
+
></circle>
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
@for (p of placed; track p.index) {
|
|
434
|
+
<line
|
|
435
|
+
class="st-priorityMatrix__leader"
|
|
436
|
+
[attr.x1]="p.leaderX1"
|
|
437
|
+
[attr.y1]="p.leaderY1"
|
|
438
|
+
[attr.x2]="p.leaderX2"
|
|
439
|
+
[attr.y2]="p.leaderY2"
|
|
440
|
+
></line>
|
|
441
|
+
<rect
|
|
442
|
+
class="st-priorityMatrix__labelBox"
|
|
443
|
+
[attr.x]="p.x"
|
|
444
|
+
[attr.y]="p.y"
|
|
445
|
+
[attr.width]="p.w"
|
|
446
|
+
[attr.height]="p.h"
|
|
447
|
+
rx="3"
|
|
448
|
+
></rect>
|
|
449
|
+
@for (line of p.lines; track $index) {
|
|
450
|
+
<text
|
|
451
|
+
class="st-priorityMatrix__labelText"
|
|
452
|
+
[attr.x]="p.x + p.w / 2"
|
|
453
|
+
[attr.y]="p.y + 13 + $index * 13"
|
|
454
|
+
text-anchor="middle"
|
|
455
|
+
>{{ line }}</text>
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
</svg>
|
|
459
|
+
</div>
|
|
460
|
+
|
|
461
|
+
@if (dataValueItems.length > 0) {
|
|
462
|
+
<ul class="st-chartDataList" [attr.aria-label]="'Data values for ' + label">
|
|
463
|
+
@for (item of dataValueItems; track $index) {
|
|
464
|
+
<li>{{ item }}</li>
|
|
465
|
+
}
|
|
466
|
+
</ul>
|
|
467
|
+
}
|
|
468
|
+
</div>
|
|
469
|
+
`,
|
|
470
|
+
}]
|
|
471
|
+
}], propDecorators: { data: [{
|
|
472
|
+
type: NgInput
|
|
473
|
+
}], title: [{
|
|
474
|
+
type: NgInput
|
|
475
|
+
}], xLabel: [{
|
|
476
|
+
type: NgInput
|
|
477
|
+
}], yLabel: [{
|
|
478
|
+
type: NgInput
|
|
479
|
+
}], xThreshold: [{
|
|
480
|
+
type: NgInput
|
|
481
|
+
}], yThreshold: [{
|
|
482
|
+
type: NgInput
|
|
483
|
+
}], width: [{
|
|
484
|
+
type: NgInput
|
|
485
|
+
}], height: [{
|
|
486
|
+
type: NgInput
|
|
487
|
+
}], radius: [{
|
|
488
|
+
type: NgInput
|
|
489
|
+
}], label: [{
|
|
490
|
+
type: NgInput
|
|
491
|
+
}], classInput: [{
|
|
492
|
+
type: NgInput,
|
|
493
|
+
args: ["class"]
|
|
494
|
+
}] } });
|
|
495
|
+
//# sourceMappingURL=PriorityMatrix.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PriorityMatrix.js","sourceRoot":"","sources":["../src/PriorityMatrix.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,IAAI,OAAO,EAAE,MAAM,eAAe,CAAC;AAE5D,OAAO,EAAE,mBAAmB,EAA6D,MAAM,qBAAqB,CAAC;AAErH,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;;AAsC7C,MAAM,MAAM,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAW,CAAC;AACrE,MAAM,KAAK,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC;AAEvC,MAAM,KAAK,GAAyB;IAClC,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;CACZ,CAAC;AAEF,MAAM,cAAc,GAA2B;IAC7C,YAAY,EAAE,eAAe;IAC7B,gBAAgB,EAAE,iBAAiB;IACnC,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,cAAc;CACrB,CAAC;AAEF,SAAS,UAAU,CAAC,KAAa;IAC/B,MAAM,KAAK,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC;IACzB,IAAI,KAAK,CAAC,MAAM,IAAI,EAAE;QAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACvC,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CA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QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,KAAK,iBAAiB,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IACzG,CAAC;wGAjKU,cAAc;4FAAd,cAAc,8UA1If;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwIT;;4FAEU,cAAc;kBA7I1B,SAAS;mBAAC;oBACT,QAAQ,EAAE,oBAAoB;oBAC9B,UAAU,EAAE,IAAI;oBAChB,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwIT;iBACF;;sBAOE,OAAO;;sBACP,OAAO;;sBACP,OAAO;;sBACP,OAAO;;sBACP,OAAO;;sBACP,OAAO;;sBACP,OAAO;;sBACP,OAAO;;sBACP,OAAO;;sBACP,OAAO;;sBACP,OAAO;uBAAC,OAAO"}
|
package/dist/ProgressBar.js
CHANGED
|
@@ -53,8 +53,8 @@ export class ProgressBar {
|
|
|
53
53
|
get hostClass() {
|
|
54
54
|
return classNames("st-progressBar", this.classInput);
|
|
55
55
|
}
|
|
56
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
57
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
56
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: ProgressBar, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
57
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: ProgressBar, isStandalone: true, selector: "st-progress-bar", inputs: { label: "label", helperText: "helperText", value: "value", max: "max", tone: "tone", size: "size", indeterminate: "indeterminate", showValue: "showValue", valueText: "valueText", classInput: ["class", "classInput"] }, ngImport: i0, template: `
|
|
58
58
|
<div [attr.data-st-component]="componentName" [class]="hostClass">
|
|
59
59
|
@if (label || (showValue && !indeterminate)) {
|
|
60
60
|
<div class="st-progressBar__header">
|
|
@@ -83,7 +83,7 @@ export class ProgressBar {
|
|
|
83
83
|
</div>
|
|
84
84
|
`, isInline: true });
|
|
85
85
|
}
|
|
86
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
86
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: ProgressBar, decorators: [{
|
|
87
87
|
type: Component,
|
|
88
88
|
args: [{
|
|
89
89
|
selector: "st-progress-bar",
|
|
@@ -35,8 +35,8 @@ export class ProgressIndicator {
|
|
|
35
35
|
itemClass(item) {
|
|
36
36
|
return classNames("st-progressIndicator__step", `st-progressIndicator__step--${this.resolvedStatus(item)}`);
|
|
37
37
|
}
|
|
38
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
39
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
38
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: ProgressIndicator, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
39
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: ProgressIndicator, isStandalone: true, selector: "st-progress-indicator", inputs: { items: "items", orientation: "orientation", vertical: "vertical", label: "label", classInput: ["class", "classInput"] }, ngImport: i0, template: `
|
|
40
40
|
<ol
|
|
41
41
|
[attr.data-st-component]="componentName"
|
|
42
42
|
[class]="hostClass"
|
|
@@ -83,7 +83,7 @@ export class ProgressIndicator {
|
|
|
83
83
|
</ol>
|
|
84
84
|
`, isInline: true });
|
|
85
85
|
}
|
|
86
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
86
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: ProgressIndicator, decorators: [{
|
|
87
87
|
type: Component,
|
|
88
88
|
args: [{
|
|
89
89
|
selector: "st-progress-indicator",
|
package/dist/Quote.js
CHANGED
|
@@ -10,8 +10,8 @@ export class Quote {
|
|
|
10
10
|
get hostClass() {
|
|
11
11
|
return classNames("st-quote", this.classInput);
|
|
12
12
|
}
|
|
13
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
14
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
13
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: Quote, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
14
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: Quote, isStandalone: true, selector: "st-quote", inputs: { author: "author", source: "source", classInput: ["class", "classInput"] }, ngImport: i0, template: `
|
|
15
15
|
<blockquote [attr.data-st-component]="componentName" [class]="hostClass">
|
|
16
16
|
<p class="st-quote__text"><ng-content></ng-content></p>
|
|
17
17
|
@if (author || source) {
|
|
@@ -23,7 +23,7 @@ export class Quote {
|
|
|
23
23
|
</blockquote>
|
|
24
24
|
`, isInline: true });
|
|
25
25
|
}
|
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: Quote, decorators: [{
|
|
27
27
|
type: Component,
|
|
28
28
|
args: [{
|
|
29
29
|
selector: "st-quote",
|
package/dist/RadarChart.js
CHANGED
|
@@ -95,8 +95,8 @@ export class RadarChart {
|
|
|
95
95
|
handleLeave() {
|
|
96
96
|
this.hoveredIndex = null;
|
|
97
97
|
}
|
|
98
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
99
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
98
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: RadarChart, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
99
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: RadarChart, isStandalone: true, selector: "st-radar-chart", inputs: { axes: "axes", series: "series", maxValue: "maxValue", levels: "levels", width: "width", height: "height", legend: "legend", label: "label", classInput: ["class", "classInput"] }, ngImport: i0, template: `
|
|
100
100
|
<div [attr.data-st-component]="componentName" [class]="hostClass">
|
|
101
101
|
<div
|
|
102
102
|
class="st-radarChart__visual"
|
|
@@ -172,7 +172,7 @@ export class RadarChart {
|
|
|
172
172
|
</div>
|
|
173
173
|
`, isInline: true });
|
|
174
174
|
}
|
|
175
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
175
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: RadarChart, decorators: [{
|
|
176
176
|
type: Component,
|
|
177
177
|
args: [{
|
|
178
178
|
selector: "st-radar-chart",
|
package/dist/Radio.js
CHANGED
|
@@ -33,8 +33,8 @@ export class Radio {
|
|
|
33
33
|
this.updateModelValue.emit(val);
|
|
34
34
|
this.change.emit(event);
|
|
35
35
|
}
|
|
36
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
37
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
36
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: Radio, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
37
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: Radio, isStandalone: true, selector: "st-radio", inputs: { label: "label", helperText: "helperText", invalid: "invalid", modelValue: "modelValue", checked: "checked", disabled: "disabled", name: "name", value: "value", classInput: ["class", "classInput"] }, outputs: { modelValueChange: "modelValueChange", updateModelValue: "update:modelValue", change: "change" }, ngImport: i0, template: `
|
|
38
38
|
<label [attr.data-st-component]="componentName" [class]="hostClass">
|
|
39
39
|
<input
|
|
40
40
|
class="st-choice__input"
|
|
@@ -55,7 +55,7 @@ export class Radio {
|
|
|
55
55
|
</label>
|
|
56
56
|
`, isInline: true, styles: [":host { display: contents; }"] });
|
|
57
57
|
}
|
|
58
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
58
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: Radio, decorators: [{
|
|
59
59
|
type: Component,
|
|
60
60
|
args: [{ selector: "st-radio", standalone: true, template: `
|
|
61
61
|
<label [attr.data-st-component]="componentName" [class]="hostClass">
|
package/dist/RadioGroup.js
CHANGED
|
@@ -22,8 +22,8 @@ export class RadioGroup {
|
|
|
22
22
|
this.valueChange.emit(v);
|
|
23
23
|
this.onChange?.(v);
|
|
24
24
|
}
|
|
25
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
26
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
25
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: RadioGroup, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
26
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: RadioGroup, isStandalone: true, selector: "st-radio-group", inputs: { label: "label", legend: "legend", value: "value", onChange: "onChange", orientation: "orientation", name: "name", options: "options", helperText: "helperText", disabled: "disabled", classInput: ["class", "classInput"] }, outputs: { valueChange: "valueChange" }, ngImport: i0, template: `
|
|
27
27
|
<fieldset [attr.data-st-component]="componentName" [class]="hostClass" [disabled]="disabled ?? false">
|
|
28
28
|
@if (legend ?? label) {
|
|
29
29
|
<legend class="st-radioGroup__legend">{{ legend ?? label }}</legend>
|
|
@@ -55,7 +55,7 @@ export class RadioGroup {
|
|
|
55
55
|
</fieldset>
|
|
56
56
|
`, isInline: true });
|
|
57
57
|
}
|
|
58
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
58
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: RadioGroup, decorators: [{
|
|
59
59
|
type: Component,
|
|
60
60
|
args: [{
|
|
61
61
|
selector: "st-radio-group",
|