@sentropic/design-system-svelte 0.35.1 → 0.37.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.THIRD-PARTY.md +74 -1
- package/dist/Calendar.svelte +28 -1
- package/dist/Calendar.svelte.d.ts +7 -0
- package/dist/Calendar.svelte.d.ts.map +1 -1
- package/dist/ContentSwitcher.svelte +6 -1
- package/dist/DiagramCard.svelte +282 -0
- package/dist/DiagramCard.svelte.d.ts +44 -0
- package/dist/DiagramCard.svelte.d.ts.map +1 -0
- package/dist/DiagramCardHeader.svelte +173 -0
- package/dist/DiagramCardHeader.svelte.d.ts +37 -0
- package/dist/DiagramCardHeader.svelte.d.ts.map +1 -0
- package/dist/DiagramZone.svelte +378 -0
- package/dist/DiagramZone.svelte.d.ts +45 -0
- package/dist/DiagramZone.svelte.d.ts.map +1 -0
- package/dist/DiagramZoneHeader.svelte +97 -0
- package/dist/DiagramZoneHeader.svelte.d.ts +40 -0
- package/dist/DiagramZoneHeader.svelte.d.ts.map +1 -0
- package/dist/MenuPopover.svelte +101 -12
- package/dist/MenuPopover.svelte.d.ts.map +1 -1
- package/dist/Pagination.svelte +5 -0
- package/dist/RadioGroup.svelte +4 -1
- package/dist/TimeRangePicker.svelte +19 -1
- package/dist/TimeRangePicker.svelte.d.ts.map +1 -1
- package/dist/diagram-icons/DiagramIcon.svelte +65 -0
- package/dist/diagram-icons/DiagramIcon.svelte.d.ts +11 -0
- package/dist/diagram-icons/DiagramIcon.svelte.d.ts.map +1 -0
- package/dist/diagram-icons/PROVENANCE.md +72 -0
- package/dist/diagram-icons/index.d.ts +6 -0
- package/dist/diagram-icons/index.d.ts.map +1 -0
- package/dist/diagram-icons/index.js +4 -0
- package/dist/diagram-icons/registry.d.ts +52 -0
- package/dist/diagram-icons/registry.d.ts.map +1 -0
- package/dist/diagram-icons/registry.js +79 -0
- package/dist/diagram-render/index.d.ts +17 -0
- package/dist/diagram-render/index.d.ts.map +1 -0
- package/dist/diagram-render/index.js +11 -0
- package/dist/diagram-render/renderCardSvg.d.ts +83 -0
- package/dist/diagram-render/renderCardSvg.d.ts.map +1 -0
- package/dist/diagram-render/renderCardSvg.js +149 -0
- package/dist/diagram-render/renderZoneSvg.d.ts +88 -0
- package/dist/diagram-render/renderZoneSvg.d.ts.map +1 -0
- package/dist/diagram-render/renderZoneSvg.js +184 -0
- package/dist/diagramCardModel.d.ts +582 -0
- package/dist/diagramCardModel.d.ts.map +1 -0
- package/dist/diagramCardModel.js +1133 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/presence-badge/LockPresenceBadge.svelte +490 -0
- package/dist/presence-badge/LockPresenceBadge.svelte.d.ts +18 -0
- package/dist/presence-badge/LockPresenceBadge.svelte.d.ts.map +1 -0
- package/dist/presence-badge/index.d.ts +6 -0
- package/dist/presence-badge/index.d.ts.map +1 -0
- package/dist/presence-badge/index.js +3 -0
- package/dist/rich-text-editor/ComposerEditor.svelte +485 -0
- package/dist/rich-text-editor/ComposerEditor.svelte.d.ts +16 -0
- package/dist/rich-text-editor/ComposerEditor.svelte.d.ts.map +1 -0
- package/dist/rich-text-editor/RichTextEditor.svelte +557 -0
- package/dist/rich-text-editor/RichTextEditor.svelte.d.ts +45 -0
- package/dist/rich-text-editor/RichTextEditor.svelte.d.ts.map +1 -0
- package/dist/rich-text-editor/RichTextEditorFixture.svelte.d.ts +8 -0
- package/dist/rich-text-editor/RichTextEditorFixture.svelte.d.ts.map +1 -0
- package/dist/rich-text-editor/RichTextEditorNestedFixture.svelte.d.ts +13 -0
- package/dist/rich-text-editor/RichTextEditorNestedFixture.svelte.d.ts.map +1 -0
- package/dist/rich-text-editor/index.d.ts +10 -0
- package/dist/rich-text-editor/index.d.ts.map +1 -0
- package/dist/rich-text-editor/index.js +4 -0
- package/dist/rich-text-editor/rich-text-editor.css +115 -0
- package/package.json +54 -7
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import DiagramCardHeader from "./DiagramCardHeader.svelte";
|
|
3
|
+
import { ZONE_GEOMETRY, type DiagramGlyphPaths, type LaidOutLine } from "./diagramCardModel.js";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Internal zone header (DC-D1, spec §6.2): the shared `DiagramCardHeader`
|
|
7
|
+
* row (icon 70 at the 16 px inset, kicker over title at the 92 px text
|
|
8
|
+
* inset, toggle in the header slot) plus the subtitle block wrapping
|
|
9
|
+
* under the icon from the left inset. Composed by `DiagramZone`; not a
|
|
10
|
+
* public export.
|
|
11
|
+
*/
|
|
12
|
+
interface DiagramZoneHeaderProps {
|
|
13
|
+
kicker: readonly LaidOutLine[];
|
|
14
|
+
title: readonly LaidOutLine[];
|
|
15
|
+
subtitle: readonly LaidOutLine[];
|
|
16
|
+
iconName?: string;
|
|
17
|
+
iconGlyph?: DiagramGlyphPaths;
|
|
18
|
+
headerTextWidth: number;
|
|
19
|
+
/**
|
|
20
|
+
* Header row height from the shared model (`headerSlotGeometry`, review
|
|
21
|
+
* pass 2 item 10) — forwarded to `DiagramCardHeader` so the zone header
|
|
22
|
+
* row is exactly as tall as `layoutZone` computed.
|
|
23
|
+
*/
|
|
24
|
+
headerBlockHeight: number;
|
|
25
|
+
/** Subtitle measure: the layout's `subtitleWidth` —
|
|
26
|
+
* `min(width, 460) − 26`, the single geometry source. */
|
|
27
|
+
subtitleWidth: number;
|
|
28
|
+
toggle?: { collapsed: boolean; label: string; onToggle?: () => void };
|
|
29
|
+
/**
|
|
30
|
+
* Frame-top inset of the toggle (10 px in the frozen SVG) while the
|
|
31
|
+
* header band starts at the 16 px headerInset: forwarded as the toggle
|
|
32
|
+
* slot's top offset.
|
|
33
|
+
*/
|
|
34
|
+
toggleTopInset?: number;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
let {
|
|
38
|
+
kicker,
|
|
39
|
+
title,
|
|
40
|
+
subtitle,
|
|
41
|
+
iconName,
|
|
42
|
+
iconGlyph,
|
|
43
|
+
headerTextWidth,
|
|
44
|
+
headerBlockHeight,
|
|
45
|
+
subtitleWidth,
|
|
46
|
+
toggle,
|
|
47
|
+
toggleTopInset,
|
|
48
|
+
}: DiagramZoneHeaderProps = $props();
|
|
49
|
+
</script>
|
|
50
|
+
|
|
51
|
+
<div class="st-diagramZoneHeader">
|
|
52
|
+
<DiagramCardHeader
|
|
53
|
+
{kicker}
|
|
54
|
+
{title}
|
|
55
|
+
{iconName}
|
|
56
|
+
{iconGlyph}
|
|
57
|
+
{headerTextWidth}
|
|
58
|
+
{headerBlockHeight}
|
|
59
|
+
{toggle}
|
|
60
|
+
toggleTopOffset={toggleTopInset === undefined
|
|
61
|
+
? undefined
|
|
62
|
+
: toggleTopInset - ZONE_GEOMETRY.headerInset}
|
|
63
|
+
/>
|
|
64
|
+
{#if subtitle.length > 0}
|
|
65
|
+
<div class="st-diagramZoneHeader-subtitle" style={`width:${subtitleWidth}px`}>
|
|
66
|
+
{#each subtitle as line, subtitleIndex (subtitleIndex)}
|
|
67
|
+
<span class="st-diagramZone-subtitle">{line.text}</span>
|
|
68
|
+
{/each}
|
|
69
|
+
</div>
|
|
70
|
+
{/if}
|
|
71
|
+
</div>
|
|
72
|
+
|
|
73
|
+
<style>
|
|
74
|
+
.st-diagramZoneHeader {
|
|
75
|
+
display: flex;
|
|
76
|
+
flex-direction: column;
|
|
77
|
+
min-width: 0;
|
|
78
|
+
flex: 0 0 auto;
|
|
79
|
+
}
|
|
80
|
+
.st-diagramZoneHeader-subtitle {
|
|
81
|
+
/* subtitleGap aliases the card gap (§6.4). */
|
|
82
|
+
margin-top: var(--st-component-diagramZone-subtitleGap, var(--st-component-diagramCard-gap, 6px));
|
|
83
|
+
min-width: 0;
|
|
84
|
+
}
|
|
85
|
+
.st-diagramZone-subtitle {
|
|
86
|
+
display: block;
|
|
87
|
+
min-width: 0;
|
|
88
|
+
font-size: var(--st-component-diagramZone-subtitleFontSize, 24px);
|
|
89
|
+
font-weight: var(--st-component-diagramZone-subtitleFontWeight, 400);
|
|
90
|
+
line-height: var(--st-component-diagramZone-subtitleLineHeight, 1.3);
|
|
91
|
+
color: var(--st-component-diagramZone-text, var(--st-semantic-text-primary));
|
|
92
|
+
/* No mid-word break: an over-long word overflows and is diagnosed
|
|
93
|
+
(Astra J4), never silently broken or cut. */
|
|
94
|
+
overflow-wrap: normal;
|
|
95
|
+
word-break: normal;
|
|
96
|
+
}
|
|
97
|
+
</style>
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { type DiagramGlyphPaths, type LaidOutLine } from "./diagramCardModel.js";
|
|
2
|
+
/**
|
|
3
|
+
* Internal zone header (DC-D1, spec §6.2): the shared `DiagramCardHeader`
|
|
4
|
+
* row (icon 70 at the 16 px inset, kicker over title at the 92 px text
|
|
5
|
+
* inset, toggle in the header slot) plus the subtitle block wrapping
|
|
6
|
+
* under the icon from the left inset. Composed by `DiagramZone`; not a
|
|
7
|
+
* public export.
|
|
8
|
+
*/
|
|
9
|
+
interface DiagramZoneHeaderProps {
|
|
10
|
+
kicker: readonly LaidOutLine[];
|
|
11
|
+
title: readonly LaidOutLine[];
|
|
12
|
+
subtitle: readonly LaidOutLine[];
|
|
13
|
+
iconName?: string;
|
|
14
|
+
iconGlyph?: DiagramGlyphPaths;
|
|
15
|
+
headerTextWidth: number;
|
|
16
|
+
/**
|
|
17
|
+
* Header row height from the shared model (`headerSlotGeometry`, review
|
|
18
|
+
* pass 2 item 10) — forwarded to `DiagramCardHeader` so the zone header
|
|
19
|
+
* row is exactly as tall as `layoutZone` computed.
|
|
20
|
+
*/
|
|
21
|
+
headerBlockHeight: number;
|
|
22
|
+
/** Subtitle measure: the layout's `subtitleWidth` —
|
|
23
|
+
* `min(width, 460) − 26`, the single geometry source. */
|
|
24
|
+
subtitleWidth: number;
|
|
25
|
+
toggle?: {
|
|
26
|
+
collapsed: boolean;
|
|
27
|
+
label: string;
|
|
28
|
+
onToggle?: () => void;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Frame-top inset of the toggle (10 px in the frozen SVG) while the
|
|
32
|
+
* header band starts at the 16 px headerInset: forwarded as the toggle
|
|
33
|
+
* slot's top offset.
|
|
34
|
+
*/
|
|
35
|
+
toggleTopInset?: number;
|
|
36
|
+
}
|
|
37
|
+
declare const DiagramZoneHeader: import("svelte").Component<DiagramZoneHeaderProps, {}, "">;
|
|
38
|
+
type DiagramZoneHeader = ReturnType<typeof DiagramZoneHeader>;
|
|
39
|
+
export default DiagramZoneHeader;
|
|
40
|
+
//# sourceMappingURL=DiagramZoneHeader.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DiagramZoneHeader.svelte.d.ts","sourceRoot":"","sources":["../src/lib/DiagramZoneHeader.svelte.ts"],"names":[],"mappings":"AAIA,OAAO,EAAiB,KAAK,iBAAiB,EAAE,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAG9F;;;;;;GAMG;AACH,UAAU,sBAAsB;IAC9B,MAAM,EAAE,SAAS,WAAW,EAAE,CAAC;IAC/B,KAAK,EAAE,SAAS,WAAW,EAAE,CAAC;IAC9B,QAAQ,EAAE,SAAS,WAAW,EAAE,CAAC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,iBAAiB,CAAC;IAC9B,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;8DAC0D;IAC1D,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE;QAAE,SAAS,EAAE,OAAO,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;KAAE,CAAC;IACtE;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAqCH,QAAA,MAAM,iBAAiB,4DAAwC,CAAC;AAChE,KAAK,iBAAiB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC9D,eAAe,iBAAiB,CAAC"}
|
package/dist/MenuPopover.svelte
CHANGED
|
@@ -33,6 +33,10 @@
|
|
|
33
33
|
let maxHeight = $state(0);
|
|
34
34
|
let alignmentRight = $state(false);
|
|
35
35
|
let alignmentCenter = $state(false);
|
|
36
|
+
// True once the requested vertical side no longer fits and the panel is
|
|
37
|
+
// shown on the opposite side (flip). The placement class follows so the
|
|
38
|
+
// existing translate transforms keep working.
|
|
39
|
+
let flipped = $state(false);
|
|
36
40
|
|
|
37
41
|
const GAP = 4;
|
|
38
42
|
// Marge anti-débordement entre le panneau et le bord du viewport.
|
|
@@ -41,8 +45,19 @@
|
|
|
41
45
|
// plutôt qu'un menu écrasé (cas rare d'un déclencheur collé au bord).
|
|
42
46
|
const MIN_HEIGHT = 160;
|
|
43
47
|
|
|
48
|
+
function effectivePlacement(): "bottom-start" | "bottom-end" | "top-start" | "top-end" {
|
|
49
|
+
if (!flipped) return placement;
|
|
50
|
+
if (placement === "bottom-start") return "top-start";
|
|
51
|
+
if (placement === "bottom-end") return "top-end";
|
|
52
|
+
if (placement === "top-start") return "bottom-start";
|
|
53
|
+
return "bottom-end";
|
|
54
|
+
}
|
|
55
|
+
|
|
44
56
|
function computePosition() {
|
|
45
57
|
if (!trigger) return;
|
|
58
|
+
// Viewport coordinates (getBoundingClientRect) with `position: fixed`:
|
|
59
|
+
// no scroll offsets — the old document coordinates were wrong inside any
|
|
60
|
+
// positioned ancestor and the panel was clipped by overflow containers.
|
|
46
61
|
const rect = trigger.getBoundingClientRect();
|
|
47
62
|
const verticalUp = placement === "top-start" || placement === "top-end";
|
|
48
63
|
const horizontalEnd = placement === "bottom-end" || placement === "top-end";
|
|
@@ -54,15 +69,26 @@
|
|
|
54
69
|
alignmentRight = resolvedAlign === "end";
|
|
55
70
|
alignmentCenter = resolvedAlign === "center";
|
|
56
71
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
72
|
+
const panelHeight = panel?.offsetHeight ?? 0;
|
|
73
|
+
const panelWidth = panel?.offsetWidth ?? 0;
|
|
74
|
+
const need = panelHeight > 0 ? panelHeight : MIN_HEIGHT;
|
|
75
|
+
const spaceBelow = window.innerHeight - rect.bottom - GAP;
|
|
76
|
+
const spaceAbove = rect.top - GAP;
|
|
77
|
+
|
|
78
|
+
// Flip when the requested side cannot fit the panel and the other side
|
|
79
|
+
// offers more room.
|
|
80
|
+
let showUp = verticalUp;
|
|
81
|
+
if (!verticalUp && spaceBelow < need && spaceAbove > spaceBelow) showUp = true;
|
|
82
|
+
else if (verticalUp && spaceAbove < need && spaceBelow > spaceAbove) showUp = false;
|
|
83
|
+
flipped = showUp !== verticalUp;
|
|
84
|
+
|
|
85
|
+
if (showUp) {
|
|
86
|
+
// The panel's bottom edge sits above the trigger (transform handles the
|
|
87
|
+
// flip); available space is what's ABOVE the trigger.
|
|
88
|
+
top = rect.top - GAP;
|
|
63
89
|
maxHeight = Math.max(rect.top - GAP - VIEWPORT_MARGIN, MIN_HEIGHT);
|
|
64
90
|
} else {
|
|
65
|
-
top = rect.bottom +
|
|
91
|
+
top = rect.bottom + GAP;
|
|
66
92
|
// Espace réellement disponible SOUS le déclencheur : c'est ce qui manquait —
|
|
67
93
|
// `max-height: 100vh` ignorait l'offset du panneau et débordait par le bas.
|
|
68
94
|
maxHeight = Math.max(
|
|
@@ -71,18 +97,71 @@
|
|
|
71
97
|
);
|
|
72
98
|
}
|
|
73
99
|
|
|
100
|
+
// Reclamp horizontally so the measured panel stays inside the viewport.
|
|
74
101
|
if (resolvedAlign === "end") {
|
|
75
|
-
left = rect.right
|
|
102
|
+
left = rect.right;
|
|
103
|
+
if (panelWidth > 0) left = Math.min(Math.max(left, panelWidth + VIEWPORT_MARGIN), window.innerWidth - VIEWPORT_MARGIN);
|
|
76
104
|
} else if (resolvedAlign === "center") {
|
|
77
|
-
left = rect.left +
|
|
105
|
+
left = rect.left + rect.width / 2;
|
|
106
|
+
if (panelWidth > 0) {
|
|
107
|
+
left = Math.min(
|
|
108
|
+
Math.max(left, panelWidth / 2 + VIEWPORT_MARGIN),
|
|
109
|
+
window.innerWidth - panelWidth / 2 - VIEWPORT_MARGIN
|
|
110
|
+
);
|
|
111
|
+
}
|
|
78
112
|
} else {
|
|
79
|
-
left = rect.left
|
|
113
|
+
left = rect.left;
|
|
114
|
+
if (panelWidth > 0) left = Math.min(Math.max(left, VIEWPORT_MARGIN), window.innerWidth - panelWidth - VIEWPORT_MARGIN);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// --- Top layer -----------------------------------------------------------
|
|
119
|
+
// The element stays in place in the DOM (no portal to <body>) so it keeps
|
|
120
|
+
// inheriting the theme's `--st-*` custom properties; the Popover API only
|
|
121
|
+
// lifts rendering into the top layer, above overflow clipping. Where the
|
|
122
|
+
// API is missing (jsdom), plain `position: fixed` still applies.
|
|
123
|
+
let popoverShown = false;
|
|
124
|
+
|
|
125
|
+
function showTopLayer() {
|
|
126
|
+
const el = panel as (HTMLDivElement & { showPopover?: () => void }) | undefined;
|
|
127
|
+
if (!el || popoverShown) return;
|
|
128
|
+
if (typeof el.showPopover !== "function") return;
|
|
129
|
+
// The attribute is set ONLY here (never statically in markup): environments
|
|
130
|
+
// without the API (jsdom) hide every [popover] element via the UA rule, so
|
|
131
|
+
// a static attribute would force display:none under test.
|
|
132
|
+
el.setAttribute("popover", "manual");
|
|
133
|
+
try {
|
|
134
|
+
el.showPopover();
|
|
135
|
+
popoverShown = true;
|
|
136
|
+
} catch {
|
|
137
|
+
el.removeAttribute("popover");
|
|
138
|
+
// Already open or not ready — fixed positioning still applies.
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
function hideTopLayer() {
|
|
143
|
+
const el = panel as (HTMLDivElement & { hidePopover?: () => void }) | undefined;
|
|
144
|
+
popoverShown = false;
|
|
145
|
+
if (!el || typeof el.hidePopover !== "function") return;
|
|
146
|
+
try {
|
|
147
|
+
el.hidePopover();
|
|
148
|
+
} catch {
|
|
149
|
+
// Already hidden — nothing to do.
|
|
150
|
+
} finally {
|
|
151
|
+
el.removeAttribute("popover");
|
|
80
152
|
}
|
|
81
153
|
}
|
|
82
154
|
|
|
83
155
|
$effect(() => {
|
|
84
156
|
if (!open) return;
|
|
85
157
|
computePosition();
|
|
158
|
+
showTopLayer();
|
|
159
|
+
// Re-measure once the panel is laid out (size known for flip/clamp).
|
|
160
|
+
if (typeof requestAnimationFrame === "function") {
|
|
161
|
+
requestAnimationFrame(() => {
|
|
162
|
+
if (open) computePosition();
|
|
163
|
+
});
|
|
164
|
+
}
|
|
86
165
|
const onScroll = () => computePosition();
|
|
87
166
|
const onResize = () => computePosition();
|
|
88
167
|
window.addEventListener("scroll", onScroll, true);
|
|
@@ -90,6 +169,7 @@
|
|
|
90
169
|
return () => {
|
|
91
170
|
window.removeEventListener("scroll", onScroll, true);
|
|
92
171
|
window.removeEventListener("resize", onResize);
|
|
172
|
+
hideTopLayer();
|
|
93
173
|
};
|
|
94
174
|
});
|
|
95
175
|
|
|
@@ -121,7 +201,7 @@
|
|
|
121
201
|
const classes = () =>
|
|
122
202
|
[
|
|
123
203
|
"st-menuPopover",
|
|
124
|
-
`st-menuPopover--${
|
|
204
|
+
`st-menuPopover--${effectivePlacement()}`,
|
|
125
205
|
alignmentRight ? "st-menuPopover--alignEnd" : null,
|
|
126
206
|
alignmentCenter ? "st-menuPopover--alignCenter" : null,
|
|
127
207
|
className
|
|
@@ -133,6 +213,8 @@
|
|
|
133
213
|
<svelte:window onpointerdown={onWindowPointerDown} onkeydown={onWindowKeyDown} />
|
|
134
214
|
|
|
135
215
|
{#if open}
|
|
216
|
+
<!-- No static popover attribute: it is set imperatively by showTopLayer()
|
|
217
|
+
only where the Popover API exists (see above). -->
|
|
136
218
|
<div
|
|
137
219
|
{...rest}
|
|
138
220
|
bind:this={panel}
|
|
@@ -160,7 +242,14 @@
|
|
|
160
242
|
max-height: calc(100vh - 2rem);
|
|
161
243
|
overflow: auto;
|
|
162
244
|
padding: 0;
|
|
163
|
-
|
|
245
|
+
/* The Popover API UA sheet gives [popover] `inset: 0; margin: auto`: without
|
|
246
|
+
this reset the top-layer panel is re-centred between its top/left and the
|
|
247
|
+
viewport edges instead of sitting on the trigger. Inline top/left win. */
|
|
248
|
+
inset: auto;
|
|
249
|
+
margin: 0;
|
|
250
|
+
/* Viewport coordinates from getBoundingClientRect: fixed, never absolute
|
|
251
|
+
(absolute + document coords broke inside any positioned ancestor). */
|
|
252
|
+
position: fixed;
|
|
164
253
|
z-index: var(--st-component-popover-zIndex, 80);
|
|
165
254
|
}
|
|
166
255
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuPopover.svelte.d.ts","sourceRoot":"","sources":["../src/lib/MenuPopover.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGpD,KAAK,gBAAgB,GAAG,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC,GAAG;IACtE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,WAAW,GAAG,IAAI,CAAC;IAC5B,SAAS,CAAC,EAAE,cAAc,GAAG,YAAY,GAAG,WAAW,GAAG,SAAS,CAAC;IACpE,KAAK,CAAC,EAAE,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;
|
|
1
|
+
{"version":3,"file":"MenuPopover.svelte.d.ts","sourceRoot":"","sources":["../src/lib/MenuPopover.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGpD,KAAK,gBAAgB,GAAG,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC,GAAG;IACtE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,WAAW,GAAG,IAAI,CAAC;IAC5B,SAAS,CAAC,EAAE,cAAc,GAAG,YAAY,GAAG,WAAW,GAAG,SAAS,CAAC;IACpE,KAAK,CAAC,EAAE,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAuNJ,QAAA,MAAM,WAAW,0DAAwC,CAAC;AAC1D,KAAK,WAAW,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAClD,eAAe,WAAW,CAAC"}
|
package/dist/Pagination.svelte
CHANGED
|
@@ -98,6 +98,11 @@
|
|
|
98
98
|
);
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
+
.st-pagination button.st-pagination__page--active:hover:not(:disabled) {
|
|
102
|
+
background: var(--st-component-pagination-activeBackground, var(--st-semantic-action-primary));
|
|
103
|
+
color: var(--st-component-pagination-activeText, var(--st-semantic-action-primaryText));
|
|
104
|
+
}
|
|
105
|
+
|
|
101
106
|
.st-pagination button:disabled {
|
|
102
107
|
color: var(--st-component-pagination-disabledText, var(--st-semantic-text-muted));
|
|
103
108
|
cursor: not-allowed;
|
package/dist/RadioGroup.svelte
CHANGED
|
@@ -82,7 +82,10 @@
|
|
|
82
82
|
|
|
83
83
|
.st-radioGroup__legend {
|
|
84
84
|
color: var(--st-component-field-labelText, var(--st-semantic-text-primary));
|
|
85
|
-
|
|
85
|
+
/* Point d'entrée de personnalisation (même modèle que
|
|
86
|
+
--st-component-selection-choiceLabelFontSize) ; md = rendu actuel.
|
|
87
|
+
Pas de prop `size` : Checkbox/CheckboxGroup n'en ont aucune. */
|
|
88
|
+
font-size: var(--st-component-selection-legendFontSize, 0.9375rem);
|
|
86
89
|
font-weight: 650;
|
|
87
90
|
line-height: 1.3;
|
|
88
91
|
padding: 0;
|
|
@@ -196,6 +196,19 @@
|
|
|
196
196
|
return `${d.getFullYear()}-${String(d.getMonth() + 1).padStart(2, "0")}`;
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
+
// --- Couplage des deux mois (mode deux calendriers) -----------------------
|
|
200
|
+
// Invariant : droite > gauche, toujours. La comparaison lexicographique
|
|
201
|
+
// vaut l'ordre chronologique pour des "YYYY-MM" à mois rembourrés.
|
|
202
|
+
function onLeftMonthChange(next: string) {
|
|
203
|
+
leftMonth = next;
|
|
204
|
+
if (rightMonth <= next) rightMonth = monthOf(next, 1);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
function onRightMonthChange(next: string) {
|
|
208
|
+
rightMonth = next;
|
|
209
|
+
if (leftMonth >= next) leftMonth = monthOf(next, -1);
|
|
210
|
+
}
|
|
211
|
+
|
|
199
212
|
let leftMonth = $state<string>("");
|
|
200
213
|
let rightMonth = $state<string>("");
|
|
201
214
|
|
|
@@ -214,7 +227,10 @@
|
|
|
214
227
|
toText: `${split.toDate} ${split.toTime}`
|
|
215
228
|
};
|
|
216
229
|
leftMonth = monthOf(split.fromDate, 0);
|
|
217
|
-
|
|
230
|
+
// Droite = mois de la fin quand il est après la gauche, sinon gauche + 1 :
|
|
231
|
+
// les deux bornes deviennent visibles dès l'ouverture.
|
|
232
|
+
const endMonth = monthOf(split.toDate, 0);
|
|
233
|
+
rightMonth = endMonth > leftMonth ? endMonth : monthOf(leftMonth, 1);
|
|
218
234
|
}
|
|
219
235
|
|
|
220
236
|
let previousFocus: HTMLElement | null = null;
|
|
@@ -454,6 +470,7 @@
|
|
|
454
470
|
range
|
|
455
471
|
value={calendarValue}
|
|
456
472
|
onChange={onCalendarChange}
|
|
473
|
+
onMonthChange={onLeftMonthChange}
|
|
457
474
|
min={calendarMinIso}
|
|
458
475
|
max={calendarMaxIso}
|
|
459
476
|
{locale}
|
|
@@ -464,6 +481,7 @@
|
|
|
464
481
|
range
|
|
465
482
|
value={calendarValue}
|
|
466
483
|
onChange={onCalendarChange}
|
|
484
|
+
onMonthChange={onRightMonthChange}
|
|
467
485
|
min={calendarMinIso}
|
|
468
486
|
max={calendarMaxIso}
|
|
469
487
|
{locale}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimeRangePicker.svelte.d.ts","sourceRoot":"","sources":["../src/lib/TimeRangePicker.svelte.ts"],"names":[],"mappings":"AAOE,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG,UAAU,CAAC;AACpD,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,EAAE,aAAa,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AACF,MAAM,MAAM,eAAe,GACvB,MAAM,GACN;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAU7D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAsBpC,KAAK,oBAAoB,GAAG;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;IACtC,OAAO,CAAC,EAAE,eAAe,EAAE,CAAC;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,cAAc,GAAG,YAAY,GAAG,WAAW,GAAG,SAAS,CAAC;IACpE,KAAK,CAAC,EAAE,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAC;IACnC,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC;IAC3D,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC;IAC9D;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,mEAAmE;IACnE,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACxC,CAAC;
|
|
1
|
+
{"version":3,"file":"TimeRangePicker.svelte.d.ts","sourceRoot":"","sources":["../src/lib/TimeRangePicker.svelte.ts"],"names":[],"mappings":"AAOE,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG,UAAU,CAAC;AACpD,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,EAAE,aAAa,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AACF,MAAM,MAAM,eAAe,GACvB,MAAM,GACN;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAU7D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAsBpC,KAAK,oBAAoB,GAAG;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;IACtC,OAAO,CAAC,EAAE,eAAe,EAAE,CAAC;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,cAAc,GAAG,YAAY,GAAG,WAAW,GAAG,SAAS,CAAC;IACpE,KAAK,CAAC,EAAE,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAC;IACnC,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC;IAC3D,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC;IAC9D;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,mEAAmE;IACnE,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACxC,CAAC;AA8bJ,QAAA,MAAM,eAAe,+DAAwC,CAAC;AAC9D,KAAK,eAAe,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAC1D,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { DIAGRAM_GLYPHS, DIAGRAM_GLYPH_VIEWBOX, getDiagramGlyph } from "./registry.js";
|
|
3
|
+
|
|
4
|
+
interface DiagramIconProps {
|
|
5
|
+
/** A §9 glyph name. An unmapped name draws nothing (DIF-14). */
|
|
6
|
+
name: string;
|
|
7
|
+
/** Square box in px the 64-unit viewBox scales into. Default 70. */
|
|
8
|
+
size?: number;
|
|
9
|
+
class?: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
let { name, size = 70, class: className }: DiagramIconProps = $props();
|
|
13
|
+
|
|
14
|
+
const glyph = $derived(getDiagramGlyph(name));
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
{#if glyph}
|
|
18
|
+
<svg
|
|
19
|
+
class={["st-diagramIcon", className].filter(Boolean).join(" ")}
|
|
20
|
+
data-diagram-icon={name}
|
|
21
|
+
viewBox={DIAGRAM_GLYPH_VIEWBOX}
|
|
22
|
+
width={size}
|
|
23
|
+
height={size}
|
|
24
|
+
aria-hidden="true"
|
|
25
|
+
focusable="false"
|
|
26
|
+
>
|
|
27
|
+
<path
|
|
28
|
+
class="st-diagramIcon-base"
|
|
29
|
+
d={glyph.base}
|
|
30
|
+
fill="var(--st-component-diagramIcon-baseFill, color-mix(in srgb, var(--st-semantic-feedback-info) 18%, var(--st-semantic-surface-raised)))"
|
|
31
|
+
/>
|
|
32
|
+
<path
|
|
33
|
+
class="st-diagramIcon-face"
|
|
34
|
+
d={glyph.face}
|
|
35
|
+
fill="var(--st-component-diagramIcon-faceFill, color-mix(in srgb, var(--st-semantic-feedback-info) 75%, var(--st-semantic-surface-raised)))"
|
|
36
|
+
stroke="var(--st-component-diagramIcon-faceStroke, var(--st-semantic-feedback-info))"
|
|
37
|
+
stroke-width="1.5"
|
|
38
|
+
stroke-linejoin="round"
|
|
39
|
+
/>
|
|
40
|
+
{#if glyph.line}
|
|
41
|
+
<path
|
|
42
|
+
class="st-diagramIcon-line"
|
|
43
|
+
class:st-diagramIcon-line--dark={glyph.darkLine}
|
|
44
|
+
d={glyph.line}
|
|
45
|
+
fill="none"
|
|
46
|
+
stroke={glyph.darkLine
|
|
47
|
+
? "var(--st-component-diagramIcon-lineDarkStroke, var(--st-semantic-feedback-info))"
|
|
48
|
+
: "var(--st-component-diagramIcon-lineStroke, var(--st-semantic-surface-raised))"}
|
|
49
|
+
stroke-width="2.5"
|
|
50
|
+
stroke-linecap="round"
|
|
51
|
+
stroke-linejoin="round"
|
|
52
|
+
/>
|
|
53
|
+
{/if}
|
|
54
|
+
{#if glyph.text}
|
|
55
|
+
<text
|
|
56
|
+
x="32"
|
|
57
|
+
y="47"
|
|
58
|
+
text-anchor="middle"
|
|
59
|
+
fill="var(--st-component-diagramIcon-lineStroke, var(--st-semantic-surface-raised))"
|
|
60
|
+
font-size="13"
|
|
61
|
+
font-weight="750"
|
|
62
|
+
>{glyph.text}</text>
|
|
63
|
+
{/if}
|
|
64
|
+
</svg>
|
|
65
|
+
{/if}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface DiagramIconProps {
|
|
2
|
+
/** A §9 glyph name. An unmapped name draws nothing (DIF-14). */
|
|
3
|
+
name: string;
|
|
4
|
+
/** Square box in px the 64-unit viewBox scales into. Default 70. */
|
|
5
|
+
size?: number;
|
|
6
|
+
class?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const DiagramIcon: import("svelte").Component<DiagramIconProps, {}, "">;
|
|
9
|
+
type DiagramIcon = ReturnType<typeof DiagramIcon>;
|
|
10
|
+
export default DiagramIcon;
|
|
11
|
+
//# sourceMappingURL=DiagramIcon.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DiagramIcon.svelte.d.ts","sourceRoot":"","sources":["../../src/lib/diagram-icons/DiagramIcon.svelte.ts"],"names":[],"mappings":"AAME,UAAU,gBAAgB;IACxB,gEAAgE;IAChE,IAAI,EAAE,MAAM,CAAC;IACb,oEAAoE;IACpE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AA2BH,QAAA,MAAM,WAAW,sDAAwC,CAAC;AAC1D,KAAK,WAAW,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAClD,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# diagram-icons — provenance ledger (DC-1)
|
|
2
|
+
|
|
3
|
+
Spec: `spec/SPEC_EVOL_DS_DIAGRAM_CARDS.md` §9.3. One row per shipped glyph:
|
|
4
|
+
shipped name, source repository + commit + file, canonical-base redraw
|
|
5
|
+
(yes/no), layer notes.
|
|
6
|
+
|
|
7
|
+
Family contract (§9.1): `viewBox="0 0 64 64"`, canonical base diamond
|
|
8
|
+
`M8 53L32 44L56 53L32 62Z`, layers base (info 18 %) / face (info 75 % +
|
|
9
|
+
stroke 1.5) / line (surface, 2.5; dark variant info). Layer colours resolve
|
|
10
|
+
through the `diagramIcon` component tokens. No per-glyph colour, no raw hex.
|
|
11
|
+
|
|
12
|
+
No name collides across the two sources (radar 19 vs kit 9 are disjoint),
|
|
13
|
+
so no collision alias was recorded.
|
|
14
|
+
|
|
15
|
+
## radar-immobilier (19)
|
|
16
|
+
|
|
17
|
+
Source: `~/src/radar-immobilier`, commit `fa8133c2`,
|
|
18
|
+
`docs/architecture/focus/service-icons.js`. Header: "Original, local
|
|
19
|
+
pictograms. These are service symbols, not vendor logos." MIT package —
|
|
20
|
+
no third-party notice (original Sentropic pictograms, §9.3).
|
|
21
|
+
|
|
22
|
+
Redraw: **base-only**. The radar viewBox is already 64-unit and the
|
|
23
|
+
interiors are preserved verbatim; only the base diamond is replaced by the
|
|
24
|
+
canonical #711 base (radar `M7 54L32 42L57 54L32 64Z` differs by 1–2 units,
|
|
25
|
+
DIF-12). The radar fixed palette (`#dceaff` / `#639dff` / `#3f7ae0` /
|
|
26
|
+
`#e6f0ff` / `#3575d9`) is a provenance note only and is not shipped (DIF-13).
|
|
27
|
+
|
|
28
|
+
| Shipped name | Source name | Redraw | Layer notes |
|
|
29
|
+
| --- | --- | --- | --- |
|
|
30
|
+
| `s3` | `s3` | base-only | text `S3` (13 units, weight 750, surface fill) kept as glyph asset |
|
|
31
|
+
| `postgres` | `postgres` | base-only | face + line |
|
|
32
|
+
| `cluster` | `cluster` | base-only | face + line |
|
|
33
|
+
| `web` | `web` | base-only | face + line |
|
|
34
|
+
| `api` | `api` | base-only | face + line |
|
|
35
|
+
| `cronjob` | `cronjob` | base-only | face + line (empty source text dropped) |
|
|
36
|
+
| `identity` | `identity` | base-only | face + line |
|
|
37
|
+
| `workstation` | `workstation` | base-only | face + line |
|
|
38
|
+
| `document` | `document` | base-only | face + line |
|
|
39
|
+
| `map` | `map` | base-only | face + line |
|
|
40
|
+
| `join` | `join` | base-only | face + line, **dark line** (info accent stroke) |
|
|
41
|
+
| `graph` | `graph` | base-only | face + line, **dark line** (info accent stroke) |
|
|
42
|
+
| `check` | `check` | base-only | face + line |
|
|
43
|
+
| `release` | `release` | base-only | face + line |
|
|
44
|
+
| `user` | `user` | base-only | face + line |
|
|
45
|
+
| `url` | `url` | base-only | face + line |
|
|
46
|
+
| `llm` | `llm` | base-only | face + line |
|
|
47
|
+
| `network` | `network` | base-only | face + line, **dark line** (info accent stroke) |
|
|
48
|
+
| `unknown` | `unknown` | base-only | face + line |
|
|
49
|
+
|
|
50
|
+
## sentropic #711 via the hrpolnav kit (9)
|
|
51
|
+
|
|
52
|
+
Source: `~/src/sentropic`, merge `4138a0ecba9c5b37409abb5ac00f732d02b7dc8d`,
|
|
53
|
+
`docs/governance/kit/src/architecture-icons.js` (byte-identical copy at
|
|
54
|
+
`/home/antoinefa/src/airbus-genair-hrpolnav/docs/ard/decision/focus/governance-kit/src/architecture-icons.js`,
|
|
55
|
+
sha256 `7a6b5c95fdc90dddf6340a2fc7f9aecce5010c393101b42a7d97826fe2ad1209`).
|
|
56
|
+
|
|
57
|
+
Redraw: **no** (verbatim geometry — already on the canonical base).
|
|
58
|
+
|
|
59
|
+
| Shipped name | Source name | Redraw | Layer notes |
|
|
60
|
+
| --- | --- | --- | --- |
|
|
61
|
+
| `people` | `people` | no | face only (no detail line) |
|
|
62
|
+
| `window` | `window` | no | face + line |
|
|
63
|
+
| `server` | `server` | no | face + line |
|
|
64
|
+
| `brain` | `brain` | no | face + line — mandatory frozen addition (AI) |
|
|
65
|
+
| `robot` | `robot` | no | face + line — mandatory frozen addition (agents) |
|
|
66
|
+
| `link` | `link` | no | face + line, **dark line** flag |
|
|
67
|
+
| `db` | `db` | no | face + line |
|
|
68
|
+
| `shield` | `shield` | no | face + line |
|
|
69
|
+
| `cloud` | `cloud` | no | face only (no detail line) |
|
|
70
|
+
|
|
71
|
+
The kit `groupIcons` zone→glyph table is scene content of those diagrams,
|
|
72
|
+
not part of the shipped set: the DS names the glyph per entity (§9.2, DH-11).
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import DiagramIcon from "./DiagramIcon.svelte";
|
|
2
|
+
import { DIAGRAM_GLYPH_BASE, DIAGRAM_GLYPH_NAMES, DIAGRAM_GLYPH_VIEWBOX, DIAGRAM_GLYPHS, getDiagramGlyph, type DiagramGlyph } from "./registry.js";
|
|
3
|
+
export default DiagramIcon;
|
|
4
|
+
export { DiagramIcon, DIAGRAM_GLYPHS, DIAGRAM_GLYPH_NAMES, DIAGRAM_GLYPH_BASE, DIAGRAM_GLYPH_VIEWBOX, getDiagramGlyph };
|
|
5
|
+
export type { DiagramGlyph };
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/diagram-icons/index.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,cAAc,EACd,eAAe,EACf,KAAK,YAAY,EAClB,MAAM,eAAe,CAAC;AAEvB,eAAe,WAAW,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,eAAe,EAAE,CAAC;AACxH,YAAY,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import DiagramIcon from "./DiagramIcon.svelte";
|
|
2
|
+
import { DIAGRAM_GLYPH_BASE, DIAGRAM_GLYPH_NAMES, DIAGRAM_GLYPH_VIEWBOX, DIAGRAM_GLYPHS, getDiagramGlyph, } from "./registry.js";
|
|
3
|
+
export default DiagramIcon;
|
|
4
|
+
export { DiagramIcon, DIAGRAM_GLYPHS, DIAGRAM_GLYPH_NAMES, DIAGRAM_GLYPH_BASE, DIAGRAM_GLYPH_VIEWBOX, getDiagramGlyph };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Diagram pictogram registry — the blue duotone family (DC-1).
|
|
3
|
+
*
|
|
4
|
+
* Spec: spec/SPEC_EVOL_DS_DIAGRAM_CARDS.md §9. One family, drawn identically
|
|
5
|
+
* in cards and zones at the 70 px icon box: `viewBox="0 0 64 64"`, canonical
|
|
6
|
+
* base diamond `M8 53L32 44L56 53L32 62Z`, three layers (base / face / line),
|
|
7
|
+
* face stroke 1.5, line stroke 2.5. Layer colours resolve through the
|
|
8
|
+
* `diagramIcon` component tokens; no per-glyph colour, no raw hex here.
|
|
9
|
+
*
|
|
10
|
+
* Framework-neutral data: no Svelte import, so staged framework adapters
|
|
11
|
+
* (§12.6) reuse these path records without re-drawing a glyph. Provenance
|
|
12
|
+
* per glyph lives in PROVENANCE.md next to this file.
|
|
13
|
+
*/
|
|
14
|
+
export interface DiagramGlyph {
|
|
15
|
+
/** Canonical base diamond path (identical for every glyph). */
|
|
16
|
+
readonly base: string;
|
|
17
|
+
/** Glyph face path (fill + stroke layer). */
|
|
18
|
+
readonly face: string;
|
|
19
|
+
/** Glyph detail path (stroke-only layer). Absent when the glyph has none. */
|
|
20
|
+
readonly line?: string;
|
|
21
|
+
/**
|
|
22
|
+
* When true, the detail line strokes in the info accent instead of the
|
|
23
|
+
* surface colour (the radar `join`/`graph`/`network` case, the kit `link`
|
|
24
|
+
* flag).
|
|
25
|
+
*/
|
|
26
|
+
readonly darkLine?: true;
|
|
27
|
+
/**
|
|
28
|
+
* Text painted inside the glyph (part of the asset, never host content,
|
|
29
|
+
* never localised). Only `s3` carries one.
|
|
30
|
+
*/
|
|
31
|
+
readonly text?: string;
|
|
32
|
+
}
|
|
33
|
+
/** Canonical base diamond — the validated #711 render (§9.1). */
|
|
34
|
+
export declare const DIAGRAM_GLYPH_BASE = "M8 53L32 44L56 53L32 62Z";
|
|
35
|
+
/** Glyph viewBox in force for the whole family. */
|
|
36
|
+
export declare const DIAGRAM_GLYPH_VIEWBOX = "0 0 64 64";
|
|
37
|
+
/**
|
|
38
|
+
* The shipped set (§9.2): the radar-immobilier 19 redrawn on the canonical
|
|
39
|
+
* base plus the sentropic #711 9 (verbatim geometry). 28 names, no
|
|
40
|
+
* collisions across the two sources — no aliasing was needed.
|
|
41
|
+
*/
|
|
42
|
+
export declare const DIAGRAM_GLYPHS: Readonly<Record<string, DiagramGlyph>>;
|
|
43
|
+
/** Shipped glyph names (§9.2: 19 + 9 = 28). */
|
|
44
|
+
export declare const DIAGRAM_GLYPH_NAMES: string[];
|
|
45
|
+
/**
|
|
46
|
+
* Resolve a glyph name to its path record. Returns `undefined` for an
|
|
47
|
+
* unmapped name — the callers raise `card-icon-unknown` /
|
|
48
|
+
* `zone-icon-unknown` and draw nothing (DIF-14: no `server` fallback, no
|
|
49
|
+
* silent substitution).
|
|
50
|
+
*/
|
|
51
|
+
export declare function getDiagramGlyph(name: string): DiagramGlyph | undefined;
|
|
52
|
+
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/lib/diagram-icons/registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,MAAM,WAAW,YAAY;IAC3B,+DAA+D;IAC/D,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,6CAA6C;IAC7C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,6EAA6E;IAC7E,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,IAAI,CAAC;IACzB;;;OAGG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,iEAAiE;AACjE,eAAO,MAAM,kBAAkB,6BAA6B,CAAC;AAE7D,mDAAmD;AACnD,eAAO,MAAM,qBAAqB,cAAc,CAAC;AAejD;;;;GAIG;AACH,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAyFjE,CAAC;AAEF,+CAA+C;AAC/C,eAAO,MAAM,mBAAmB,UAA8B,CAAC;AAE/D;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS,CAEtE"}
|