@alfadocs/ui-kit 1.56.0 → 1.58.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/{address-fields-BfjxS05Z.js → address-fields-CJtu7LQU.js} +2 -2
- package/dist/_chunks/{ai-credits-notice-BoNJtOuE.js → ai-credits-notice-ktklr8fy.js} +2 -2
- package/dist/_chunks/ai-permission-notice-DyuEGwAt.js +206 -0
- package/dist/_chunks/alia-sidebar-dybRpWml.js +1284 -0
- package/dist/_chunks/{anamnesis-summary-rows-CQ-XGr0T.js → anamnesis-summary-rows-M-FUkw9p.js} +6 -6
- package/dist/_chunks/{app-frame-B-0O9CrU.js → app-frame-CqmDh2v5.js} +2 -2
- package/dist/_chunks/{appointment-peek-BIZaDeCi.js → appointment-peek-WvNbE4JG.js} +2 -2
- package/dist/_chunks/{appointment-timeline-DmqYEIT9.js → appointment-timeline-Z0494xO-.js} +2 -2
- package/dist/_chunks/{balance-badge-cell-DmDcXw0c.js → balance-badge-cell-CGoJZlKf.js} +3 -3
- package/dist/_chunks/{booking-WyNGKPE2.js → booking-CiFSAMR-.js} +4 -4
- package/dist/_chunks/{calculator-dialog-pCPWta7h.js → calculator-dialog-CzQv03p0.js} +2 -2
- package/dist/_chunks/{calendar-workspace-Du2ryaI-.js → calendar-workspace-DNHzjG7O.js} +19 -19
- package/dist/_chunks/{care-plan-card-Ddjh5Doc.js → care-plan-card-DxrRLRdW.js} +2 -2
- package/dist/_chunks/{care-plan-header-DUX_SVvF.js → care-plan-header-BMwZIgHJ.js} +2 -2
- package/dist/_chunks/{chart-HsF1KHbx.js → chart-ZMkX-Gqy.js} +338 -341
- package/dist/_chunks/{city-input-BC_nYINn.js → city-input-3J3bz9EO.js} +2 -2
- package/dist/_chunks/{clinical-note-card-14JIoUR0.js → clinical-note-card-hx939bvw.js} +2 -2
- package/dist/_chunks/{color-picker-BRQ4Y9SO.js → color-picker-BsggJovx.js} +128 -123
- package/dist/_chunks/{contact-card-CmK05vNb.js → contact-card-fHBMwEsx.js} +2 -2
- package/dist/_chunks/{contact-profile-card-Ci8lBQ6a.js → contact-profile-card-CMyBYgRR.js} +2 -2
- package/dist/_chunks/{control-room-rail-Tx2jW250.js → control-room-rail-CJ85HkS2.js} +2 -2
- package/dist/_chunks/{cycle-calculator-Dgfqr4Q4.js → cycle-calculator-Cww9DzIa.js} +2 -2
- package/dist/_chunks/dashboard-grid-Cs7cJAsA.js +933 -0
- package/dist/_chunks/{data-table-D8fuhqO1.js → data-table-Yn5xiGzs.js} +3 -3
- package/dist/_chunks/{data-table-tabs-Xhg5G0gU.js → data-table-tabs-CHYAAeHy.js} +2 -2
- package/dist/_chunks/{date-picker-wRAcq2lt.js → date-picker-BSZuKo13.js} +69 -62
- package/dist/_chunks/{date-range-picker-CtUOI38x.js → date-range-picker-CFk-5O3R.js} +176 -171
- package/dist/_chunks/{date-time-picker-CLeLKuv9.js → date-time-picker-CjxTkblD.js} +92 -85
- package/dist/_chunks/{dialog-CUzbnKLw.js → dialog-Dn-iQ0Jp.js} +2 -2
- package/dist/_chunks/{document-preview-uoTekVR7.js → document-preview-CHGGG0l_.js} +2 -2
- package/dist/_chunks/{due-date-calculator-CSjklbyw.js → due-date-calculator-D_qFUiHp.js} +2 -2
- package/dist/_chunks/{entity-summary-DcB0fIiv.js → entity-summary-CWcCSThK.js} +2 -2
- package/dist/_chunks/{face-scheme-BicuUA2K.js → face-scheme-DSKDdIsb.js} +2 -2
- package/dist/_chunks/{file-manager-Cc_uO8r2.js → file-manager-DEtkQR1F.js} +4 -4
- package/dist/_chunks/{forgot-password-form-DEx-M_QR.js → forgot-password-form-CEqOmNuX.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-DqVeJke2.js → gestational-age-calculator-CZi43xKG.js} +2 -2
- package/dist/_chunks/{hcg-doubling-BIYyI2Yo.js → hcg-doubling-Ccvh7OaU.js} +2 -2
- package/dist/_chunks/{header-settings-ge_3gYEq.js → header-settings-BMcCx2LC.js} +2 -2
- package/dist/_chunks/{heatmap-Gf9r7Tn1.js → heatmap-DiyOSQk9.js} +2 -2
- package/dist/_chunks/{help-me-write-templates-fV-Apf72.js → help-me-write-templates-CM1p6qkm.js} +3 -3
- package/dist/_chunks/{hover-card-BnTueNS2.js → hover-card-U_ZYoh1n.js} +201 -187
- package/dist/_chunks/{icon-picker-DWrqmI1c.js → icon-picker-rOFTawXk.js} +3 -3
- package/dist/_chunks/{info-tip-B0jmIt6M.js → info-tip-CJpNpzZe.js} +2 -2
- package/dist/_chunks/{kit-extensions-Byfxy6sy.js → kit-extensions-DYVxWcqv.js} +4 -4
- package/dist/_chunks/{link-cell-renderer-TeJNvymP.js → link-cell-renderer-C1wOyxDF.js} +3 -3
- package/dist/_chunks/link-gRw3NtOt.js +137 -0
- package/dist/_chunks/{list-RRN2TJ_7.js → list-CNnn7DOD.js} +75 -73
- package/dist/_chunks/{locale-picker-DfNSdOpy.js → locale-picker-BGfrZyTw.js} +2 -2
- package/dist/_chunks/{login-dev-card-DmZ1B0lB.js → login-dev-card-CIim81VB.js} +2 -2
- package/dist/_chunks/marketplace-app-shell-CSDmGLPW.js +613 -0
- package/dist/_chunks/{message-tray-BB95DA82.js → message-tray-DmU0poD7.js} +76 -69
- package/dist/_chunks/{nav-grid-BqCPH8sm.js → nav-grid-Byx8PxuB.js} +2 -2
- package/dist/_chunks/navigation-dismiss-B1mcW1CT.js +9 -0
- package/dist/_chunks/non-modal-tab-exit-j3CPOuE3.js +89 -0
- package/dist/_chunks/{note-attachment-I1NLoeRZ.js → note-attachment-Bt2cddsZ.js} +2 -2
- package/dist/_chunks/{note-timeline-CsY8YOE7.js → note-timeline-CX9nAgAR.js} +2 -2
- package/dist/_chunks/{notes-panel-DceRhthG.js → notes-panel-DHLHsxpW.js} +4 -4
- package/dist/_chunks/{notification-tray-__sJXnsz.js → notification-tray-DPU-Xg0i.js} +83 -76
- package/dist/_chunks/{panel-subview-BT-Apwgb.js → panel-subview-D4o6ar6_.js} +61 -47
- package/dist/_chunks/{patient-details-DsTtjpuX.js → patient-details-BCaVuaXz.js} +2 -2
- package/dist/_chunks/{patient-field-row-BvZ9luz-.js → patient-field-row-jcRSTrp4.js} +7 -7
- package/dist/_chunks/{patient-summary-card-9nQWTQf6.js → patient-summary-card-kQIfPQOE.js} +4 -4
- package/dist/_chunks/{payment-automation-upsell-DiHovmUL.js → payment-automation-upsell-C4wHOxsp.js} +2 -2
- package/dist/_chunks/{payment-request-card-CwDpwXUC.js → payment-request-card-DAniJNLX.js} +2 -2
- package/dist/_chunks/{pdf-viewer-C3minW5b.js → pdf-viewer-CNQxa4tv.js} +396 -391
- package/dist/_chunks/{phone-input-DxkHMYmu.js → phone-input-O9camxkq.js} +156 -151
- package/dist/_chunks/popover-BG75rYjN.js +367 -0
- package/dist/_chunks/{practice-results-Dhbo-fc_.js → practice-results-D07wgCqV.js} +2 -2
- package/dist/_chunks/{pregnancy-dating-Bfu0Cq4H.js → pregnancy-dating-BFzv9g1N.js} +2 -2
- package/dist/_chunks/{product-hub-panel-BSSiGGG4.js → product-hub-panel-DCYX0rPG.js} +103 -96
- package/dist/_chunks/{public-footer-CxpG6J1M.js → public-footer-ZWTEG1Rq.js} +2 -2
- package/dist/_chunks/{public-header.agent-pr2hyiND.js → public-header.agent-C1SlVSYt.js} +2 -2
- package/dist/_chunks/{radiograph-panel.agent-DkUokbEa.js → radiograph-panel.agent-DyqbTECc.js} +4 -4
- package/dist/_chunks/{registration-form-D7iNqMBF.js → registration-form-DrSR9Sjk.js} +4 -4
- package/dist/_chunks/{rich-text-editor-CkFfmA3v.js → rich-text-editor-UgXri8h6.js} +490 -485
- package/dist/_chunks/{scroll-area-ZtFCv9K7.js → scroll-area-CY5SLYNw.js} +104 -74
- package/dist/_chunks/{search-bar-DQJS0wJN.js → search-bar-mA4bPe3t.js} +294 -255
- package/dist/_chunks/{sheet-C7SwIxwB.js → sheet-Dtjk0CVv.js} +3 -3
- package/dist/_chunks/sidebar-D4Wllqfz.js +2029 -0
- package/dist/_chunks/{sign-document-B6HlyCGV.js → sign-document-D4iHS_Ug.js} +2 -2
- package/dist/_chunks/{signature-request-DhbpB9N9.js → signature-request-dAVgE0_5.js} +3 -3
- package/dist/_chunks/{signed-out-frame-B2GTIeqA.js → signed-out-frame-DOJpobp8.js} +3 -3
- package/dist/_chunks/{state-backed-text-input-DECQy5aA.js → state-backed-text-input-Cgh4ms3p.js} +2 -2
- package/dist/_chunks/{task-editor-ByyRu29Y.js → task-editor-BflEZmcF.js} +7 -6
- package/dist/_chunks/{tool-rail-Bwyuw_Ot.js → tool-rail-CTq1KwxW.js} +115 -114
- package/dist/_chunks/{use-appointment-details-read-JsDM48tf.js → use-appointment-details-read-izwoXh-G.js} +8 -8
- package/dist/_chunks/use-state-backed-input-DhRQo6gM.js +57 -0
- package/dist/_chunks/{voice-control-panel-Bg1eklL0.js → voice-control-panel-an-bpQfF.js} +3 -3
- package/dist/_chunks/{widget-picker-DXYBMTfe.js → widget-picker-DlJOgYrZ.js} +80 -57
- package/dist/agent-catalog.json +3 -3
- package/dist/agent-i18n/en.json +1 -1
- package/dist/components/_shared/navigation-dismiss.d.ts +8 -0
- package/dist/components/_shared/non-modal-tab-exit.d.ts +15 -4
- package/dist/components/_shared/use-state-backed-input.d.ts +3 -2
- package/dist/components/address-fields/index.js +1 -1
- package/dist/components/ai-credits-notice/index.js +1 -1
- package/dist/components/ai-permission-notice/ai-permission-notice.d.ts +32 -0
- package/dist/components/ai-permission-notice/index.d.ts +1 -1
- package/dist/components/ai-permission-notice/index.js +1 -1
- package/dist/components/app-frame/index.js +1 -1
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calculator-dialog/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-header/index.js +1 -1
- package/dist/components/chart/chart.d.ts +5 -5
- package/dist/components/chart/index.js +1 -1
- package/dist/components/city-input/index.js +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/contact-card/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/control-room-rail/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/dashboard-grid/dashboard-grid.d.ts +33 -8
- package/dist/components/dashboard-grid/index.js +1 -1
- package/dist/components/data-table/index.js +2 -2
- package/dist/components/data-table-tabs/index.js +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/hover-card/index.js +1 -1
- package/dist/components/icon-picker/index.js +1 -1
- package/dist/components/info-tip/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/link/link.d.ts +5 -3
- package/dist/components/list/index.js +1 -1
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/nav-grid/index.js +1 -1
- package/dist/components/note-timeline/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/panel-subview/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/popover.d.ts +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/public-footer/index.js +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +2 -2
- package/dist/components/scroll-area/index.js +1 -1
- package/dist/components/scroll-area/scroll-area.d.ts +6 -5
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/search-bar/search-bar.d.ts +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sidebar/index.d.ts +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/sidebar/sidebar-move.d.ts +88 -0
- package/dist/components/sidebar/sidebar.d.ts +26 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/tool-rail/index.js +1 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/components/widget-picker/index.js +1 -1
- package/dist/host-compat.css +2 -1
- package/dist/i18n/locales/ar.d.ts +24 -0
- package/dist/i18n/locales/ar.js +26 -2
- package/dist/i18n/locales/de.d.ts +24 -0
- package/dist/i18n/locales/de.js +26 -2
- package/dist/i18n/locales/el.d.ts +24 -0
- package/dist/i18n/locales/el.js +26 -2
- package/dist/i18n/locales/en.d.ts +24 -0
- package/dist/i18n/locales/en.js +26 -2
- package/dist/i18n/locales/es.d.ts +24 -0
- package/dist/i18n/locales/es.js +26 -2
- package/dist/i18n/locales/fr.d.ts +24 -0
- package/dist/i18n/locales/fr.js +26 -2
- package/dist/i18n/locales/hi.d.ts +24 -0
- package/dist/i18n/locales/hi.js +26 -2
- package/dist/i18n/locales/it.d.ts +24 -0
- package/dist/i18n/locales/it.js +26 -2
- package/dist/i18n/locales/ja.d.ts +24 -0
- package/dist/i18n/locales/ja.js +26 -2
- package/dist/i18n/locales/nl.d.ts +24 -0
- package/dist/i18n/locales/nl.js +26 -2
- package/dist/i18n/locales/pl.d.ts +24 -0
- package/dist/i18n/locales/pl.js +26 -2
- package/dist/i18n/locales/pt.d.ts +24 -0
- package/dist/i18n/locales/pt.js +26 -2
- package/dist/i18n/locales/ro.d.ts +24 -0
- package/dist/i18n/locales/ro.js +26 -2
- package/dist/i18n/locales/ru.d.ts +24 -0
- package/dist/i18n/locales/ru.js +26 -2
- package/dist/i18n/locales/sq.d.ts +24 -0
- package/dist/i18n/locales/sq.js +26 -2
- package/dist/i18n/locales/sv.d.ts +24 -0
- package/dist/i18n/locales/sv.js +26 -2
- package/dist/i18n/locales/tr.d.ts +24 -0
- package/dist/i18n/locales/tr.js +26 -2
- package/dist/i18n/locales/zh.d.ts +24 -0
- package/dist/i18n/locales/zh.js +26 -2
- package/dist/index.js +204 -203
- package/dist/locales/ar.json +26 -2
- package/dist/locales/de.json +26 -2
- package/dist/locales/el.json +26 -2
- package/dist/locales/en.json +26 -2
- package/dist/locales/es.json +26 -2
- package/dist/locales/fr.json +26 -2
- package/dist/locales/hi.json +26 -2
- package/dist/locales/it.json +26 -2
- package/dist/locales/ja.json +26 -2
- package/dist/locales/nl.json +26 -2
- package/dist/locales/pl.json +26 -2
- package/dist/locales/pt.json +26 -2
- package/dist/locales/ro.json +26 -2
- package/dist/locales/ru.json +26 -2
- package/dist/locales/sq.json +26 -2
- package/dist/locales/sv.json +26 -2
- package/dist/locales/tr.json +26 -2
- package/dist/locales/zh.json +26 -2
- package/dist/patterns/alia-assistant/alia-asteroid-icon.d.ts +10 -13
- package/dist/patterns/alia-assistant/alia-popout.d.ts +5 -3
- package/dist/patterns/alia-assistant/index.d.ts +2 -0
- package/dist/patterns/alia-assistant/index.js +6 -5
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/forgot-password-form/index.js +1 -1
- package/dist/patterns/help-me-write-templates/index.js +1 -1
- package/dist/patterns/login-form/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +40 -10
- package/dist/patterns/payment-automation-upsell/index.js +1 -1
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/signed-out-frame/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/ai-permission-notice-5vpblPCx.js +0 -171
- package/dist/_chunks/alia-sidebar-DOei4Iyu.js +0 -1183
- package/dist/_chunks/dashboard-grid-DfEY2qci.js +0 -844
- package/dist/_chunks/link-2HokYuIi.js +0 -130
- package/dist/_chunks/marketplace-app-shell-Dcx-JEjg.js +0 -541
- package/dist/_chunks/non-modal-tab-exit-D2Bd93Bq.js +0 -65
- package/dist/_chunks/popover-BI3oV3eY.js +0 -305
- package/dist/_chunks/sidebar-DLsG2AIk.js +0 -1349
- package/dist/_chunks/use-state-backed-input-C7ESmxKB.js +0 -59
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useEffect as
|
|
1
|
+
import { jsx as g, jsxs as Y } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect as le, forwardRef as Ge, useId as Ke, useMemo as x, useRef as j, useState as z, useImperativeHandle as Ue } from "react";
|
|
3
3
|
import { c as Ye } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as je } from "react-i18next";
|
|
5
5
|
import Ve from "react-apexcharts";
|
|
6
|
-
import
|
|
7
|
-
import { u as Ze, a as
|
|
6
|
+
import Oe from "apexcharts";
|
|
7
|
+
import { u as Ze, a as Xe, g as _e, b as Je, r as Qe } from "./apexcharts-theme-DNoXvgnZ.js";
|
|
8
8
|
import { u as et } from "./use-prefers-reduced-motion-BMwIQRjB.js";
|
|
9
9
|
import { c as tt } from "./compose-refs-C0k0tdqF.js";
|
|
10
10
|
import { u as rt } from "./registry-DvAUVLHh.js";
|
|
@@ -81,41 +81,41 @@ const ht = [
|
|
|
81
81
|
],
|
|
82
82
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
83
83
|
], mt = Z("donut", ht), ft = ".apexcharts-legend, .apexcharts-toolbar";
|
|
84
|
-
function
|
|
84
|
+
function ce(e, s, t) {
|
|
85
85
|
!e || e.getAttribute(s) === t || (t === null ? e.removeAttribute(s) : e.setAttribute(s, t));
|
|
86
86
|
}
|
|
87
|
-
function
|
|
88
|
-
|
|
87
|
+
function bt(e, s) {
|
|
88
|
+
le(() => {
|
|
89
89
|
if (!e) return;
|
|
90
90
|
const t = () => {
|
|
91
|
-
e.querySelectorAll(".apexcharts-canvas").forEach((
|
|
92
|
-
Array.from(
|
|
93
|
-
|
|
91
|
+
e.querySelectorAll(".apexcharts-canvas").forEach((p) => {
|
|
92
|
+
Array.from(p.children).forEach((h) => {
|
|
93
|
+
h.matches(ft) || ce(h, "aria-hidden", "true");
|
|
94
94
|
});
|
|
95
|
-
}), e.querySelectorAll(".apexcharts-toolbar").forEach((
|
|
96
|
-
var
|
|
97
|
-
const
|
|
98
|
-
|
|
99
|
-
|
|
95
|
+
}), e.querySelectorAll(".apexcharts-toolbar").forEach((p) => {
|
|
96
|
+
var m;
|
|
97
|
+
const h = ((m = p.querySelector(".apexcharts-menu-icon")) == null ? void 0 : m.getAttribute("aria-expanded")) === "true";
|
|
98
|
+
ce(
|
|
99
|
+
p.querySelector(".apexcharts-menu"),
|
|
100
100
|
"inert",
|
|
101
|
-
|
|
101
|
+
h ? null : ""
|
|
102
102
|
);
|
|
103
103
|
}), e.querySelectorAll(
|
|
104
104
|
'.apexcharts-legend-series[role="button"]'
|
|
105
|
-
).forEach((
|
|
106
|
-
|
|
107
|
-
const
|
|
108
|
-
|
|
105
|
+
).forEach((p) => {
|
|
106
|
+
ce(p, "aria-label", null);
|
|
107
|
+
const h = p.getAttribute("data:collapsed") === "true" ? "false" : "true";
|
|
108
|
+
ce(p, "aria-pressed", s ? h : null);
|
|
109
109
|
});
|
|
110
110
|
};
|
|
111
111
|
let i = 0;
|
|
112
|
-
const
|
|
113
|
-
const
|
|
114
|
-
|
|
112
|
+
const d = (p) => {
|
|
113
|
+
const h = p.target instanceof Element ? p.target.closest(".apexcharts-legend-series") : null, m = h == null ? void 0 : h.getAttribute("rel");
|
|
114
|
+
m && (cancelAnimationFrame(i), i = requestAnimationFrame(() => {
|
|
115
115
|
var l;
|
|
116
|
-
const
|
|
117
|
-
|
|
118
|
-
`.apexcharts-legend-series[rel="${CSS.escape(
|
|
116
|
+
const L = document.activeElement;
|
|
117
|
+
L && L !== document.body || (l = e.querySelector(
|
|
118
|
+
`.apexcharts-legend-series[rel="${CSS.escape(m)}"]`
|
|
119
119
|
)) == null || l.focus();
|
|
120
120
|
}));
|
|
121
121
|
};
|
|
@@ -131,12 +131,12 @@ function yt(e, s) {
|
|
|
131
131
|
"aria-pressed",
|
|
132
132
|
"aria-expanded"
|
|
133
133
|
]
|
|
134
|
-
}), e.addEventListener("click",
|
|
135
|
-
c.disconnect(), e.removeEventListener("click",
|
|
134
|
+
}), e.addEventListener("click", d), () => {
|
|
135
|
+
c.disconnect(), e.removeEventListener("click", d), cancelAnimationFrame(i);
|
|
136
136
|
};
|
|
137
137
|
}, [e, s]);
|
|
138
138
|
}
|
|
139
|
-
const
|
|
139
|
+
const yt = {
|
|
140
140
|
id: "chart",
|
|
141
141
|
// view_change backs the opt-in type switcher (`switchableTypes` prop):
|
|
142
142
|
// the same chart re-presented as line / bar / area / pie / donut.
|
|
@@ -212,7 +212,7 @@ const bt = {
|
|
|
212
212
|
role: {
|
|
213
213
|
type: "string",
|
|
214
214
|
enum: ["primary", "compare"],
|
|
215
|
-
description: "Optional. 'compare' renders this series as a secondary, colour-blind-safe overlay (e.g. the previous period) —
|
|
215
|
+
description: "Optional. 'compare' renders this series as a secondary, colour-blind-safe overlay (e.g. the previous period) — a dotted stroke in its paired primary's colour for line/area, a tinted bar with a dotted outline for bar. Omit for a normal primary series."
|
|
216
216
|
}
|
|
217
217
|
},
|
|
218
218
|
required: ["name", "data"]
|
|
@@ -277,59 +277,59 @@ const bt = {
|
|
|
277
277
|
"slantedLines",
|
|
278
278
|
"squares",
|
|
279
279
|
"circles"
|
|
280
|
-
], wt = ["line", "bar", "area"],
|
|
280
|
+
], wt = ["line", "bar", "area"], xt = ["pie", "donut", "radialBar"], Ne = [
|
|
281
281
|
"line",
|
|
282
282
|
"bar",
|
|
283
283
|
"area",
|
|
284
284
|
"pie",
|
|
285
285
|
"donut"
|
|
286
|
-
],
|
|
286
|
+
], St = {
|
|
287
287
|
line: "chart.typeSwitcher.line",
|
|
288
288
|
bar: "chart.typeSwitcher.bar",
|
|
289
289
|
area: "chart.typeSwitcher.area",
|
|
290
290
|
pie: "chart.typeSwitcher.pie",
|
|
291
291
|
donut: "chart.typeSwitcher.donut"
|
|
292
|
-
},
|
|
292
|
+
}, At = {
|
|
293
293
|
line: /* @__PURE__ */ g(dt, {}),
|
|
294
294
|
bar: /* @__PURE__ */ g(ct, {}),
|
|
295
295
|
area: /* @__PURE__ */ g(st, {}),
|
|
296
296
|
pie: /* @__PURE__ */ g(ut, {}),
|
|
297
297
|
donut: /* @__PURE__ */ g(mt, {})
|
|
298
|
-
},
|
|
299
|
-
function
|
|
298
|
+
}, Tt = 2, ze = "0 6", Ct = 5;
|
|
299
|
+
function Et(e, s) {
|
|
300
300
|
!e || s.length === 0 || e.querySelectorAll(
|
|
301
301
|
".apexcharts-bar-series > .apexcharts-series"
|
|
302
302
|
).forEach((t) => {
|
|
303
303
|
const i = Number(t.getAttribute("data:realIndex"));
|
|
304
304
|
s.includes(i) && t.querySelectorAll("path.apexcharts-bar-area").forEach(
|
|
305
|
-
(
|
|
306
|
-
if (typeof
|
|
307
|
-
const c =
|
|
308
|
-
|
|
305
|
+
(d) => {
|
|
306
|
+
if (typeof d.getBBox != "function") return;
|
|
307
|
+
const c = d.getBBox();
|
|
308
|
+
d.setAttribute(
|
|
309
309
|
"d",
|
|
310
310
|
`M ${c.x} ${c.y + c.height} L ${c.x} ${c.y} L ${c.x + c.width} ${c.y} L ${c.x + c.width} ${c.y + c.height}`
|
|
311
|
-
),
|
|
311
|
+
), d.setAttribute("stroke-dasharray", ze), d.setAttribute("stroke-linecap", "round");
|
|
312
312
|
}
|
|
313
313
|
);
|
|
314
314
|
});
|
|
315
315
|
}
|
|
316
|
-
function
|
|
316
|
+
function Be(e) {
|
|
317
317
|
const s = getComputedStyle(e), t = (i) => Number.parseFloat(s.getPropertyValue(i)) || 0;
|
|
318
318
|
return t("--min-target-size") + t("--focus-ring-offset") + t("--focus-ring-width");
|
|
319
319
|
}
|
|
320
|
-
function
|
|
321
|
-
if (i ===
|
|
320
|
+
function Me(e, s, t, i, d, c) {
|
|
321
|
+
if (i === d)
|
|
322
322
|
return {
|
|
323
323
|
effectiveSeries: e,
|
|
324
324
|
effectiveCategories: s,
|
|
325
325
|
effectiveLabels: t
|
|
326
326
|
};
|
|
327
327
|
if (!i) {
|
|
328
|
-
const
|
|
328
|
+
const m = e.filter((l) => l.role !== "compare");
|
|
329
329
|
return {
|
|
330
|
-
effectiveSeries:
|
|
330
|
+
effectiveSeries: m.map((l) => l.data.reduce((T, $) => T + $, 0)),
|
|
331
331
|
effectiveCategories: void 0,
|
|
332
|
-
effectiveLabels:
|
|
332
|
+
effectiveLabels: m.map((l) => l.name)
|
|
333
333
|
};
|
|
334
334
|
}
|
|
335
335
|
return {
|
|
@@ -338,45 +338,45 @@ function ze(e, s, t, i, p, c) {
|
|
|
338
338
|
effectiveLabels: void 0
|
|
339
339
|
};
|
|
340
340
|
}
|
|
341
|
-
function
|
|
341
|
+
function Pe({
|
|
342
342
|
themeOptions: e,
|
|
343
343
|
toolbarBand: s,
|
|
344
344
|
chartId: t,
|
|
345
345
|
toolbar: i,
|
|
346
|
-
reducedMotion:
|
|
346
|
+
reducedMotion: d,
|
|
347
347
|
toolbarLocale: c,
|
|
348
|
-
locale:
|
|
349
|
-
effectiveLabels:
|
|
350
|
-
formatValue:
|
|
351
|
-
noDataText:
|
|
348
|
+
locale: p,
|
|
349
|
+
effectiveLabels: h,
|
|
350
|
+
formatValue: m,
|
|
351
|
+
noDataText: L,
|
|
352
352
|
effectiveType: l,
|
|
353
|
-
effectiveSeries:
|
|
354
|
-
effectiveCategories:
|
|
355
|
-
isRtl:
|
|
356
|
-
patterns:
|
|
357
|
-
stacked:
|
|
358
|
-
orientation:
|
|
359
|
-
curve:
|
|
353
|
+
effectiveSeries: T,
|
|
354
|
+
effectiveCategories: $,
|
|
355
|
+
isRtl: _,
|
|
356
|
+
patterns: pe,
|
|
357
|
+
stacked: N,
|
|
358
|
+
orientation: q,
|
|
359
|
+
curve: H,
|
|
360
360
|
colors: B,
|
|
361
|
-
radialValueFormatter:
|
|
362
|
-
wrapperRef:
|
|
361
|
+
radialValueFormatter: X,
|
|
362
|
+
wrapperRef: J
|
|
363
363
|
}) {
|
|
364
|
-
var
|
|
365
|
-
const
|
|
366
|
-
(
|
|
367
|
-
),
|
|
368
|
-
...
|
|
364
|
+
var Q, ee, G, K, te, I;
|
|
365
|
+
const S = e, o = de(l) && Array.isArray(T) ? T.map((n) => n.role === "compare") : [], C = o.some(Boolean), F = C && l === "bar", O = F && T.some(
|
|
366
|
+
(n) => n.role === "compare" && n.data.some((u) => u < 0)
|
|
367
|
+
), W = F && q === "vertical" && !O, D = C ? Je() : 0.3, a = {
|
|
368
|
+
...S,
|
|
369
369
|
chart: {
|
|
370
|
-
...
|
|
370
|
+
...S.chart,
|
|
371
371
|
id: t,
|
|
372
372
|
toolbar: { show: i },
|
|
373
373
|
zoom: { enabled: i },
|
|
374
374
|
animations: {
|
|
375
|
-
enabled: !
|
|
376
|
-
dynamicAnimation: { enabled: !
|
|
375
|
+
enabled: !d,
|
|
376
|
+
dynamicAnimation: { enabled: !d }
|
|
377
377
|
},
|
|
378
378
|
locales: [c],
|
|
379
|
-
defaultLocale:
|
|
379
|
+
defaultLocale: p,
|
|
380
380
|
parentHeightOffset: 0,
|
|
381
381
|
// Keep the keyboard-operable legend; drop Apex's data-point navigation
|
|
382
382
|
// and live announcements (English-only, and the summary table covers them).
|
|
@@ -385,10 +385,10 @@ function Me({
|
|
|
385
385
|
announcements: { enabled: !1 },
|
|
386
386
|
keyboard: { enabled: !0, navigation: { enabled: !1 } }
|
|
387
387
|
},
|
|
388
|
-
// Stacking is
|
|
389
|
-
//
|
|
390
|
-
//
|
|
391
|
-
...
|
|
388
|
+
// Stacking is axis-only, so a slice or radial chart never receives it.
|
|
389
|
+
// Sent as false too: ApexCharts merges an update into its config, so
|
|
390
|
+
// leaving it out would keep an earlier `true`.
|
|
391
|
+
...de(l) ? { stacked: N } : {}
|
|
392
392
|
},
|
|
393
393
|
// Only set `labels` when the effective type actually has them (slice
|
|
394
394
|
// charts). Emitting `labels: undefined` crashes ApexCharts' bar
|
|
@@ -396,135 +396,138 @@ function Me({
|
|
|
396
396
|
// "Cannot read properties of undefined (reading 'length')", which
|
|
397
397
|
// aborts the render and leaves a blank chart. Absent is safe; area /
|
|
398
398
|
// line tolerate the undefined but bar does not, so never pass it.
|
|
399
|
-
...
|
|
399
|
+
...h ? { labels: h } : {},
|
|
400
400
|
legend: {
|
|
401
|
-
...
|
|
401
|
+
...S.legend,
|
|
402
402
|
position: "bottom",
|
|
403
403
|
// ApexCharts legend.horizontalAlign is a physical prop mapped internally
|
|
404
404
|
// to the chart's own text flow. For RTL we flip via `yaxis.opposite`
|
|
405
405
|
// and ApexCharts' own `direction: 'rtl'` handling; legend stays anchored
|
|
406
406
|
// to the inline-start by asking for 'left' on LTR and 'right' on RTL.
|
|
407
|
-
horizontalAlign:
|
|
407
|
+
horizontalAlign: _ ? "right" : "left",
|
|
408
408
|
fontFamily: "inherit",
|
|
409
409
|
// apexcharts-theme.css sizes the legend hit areas and ring room from
|
|
410
410
|
// this 4px; pinned so an ApexCharts default change cannot break them.
|
|
411
411
|
itemMargin: { horizontal: 5, vertical: 4 }
|
|
412
412
|
},
|
|
413
413
|
tooltip: {
|
|
414
|
-
...
|
|
414
|
+
...S.tooltip,
|
|
415
415
|
y: {
|
|
416
|
-
formatter: (
|
|
416
|
+
formatter: (n) => m(n)
|
|
417
417
|
}
|
|
418
418
|
},
|
|
419
419
|
noData: {
|
|
420
|
-
text:
|
|
420
|
+
text: L
|
|
421
421
|
}
|
|
422
422
|
};
|
|
423
|
-
if (i && s
|
|
424
|
-
const
|
|
425
|
-
let
|
|
426
|
-
|
|
427
|
-
if (f.role !== "compare") return
|
|
428
|
-
const
|
|
429
|
-
return
|
|
423
|
+
if (a.title = i && s ? { ...a.title, text: "", margin: s } : { ...a.title, text: void 0, margin: Ct }, B && B.length > 0 && (a.colors = B), C) {
|
|
424
|
+
const n = a.colors ?? S.colors ?? [], u = (f) => n[f % Math.max(n.length, 1)], R = T.map((f, k) => f.role === "compare" ? -1 : k).filter((f) => f >= 0);
|
|
425
|
+
let M = 0;
|
|
426
|
+
a.colors = T.map((f, k) => {
|
|
427
|
+
if (f.role !== "compare") return u(k);
|
|
428
|
+
const re = R.length ? R[Math.min(M++, R.length - 1)] : k;
|
|
429
|
+
return u(re);
|
|
430
430
|
});
|
|
431
|
-
const
|
|
432
|
-
(f,
|
|
431
|
+
const E = a.colors.map(
|
|
432
|
+
(f, k) => o[k] ? Qe(f) : f
|
|
433
433
|
);
|
|
434
|
-
|
|
435
|
-
...
|
|
434
|
+
a.legend = {
|
|
435
|
+
...a.legend,
|
|
436
436
|
markers: {
|
|
437
|
-
...((
|
|
438
|
-
fillColors:
|
|
437
|
+
...((Q = a.legend) == null ? void 0 : Q.markers) ?? {},
|
|
438
|
+
fillColors: E
|
|
439
439
|
}
|
|
440
440
|
};
|
|
441
441
|
}
|
|
442
|
-
if (
|
|
443
|
-
const
|
|
444
|
-
|
|
445
|
-
...
|
|
446
|
-
categories:
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
...E ? {
|
|
442
|
+
if (de(l)) {
|
|
443
|
+
const n = l === "bar" && q === "horizontal";
|
|
444
|
+
a.xaxis = {
|
|
445
|
+
...S.xaxis,
|
|
446
|
+
categories: $ ?? [],
|
|
447
|
+
labels: {
|
|
448
|
+
...(ee = S.xaxis) == null ? void 0 : ee.labels,
|
|
449
|
+
formatter: n ? (u) => m(Number(u)) : void 0
|
|
450
|
+
}
|
|
451
|
+
}, a.yaxis = {
|
|
452
|
+
...S.yaxis,
|
|
453
|
+
opposite: _,
|
|
454
|
+
...n ? {} : { labels: { formatter: (u) => m(u) } }
|
|
455
|
+
}, a.stroke = {
|
|
456
|
+
curve: H,
|
|
457
|
+
width: l === "bar" ? C ? o.map((u) => u ? Tt : 0) : 0 : 2,
|
|
458
|
+
...C ? {
|
|
460
459
|
lineCap: "round",
|
|
461
460
|
// Runtime accepts a string dash; the published types say
|
|
462
461
|
// `number` → one documented cast. `'0 6'` + round cap ⇒ dots.
|
|
463
462
|
dashArray: o.map(
|
|
464
|
-
(
|
|
463
|
+
(u) => u ? ze : 0
|
|
465
464
|
)
|
|
466
465
|
} : {}
|
|
467
|
-
},
|
|
466
|
+
}, a.dataLabels = { enabled: !1 };
|
|
468
467
|
}
|
|
469
|
-
if (l === "radialBar" &&
|
|
470
|
-
const
|
|
471
|
-
|
|
472
|
-
...
|
|
468
|
+
if (l === "radialBar" && X) {
|
|
469
|
+
const n = S.plotOptions ?? {};
|
|
470
|
+
a.plotOptions = {
|
|
471
|
+
...n,
|
|
473
472
|
radialBar: {
|
|
474
|
-
...
|
|
473
|
+
...n.radialBar ?? {},
|
|
475
474
|
dataLabels: {
|
|
476
|
-
...((
|
|
475
|
+
...((G = n.radialBar) == null ? void 0 : G.dataLabels) ?? {},
|
|
477
476
|
value: {
|
|
478
|
-
...((
|
|
479
|
-
formatter: (
|
|
477
|
+
...((te = (K = n.radialBar) == null ? void 0 : K.dataLabels) == null ? void 0 : te.value) ?? {},
|
|
478
|
+
formatter: (u) => X(Number(u))
|
|
480
479
|
}
|
|
481
480
|
}
|
|
482
481
|
}
|
|
483
482
|
};
|
|
484
483
|
}
|
|
485
|
-
if (l === "bar"
|
|
486
|
-
const
|
|
487
|
-
|
|
488
|
-
...
|
|
489
|
-
bar: {
|
|
484
|
+
if (l === "bar") {
|
|
485
|
+
const n = S.plotOptions ?? {};
|
|
486
|
+
a.plotOptions = {
|
|
487
|
+
...n,
|
|
488
|
+
bar: {
|
|
489
|
+
...n.bar ?? {},
|
|
490
|
+
horizontal: q === "horizontal"
|
|
491
|
+
}
|
|
490
492
|
};
|
|
491
493
|
}
|
|
492
|
-
if (
|
|
493
|
-
type:
|
|
494
|
-
opacity:
|
|
495
|
-
(
|
|
494
|
+
if (pe ? a.fill = {
|
|
495
|
+
type: C ? o.map((n) => n ? "solid" : "pattern") : "pattern",
|
|
496
|
+
opacity: C ? o.map(
|
|
497
|
+
(n) => n ? D : l === "area" ? 0.3 : 1
|
|
496
498
|
) : l === "area" ? 0.3 : 1,
|
|
497
499
|
pattern: {
|
|
498
500
|
style: [...vt],
|
|
499
501
|
strokeWidth: 2
|
|
500
502
|
}
|
|
501
|
-
} :
|
|
503
|
+
} : F ? a.fill = {
|
|
502
504
|
type: "solid",
|
|
503
|
-
opacity: o.map((
|
|
504
|
-
} : l === "area" && (
|
|
505
|
+
opacity: o.map((n) => n ? D : 1)
|
|
506
|
+
} : l === "area" && (a.fill = C ? {
|
|
505
507
|
type: "gradient",
|
|
506
|
-
opacity: o.map((
|
|
508
|
+
opacity: o.map((n) => n ? D : 0.3)
|
|
507
509
|
} : {
|
|
508
510
|
type: "gradient",
|
|
509
511
|
opacity: 0.3
|
|
510
|
-
}),
|
|
511
|
-
const
|
|
512
|
-
|
|
513
|
-
...
|
|
512
|
+
}), W) {
|
|
513
|
+
const n = o.map((M, E) => M ? E : -1).filter((M) => M >= 0), u = () => Et(J.current, n), R = () => typeof requestAnimationFrame == "function" ? requestAnimationFrame(u) : u();
|
|
514
|
+
a.chart = {
|
|
515
|
+
...a.chart,
|
|
514
516
|
events: {
|
|
515
|
-
...((
|
|
516
|
-
mounted: () =>
|
|
517
|
-
updated: () =>
|
|
518
|
-
animationEnd: () =>
|
|
517
|
+
...((I = a.chart) == null ? void 0 : I.events) ?? {},
|
|
518
|
+
mounted: () => R(),
|
|
519
|
+
updated: () => R(),
|
|
520
|
+
animationEnd: () => u()
|
|
519
521
|
}
|
|
520
522
|
};
|
|
521
523
|
}
|
|
522
|
-
return
|
|
524
|
+
return kt(a, l);
|
|
523
525
|
}
|
|
524
|
-
function
|
|
525
|
-
var
|
|
526
|
-
if (!
|
|
527
|
-
const t = (
|
|
526
|
+
function kt(e, s) {
|
|
527
|
+
var i, d, c, p, h, m;
|
|
528
|
+
if (!de(s)) return e;
|
|
529
|
+
const t = (i = e.chart) == null ? void 0 : i.events;
|
|
530
|
+
return {
|
|
528
531
|
...e,
|
|
529
532
|
colors: e.colors,
|
|
530
533
|
chart: {
|
|
@@ -535,29 +538,29 @@ function Et(e, s) {
|
|
|
535
538
|
updated: t == null ? void 0 : t.updated,
|
|
536
539
|
animationEnd: t == null ? void 0 : t.animationEnd
|
|
537
540
|
}
|
|
538
|
-
}
|
|
539
|
-
};
|
|
540
|
-
return ((c = e.stroke) == null ? void 0 : c.dashArray) !== void 0 ? i : {
|
|
541
|
-
...i,
|
|
541
|
+
},
|
|
542
542
|
stroke: {
|
|
543
543
|
...e.stroke,
|
|
544
|
-
lineCap: s === "bar" ? "square" : "butt",
|
|
545
|
-
dashArray: 0
|
|
544
|
+
lineCap: ((d = e.stroke) == null ? void 0 : d.lineCap) ?? (s === "bar" ? "square" : "butt"),
|
|
545
|
+
dashArray: ((c = e.stroke) == null ? void 0 : c.dashArray) ?? 0
|
|
546
546
|
},
|
|
547
547
|
legend: {
|
|
548
548
|
...e.legend,
|
|
549
|
-
markers: {
|
|
549
|
+
markers: {
|
|
550
|
+
...(p = e.legend) == null ? void 0 : p.markers,
|
|
551
|
+
fillColors: (m = (h = e.legend) == null ? void 0 : h.markers) == null ? void 0 : m.fillColors
|
|
552
|
+
}
|
|
550
553
|
},
|
|
551
554
|
fill: e.fill ?? { type: "solid", opacity: 0.85 }
|
|
552
555
|
};
|
|
553
556
|
}
|
|
554
557
|
function V(e) {
|
|
555
|
-
return
|
|
558
|
+
return xt.includes(e);
|
|
556
559
|
}
|
|
557
|
-
function
|
|
560
|
+
function de(e) {
|
|
558
561
|
return wt.includes(e);
|
|
559
562
|
}
|
|
560
|
-
function
|
|
563
|
+
function It(e, s) {
|
|
561
564
|
return V(s) ? [
|
|
562
565
|
{
|
|
563
566
|
name: "",
|
|
@@ -571,177 +574,171 @@ const Rt = Ge(
|
|
|
571
574
|
id: s,
|
|
572
575
|
type: t,
|
|
573
576
|
series: i,
|
|
574
|
-
categories:
|
|
577
|
+
categories: d,
|
|
575
578
|
labels: c,
|
|
576
|
-
height:
|
|
577
|
-
width:
|
|
578
|
-
patterns:
|
|
579
|
-
stacked:
|
|
579
|
+
height: p,
|
|
580
|
+
width: h,
|
|
581
|
+
patterns: m = !1,
|
|
582
|
+
stacked: L = !1,
|
|
580
583
|
orientation: l = "vertical",
|
|
581
|
-
curve:
|
|
582
|
-
colors:
|
|
583
|
-
toolbar:
|
|
584
|
-
locale:
|
|
585
|
-
radialValueFormatter:
|
|
586
|
-
valueFormatter:
|
|
587
|
-
switchableTypes:
|
|
584
|
+
curve: T = "smooth",
|
|
585
|
+
colors: $,
|
|
586
|
+
toolbar: _ = !1,
|
|
587
|
+
locale: pe,
|
|
588
|
+
radialValueFormatter: N,
|
|
589
|
+
valueFormatter: q,
|
|
590
|
+
switchableTypes: H,
|
|
588
591
|
onTypeChange: B,
|
|
589
|
-
density:
|
|
590
|
-
className:
|
|
591
|
-
},
|
|
592
|
-
const { t: o, i18n:
|
|
593
|
-
() => `chart-${
|
|
594
|
-
[
|
|
595
|
-
),
|
|
596
|
-
() => tt(
|
|
592
|
+
density: X,
|
|
593
|
+
className: J
|
|
594
|
+
}, S) => {
|
|
595
|
+
const { t: o, i18n: C } = je("ui"), F = Ke(), O = x(
|
|
596
|
+
() => `chart-${F.replace(/[^a-zA-Z0-9-_]/g, "")}`,
|
|
597
|
+
[F]
|
|
598
|
+
), W = `${O}-summary`, D = j(null), [a, Q] = z(null), ee = x(
|
|
599
|
+
() => tt(D, Q),
|
|
597
600
|
[]
|
|
598
|
-
),
|
|
599
|
-
Ze(
|
|
600
|
-
const
|
|
601
|
+
), G = x(() => ({ current: a }), [a]), [K, te] = z(0);
|
|
602
|
+
Ze(G), Xe(G);
|
|
603
|
+
const I = pe ?? C.language ?? "en", [n, u] = z(() => {
|
|
601
604
|
try {
|
|
602
605
|
return _e();
|
|
603
606
|
} catch {
|
|
604
607
|
return {};
|
|
605
608
|
}
|
|
606
609
|
});
|
|
607
|
-
|
|
610
|
+
le(() => {
|
|
608
611
|
if (typeof document > "u") return;
|
|
609
|
-
let
|
|
610
|
-
const
|
|
611
|
-
clearTimeout(
|
|
612
|
+
let r;
|
|
613
|
+
const y = new MutationObserver(() => {
|
|
614
|
+
clearTimeout(r), r = setTimeout(() => {
|
|
612
615
|
try {
|
|
613
|
-
|
|
616
|
+
u(_e());
|
|
614
617
|
} catch {
|
|
615
618
|
}
|
|
616
619
|
}, 50);
|
|
617
620
|
});
|
|
618
|
-
return
|
|
621
|
+
return y.observe(document.documentElement, {
|
|
619
622
|
attributes: !0,
|
|
620
623
|
attributeFilter: ["class"]
|
|
621
624
|
}), () => {
|
|
622
|
-
clearTimeout(
|
|
625
|
+
clearTimeout(r), y.disconnect();
|
|
623
626
|
};
|
|
624
627
|
}, []);
|
|
625
|
-
const [
|
|
626
|
-
() => typeof document > "u" ? 0 :
|
|
628
|
+
const [R, M] = z(
|
|
629
|
+
() => typeof document > "u" ? 0 : Be(document.documentElement)
|
|
627
630
|
);
|
|
628
|
-
|
|
629
|
-
if (!
|
|
630
|
-
const
|
|
631
|
-
const w =
|
|
632
|
-
w &&
|
|
633
|
-
Math.max(
|
|
631
|
+
le(() => {
|
|
632
|
+
if (!a || !_) return;
|
|
633
|
+
const r = new ResizeObserver(() => y()), y = () => {
|
|
634
|
+
const w = a.querySelector(".apexcharts-toolbar");
|
|
635
|
+
w && r.observe(w), M(
|
|
636
|
+
Math.max(Be(a), (w == null ? void 0 : w.offsetHeight) ?? 0)
|
|
634
637
|
);
|
|
635
638
|
};
|
|
636
|
-
|
|
637
|
-
const
|
|
638
|
-
for (let w =
|
|
639
|
-
|
|
640
|
-
const
|
|
639
|
+
y();
|
|
640
|
+
const v = new MutationObserver(y);
|
|
641
|
+
for (let w = a.parentElement; w; w = w.parentElement)
|
|
642
|
+
v.observe(w, { attributes: !0, attributeFilter: ["class"] });
|
|
643
|
+
const A = new MutationObserver((w) => {
|
|
641
644
|
w.flatMap((U) => [...U.addedNodes]).some(
|
|
642
645
|
(U) => U instanceof Element && (U.matches(".apexcharts-toolbar") || U.querySelector(".apexcharts-toolbar"))
|
|
643
|
-
) &&
|
|
646
|
+
) && y();
|
|
644
647
|
});
|
|
645
|
-
return
|
|
646
|
-
|
|
648
|
+
return A.observe(a, { childList: !0, subtree: !0 }), () => {
|
|
649
|
+
r.disconnect(), v.disconnect(), A.disconnect();
|
|
647
650
|
};
|
|
648
|
-
}, [
|
|
649
|
-
const
|
|
650
|
-
if (!
|
|
651
|
-
const
|
|
652
|
-
const
|
|
653
|
-
|
|
651
|
+
}, [a, _]), le(() => {
|
|
652
|
+
const r = a;
|
|
653
|
+
if (!r || typeof ResizeObserver > "u") return;
|
|
654
|
+
const y = new ResizeObserver((v) => {
|
|
655
|
+
const A = v[0];
|
|
656
|
+
A && te(Math.floor(A.contentRect.width));
|
|
654
657
|
});
|
|
655
|
-
return
|
|
656
|
-
}, [
|
|
657
|
-
const
|
|
658
|
-
if (
|
|
659
|
-
const
|
|
660
|
-
(
|
|
658
|
+
return y.observe(r), () => y.disconnect();
|
|
659
|
+
}, [a]);
|
|
660
|
+
const E = x(() => {
|
|
661
|
+
if (!H || H.length === 0) return [];
|
|
662
|
+
const r = H.filter(
|
|
663
|
+
(v) => Ne.includes(v)
|
|
661
664
|
);
|
|
662
|
-
if (!
|
|
665
|
+
if (!Ne.includes(t))
|
|
663
666
|
return [];
|
|
664
|
-
const
|
|
665
|
-
return [...new Set(
|
|
666
|
-
}, [
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
667
|
+
const y = r.includes(t) ? r : [t, ...r];
|
|
668
|
+
return [...new Set(y)];
|
|
669
|
+
}, [H, t]), f = E.length >= 2, [k, re] = z(null), b = f && k && E.includes(k) ? k : t;
|
|
670
|
+
bt(
|
|
671
|
+
a,
|
|
672
|
+
b !== "pie" && b !== "donut"
|
|
670
673
|
);
|
|
671
|
-
const
|
|
672
|
-
|
|
673
|
-
const
|
|
674
|
+
const ue = V(t), he = V(b), [ae, fe] = z(null), [be, $e] = z(i);
|
|
675
|
+
be !== i && ($e(i), ae && fe(null));
|
|
676
|
+
const ye = ae && ae.base === i && be === i ? ae.next : i, ge = j(i);
|
|
674
677
|
ge.current = i;
|
|
675
|
-
const { effectiveSeries:
|
|
676
|
-
() =>
|
|
677
|
-
|
|
678
|
-
|
|
678
|
+
const { effectiveSeries: P, effectiveCategories: ne, effectiveLabels: oe } = x(
|
|
679
|
+
() => Me(
|
|
680
|
+
ye,
|
|
681
|
+
d,
|
|
679
682
|
c,
|
|
680
|
-
pe,
|
|
681
683
|
ue,
|
|
684
|
+
he,
|
|
682
685
|
o("chart.table.value")
|
|
683
686
|
),
|
|
684
|
-
[
|
|
685
|
-
), ve = (
|
|
686
|
-
|
|
687
|
-
|
|
687
|
+
[ye, d, c, ue, he, o]
|
|
688
|
+
), ve = (r) => Me(
|
|
689
|
+
r,
|
|
690
|
+
d,
|
|
688
691
|
c,
|
|
689
|
-
pe,
|
|
690
692
|
ue,
|
|
693
|
+
he,
|
|
691
694
|
o("chart.table.value")
|
|
692
695
|
), we = j(ve);
|
|
693
696
|
we.current = ve;
|
|
694
|
-
const
|
|
697
|
+
const xe = j(Promise.resolve()), me = x(
|
|
695
698
|
() => ({
|
|
696
699
|
async dataURI() {
|
|
697
|
-
await
|
|
698
|
-
const
|
|
699
|
-
return
|
|
700
|
+
await xe.current;
|
|
701
|
+
const r = Oe.getChartByID(O);
|
|
702
|
+
return r ? (await r.dataURI()).imgURI : "";
|
|
700
703
|
},
|
|
701
|
-
updateSeries(
|
|
702
|
-
fe({ base: ge.current, next:
|
|
703
|
-
const
|
|
704
|
-
if (!
|
|
705
|
-
const
|
|
706
|
-
|
|
707
|
-
{
|
|
708
|
-
...Et(
|
|
709
|
-
Me(T),
|
|
710
|
-
T.effectiveType
|
|
711
|
-
),
|
|
712
|
-
series: b.effectiveSeries
|
|
713
|
-
},
|
|
704
|
+
updateSeries(r) {
|
|
705
|
+
fe({ base: ge.current, next: r });
|
|
706
|
+
const y = Oe.getChartByID(O);
|
|
707
|
+
if (!y) return;
|
|
708
|
+
const v = we.current(r), A = { ...Ie.current, ...v };
|
|
709
|
+
xe.current = y.updateOptions(
|
|
710
|
+
{ ...Pe(A), series: v.effectiveSeries },
|
|
714
711
|
!1,
|
|
715
712
|
!0
|
|
716
713
|
).catch(() => {
|
|
717
714
|
});
|
|
718
715
|
},
|
|
719
|
-
setType(
|
|
720
|
-
return !
|
|
716
|
+
setType(r) {
|
|
717
|
+
return !f || !E.includes(r) ? !1 : (re(r), !0);
|
|
721
718
|
},
|
|
722
719
|
getTypeState() {
|
|
723
720
|
return {
|
|
724
721
|
declaredType: t,
|
|
725
|
-
effectiveType:
|
|
726
|
-
availableTypes:
|
|
722
|
+
effectiveType: b,
|
|
723
|
+
availableTypes: f ? [...E] : []
|
|
727
724
|
};
|
|
728
725
|
}
|
|
729
726
|
}),
|
|
730
|
-
[
|
|
727
|
+
[O, t, b, f, E]
|
|
731
728
|
);
|
|
732
|
-
Ue(
|
|
733
|
-
const
|
|
734
|
-
() =>
|
|
735
|
-
[
|
|
736
|
-
),
|
|
737
|
-
() => new Intl.NumberFormat(
|
|
738
|
-
[
|
|
739
|
-
),
|
|
740
|
-
() =>
|
|
741
|
-
[
|
|
729
|
+
Ue(S, () => me, [me]), rt(yt, me, s);
|
|
730
|
+
const Se = typeof document < "u" && document.documentElement.dir === "rtl", Ae = x(
|
|
731
|
+
() => It(P, b),
|
|
732
|
+
[P, b]
|
|
733
|
+
), Te = x(
|
|
734
|
+
() => new Intl.NumberFormat(I),
|
|
735
|
+
[I]
|
|
736
|
+
), se = x(
|
|
737
|
+
() => q ?? ((r) => Te.format(r)),
|
|
738
|
+
[q, Te]
|
|
742
739
|
), Ce = x(
|
|
743
740
|
() => ({
|
|
744
|
-
name:
|
|
741
|
+
name: I,
|
|
745
742
|
options: {
|
|
746
743
|
toolbar: {
|
|
747
744
|
download: o("chart.toolbar.download"),
|
|
@@ -759,117 +756,117 @@ const Rt = Ge(
|
|
|
759
756
|
}
|
|
760
757
|
}
|
|
761
758
|
}),
|
|
762
|
-
[
|
|
763
|
-
), Ee = et(), ke = o("chart.noData"),
|
|
759
|
+
[I, o]
|
|
760
|
+
), Ee = et(), ke = o("chart.noData"), ie = x(
|
|
764
761
|
() => ({
|
|
765
|
-
themeOptions:
|
|
766
|
-
toolbarBand:
|
|
767
|
-
chartId:
|
|
768
|
-
toolbar:
|
|
762
|
+
themeOptions: n,
|
|
763
|
+
toolbarBand: R,
|
|
764
|
+
chartId: O,
|
|
765
|
+
toolbar: _,
|
|
769
766
|
reducedMotion: Ee,
|
|
770
767
|
toolbarLocale: Ce,
|
|
771
|
-
locale:
|
|
772
|
-
effectiveLabels:
|
|
773
|
-
formatValue:
|
|
768
|
+
locale: I,
|
|
769
|
+
effectiveLabels: oe,
|
|
770
|
+
formatValue: se,
|
|
774
771
|
noDataText: ke,
|
|
775
|
-
effectiveType:
|
|
776
|
-
effectiveSeries:
|
|
777
|
-
effectiveCategories:
|
|
778
|
-
isRtl:
|
|
779
|
-
patterns:
|
|
780
|
-
stacked:
|
|
772
|
+
effectiveType: b,
|
|
773
|
+
effectiveSeries: P,
|
|
774
|
+
effectiveCategories: ne,
|
|
775
|
+
isRtl: Se,
|
|
776
|
+
patterns: m,
|
|
777
|
+
stacked: L,
|
|
781
778
|
orientation: l,
|
|
782
|
-
curve:
|
|
783
|
-
colors:
|
|
784
|
-
radialValueFormatter:
|
|
785
|
-
wrapperRef:
|
|
779
|
+
curve: T,
|
|
780
|
+
colors: $,
|
|
781
|
+
radialValueFormatter: N,
|
|
782
|
+
wrapperRef: D
|
|
786
783
|
}),
|
|
787
784
|
[
|
|
788
|
-
|
|
789
|
-
O,
|
|
785
|
+
n,
|
|
790
786
|
R,
|
|
791
|
-
|
|
787
|
+
O,
|
|
788
|
+
_,
|
|
792
789
|
Ee,
|
|
793
790
|
Ce,
|
|
794
|
-
|
|
795
|
-
ne,
|
|
791
|
+
I,
|
|
796
792
|
oe,
|
|
793
|
+
se,
|
|
797
794
|
ke,
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
795
|
+
b,
|
|
796
|
+
P,
|
|
797
|
+
ne,
|
|
798
|
+
Se,
|
|
799
|
+
m,
|
|
800
|
+
L,
|
|
804
801
|
l,
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
802
|
+
T,
|
|
803
|
+
$,
|
|
804
|
+
N
|
|
808
805
|
]
|
|
809
806
|
), qe = x(
|
|
810
|
-
() =>
|
|
811
|
-
[
|
|
812
|
-
),
|
|
813
|
-
|
|
814
|
-
const He =
|
|
815
|
-
const
|
|
816
|
-
return /* @__PURE__ */
|
|
807
|
+
() => Pe(ie),
|
|
808
|
+
[ie]
|
|
809
|
+
), Ie = j(ie);
|
|
810
|
+
Ie.current = ie;
|
|
811
|
+
const He = h ?? (K > 0 ? K : "100%"), Fe = p ?? 320, De = x(() => {
|
|
812
|
+
const r = V(b) ? oe ?? [] : ne ?? [], y = Ae;
|
|
813
|
+
return /* @__PURE__ */ g("div", { className: "ds:sr-only", children: /* @__PURE__ */ Y("table", { id: W, children: [
|
|
817
814
|
/* @__PURE__ */ g("caption", { children: e }),
|
|
818
815
|
/* @__PURE__ */ g("thead", { children: /* @__PURE__ */ Y("tr", { children: [
|
|
819
816
|
/* @__PURE__ */ g("th", { scope: "col", children: o("chart.table.series") }),
|
|
820
|
-
|
|
817
|
+
r.map((v, A) => /* @__PURE__ */ g("th", { scope: "col", children: v }, `${v}-${A}`))
|
|
821
818
|
] }) }),
|
|
822
|
-
/* @__PURE__ */ g("tbody", { children:
|
|
823
|
-
/* @__PURE__ */ g("th", { scope: "row", children:
|
|
824
|
-
|
|
825
|
-
] }, `${
|
|
826
|
-
] });
|
|
819
|
+
/* @__PURE__ */ g("tbody", { children: y.map((v, A) => /* @__PURE__ */ Y("tr", { children: [
|
|
820
|
+
/* @__PURE__ */ g("th", { scope: "row", children: v.name || o("chart.table.value") }),
|
|
821
|
+
v.data.map((w, Le) => /* @__PURE__ */ g("td", { children: b === "radialBar" && N ? N(w) : se(w) }, `${A}-${Le}`))
|
|
822
|
+
] }, `${v.name}-${A}`)) })
|
|
823
|
+
] }) });
|
|
827
824
|
}, [
|
|
828
|
-
|
|
829
|
-
|
|
825
|
+
b,
|
|
826
|
+
Ae,
|
|
827
|
+
oe,
|
|
830
828
|
ne,
|
|
831
|
-
|
|
832
|
-
F,
|
|
829
|
+
W,
|
|
833
830
|
e,
|
|
834
831
|
o,
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
]), We = x(() => (V(
|
|
832
|
+
se,
|
|
833
|
+
N
|
|
834
|
+
]), We = x(() => (V(b), P), [P, b]), Re = /* @__PURE__ */ Y(
|
|
838
835
|
"div",
|
|
839
836
|
{
|
|
840
837
|
ref: ee,
|
|
841
838
|
role: "figure",
|
|
842
839
|
"aria-label": e,
|
|
843
|
-
"aria-describedby":
|
|
840
|
+
"aria-describedby": W,
|
|
844
841
|
className: gt({
|
|
845
842
|
// Explicit height wins over the density min-height unless the
|
|
846
843
|
// caller also asked for a density explicitly.
|
|
847
|
-
density:
|
|
848
|
-
className:
|
|
844
|
+
density: X ?? (p !== void 0 ? "none" : void 0),
|
|
845
|
+
className: f ? void 0 : J
|
|
849
846
|
}),
|
|
850
|
-
...
|
|
847
|
+
...f ? {} : { "data-component": "chart", "data-component-id": s },
|
|
851
848
|
children: [
|
|
852
849
|
De,
|
|
853
850
|
/* @__PURE__ */ g(
|
|
854
851
|
Ve,
|
|
855
852
|
{
|
|
856
|
-
type:
|
|
853
|
+
type: b,
|
|
857
854
|
series: We,
|
|
858
855
|
options: qe,
|
|
859
856
|
width: He,
|
|
860
857
|
height: Fe
|
|
861
858
|
},
|
|
862
|
-
|
|
859
|
+
b
|
|
863
860
|
)
|
|
864
861
|
]
|
|
865
862
|
}
|
|
866
863
|
);
|
|
867
|
-
return
|
|
864
|
+
return f ? /* @__PURE__ */ Y(
|
|
868
865
|
"div",
|
|
869
866
|
{
|
|
870
867
|
"data-component": "chart",
|
|
871
868
|
"data-component-id": s,
|
|
872
|
-
className: `ds:block ds:w-full ${
|
|
869
|
+
className: `ds:block ds:w-full ${J ?? ""}`.trim(),
|
|
873
870
|
children: [
|
|
874
871
|
/* @__PURE__ */ g("div", { className: "ds:mb-[var(--spacing-xs)] ds:flex ds:justify-end", children: /* @__PURE__ */ g(
|
|
875
872
|
nt,
|
|
@@ -878,32 +875,32 @@ const Rt = Ge(
|
|
|
878
875
|
mode: "toggle-single",
|
|
879
876
|
size: "sm",
|
|
880
877
|
"aria-label": o("chart.typeSwitcher.label"),
|
|
881
|
-
value:
|
|
882
|
-
onValueChange: (
|
|
883
|
-
|
|
878
|
+
value: b,
|
|
879
|
+
onValueChange: (r) => {
|
|
880
|
+
r !== b && (re(r), B == null || B(r));
|
|
884
881
|
},
|
|
885
|
-
children:
|
|
882
|
+
children: E.map((r) => /* @__PURE__ */ g(
|
|
886
883
|
at,
|
|
887
884
|
{
|
|
888
|
-
value:
|
|
885
|
+
value: r,
|
|
889
886
|
type: "button",
|
|
890
|
-
icon:
|
|
891
|
-
"aria-label": o(
|
|
887
|
+
icon: At[r],
|
|
888
|
+
"aria-label": o(St[r])
|
|
892
889
|
},
|
|
893
|
-
|
|
890
|
+
r
|
|
894
891
|
))
|
|
895
892
|
}
|
|
896
893
|
) }),
|
|
897
|
-
|
|
894
|
+
Re
|
|
898
895
|
]
|
|
899
896
|
}
|
|
900
|
-
) :
|
|
897
|
+
) : Re;
|
|
901
898
|
}
|
|
902
899
|
);
|
|
903
900
|
Rt.displayName = "Chart";
|
|
904
901
|
export {
|
|
905
902
|
Rt as C,
|
|
906
903
|
gt as a,
|
|
907
|
-
|
|
904
|
+
yt as c
|
|
908
905
|
};
|
|
909
|
-
//# sourceMappingURL=chart-
|
|
906
|
+
//# sourceMappingURL=chart-ZMkX-Gqy.js.map
|