@alfadocs/ui-kit 1.136.0 → 1.138.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/{appointment-card-BT1cMZIX.js → appointment-card-CaxFXtSn.js} +196 -184
- package/dist/_chunks/appointment-details-panel.history-DrIMDQYf.js +314 -0
- package/dist/_chunks/appointment-details-panel.identity-C20Y9xNC.js +223 -0
- package/dist/_chunks/{appointment-timeline-Dy4YQJ17.js → appointment-timeline-BEwgbYyG.js} +113 -110
- package/dist/_chunks/{appointment-tray-B3gSHL1j.js → appointment-tray-DPpeR9JT.js} +8 -8
- package/dist/_chunks/calendar-appointment-editor-dialog-SxSkOTnO.js +5519 -0
- package/dist/_chunks/calendar-editor-discard-host-DjUhoFr2.js +1336 -0
- package/dist/_chunks/calendar-editor-guard-9fShhNIA.js +31 -0
- package/dist/_chunks/calendar-waiting-list-panel-331vzAdl.js +981 -0
- package/dist/_chunks/calendar-workspace.model-B8yPwuBv.js +1557 -0
- package/dist/_chunks/calendar.sheets-aodjllWd.js +4585 -0
- package/dist/_chunks/color-picker-CC8ZfntU.js +582 -0
- package/dist/_chunks/{document-preview-DWlejd8A.js → document-preview-CirR3C_m.js} +2 -2
- package/dist/_chunks/{fiscal-code-input-BBvU7sAo.js → fiscal-code-input-DZlpaMGg.js} +2 -2
- package/dist/_chunks/{iban-input-DuTwKok5.js → iban-input-CdSLRzQN.js} +2 -2
- package/dist/_chunks/list-todo-KWvUhmT_.js +33 -0
- package/dist/_chunks/{notes-panel-BvjAo4RQ.js → notes-panel-DsEKNtsw.js} +2 -2
- package/dist/_chunks/palettes-CKVXYTzo.js +172 -0
- package/dist/_chunks/{patient-account-settings-Bmfeclpd.js → patient-account-settings-Cs9y-pVA.js} +3 -3
- package/dist/_chunks/{patient-check-in-resume-CYZ-SvsF.js → patient-check-in-resume-4qi_klQV.js} +5 -5
- package/dist/_chunks/{patient-details-9eh9cNy7.js → patient-details-Dv7EiTCo.js} +2 -2
- package/dist/_chunks/{patient-field-row-B782eT0C.js → patient-field-row-DuHWGlLz.js} +2 -2
- package/dist/_chunks/patient-picker-BZJuOgMw.js +173 -0
- package/dist/_chunks/{patient-summary-card-K9zaMl1O.js → patient-summary-card-D-cDzOim.js} +2 -2
- package/dist/_chunks/{portal-details-DCIiGkHA.js → portal-details-BGc_FLQk.js} +3 -3
- package/dist/_chunks/{portal-documents-DVKj6Sco.js → portal-documents-BSI1U5lI.js} +3 -3
- package/dist/_chunks/{portal-parts-Br8wuala.js → portal-parts-C99CreYO.js} +2 -2
- package/dist/_chunks/{privacy-mask-C19dJFMk.js → privacy-mask-C2ZLKrMh.js} +5 -5
- package/dist/_chunks/{rich-text-editor-DjHL1b3E.js → rich-text-editor-C48omVjq.js} +2 -2
- package/dist/_chunks/task-editor-wKbFbGqW.js +1093 -0
- package/dist/_chunks/use-appointment-details-read-jGkJalX8.js +1966 -0
- package/dist/agent-catalog.json +2 -2
- package/dist/appointment-editor-panel/index.js +100 -0
- package/dist/booking-tools-data/index.js +82 -0
- package/dist/browser-support.js +1 -1
- package/dist/calendar-action-buttons/index.js +178 -0
- package/dist/components/appointment-card/appointment-card.d.ts +5 -2
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/index.js +6 -5
- package/dist/components/appointment-timeline/appointment-timeline.d.ts +6 -0
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/color-picker/index.js +5 -4
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/fiscal-code-input/index.js +1 -1
- package/dist/components/iban-input/index.js +1 -1
- package/dist/components/notes-panel/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/rich-text-editor/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/find-free-slots-panel/index.js +58 -0
- package/dist/host-legacy.css +16 -0
- package/dist/i18n/locales/ar.d.ts +0 -1
- package/dist/i18n/locales/ar.js +0 -1
- package/dist/i18n/locales/de.d.ts +0 -1
- package/dist/i18n/locales/de.js +0 -1
- package/dist/i18n/locales/el.d.ts +0 -1
- package/dist/i18n/locales/el.js +0 -1
- package/dist/i18n/locales/en.d.ts +0 -1
- package/dist/i18n/locales/en.js +0 -1
- package/dist/i18n/locales/es.d.ts +0 -1
- package/dist/i18n/locales/es.js +0 -1
- package/dist/i18n/locales/fr.d.ts +0 -1
- package/dist/i18n/locales/fr.js +0 -1
- package/dist/i18n/locales/hi.d.ts +0 -1
- package/dist/i18n/locales/hi.js +0 -1
- package/dist/i18n/locales/it.d.ts +0 -1
- package/dist/i18n/locales/it.js +0 -1
- package/dist/i18n/locales/ja.d.ts +0 -1
- package/dist/i18n/locales/ja.js +0 -1
- package/dist/i18n/locales/nl.d.ts +0 -1
- package/dist/i18n/locales/nl.js +0 -1
- package/dist/i18n/locales/pl.d.ts +0 -1
- package/dist/i18n/locales/pl.js +0 -1
- package/dist/i18n/locales/pt.d.ts +0 -1
- package/dist/i18n/locales/pt.js +0 -1
- package/dist/i18n/locales/ro.d.ts +0 -1
- package/dist/i18n/locales/ro.js +0 -1
- package/dist/i18n/locales/ru.d.ts +0 -1
- package/dist/i18n/locales/ru.js +0 -1
- package/dist/i18n/locales/sq.d.ts +0 -1
- package/dist/i18n/locales/sq.js +0 -1
- package/dist/i18n/locales/sv.d.ts +0 -1
- package/dist/i18n/locales/sv.js +0 -1
- package/dist/i18n/locales/tr.d.ts +0 -1
- package/dist/i18n/locales/tr.js +0 -1
- package/dist/i18n/locales/zh.d.ts +0 -1
- package/dist/i18n/locales/zh.js +0 -1
- package/dist/index.js +1328 -1322
- package/dist/locales/ar.json +0 -1
- package/dist/locales/de.json +0 -1
- package/dist/locales/el.json +0 -1
- package/dist/locales/en.json +0 -1
- package/dist/locales/es.json +0 -1
- package/dist/locales/fr.json +0 -1
- package/dist/locales/hi.json +0 -1
- package/dist/locales/it.json +0 -1
- package/dist/locales/ja.json +0 -1
- package/dist/locales/nl.json +0 -1
- package/dist/locales/pl.json +0 -1
- package/dist/locales/pt.json +0 -1
- package/dist/locales/ro.json +0 -1
- package/dist/locales/ru.json +0 -1
- package/dist/locales/sq.json +0 -1
- package/dist/locales/sv.json +0 -1
- package/dist/locales/tr.json +0 -1
- package/dist/locales/zh.json +0 -1
- package/dist/online-bookings-panel/index.js +69 -0
- package/dist/patterns/calendar/booking-tools/appointment-editor-panel.d.ts +46 -0
- package/dist/patterns/calendar/booking-tools/booking-tools-data.d.ts +48 -0
- package/dist/patterns/calendar/booking-tools/calendar-action-buttons.d.ts +55 -0
- package/dist/patterns/calendar/booking-tools/find-free-slots-panel.d.ts +35 -0
- package/dist/patterns/calendar/booking-tools/online-bookings-panel.d.ts +61 -0
- package/dist/patterns/calendar/booking-tools/waiting-list-panel.d.ts +58 -0
- package/dist/patterns/calendar/calendar-editor-discard-host.d.ts +20 -0
- package/dist/patterns/calendar/calendar-print-sheet.d.ts +16 -0
- package/dist/patterns/calendar/calendar-workspace.model.d.ts +7 -0
- package/dist/patterns/calendar/calendar.model.d.ts +9 -0
- package/dist/patterns/calendar/calendar.sheets.d.ts +59 -17
- package/dist/patterns/calendar/index.js +24 -20
- 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/tokens.css +1 -1
- package/dist/waiting-list-panel/index.js +158 -0
- package/package.json +27 -2
- package/dist/_chunks/calendar-appointment-editor-dialog-CB4cQOtc.js +0 -13773
- package/dist/_chunks/color-picker-AcaWuKah.js +0 -745
- package/dist/_chunks/task-editor-BfXSn6U1.js +0 -1257
- package/dist/_chunks/use-appointment-details-read-7J0j1FP7.js +0 -2476
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as c, useState as J, useCallback as u, useEffect as F } from "react";
|
|
3
|
+
import { useTranslation as K } from "react-i18next";
|
|
4
|
+
import { d as s, b as L } from "../_chunks/toast-DQ1Zu1kk.js";
|
|
5
|
+
import { a as M } from "../_chunks/tooltip-uEBdD1-5.js";
|
|
6
|
+
import { C as Q } from "../_chunks/calendar-editor-guard-9fShhNIA.js";
|
|
7
|
+
import { S as V } from "../_chunks/calendar.sheets-aodjllWd.js";
|
|
8
|
+
import { W as X } from "../_chunks/calendar-waiting-list-panel-331vzAdl.js";
|
|
9
|
+
import { P as Y } from "../_chunks/privacy-mask-C2ZLKrMh.js";
|
|
10
|
+
import { H as Z } from "../_chunks/hourglass-BEAzW1wE.js";
|
|
11
|
+
const q = { open: () => {
|
|
12
|
+
}, close: () => {
|
|
13
|
+
} };
|
|
14
|
+
function ut({
|
|
15
|
+
data: C,
|
|
16
|
+
entries: d,
|
|
17
|
+
rows: H,
|
|
18
|
+
locale: N,
|
|
19
|
+
status: T,
|
|
20
|
+
onRetry: y,
|
|
21
|
+
privacy: v,
|
|
22
|
+
onPrivacyOff: B,
|
|
23
|
+
readOnly: i,
|
|
24
|
+
entryRequest: l,
|
|
25
|
+
onSchedule: I,
|
|
26
|
+
onFindSlots: O,
|
|
27
|
+
onOpenAppointment: R,
|
|
28
|
+
onSaveEntry: W,
|
|
29
|
+
onRemoveEntry: k,
|
|
30
|
+
onRestoreEntry: S,
|
|
31
|
+
onCreatePatient: j,
|
|
32
|
+
onOpenPatient: D,
|
|
33
|
+
onFilterUsed: U,
|
|
34
|
+
onAdvancedFilterToggled: _,
|
|
35
|
+
onWhatsAppClick: $
|
|
36
|
+
}) {
|
|
37
|
+
const { t: n } = K("ui"), P = c(null), [r, f] = J(null), m = c(null), g = u((e) => {
|
|
38
|
+
m.current = e ? e.id : "add", f({ entry: e });
|
|
39
|
+
}, []), w = c(null);
|
|
40
|
+
F(() => {
|
|
41
|
+
if (!(!l || w.current === l.nonce)) {
|
|
42
|
+
if (w.current = l.nonce, i) {
|
|
43
|
+
s(n("calendarWorkspace.inc1.readOnly.waitingBlocked"));
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
g(l.entry);
|
|
47
|
+
}
|
|
48
|
+
}, [l, i, g, n]);
|
|
49
|
+
const p = c(!1), E = c(r);
|
|
50
|
+
E.current = r;
|
|
51
|
+
const z = u(() => f(null), []), x = c(r);
|
|
52
|
+
F(() => {
|
|
53
|
+
var b;
|
|
54
|
+
const e = x.current !== null;
|
|
55
|
+
if (x.current = r, !e || r !== null) return;
|
|
56
|
+
const o = m.current;
|
|
57
|
+
m.current = null;
|
|
58
|
+
const t = P.current, h = document.activeElement;
|
|
59
|
+
if (h && h !== document.body && (t != null && t.contains(h))) return;
|
|
60
|
+
(b = (o && o !== "add" ? t == null ? void 0 : t.querySelector(`[data-entry-edit="${o}"]`) : t == null ? void 0 : t.querySelector("[data-entry-add]")) ?? (t == null ? void 0 : t.querySelector('h2, [tabindex="-1"]'))) == null || b.focus();
|
|
61
|
+
}, [r]);
|
|
62
|
+
const A = u(
|
|
63
|
+
(e) => {
|
|
64
|
+
if (i) {
|
|
65
|
+
s(n("calendarWorkspace.inc1.readOnly.waitingBlocked"));
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
if (p.current) return;
|
|
69
|
+
p.current = !0;
|
|
70
|
+
const o = E.current;
|
|
71
|
+
W(e).then(
|
|
72
|
+
() => f((t) => t === o ? null : t),
|
|
73
|
+
(t) => s(
|
|
74
|
+
t instanceof Error ? t.message : n("emptyState.error.title")
|
|
75
|
+
)
|
|
76
|
+
).finally(() => {
|
|
77
|
+
p.current = !1;
|
|
78
|
+
});
|
|
79
|
+
},
|
|
80
|
+
[W, i, n]
|
|
81
|
+
), G = u(
|
|
82
|
+
(e) => {
|
|
83
|
+
if (i) {
|
|
84
|
+
s(n("calendarWorkspace.inc1.readOnly.waitingBlocked"));
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
const o = d.findIndex((t) => t.id === e.id);
|
|
88
|
+
k(e).then(
|
|
89
|
+
() => L(n("calendarWorkspace.inc1.waitingList.removed"), {
|
|
90
|
+
action: {
|
|
91
|
+
label: n("calendarWorkspace.inc1.waitingList.undo"),
|
|
92
|
+
onClick: () => {
|
|
93
|
+
S(e, o < 0 ? d.length : o).then(
|
|
94
|
+
() => L(
|
|
95
|
+
n("calendarWorkspace.inc1.waitingList.removeUndone")
|
|
96
|
+
),
|
|
97
|
+
(t) => s(
|
|
98
|
+
t instanceof Error ? t.message : n("emptyState.error.title")
|
|
99
|
+
)
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}),
|
|
104
|
+
(t) => s(
|
|
105
|
+
t instanceof Error ? t.message : n("emptyState.error.title")
|
|
106
|
+
)
|
|
107
|
+
);
|
|
108
|
+
},
|
|
109
|
+
[d, k, S, i, n]
|
|
110
|
+
);
|
|
111
|
+
return /* @__PURE__ */ a(M, { children: /* @__PURE__ */ a(Q, { value: C, children: /* @__PURE__ */ a(V, { value: q, children: /* @__PURE__ */ a(
|
|
112
|
+
"div",
|
|
113
|
+
{
|
|
114
|
+
ref: P,
|
|
115
|
+
"data-component": "waiting-list-rail-panel",
|
|
116
|
+
className: "ds:flex ds:h-full ds:min-h-0 ds:flex-col",
|
|
117
|
+
children: r != null && r.entry && v ? (
|
|
118
|
+
/* Editing an entry opens its patient and free text in fields. */
|
|
119
|
+
/* @__PURE__ */ a(
|
|
120
|
+
Y,
|
|
121
|
+
{
|
|
122
|
+
title: n("calendarWorkspace.waitingList.tool"),
|
|
123
|
+
icon: /* @__PURE__ */ a(Z, { "aria-hidden": "true" }),
|
|
124
|
+
onTurnOff: B
|
|
125
|
+
}
|
|
126
|
+
)
|
|
127
|
+
) : /* @__PURE__ */ a(
|
|
128
|
+
X,
|
|
129
|
+
{
|
|
130
|
+
entries: d,
|
|
131
|
+
rows: H,
|
|
132
|
+
locale: N,
|
|
133
|
+
privacy: v,
|
|
134
|
+
status: T,
|
|
135
|
+
onRetry: y,
|
|
136
|
+
readOnly: i,
|
|
137
|
+
onPlaceWaiting: I,
|
|
138
|
+
onFindSlotsForWaiting: O,
|
|
139
|
+
onRemoveWaiting: G,
|
|
140
|
+
onOpenEntryForm: g,
|
|
141
|
+
entryForm: r,
|
|
142
|
+
onSaveEntry: A,
|
|
143
|
+
onCancelEntry: z,
|
|
144
|
+
onCreatePatient: j,
|
|
145
|
+
onOpenPatient: D,
|
|
146
|
+
onFilterUsed: U,
|
|
147
|
+
onAdvancedFilterToggled: _,
|
|
148
|
+
onWhatsAppClick: $,
|
|
149
|
+
onOpenAppointment: R
|
|
150
|
+
}
|
|
151
|
+
)
|
|
152
|
+
}
|
|
153
|
+
) }) }) });
|
|
154
|
+
}
|
|
155
|
+
export {
|
|
156
|
+
ut as WaitingListRailPanel
|
|
157
|
+
};
|
|
158
|
+
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfadocs/ui-kit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.138.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "AlfaDocs shared design system — tokens, components, patterns, and translations for platform, booking, and alfascribe.",
|
|
6
6
|
"license": "BUSL-1.1",
|
|
@@ -84,6 +84,30 @@
|
|
|
84
84
|
"types": "./dist/patterns/alia-assistant/alia-asteroid-icon.d.ts",
|
|
85
85
|
"import": "./dist/alia-asteroid-icon/index.js"
|
|
86
86
|
},
|
|
87
|
+
"./booking-tools-data": {
|
|
88
|
+
"types": "./dist/patterns/calendar/booking-tools/booking-tools-data.d.ts",
|
|
89
|
+
"import": "./dist/booking-tools-data/index.js"
|
|
90
|
+
},
|
|
91
|
+
"./appointment-editor-panel": {
|
|
92
|
+
"types": "./dist/patterns/calendar/booking-tools/appointment-editor-panel.d.ts",
|
|
93
|
+
"import": "./dist/appointment-editor-panel/index.js"
|
|
94
|
+
},
|
|
95
|
+
"./find-free-slots-panel": {
|
|
96
|
+
"types": "./dist/patterns/calendar/booking-tools/find-free-slots-panel.d.ts",
|
|
97
|
+
"import": "./dist/find-free-slots-panel/index.js"
|
|
98
|
+
},
|
|
99
|
+
"./waiting-list-panel": {
|
|
100
|
+
"types": "./dist/patterns/calendar/booking-tools/waiting-list-panel.d.ts",
|
|
101
|
+
"import": "./dist/waiting-list-panel/index.js"
|
|
102
|
+
},
|
|
103
|
+
"./online-bookings-panel": {
|
|
104
|
+
"types": "./dist/patterns/calendar/booking-tools/online-bookings-panel.d.ts",
|
|
105
|
+
"import": "./dist/online-bookings-panel/index.js"
|
|
106
|
+
},
|
|
107
|
+
"./calendar-action-buttons": {
|
|
108
|
+
"types": "./dist/patterns/calendar/booking-tools/calendar-action-buttons.d.ts",
|
|
109
|
+
"import": "./dist/calendar-action-buttons/index.js"
|
|
110
|
+
},
|
|
87
111
|
"./agent": {
|
|
88
112
|
"types": "./dist/agent/index.d.ts",
|
|
89
113
|
"import": "./dist/agent/index.js"
|
|
@@ -1164,7 +1188,7 @@
|
|
|
1164
1188
|
},
|
|
1165
1189
|
"scripts": {
|
|
1166
1190
|
"dev": "vite",
|
|
1167
|
-
"build": "vite build && npm run build:stylesheets && npm run build:theme-boot && npm run build:browser-support && npm run build:host-compat && npm run build:host-legacy && npm run build:types && npm run build:locales && npm run build:error-pages && npm run build:agent-catalog && npm run verify:build && npm run check:preflight-bleed && npm run check:exports && npm run check:blockable-names",
|
|
1191
|
+
"build": "vite build && npm run build:stylesheets && npm run build:theme-boot && npm run build:browser-support && npm run build:host-compat && npm run build:host-legacy && npm run build:types && npm run build:locales && npm run build:error-pages && npm run build:agent-catalog && npm run verify:build && npm run check:preflight-bleed && npm run check:exports && npm run check:blockable-names && npm run check:entry-weight -- --require-dist",
|
|
1168
1192
|
"build:theme-boot": "node --experimental-strip-types scripts/build-theme-boot.mjs",
|
|
1169
1193
|
"build:browser-support": "node scripts/build-browser-support.mjs",
|
|
1170
1194
|
"build:stylesheets": "node scripts/build-stylesheets.mjs",
|
|
@@ -1172,6 +1196,7 @@
|
|
|
1172
1196
|
"check:exports": "node scripts/check-exports-coverage.mjs",
|
|
1173
1197
|
"build:error-pages": "node scripts/build-error-pages.mjs",
|
|
1174
1198
|
"check:blockable-names": "node scripts/check-blockable-names.mjs",
|
|
1199
|
+
"check:entry-weight": "node scripts/check-entry-weight.mjs",
|
|
1175
1200
|
"build:host-compat": "node scripts/build-host-compat.mjs",
|
|
1176
1201
|
"build:host-legacy": "node -e \"require('node:fs').copyFileSync('src/tokens/host-legacy.css','dist/host-legacy.css')\"",
|
|
1177
1202
|
"check:host-compat": "node scripts/build-host-compat.mjs --check",
|