@alfadocs/ui-kit 1.147.1 → 1.148.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.
Files changed (108) hide show
  1. package/dist/_chunks/{appointment-details-panel.history-eqPMKmW0.js → appointment-details-panel.history-BxNqcA-r.js} +109 -110
  2. package/dist/_chunks/{appointment-timeline-D5qbZ7in.js → appointment-timeline-CuZW-CGT.js} +2 -2
  3. package/dist/_chunks/{bill-line-table-DnkFqMnM.js → bill-line-table-B8Cc2pTH.js} +2 -2
  4. package/dist/_chunks/button-group-CHQD8GJ0.js +449 -0
  5. package/dist/_chunks/{calendar-appointment-editor-dialog-sY-k0GGW.js → calendar-appointment-editor-dialog-Cz8F2H4M.js} +6 -6
  6. package/dist/_chunks/{calendar-waiting-list-panel-Bm7NAZdk.js → calendar-waiting-list-panel-C4T85b4q.js} +3 -3
  7. package/dist/_chunks/{calendar.sheets-CCvdZF-R.js → calendar.sheets-DsgPdycU.js} +4 -4
  8. package/dist/_chunks/{data-grid-CujX-2tF.js → data-grid-CkzbCZSo.js} +486 -476
  9. package/dist/_chunks/{default-tabs-CqP1uWdx.js → default-tabs-C45FVzsG.js} +3 -3
  10. package/dist/_chunks/editable-description-BsSjLnSx.js +193 -0
  11. package/dist/_chunks/{editable-description.agent-Bm_LBV2j.js → editable-description.agent-zyyR_hxB.js} +2 -2
  12. package/dist/_chunks/{face-scheme-ByYeboH9.js → face-scheme-BC2whb1S.js} +2 -2
  13. package/dist/_chunks/{invoice-upload-list-srvWy5_d.js → invoice-upload-list-BReimsvV.js} +3 -3
  14. package/dist/_chunks/{notes-panel-C9aB1Cma.js → notes-panel-BHMnLbEH.js} +2 -2
  15. package/dist/_chunks/prescription-history-CQuJmd4H.js +1846 -0
  16. package/dist/_chunks/{rich-text-editor-CJXc5GgH.js → rich-text-editor-BAcJq1PO.js} +445 -437
  17. package/dist/_chunks/{tasks-panel-DsjfS_k5.js → tasks-panel-DufAoAxG.js} +2 -2
  18. package/dist/_chunks/{toolbar-z_6tE7zG.js → toolbar-B9oh9XY9.js} +2 -2
  19. package/dist/_chunks/{use-appointment-details-read-Dod21IxM.js → use-appointment-details-read-kYp-gfhb.js} +417 -422
  20. package/dist/agent-catalog.json +2 -2
  21. package/dist/appointment-editor-panel/index.js +1 -1
  22. package/dist/browser-support.js +1 -1
  23. package/dist/calendar-action-buttons/index.js +1 -1
  24. package/dist/components/appointment-details-panel/appointment-details-panel.history.d.ts +4 -6
  25. package/dist/components/appointment-details-panel/index.js +1 -1
  26. package/dist/components/appointment-timeline/index.js +1 -1
  27. package/dist/components/bill-line-table/index.js +1 -1
  28. package/dist/components/bill-table/index.js +1 -1
  29. package/dist/components/button-group/button-group.d.ts +2 -1
  30. package/dist/components/button-group/index.js +1 -1
  31. package/dist/components/data-grid/data-grid.variants.d.ts +7 -1
  32. package/dist/components/data-grid/index.js +2 -2
  33. package/dist/components/editable-description/editable-description.d.ts +2 -1
  34. package/dist/components/editable-description/index.js +2 -2
  35. package/dist/components/face-scheme/index.js +1 -1
  36. package/dist/components/invoice-upload-list/index.js +1 -1
  37. package/dist/components/notes-panel/index.js +1 -1
  38. package/dist/components/rich-text-editor/index.js +1 -1
  39. package/dist/components/tasks-panel/index.js +1 -1
  40. package/dist/core.css +1 -1
  41. package/dist/find-free-slots-panel/index.js +1 -1
  42. package/dist/host-compat.css +7 -1
  43. package/dist/i18n/locales/ar.d.ts +0 -1
  44. package/dist/i18n/locales/ar.js +1 -2
  45. package/dist/i18n/locales/de.d.ts +0 -1
  46. package/dist/i18n/locales/de.js +1 -2
  47. package/dist/i18n/locales/el.d.ts +0 -1
  48. package/dist/i18n/locales/el.js +1 -2
  49. package/dist/i18n/locales/en.d.ts +0 -1
  50. package/dist/i18n/locales/en.js +1 -2
  51. package/dist/i18n/locales/es.d.ts +0 -1
  52. package/dist/i18n/locales/es.js +1 -2
  53. package/dist/i18n/locales/fr.d.ts +0 -1
  54. package/dist/i18n/locales/fr.js +1 -2
  55. package/dist/i18n/locales/hi.d.ts +0 -1
  56. package/dist/i18n/locales/hi.js +1 -2
  57. package/dist/i18n/locales/it.d.ts +0 -1
  58. package/dist/i18n/locales/it.js +1 -2
  59. package/dist/i18n/locales/ja.d.ts +0 -1
  60. package/dist/i18n/locales/ja.js +1 -2
  61. package/dist/i18n/locales/nl.d.ts +0 -1
  62. package/dist/i18n/locales/nl.js +1 -2
  63. package/dist/i18n/locales/pl.d.ts +0 -1
  64. package/dist/i18n/locales/pl.js +1 -2
  65. package/dist/i18n/locales/pt.d.ts +0 -1
  66. package/dist/i18n/locales/pt.js +1 -2
  67. package/dist/i18n/locales/ro.d.ts +0 -1
  68. package/dist/i18n/locales/ro.js +1 -2
  69. package/dist/i18n/locales/ru.d.ts +0 -1
  70. package/dist/i18n/locales/ru.js +1 -2
  71. package/dist/i18n/locales/sq.d.ts +0 -1
  72. package/dist/i18n/locales/sq.js +1 -2
  73. package/dist/i18n/locales/sv.d.ts +0 -1
  74. package/dist/i18n/locales/sv.js +1 -2
  75. package/dist/i18n/locales/tr.d.ts +0 -1
  76. package/dist/i18n/locales/tr.js +1 -2
  77. package/dist/i18n/locales/zh.d.ts +0 -1
  78. package/dist/i18n/locales/zh.js +1 -2
  79. package/dist/index.js +17 -17
  80. package/dist/locales/ar.json +1 -2
  81. package/dist/locales/de.json +1 -2
  82. package/dist/locales/el.json +1 -2
  83. package/dist/locales/en.json +1 -2
  84. package/dist/locales/es.json +1 -2
  85. package/dist/locales/fr.json +1 -2
  86. package/dist/locales/hi.json +1 -2
  87. package/dist/locales/it.json +1 -2
  88. package/dist/locales/ja.json +1 -2
  89. package/dist/locales/nl.json +1 -2
  90. package/dist/locales/pl.json +1 -2
  91. package/dist/locales/pt.json +1 -2
  92. package/dist/locales/ro.json +1 -2
  93. package/dist/locales/ru.json +1 -2
  94. package/dist/locales/sq.json +1 -2
  95. package/dist/locales/sv.json +1 -2
  96. package/dist/locales/tr.json +1 -2
  97. package/dist/locales/zh.json +1 -2
  98. package/dist/online-bookings-panel/index.js +1 -1
  99. package/dist/patterns/calendar/index.js +2 -2
  100. package/dist/patterns/prescription/index.d.ts +1 -1
  101. package/dist/patterns/prescription/index.js +1 -1
  102. package/dist/patterns/prescription/prescription-history.d.ts +28 -0
  103. package/dist/tokens.css +1 -1
  104. package/dist/waiting-list-panel/index.js +2 -2
  105. package/package.json +1 -1
  106. package/dist/_chunks/button-group-N60L3HMa.js +0 -408
  107. package/dist/_chunks/editable-description-BQauSuCG.js +0 -142
  108. package/dist/_chunks/prescription-history-CFs3JMIE.js +0 -1773
