@alfadocs/ui-kit 1.110.0 → 1.112.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 (104) hide show
  1. package/dist/_chunks/{anamnesis-summary-rows-QhbDdY7b.js → anamnesis-summary-rows-BrTx7diS.js} +2 -2
  2. package/dist/_chunks/{calculator-dialog-BsVVb8cT.js → calculator-dialog-D4TyJwqy.js} +2 -2
  3. package/dist/_chunks/{calendar-appointment-editor-dialog-D8DblVjW.js → calendar-appointment-editor-dialog-Oc3Df8O3.js} +4 -4
  4. package/dist/_chunks/data-grid.agent-CASyEAnb.js +1773 -0
  5. package/dist/_chunks/{dialog-C7RWaH08.js → dialog-BTjSQjdY.js} +17 -16
  6. package/dist/_chunks/{file-manager-BDKe59sg.js → file-manager-CVxBE4yy.js} +2 -2
  7. package/dist/_chunks/{help-me-write-templates-YmceSxf5.js → help-me-write-templates-CWxgjDZl.js} +2 -2
  8. package/dist/_chunks/{kit-extensions-BOnTM4Yf.js → kit-extensions-VaJ-u44J.js} +47 -22
  9. package/dist/_chunks/muscle-scheme-C2B6v14o.js +3276 -0
  10. package/dist/_chunks/{notes-panel-SlzUL8in.js → notes-panel-Cz621DWV.js} +3 -3
  11. package/dist/_chunks/{radiograph-panel.agent-0ngF2sGS.js → radiograph-panel.agent-CXah49KM.js} +2 -2
  12. package/dist/_chunks/{rich-text-editor-C3nANKZt.js → rich-text-editor-BLS2cK-u.js} +2 -2
  13. package/dist/_chunks/{signature-request-opW0fQ5P.js → signature-request-DJwdPji_.js} +2 -2
  14. package/dist/_chunks/{task-editor-CmXcj6cC.js → task-editor-jqRf2JP6.js} +2 -2
  15. package/dist/_chunks/{widget-picker-DNYIqRT1.js → widget-picker-U4JsEhQE.js} +2 -2
  16. package/dist/ag-grid.css +0 -10
  17. package/dist/agent-catalog.json +66 -9
  18. package/dist/components/calculator-dialog/index.js +1 -1
  19. package/dist/components/data-grid/data-grid.agent.d.ts +3 -0
  20. package/dist/components/data-grid/data-grid.d.ts +28 -0
  21. package/dist/components/data-grid/index.d.ts +4 -0
  22. package/dist/components/data-grid/index.js +6 -0
  23. package/dist/components/dialog/dialog.d.ts +2 -2
  24. package/dist/components/dialog/index.js +1 -1
  25. package/dist/components/file-manager/index.js +1 -1
  26. package/dist/components/index.d.ts +1 -0
  27. package/dist/components/muscle-scheme/index.d.ts +3 -3
  28. package/dist/components/muscle-scheme/index.js +14 -12
  29. package/dist/components/muscle-scheme/muscle-fibres.d.ts +3 -0
  30. package/dist/components/muscle-scheme/muscle-outlines.d.ts +19 -0
  31. package/dist/components/muscle-scheme/muscle-scheme-data.d.ts +96 -2
  32. package/dist/components/muscle-scheme/muscle-scheme.d.ts +39 -3
  33. package/dist/components/muscle-scheme/reproductive-female.d.ts +3 -0
  34. package/dist/components/muscle-scheme/reproductive-male.d.ts +3 -0
  35. package/dist/components/notes-panel/index.js +1 -1
  36. package/dist/components/radiograph-panel/index.js +1 -1
  37. package/dist/components/rich-text-editor/index.js +2 -2
  38. package/dist/components/task-editor/index.js +1 -1
  39. package/dist/components/widget-picker/index.js +1 -1
  40. package/dist/core.css +1 -1
  41. package/dist/host-compat.css +9 -1
  42. package/dist/host-legacy.css +17 -1
  43. package/dist/i18n/locales/ar.d.ts +140 -0
  44. package/dist/i18n/locales/ar.js +100 -2
  45. package/dist/i18n/locales/de.d.ts +140 -0
  46. package/dist/i18n/locales/de.js +91 -2
  47. package/dist/i18n/locales/el.d.ts +140 -0
  48. package/dist/i18n/locales/el.js +106 -2
  49. package/dist/i18n/locales/en.d.ts +140 -0
  50. package/dist/i18n/locales/en.js +82 -2
  51. package/dist/i18n/locales/es.d.ts +140 -0
  52. package/dist/i18n/locales/es.js +97 -2
  53. package/dist/i18n/locales/fr.d.ts +140 -0
  54. package/dist/i18n/locales/fr.js +88 -2
  55. package/dist/i18n/locales/hi.d.ts +140 -0
  56. package/dist/i18n/locales/hi.js +85 -2
  57. package/dist/i18n/locales/it.d.ts +140 -0
  58. package/dist/i18n/locales/it.js +100 -2
  59. package/dist/i18n/locales/ja.d.ts +140 -0
  60. package/dist/i18n/locales/ja.js +58 -2
  61. package/dist/i18n/locales/nl.d.ts +140 -0
  62. package/dist/i18n/locales/nl.js +82 -2
  63. package/dist/i18n/locales/pl.d.ts +140 -0
  64. package/dist/i18n/locales/pl.js +106 -2
  65. package/dist/i18n/locales/pt.d.ts +140 -0
  66. package/dist/i18n/locales/pt.js +97 -2
  67. package/dist/i18n/locales/ro.d.ts +140 -0
  68. package/dist/i18n/locales/ro.js +97 -2
  69. package/dist/i18n/locales/ru.d.ts +140 -0
  70. package/dist/i18n/locales/ru.js +121 -2
  71. package/dist/i18n/locales/sq.d.ts +140 -0
  72. package/dist/i18n/locales/sq.js +100 -2
  73. package/dist/i18n/locales/sv.d.ts +140 -0
  74. package/dist/i18n/locales/sv.js +76 -2
  75. package/dist/i18n/locales/tr.d.ts +140 -0
  76. package/dist/i18n/locales/tr.js +76 -2
  77. package/dist/i18n/locales/zh.d.ts +140 -0
  78. package/dist/i18n/locales/zh.js +58 -2
  79. package/dist/index.js +984 -979
  80. package/dist/locales/ar.json +142 -2
  81. package/dist/locales/de.json +142 -2
  82. package/dist/locales/el.json +142 -2
  83. package/dist/locales/en.json +142 -2
  84. package/dist/locales/es.json +142 -2
  85. package/dist/locales/fr.json +142 -2
  86. package/dist/locales/hi.json +142 -2
  87. package/dist/locales/it.json +142 -2
  88. package/dist/locales/ja.json +142 -2
  89. package/dist/locales/nl.json +142 -2
  90. package/dist/locales/pl.json +142 -2
  91. package/dist/locales/pt.json +142 -2
  92. package/dist/locales/ro.json +142 -2
  93. package/dist/locales/ru.json +142 -2
  94. package/dist/locales/sq.json +142 -2
  95. package/dist/locales/sv.json +142 -2
  96. package/dist/locales/tr.json +142 -2
  97. package/dist/locales/zh.json +142 -2
  98. package/dist/patterns/anamnesis/index.js +1 -1
  99. package/dist/patterns/calendar/index.js +1 -1
  100. package/dist/patterns/help-me-write-templates/index.js +1 -1
  101. package/dist/patterns/signature-request/index.js +1 -1
  102. package/dist/tokens.css +1 -6
  103. package/package.json +6 -1
  104. package/dist/_chunks/muscle-scheme-CznhrQlo.js +0 -1706
