@alfadocs/ui-kit 1.139.0 → 1.140.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 (130) hide show
  1. package/dist/_chunks/{anamnesis-summary-rows-BgfBnjp0.js → anamnesis-summary-rows-YJGs2uWD.js} +2 -2
  2. package/dist/_chunks/{balance-badge-cell-CRrIv2hy.js → balance-badge-cell-CRStPNDd.js} +2 -2
  3. package/dist/_chunks/{bill-line-table-DCqxhode.js → bill-line-table-DTqXdBED.js} +2 -2
  4. package/dist/_chunks/{bmi-calculator-rri5vvMt.js → bmi-calculator-rq3ZsKp0.js} +2 -2
  5. package/dist/_chunks/{calendar-appointment-editor-dialog-GdnaPIOV.js → calendar-appointment-editor-dialog-BBrJlmyd.js} +4 -4
  6. package/dist/_chunks/{calendar-waiting-list-panel-CkZBAv_E.js → calendar-waiting-list-panel-Cdg9YssA.js} +2 -2
  7. package/dist/_chunks/{calendar.sheets-B0jP2Yt0.js → calendar.sheets-DbMOO7YV.js} +2 -2
  8. package/dist/_chunks/{cycle-calculator-WFhMfJHt.js → cycle-calculator-Cb66X2Pf.js} +2 -2
  9. package/dist/_chunks/{data-grid-bQ6iFm10.js → data-grid-CRUSZcVT.js} +2 -2
  10. package/dist/_chunks/{default-tabs-Dm_vk6hd.js → default-tabs-CRbVCDSU.js} +3 -3
  11. package/dist/_chunks/{due-date-calculator-CALlODZe.js → due-date-calculator-Dlqegxx9.js} +2 -2
  12. package/dist/_chunks/{fetal-weight-D0KofJJw.js → fetal-weight-DWj-_ME8.js} +2 -2
  13. package/dist/_chunks/{hcg-doubling-Dhdt3Jyd.js → hcg-doubling-Dqbj6PQj.js} +2 -2
  14. package/dist/_chunks/{invoice-upload-list-Dz3CXHPP.js → invoice-upload-list-BR6vycF7.js} +3 -3
  15. package/dist/_chunks/{kit-extensions-BB_ksnVl.js → kit-extensions-QddOSnIq.js} +6 -6
  16. package/dist/_chunks/{link-cell-renderer-CSA0KKPe.js → link-cell-renderer-hAJplRFF.js} +2 -2
  17. package/dist/_chunks/medication-line-BohqbCYD.js +238 -0
  18. package/dist/_chunks/{number-input-DUSvP7Dq.js → number-input-Bi5Yk6PX.js} +135 -133
  19. package/dist/_chunks/{optical-prescription-C4jpDFOE.js → optical-prescription-GzeK_2cf.js} +2 -2
  20. package/dist/_chunks/{patient-details-DQTxSWY4.js → patient-details-D0PjzALT.js} +2 -2
  21. package/dist/_chunks/{patient-field-row-CXuWQeQJ.js → patient-field-row-DlpIModg.js} +2 -2
  22. package/dist/_chunks/{patient-summary-card-j5u7c5Us.js → patient-summary-card-BP_K7g_q.js} +2 -2
  23. package/dist/_chunks/{pregnancy-dating-C-3NLI6K.js → pregnancy-dating-a6WIg4oy.js} +2 -2
  24. package/dist/_chunks/{pregnancy-weight-gain-DkGcEc_l.js → pregnancy-weight-gain-DmrVHk9y.js} +2 -2
  25. package/dist/_chunks/prescription-history-Bp_JHhdF.js +1719 -0
  26. package/dist/_chunks/{print-sheet-CSeqkM3_.js → print-sheet-gaxObGcm.js} +110 -100
  27. package/dist/_chunks/{toolbar-Dz_hAUIZ.js → toolbar-B7UHCMSr.js} +2 -2
  28. package/dist/_chunks/{unit-converter-CBy7S4Tl.js → unit-converter-OBhSDXee.js} +2 -2
  29. package/dist/_chunks/{use-appointment-details-read-CBSpX4DI.js → use-appointment-details-read-DeQnmmZw.js} +2 -2
  30. package/dist/agent-catalog.json +8 -14
  31. package/dist/agent-i18n/en.json +3 -3
  32. package/dist/appointment-editor-panel/index.js +1 -1
  33. package/dist/browser-support.js +1 -1
  34. package/dist/components/appointment-details-panel/index.js +1 -1
  35. package/dist/components/bill-line-table/index.js +1 -1
  36. package/dist/components/bill-table/index.js +1 -1
  37. package/dist/components/bmi-calculator/index.js +1 -1
  38. package/dist/components/cycle-calculator/index.js +1 -1
  39. package/dist/components/data-grid/index.js +2 -2
  40. package/dist/components/data-table/index.js +1 -1
  41. package/dist/components/due-date-calculator/index.js +1 -1
  42. package/dist/components/fetal-weight/index.js +1 -1
  43. package/dist/components/hcg-doubling/index.js +1 -1
  44. package/dist/components/invoice-upload-list/index.js +1 -1
  45. package/dist/components/medication-line/index.js +1 -1
  46. package/dist/components/medication-line/medication-line.d.ts +6 -0
  47. package/dist/components/number-input/index.js +1 -1
  48. package/dist/components/optical-prescription/index.js +1 -1
  49. package/dist/components/patient-details/index.js +1 -1
  50. package/dist/components/patient-summary-card/index.js +1 -1
  51. package/dist/components/patient-table/index.js +1 -1
  52. package/dist/components/pregnancy-dating/index.js +1 -1
  53. package/dist/components/pregnancy-weight-gain/index.js +1 -1
  54. package/dist/components/print-sheet/index.js +1 -1
  55. package/dist/components/print-sheet/print-sheet.d.ts +7 -0
  56. package/dist/components/rich-text-editor/index.js +1 -1
  57. package/dist/components/unit-converter/index.js +1 -1
  58. package/dist/core.css +1 -1
  59. package/dist/find-free-slots-panel/index.js +1 -1
  60. package/dist/host-compat.css +6 -1
  61. package/dist/i18n/locales/ar.d.ts +27 -10
  62. package/dist/i18n/locales/ar.js +32 -15
  63. package/dist/i18n/locales/de.d.ts +27 -10
  64. package/dist/i18n/locales/de.js +32 -15
  65. package/dist/i18n/locales/el.d.ts +27 -10
  66. package/dist/i18n/locales/el.js +32 -15
  67. package/dist/i18n/locales/en.d.ts +27 -10
  68. package/dist/i18n/locales/en.js +32 -15
  69. package/dist/i18n/locales/es.d.ts +27 -10
  70. package/dist/i18n/locales/es.js +32 -15
  71. package/dist/i18n/locales/fr.d.ts +27 -10
  72. package/dist/i18n/locales/fr.js +32 -15
  73. package/dist/i18n/locales/hi.d.ts +27 -10
  74. package/dist/i18n/locales/hi.js +32 -15
  75. package/dist/i18n/locales/it.d.ts +27 -10
  76. package/dist/i18n/locales/it.js +32 -15
  77. package/dist/i18n/locales/ja.d.ts +27 -10
  78. package/dist/i18n/locales/ja.js +32 -15
  79. package/dist/i18n/locales/nl.d.ts +27 -10
  80. package/dist/i18n/locales/nl.js +32 -15
  81. package/dist/i18n/locales/pl.d.ts +27 -10
  82. package/dist/i18n/locales/pl.js +32 -15
  83. package/dist/i18n/locales/pt.d.ts +27 -10
  84. package/dist/i18n/locales/pt.js +32 -15
  85. package/dist/i18n/locales/ro.d.ts +27 -10
  86. package/dist/i18n/locales/ro.js +32 -15
  87. package/dist/i18n/locales/ru.d.ts +27 -10
  88. package/dist/i18n/locales/ru.js +32 -15
  89. package/dist/i18n/locales/sq.d.ts +27 -10
  90. package/dist/i18n/locales/sq.js +32 -15
  91. package/dist/i18n/locales/sv.d.ts +27 -10
  92. package/dist/i18n/locales/sv.js +32 -15
  93. package/dist/i18n/locales/tr.d.ts +27 -10
  94. package/dist/i18n/locales/tr.js +32 -15
  95. package/dist/i18n/locales/zh.d.ts +27 -10
  96. package/dist/i18n/locales/zh.js +32 -15
  97. package/dist/index.js +27 -27
  98. package/dist/locales/ar.json +32 -15
  99. package/dist/locales/de.json +32 -15
  100. package/dist/locales/el.json +32 -15
  101. package/dist/locales/en.json +32 -15
  102. package/dist/locales/es.json +32 -15
  103. package/dist/locales/fr.json +32 -15
  104. package/dist/locales/hi.json +32 -15
  105. package/dist/locales/it.json +32 -15
  106. package/dist/locales/ja.json +32 -15
  107. package/dist/locales/nl.json +32 -15
  108. package/dist/locales/pl.json +32 -15
  109. package/dist/locales/pt.json +32 -15
  110. package/dist/locales/ro.json +32 -15
  111. package/dist/locales/ru.json +32 -15
  112. package/dist/locales/sq.json +32 -15
  113. package/dist/locales/sv.json +32 -15
  114. package/dist/locales/tr.json +32 -15
  115. package/dist/locales/zh.json +32 -15
  116. package/dist/online-bookings-panel/index.js +1 -1
  117. package/dist/patterns/anamnesis/index.js +1 -1
  118. package/dist/patterns/calendar/index.js +2 -2
  119. package/dist/patterns/prescription/index.d.ts +1 -1
  120. package/dist/patterns/prescription/index.js +1 -1
  121. package/dist/patterns/prescription/prescription-composer-item.d.ts +8 -1
  122. package/dist/patterns/prescription/prescription-composer.d.ts +14 -9
  123. package/dist/patterns/prescription/prescription-sheet.d.ts +23 -4
  124. package/dist/patterns/prescription/prescription-types.d.ts +35 -10
  125. package/dist/patterns/prescription/prescription-validation.d.ts +17 -11
  126. package/dist/tokens.css +1 -1
  127. package/dist/waiting-list-panel/index.js +2 -2
  128. package/package.json +1 -1
  129. package/dist/_chunks/medication-line-CHdlh-F7.js +0 -222
  130. package/dist/_chunks/prescription-history-748qDVwZ.js +0 -1544