@@ -5830,8 +5830,7 @@
5830
5830
  "changeSet": "{{field}}: {{to}} (prima nessun valore)",
5831
5831
  "changeCleared": "{{field}}: nessun valore (prima {{from}})",
5832
5832
  "notSet": "Nessun valore",
5833
- "minutes": "{{n}} min",
5834
- "notRecorded": "Il dettaglio della modifica non è stato registrato."
5833
+ "minutes": "{{n}} min"
5835
5834
  },
5836
5835
  "documentScope": {
5837
5836
  "title": "Per quali visite è questo documento?",
@@ -5827,8 +5827,7 @@
5827
5827
  "changeSet": "{{field}}: {{to}} を設定(変更前は未設定)",
5828
5828
  "changeCleared": "{{field}}: 削除(変更前は {{from}})",
5829
5829
  "notSet": "未設定",
5830
- "minutes": "{{n}}分",
5831
- "notRecorded": "変更内容は記録されていません。"
5830
+ "minutes": "{{n}}分"
5832
5831
  },
5833
5832
  "documentScope": {
5834
5833
  "title": "どの来院が対象ですか?",
@@ -5827,8 +5827,7 @@
5827
5827
  "changeSet": "{{field}}: ingesteld op {{to}}, was leeg",
5828
5828
  "changeCleared": "{{field}}: gewist, was {{from}}",
5829
5829
  "notSet": "Niet opgegeven",
5830
- "minutes": "{{n}} min",
5831
- "notRecorded": "De details van de wijziging zijn niet vastgelegd."
5830
+ "minutes": "{{n}} min"
5832
5831
  },
