@alfadocs/ui-kit 0.82.0 → 0.83.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.
Files changed (79) hide show
  1. package/dist/_chunks/{actions-cell-renderer-DLrcSTK_.js → actions-cell-renderer-DaL80uqL.js} +2 -2
  2. package/dist/_chunks/chart-GFLv4cXm.js +609 -0
  3. package/dist/_chunks/{editable-currency-cell-renderer-GwfA9tTR.js → editable-currency-cell-renderer-Dus_sBvX.js} +2 -2
  4. package/dist/_chunks/{face-scheme-C0rk21gg.js → face-scheme-CjQAHvSP.js} +2 -2
  5. package/dist/_chunks/{file-manager-DfTG7bxx.js → file-manager-DLJlinIO.js} +3 -3
  6. package/dist/_chunks/{header-settings-DMfdx0Vq.js → header-settings-CLwFqMHI.js} +2 -2
  7. package/dist/_chunks/{icon-button-group-C_lqXTAj.js → icon-button-group-BLHPN6jg.js} +178 -163
  8. package/dist/_chunks/{marketplace-app-shell-Bxq1PYAj.js → marketplace-app-shell-Br2yebEK.js} +2 -2
  9. package/dist/_chunks/{patient-table-DweKjiXg.js → patient-table-BHzmUbzu.js} +2 -2
  10. package/dist/_chunks/{theme-toggle-BJCz_UOi.js → theme-toggle-B4mOrQX1.js} +2 -2
  11. package/dist/agent-catalog.json +57 -4
  12. package/dist/agent-i18n/en.json +7 -1
  13. package/dist/components/chart/chart.d.ts +36 -1
  14. package/dist/components/chart/index.js +1 -1
  15. package/dist/components/data-table/index.js +2 -2
  16. package/dist/components/face-scheme/index.js +1 -1
  17. package/dist/components/file-manager/index.js +1 -1
  18. package/dist/components/header-settings/index.js +1 -1
  19. package/dist/components/icon-button-group/index.js +1 -1
  20. package/dist/components/patient-table/index.js +1 -1
  21. package/dist/components/theme-toggle/index.js +1 -1
  22. package/dist/i18n/locales/ar.d.ts +8 -0
  23. package/dist/i18n/locales/ar.js +8 -0
  24. package/dist/i18n/locales/de.d.ts +8 -0
  25. package/dist/i18n/locales/de.js +8 -0
  26. package/dist/i18n/locales/el.d.ts +8 -0
  27. package/dist/i18n/locales/el.js +8 -0
  28. package/dist/i18n/locales/en.d.ts +8 -0
  29. package/dist/i18n/locales/en.js +8 -0
  30. package/dist/i18n/locales/es.d.ts +8 -0
  31. package/dist/i18n/locales/es.js +8 -0
  32. package/dist/i18n/locales/fr.d.ts +8 -0
  33. package/dist/i18n/locales/fr.js +8 -0
  34. package/dist/i18n/locales/hi.d.ts +8 -0
  35. package/dist/i18n/locales/hi.js +8 -0
  36. package/dist/i18n/locales/it.d.ts +8 -0
  37. package/dist/i18n/locales/it.js +8 -0
  38. package/dist/i18n/locales/ja.d.ts +8 -0
  39. package/dist/i18n/locales/ja.js +8 -0
  40. package/dist/i18n/locales/nl.d.ts +8 -0
  41. package/dist/i18n/locales/nl.js +8 -0
  42. package/dist/i18n/locales/pl.d.ts +8 -0
  43. package/dist/i18n/locales/pl.js +8 -0
  44. package/dist/i18n/locales/pt.d.ts +8 -0
  45. package/dist/i18n/locales/pt.js +8 -0
  46. package/dist/i18n/locales/ro.d.ts +8 -0
  47. package/dist/i18n/locales/ro.js +8 -0
  48. package/dist/i18n/locales/ru.d.ts +8 -0
  49. package/dist/i18n/locales/ru.js +8 -0
  50. package/dist/i18n/locales/sq.d.ts +8 -0
  51. package/dist/i18n/locales/sq.js +8 -0
  52. package/dist/i18n/locales/sv.d.ts +8 -0
  53. package/dist/i18n/locales/sv.js +8 -0
  54. package/dist/i18n/locales/tr.d.ts +8 -0
  55. package/dist/i18n/locales/tr.js +8 -0
  56. package/dist/i18n/locales/zh.d.ts +8 -0
  57. package/dist/i18n/locales/zh.js +8 -0
  58. package/dist/index.js +9 -9
  59. package/dist/locales/ar.json +8 -0
  60. package/dist/locales/de.json +8 -0
  61. package/dist/locales/el.json +8 -0
  62. package/dist/locales/en.json +8 -0
  63. package/dist/locales/es.json +8 -0
  64. package/dist/locales/fr.json +8 -0
  65. package/dist/locales/hi.json +8 -0
  66. package/dist/locales/it.json +8 -0
  67. package/dist/locales/ja.json +8 -0
  68. package/dist/locales/nl.json +8 -0
  69. package/dist/locales/pl.json +8 -0
  70. package/dist/locales/pt.json +8 -0
  71. package/dist/locales/ro.json +8 -0
  72. package/dist/locales/ru.json +8 -0
  73. package/dist/locales/sq.json +8 -0
  74. package/dist/locales/sv.json +8 -0
  75. package/dist/locales/tr.json +8 -0
  76. package/dist/locales/zh.json +8 -0
  77. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  78. package/package.json +1 -1
  79. package/dist/_chunks/chart-CpkpA74k.js +0 -374
