@alfadocs/ui-kit 1.2.0 → 1.3.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/dist/_chunks/{actions-cell-renderer-ClGCSQnA.js → actions-cell-renderer-Ceah0ywE.js} +2 -2
- package/dist/_chunks/anamnesis-i18n-DGRdwc0i.js +8720 -0
- package/dist/_chunks/arrow-up-BYvcvTkB.js +26 -0
- package/dist/_chunks/{editable-currency-cell-renderer-Dus_sBvX.js → editable-currency-cell-renderer-Uhzkd0ZP.js} +68 -88
- package/dist/_chunks/{exceljs.min-DUJ-5CGx.js → exceljs.min-D2MHbJsF.js} +10 -9
- package/dist/_chunks/{face-scheme-Cou2efl7.js → face-scheme-C00IvkUA.js} +237 -243
- package/dist/_chunks/{file-manager-CNSLiuLo.js → file-manager-lNjcSXoD.js} +174 -186
- package/dist/_chunks/minus-BQDHq1c1.js +12 -0
- package/dist/_chunks/notebook-pen-CO7HoM-W.js +25 -0
- package/dist/_chunks/{notes-panel-CCz0J140.js → notes-panel-DPsgB4Mv.js} +73 -92
- package/dist/_chunks/{patient-table-DXk0wW8Q.js → patient-table-C7QHFC63.js} +2 -2
- package/dist/_chunks/share-2-B49jcW2I.js +18 -0
- package/dist/_chunks/{sparkline-DJtZBe7O.js → sparkline-BTY4B5tv.js} +153 -145
- package/dist/agent-catalog.json +1 -1
- package/dist/components/data-table/index.js +2 -2
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/notes-panel/index.d.ts +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/sparkline/index.js +1 -1
- package/dist/components/sparkline/sparkline.d.ts +5 -4
- package/dist/index.js +132 -109
- package/dist/patterns/_shared/target-tile.d.ts +31 -0
- package/dist/patterns/anamnesis/anamnesis-catalogue.d.ts +23 -0
- package/dist/patterns/anamnesis/anamnesis-compare-panel.d.ts +82 -0
- package/dist/patterns/anamnesis/anamnesis-compile-blocks.d.ts +46 -0
- package/dist/patterns/anamnesis/anamnesis-compile.d.ts +48 -0
- package/dist/patterns/anamnesis/anamnesis-config-editor.d.ts +26 -0
- package/dist/patterns/anamnesis/anamnesis-config.d.ts +62 -0
- package/dist/patterns/anamnesis/anamnesis-derive.d.ts +194 -0
- package/dist/patterns/anamnesis/anamnesis-digest.d.ts +84 -0
- package/dist/patterns/anamnesis/anamnesis-disclosure.d.ts +19 -0
- package/dist/patterns/anamnesis/anamnesis-event-bar.d.ts +12 -0
- package/dist/patterns/anamnesis/anamnesis-events.d.ts +60 -0
- package/dist/patterns/anamnesis/anamnesis-evolution-grid.d.ts +48 -0
- package/dist/patterns/anamnesis/anamnesis-evolution.d.ts +37 -0
- package/dist/patterns/anamnesis/anamnesis-export-download.d.ts +10 -0
- package/dist/patterns/anamnesis/anamnesis-export-menu.d.ts +23 -0
- package/dist/patterns/anamnesis/anamnesis-export-pdf.d.ts +36 -0
- package/dist/patterns/anamnesis/anamnesis-export.d.ts +143 -0
- package/dist/patterns/anamnesis/anamnesis-field.d.ts +14 -0
- package/dist/patterns/anamnesis/anamnesis-format.d.ts +67 -0
- package/dist/patterns/anamnesis/anamnesis-i18n.d.ts +6 -0
- package/dist/patterns/anamnesis/anamnesis-indicators.d.ts +53 -0
- package/dist/patterns/anamnesis/anamnesis-intake.d.ts +16 -0
- package/dist/patterns/anamnesis/anamnesis-matrix.d.ts +91 -0
- package/dist/patterns/anamnesis/anamnesis-notes.d.ts +19 -0
- package/dist/patterns/anamnesis/anamnesis-readonly.d.ts +17 -0
- package/dist/patterns/anamnesis/anamnesis-summary.d.ts +35 -0
- package/dist/patterns/anamnesis/anamnesis-target-editor.d.ts +18 -0
- package/dist/patterns/anamnesis/anamnesis-target-strip.d.ts +14 -0
- package/dist/patterns/anamnesis/anamnesis-targets.d.ts +58 -0
- package/dist/patterns/anamnesis/anamnesis-types.d.ts +336 -0
- package/dist/patterns/anamnesis/anamnesis-visit-note.d.ts +35 -0
- package/dist/patterns/anamnesis/anamnesis-window.d.ts +37 -0
- package/dist/patterns/anamnesis/anamnesis.d.ts +48 -0
- package/dist/patterns/anamnesis/index.d.ts +8 -0
- package/dist/patterns/anamnesis/index.js +26 -0
- package/dist/tokens.css +1 -1
- package/package.json +5 -1
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
1
|
+
import { jsx as c, jsxs as D } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as le, useId as ue, useMemo as A, useRef as P, useState as F, useEffect as U, useImperativeHandle as pe } from "react";
|
|
3
3
|
import { c as E } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { g as J, u as
|
|
8
|
-
import { m as
|
|
9
|
-
import { u as
|
|
10
|
-
function
|
|
4
|
+
import { useTranslation as me } from "react-i18next";
|
|
5
|
+
import he from "react-apexcharts";
|
|
6
|
+
import V from "apexcharts";
|
|
7
|
+
import { g as J, u as fe } from "./apexcharts-theme-B_AxGC_h.js";
|
|
8
|
+
import { m as ge } from "./annotation-marker-CsUJGZjQ.js";
|
|
9
|
+
import { u as ve } from "./registry-DvAUVLHh.js";
|
|
10
|
+
function ye(n) {
|
|
11
11
|
if (n.length < 2)
|
|
12
12
|
return { slope: 0, direction: "steady" };
|
|
13
|
-
const r = n.length,
|
|
14
|
-
let
|
|
13
|
+
const r = n.length, h = (r - 1) / 2, l = n.reduce((a, i) => a + i, 0) / r;
|
|
14
|
+
let s = 0, u = 0;
|
|
15
15
|
for (let a = 0; a < r; a++) {
|
|
16
|
-
const i = a -
|
|
17
|
-
|
|
16
|
+
const i = a - h;
|
|
17
|
+
s += i * (n[a] - l), u += i * i;
|
|
18
18
|
}
|
|
19
|
-
const
|
|
20
|
-
return { slope:
|
|
19
|
+
const m = u === 0 ? 0 : s / u, k = 0.01 * (Math.max(...n) - Math.min(...n) || 1), f = Math.abs(m) < k ? "steady" : m > 0 ? "increasing" : "decreasing";
|
|
20
|
+
return { slope: m, direction: f };
|
|
21
21
|
}
|
|
22
|
-
const
|
|
22
|
+
const be = {
|
|
23
23
|
id: "sparkline",
|
|
24
24
|
capabilities: [],
|
|
25
25
|
state: {},
|
|
@@ -118,85 +118,88 @@ const ge = {
|
|
|
118
118
|
}
|
|
119
119
|
},
|
|
120
120
|
defaultVariants: { tone: "neutral" }
|
|
121
|
-
}),
|
|
121
|
+
}), we = E(
|
|
122
122
|
"ds:pointer-events-none ds:absolute ds:inset-x-[2px]",
|
|
123
123
|
{
|
|
124
124
|
variants: {
|
|
125
|
+
// Bleed to the target-size token, not a literal: (token − drawn)/−2 per
|
|
126
|
+
// size, so `.theme-accessible` (48px) widens the band automatically —
|
|
127
|
+
// the same calc idiom IconButton uses for its hit-area expansion.
|
|
125
128
|
size: {
|
|
126
|
-
xs: "ds:inset-y-[-
|
|
127
|
-
sm: "ds:inset-y-[-
|
|
128
|
-
md: "ds:inset-y-[-
|
|
129
|
+
xs: "ds:inset-y-[calc((var(--min-target-size)-24px)/-2)]",
|
|
130
|
+
sm: "ds:inset-y-[calc((var(--min-target-size)-32px)/-2)]",
|
|
131
|
+
md: "ds:inset-y-[calc((var(--min-target-size)-40px)/-2)]",
|
|
129
132
|
auto: "ds:inset-y-0"
|
|
130
133
|
}
|
|
131
134
|
},
|
|
132
135
|
defaultVariants: { size: "md" }
|
|
133
136
|
}
|
|
134
|
-
),
|
|
137
|
+
), ke = {
|
|
135
138
|
increasing: "↑",
|
|
136
139
|
decreasing: "↓",
|
|
137
140
|
steady: "→"
|
|
138
|
-
},
|
|
141
|
+
}, xe = {
|
|
139
142
|
xs: 24,
|
|
140
143
|
sm: 32,
|
|
141
144
|
md: 40
|
|
142
|
-
},
|
|
143
|
-
function
|
|
144
|
-
const
|
|
145
|
+
}, I = 2, Y = 2.5, ee = 44;
|
|
146
|
+
function Ie(n, r, h = ee) {
|
|
147
|
+
const l = n.map((s) => ({
|
|
145
148
|
annotation: s,
|
|
146
|
-
centre:
|
|
147
|
-
})).sort((s,
|
|
148
|
-
return
|
|
149
|
-
const
|
|
150
|
-
Math.max(s.centre -
|
|
151
|
-
|
|
149
|
+
centre: te(s.position) * r
|
|
150
|
+
})).sort((s, u) => s.centre - u.centre);
|
|
151
|
+
return l.map((s, u) => {
|
|
152
|
+
const m = l[u - 1], w = l[u + 1], k = m ? (m.centre + s.centre) / 2 : 0, f = w ? (s.centre + w.centre) / 2 : r, a = Math.max(0, k), i = Math.min(r, f), y = Math.min(h, Math.max(0, i - a)), N = Math.min(
|
|
153
|
+
Math.max(s.centre - y / 2, a),
|
|
154
|
+
i - y
|
|
152
155
|
);
|
|
153
|
-
return { annotation: s.annotation, x, width:
|
|
156
|
+
return { annotation: s.annotation, x: N, width: y };
|
|
154
157
|
});
|
|
155
158
|
}
|
|
156
|
-
function
|
|
159
|
+
function te(n) {
|
|
157
160
|
return Number.isFinite(n) ? Math.min(1, Math.max(0, n)) : 0;
|
|
158
161
|
}
|
|
159
|
-
function
|
|
162
|
+
function Ne(n) {
|
|
160
163
|
return n.filter((r) => r != null);
|
|
161
164
|
}
|
|
162
|
-
function
|
|
165
|
+
function Me() {
|
|
163
166
|
return typeof window < "u" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
164
167
|
}
|
|
165
|
-
const
|
|
168
|
+
const Te = le(
|
|
166
169
|
({
|
|
167
170
|
id: n,
|
|
168
171
|
data: r,
|
|
169
|
-
variant:
|
|
170
|
-
size:
|
|
171
|
-
label:
|
|
172
|
-
color:
|
|
173
|
-
showEndpoint:
|
|
172
|
+
variant: h = "line",
|
|
173
|
+
size: l = "md",
|
|
174
|
+
label: s,
|
|
175
|
+
color: u,
|
|
176
|
+
showEndpoint: m = !1,
|
|
174
177
|
showTooltip: w = !1,
|
|
175
|
-
width:
|
|
176
|
-
height:
|
|
178
|
+
width: k,
|
|
179
|
+
height: f,
|
|
177
180
|
annotations: a,
|
|
178
181
|
onAnnotationSelect: i,
|
|
179
|
-
className:
|
|
180
|
-
...
|
|
181
|
-
},
|
|
182
|
-
var
|
|
183
|
-
const { t:
|
|
184
|
-
() => `sparkline-${
|
|
185
|
-
[
|
|
186
|
-
),
|
|
187
|
-
const e = a && a.length > 0 ?
|
|
188
|
-
list: a.map((
|
|
189
|
-
}) : "", t = (
|
|
190
|
-
if (
|
|
191
|
-
return t(
|
|
192
|
-
const
|
|
193
|
-
min:
|
|
194
|
-
max:
|
|
195
|
-
current:
|
|
182
|
+
className: y,
|
|
183
|
+
...N
|
|
184
|
+
}, ne) => {
|
|
185
|
+
var Z;
|
|
186
|
+
const { t: v, i18n: W } = me(), $ = ue(), x = A(
|
|
187
|
+
() => `sparkline-${$.replace(/[^a-zA-Z0-9-_]/g, "")}`,
|
|
188
|
+
[$]
|
|
189
|
+
), M = P(null), [C, ae] = F(0), [re, se] = F(ee), p = A(() => Ne(r), [r]), { direction: O } = ye(p), j = A(() => {
|
|
190
|
+
const e = a && a.length > 0 ? v("sparkline.annotations", {
|
|
191
|
+
list: a.map((b) => b.label).join(", ")
|
|
192
|
+
}) : "", t = (b) => e ? `${b}. ${e}` : b;
|
|
193
|
+
if (p.length === 0)
|
|
194
|
+
return t(v("sparkline.noData", "No data"));
|
|
195
|
+
const o = (b) => new Intl.NumberFormat(W.language).format(b), g = v(`sparkline.direction.${O}`), d = {
|
|
196
|
+
min: o(Math.min(...p)),
|
|
197
|
+
max: o(Math.max(...p)),
|
|
198
|
+
current: o(p[p.length - 1]),
|
|
196
199
|
direction: g
|
|
197
200
|
};
|
|
198
|
-
return t(
|
|
199
|
-
}, [
|
|
201
|
+
return t(s ? v("sparkline.summary", { label: s, ...d }) : v("sparkline.summaryNoLabel", d));
|
|
202
|
+
}, [p, a, s, O, W.language, v]), [T, ie] = F(
|
|
200
203
|
() => {
|
|
201
204
|
try {
|
|
202
205
|
return J();
|
|
@@ -205,12 +208,12 @@ const Ne = oe(
|
|
|
205
208
|
}
|
|
206
209
|
}
|
|
207
210
|
);
|
|
208
|
-
|
|
211
|
+
U(() => {
|
|
209
212
|
let e;
|
|
210
213
|
const t = new MutationObserver(() => {
|
|
211
214
|
clearTimeout(e), e = setTimeout(() => {
|
|
212
215
|
try {
|
|
213
|
-
|
|
216
|
+
ie(J());
|
|
214
217
|
} catch {
|
|
215
218
|
}
|
|
216
219
|
}, 50);
|
|
@@ -221,67 +224,72 @@ const Ne = oe(
|
|
|
221
224
|
}), () => {
|
|
222
225
|
clearTimeout(e), t.disconnect();
|
|
223
226
|
};
|
|
224
|
-
}, []),
|
|
225
|
-
const e =
|
|
227
|
+
}, []), U(() => {
|
|
228
|
+
const e = M.current;
|
|
226
229
|
if (!e) return;
|
|
227
|
-
const t =
|
|
228
|
-
const g =
|
|
229
|
-
|
|
230
|
+
const t = () => {
|
|
231
|
+
const g = getComputedStyle(e).getPropertyValue("--min-target-size"), d = Number.parseFloat(g);
|
|
232
|
+
Number.isFinite(d) && d > 0 && se(d);
|
|
233
|
+
};
|
|
234
|
+
t();
|
|
235
|
+
const o = new ResizeObserver((g) => {
|
|
236
|
+
const d = g[0];
|
|
237
|
+
d && ae(Math.floor(d.contentRect.width)), t();
|
|
230
238
|
});
|
|
231
|
-
return
|
|
232
|
-
}, []),
|
|
233
|
-
const
|
|
234
|
-
|
|
235
|
-
|
|
239
|
+
return o.observe(e), () => o.disconnect();
|
|
240
|
+
}, []), fe(M);
|
|
241
|
+
const R = P(i);
|
|
242
|
+
U(() => {
|
|
243
|
+
R.current = i;
|
|
236
244
|
}, [i]);
|
|
237
|
-
const
|
|
238
|
-
|
|
239
|
-
const
|
|
245
|
+
const B = P(a);
|
|
246
|
+
B.current = a;
|
|
247
|
+
const H = A(
|
|
240
248
|
() => ({
|
|
241
249
|
updateSeries(e) {
|
|
242
250
|
var t;
|
|
243
|
-
(t =
|
|
251
|
+
(t = V.getChartByID(x)) == null || t.updateSeries([{ data: e }]);
|
|
244
252
|
},
|
|
245
253
|
updateOptions(e) {
|
|
246
254
|
var t;
|
|
247
|
-
(t =
|
|
255
|
+
(t = V.getChartByID(x)) == null || t.updateOptions(e);
|
|
248
256
|
},
|
|
249
257
|
async dataURI() {
|
|
250
|
-
const e =
|
|
258
|
+
const e = V.getChartByID(x);
|
|
251
259
|
return e ? (await e.dataURI()).imgURI : "";
|
|
252
260
|
},
|
|
253
261
|
selectAnnotation(e) {
|
|
254
|
-
var
|
|
255
|
-
(
|
|
262
|
+
var o, g;
|
|
263
|
+
(o = B.current) != null && o.some((d) => d.id === e) && ((g = R.current) == null || g.call(R, e));
|
|
256
264
|
}
|
|
257
265
|
}),
|
|
258
|
-
[
|
|
266
|
+
[x]
|
|
259
267
|
);
|
|
260
|
-
|
|
261
|
-
const _ =
|
|
262
|
-
if (
|
|
263
|
-
return /* @__PURE__ */
|
|
268
|
+
pe(ne, () => H, [H]), ve(be, H, n);
|
|
269
|
+
const _ = u ?? ((Z = T.colors) == null ? void 0 : Z[0]) ?? "currentColor";
|
|
270
|
+
if (p.length === 0)
|
|
271
|
+
return /* @__PURE__ */ c(
|
|
264
272
|
"div",
|
|
265
273
|
{
|
|
266
|
-
ref:
|
|
274
|
+
ref: M,
|
|
267
275
|
role: "img",
|
|
268
|
-
"aria-label":
|
|
276
|
+
"aria-label": j,
|
|
269
277
|
dir: "ltr",
|
|
270
278
|
className: Q({
|
|
271
|
-
size:
|
|
272
|
-
className:
|
|
279
|
+
size: f !== void 0 ? "auto" : l,
|
|
280
|
+
className: y
|
|
273
281
|
}),
|
|
274
282
|
"data-component": "sparkline",
|
|
275
283
|
"data-component-id": n,
|
|
276
|
-
...
|
|
284
|
+
...N
|
|
277
285
|
}
|
|
278
286
|
);
|
|
279
|
-
const G =
|
|
280
|
-
...
|
|
287
|
+
const G = Me(), S = r.length > p.length, L = S ? r.flatMap((e, t) => e == null ? [] : [{ x: t, y: e }]) : p, oe = {
|
|
288
|
+
...T,
|
|
281
289
|
chart: {
|
|
282
|
-
...
|
|
283
|
-
id:
|
|
284
|
-
type:
|
|
290
|
+
...T.chart,
|
|
291
|
+
id: x,
|
|
292
|
+
type: h,
|
|
285
293
|
sparkline: { enabled: !0 },
|
|
286
294
|
toolbar: { show: !1 },
|
|
287
295
|
animations: {
|
|
@@ -292,7 +300,7 @@ const Ne = oe(
|
|
|
292
300
|
// the tween emits `d="… NaN …"` for a few frames. The finished
|
|
293
301
|
// render is correct either way; switching the tween off keeps the
|
|
294
302
|
// console clean.
|
|
295
|
-
dynamicAnimation: { enabled: !G && !
|
|
303
|
+
dynamicAnimation: { enabled: !G && !S }
|
|
296
304
|
},
|
|
297
305
|
zoom: { enabled: !1 },
|
|
298
306
|
parentHeightOffset: 0
|
|
@@ -300,20 +308,20 @@ const Ne = oe(
|
|
|
300
308
|
colors: [_],
|
|
301
309
|
stroke: {
|
|
302
310
|
curve: "smooth",
|
|
303
|
-
width:
|
|
311
|
+
width: h === "bar" ? 0 : 2
|
|
304
312
|
},
|
|
305
313
|
fill: {
|
|
306
|
-
opacity:
|
|
314
|
+
opacity: h === "area" ? 0.15 : 1
|
|
307
315
|
},
|
|
308
316
|
xaxis: {
|
|
309
317
|
crosshairs: { show: !1 },
|
|
310
318
|
// Pin the extent to the slot count so a gap at either end still holds
|
|
311
319
|
// its place — otherwise the plot would rescale to the measurements
|
|
312
320
|
// and the annotation fractions would no longer mean the same thing.
|
|
313
|
-
...
|
|
321
|
+
...S ? { type: "numeric", min: 0, max: r.length - 1 } : {}
|
|
314
322
|
},
|
|
315
323
|
tooltip: { enabled: w },
|
|
316
|
-
markers:
|
|
324
|
+
markers: m ? {
|
|
317
325
|
size: [0],
|
|
318
326
|
discrete: [
|
|
319
327
|
{
|
|
@@ -329,45 +337,45 @@ const Ne = oe(
|
|
|
329
337
|
]
|
|
330
338
|
} : { size: 0 },
|
|
331
339
|
grid: {
|
|
332
|
-
...
|
|
340
|
+
...T.grid,
|
|
333
341
|
show: !1,
|
|
334
342
|
// ApexCharts grid.padding uses physical keys (not CSS logical properties).
|
|
335
343
|
// The chart wrapper enforces dir="ltr" so these always resolve correctly.
|
|
336
344
|
padding: {
|
|
337
|
-
top:
|
|
338
|
-
right:
|
|
339
|
-
bottom:
|
|
340
|
-
left:
|
|
345
|
+
top: I,
|
|
346
|
+
right: I,
|
|
347
|
+
bottom: I,
|
|
348
|
+
left: I
|
|
341
349
|
}
|
|
342
350
|
}
|
|
343
|
-
},
|
|
351
|
+
}, de = k ?? (C > 0 ? C : "100%"), ce = f ?? xe[l ?? "md"], z = a != null && a.length ? a : void 0, K = C - I * 2, q = i && z && K > 0 ? Ie(z, K, re) : void 0;
|
|
344
352
|
return /* @__PURE__ */ D(
|
|
345
353
|
"div",
|
|
346
354
|
{
|
|
347
|
-
ref:
|
|
355
|
+
ref: M,
|
|
348
356
|
role: "img",
|
|
349
|
-
"aria-label":
|
|
357
|
+
"aria-label": j,
|
|
350
358
|
dir: "ltr",
|
|
351
359
|
className: Q({
|
|
352
|
-
size:
|
|
353
|
-
className:
|
|
360
|
+
size: f !== void 0 ? "auto" : l,
|
|
361
|
+
className: y
|
|
354
362
|
}),
|
|
355
363
|
"data-component": "sparkline",
|
|
356
364
|
"data-component-id": n,
|
|
357
|
-
...
|
|
365
|
+
...N,
|
|
358
366
|
children: [
|
|
359
|
-
/* @__PURE__ */
|
|
360
|
-
|
|
367
|
+
/* @__PURE__ */ c(
|
|
368
|
+
he,
|
|
361
369
|
{
|
|
362
|
-
type:
|
|
370
|
+
type: h,
|
|
363
371
|
series: [{ data: L }],
|
|
364
|
-
options:
|
|
365
|
-
width:
|
|
366
|
-
height:
|
|
372
|
+
options: oe,
|
|
373
|
+
width: de,
|
|
374
|
+
height: ce,
|
|
367
375
|
"aria-hidden": "true"
|
|
368
376
|
}
|
|
369
377
|
),
|
|
370
|
-
|
|
378
|
+
z && /* Drawn over the plot rather than through ApexCharts' own xaxis
|
|
371
379
|
annotations: a fraction of the measured extent is the one
|
|
372
380
|
positioning rule that survives series of different lengths, which
|
|
373
381
|
is what makes a column of sparklines share an x. */
|
|
@@ -377,15 +385,15 @@ const Ne = oe(
|
|
|
377
385
|
equal PLOT_EDGE_PADDING — Tailwind needs a static literal, so the
|
|
378
386
|
two cannot share one source; change them together or the first and
|
|
379
387
|
last annotation drift off the first and last data point. */
|
|
380
|
-
/* @__PURE__ */
|
|
388
|
+
/* @__PURE__ */ c("div", { className: "ds:pointer-events-none ds:absolute ds:inset-y-0 ds:inset-x-[2px]", children: /* @__PURE__ */ c(
|
|
381
389
|
"svg",
|
|
382
390
|
{
|
|
383
391
|
"aria-hidden": "true",
|
|
384
392
|
focusable: "false",
|
|
385
393
|
"data-testid": "sparkline-annotations",
|
|
386
394
|
className: "ds:size-full",
|
|
387
|
-
children:
|
|
388
|
-
const t =
|
|
395
|
+
children: z.map((e) => {
|
|
396
|
+
const t = te(e.position);
|
|
389
397
|
return (
|
|
390
398
|
/* A nested viewport placed at a percentage of the plot: the
|
|
391
399
|
one positioning rule that needs no measurement, so a column
|
|
@@ -402,7 +410,7 @@ const Ne = oe(
|
|
|
402
410
|
"data-annotation-position": t,
|
|
403
411
|
className: X({ tone: e.tone }),
|
|
404
412
|
children: [
|
|
405
|
-
/* @__PURE__ */
|
|
413
|
+
/* @__PURE__ */ c(
|
|
406
414
|
"line",
|
|
407
415
|
{
|
|
408
416
|
x1: 0,
|
|
@@ -412,10 +420,10 @@ const Ne = oe(
|
|
|
412
420
|
className: "ds:[stroke:var(--annotation-color)] ds:[stroke-dasharray:2_3] ds:[stroke-width:1]"
|
|
413
421
|
}
|
|
414
422
|
),
|
|
415
|
-
/* @__PURE__ */
|
|
423
|
+
/* @__PURE__ */ c(
|
|
416
424
|
"path",
|
|
417
425
|
{
|
|
418
|
-
d:
|
|
426
|
+
d: ge(
|
|
419
427
|
e.shape ?? "diamond",
|
|
420
428
|
0,
|
|
421
429
|
Y,
|
|
@@ -432,24 +440,24 @@ const Ne = oe(
|
|
|
432
440
|
})
|
|
433
441
|
}
|
|
434
442
|
) }),
|
|
435
|
-
|
|
436
|
-
fraction of a box the reader can resize.
|
|
437
|
-
holds all the way down to the bands, so the
|
|
438
|
-
the
|
|
439
|
-
/* @__PURE__ */
|
|
443
|
+
q && i && /* Sized in px, not percentages: the target size is a measurement,
|
|
444
|
+
not a fraction of a box the reader can resize.
|
|
445
|
+
`pointer-events-none` holds all the way down to the bands, so the
|
|
446
|
+
only live pixels are the token-width each annotation owns. */
|
|
447
|
+
/* @__PURE__ */ c(
|
|
440
448
|
"div",
|
|
441
449
|
{
|
|
442
|
-
className:
|
|
443
|
-
size:
|
|
450
|
+
className: we({
|
|
451
|
+
size: f !== void 0 ? "auto" : l
|
|
444
452
|
}),
|
|
445
|
-
children: /* @__PURE__ */
|
|
453
|
+
children: /* @__PURE__ */ c(
|
|
446
454
|
"svg",
|
|
447
455
|
{
|
|
448
456
|
"aria-hidden": "true",
|
|
449
457
|
focusable: "false",
|
|
450
458
|
"data-testid": "sparkline-annotation-hits",
|
|
451
459
|
className: "ds:size-full",
|
|
452
|
-
children:
|
|
460
|
+
children: q.map(({ annotation: e, x: t, width: o }) => /* @__PURE__ */ D(
|
|
453
461
|
"g",
|
|
454
462
|
{
|
|
455
463
|
"data-annotation-hit-id": e.id,
|
|
@@ -458,15 +466,15 @@ const Ne = oe(
|
|
|
458
466
|
{ tone: e.tone }
|
|
459
467
|
)}`,
|
|
460
468
|
children: [
|
|
461
|
-
/* @__PURE__ */
|
|
469
|
+
/* @__PURE__ */ c("title", { children: v("sparkline.annotationAction", {
|
|
462
470
|
label: e.label
|
|
463
471
|
}) }),
|
|
464
|
-
/* @__PURE__ */
|
|
472
|
+
/* @__PURE__ */ c(
|
|
465
473
|
"rect",
|
|
466
474
|
{
|
|
467
475
|
x: t,
|
|
468
476
|
y: 0,
|
|
469
|
-
width:
|
|
477
|
+
width: o,
|
|
470
478
|
height: "100%",
|
|
471
479
|
className: "ds:[fill:var(--annotation-color)] ds:opacity-0 ds:transition-opacity ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none ds:group-hover:opacity-20"
|
|
472
480
|
}
|
|
@@ -479,12 +487,12 @@ const Ne = oe(
|
|
|
479
487
|
)
|
|
480
488
|
}
|
|
481
489
|
),
|
|
482
|
-
|
|
490
|
+
m && /* @__PURE__ */ c(
|
|
483
491
|
"span",
|
|
484
492
|
{
|
|
485
493
|
"aria-hidden": "true",
|
|
486
494
|
className: "ds:pointer-events-none ds:absolute ds:end-0 ds:top-0 ds:text-[length:var(--font-size-xs)] ds:leading-none",
|
|
487
|
-
children:
|
|
495
|
+
children: ke[O]
|
|
488
496
|
}
|
|
489
497
|
)
|
|
490
498
|
]
|
|
@@ -492,10 +500,10 @@ const Ne = oe(
|
|
|
492
500
|
);
|
|
493
501
|
}
|
|
494
502
|
);
|
|
495
|
-
|
|
503
|
+
Te.displayName = "Sparkline";
|
|
496
504
|
export {
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
505
|
+
Te as S,
|
|
506
|
+
be as s,
|
|
507
|
+
ye as u
|
|
500
508
|
};
|
|
501
|
-
//# sourceMappingURL=sparkline-
|
|
509
|
+
//# sourceMappingURL=sparkline-BTY4B5tv.js.map
|
package/dist/agent-catalog.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as r, D as l, T as t, a as s, b as n, c as o, d, e as i, f as C } from "../../_chunks/actions-cell-renderer-
|
|
2
|
-
import { B as T, C as F, E as g, a as b, R as u, T as c, b as m, r as f, u as x } from "../../_chunks/editable-currency-cell-renderer-
|
|
1
|
+
import { A as r, D as l, T as t, a as s, b as n, c as o, d, e as i, f as C } from "../../_chunks/actions-cell-renderer-Ceah0ywE.js";
|
|
2
|
+
import { B as T, C as F, E as g, a as b, R as u, T as c, b as m, r as f, u as x } from "../../_chunks/editable-currency-cell-renderer-Uhzkd0ZP.js";
|
|
3
3
|
import { C as p, D as h, a as y, b as E, I as S, L as A, N as L, c as N, S as B, d as I, e as P, T as U, f as W, g as k, U as v } from "../../_chunks/link-cell-renderer-_DlEZHLI.js";
|
|
4
4
|
export {
|
|
5
5
|
r as ActionsCellRenderer,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, F as o, a as n, b as A, c as i, d as f, e as t, I, f as N, g as T, h as F, i as _, j as E, k as c, l as h, m as r, n as p, o as O, p as S, q as m, r as l, s as d, t as C, u as D } from "../../_chunks/face-scheme-
|
|
1
|
+
import { A as e, F as o, a as n, b as A, c as i, d as f, e as t, I, f as N, g as T, h as F, i as _, j as E, k as c, l as h, m as r, n as p, o as O, p as S, q as m, r as l, s as d, t as C, u as D } from "../../_chunks/face-scheme-C00IvkUA.js";
|
|
2
2
|
export {
|
|
3
3
|
e as ANNOTATION_TOOL_KIND,
|
|
4
4
|
o as FACE_ANNOTATION_TOOLS,
|
|
@@ -198,6 +198,7 @@ export * from './transaction-chip';
|
|
|
198
198
|
export * from './whatsapp-button';
|
|
199
199
|
export * from './workflow';
|
|
200
200
|
export * from '../patterns/alia-assistant';
|
|
201
|
+
export * from '../patterns/anamnesis';
|
|
201
202
|
export * from '../patterns/marketplace-app-shell';
|
|
202
203
|
export * from '../patterns/payment-automation-upsell';
|
|
203
204
|
export * from '../patterns/signature-request';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as s, C as l, N as t, P as n, a as C, b as i, g as o, u } from "../../_chunks/patient-table-
|
|
1
|
+
import { B as s, C as l, N as t, P as n, a as C, b as i, g as o, u } from "../../_chunks/patient-table-C7QHFC63.js";
|
|
2
2
|
export {
|
|
3
3
|
s as BalanceBadgeCell,
|
|
4
4
|
l as CarePlanStatusCell,
|
|
@@ -84,10 +84,11 @@ export interface SparklineProps extends Omit<HTMLAttributes<HTMLDivElement>, 'ro
|
|
|
84
84
|
* the same thing for the same annotation (WCAG 2.1.1) — this is a pointer
|
|
85
85
|
* shortcut to that control, never the only way in.
|
|
86
86
|
*
|
|
87
|
-
* The
|
|
88
|
-
* `
|
|
89
|
-
* `height
|
|
90
|
-
*
|
|
87
|
+
* The band is delivered by the `size` variants only, and follows
|
|
88
|
+
* `--min-target-size` on both axes (48px under `.theme-accessible`). Pass
|
|
89
|
+
* an explicit `height` and the pointer layer falls back to the drawn
|
|
90
|
+
* height, so `height={20}` yields a 20px-tall target — below even WCAG
|
|
91
|
+
* 2.5.8.
|
|
91
92
|
*/
|
|
92
93
|
onAnnotationSelect?: (annotationId: string) => void;
|
|
93
94
|
}
|