5833
5832
  "documentScope": {
5834
5833
  "title": "Voor welke afspraken is dit?",
@@ -5833,8 +5833,7 @@
5833
5833
  "changeSet": "{{field}}: ustawiono na {{to}}, wcześniej puste",
5834
5834
  "changeCleared": "{{field}}: usunięto, wcześniej {{from}}",
5835
5835
  "notSet": "Nie określono",
5836
- "minutes": "{{n}} min",
5837
- "notRecorded": "Szczegóły zmiany nie zostały zarejestrowane."
5836
+ "minutes": "{{n}} min"
5838
5837
  },
5839
5838
  "documentScope": {
5840
5839
  "title": "Których wizyt dotyczy dokument?",
@@ -5833,8 +5833,7 @@
5833
5833
  "changeSet": "{{field}}: valor definido como {{to}}",
5834
5834
  "changeCleared": "{{field}}: valor removido, antes {{from}}",
5835
5835
  "notSet": "Não especificado",
5836
- "minutes": "{{n}} min",
5837
- "notRecorded": "O detalhe da alteração não foi registado."
5836
+ "minutes": "{{n}} min"
5838
5837
  },
5839
5838
  "documentScope": {
5840
5839
  "title": "A que consultas se aplica?",
@@ -5830,8 +5830,7 @@
5830
5830
  "changeSet": "{{field}}: valoare setată la {{to}}",
5831
5831
  "changeCleared": "{{field}}: valoare ștearsă, anterior {{from}}",
5832
5832
  "notSet": "Nespecificat",
5833
- "minutes": "{{n}} min",
5834
- "notRecorded": "Detaliile modificării nu au fost înregistrate."
5833
+ "minutes": "{{n}} min"
5835
5834
  },
5836
5835
  "documentScope": {
5837
5836
  "title": "Pentru ce vizite este acesta?",
@@ -5833,8 +5833,7 @@
5833
5833
  "changeSet": "{{field}}: установлено значение {{to}}, ранее было пусто",
5834
5834
  "changeCleared": "{{field}}: значение очищено, ранее было {{from}}",
5835
5835
  "notSet": "Не указано",
5836
- "minutes": "{{n}} мин",
5837
- "notRecorded": "Подробности изменения не были зафиксированы."
5836
+ "minutes": "{{n}} мин"
5838
5837
  },
