@alfadocs/ui-kit 1.46.0 → 1.47.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/booking-C4MwImkS.js +3362 -0
- package/dist/_chunks/calendar-workspace-DDnQmiIL.js +12427 -0
- package/dist/_chunks/{freemium-paywall-Cz-O9lQD.js → freemium-paywall-BaW5ODc9.js} +2 -2
- package/dist/_chunks/{patient-details-DUj1htsH.js → patient-details-yrgkSeEY.js} +2 -2
- package/dist/_chunks/{patient-field-row-CO0WR7yA.js → patient-field-row-DCMkFGqI.js} +2 -2
- package/dist/_chunks/{patient-summary-card-DNzdYjxE.js → patient-summary-card-CmEFflGS.js} +2 -2
- package/dist/_chunks/payment-form-DqJFiplX.js +881 -0
- package/dist/_chunks/{phone-input-BsZIoE36.js → phone-input-IWrGOCwm.js} +40 -39
- package/dist/_chunks/{stepper-accordion-DmVykr5F.js → stepper-accordion-jMR8NaOB.js} +2 -1
- package/dist/agent-catalog.json +5 -4
- package/dist/agent-i18n/en.json +2 -2
- package/dist/components/booking/booking-types.d.ts +60 -1
- package/dist/components/booking/booking.d.ts +1 -1
- package/dist/components/booking/details-form.d.ts +5 -1
- package/dist/components/booking/index.d.ts +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/booking/payment.d.ts +9 -0
- package/dist/components/booking/use-booking-payment.d.ts +14 -0
- package/dist/components/freemium-paywall/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/payment-form/index.d.ts +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/payment-form/payment-form.d.ts +35 -3
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/stepper-accordion/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +36 -1
- package/dist/i18n/locales/ar.js +36 -1
- package/dist/i18n/locales/de.d.ts +36 -1
- package/dist/i18n/locales/de.js +36 -1
- package/dist/i18n/locales/el.d.ts +36 -1
- package/dist/i18n/locales/el.js +36 -1
- package/dist/i18n/locales/en.d.ts +36 -1
- package/dist/i18n/locales/en.js +36 -1
- package/dist/i18n/locales/es.d.ts +36 -1
- package/dist/i18n/locales/es.js +36 -1
- package/dist/i18n/locales/fr.d.ts +36 -1
- package/dist/i18n/locales/fr.js +36 -1
- package/dist/i18n/locales/hi.d.ts +36 -1
- package/dist/i18n/locales/hi.js +36 -1
- package/dist/i18n/locales/it.d.ts +36 -1
- package/dist/i18n/locales/it.js +36 -1
- package/dist/i18n/locales/ja.d.ts +36 -1
- package/dist/i18n/locales/ja.js +36 -1
- package/dist/i18n/locales/nl.d.ts +36 -1
- package/dist/i18n/locales/nl.js +36 -1
- package/dist/i18n/locales/pl.d.ts +36 -1
- package/dist/i18n/locales/pl.js +36 -1
- package/dist/i18n/locales/pt.d.ts +36 -1
- package/dist/i18n/locales/pt.js +36 -1
- package/dist/i18n/locales/ro.d.ts +36 -1
- package/dist/i18n/locales/ro.js +36 -1
- package/dist/i18n/locales/ru.d.ts +36 -1
- package/dist/i18n/locales/ru.js +36 -1
- package/dist/i18n/locales/sq.d.ts +36 -1
- package/dist/i18n/locales/sq.js +36 -1
- package/dist/i18n/locales/sv.d.ts +36 -1
- package/dist/i18n/locales/sv.js +36 -1
- package/dist/i18n/locales/tr.d.ts +36 -1
- package/dist/i18n/locales/tr.js +36 -1
- package/dist/i18n/locales/zh.d.ts +36 -1
- package/dist/i18n/locales/zh.js +36 -1
- package/dist/index.js +8 -8
- package/dist/locales/ar.json +36 -1
- package/dist/locales/de.json +36 -1
- package/dist/locales/el.json +36 -1
- package/dist/locales/en.json +36 -1
- package/dist/locales/es.json +36 -1
- package/dist/locales/fr.json +36 -1
- package/dist/locales/hi.json +36 -1
- package/dist/locales/it.json +36 -1
- package/dist/locales/ja.json +36 -1
- package/dist/locales/nl.json +36 -1
- package/dist/locales/pl.json +36 -1
- package/dist/locales/pt.json +36 -1
- package/dist/locales/ro.json +36 -1
- package/dist/locales/ru.json +36 -1
- package/dist/locales/sq.json +36 -1
- package/dist/locales/sv.json +36 -1
- package/dist/locales/tr.json +36 -1
- package/dist/locales/zh.json +36 -1
- package/dist/patterns/calendar/calendar-editor-fields.d.ts +33 -0
- package/dist/patterns/calendar/calendar-sticky-offset.d.ts +20 -0
- package/dist/patterns/calendar/calendar.data.d.ts +17 -0
- package/dist/patterns/calendar/calendar.types.d.ts +24 -10
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/booking-B7gA9gFB.js +0 -3017
- package/dist/_chunks/calendar-workspace-BB-BZT7W.js +0 -12251
- package/dist/_chunks/payment-form-BHMDqW9C.js +0 -767
|
@@ -324,25 +324,39 @@ export interface CalendarBookingContact {
|
|
|
324
324
|
}
|
|
325
325
|
/**
|
|
326
326
|
* A calendar task (platform `DoctorReminder`) — the model the task editor
|
|
327
|
-
* saves.
|
|
328
|
-
*
|
|
329
|
-
*
|
|
330
|
-
* note
|
|
327
|
+
* saves. A task has at most ONE counterpart: a patient, a company, an
|
|
328
|
+
* operator, or none. `TaskType::validate()` refuses more than one with
|
|
329
|
+
* "More than one counterpart is set", so the editor asks for one choice.
|
|
330
|
+
* `note` is required here though the platform allows an empty one; `date`
|
|
331
|
+
* is required on both sides. No title separate from the note, no priority,
|
|
332
|
+
* no duration — the platform model has none.
|
|
331
333
|
*/
|
|
332
334
|
export interface CalendarTask {
|
|
333
335
|
id: string;
|
|
334
|
-
/**
|
|
336
|
+
/** An instant as an ISO 8601 string. The editor emits `toISOString()`,
|
|
337
|
+
* so UTC with a `Z`; parse it with `new Date()`, never by slicing the
|
|
338
|
+
* first 16 characters. A zone-less string on read is taken as local. */
|
|
335
339
|
dateIso: string;
|
|
336
|
-
/** The task text
|
|
340
|
+
/** The task text. Required here, though the platform allows an empty
|
|
341
|
+
* one. */
|
|
337
342
|
note: string;
|
|
338
343
|
/** The clinician the task concerns: platform `doctorOperator`, filled
|
|
339
|
-
* from `data.operators`. NOT the assignee,
|
|
340
|
-
*
|
|
344
|
+
* from `data.operators`. NOT the assignee (`assigneeId`), and mutually
|
|
345
|
+
* exclusive with `patientId` and `companyId`. Absent = no operator. */
|
|
341
346
|
operatorId?: string;
|
|
342
|
-
/** Mutually exclusive with `companyId`. */
|
|
347
|
+
/** Mutually exclusive with `companyId` and `operatorId`. */
|
|
343
348
|
patientId?: string;
|
|
344
|
-
/** Mutually exclusive with `patientId`
|
|
349
|
+
/** Mutually exclusive with `patientId` and `operatorId` (platform
|
|
350
|
+
* `doctorCompany`). */
|
|
345
351
|
companyId?: string;
|
|
352
|
+
/** Which kind of task — an OPAQUE token from `CalendarData.taskTypes`,
|
|
353
|
+
* round-tripped untouched. The kit never parses it. Optional: a host
|
|
354
|
+
* that supplies no `taskTypes` neither shows the field nor sends one. */
|
|
355
|
+
typeId?: string;
|
|
356
|
+
/** The practice USER the task is assigned to. Independent of the
|
|
357
|
+
* counterpart above: an assigned task may still be about a patient. An
|
|
358
|
+
* id from `CalendarData.taskAssignees`; absent = nobody. */
|
|
359
|
+
assigneeId?: string;
|
|
346
360
|
done: boolean;
|
|
347
361
|
}
|
|
348
362
|
/** The same shape without an identity — what the editor hands the create
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as s, a as r, b as E, c as P, D as S, d as o, S as C, V as t, W as d, e as A, i, m as n, r as D, u as W, f as _, g as c } from "../../_chunks/calendar-workspace-
|
|
1
|
+
import { C as s, a as r, b as E, c as P, D as S, d as o, S as C, V as t, W as d, e as A, i, m as n, r as D, u as W, f as _, g as c } from "../../_chunks/calendar-workspace-DDnQmiIL.js";
|
|
2
2
|
export {
|
|
3
3
|
s as CALENDAR_PREFERENCE_KEYS,
|
|
4
4
|
r as CalendarDataProvider,
|