@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.
- package/dist/_chunks/{anamnesis-summary-rows-QhbDdY7b.js → anamnesis-summary-rows-BrTx7diS.js} +2 -2
- package/dist/_chunks/{calculator-dialog-BsVVb8cT.js → calculator-dialog-D4TyJwqy.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-D8DblVjW.js → calendar-appointment-editor-dialog-Oc3Df8O3.js} +4 -4
- package/dist/_chunks/data-grid.agent-CASyEAnb.js +1773 -0
- package/dist/_chunks/{dialog-C7RWaH08.js → dialog-BTjSQjdY.js} +17 -16
- package/dist/_chunks/{file-manager-BDKe59sg.js → file-manager-CVxBE4yy.js} +2 -2
- package/dist/_chunks/{help-me-write-templates-YmceSxf5.js → help-me-write-templates-CWxgjDZl.js} +2 -2
- package/dist/_chunks/{kit-extensions-BOnTM4Yf.js → kit-extensions-VaJ-u44J.js} +47 -22
- package/dist/_chunks/muscle-scheme-C2B6v14o.js +3276 -0
- package/dist/_chunks/{notes-panel-SlzUL8in.js → notes-panel-Cz621DWV.js} +3 -3
- package/dist/_chunks/{radiograph-panel.agent-0ngF2sGS.js → radiograph-panel.agent-CXah49KM.js} +2 -2
- package/dist/_chunks/{rich-text-editor-C3nANKZt.js → rich-text-editor-BLS2cK-u.js} +2 -2
- package/dist/_chunks/{signature-request-opW0fQ5P.js → signature-request-DJwdPji_.js} +2 -2
- package/dist/_chunks/{task-editor-CmXcj6cC.js → task-editor-jqRf2JP6.js} +2 -2
- package/dist/_chunks/{widget-picker-DNYIqRT1.js → widget-picker-U4JsEhQE.js} +2 -2
- package/dist/ag-grid.css +0 -10
- package/dist/agent-catalog.json +66 -9
- package/dist/components/calculator-dialog/index.js +1 -1
- package/dist/components/data-grid/data-grid.agent.d.ts +3 -0
- package/dist/components/data-grid/data-grid.d.ts +28 -0
- package/dist/components/data-grid/index.d.ts +4 -0
- package/dist/components/data-grid/index.js +6 -0
- package/dist/components/dialog/dialog.d.ts +2 -2
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/muscle-scheme/index.d.ts +3 -3
- package/dist/components/muscle-scheme/index.js +14 -12
- package/dist/components/muscle-scheme/muscle-fibres.d.ts +3 -0
- package/dist/components/muscle-scheme/muscle-outlines.d.ts +19 -0
- package/dist/components/muscle-scheme/muscle-scheme-data.d.ts +96 -2
- package/dist/components/muscle-scheme/muscle-scheme.d.ts +39 -3
- package/dist/components/muscle-scheme/reproductive-female.d.ts +3 -0
- package/dist/components/muscle-scheme/reproductive-male.d.ts +3 -0
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +2 -2
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/widget-picker/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/host-compat.css +9 -1
- package/dist/host-legacy.css +17 -1
- package/dist/i18n/locales/ar.d.ts +140 -0
- package/dist/i18n/locales/ar.js +100 -2
- package/dist/i18n/locales/de.d.ts +140 -0
- package/dist/i18n/locales/de.js +91 -2
- package/dist/i18n/locales/el.d.ts +140 -0
- package/dist/i18n/locales/el.js +106 -2
- package/dist/i18n/locales/en.d.ts +140 -0
- package/dist/i18n/locales/en.js +82 -2
- package/dist/i18n/locales/es.d.ts +140 -0
- package/dist/i18n/locales/es.js +97 -2
- package/dist/i18n/locales/fr.d.ts +140 -0
- package/dist/i18n/locales/fr.js +88 -2
- package/dist/i18n/locales/hi.d.ts +140 -0
- package/dist/i18n/locales/hi.js +85 -2
- package/dist/i18n/locales/it.d.ts +140 -0
- package/dist/i18n/locales/it.js +100 -2
- package/dist/i18n/locales/ja.d.ts +140 -0
- package/dist/i18n/locales/ja.js +58 -2
- package/dist/i18n/locales/nl.d.ts +140 -0
- package/dist/i18n/locales/nl.js +82 -2
- package/dist/i18n/locales/pl.d.ts +140 -0
- package/dist/i18n/locales/pl.js +106 -2
- package/dist/i18n/locales/pt.d.ts +140 -0
- package/dist/i18n/locales/pt.js +97 -2
- package/dist/i18n/locales/ro.d.ts +140 -0
- package/dist/i18n/locales/ro.js +97 -2
- package/dist/i18n/locales/ru.d.ts +140 -0
- package/dist/i18n/locales/ru.js +121 -2
- package/dist/i18n/locales/sq.d.ts +140 -0
- package/dist/i18n/locales/sq.js +100 -2
- package/dist/i18n/locales/sv.d.ts +140 -0
- package/dist/i18n/locales/sv.js +76 -2
- package/dist/i18n/locales/tr.d.ts +140 -0
- package/dist/i18n/locales/tr.js +76 -2
- package/dist/i18n/locales/zh.d.ts +140 -0
- package/dist/i18n/locales/zh.js +58 -2
- package/dist/index.js +984 -979
- package/dist/locales/ar.json +142 -2
- package/dist/locales/de.json +142 -2
- package/dist/locales/el.json +142 -2
- package/dist/locales/en.json +142 -2
- package/dist/locales/es.json +142 -2
- package/dist/locales/fr.json +142 -2
- package/dist/locales/hi.json +142 -2
- package/dist/locales/it.json +142 -2
- package/dist/locales/ja.json +142 -2
- package/dist/locales/nl.json +142 -2
- package/dist/locales/pl.json +142 -2
- package/dist/locales/pt.json +142 -2
- package/dist/locales/ro.json +142 -2
- package/dist/locales/ru.json +142 -2
- package/dist/locales/sq.json +142 -2
- package/dist/locales/sv.json +142 -2
- package/dist/locales/tr.json +142 -2
- package/dist/locales/zh.json +142 -2
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/help-me-write-templates/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/tokens.css +1 -6
- package/package.json +6 -1
- 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
|
|
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
|
|
33
|
-
* become transparent CLICK HOTSPOTS
|
|
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
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as i, r as o, w as a } from "../../_chunks/rich-text-editor-
|
|
2
|
-
import { k as s } from "../../_chunks/kit-extensions-
|
|
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,
|