5839
5838
  "documentScope": {
5840
5839
  "title": "К каким визитам это относится?",
@@ -5827,8 +5827,7 @@
5827
5827
  "changeSet": "{{field}}: u vendos në {{to}}, më parë bosh",
5828
5828
  "changeCleared": "{{field}}: u fshi, më parë {{from}}",
5829
5829
  "notSet": "E paspecifikuar",
5830
- "minutes": "{{n}} min",
5831
- "notRecorded": "Detajet e ndryshimit nuk u regjistruan."
5830
+ "minutes": "{{n}} min"
5832
5831
  },
5833
5832
  "documentScope": {
5834
5833
  "title": "Për cilat vizita është ky?",
@@ -5827,8 +5827,7 @@
5827
5827
  "changeSet": "{{field}}: satt till {{to}}, tidigare tomt",
5828
5828
  "changeCleared": "{{field}}: borttaget, tidigare {{from}}",
5829
5829
  "notSet": "Ej angivet",
5830
- "minutes": "{{n}} min",
5831
- "notRecorded": "Detaljerna för ändringen registrerades inte."
5830
+ "minutes": "{{n}} min"
5832
5831
  },
5833
5832
  "documentScope": {
5834
5833
  "title": "Vilka besök gäller det?",
@@ -5827,8 +5827,7 @@
5827
5827
  "changeSet": "{{field}}: {{to}} olarak ayarlandı, önceden boştu",
5828
5828
  "changeCleared": "{{field}}: temizlendi, önceki değer {{from}}",
5829
5829
  "notSet": "Belirtilmedi",
5830
- "minutes": "{{n}} dk",
5831
- "notRecorded": "Değişikliğin ayrıntıları kaydedilmedi."
5830
+ "minutes": "{{n}} dk"
5832
5831
  },
5833
5832
  "documentScope": {
5834
5833
  "title": "Bu hangi ziyaretler için?",
@@ -5827,8 +5827,7 @@
5827
5827
  "changeSet": "{{field}}:设置为 {{to}},此前为空",
5828
5828
  "changeCleared": "{{field}}:已清除,此前为 {{from}}",
5829
5829
  "notSet": "未指定",
5830
- "minutes": "{{n}} 分钟",
5831
- "notRecorded": "未记录此次更改的详细信息。"
5830
+ "minutes": "{{n}} 分钟"
5832
5831
  },
