@adia-ai/web-components 0.8.44 → 0.8.46
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/CHANGELOG.md +33 -0
- package/components/card/card.css +12 -23
- package/components/card/card.yaml +11 -0
- package/components/chart/chart.a2ui.json +16 -1
- package/components/chart/chart.class.js +611 -41
- package/components/chart/chart.css +174 -0
- package/components/chart/chart.d.ts +5 -1
- package/components/chart/chart.yaml +45 -1
- package/components/context-menu/context-menu.a2ui.json +8 -3
- package/components/context-menu/context-menu.class.js +46 -5
- package/components/context-menu/context-menu.d.ts +6 -3
- package/components/context-menu/context-menu.examples.md +2 -2
- package/components/context-menu/context-menu.yaml +22 -5
- package/components/field/field.css +24 -2
- package/components/index.js +1 -0
- package/components/input/input.css +7 -0
- package/components/nav/nav.a2ui.json +2 -2
- package/components/nav/nav.css +1 -1
- package/components/nav/nav.d.ts +1 -1
- package/components/nav/nav.yaml +14 -3
- package/components/nav-group/nav-group.css +37 -3
- package/components/pagination/pagination.class.js +52 -22
- package/components/search/search.class.js +39 -5
- package/components/select/select.a2ui.json +5 -0
- package/components/select/select.class.js +20 -0
- package/components/select/select.css +25 -0
- package/components/select/select.d.ts +2 -0
- package/components/select/select.yaml +12 -0
- package/components/table/cell-types.js +9 -0
- package/components/table/table.a2ui.json +19 -4
- package/components/table/table.class.js +410 -45
- package/components/table/table.css +7 -4
- package/components/table/table.d.ts +9 -3
- package/components/table/table.yaml +115 -9
- package/components/table-footer/table-footer.a2ui.json +150 -0
- package/components/table-footer/table-footer.class.js +391 -0
- package/components/table-footer/table-footer.css +64 -0
- package/components/table-footer/table-footer.d.ts +39 -0
- package/components/table-footer/table-footer.examples.md +46 -0
- package/components/table-footer/table-footer.js +17 -0
- package/components/table-footer/table-footer.yaml +219 -0
- package/components/table-toolbar/table-toolbar.a2ui.json +15 -0
- package/components/table-toolbar/table-toolbar.class.js +61 -17
- package/components/table-toolbar/table-toolbar.css +34 -0
- package/components/table-toolbar/table-toolbar.d.ts +10 -0
- package/components/table-toolbar/table-toolbar.yaml +58 -15
- package/core/data-stream.js +37 -2
- package/core/index.d.ts +1 -0
- package/core/index.js +1 -0
- package/core/provider.d.ts +9 -13
- package/core/provider.js +9 -113
- package/core/store.d.ts +46 -0
- package/core/store.js +89 -0
- package/custom-elements.json +192 -8
- package/dist/host.min.css +1 -1
- package/dist/host.sheet.js +1 -1
- package/dist/theme-provider.min.js +1 -1
- package/dist/web-components.min.css +1 -1
- package/dist/web-components.min.js +96 -96
- package/dist/web-components.sheet.js +1 -1
- package/package.json +1 -1
- package/patterns/chart-in-card/chart-in-card.examples.html +36 -9
- package/patterns/new-enrollments/new-enrollments.examples.html +140 -0
- package/patterns/new-enrollments/new-enrollments.html +54 -0
- package/patterns/table-in-card/table-in-card.examples.html +168 -0
- package/patterns/table-in-card/table-in-card.examples.js +139 -0
- package/patterns/table-in-card/table-in-card.html +86 -0
- package/styles/api/sizing.css +46 -0
- package/styles/components.css +1 -0
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en" theme="auto">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<title>Table in Card (pattern) — AdiaUI</title>
|
|
7
|
+
|
|
8
|
+
<!-- Token base -->
|
|
9
|
+
<link rel="stylesheet" href="../../styles/resets.css">
|
|
10
|
+
<link rel="stylesheet" href="../../styles/tokens.css">
|
|
11
|
+
|
|
12
|
+
<!-- Component CSS — primitives this pattern composes -->
|
|
13
|
+
<link rel="stylesheet" href="../../components/badge/badge.css">
|
|
14
|
+
<link rel="stylesheet" href="../../components/button/button.css">
|
|
15
|
+
<link rel="stylesheet" href="../../components/card/card.css">
|
|
16
|
+
<link rel="stylesheet" href="../../components/check/check.css">
|
|
17
|
+
<link rel="stylesheet" href="../../components/code/code.css">
|
|
18
|
+
<link rel="stylesheet" href="../../components/field/field.css">
|
|
19
|
+
<link rel="stylesheet" href="../../components/icon/icon.css">
|
|
20
|
+
<link rel="stylesheet" href="../../components/input/input.css">
|
|
21
|
+
<link rel="stylesheet" href="../../components/menu/menu.css">
|
|
22
|
+
<link rel="stylesheet" href="../../components/pagination/pagination.css">
|
|
23
|
+
<link rel="stylesheet" href="../../components/progress/progress.css">
|
|
24
|
+
<link rel="stylesheet" href="../../components/row/row.css">
|
|
25
|
+
<link rel="stylesheet" href="../../components/search/search.css">
|
|
26
|
+
<link rel="stylesheet" href="../../components/select/select.css">
|
|
27
|
+
<link rel="stylesheet" href="../../components/skeleton/skeleton.css">
|
|
28
|
+
<link rel="stylesheet" href="../../components/swatch/swatch.css">
|
|
29
|
+
<link rel="stylesheet" href="../../components/table/table.css">
|
|
30
|
+
<link rel="stylesheet" href="../../components/table-footer/table-footer.css">
|
|
31
|
+
<link rel="stylesheet" href="../../components/table-toolbar/table-toolbar.css">
|
|
32
|
+
<link rel="stylesheet" href="../../components/tag/tag.css">
|
|
33
|
+
<link rel="stylesheet" href="../../components/text/text.css">
|
|
34
|
+
|
|
35
|
+
<!-- Component JS -->
|
|
36
|
+
<script type="module" src="../../components/badge/badge.js"></script>
|
|
37
|
+
<script type="module" src="../../components/button/button.js"></script>
|
|
38
|
+
<script type="module" src="../../components/card/card.js"></script>
|
|
39
|
+
<script type="module" src="../../components/check/check.js"></script>
|
|
40
|
+
<script type="module" src="../../components/code/code.js"></script>
|
|
41
|
+
<script type="module" src="../../components/field/field.js"></script>
|
|
42
|
+
<script type="module" src="../../components/icon/icon.js"></script>
|
|
43
|
+
<script type="module" src="../../components/input/input.js"></script>
|
|
44
|
+
<script type="module" src="../../components/menu/menu.js"></script>
|
|
45
|
+
<script type="module" src="../../components/pagination/pagination.js"></script>
|
|
46
|
+
<script type="module" src="../../components/progress/progress.js"></script>
|
|
47
|
+
<script type="module" src="../../components/row/row.js"></script>
|
|
48
|
+
<script type="module" src="../../components/search/search.js"></script>
|
|
49
|
+
<script type="module" src="../../components/select/select.js"></script>
|
|
50
|
+
<script type="module" src="../../components/skeleton/skeleton.js"></script>
|
|
51
|
+
<script type="module" src="../../components/swatch/swatch.js"></script>
|
|
52
|
+
<script type="module" src="../../components/table/table.js"></script>
|
|
53
|
+
<script type="module" src="../../components/table-footer/table-footer.js"></script>
|
|
54
|
+
<script type="module" src="../../components/table-toolbar/table-toolbar.js"></script>
|
|
55
|
+
<script type="module" src="../../components/tag/tag.js"></script>
|
|
56
|
+
<script type="module" src="../../components/text/text.js"></script>
|
|
57
|
+
|
|
58
|
+
<style>
|
|
59
|
+
:where(html, body) { margin: 0; min-height: 100vh; background: var(--md-sys-color-neutral-background); color: var(--md-sys-color-neutral-on-surface); font-family: var(--a-font-family); }
|
|
60
|
+
main { max-width: 960px; margin-inline: auto; padding: var(--a-space-6) var(--a-space-5); }
|
|
61
|
+
</style>
|
|
62
|
+
</head>
|
|
63
|
+
<body>
|
|
64
|
+
|
|
65
|
+
<main id="demo-root">
|
|
66
|
+
<p>Loading examples…</p>
|
|
67
|
+
</main>
|
|
68
|
+
|
|
69
|
+
<script type="module">
|
|
70
|
+
const root = document.getElementById('demo-root');
|
|
71
|
+
try {
|
|
72
|
+
const res = await fetch('./table-in-card.examples.html');
|
|
73
|
+
if (!res.ok) throw new Error(`fetch failed (${res.status})`);
|
|
74
|
+
root.innerHTML = await res.text();
|
|
75
|
+
try {
|
|
76
|
+
const mod = await import(/* @vite-ignore */ './table-in-card.examples.js');
|
|
77
|
+
mod.default?.(root);
|
|
78
|
+
} catch (e) { console.error('[table-in-card.html] setup failed:', e); }
|
|
79
|
+
} catch (err) {
|
|
80
|
+
root.innerHTML = `<p style="color:var(--a-danger-strong);">Failed to load table-in-card.examples.html — ${err.message}</p>`;
|
|
81
|
+
console.error('[table-in-card.html]', err);
|
|
82
|
+
}
|
|
83
|
+
</script>
|
|
84
|
+
|
|
85
|
+
</body>
|
|
86
|
+
</html>
|
package/styles/api/sizing.css
CHANGED
|
@@ -14,14 +14,60 @@
|
|
|
14
14
|
<div density="spacious">...generous layout...</div>
|
|
15
15
|
═══════════════════════════════════════════════════════════════ */
|
|
16
16
|
|
|
17
|
+
/* gh#1771: --a-space-* (foundation/space.css) is declared ONLY on :root —
|
|
18
|
+
custom-property calc() formulas resolve at their DECLARING element, then
|
|
19
|
+
inherit pre-resolved (gh#570's mechanic, documented in full in
|
|
20
|
+
./parametric-scope.css). Overriding --a-density on a non-root [density]
|
|
21
|
+
host changes the knob but nothing re-reads it unless the derived formulas
|
|
22
|
+
are re-declared at this same boundary — so each preset below duplicates
|
|
23
|
+
the --a-space-* scale verbatim (parametric-scope.css's established cure),
|
|
24
|
+
giving a scoped [density] host its own working derivation chain instead
|
|
25
|
+
of only ever affecting :root. */
|
|
26
|
+
|
|
17
27
|
[density="compact"] {
|
|
18
28
|
--a-density: 0.85;
|
|
19
29
|
--a-radius-k: 0.75;
|
|
30
|
+
|
|
31
|
+
--a-space-0-5: calc(var(--a-density) * 0.125rem);
|
|
32
|
+
--a-space-1: calc(var(--a-density) * 0.25rem);
|
|
33
|
+
--a-space-1-5: calc(var(--a-density) * 0.375rem);
|
|
34
|
+
--a-space-2: calc(var(--a-density) * 0.5rem);
|
|
35
|
+
--a-space-2-5: calc(var(--a-density) * 0.625rem);
|
|
36
|
+
--a-space-3: calc(var(--a-density) * 0.75rem);
|
|
37
|
+
--a-space-3-5: calc(var(--a-density) * 0.875rem);
|
|
38
|
+
--a-space-4: calc(var(--a-density) * 1rem);
|
|
39
|
+
--a-space-4-5: calc(var(--a-density) * 1.125rem);
|
|
40
|
+
--a-space-5: calc(var(--a-density) * 1.25rem);
|
|
41
|
+
--a-space-6: calc(var(--a-density) * 1.5rem);
|
|
42
|
+
--a-space-7: calc(var(--a-density) * 1.75rem);
|
|
43
|
+
--a-space-8: calc(var(--a-density) * 2rem);
|
|
44
|
+
--a-space-9: calc(var(--a-density) * 2.25rem);
|
|
45
|
+
--a-space-10: calc(var(--a-density) * 2.5rem);
|
|
46
|
+
--a-space-12: calc(var(--a-density) * 3rem);
|
|
47
|
+
--a-space-16: calc(var(--a-density) * 4rem);
|
|
20
48
|
}
|
|
21
49
|
|
|
22
50
|
[density="spacious"] {
|
|
23
51
|
--a-density: 1.15;
|
|
24
52
|
--a-radius-k: 1.25;
|
|
53
|
+
|
|
54
|
+
--a-space-0-5: calc(var(--a-density) * 0.125rem);
|
|
55
|
+
--a-space-1: calc(var(--a-density) * 0.25rem);
|
|
56
|
+
--a-space-1-5: calc(var(--a-density) * 0.375rem);
|
|
57
|
+
--a-space-2: calc(var(--a-density) * 0.5rem);
|
|
58
|
+
--a-space-2-5: calc(var(--a-density) * 0.625rem);
|
|
59
|
+
--a-space-3: calc(var(--a-density) * 0.75rem);
|
|
60
|
+
--a-space-3-5: calc(var(--a-density) * 0.875rem);
|
|
61
|
+
--a-space-4: calc(var(--a-density) * 1rem);
|
|
62
|
+
--a-space-4-5: calc(var(--a-density) * 1.125rem);
|
|
63
|
+
--a-space-5: calc(var(--a-density) * 1.25rem);
|
|
64
|
+
--a-space-6: calc(var(--a-density) * 1.5rem);
|
|
65
|
+
--a-space-7: calc(var(--a-density) * 1.75rem);
|
|
66
|
+
--a-space-8: calc(var(--a-density) * 2rem);
|
|
67
|
+
--a-space-9: calc(var(--a-density) * 2.25rem);
|
|
68
|
+
--a-space-10: calc(var(--a-density) * 2.5rem);
|
|
69
|
+
--a-space-12: calc(var(--a-density) * 3rem);
|
|
70
|
+
--a-space-16: calc(var(--a-density) * 4rem);
|
|
25
71
|
}
|
|
26
72
|
|
|
27
73
|
/* ── Radius presets — scoped via [radius] attribute ── */
|
package/styles/components.css
CHANGED
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
@import "../components/noodles/noodles.css";
|
|
48
48
|
@import "../components/table/table.css";
|
|
49
49
|
@import "../components/table-toolbar/table-toolbar.css";
|
|
50
|
+
@import "../components/table-footer/table-footer.css";
|
|
50
51
|
@import "../components/timeline/timeline.css";
|
|
51
52
|
@import "../components/upload/upload.css";
|
|
52
53
|
@import "../components/card/card.css";
|