@alfadocs/ui-kit 0.81.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.
- package/dist/_chunks/{actions-cell-renderer-DLrcSTK_.js → actions-cell-renderer-DaL80uqL.js} +2 -2
- package/dist/_chunks/chart-GFLv4cXm.js +609 -0
- package/dist/_chunks/{editable-currency-cell-renderer-GwfA9tTR.js → editable-currency-cell-renderer-Dus_sBvX.js} +2 -2
- package/dist/_chunks/{face-scheme-C0rk21gg.js → face-scheme-CjQAHvSP.js} +2 -2
- package/dist/_chunks/{file-manager-DfTG7bxx.js → file-manager-DLJlinIO.js} +3 -3
- package/dist/_chunks/{header-settings-DMfdx0Vq.js → header-settings-CLwFqMHI.js} +2 -2
- package/dist/_chunks/{icon-button-group-C_lqXTAj.js → icon-button-group-BLHPN6jg.js} +178 -163
- package/dist/_chunks/{marketplace-app-shell-Bxq1PYAj.js → marketplace-app-shell-Br2yebEK.js} +2 -2
- package/dist/_chunks/{patient-table-DweKjiXg.js → patient-table-BHzmUbzu.js} +2 -2
- package/dist/_chunks/{payment-request-card-C0fqlKqO.js → payment-request-card-d-RmzsUd.js} +15 -13
- package/dist/_chunks/{theme-toggle-BJCz_UOi.js → theme-toggle-B4mOrQX1.js} +2 -2
- package/dist/agent-catalog.json +139 -4
- package/dist/agent-i18n/en.json +14 -1
- package/dist/components/chart/chart.d.ts +36 -1
- package/dist/components/chart/index.js +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/header-settings/index.js +1 -1
- package/dist/components/icon-button-group/index.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +8 -0
- package/dist/i18n/locales/ar.js +8 -0
- package/dist/i18n/locales/de.d.ts +8 -0
- package/dist/i18n/locales/de.js +8 -0
- package/dist/i18n/locales/el.d.ts +8 -0
- package/dist/i18n/locales/el.js +8 -0
- package/dist/i18n/locales/en.d.ts +8 -0
- package/dist/i18n/locales/en.js +8 -0
- package/dist/i18n/locales/es.d.ts +8 -0
- package/dist/i18n/locales/es.js +8 -0
- package/dist/i18n/locales/fr.d.ts +8 -0
- package/dist/i18n/locales/fr.js +8 -0
- package/dist/i18n/locales/hi.d.ts +8 -0
- package/dist/i18n/locales/hi.js +8 -0
- package/dist/i18n/locales/it.d.ts +8 -0
- package/dist/i18n/locales/it.js +8 -0
- package/dist/i18n/locales/ja.d.ts +8 -0
- package/dist/i18n/locales/ja.js +8 -0
- package/dist/i18n/locales/nl.d.ts +8 -0
- package/dist/i18n/locales/nl.js +8 -0
- package/dist/i18n/locales/pl.d.ts +8 -0
- package/dist/i18n/locales/pl.js +8 -0
- package/dist/i18n/locales/pt.d.ts +8 -0
- package/dist/i18n/locales/pt.js +8 -0
- package/dist/i18n/locales/ro.d.ts +8 -0
- package/dist/i18n/locales/ro.js +8 -0
- package/dist/i18n/locales/ru.d.ts +8 -0
- package/dist/i18n/locales/ru.js +8 -0
- package/dist/i18n/locales/sq.d.ts +8 -0
- package/dist/i18n/locales/sq.js +8 -0
- package/dist/i18n/locales/sv.d.ts +8 -0
- package/dist/i18n/locales/sv.js +8 -0
- package/dist/i18n/locales/tr.d.ts +8 -0
- package/dist/i18n/locales/tr.js +8 -0
- package/dist/i18n/locales/zh.d.ts +8 -0
- package/dist/i18n/locales/zh.js +8 -0
- package/dist/index.js +1270 -963
- package/dist/locales/ar.json +8 -0
- package/dist/locales/de.json +8 -0
- package/dist/locales/el.json +8 -0
- package/dist/locales/en.json +8 -0
- package/dist/locales/es.json +8 -0
- package/dist/locales/fr.json +8 -0
- package/dist/locales/hi.json +8 -0
- package/dist/locales/it.json +8 -0
- package/dist/locales/ja.json +8 -0
- package/dist/locales/nl.json +8 -0
- package/dist/locales/pl.json +8 -0
- package/dist/locales/pt.json +8 -0
- package/dist/locales/ro.json +8 -0
- package/dist/locales/ru.json +8 -0
- package/dist/locales/sq.json +8 -0
- package/dist/locales/sv.json +8 -0
- package/dist/locales/tr.json +8 -0
- package/dist/locales/zh.json +8 -0
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/payment-automation-upsell/index.d.ts +3 -0
- package/dist/patterns/payment-automation-upsell/payment-automation-upsell.d.ts +93 -0
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/chart-CpkpA74k.js +0 -374
|
@@ -3,7 +3,7 @@ import { forwardRef as $, useId as H, useMemo as I } from "react";
|
|
|
3
3
|
import { c as B } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as G } from "react-i18next";
|
|
5
5
|
import { B as K } from "./badge-DCOqV9mI.js";
|
|
6
|
-
import { C as
|
|
6
|
+
import { C as k } from "./card-DPmk26CL.js";
|
|
7
7
|
import { D as d } from "./description-list-ClNLdRMy.js";
|
|
8
8
|
import { K as O, a as Y } from "./key-value-pair-LHKfDT_9.js";
|
|
9
9
|
import { T as j, A as te } from "./transaction-chip-DJCstquX.js";
|
|
@@ -100,7 +100,7 @@ const ue = [
|
|
|
100
100
|
},
|
|
101
101
|
defaultVariants: { surface: "elevated" }
|
|
102
102
|
});
|
|
103
|
-
function
|
|
103
|
+
function R(a, l, r) {
|
|
104
104
|
try {
|
|
105
105
|
return new Intl.NumberFormat(r, {
|
|
106
106
|
style: "currency",
|
|
@@ -200,13 +200,13 @@ const xe = $(
|
|
|
200
200
|
value: i.operatorName
|
|
201
201
|
});
|
|
202
202
|
const U = I(
|
|
203
|
-
() => n != null ?
|
|
203
|
+
() => n != null ? R(n, u, o) : void 0,
|
|
204
204
|
[n, u, o]
|
|
205
205
|
), _ = I(
|
|
206
|
-
() => h != null ?
|
|
206
|
+
() => h != null ? R(h, u, o) : void 0,
|
|
207
207
|
[h, u, o]
|
|
208
208
|
), V = I(
|
|
209
|
-
() => m != null ?
|
|
209
|
+
() => m != null ? R(m, u, o) : void 0,
|
|
210
210
|
[m, u, o]
|
|
211
211
|
), Z = U != null || _ != null || V != null, ee = !!b && b.length > 0, F = /* @__PURE__ */ c("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
212
212
|
/* @__PURE__ */ c("div", { className: "ds:flex ds:items-start ds:gap-[var(--spacing-md)] ds:flex-wrap", children: [
|
|
@@ -274,7 +274,7 @@ const xe = $(
|
|
|
274
274
|
vat: s.vatPercentage,
|
|
275
275
|
defaultValue: "{{description}} (VAT {{vat}}%)"
|
|
276
276
|
}) : s.description }),
|
|
277
|
-
/* @__PURE__ */ e(d.Detail, { numeric: !0, children:
|
|
277
|
+
/* @__PURE__ */ e(d.Detail, { numeric: !0, children: R(s.amountCents, u, o) })
|
|
278
278
|
] }, `${s.description}-${ae}`))
|
|
279
279
|
}
|
|
280
280
|
)
|
|
@@ -297,7 +297,7 @@ const xe = $(
|
|
|
297
297
|
id: a,
|
|
298
298
|
className: ge({ surface: x, className: f }),
|
|
299
299
|
...S,
|
|
300
|
-
children: x === "elevated" ? /* @__PURE__ */ e(
|
|
300
|
+
children: x === "elevated" ? /* @__PURE__ */ e(k, { variant: "elevated", children: /* @__PURE__ */ e(k.Body, { children: F }) }) : /* @__PURE__ */ e("div", { className: X({ surface: "flat" }), children: F })
|
|
301
301
|
}
|
|
302
302
|
);
|
|
303
303
|
}
|
|
@@ -341,7 +341,7 @@ const Pe = {
|
|
|
341
341
|
paid: "Paid",
|
|
342
342
|
failed: "Failed",
|
|
343
343
|
cancelled: "Cancelled"
|
|
344
|
-
},
|
|
344
|
+
}, Re = B("ds:w-full ds:text-[color:var(--foreground)]", {
|
|
345
345
|
variants: {
|
|
346
346
|
surface: {
|
|
347
347
|
flat: "",
|
|
@@ -350,7 +350,7 @@ const Pe = {
|
|
|
350
350
|
},
|
|
351
351
|
defaultVariants: { surface: "elevated" }
|
|
352
352
|
});
|
|
353
|
-
function
|
|
353
|
+
function ke(a, l) {
|
|
354
354
|
const r = new Date(a);
|
|
355
355
|
if (Number.isNaN(r.getTime())) return a;
|
|
356
356
|
try {
|
|
@@ -398,7 +398,7 @@ const De = $(
|
|
|
398
398
|
key: "dueDate",
|
|
399
399
|
icon: /* @__PURE__ */ e(se, { "aria-hidden": "true" }),
|
|
400
400
|
label: f("paymentRequestCard.label.dueDate", "Due date"),
|
|
401
|
-
value:
|
|
401
|
+
value: ke(v, t)
|
|
402
402
|
}), m && g.push({
|
|
403
403
|
key: "carePlan",
|
|
404
404
|
icon: /* @__PURE__ */ e(Q, { "aria-hidden": "true" }),
|
|
@@ -451,18 +451,20 @@ const De = $(
|
|
|
451
451
|
"data-component-id": a,
|
|
452
452
|
"data-status": n,
|
|
453
453
|
id: a,
|
|
454
|
-
className:
|
|
454
|
+
className: Re({ surface: b, className: u }),
|
|
455
455
|
...x,
|
|
456
|
-
children: b === "elevated" ? /* @__PURE__ */ e(
|
|
456
|
+
children: b === "elevated" ? /* @__PURE__ */ e(k, { variant: "elevated", children: /* @__PURE__ */ e(k.Body, { children: T }) }) : /* @__PURE__ */ e("div", { className: X({ surface: "flat" }), children: T })
|
|
457
457
|
}
|
|
458
458
|
);
|
|
459
459
|
}
|
|
460
460
|
);
|
|
461
461
|
De.displayName = "PaymentRequestCard";
|
|
462
462
|
export {
|
|
463
|
+
M as C,
|
|
463
464
|
xe as P,
|
|
465
|
+
pe as R,
|
|
464
466
|
De as a,
|
|
465
467
|
Pe as b,
|
|
466
468
|
he as p
|
|
467
469
|
};
|
|
468
|
-
//# sourceMappingURL=payment-request-card-
|
|
470
|
+
//# sourceMappingURL=payment-request-card-d-RmzsUd.js.map
|
|
@@ -3,7 +3,7 @@ import { forwardRef as M, useRef as k, useImperativeHandle as N, useMemo as _, u
|
|
|
3
3
|
import { c as P } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as g } from "react-i18next";
|
|
5
5
|
import { I as y } from "./icon-button-C_kbcd7I.js";
|
|
6
|
-
import { I as j } from "./icon-button-group-
|
|
6
|
+
import { I as j } from "./icon-button-group-BLHPN6jg.js";
|
|
7
7
|
import { S as K } from "./switch-OILsBLWo.js";
|
|
8
8
|
import { D as o } from "./dropdown-menu-DU-Hrf33.js";
|
|
9
9
|
import { u as x } from "./use-theme-CAuo6EYT.js";
|
|
@@ -364,4 +364,4 @@ export {
|
|
|
364
364
|
F as T,
|
|
365
365
|
D as t
|
|
366
366
|
};
|
|
367
|
-
//# sourceMappingURL=theme-toggle-
|
|
367
|
+
//# sourceMappingURL=theme-toggle-B4mOrQX1.js.map
|
package/dist/agent-catalog.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"packageVersion": "0.
|
|
3
|
+
"packageVersion": "0.83.0",
|
|
4
4
|
"components": [
|
|
5
5
|
{
|
|
6
6
|
"kind": "component",
|
|
@@ -1756,9 +1756,62 @@
|
|
|
1756
1756
|
{
|
|
1757
1757
|
"kind": "component",
|
|
1758
1758
|
"id": "chart",
|
|
1759
|
-
"capabilities": [
|
|
1760
|
-
|
|
1759
|
+
"capabilities": [
|
|
1760
|
+
"view_change"
|
|
1761
|
+
],
|
|
1762
|
+
"state": [
|
|
1763
|
+
{
|
|
1764
|
+
"name": "declaredType",
|
|
1765
|
+
"type": "'line' | 'bar' | 'pie' | 'donut' | 'area' | 'radialBar'",
|
|
1766
|
+
"description": "The consumer-declared chart type — the shape `update_series` expects.",
|
|
1767
|
+
"descriptionKey": "ui.agent.chart.state.declaredType"
|
|
1768
|
+
},
|
|
1769
|
+
{
|
|
1770
|
+
"name": "effectiveType",
|
|
1771
|
+
"type": "'line' | 'bar' | 'pie' | 'donut' | 'area' | 'radialBar'",
|
|
1772
|
+
"description": "The type currently rendered — differs from declaredType after a type-switcher pick.",
|
|
1773
|
+
"descriptionKey": "ui.agent.chart.state.effectiveType"
|
|
1774
|
+
},
|
|
1775
|
+
{
|
|
1776
|
+
"name": "availableTypes",
|
|
1777
|
+
"type": "ChartType[]",
|
|
1778
|
+
"description": "Types the switcher offers. Empty when the chart has no type switcher.",
|
|
1779
|
+
"descriptionKey": "ui.agent.chart.state.availableTypes"
|
|
1780
|
+
}
|
|
1781
|
+
],
|
|
1761
1782
|
"actions": [
|
|
1783
|
+
{
|
|
1784
|
+
"name": "change_view",
|
|
1785
|
+
"safety": "write",
|
|
1786
|
+
"argsType": "type",
|
|
1787
|
+
"argsSchema": {
|
|
1788
|
+
"type": "object",
|
|
1789
|
+
"properties": {
|
|
1790
|
+
"type": {
|
|
1791
|
+
"type": "string",
|
|
1792
|
+
"enum": [
|
|
1793
|
+
"line",
|
|
1794
|
+
"bar",
|
|
1795
|
+
"area",
|
|
1796
|
+
"pie",
|
|
1797
|
+
"donut"
|
|
1798
|
+
],
|
|
1799
|
+
"description": "The chart type to render."
|
|
1800
|
+
}
|
|
1801
|
+
},
|
|
1802
|
+
"required": [
|
|
1803
|
+
"type"
|
|
1804
|
+
]
|
|
1805
|
+
},
|
|
1806
|
+
"returns": "boolean (accepted)",
|
|
1807
|
+
"returnsSchema": {
|
|
1808
|
+
"type": "boolean",
|
|
1809
|
+
"description": "True when the switch was applied; false when the chart has no type switcher or the type is not offered (check availableTypes first)."
|
|
1810
|
+
},
|
|
1811
|
+
"idempotent": true,
|
|
1812
|
+
"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.",
|
|
1813
|
+
"descriptionKey": "ui.agent.chart.actions.changeView"
|
|
1814
|
+
},
|
|
1762
1815
|
{
|
|
1763
1816
|
"name": "update_series",
|
|
1764
1817
|
"safety": "write",
|
|
@@ -1805,7 +1858,7 @@
|
|
|
1805
1858
|
]
|
|
1806
1859
|
},
|
|
1807
1860
|
"idempotent": true,
|
|
1808
|
-
"description": "Replace the chart series without remounting.",
|
|
1861
|
+
"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.",
|
|
1809
1862
|
"descriptionKey": "ui.agent.chart.actions.updateSeries"
|
|
1810
1863
|
},
|
|
1811
1864
|
{
|
|
@@ -15223,6 +15276,88 @@
|
|
|
15223
15276
|
}
|
|
15224
15277
|
]
|
|
15225
15278
|
},
|
|
15279
|
+
{
|
|
15280
|
+
"kind": "pattern",
|
|
15281
|
+
"id": "payment-automation-upsell",
|
|
15282
|
+
"composes": [
|
|
15283
|
+
{
|
|
15284
|
+
"component": "card",
|
|
15285
|
+
"as": "heroCard"
|
|
15286
|
+
},
|
|
15287
|
+
{
|
|
15288
|
+
"component": "benefit-card",
|
|
15289
|
+
"as": "howItWorks",
|
|
15290
|
+
"entity": "step"
|
|
15291
|
+
},
|
|
15292
|
+
{
|
|
15293
|
+
"component": "card",
|
|
15294
|
+
"as": "previewCard"
|
|
15295
|
+
},
|
|
15296
|
+
{
|
|
15297
|
+
"component": "list",
|
|
15298
|
+
"as": "previewList",
|
|
15299
|
+
"entity": "paymentRequest"
|
|
15300
|
+
},
|
|
15301
|
+
{
|
|
15302
|
+
"component": "badge",
|
|
15303
|
+
"as": "requestStatus"
|
|
15304
|
+
},
|
|
15305
|
+
{
|
|
15306
|
+
"component": "stat",
|
|
15307
|
+
"as": "proofMetric",
|
|
15308
|
+
"entity": "metric"
|
|
15309
|
+
},
|
|
15310
|
+
{
|
|
15311
|
+
"component": "card",
|
|
15312
|
+
"as": "featuresCard"
|
|
15313
|
+
},
|
|
15314
|
+
{
|
|
15315
|
+
"component": "list",
|
|
15316
|
+
"as": "featureList",
|
|
15317
|
+
"entity": "feature"
|
|
15318
|
+
},
|
|
15319
|
+
{
|
|
15320
|
+
"component": "button",
|
|
15321
|
+
"as": "activate"
|
|
15322
|
+
},
|
|
15323
|
+
{
|
|
15324
|
+
"component": "button",
|
|
15325
|
+
"as": "notifyAdmin"
|
|
15326
|
+
}
|
|
15327
|
+
],
|
|
15328
|
+
"workflows": [
|
|
15329
|
+
{
|
|
15330
|
+
"name": "view_upsell",
|
|
15331
|
+
"safety": "read",
|
|
15332
|
+
"description": "Read the Payment Automation value preview: the how-it-works steps, the sample payment-request list, and the included-features checklist.",
|
|
15333
|
+
"descriptionKey": "ui.agent.paymentAutomationUpsell.workflows.viewUpsell",
|
|
15334
|
+
"uiActions": [],
|
|
15335
|
+
"apiActions": [
|
|
15336
|
+
"paymentAutomation.getModuleStatus"
|
|
15337
|
+
]
|
|
15338
|
+
},
|
|
15339
|
+
{
|
|
15340
|
+
"name": "activate_module",
|
|
15341
|
+
"safety": "write",
|
|
15342
|
+
"description": "As the practice owner, activate the Payment Automation module on the subscription. Persists a billing change.",
|
|
15343
|
+
"descriptionKey": "ui.agent.paymentAutomationUpsell.workflows.activateModule",
|
|
15344
|
+
"uiActions": [],
|
|
15345
|
+
"apiActions": [
|
|
15346
|
+
"subscription.enableModule"
|
|
15347
|
+
]
|
|
15348
|
+
},
|
|
15349
|
+
{
|
|
15350
|
+
"name": "notify_admin",
|
|
15351
|
+
"safety": "write",
|
|
15352
|
+
"description": "As a non-owner member, notify the practice owner / admin to activate the Payment Automation module.",
|
|
15353
|
+
"descriptionKey": "ui.agent.paymentAutomationUpsell.workflows.notifyAdmin",
|
|
15354
|
+
"uiActions": [],
|
|
15355
|
+
"apiActions": [
|
|
15356
|
+
"notification.notifyOwner"
|
|
15357
|
+
]
|
|
15358
|
+
}
|
|
15359
|
+
]
|
|
15360
|
+
},
|
|
15226
15361
|
{
|
|
15227
15362
|
"kind": "pattern",
|
|
15228
15363
|
"id": "practice-profile-hero",
|
package/dist/agent-i18n/en.json
CHANGED
|
@@ -190,8 +190,14 @@
|
|
|
190
190
|
}
|
|
191
191
|
},
|
|
192
192
|
"chart": {
|
|
193
|
+
"state": {
|
|
194
|
+
"declaredType": "The consumer-declared chart type — the shape `update_series` expects.",
|
|
195
|
+
"effectiveType": "The type currently rendered — differs from declaredType after a type-switcher pick.",
|
|
196
|
+
"availableTypes": "Types the switcher offers. Empty when the chart has no type switcher."
|
|
197
|
+
},
|
|
193
198
|
"actions": {
|
|
194
|
-
"
|
|
199
|
+
"changeView": "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.",
|
|
200
|
+
"updateSeries": "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.",
|
|
195
201
|
"exportPng": "Return a PNG data URI of the chart for export or screenshotting."
|
|
196
202
|
}
|
|
197
203
|
},
|
|
@@ -1497,6 +1503,13 @@
|
|
|
1497
1503
|
"exportRoster": "Export the current (optionally filtered) patient roster from the page-header table-tools cluster — CSV / Excel / PDF."
|
|
1498
1504
|
}
|
|
1499
1505
|
},
|
|
1506
|
+
"paymentAutomationUpsell": {
|
|
1507
|
+
"workflows": {
|
|
1508
|
+
"viewUpsell": "Read the Payment Automation value preview: the how-it-works steps, the sample payment-request list, and the included-features checklist.",
|
|
1509
|
+
"activateModule": "As the practice owner, activate the Payment Automation module on the subscription. Persists a billing change.",
|
|
1510
|
+
"notifyAdmin": "As a non-owner member, notify the practice owner / admin to activate the Payment Automation module."
|
|
1511
|
+
}
|
|
1512
|
+
},
|
|
1500
1513
|
"practiceProfileHero": {
|
|
1501
1514
|
"workflows": {
|
|
1502
1515
|
"viewProfile": "Read the practice's public profile summary — name, tagline, average rating, review count, and trust badges."
|
|
@@ -60,14 +60,49 @@ export interface ChartProps extends VariantProps<typeof chartVariants> {
|
|
|
60
60
|
* `radialValueFormatter` for that.
|
|
61
61
|
*/
|
|
62
62
|
valueFormatter?: (value: number) => string;
|
|
63
|
+
/**
|
|
64
|
+
* Opt-in type switcher. Pass two or more of `'line' | 'bar' | 'area' |
|
|
65
|
+
* 'pie' | 'donut'` to render an icon radiogroup (an `IconButtonGroup`)
|
|
66
|
+
* above the plot that lets the user flip the chart between those types.
|
|
67
|
+
* `type` is the initial selection and is always offered; the user's pick
|
|
68
|
+
* then sticks across re-renders (remount with a new `key` to reset it).
|
|
69
|
+
* When the picked type reads the other data shape, the data adapts: axis
|
|
70
|
+
* series collapse to one slice per series (that series' total) for `pie` /
|
|
71
|
+
* `donut`, and slice values become a single-series axis chart with
|
|
72
|
+
* `labels` as the categories. `radialBar` cannot participate — such
|
|
73
|
+
* entries are ignored (DEV warning) and a `radialBar` chart never shows
|
|
74
|
+
* the switcher.
|
|
75
|
+
*/
|
|
76
|
+
switchableTypes?: ChartType[];
|
|
77
|
+
/** Called when the user picks a different type via the switcher. */
|
|
78
|
+
onTypeChange?: (type: ChartType) => void;
|
|
63
79
|
/** Extra class names on the wrapper. */
|
|
64
80
|
className?: string;
|
|
65
81
|
}
|
|
66
82
|
export interface ChartHandle {
|
|
67
83
|
/** Returns a PNG data URI for the chart. */
|
|
68
84
|
dataURI: () => Promise<string>;
|
|
69
|
-
/**
|
|
85
|
+
/**
|
|
86
|
+
* Updates series without remounting. Always pass the DECLARED `type`'s
|
|
87
|
+
* shape — while the user has switched the view across the axis/slice
|
|
88
|
+
* boundary the values (and, for axis→slice, the slice labels) are
|
|
89
|
+
* converted to the rendered shape; for slice→axis the categories stay
|
|
90
|
+
* the `labels` prop, so keep the value count stable. The update writes
|
|
91
|
+
* to the live ApexCharts instance only: a later type switch remounts
|
|
92
|
+
* from the original props and discards it.
|
|
93
|
+
*/
|
|
70
94
|
updateSeries: (next: ChartProps['series']) => void;
|
|
95
|
+
/**
|
|
96
|
+
* Switches the rendered type via the type switcher. Returns `false`
|
|
97
|
+
* (no-op) when the switcher is not enabled or the type is not offered.
|
|
98
|
+
*/
|
|
99
|
+
setType: (next: ChartType) => boolean;
|
|
100
|
+
/** Declared vs rendered type plus the types the switcher offers ([] when disabled). */
|
|
101
|
+
getTypeState: () => {
|
|
102
|
+
declaredType: ChartType;
|
|
103
|
+
effectiveType: ChartType;
|
|
104
|
+
availableTypes: ChartType[];
|
|
105
|
+
};
|
|
71
106
|
}
|
|
72
107
|
export declare const Chart: import("react").ForwardRefExoticComponent<ChartProps & import("react").RefAttributes<ChartHandle>>;
|
|
73
108
|
export { chartVariants };
|
|
@@ -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-DaL80uqL.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-Dus_sBvX.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-BQGUs45d.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-CjQAHvSP.js";
|
|
2
2
|
export {
|
|
3
3
|
e as ANNOTATION_TOOL_KIND,
|
|
4
4
|
o as FACE_ANNOTATION_TOOLS,
|
|
@@ -198,6 +198,7 @@ export * from './whatsapp-button';
|
|
|
198
198
|
export * from './workflow';
|
|
199
199
|
export * from '../patterns/alia-assistant';
|
|
200
200
|
export * from '../patterns/marketplace-app-shell';
|
|
201
|
+
export * from '../patterns/payment-automation-upsell';
|
|
201
202
|
export * from '../patterns/signature-request';
|
|
202
203
|
export * from './dependent-selector';
|
|
203
204
|
export * from './document-preview';
|
|
@@ -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-BHzmUbzu.js";
|
|
2
2
|
export {
|
|
3
3
|
s as BalanceBadgeCell,
|
|
4
4
|
l as CarePlanStatusCell,
|
|
@@ -2626,6 +2626,14 @@ export declare const arUi: {
|
|
|
2626
2626
|
readonly series: "سلسلة";
|
|
2627
2627
|
readonly value: "قيمة";
|
|
2628
2628
|
};
|
|
2629
|
+
readonly typeSwitcher: {
|
|
2630
|
+
readonly label: "نوع المخطط";
|
|
2631
|
+
readonly line: "خطي";
|
|
2632
|
+
readonly bar: "أعمدة";
|
|
2633
|
+
readonly area: "مساحي";
|
|
2634
|
+
readonly pie: "دائري";
|
|
2635
|
+
readonly donut: "حلقي";
|
|
2636
|
+
};
|
|
2629
2637
|
};
|
|
2630
2638
|
readonly editor: {
|
|
2631
2639
|
readonly toolbarLabel: "تنسيق النص";
|
package/dist/i18n/locales/ar.js
CHANGED
|
@@ -2599,6 +2599,14 @@ const e = {
|
|
|
2599
2599
|
table: {
|
|
2600
2600
|
series: "سلسلة",
|
|
2601
2601
|
value: "قيمة"
|
|
2602
|
+
},
|
|
2603
|
+
typeSwitcher: {
|
|
2604
|
+
label: "نوع المخطط",
|
|
2605
|
+
line: "خطي",
|
|
2606
|
+
bar: "أعمدة",
|
|
2607
|
+
area: "مساحي",
|
|
2608
|
+
pie: "دائري",
|
|
2609
|
+
donut: "حلقي"
|
|
2602
2610
|
}
|
|
2603
2611
|
},
|
|
2604
2612
|
editor: {
|
|
@@ -2626,6 +2626,14 @@ export declare const deUi: {
|
|
|
2626
2626
|
readonly series: "Serie";
|
|
2627
2627
|
readonly value: "Wert";
|
|
2628
2628
|
};
|
|
2629
|
+
readonly typeSwitcher: {
|
|
2630
|
+
readonly label: "Diagrammtyp";
|
|
2631
|
+
readonly line: "Linie";
|
|
2632
|
+
readonly bar: "Balken";
|
|
2633
|
+
readonly area: "Fläche";
|
|
2634
|
+
readonly pie: "Kreis";
|
|
2635
|
+
readonly donut: "Ring";
|
|
2636
|
+
};
|
|
2629
2637
|
};
|
|
2630
2638
|
readonly editor: {
|
|
2631
2639
|
readonly toolbarLabel: "Textformatierung";
|
package/dist/i18n/locales/de.js
CHANGED
|
@@ -2600,6 +2600,14 @@ const e = {
|
|
|
2600
2600
|
table: {
|
|
2601
2601
|
series: "Serie",
|
|
2602
2602
|
value: "Wert"
|
|
2603
|
+
},
|
|
2604
|
+
typeSwitcher: {
|
|
2605
|
+
label: "Diagrammtyp",
|
|
2606
|
+
line: "Linie",
|
|
2607
|
+
bar: "Balken",
|
|
2608
|
+
area: "Fläche",
|
|
2609
|
+
pie: "Kreis",
|
|
2610
|
+
donut: "Ring"
|
|
2603
2611
|
}
|
|
2604
2612
|
},
|
|
2605
2613
|
editor: {
|
|
@@ -2623,6 +2623,14 @@ export declare const elUi: {
|
|
|
2623
2623
|
readonly series: "Σειρά";
|
|
2624
2624
|
readonly value: "Τιμή";
|
|
2625
2625
|
};
|
|
2626
|
+
readonly typeSwitcher: {
|
|
2627
|
+
readonly label: "Τύπος γραφήματος";
|
|
2628
|
+
readonly line: "Γραμμή";
|
|
2629
|
+
readonly bar: "Ράβδοι";
|
|
2630
|
+
readonly area: "Περιοχή";
|
|
2631
|
+
readonly pie: "Πίτα";
|
|
2632
|
+
readonly donut: "Δακτύλιος";
|
|
2633
|
+
};
|
|
2626
2634
|
};
|
|
2627
2635
|
readonly editor: {
|
|
2628
2636
|
readonly toolbarLabel: "Μορφοποίηση κειμένου";
|
package/dist/i18n/locales/el.js
CHANGED
|
@@ -2606,6 +2606,14 @@ const e = {
|
|
|
2606
2606
|
table: {
|
|
2607
2607
|
series: "Σειρά",
|
|
2608
2608
|
value: "Τιμή"
|
|
2609
|
+
},
|
|
2610
|
+
typeSwitcher: {
|
|
2611
|
+
label: "Τύπος γραφήματος",
|
|
2612
|
+
line: "Γραμμή",
|
|
2613
|
+
bar: "Ράβδοι",
|
|
2614
|
+
area: "Περιοχή",
|
|
2615
|
+
pie: "Πίτα",
|
|
2616
|
+
donut: "Δακτύλιος"
|
|
2609
2617
|
}
|
|
2610
2618
|
},
|
|
2611
2619
|
editor: {
|
|
@@ -2634,6 +2634,14 @@ export declare const enUi: {
|
|
|
2634
2634
|
readonly series: "Series";
|
|
2635
2635
|
readonly value: "Value";
|
|
2636
2636
|
};
|
|
2637
|
+
readonly typeSwitcher: {
|
|
2638
|
+
readonly label: "Chart type";
|
|
2639
|
+
readonly line: "Line";
|
|
2640
|
+
readonly bar: "Bar";
|
|
2641
|
+
readonly area: "Area";
|
|
2642
|
+
readonly pie: "Pie";
|
|
2643
|
+
readonly donut: "Donut";
|
|
2644
|
+
};
|
|
2637
2645
|
};
|
|
2638
2646
|
readonly editor: {
|
|
2639
2647
|
readonly toolbarLabel: "Text formatting";
|
package/dist/i18n/locales/en.js
CHANGED
|
@@ -2616,6 +2616,14 @@ const e = {
|
|
|
2616
2616
|
table: {
|
|
2617
2617
|
series: "Series",
|
|
2618
2618
|
value: "Value"
|
|
2619
|
+
},
|
|
2620
|
+
typeSwitcher: {
|
|
2621
|
+
label: "Chart type",
|
|
2622
|
+
line: "Line",
|
|
2623
|
+
bar: "Bar",
|
|
2624
|
+
area: "Area",
|
|
2625
|
+
pie: "Pie",
|
|
2626
|
+
donut: "Donut"
|
|
2619
2627
|
}
|
|
2620
2628
|
},
|
|
2621
2629
|
editor: {
|
|
@@ -2623,6 +2623,14 @@ export declare const esUi: {
|
|
|
2623
2623
|
readonly series: "Serie";
|
|
2624
2624
|
readonly value: "Valor";
|
|
2625
2625
|
};
|
|
2626
|
+
readonly typeSwitcher: {
|
|
2627
|
+
readonly label: "Tipo de gráfico";
|
|
2628
|
+
readonly line: "Línea";
|
|
2629
|
+
readonly bar: "Barras";
|
|
2630
|
+
readonly area: "Área";
|
|
2631
|
+
readonly pie: "Circular";
|
|
2632
|
+
readonly donut: "Anillo";
|
|
2633
|
+
};
|
|
2626
2634
|
};
|
|
2627
2635
|
readonly editor: {
|
|
2628
2636
|
readonly toolbarLabel: "Formato de texto";
|
package/dist/i18n/locales/es.js
CHANGED
|
@@ -2597,6 +2597,14 @@ const e = {
|
|
|
2597
2597
|
table: {
|
|
2598
2598
|
series: "Serie",
|
|
2599
2599
|
value: "Valor"
|
|
2600
|
+
},
|
|
2601
|
+
typeSwitcher: {
|
|
2602
|
+
label: "Tipo de gráfico",
|
|
2603
|
+
line: "Línea",
|
|
2604
|
+
bar: "Barras",
|
|
2605
|
+
area: "Área",
|
|
2606
|
+
pie: "Circular",
|
|
2607
|
+
donut: "Anillo"
|
|
2600
2608
|
}
|
|
2601
2609
|
},
|
|
2602
2610
|
editor: {
|
|
@@ -2623,6 +2623,14 @@ export declare const frUi: {
|
|
|
2623
2623
|
readonly series: "Série";
|
|
2624
2624
|
readonly value: "Valeur";
|
|
2625
2625
|
};
|
|
2626
|
+
readonly typeSwitcher: {
|
|
2627
|
+
readonly label: "Type de graphique";
|
|
2628
|
+
readonly line: "Ligne";
|
|
2629
|
+
readonly bar: "Barres";
|
|
2630
|
+
readonly area: "Aires";
|
|
2631
|
+
readonly pie: "Secteurs";
|
|
2632
|
+
readonly donut: "Anneau";
|
|
2633
|
+
};
|
|
2626
2634
|
};
|
|
2627
2635
|
readonly editor: {
|
|
2628
2636
|
readonly toolbarLabel: "Mise en forme du texte";
|
package/dist/i18n/locales/fr.js
CHANGED
|
@@ -2600,6 +2600,14 @@ const e = {
|
|
|
2600
2600
|
table: {
|
|
2601
2601
|
series: "Série",
|
|
2602
2602
|
value: "Valeur"
|
|
2603
|
+
},
|
|
2604
|
+
typeSwitcher: {
|
|
2605
|
+
label: "Type de graphique",
|
|
2606
|
+
line: "Ligne",
|
|
2607
|
+
bar: "Barres",
|
|
2608
|
+
area: "Aires",
|
|
2609
|
+
pie: "Secteurs",
|
|
2610
|
+
donut: "Anneau"
|
|
2603
2611
|
}
|
|
2604
2612
|
},
|
|
2605
2613
|
editor: {
|
|
@@ -2623,6 +2623,14 @@ export declare const hiUi: {
|
|
|
2623
2623
|
readonly series: "श्रृंखला";
|
|
2624
2624
|
readonly value: "मान";
|
|
2625
2625
|
};
|
|
2626
|
+
readonly typeSwitcher: {
|
|
2627
|
+
readonly label: "चार्ट प्रकार";
|
|
2628
|
+
readonly line: "रेखा";
|
|
2629
|
+
readonly bar: "बार";
|
|
2630
|
+
readonly area: "क्षेत्र";
|
|
2631
|
+
readonly pie: "पाई";
|
|
2632
|
+
readonly donut: "डोनट";
|
|
2633
|
+
};
|
|
2626
2634
|
};
|
|
2627
2635
|
readonly editor: {
|
|
2628
2636
|
readonly toolbarLabel: "टेक्स्ट फ़ॉर्मेटिंग";
|