5833
5832
  "documentScope": {
5834
5833
  "title": "适用于哪些就诊?",
@@ -2,7 +2,7 @@ import { jsx as n } from "react/jsx-runtime";
2
2
  import { useState as h, useMemo as g } from "react";
3
3
  import { a as k } from "../_chunks/tooltip-uEBdD1-5.js";
4
4
  import { C as v } from "../_chunks/calendar-editor-guard-9fShhNIA.js";
5
- import { S as B, B as O } from "../_chunks/calendar.sheets-CCvdZF-R.js";
5
+ import { S as B, B as O } from "../_chunks/calendar.sheets-DsgPdycU.js";
6
6
  import { c as P, o as S } from "../_chunks/calendar-workspace.model-4zmA3BFE.js";
7
7
  function A({
8
8
  rows: e,
@@ -1,7 +1,7 @@
1
- import { A as r, C as s, i as o } from "../../_chunks/calendar-appointment-editor-dialog-sY-k0GGW.js";
1
+ import { A as r, C as s, i as o } from "../../_chunks/calendar-appointment-editor-dialog-Cz8F2H4M.js";
2
2
  import { C, a as S, b as E } from "../../_chunks/calendar-editor-discard-host-DWS_kM-a.js";
3
3
  import { C as i, u as A } from "../../_chunks/calendar-editor-guard-9fShhNIA.js";
4
- import { C as d, S as p, u as D } from "../../_chunks/calendar.sheets-CCvdZF-R.js";
4
+ import { C as d, S as p, u as D } from "../../_chunks/calendar.sheets-DsgPdycU.js";
5
5
  import { C as _, D as m, a as O, V as f, W as L, b as R, m as W, r as c, u as I } from "../../_chunks/calendar-workspace.model-4zmA3BFE.js";
6
6
  export {
7
7
  r as AppointmentEditorDialog,
@@ -3,7 +3,7 @@ export type { PrescriptionComposerProps, PrescriptionComposerHandle, } from './p
3
3
  export { PrescriptionSheet } from './prescription-sheet';
4
4
  export type { PrescriptionSheetProps, PrescriptionSheetHandle, PrescriptionSheetAction, } from './prescription-sheet';
5
5
  export { PrescriptionHistory } from './prescription-history';
6
- export type { PrescriptionHistoryProps } from './prescription-history';
6
+ export type { PrescriptionHistoryProps, PrescriptionHistoryNewAction, } from './prescription-history';
7
7
  export { validatePrescriptionDraft, isPrescriptionDraftValid, normalisePrescriptionDraft, isBlankPrescriptionItem, } from './prescription-validation';
8
8
  export type { PrescriptionDraftErrors, PrescriptionItemErrors, PrescriptionFieldError, PrescriptionValidationOptions, } from './prescription-validation';
9
9
  export { createEmptyPrescriptionDraft, EMPTY_PRESCRIPTION_ITEM, } from './prescription-types';
@@ -1,4 +1,4 @@
1
- import { E as s, P as a, a as t, b as e, c as o, i as P, d as n, n as p, v as c } from "../../_chunks/prescription-history-CFs3JMIE.js";
1
+ import { E as s, P as a, a as t, b as e, c as o, i as P, d as n, n as p, v as c } from "../../_chunks/prescription-history-CQuJmd4H.js";
2
2
  export {
3
3
  s as EMPTY_PRESCRIPTION_ITEM,
4
4
  a as PrescriptionComposer,
@@ -11,6 +11,12 @@
11
11
  */
12
12
  import { type HTMLAttributes } from 'react';
13
13
  import type { PrescriptionRecord } from './prescription-types';
14
+ /** The list's main action, drawn as the first button of the tools group. */
15
+ export interface PrescriptionHistoryNewAction {
16
+ /** The host's label. It is the button's tooltip and accessible name. */
17
+ label: string;
18
+ onClick: () => void;
19
+ }
14
20
  export interface PrescriptionHistoryProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
15
21
  /** Saved prescriptions, in any order. Shown newest first until the user sorts. */
16
22
  records: readonly PrescriptionRecord[];
@@ -42,6 +48,28 @@ export interface PrescriptionHistoryProps extends Omit<HTMLAttributes<HTMLDivEle
42
48
  * record has a `sendStatus`, so a host that sends nothing sees neither.
43
49
  */
44
50
  showSendStatus?: boolean;
51
+ /**
52
+ * The title. When given and non-empty (an empty string counts as not
53
+ * given), the history draws the page-header split of the
54
+ * kit's index pages: the heading on the inline-start, the quick search and
55
+ * the tools group on the inline-end, all on the page background, and the
56
+ * grid gets no toolbar of its own. The host supplies the text.
57
+ */
58
+ heading?: string;
59
+ /**
60
+ * 1 is the page's own title: an h1 in the page-title type. 2 is a section
61
+ * of a page: an h2 in the section-title type. Only matters with `heading`.
62
+ * Default 2.
63
+ */
64
+ headingLevel?: 1 | 2;
65
+ /** One line under the heading, in the muted colour. Only with `heading`. */
66
+ description?: string;
67
+ /**
68
+ * The list's main action, drawn as the first button of the tools group: a
69
+ * primary icon button with a Plus icon, `label` as its tooltip and
70
+ * accessible name, and `data-action="new"`. The host supplies the label.
71
+ */
72
+ newAction?: PrescriptionHistoryNewAction;
45
73
  id?: string;
46
74
  }
47
75
  export declare const PrescriptionHistory: import("react").ForwardRefExoticComponent<PrescriptionHistoryProps & import("react").RefAttributes<HTMLDivElement>>;