@alfadocs/ui-kit 1.139.0 → 1.141.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/{anamnesis-summary-rows-BgfBnjp0.js → anamnesis-summary-rows-YJGs2uWD.js} +2 -2
- package/dist/_chunks/{appointment-card-CaxFXtSn.js → appointment-card-r0OZm77v.js} +170 -168
- package/dist/_chunks/appointment-timeline-Bs-rTMzi.js +689 -0
- package/dist/_chunks/{appointment-tray-DPpeR9JT.js → appointment-tray-t_ltp-Yi.js} +2 -2
- package/dist/_chunks/{balance-badge-cell-CRrIv2hy.js → balance-badge-cell-CRStPNDd.js} +2 -2
- package/dist/_chunks/{bill-line-table-DCqxhode.js → bill-line-table-DTqXdBED.js} +2 -2
- package/dist/_chunks/{bmi-calculator-rri5vvMt.js → bmi-calculator-rq3ZsKp0.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-GdnaPIOV.js → calendar-appointment-editor-dialog-CuXpgLCw.js} +5 -5
- package/dist/_chunks/{calendar-waiting-list-panel-CkZBAv_E.js → calendar-waiting-list-panel-BNQrUndD.js} +2 -2
- package/dist/_chunks/{calendar.sheets-B0jP2Yt0.js → calendar.sheets-DcW8A3DI.js} +3 -3
- package/dist/_chunks/calls-panel-CJNQm7r8.js +1446 -0
- package/dist/_chunks/{cycle-calculator-WFhMfJHt.js → cycle-calculator-Cb66X2Pf.js} +2 -2
- package/dist/_chunks/{data-grid-bQ6iFm10.js → data-grid-CRUSZcVT.js} +2 -2
- package/dist/_chunks/{default-tabs-Dm_vk6hd.js → default-tabs-CRbVCDSU.js} +3 -3
- package/dist/_chunks/{due-date-calculator-CALlODZe.js → due-date-calculator-Dlqegxx9.js} +2 -2
- package/dist/_chunks/{fetal-weight-D0KofJJw.js → fetal-weight-DWj-_ME8.js} +2 -2
- package/dist/_chunks/{hcg-doubling-Dhdt3Jyd.js → hcg-doubling-Dqbj6PQj.js} +2 -2
- package/dist/_chunks/{invoice-upload-list-Dz3CXHPP.js → invoice-upload-list-BR6vycF7.js} +3 -3
- package/dist/_chunks/{kit-extensions-BB_ksnVl.js → kit-extensions-QddOSnIq.js} +6 -6
- package/dist/_chunks/{link-cell-renderer-CSA0KKPe.js → link-cell-renderer-hAJplRFF.js} +2 -2
- package/dist/_chunks/medication-line-BohqbCYD.js +238 -0
- package/dist/_chunks/{notes-panel-CnmQqhwq.js → notes-panel-C4HSUudf.js} +2 -2
- package/dist/_chunks/{number-input-DUSvP7Dq.js → number-input-Bi5Yk6PX.js} +135 -133
- package/dist/_chunks/{optical-prescription-C4jpDFOE.js → optical-prescription-GzeK_2cf.js} +2 -2
- package/dist/_chunks/{patient-account-settings-DfEPHmCh.js → patient-account-settings-nSvNKKOL.js} +2 -2
- package/dist/_chunks/{patient-check-in-resume-TWs8CPQr.js → patient-check-in-resume-Cj2wg_NQ.js} +4 -4
- package/dist/_chunks/{patient-details-DQTxSWY4.js → patient-details-D0PjzALT.js} +2 -2
- package/dist/_chunks/{patient-field-row-CXuWQeQJ.js → patient-field-row-DlpIModg.js} +2 -2
- package/dist/_chunks/{patient-summary-card-j5u7c5Us.js → patient-summary-card-BP_K7g_q.js} +2 -2
- package/dist/_chunks/{portal-details-VfeOI4PB.js → portal-details-Cnyqf9kY.js} +2 -2
- package/dist/_chunks/{portal-documents-hGHlwmbv.js → portal-documents-g109Dl0O.js} +2 -2
- package/dist/_chunks/{portal-parts-C99CreYO.js → portal-parts-DgDFuED8.js} +2 -2
- package/dist/_chunks/{pregnancy-dating-C-3NLI6K.js → pregnancy-dating-a6WIg4oy.js} +2 -2
- package/dist/_chunks/{pregnancy-weight-gain-DkGcEc_l.js → pregnancy-weight-gain-DmrVHk9y.js} +2 -2
- package/dist/_chunks/prescription-history-Bp_JHhdF.js +1719 -0
- package/dist/_chunks/{print-sheet-CSeqkM3_.js → print-sheet-gaxObGcm.js} +110 -100
- package/dist/_chunks/{rich-text-editor-DFsH5RAj.js → rich-text-editor-orJ-hPgm.js} +1323 -1308
- package/dist/_chunks/{toolbar-Dz_hAUIZ.js → toolbar-B7UHCMSr.js} +2 -2
- package/dist/_chunks/{unit-converter-CBy7S4Tl.js → unit-converter-OBhSDXee.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-CBSpX4DI.js → use-appointment-details-read-DeQnmmZw.js} +2 -2
- package/dist/agent-catalog.json +141 -16
- package/dist/agent-i18n/en.json +11 -5
- package/dist/appointment-editor-panel/index.js +1 -1
- package/dist/browser-support.js +1 -1
- package/dist/components/appointment-card/appointment-card.d.ts +4 -0
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-timeline/appointment-timeline.d.ts +51 -0
- package/dist/components/appointment-timeline/index.d.ts +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/bill-line-table/index.js +1 -1
- package/dist/components/bill-table/index.js +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/calls-panel/calls-panel.d.ts +91 -0
- package/dist/components/calls-panel/index.d.ts +1 -1
- package/dist/components/calls-panel/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/data-grid/index.js +2 -2
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +1 -1
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/invoice-upload-list/index.js +1 -1
- package/dist/components/medication-line/index.js +1 -1
- package/dist/components/medication-line/medication-line.d.ts +6 -0
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/optical-prescription/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/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/print-sheet/index.js +1 -1
- package/dist/components/print-sheet/print-sheet.d.ts +7 -0
- package/dist/components/rich-text-editor/index.js +2 -2
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/find-free-slots-panel/index.js +1 -1
- package/dist/host-compat.css +18 -1
- package/dist/i18n/locales/ar.d.ts +72 -10
- package/dist/i18n/locales/ar.js +76 -17
- package/dist/i18n/locales/de.d.ts +72 -10
- package/dist/i18n/locales/de.js +76 -17
- package/dist/i18n/locales/el.d.ts +72 -10
- package/dist/i18n/locales/el.js +79 -17
- package/dist/i18n/locales/en.d.ts +64 -10
- package/dist/i18n/locales/en.js +71 -17
- package/dist/i18n/locales/es.d.ts +72 -10
- package/dist/i18n/locales/es.js +76 -17
- package/dist/i18n/locales/fr.d.ts +72 -10
- package/dist/i18n/locales/fr.js +76 -17
- package/dist/i18n/locales/hi.d.ts +72 -10
- package/dist/i18n/locales/hi.js +79 -17
- package/dist/i18n/locales/it.d.ts +72 -10
- package/dist/i18n/locales/it.js +76 -17
- package/dist/i18n/locales/ja.d.ts +72 -10
- package/dist/i18n/locales/ja.js +79 -17
- package/dist/i18n/locales/nl.d.ts +72 -10
- package/dist/i18n/locales/nl.js +76 -17
- package/dist/i18n/locales/pl.d.ts +72 -10
- package/dist/i18n/locales/pl.js +79 -17
- package/dist/i18n/locales/pt.d.ts +72 -10
- package/dist/i18n/locales/pt.js +76 -17
- package/dist/i18n/locales/ro.d.ts +72 -10
- package/dist/i18n/locales/ro.js +76 -17
- package/dist/i18n/locales/ru.d.ts +72 -10
- package/dist/i18n/locales/ru.js +76 -17
- package/dist/i18n/locales/sq.d.ts +72 -10
- package/dist/i18n/locales/sq.js +79 -17
- package/dist/i18n/locales/sv.d.ts +72 -10
- package/dist/i18n/locales/sv.js +76 -17
- package/dist/i18n/locales/tr.d.ts +72 -10
- package/dist/i18n/locales/tr.js +76 -17
- package/dist/i18n/locales/zh.d.ts +72 -10
- package/dist/i18n/locales/zh.js +76 -17
- package/dist/index.js +37 -37
- package/dist/locales/ar.json +79 -17
- package/dist/locales/de.json +79 -17
- package/dist/locales/el.json +79 -17
- package/dist/locales/en.json +71 -17
- package/dist/locales/es.json +79 -17
- package/dist/locales/fr.json +79 -17
- package/dist/locales/hi.json +79 -17
- package/dist/locales/it.json +79 -17
- package/dist/locales/ja.json +79 -17
- package/dist/locales/nl.json +79 -17
- package/dist/locales/pl.json +79 -17
- package/dist/locales/pt.json +79 -17
- package/dist/locales/ro.json +79 -17
- package/dist/locales/ru.json +79 -17
- package/dist/locales/sq.json +79 -17
- package/dist/locales/sv.json +79 -17
- package/dist/locales/tr.json +79 -17
- package/dist/locales/zh.json +79 -17
- package/dist/online-bookings-panel/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +2 -2
- package/dist/patterns/patient-account-settings/index.js +1 -1
- package/dist/patterns/patient-check-in/index.js +1 -1
- package/dist/patterns/patient-portal/index.js +2 -2
- package/dist/patterns/prescription/index.d.ts +1 -1
- package/dist/patterns/prescription/index.js +1 -1
- package/dist/patterns/prescription/prescription-composer-item.d.ts +8 -1
- package/dist/patterns/prescription/prescription-composer.d.ts +14 -9
- package/dist/patterns/prescription/prescription-sheet.d.ts +23 -4
- package/dist/patterns/prescription/prescription-types.d.ts +35 -10
- package/dist/patterns/prescription/prescription-validation.d.ts +17 -11
- package/dist/tokens.css +1 -1
- package/dist/waiting-list-panel/index.js +2 -2
- package/package.json +1 -1
- package/dist/_chunks/appointment-timeline-BEwgbYyG.js +0 -455
- package/dist/_chunks/calls-panel-CtxJAzkJ.js +0 -1094
- package/dist/_chunks/medication-line-CHdlh-F7.js +0 -222
- package/dist/_chunks/prescription-history-748qDVwZ.js +0 -1544
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import { useTranslation as
|
|
1
|
+
import { jsxs as c, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as re, useId as ie, useRef as T, useMemo as K, useEffect as ae, useImperativeHandle as oe } from "react";
|
|
3
|
+
import { c as de } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as ce } from "react-i18next";
|
|
5
5
|
import { u as le } from "./registry-DvAUVLHh.js";
|
|
6
|
-
import { f as
|
|
7
|
-
const
|
|
6
|
+
import { f as ue } from "./intl-locale-FWh-Y5_3.js";
|
|
7
|
+
const fe = {
|
|
8
8
|
id: "print-sheet",
|
|
9
9
|
capabilities: [],
|
|
10
10
|
state: {
|
|
@@ -49,90 +49,90 @@ const ue = {
|
|
|
49
49
|
description: "Sourced from the id prop, when provided."
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
},
|
|
52
|
+
}, V = "data-print-sheet-target", E = "data-print-sheet-ancestor", F = "data-print-sheet-printing", G = "data-printing", N = "theme-light", k = "theme-dark", b = "theme-accessible", v = /* @__PURE__ */ new Set();
|
|
53
53
|
let d = null, r = null, y = !1;
|
|
54
|
-
function
|
|
54
|
+
function pe(e) {
|
|
55
55
|
return e != null && e.isConnected ? typeof e.checkVisibility == "function" ? e.checkVisibility({ visibilityProperty: !0 }) : e.getClientRects().length > 0 : !1;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
58
|
-
const t = e.ownerDocument.body,
|
|
59
|
-
for (let
|
|
57
|
+
function me(e) {
|
|
58
|
+
const t = e.ownerDocument.body, n = [];
|
|
59
|
+
for (let s = e.parentElement; s && (n.push(s), s !== t); s = s.parentElement)
|
|
60
60
|
;
|
|
61
|
-
return
|
|
61
|
+
return n;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
const
|
|
63
|
+
function he(e, t, n) {
|
|
64
|
+
const s = {
|
|
65
65
|
element: t,
|
|
66
66
|
addedLight: !1,
|
|
67
67
|
removedDark: !1,
|
|
68
68
|
addedAccessible: !1
|
|
69
69
|
};
|
|
70
|
-
t.setAttribute(
|
|
71
|
-
const
|
|
72
|
-
for (let i = t.parentElement; i && (i.setAttribute(E, ""),
|
|
70
|
+
t.setAttribute(V, ""), t.setAttribute(G, "true"), t.classList.contains(k) && (t.classList.remove(k), s.removedDark = !0), t.classList.contains(N) || (t.classList.add(N), s.addedLight = !0), t.closest(`.${b}`) && !t.classList.contains(b) && (t.classList.add(b), s.addedAccessible = !0);
|
|
71
|
+
const l = t.ownerDocument.body;
|
|
72
|
+
for (let i = t.parentElement; i && (i.setAttribute(E, ""), n.ancestors.add(i), i !== l); i = i.parentElement)
|
|
73
73
|
;
|
|
74
|
-
|
|
74
|
+
n.targets.set(e, s);
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function $(e) {
|
|
77
77
|
const { element: t } = e;
|
|
78
|
-
t.removeAttribute(
|
|
78
|
+
t.removeAttribute(V), t.removeAttribute(G), e.addedLight && t.classList.remove(N), e.addedAccessible && t.classList.remove(b), e.removedDark && t.classList.add(k);
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function M(e) {
|
|
81
81
|
e.isTrusted && w();
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function B(e) {
|
|
84
84
|
const t = e ? "addEventListener" : "removeEventListener";
|
|
85
|
-
document[t]("pointerdown",
|
|
85
|
+
document[t]("pointerdown", M, !0), document[t]("keydown", M, !0);
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function W() {
|
|
88
88
|
if (r) return;
|
|
89
89
|
const e = d ? [d] : [...v].filter(
|
|
90
|
-
(
|
|
90
|
+
(n) => n.isolate() && pe(n.getElement())
|
|
91
91
|
), t = { targets: /* @__PURE__ */ new Map(), ancestors: /* @__PURE__ */ new Set() };
|
|
92
|
-
for (const
|
|
93
|
-
const
|
|
94
|
-
|
|
92
|
+
for (const n of e) {
|
|
93
|
+
const s = n.getElement();
|
|
94
|
+
s != null && s.isConnected && he(n, s, t);
|
|
95
95
|
}
|
|
96
96
|
if (t.targets.size === 0) {
|
|
97
97
|
d = null;
|
|
98
98
|
return;
|
|
99
99
|
}
|
|
100
|
-
r = t, document.documentElement.setAttribute(
|
|
101
|
-
for (const
|
|
100
|
+
r = t, document.documentElement.setAttribute(F, ""), B(!0);
|
|
101
|
+
for (const n of [...t.targets.keys()]) n.before();
|
|
102
102
|
}
|
|
103
103
|
function w() {
|
|
104
104
|
const e = r;
|
|
105
105
|
if (e) {
|
|
106
|
-
r = null, d = null,
|
|
107
|
-
for (const t of e.targets.values())
|
|
106
|
+
r = null, d = null, B(!1);
|
|
107
|
+
for (const t of e.targets.values()) $(t);
|
|
108
108
|
for (const t of e.ancestors) t.removeAttribute(E);
|
|
109
|
-
document.documentElement.removeAttribute(
|
|
109
|
+
document.documentElement.removeAttribute(F);
|
|
110
110
|
for (const t of [...e.targets.keys()]) t.after();
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
-
function he() {
|
|
114
|
-
y || typeof window > "u" || (window.addEventListener("beforeprint", B), window.addEventListener("afterprint", w), y = !0);
|
|
115
|
-
}
|
|
116
113
|
function ge() {
|
|
117
|
-
|
|
114
|
+
y || typeof window > "u" || (window.addEventListener("beforeprint", W), window.addEventListener("afterprint", w), y = !0);
|
|
115
|
+
}
|
|
116
|
+
function be() {
|
|
117
|
+
!y || r || (window.removeEventListener("beforeprint", W), window.removeEventListener("afterprint", w), y = !1);
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
return v.add(e),
|
|
119
|
+
function ve(e) {
|
|
120
|
+
return v.add(e), ge(), () => {
|
|
121
121
|
v.delete(e), d === e && (d = null);
|
|
122
122
|
const t = r == null ? void 0 : r.targets.get(e);
|
|
123
123
|
if (r && t) {
|
|
124
|
-
|
|
125
|
-
const
|
|
126
|
-
for (const
|
|
127
|
-
for (const
|
|
128
|
-
for (const
|
|
129
|
-
|
|
124
|
+
$(t), r.targets.delete(e);
|
|
125
|
+
const n = /* @__PURE__ */ new Set();
|
|
126
|
+
for (const s of r.targets.values())
|
|
127
|
+
for (const l of me(s.element)) n.add(l);
|
|
128
|
+
for (const s of [...r.ancestors])
|
|
129
|
+
n.has(s) || (s.removeAttribute(E), r.ancestors.delete(s));
|
|
130
130
|
e.after(), r.targets.size === 0 && w();
|
|
131
131
|
}
|
|
132
|
-
v.size === 0 &&
|
|
132
|
+
v.size === 0 && be();
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function ye(e) {
|
|
136
136
|
if (!(typeof window > "u")) {
|
|
137
137
|
d = e;
|
|
138
138
|
try {
|
|
@@ -142,13 +142,18 @@ function ve(e) {
|
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function we(e) {
|
|
146
146
|
return (r == null ? void 0 : r.targets.has(e)) ?? !1;
|
|
147
147
|
}
|
|
148
|
-
const
|
|
148
|
+
const Se = de(
|
|
149
149
|
[
|
|
150
|
-
"ds:relative ds:mx-auto ds:flex ds:
|
|
151
|
-
|
|
150
|
+
"ds:relative ds:mx-auto ds:flex ds:flex-col ds:box-border",
|
|
151
|
+
/* The width is a preferred size, not a max-width: a max-width would be
|
|
152
|
+
carried through the aspect ratio into a maximum height, and in a flex
|
|
153
|
+
parent that clamps the automatic minimum size, so content taller than
|
|
154
|
+
one page would overflow the frame. As a preferred size the ratio is a
|
|
155
|
+
minimum and the sheet grows with its content. */
|
|
156
|
+
"ds:[inline-size:min(100%,var(--print-sheet-inline-size))]",
|
|
152
157
|
"ds:[aspect-ratio:var(--print-sheet-ratio)]",
|
|
153
158
|
"ds:bg-[var(--card)] ds:text-[color:var(--card-foreground)]",
|
|
154
159
|
"ds:rounded-[var(--radius-md)]",
|
|
@@ -164,29 +169,29 @@ const we = oe(
|
|
|
164
169
|
},
|
|
165
170
|
defaultVariants: { density: "default" }
|
|
166
171
|
}
|
|
167
|
-
),
|
|
168
|
-
function
|
|
172
|
+
), Y = /^(\d{4})-(\d{2})-(\d{2})$/;
|
|
173
|
+
function xe(e) {
|
|
169
174
|
let t;
|
|
170
175
|
if (e instanceof Date)
|
|
171
176
|
t = e;
|
|
172
177
|
else if (typeof e == "number")
|
|
173
178
|
t = new Date(e);
|
|
174
179
|
else {
|
|
175
|
-
const
|
|
176
|
-
t =
|
|
180
|
+
const n = Y.exec(e);
|
|
181
|
+
t = n ? new Date(Number(n[1]), Number(n[2]) - 1, Number(n[3])) : new Date(e);
|
|
177
182
|
}
|
|
178
183
|
return Number.isNaN(t.getTime()) ? null : t;
|
|
179
184
|
}
|
|
180
|
-
function
|
|
181
|
-
return typeof e == "string" &&
|
|
185
|
+
function Le(e, t) {
|
|
186
|
+
return typeof e == "string" && Y.test(e) ? e : t.toISOString();
|
|
182
187
|
}
|
|
183
|
-
const Ae =
|
|
188
|
+
const Ae = re(
|
|
184
189
|
({
|
|
185
190
|
size: e = "a4",
|
|
186
191
|
density: t = "default",
|
|
187
|
-
header:
|
|
188
|
-
title:
|
|
189
|
-
headingLevel:
|
|
192
|
+
header: n,
|
|
193
|
+
title: s,
|
|
194
|
+
headingLevel: l = 2,
|
|
190
195
|
date: i,
|
|
191
196
|
signature: u,
|
|
192
197
|
footer: f,
|
|
@@ -194,22 +199,23 @@ const Ae = ne(
|
|
|
194
199
|
onBeforePrint: D,
|
|
195
200
|
onAfterPrint: z,
|
|
196
201
|
"aria-label": I,
|
|
197
|
-
"aria-labelledby":
|
|
202
|
+
"aria-labelledby": q,
|
|
198
203
|
id: S,
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
+
registerAgent: P = !0,
|
|
205
|
+
className: J,
|
|
206
|
+
children: Q,
|
|
207
|
+
...U
|
|
208
|
+
}, X) => {
|
|
209
|
+
const { t: x, i18n: Z } = ce("ui"), C = ie(), L = T(null), _ = T(null), p = T({
|
|
204
210
|
size: e,
|
|
205
211
|
isolateBrowserPrint: R,
|
|
206
212
|
onBeforePrint: D,
|
|
207
213
|
onAfterPrint: z
|
|
208
214
|
});
|
|
209
215
|
p.current = { size: e, isolateBrowserPrint: R, onBeforePrint: D, onAfterPrint: z };
|
|
210
|
-
const m =
|
|
216
|
+
const m = K(
|
|
211
217
|
() => ({
|
|
212
|
-
getElement: () =>
|
|
218
|
+
getElement: () => L.current,
|
|
213
219
|
isolate: () => p.current.isolateBrowserPrint,
|
|
214
220
|
before: () => {
|
|
215
221
|
var o, g;
|
|
@@ -222,67 +228,71 @@ const Ae = ne(
|
|
|
222
228
|
}),
|
|
223
229
|
[]
|
|
224
230
|
);
|
|
225
|
-
|
|
226
|
-
const
|
|
231
|
+
ae(() => ve(m), [m]);
|
|
232
|
+
const A = K(
|
|
227
233
|
() => ({
|
|
228
|
-
print: () =>
|
|
229
|
-
isPrinting: () =>
|
|
234
|
+
print: () => ye(m),
|
|
235
|
+
isPrinting: () => we(m),
|
|
230
236
|
getSize: () => p.current.size,
|
|
231
|
-
getElement: () =>
|
|
237
|
+
getElement: () => L.current,
|
|
232
238
|
focusTitle: () => {
|
|
233
239
|
var o;
|
|
234
|
-
return (o =
|
|
240
|
+
return (o = _.current) == null ? void 0 : o.focus();
|
|
235
241
|
}
|
|
236
242
|
}),
|
|
237
243
|
[m]
|
|
238
244
|
);
|
|
239
|
-
|
|
240
|
-
|
|
245
|
+
oe(X, () => A, [A]), le(
|
|
246
|
+
fe,
|
|
247
|
+
A,
|
|
248
|
+
P ? S : void 0
|
|
249
|
+
);
|
|
250
|
+
const ee = `h${l}`, O = s != null && s !== !1, h = i == null ? null : xe(i), te = h ? new Intl.DateTimeFormat(ue(Z.language), {
|
|
241
251
|
dateStyle: "long"
|
|
242
|
-
}).format(h) : "",
|
|
243
|
-
return /* @__PURE__ */
|
|
252
|
+
}).format(h) : "", j = h != null || u != null, ne = f != null && f !== !1 || j, H = q ?? (I == null && O ? C : void 0), se = H == null ? I ?? x("printSheet.label") : void 0;
|
|
253
|
+
return /* @__PURE__ */ c(
|
|
244
254
|
"article",
|
|
245
255
|
{
|
|
246
|
-
...
|
|
247
|
-
ref:
|
|
256
|
+
...U,
|
|
257
|
+
ref: L,
|
|
248
258
|
id: S,
|
|
249
259
|
"aria-label": se,
|
|
250
|
-
"aria-labelledby":
|
|
251
|
-
className:
|
|
260
|
+
"aria-labelledby": H,
|
|
261
|
+
className: Se({ density: t, className: J }),
|
|
252
262
|
"data-component": "print-sheet",
|
|
253
|
-
"data-component-id": S,
|
|
263
|
+
"data-component-id": P ? S : void 0,
|
|
254
264
|
"data-size": e,
|
|
255
265
|
"data-density": t,
|
|
256
266
|
children: [
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
267
|
+
n != null && n !== !1 ? /* @__PURE__ */ a("header", { className: "ds:break-inside-avoid ds:break-after-avoid", children: n }) : null,
|
|
268
|
+
O ? /* @__PURE__ */ a(
|
|
269
|
+
ee,
|
|
260
270
|
{
|
|
261
|
-
ref:
|
|
262
|
-
id:
|
|
271
|
+
ref: _,
|
|
272
|
+
id: C,
|
|
263
273
|
tabIndex: -1,
|
|
264
274
|
className: "ds:m-0 type-title-section ds:break-after-avoid ds:focus:outline-none",
|
|
265
|
-
children:
|
|
275
|
+
children: s
|
|
266
276
|
}
|
|
267
277
|
) : null,
|
|
268
|
-
/* @__PURE__ */ a("div", { "data-slot": "body", children:
|
|
269
|
-
|
|
278
|
+
/* @__PURE__ */ a("div", { "data-slot": "body", children: Q }),
|
|
279
|
+
ne ? /* @__PURE__ */ c("footer", { className: "ds:mt-auto ds:flex ds:flex-col ds:gap-[var(--spacing-lg)] ds:break-inside-avoid ds:break-before-avoid", children: [
|
|
270
280
|
f != null && f !== !1 ? /* @__PURE__ */ a("div", { children: f }) : null,
|
|
271
|
-
|
|
272
|
-
h ? /* @__PURE__ */
|
|
281
|
+
j ? /* @__PURE__ */ c("div", { className: "ds:flex ds:items-end ds:justify-between ds:gap-[var(--spacing-lg)]", children: [
|
|
282
|
+
h ? /* @__PURE__ */ c("p", { className: "ds:m-0 ds:flex ds:flex-col type-body-sm", children: [
|
|
273
283
|
/* @__PURE__ */ a("span", { className: "type-label ds:text-[color:var(--muted-foreground)]", children: x("printSheet.date") }),
|
|
274
284
|
/* @__PURE__ */ a(
|
|
275
285
|
"time",
|
|
276
286
|
{
|
|
277
|
-
dateTime:
|
|
287
|
+
dateTime: Le(
|
|
278
288
|
i,
|
|
279
289
|
h
|
|
280
290
|
),
|
|
281
|
-
children:
|
|
291
|
+
children: te
|
|
282
292
|
}
|
|
283
293
|
)
|
|
284
294
|
] }) : null,
|
|
285
|
-
u ? /* @__PURE__ */
|
|
295
|
+
u ? /* @__PURE__ */ c("div", { className: "ds:ms-auto ds:basis-1/2 ds:flex ds:flex-col", children: [
|
|
286
296
|
/* @__PURE__ */ a(
|
|
287
297
|
"div",
|
|
288
298
|
{
|
|
@@ -290,7 +300,7 @@ const Ae = ne(
|
|
|
290
300
|
className: "ds:h-[var(--spacing-2xl)]"
|
|
291
301
|
}
|
|
292
302
|
),
|
|
293
|
-
/* @__PURE__ */
|
|
303
|
+
/* @__PURE__ */ c("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)] ds:border-t ds:border-[color:var(--foreground)] ds:pt-[var(--spacing-xs)]", children: [
|
|
294
304
|
/* @__PURE__ */ a("span", { className: "type-label ds:text-[color:var(--muted-foreground)]", children: x("printSheet.signature") }),
|
|
295
305
|
/* @__PURE__ */ a("span", { dir: "auto", className: "type-body-sm ds:font-medium", children: u.name }),
|
|
296
306
|
u.detail ? /* @__PURE__ */ a(
|
|
@@ -313,6 +323,6 @@ const Ae = ne(
|
|
|
313
323
|
Ae.displayName = "PrintSheet";
|
|
314
324
|
export {
|
|
315
325
|
Ae as P,
|
|
316
|
-
|
|
326
|
+
fe as p
|
|
317
327
|
};
|
|
318
|
-
//# sourceMappingURL=print-sheet-
|
|
328
|
+
//# sourceMappingURL=print-sheet-gaxObGcm.js.map
|