@@ -1,4 +1,4 @@
1
- import { B as S, a as T, b as a, c as I, d as B, e as s, f as A, g as E, h as O, i as l, j as D, k as N, l as e, m as U, u as R } from "../../_chunks/default-tabs-Dm_vk6hd.js";
1
+ import { B as S, a as T, b as a, c as I, d as B, e as s, f as A, g as E, h as O, i as l, j as D, k as N, l as e, m as U, u as R } from "../../_chunks/default-tabs-CRbVCDSU.js";
2
2
  export {
3
3
  S as BILL_ACTION_DISABLED_REASONS,
4
4
  T as BILL_COUNTERPARTY_KINDS,
@@ -1,4 +1,4 @@
1
- import { B as m } from "../../_chunks/bmi-calculator-rri5vvMt.js";
1
+ import { B as m } from "../../_chunks/bmi-calculator-rq3ZsKp0.js";
2
2
  import { b as e, a as t, c as r, d as T, e as c, f as i, i as b, k as n, l as f } from "../../_chunks/bmi-BxD-tFzU.js";
3
3
  export {
4
4
  m as BmiCalculator,
@@ -1,4 +1,4 @@
1
- import { C as e, L as l, p as r } from "../../_chunks/cycle-calculator-WFhMfJHt.js";
1
+ import { C as e, L as l, p as r } from "../../_chunks/cycle-calculator-Cb66X2Pf.js";
2
2
  export {
3
3
  e as CycleCalculator,
4
4
  l as LUTEAL_PHASE_DAYS,
@@ -1,5 +1,5 @@
1
- import { D as _, a as D, b as r, c as E, d as I, e as T, f as G } from "../../_chunks/data-grid-bQ6iFm10.js";
2
- import { D as s, a as R } from "../../_chunks/toolbar-Dz_hAUIZ.js";
1
+ import { D as _, a as D, b as r, c as E, d as I, e as T, f as G } from "../../_chunks/data-grid-CRUSZcVT.js";
2
+ import { D as s, a as R } from "../../_chunks/toolbar-B7UHCMSr.js";
3
3
  export {
4
4
  _ as DATA_GRID_DEFAULT_PAGE_SIZE,
5
5
  D as DATA_GRID_MAX_SORT_LEVELS,
@@ -1,6 +1,6 @@
1
1
  import { D as r, E as l, T as t, a as s, b as d, c as o, d as n, e as i, f as R, i as C, g as T } from "../../_chunks/data-table-CnLfOwxg.js";
2
2
  import { B as g, C as D, a as b, E as x, b as c, R as p, T as u, c as f, r as m, u as E, w as h } from "../../_chunks/editable-currency-cell-renderer-CZMQ5xRT.js";
3
- import { D as S, a as A, b as I, I as y, L, N, c as P, S as W, d as B, e as U, T as _, f as k, g as v, U as H } from "../../_chunks/link-cell-renderer-CSA0KKPe.js";
3
+ import { D as S, a as A, b as I, I as y, L, N, c as P, S as W, d as B, e as U, T as _, f as k, g as v, U as H } from "../../_chunks/link-cell-renderer-hAJplRFF.js";
4
4
  import { A as X, a as j } from "../../_chunks/actions-cell-renderer-C-l_ppP6.js";
5
5
  export {
6
6
  X as ActionsCellRenderer,
@@ -1,4 +1,4 @@
1
- import { D as e } from "../../_chunks/due-date-calculator-CALlODZe.js";
1
+ import { D as e } from "../../_chunks/due-date-calculator-Dlqegxx9.js";
2
2
  import { C as r, a as o, D, G as _, M as T, T as M, c as E, b as l, g as C, p as A, r as N, d as i, t as n } from "../../_chunks/antenatal-schedule-timeline-XHbig8On.js";
3
3
  export {
4
4
  r as CRL_DATING_MAX_MM,
@@ -1,4 +1,4 @@
1
- import { F as a, e as i } from "../../_chunks/fetal-weight-D0KofJJw.js";
1
+ import { F as a, e as i } from "../../_chunks/fetal-weight-DWj-_ME8.js";
2
2
  export {
3
3
  a as FetalWeight,
4
4
  i as estimateFetalWeight
@@ -1,4 +1,4 @@
1
- import { H, M as g, a as o } from "../../_chunks/hcg-doubling-Dhdt3Jyd.js";
1
+ import { H, M as g, a as o } from "../../_chunks/hcg-doubling-Dqbj6PQj.js";
2
2
  export {
3
3
  H as HcgDoubling,
4
4
  g as MINIMAL_48H_RISE_PERCENT,
@@ -1,4 +1,4 @@
1
- import { I as O, a, b as L, c as N, d as s, i as S } from "../../_chunks/invoice-upload-list-Dz3CXHPP.js";
1
+ import { I as O, a, b as L, c as N, d as s, i as S } from "../../_chunks/invoice-upload-list-BR6vycF7.js";
2
2
  export {
3
3
  O as INVOICE_DOCUMENT_KINDS,
4
4
  a as INVOICE_SUPPLIER_KINDS,
@@ -1,4 +1,4 @@
1
- import { M as a, a as n, m as t } from "../../_chunks/medication-line-CHdlh-F7.js";
1
+ import { M as a, a as n, m as t } from "../../_chunks/medication-line-BohqbCYD.js";
2
2
  export {
3
3
  a as MedicationLine,
4
4
  n as MedicationLineList,
@@ -10,6 +10,12 @@ export interface MedicationLineProps extends Omit<HTMLAttributes<HTMLElement>, '
10
10
  dosage: string;
11
11
  /** Optional free-text notes. */
12
12
  notes?: string;
13
+ /** Number of packs, shown as a labelled value. Omitted: nothing is shown. */
14
+ quantity?: number;
15
+ /** Duration of therapy as the prescriber wrote it, for example "6 days". */
16
+ duration?: string;
17
+ /** True: shows the statement "Not substitutable", as text in a neutral badge. */
18
+ notSubstitutable?: boolean;
13
19
  /**
14
20
  * Short label printed before `medication.code`, for example "AIC". Not
15
21
  * translated by the kit. Falls back to `medicationSearch.codeFallbackLabel`.
@@ -1,4 +1,4 @@
1
- import { N as r, u as a } from "../../_chunks/number-input-DUSvP7Dq.js";
1
+ import { N as r, u as a } from "../../_chunks/number-input-Bi5Yk6PX.js";
2
2
  export {
3
3
  r as NumberInput,
4
4
  a as useLocaleNumber
@@ -1,4 +1,4 @@
1
- import { A as S, a as r, b as A, c as e, d as I, e as _, C as t, f as E, g as o, D as M, h as i, E as P, L as N, O as R, P as m, i as D, j as n, k as f, l, R as X, S as C, m as d, n as p, o as T, p as c, q as L, r as O, s as Y, t as g, u as x, v as B, w as u, x as w, y, z as H, B as b, F as h } from "../../_chunks/optical-prescription-C4jpDFOE.js";
1
+ import { A as S, a as r, b as A, c as e, d as I, e as _, C as t, f as E, g as o, D as M, h as i, E as P, L as N, O as R, P as m, i as D, j as n, k as f, l, R as X, S as C, m as d, n as p, o as T, p as c, q as L, r as O, s as Y, t as g, u as x, v as B, w as u, x as w, y, z as H, B as b, F as h } from "../../_chunks/optical-prescription-GzeK_2cf.js";
2
2
  export {
3
3
  S as ADD_MAX,
4
4
  r as ADD_MIN,
@@ -1,4 +1,4 @@
1
- import { P as e, p as i } from "../../_chunks/patient-details-DQTxSWY4.js";
1
+ import { P as e, p as i } from "../../_chunks/patient-details-D0PjzALT.js";
2
2
  export {
3
3
  e as PatientDetails,
4
4
  i as patientDetailsAgent
@@ -1,4 +1,4 @@
1
- import { P as t, p as m } from "../../_chunks/patient-summary-card-j5u7c5Us.js";
1
+ import { P as t, p as m } from "../../_chunks/patient-summary-card-BP_K7g_q.js";
2
2
  export {
3
3
  t as PatientSummaryCard,
4
4
  m as patientSummaryCardAgent
@@ -1,4 +1,4 @@
1
- import { B as s, C as l, N as n, P as t, a as C, T as i, b as o, g as T, u as p } from "../../_chunks/balance-badge-cell-CRrIv2hy.js";
1
+ import { B as s, C as l, N as n, P as t, a as C, T as i, b as o, g as T, u as p } from "../../_chunks/balance-badge-cell-CRStPNDd.js";
2
2
  export {
3
3
  s as BalanceBadgeCell,
4
4
  l as CarePlanStatusCell,
@@ -1,4 +1,4 @@
1
- import { P as r } from "../../_chunks/pregnancy-dating-C-3NLI6K.js";
1
+ import { P as r } from "../../_chunks/pregnancy-dating-a6WIg4oy.js";
2
2
  export {
3
3
  r as PregnancyDating
4
4
  };
@@ -1,4 +1,4 @@
1
- import { P as n, R as s, T as i, a as g, p as r, r as t } from "../../_chunks/pregnancy-weight-gain-DkGcEc_l.js";
1
+ import { P as n, R as s, T as i, a as g, p as r, r as t } from "../../_chunks/pregnancy-weight-gain-DmrVHk9y.js";
2
2
  export {
3
3
  n as PregnancyWeightGain,
4
4
  s as RATE_BANDS,
@@ -1,4 +1,4 @@
1
- import { P as r, p as n } from "../../_chunks/print-sheet-CSeqkM3_.js";
1
+ import { P as r, p as n } from "../../_chunks/print-sheet-gaxObGcm.js";
2
2
  export {
3
3
  r as PrintSheet,
4
4
  n as printSheetAgent
@@ -47,6 +47,13 @@ export interface PrintSheetProps extends Omit<HTMLAttributes<HTMLElement>, 'titl
47
47
  */
48
48
  'aria-label'?: string;
49
49
  id?: string;
50
+ /**
51
+ * Register this sheet with the agent runtime. Default true. A pattern that
52
+ * wraps the sheet and has its own print rules (a prescription that must not
53
+ * be printed by the kit) passes false, so the runtime cannot print around
54
+ * them.
55
+ */
56
+ registerAgent?: boolean;
50
57
  /** The body of the document. */
51
58
  children: ReactNode;
52
59
  }
@@ -1,5 +1,5 @@
1
1
  import { R as i, r as o, w as a } from "../../_chunks/rich-text-editor-DFsH5RAj.js";
2
- import { k as s } from "../../_chunks/kit-extensions-BB_ksnVl.js";
2
+ import { k as s } from "../../_chunks/kit-extensions-QddOSnIq.js";
3
3
  export {
4
4
  i as RichTextEditor,
5
5
  s as kitEditorExtensions,
@@ -1,4 +1,4 @@
1
- import { C as r, U as t, a as U, b as e, c as n } from "../../_chunks/unit-converter-CBy7S4Tl.js";
1
+ import { C as r, U as t, a as U, b as e, c as n } from "../../_chunks/unit-converter-OBhSDXee.js";
2
2
  export {
3
3
  r as CATEGORIES,
4
4
  t as UNITS,