@@ -6,7 +6,7 @@ import { c as ot } from "./index-D2ZczOXr.js";
6
6
  import { useTranslation as w } from "react-i18next";
7
7
  import { useGridFilter as it, AgGridReact as st } from "ag-grid-react";
8
8
  import { ModuleRegistry as lt, AllCommunityModule as dt } from "ag-grid-community";
9
- import { I as we } from "./icon-button-group-C_lqXTAj.js";
9
+ import { I as we } from "./icon-button-group-BLHPN6jg.js";
10
10
  import { B as J } from "./button-CPGiR_bH.js";
11
11
  import { I as q } from "./icon-button-C_kbcd7I.js";
12
12
  import { P as Z } from "./popover-Cc0a69sw.js";
@@ -1543,4 +1543,4 @@ export {
1543
1543
  _t as e,
1544
1544
  Ae as f
1545
1545
  };
1546
- //# sourceMappingURL=actions-cell-renderer-DLrcSTK_.js.map
1546
+ //# sourceMappingURL=actions-cell-renderer-DaL80uqL.js.map
@@ -0,0 +1,609 @@
1
+ import { jsxs as w, jsx as c } from "react/jsx-runtime";
2
+ import { forwardRef as be, useId as ve, useMemo as d, useRef as ge, useState as H, useEffect as ee, useImperativeHandle as Te } from "react";
3
+ import { c as Se } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as we } from "react-i18next";
5
+ import Ie from "react-apexcharts";
6
+ import te from "apexcharts";
7
+ import { u as Ce, g as ae } from "./apexcharts-theme-BJigns_V.js";
8
+ import { u as ke } from "./use-prefers-reduced-motion-BMwIQRjB.js";
9
+ import { u as Re } from "./registry-DvAUVLHh.js";
10
+ import { I as _e } from "./icon-button-C_kbcd7I.js";
11
+ import { I as Le } from "./icon-button-group-BLHPN6jg.js";
12
+ import { c as I } from "./createLucideIcon-DhHxpK9K.js";
13
+ /**
14
+ * @license lucide-react v1.22.0 - ISC
15
+ *
16
+ * This source code is licensed under the ISC license.
17
+ * See the LICENSE file in the root directory of this source tree.
18
+ */
19
+ const xe = [
20
+ ["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
21
+ [
22
+ "path",
23
+ {
24
+ d: "M7 11.207a.5.5 0 0 1 .146-.353l2-2a.5.5 0 0 1 .708 0l3.292 3.292a.5.5 0 0 0 .708 0l4.292-4.292a.5.5 0 0 1 .854.353V16a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1z",
25
+ key: "q0gr47"
26
+ }
27
+ ]
28
+ ], Ee = I("chart-area", xe);
29
+ /**
30
+ * @license lucide-react v1.22.0 - ISC
31
+ *
32
+ * This source code is licensed under the ISC license.
33
+ * See the LICENSE file in the root directory of this source tree.
34
+ */
35
+ const Ne = [
36
+ ["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
37
+ ["path", { d: "M18 17V9", key: "2bz60n" }],
38
+ ["path", { d: "M13 17V5", key: "1frdt8" }],
39
+ ["path", { d: "M8 17v-3", key: "17ska0" }]
40
+ ], Ae = I("chart-column", Ne);
41
+ /**
42
+ * @license lucide-react v1.22.0 - ISC
43
+ *
44
+ * This source code is licensed under the ISC license.
45
+ * See the LICENSE file in the root directory of this source tree.
46
+ */
47
+ const Pe = [
48
+ ["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
49
+ ["path", { d: "m19 9-5 5-4-4-3 3", key: "2osh9i" }]
50
+ ], ze = I("chart-line", Pe);
51
+ /**
52
+ * @license lucide-react v1.22.0 - ISC
53
+ *
54
+ * This source code is licensed under the ISC license.
55
+ * See the LICENSE file in the root directory of this source tree.
56
+ */
57
+ const Be = [
58
+ [
59
+ "path",
60
+ {
61
+ d: "M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",
62
+ key: "pzmjnu"
63
+ }
64
+ ],
65
+ ["path", { d: "M21.21 15.89A10 10 0 1 1 8 2.83", key: "k2fpak" }]
66
+ ], Me = I("chart-pie", Be);
67
+ /**
68
+ * @license lucide-react v1.22.0 - ISC
69
+ *
70
+ * This source code is licensed under the ISC license.
71
+ * See the LICENSE file in the root directory of this source tree.
72
+ */
73
+ const Oe = [
74
+ [
75
+ "path",
76
+ {
77
+ d: "M20.5 10a2.5 2.5 0 0 1-2.4-3H18a2.95 2.95 0 0 1-2.6-4.4 10 10 0 1 0 6.3 7.1c-.3.2-.8.3-1.2.3",
78
+ key: "19sr3x"
79
+ }
80
+ ],
81
+ ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
82
+ ], $e = I("donut", Oe), He = {
83
+ id: "chart",
84
+ // view_change backs the opt-in type switcher (`switchableTypes` prop):
85
+ // the same chart re-presented as line / bar / area / pie / donut.
86
+ capabilities: ["view_change"],
87
+ state: {
88
+ declaredType: {
89
+ type: "'line' | 'bar' | 'pie' | 'donut' | 'area' | 'radialBar'",
90
+ descriptionKey: "ui.agent.chart.state.declaredType",
91
+ description: "The consumer-declared chart type — the shape `update_series` expects.",
92
+ read: (a) => a.getTypeState().declaredType
93
+ },
94
+ effectiveType: {
95
+ type: "'line' | 'bar' | 'pie' | 'donut' | 'area' | 'radialBar'",
96
+ descriptionKey: "ui.agent.chart.state.effectiveType",
97
+ description: "The type currently rendered — differs from declaredType after a type-switcher pick.",
98
+ read: (a) => a.getTypeState().effectiveType
99
+ },
100
+ availableTypes: {
101
+ type: "ChartType[]",
102
+ descriptionKey: "ui.agent.chart.state.availableTypes",
103
+ description: "Types the switcher offers. Empty when the chart has no type switcher.",
104
+ read: (a) => a.getTypeState().availableTypes
105
+ }
106
+ },
107
+ actions: {
108
+ change_view: {
109
+ // Switching the presentation is a write (it changes what the user
110
+ // sees) but is trivially reversible by switching back.
111
+ safety: "write",
112
+ argsType: "type",
113
+ argsSchema: {
114
+ type: "object",
115
+ properties: {
116
+ type: {
117
+ type: "string",
118
+ enum: ["line", "bar", "area", "pie", "donut"],
119
+ description: "The chart type to render."
120
+ }
121
+ },
122
+ required: ["type"]
123
+ },
124
+ returns: "boolean (accepted)",
125
+ returnsSchema: {
126
+ type: "boolean",
127
+ description: "True when the switch was applied; false when the chart has no type switcher or the type is not offered (check availableTypes first)."
128
+ },
129
+ idempotent: !0,
130
+ descriptionKey: "ui.agent.chart.actions.changeView",
131
+ description: "Switch the rendered chart type via the type switcher. No-op (returns false) when the chart has no switcher or the type is not offered.",
132
+ invoke: (a, h) => a.setType(h.type)
133
+ },
134
+ update_series: {
135
+ // Replacing the rendered series mutates what the chart displays — it
136
+ // is a write, reversible by pushing the prior series back.
137
+ safety: "write",
138
+ argsType: "series",
139
+ // `series` is `ChartSeries[]` (line/bar/area) OR `number[]`
140
+ // (pie/donut/radialBar). Both shapes are accepted; the handle routes
141
+ // by chart type internally.
142
+ argsSchema: {
143
+ type: "object",
144
+ properties: {
145
+ series: {
146
+ oneOf: [
147
+ {
148
+ type: "array",
149
+ description: "Categorical series for line / bar / area charts.",
150
+ items: {
151
+ type: "object",
152
+ properties: {
153
+ name: { type: "string" },
154
+ data: { type: "array", items: { type: "number" } }
155
+ },
156
+ required: ["name", "data"]
157
+ }
158
+ },
159
+ {
160
+ type: "array",
161
+ description: "Flat values for pie / donut / radialBar charts.",
162
+ items: { type: "number" }
163
+ }
164
+ ]
165
+ }
166
+ },
167
+ required: ["series"]
168
+ },
169
+ idempotent: !0,
170
+ descriptionKey: "ui.agent.chart.actions.updateSeries",
171
+ description: "Replace the chart series without remounting. Pass the DECLARED type’s shape (see declaredType state) — when the user has switched the view cross-shape the values are converted to the rendered shape. The write targets the live instance only: a later type switch re-reads the original props and discards it.",
172
+ invoke: (a, h) => {
173
+ a.updateSeries(h.series);
174
+ }
175
+ },
176
+ export_png: {
177
+ safety: "read",
178
+ returns: "string (PNG data URI)",
179
+ returnsSchema: {
180
+ type: "string",
181
+ description: "A `data:image/png;base64,…` URI of the rendered chart."
182
+ },
183
+ idempotent: !0,
184
+ descriptionKey: "ui.agent.chart.actions.exportPng",
185
+ description: "Return a PNG data URI of the chart for export or screenshotting.",
186
+ invoke: (a) => a.dataURI()
187
+ }
188
+ },
189
+ domHooks: {
190
+ root: { attr: "data-component", value: "chart" },
191
+ instanceId: {
192
+ attr: "data-component-id",
193
+ sourceProp: "id",
194
+ description: "Sourced from the id prop."
195
+ }
196
+ }
197
+ }, Ge = Se("ds:relative ds:block ds:w-full", {
198
+ variants: {
199
+ density: {
200
+ compact: "ds:min-h-[var(--chart-min-height-compact)]",
201
+ comfortable: "ds:min-h-[var(--chart-min-height-comfortable)]",
202
+ // Applied when an explicit `height` prop is given and no density was
203
+ // requested: the wrapper must not exceed the caller's height (a 96px
204
+ // KPI chart inside a card must not reserve 320px).
205
+ none: ""
206
+ }
207
+ },
208
+ defaultVariants: { density: "comfortable" }
209
+ }), je = [
210
+ "verticalLines",
211
+ "horizontalLines",
212
+ "slantedLines",
213
+ "squares",
214
+ "circles"
215
+ ], De = ["line", "bar", "area"], Ke = ["pie", "donut", "radialBar"], re = [
216
+ "line",
217
+ "bar",
218
+ "area",
219
+ "pie",
220
+ "donut"
221
+ ], Ue = {
222
+ line: "chart.typeSwitcher.line",
223
+ bar: "chart.typeSwitcher.bar",
224
+ area: "chart.typeSwitcher.area",
225
+ pie: "chart.typeSwitcher.pie",
226
+ donut: "chart.typeSwitcher.donut"
227
+ }, Ve = {
228
+ line: /* @__PURE__ */ c(ze, {}),
229
+ bar: /* @__PURE__ */ c(Ae, {}),
230
+ area: /* @__PURE__ */ c(Ee, {}),
231
+ pie: /* @__PURE__ */ c(Me, {}),
232
+ donut: /* @__PURE__ */ c($e, {})
233
+ };
234
+ function f(a) {
235
+ return Ke.includes(a);
236
+ }
237
+ function We(a) {
238
+ return De.includes(a);
239
+ }
240
+ function Ye(a, h) {
241
+ return f(h) ? [
242
+ {
243
+ name: "",
244
+ data: a
245
+ }
246
+ ] : a;
247
+ }
248
+ const qe = be(
249
+ ({
250
+ title: a,
251
+ id: h,
252
+ type: l,
253
+ series: C,
254
+ categories: G,
255
+ labels: L,
256
+ height: j,
257
+ width: oe,
258
+ patterns: D = !1,
259
+ colors: k,
260
+ toolbar: x = !1,
261
+ locale: ie,
262
+ radialValueFormatter: m,
263
+ valueFormatter: K,
264
+ switchableTypes: R,
265
+ onTypeChange: E,
266
+ density: ne,
267
+ className: U
268
+ }, se) => {
269
+ const { t: r, i18n: ce } = we(), V = ve(), y = d(
270
+ () => `chart-${V.replace(/[^a-zA-Z0-9-_]/g, "")}`,
271
+ [V]
272
+ ), N = `${y}-summary`, A = ge(null), [W, de] = H(0);
273
+ Ce(A);
274
+ const b = ie ?? ce.language ?? "en", [Y, le] = H(
275
+ () => {
276
+ try {
277
+ return ae();
278
+ } catch {
279
+ return {};
280
+ }
281
+ }
282
+ );
283
+ ee(() => {
284
+ if (typeof document > "u") return;
285
+ let e;
286
+ const t = new MutationObserver(() => {
287
+ clearTimeout(e), e = setTimeout(() => {
288
+ try {
289
+ le(ae());
290
+ } catch {
291
+ }
292
+ }, 50);
293
+ });
294
+ return t.observe(document.documentElement, {
295
+ attributes: !0,
296
+ attributeFilter: ["class"]
297
+ }), () => {
298
+ clearTimeout(e), t.disconnect();
299
+ };
300
+ }, []), ee(() => {
301
+ const e = A.current;
302
+ if (!e || typeof ResizeObserver > "u") return;
303
+ const t = new ResizeObserver((i) => {
304
+ const n = i[0];
305
+ n && de(Math.floor(n.contentRect.width));
306
+ });
307
+ return t.observe(e), () => t.disconnect();
308
+ }, []);
309
+ const v = d(() => {
310
+ if (!R || R.length === 0) return [];
311
+ const e = R.filter(
312
+ (i) => re.includes(i)
313
+ );
314
+ if (!re.includes(l))
315
+ return [];
316
+ const t = e.includes(l) ? e : [l, ...e];
317
+ return [...new Set(t)];
318
+ }, [R, l]), u = v.length >= 2, [P, q] = H(null), o = u && P && v.includes(P) ? P : l, z = f(l), Z = f(o), { effectiveSeries: g, effectiveCategories: _, effectiveLabels: T } = d(() => {
319
+ if (z === Z)
320
+ return {
321
+ effectiveSeries: C,
322
+ effectiveCategories: G,
323
+ effectiveLabels: L
324
+ };
325
+ if (!z) {
326
+ const t = C;
327
+ return {
328
+ effectiveSeries: t.map(
329
+ (n) => n.data.reduce((p, s) => p + s, 0)
330
+ ),
331
+ effectiveCategories: void 0,
332
+ effectiveLabels: t.map((n) => n.name)
333
+ };
334
+ }
335
+ const e = C;
336
+ return {
337
+ effectiveSeries: [
338
+ { name: r("chart.table.value"), data: e }
339
+ ],
340
+ effectiveCategories: L ?? [],
341
+ effectiveLabels: void 0
342
+ };
343
+ }, [C, G, L, z, Z, r]), B = d(
344
+ () => ({
345
+ async dataURI() {
346
+ const e = te.getChartByID(y);
347
+ return e ? (await e.dataURI()).imgURI : "";
348
+ },
349
+ updateSeries(e) {
350
+ const t = te.getChartByID(y);
351
+ if (!t) return;
352
+ const i = f(l), n = f(o);
353
+ if (i === n) {
354
+ t.updateSeries(e);
355
+ return;
356
+ }
357
+ if (!i) {
358
+ const p = e;
359
+ t.updateOptions(
360
+ { labels: p.map((s) => s.name) },
361
+ !1,
362
+ !0
363
+ ), t.updateSeries(
364
+ p.map((s) => s.data.reduce(($, ye) => $ + ye, 0))
365
+ );
366
+ return;
367
+ }
368
+ t.updateSeries([
369
+ { name: r("chart.table.value"), data: e }
370
+ ]);
371
+ },
372
+ setType(e) {
373
+ return !u || !v.includes(e) ? !1 : (q(e), !0);
374
+ },
375
+ getTypeState() {
376
+ return {
377
+ declaredType: l,
378
+ effectiveType: o,
379
+ availableTypes: u ? [...v] : []
380
+ };
381
+ }
382
+ }),
383
+ [y, l, o, r, u, v]
384
+ );
385
+ Te(se, () => B, [B]), Re(He, B, h);
386
+ const M = typeof document < "u" && document.documentElement.dir === "rtl", F = d(
387
+ () => Ye(g, o),
388
+ [g, o]
389
+ ), J = d(
390
+ () => new Intl.NumberFormat(b),
391
+ [b]
392
+ ), S = d(
393
+ () => K ?? ((e) => J.format(e)),
394
+ [K, J]
395
+ ), Q = d(
396
+ () => ({
397
+ name: b,
398
+ options: {
399
+ toolbar: {
400
+ download: r("chart.toolbar.download"),
401
+ selection: r("chart.toolbar.selection"),
402
+ selectionZoom: r("chart.toolbar.selectionZoom"),
403
+ zoomIn: r("chart.toolbar.zoomIn"),
404
+ zoomOut: r("chart.toolbar.zoomOut"),
405
+ pan: r("chart.toolbar.pan"),
406
+ reset: r("chart.toolbar.reset"),
407
+ exportToSVG: r("chart.toolbar.exportToSVG"),
408
+ exportToPNG: r("chart.toolbar.exportToPNG"),
409
+ exportToCSV: r("chart.toolbar.exportToCSV")
410
+ }
411
+ }
412
+ }),
413
+ [b, r]
414
+ ), O = ke(), pe = d(() => {
415
+ var i, n, p;
416
+ const e = Y, t = {
417
+ ...e,
418
+ chart: {
419
+ ...e.chart,
420
+ id: y,
421
+ toolbar: { show: x },
422
+ zoom: { enabled: x },
423
+ animations: {
424
+ enabled: !O,
425
+ dynamicAnimation: { enabled: !O }
426
+ },
427
+ locales: [Q],
428
+ defaultLocale: b,
429
+ parentHeightOffset: 0
430
+ },
431
+ // Only set `labels` when the effective type actually has them (slice
432
+ // charts). Emitting `labels: undefined` crashes ApexCharts' bar
433
+ // renderer — `parseDataAxisCharts` reads `labels.length` and throws
434
+ // "Cannot read properties of undefined (reading 'length')", which
435
+ // aborts the render and leaves a blank chart. Absent is safe; area /
436
+ // line tolerate the undefined but bar does not, so never pass it.
437
+ ...T ? { labels: T } : {},
438
+ legend: {
439
+ ...e.legend,
440
+ position: "bottom",
441
+ // ApexCharts legend.horizontalAlign is a physical prop mapped internally
442
+ // to the chart's own text flow. For RTL we flip via `yaxis.opposite`
443
+ // and ApexCharts' own `direction: 'rtl'` handling; legend stays anchored
444
+ // to the inline-start by asking for 'left' on LTR and 'right' on RTL.
445
+ horizontalAlign: M ? "right" : "left",
446
+ fontFamily: "inherit"
447
+ },
448
+ tooltip: {
449
+ ...e.tooltip,
450
+ y: {
451
+ formatter: (s) => S(s)
452
+ }
453
+ },
454
+ noData: {
455
+ text: r("chart.noData")
456
+ }
457
+ };
458
+ if (k && k.length > 0 && (t.colors = k), We(o) && (t.xaxis = {
459
+ ...e.xaxis,
460
+ categories: _ ?? []
461
+ }, t.yaxis = {
462
+ ...e.yaxis,
463
+ opposite: M,
464
+ labels: {
465
+ formatter: (s) => S(s)
466
+ }
467
+ }, t.stroke = {
468
+ curve: "smooth",
469
+ width: o === "bar" ? 0 : 2
470
+ }, t.dataLabels = { enabled: !1 }), o === "radialBar" && m) {
471
+ const s = e.plotOptions ?? {};
472
+ t.plotOptions = {
473
+ ...s,
474
+ radialBar: {
475
+ ...s.radialBar ?? {},
476
+ dataLabels: {
477
+ ...((i = s.radialBar) == null ? void 0 : i.dataLabels) ?? {},
478
+ value: {
479
+ ...((p = (n = s.radialBar) == null ? void 0 : n.dataLabels) == null ? void 0 : p.value) ?? {},
480
+ formatter: ($) => m(Number($))
481
+ }
482
+ }
483
+ }
484
+ };
485
+ }
486
+ return D ? t.fill = {
487
+ type: "pattern",
488
+ opacity: o === "area" ? 0.3 : 1,
489
+ pattern: {
490
+ style: [...je],
491
+ strokeWidth: 2
492
+ }
493
+ } : o === "area" && (t.fill = {
494
+ type: "gradient",
495
+ opacity: 0.3
496
+ }), t;
497
+ }, [
498
+ Y,
499
+ y,
500
+ x,
501
+ O,
502
+ Q,
503
+ b,
504
+ T,
505
+ S,
506
+ r,
507
+ o,
508
+ _,
509
+ M,
510
+ D,
511
+ k,
512
+ m
513
+ ]), he = oe ?? (W > 0 ? W : "100%"), ue = j ?? 320, fe = d(() => {
514
+ const e = f(o) ? T ?? [] : _ ?? [], t = F;
515
+ return /* @__PURE__ */ w("table", { id: N, className: "ds:sr-only", children: [
516
+ /* @__PURE__ */ c("caption", { children: a }),
517
+ /* @__PURE__ */ c("thead", { children: /* @__PURE__ */ w("tr", { children: [
518
+ /* @__PURE__ */ c("th", { scope: "col", children: r("chart.table.series") }),
519
+ e.map((i, n) => /* @__PURE__ */ c("th", { scope: "col", children: i }, `${i}-${n}`))
520
+ ] }) }),
521
+ /* @__PURE__ */ c("tbody", { children: t.map((i, n) => /* @__PURE__ */ w("tr", { children: [
522
+ /* @__PURE__ */ c("th", { scope: "row", children: i.name || r("chart.table.value") }),
523
+ i.data.map((p, s) => /* @__PURE__ */ c("td", { children: o === "radialBar" && m ? m(p) : S(p) }, `${n}-${s}`))
524
+ ] }, `${i.name}-${n}`)) })
525
+ ] });
526
+ }, [
527
+ o,
528
+ F,
529
+ T,
530
+ _,
531
+ N,
532
+ a,
533
+ r,
534
+ S,
535
+ m
536
+ ]), me = d(() => (f(o), g), [g, o]), X = /* @__PURE__ */ w(
537
+ "div",
538
+ {
539
+ ref: A,
540
+ role: "img",
541
+ "aria-label": a,
542
+ "aria-describedby": N,
543
+ className: Ge({
544
+ // Explicit height wins over the density min-height unless the
545
+ // caller also asked for a density explicitly.
546
+ density: ne ?? (j !== void 0 ? "none" : void 0),
547
+ className: u ? void 0 : U
548
+ }),
549
+ ...u ? {} : { "data-component": "chart", "data-component-id": h },
550
+ children: [
551
+ fe,
552
+ /* @__PURE__ */ c(
553
+ Ie,
554
+ {
555
+ type: o,
556
+ series: me,
557
+ options: pe,
558
+ width: he,
559
+ height: ue,
560
+ "aria-hidden": "true"
561
+ },
562
+ o
563
+ )
564
+ ]
565
+ }
566
+ );
567
+ return u ? /* @__PURE__ */ w(
568
+ "div",
569
+ {
570
+ "data-component": "chart",
571
+ "data-component-id": h,
572
+ className: `ds:block ds:w-full ${U ?? ""}`.trim(),
573
+ children: [
574
+ /* @__PURE__ */ c("div", { className: "ds:mb-[var(--spacing-xs)] ds:flex ds:justify-end", children: /* @__PURE__ */ c(
575
+ Le,
576
+ {
577
+ role: "radiogroup",
578
+ mode: "toggle-single",
579
+ size: "sm",
580
+ "aria-label": r("chart.typeSwitcher.label"),
581
+ value: o,
582
+ onValueChange: (e) => {
583
+ e !== o && (q(e), E == null || E(e));
584
+ },
585
+ children: v.map((e) => /* @__PURE__ */ c(
586
+ _e,
587
+ {
588
+ value: e,
589
+ type: "button",
590
+ icon: Ve[e],
591
+ "aria-label": r(Ue[e])
592
+ },
593
+ e
594
+ ))
595
+ }
596
+ ) }),
597
+ X
598
+ ]
599
+ }
600
+ ) : X;
601
+ }
602
+ );
603
+ qe.displayName = "Chart";
604
+ export {
605
+ qe as C,
606
+ Ge as a,
607
+ He as c
608
+ };
609
+ //# sourceMappingURL=chart-GFLv4cXm.js.map
@@ -3,7 +3,7 @@ import { jsx as l, jsxs as L } from "react/jsx-runtime";
3
3
  import { T as V } from "./tag-3wgkwwDB.js";
4
4
  import { useTranslation as x } from "react-i18next";
5
5
  import { I as z } from "./icon-button-C_kbcd7I.js";
6
- import { I as $ } from "./icon-button-group-C_lqXTAj.js";
6
+ import { I as $ } from "./icon-button-group-BLHPN6jg.js";
7
7
  import { c as D } from "./createLucideIcon-DhHxpK9K.js";
8
8
  import { S as H } from "./square-check-big-dj0o8yA3.js";
9
9
  import { S as q } from "./square-DASBRZ0U.js";
@@ -407,4 +407,4 @@ export {
407
407
  ve as r,
408
408
  be as u
409
409
  };
410
- //# sourceMappingURL=editable-currency-cell-renderer-GwfA9tTR.js.map
410
+ //# sourceMappingURL=editable-currency-cell-renderer-Dus_sBvX.js.map
@@ -9,7 +9,7 @@ import { B as P } from "./button-CPGiR_bH.js";
9
9
  import { I as Ze } from "./icon-button-C_kbcd7I.js";
10
10
  import { B as es } from "./button-group-DzV5wgnx.js";
11
11
  import { C as ts } from "./combobox-DiMLItyu.js";
12
- import { I as vn } from "./icon-button-group-C_lqXTAj.js";
12
+ import { I as vn } from "./icon-button-group-BLHPN6jg.js";
13
13
  import { T as Ar } from "./text-input-CUvCb6ST.js";
14
14
  import { C as Oe } from "./card-DPmk26CL.js";
15
15
  import { S as Tt } from "./separator-CYU_bGFn.js";
@@ -3143,4 +3143,4 @@ export {
3143
3143
  Nn as t,
3144
3144
  Kr as u
3145
3145
  };
3146
- //# sourceMappingURL=face-scheme-C0rk21gg.js.map
3146
+ //# sourceMappingURL=face-scheme-CjQAHvSP.js.map
@@ -16,14 +16,14 @@ import { F as Nt, a as Tt } from "./file-Cwe9VC1A.js";
16
16
  import { F as Ft } from "./file-text-5yv6r2ls.js";
17
17
  import { F as At } from "./file-spreadsheet-DmwyfV4O.js";
18
18
  import { C as Dt } from "./chevron-right-I9AeSxH2.js";
19
- import { A as Rt, d as It, D as Te } from "./actions-cell-renderer-DLrcSTK_.js";
19
+ import { A as Rt, d as It, D as Te } from "./actions-cell-renderer-DaL80uqL.js";
20
20
  import { B as $e } from "./badge-DCOqV9mI.js";
21
21
  import { D as Ge } from "./download-CfYKJO_j.js";
22
22
  import { P as zt } from "./pen-line-D0De5zdl.js";
23
23
  import { P as Ue } from "./pencil-B1sKKyuT.js";
24
24
  import { T as Ye } from "./trash-2-uumy3fy1.js";
25
25
  import { I as Q } from "./icon-button-C_kbcd7I.js";
26
- import { I as _t } from "./icon-button-group-C_lqXTAj.js";
26
+ import { I as _t } from "./icon-button-group-BLHPN6jg.js";
27
27
  import { U as Lt } from "./upload-BfT2hzMg.js";
28
28
  import { P as Kt } from "./plus-DzMQ_c6b.js";
29
29
  /**
@@ -1768,4 +1768,4 @@ export {
1768
1768
  vn as F,
1769
1769
  Yt as f
1770
1770
  };
1771
- //# sourceMappingURL=file-manager-DfTG7bxx.js.map
1771
+ //# sourceMappingURL=file-manager-DLJlinIO.js.map
@@ -3,7 +3,7 @@ import { forwardRef as A, useRef as p, useImperativeHandle as x, useCallback as
3
3
  import { c as E } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as M } from "react-i18next";
5
5
  import { I as o } from "./icon-button-C_kbcd7I.js";
6
- import { I as N } from "./icon-button-group-C_lqXTAj.js";
6
+ import { I as N } from "./icon-button-group-BLHPN6jg.js";
7
7
  import { D as r } from "./dropdown-menu-DU-Hrf33.js";
8
8
  import { S as j } from "./switch-OILsBLWo.js";
9
9
  import { c as y, a as H, L as R } from "./locale-picker-EyvPrwDc.js";
@@ -281,4 +281,4 @@ W.displayName = "HeaderSettings";
281
281
  export {
282
282
  W as H
283
283
  };
284
- //# sourceMappingURL=header-settings-DMfdx0Vq.js.map
284
+ //# sourceMappingURL=header-settings-CLwFqMHI.js.map