@@ -6,9 +6,20 @@ export interface MuscleSchemeProps {
6
6
  figure?: FigureVariant;
7
7
  /**
8
8
  * Explicit view ids to expose. When more than one, they render as tabs.
9
- * Defaults to the front + back pair for `figure`.
9
+ * Defaults to muscle front/back and the organ-only view for adults.
10
+ * Children expose only muscle front/back.
10
11
  */
11
12
  views?: MuscleViewId[];
13
+ /**
14
+ * Controlled active view. Pair with `onViewChange`; the host keeps its own
15
+ * sub-area (the platform's `body_front` / `body_back`) in step through
16
+ * each view's `kind`.
17
+ */
18
+ view?: MuscleViewId;
19
+ /** Uncontrolled initial view. Defaults to the first resolved view. */
20
+ defaultView?: MuscleViewId;
21
+ /** Fired when the clinician (or an agent) switches view. */
22
+ onViewChange?: (viewId: MuscleViewId) => void;
12
23
  /** `'interactive'` enables region selection + finding edits; `'display'` is read-only. */
13
24
  mode?: MuscleSchemeMode;
14
25
  /** Controlled findings — `Record<regionId, MuscleFinding[]>`. */
@@ -19,6 +30,15 @@ export interface MuscleSchemeProps {
19
30
  onChange?: (next: MuscleChart) => void;
20
31
  /** Fired when a region is activated (click / Enter / Space / focus-select). */
21
32
  onSelectRegion?: (regionId: string, viewId: MuscleViewId) => void;
33
+ /**
34
+ * Host-owned selection: the region ids to show as selected. Passing it puts
35
+ * the chart in selection mode — each region reports `aria-pressed` for its
36
+ * selection, not its findings. One id for a "pick a region, then add a
37
+ * finding" flow (the platform's diagnosis tab); several for a multi-select
38
+ * (the diagnosis configuration's element picker). The host updates it from
39
+ * `onSelectRegion`.
40
+ */
41
+ selectedRegions?: string[];
22
42
  /**
23
43
  * The finding type a region-click applies in interactive mode (the selected
24
44
  * tool in a finding picker). Clicking a region toggles this finding.
@@ -26,11 +46,20 @@ export interface MuscleSchemeProps {
26
46
  activeFinding?: FindingType;
27
47
  /** Show the finding-type legend below the figure. Default `false`. */
28
48
  legend?: boolean;
49
+ /**
50
+ * Show the labelled organ targets below an organ view (`--min-target-size`
51
+ * controls naming every organ). Default `true` whenever regions are
52
+ * selectable. Turn it off only when the host already lists the regions with
53
+ * targets of at least `--min-target-size`: a narrow organ (the urethra, a
54
+ * vas deferens) is no larger target on the figure itself.
55
+ */
56
+ regionList?: boolean;
29
57
  /**
30
58
  * Base URL for realistic muscle illustrations, served per-view as
31
59
  * `${illustrationBaseUrl}/${viewId}.svg` (e.g. `…/muscular-front.svg`).
32
- * When set, each view renders that illustration as the figure and the regions
33
- * become transparent CLICK HOTSPOTS layered over it; when unset, the kit's
60
+ * When set, each view renders that illustration as the figure and its muscle
61
+ * regions become transparent CLICK HOTSPOTS. Organ art stays visible.
62
+ * When unset, the kit's
34
63
  * built-in muscle art is the fallback. The art is NOT bundled in the kit — host
35
64
  * it (CDN) and pass the base here, mirroring `ToothScheme`'s `assetBaseUrl`.
36
65
  * Trusted developer-controlled value, interpolated into an SVG `<image href>`
@@ -62,5 +91,12 @@ export interface MuscleSchemeHandle {
62
91
  /** Read the active view id. */
63
92
  getView: () => MuscleViewId;
64
93
  }
94
+ /**
95
+ * Translated region names for host surfaces outside the chart: the selected
96
+ * element summary, a findings list, a configuration picker. Returns
97
+ * `(regionId, figure?) => "Left ovary"`, in the kit's own translations, or the
98
+ * id itself for an unknown region (never an empty string).
99
+ */
100
+ export declare function useMuscleRegionLabel(): (regionId: string, figure?: FigureVariant) => string;
65
101
  export declare const MuscleScheme: import("react").ForwardRefExoticComponent<MuscleSchemeProps & import("react").RefAttributes<MuscleSchemeHandle>>;
66
102
  //# sourceMappingURL=muscle-scheme.d.ts.map
@@ -0,0 +1,3 @@
1
+ import type { OrganArt } from './muscle-scheme-data';
2
+ export declare const FEMALE_PELVIS: OrganArt;
3
+ //# sourceMappingURL=reproductive-female.d.ts.map
@@ -0,0 +1,3 @@
1
+ import type { OrganArt } from './muscle-scheme-data';
2
+ export declare const MALE_PELVIS: OrganArt;
3
+ //# sourceMappingURL=reproductive-male.d.ts.map
@@ -1,4 +1,4 @@
1
- import { N as a } from "../../_chunks/notes-panel-SlzUL8in.js";
1
+ import { N as a } from "../../_chunks/notes-panel-Cz621DWV.js";
2
2
  export {
3
3
  a as NotesPanel
4
4
  };
@@ -1,4 +1,4 @@
1
- import { R as o, I as e, r as n } from "../../_chunks/radiograph-panel.agent-0ngF2sGS.js";
1
+ import { R as o, I as e, r as n } from "../../_chunks/radiograph-panel.agent-CXah49KM.js";
2
2
  export {
3
3
  o as RadiographPanel,
4
4
  e as RadiographPanelIcon,
@@ -1,5 +1,5 @@
1
- import { R as i, r as o, w as a } from "../../_chunks/rich-text-editor-C3nANKZt.js";
2
- import { k as s } from "../../_chunks/kit-extensions-BOnTM4Yf.js";
1
+ import { R as i, r as o, w as a } from "../../_chunks/rich-text-editor-BLS2cK-u.js";
2
+ import { k as s } from "../../_chunks/kit-extensions-VaJ-u44J.js";
3
3
  export {
4
4
  i as RichTextEditor,
5
5
  s as kitEditorExtensions,
@@ -1,4 +1,4 @@
1
- import { T as o, t as r } from "../../_chunks/task-editor-CmXcj6cC.js";
1
+ import { T as o, t as r } from "../../_chunks/task-editor-jqRf2JP6.js";
2
2
  export {
3
3
  o as TaskEditor,
4
4
  r as taskEditorAgent
@@ -1,4 +1,4 @@
1
- import { W as r, w as t } from "../../_chunks/widget-picker-DNYIqRT1.js";
1
+ import { W as r, w as t } from "../../_chunks/widget-picker-U4JsEhQE.js";
2
2
  export {
3
3
  r as WidgetPicker,
4
4
  t as widgetPickerAgent