@alfadocs/ui-kit-debug 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/{anamnesis-summary-rows-QhbDdY7b.js.map → anamnesis-summary-rows-BrTx7diS.js.map} +1 -1
- package/dist/_chunks/{calculator-dialog-BsVVb8cT.js → calculator-dialog-D4TyJwqy.js} +2 -2
- package/dist/_chunks/{calculator-dialog-BsVVb8cT.js.map → calculator-dialog-D4TyJwqy.js.map} +1 -1
- package/dist/_chunks/{calendar-appointment-editor-dialog-D8DblVjW.js → calendar-appointment-editor-dialog-Oc3Df8O3.js} +4 -4
- package/dist/_chunks/{calendar-appointment-editor-dialog-D8DblVjW.js.map → calendar-appointment-editor-dialog-Oc3Df8O3.js.map} +1 -1
- package/dist/_chunks/data-grid.agent-CASyEAnb.js +1773 -0
- package/dist/_chunks/data-grid.agent-CASyEAnb.js.map +1 -0
- package/dist/_chunks/{dialog-C7RWaH08.js → dialog-BTjSQjdY.js} +17 -16
- package/dist/_chunks/dialog-BTjSQjdY.js.map +1 -0
- package/dist/_chunks/{file-manager-BDKe59sg.js → file-manager-CVxBE4yy.js} +2 -2
- package/dist/_chunks/{file-manager-BDKe59sg.js.map → file-manager-CVxBE4yy.js.map} +1 -1
- package/dist/_chunks/{help-me-write-templates-YmceSxf5.js → help-me-write-templates-CWxgjDZl.js} +2 -2
- package/dist/_chunks/{help-me-write-templates-YmceSxf5.js.map → help-me-write-templates-CWxgjDZl.js.map} +1 -1
- package/dist/_chunks/{kit-extensions-BOnTM4Yf.js → kit-extensions-VaJ-u44J.js} +47 -22
- package/dist/_chunks/kit-extensions-VaJ-u44J.js.map +1 -0
- package/dist/_chunks/muscle-scheme-C2B6v14o.js +3276 -0
- package/dist/_chunks/muscle-scheme-C2B6v14o.js.map +1 -0
- package/dist/_chunks/{notes-panel-SlzUL8in.js → notes-panel-Cz621DWV.js} +3 -3
- package/dist/_chunks/{notes-panel-SlzUL8in.js.map → notes-panel-Cz621DWV.js.map} +1 -1
- package/dist/_chunks/{radiograph-panel.agent-0ngF2sGS.js → radiograph-panel.agent-CXah49KM.js} +2 -2
- package/dist/_chunks/{radiograph-panel.agent-0ngF2sGS.js.map → radiograph-panel.agent-CXah49KM.js.map} +1 -1
- package/dist/_chunks/{rich-text-editor-C3nANKZt.js → rich-text-editor-BLS2cK-u.js} +2 -2
- package/dist/_chunks/{rich-text-editor-C3nANKZt.js.map → rich-text-editor-BLS2cK-u.js.map} +1 -1
- package/dist/_chunks/{signature-request-opW0fQ5P.js → signature-request-DJwdPji_.js} +2 -2
- package/dist/_chunks/{signature-request-opW0fQ5P.js.map → signature-request-DJwdPji_.js.map} +1 -1
- package/dist/_chunks/{task-editor-CmXcj6cC.js → task-editor-jqRf2JP6.js} +2 -2
- package/dist/_chunks/{task-editor-CmXcj6cC.js.map → task-editor-jqRf2JP6.js.map} +1 -1
- package/dist/_chunks/{widget-picker-DNYIqRT1.js → widget-picker-U4JsEhQE.js} +2 -2
- package/dist/_chunks/{widget-picker-DNYIqRT1.js.map → widget-picker-U4JsEhQE.js.map} +1 -1
- 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.agent.d.ts.map +1 -0
- package/dist/components/data-grid/data-grid.d.ts +28 -0
- package/dist/components/data-grid/data-grid.d.ts.map +1 -0
- package/dist/components/data-grid/index.d.ts +4 -0
- package/dist/components/data-grid/index.d.ts.map +1 -0
- package/dist/components/data-grid/index.js +6 -0
- package/dist/components/data-grid/index.js.map +1 -0
- package/dist/components/dialog/dialog.d.ts +2 -2
- package/dist/components/dialog/dialog.d.ts.map +1 -1
- 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/index.d.ts.map +1 -1
- package/dist/components/muscle-scheme/index.d.ts +3 -3
- package/dist/components/muscle-scheme/index.d.ts.map +1 -1
- 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-fibres.d.ts.map +1 -0
- package/dist/components/muscle-scheme/muscle-outlines.d.ts +19 -0
- package/dist/components/muscle-scheme/muscle-outlines.d.ts.map +1 -0
- package/dist/components/muscle-scheme/muscle-scheme-data.d.ts +96 -2
- package/dist/components/muscle-scheme/muscle-scheme-data.d.ts.map +1 -1
- package/dist/components/muscle-scheme/muscle-scheme.agent.d.ts.map +1 -1
- package/dist/components/muscle-scheme/muscle-scheme.d.ts +39 -3
- package/dist/components/muscle-scheme/muscle-scheme.d.ts.map +1 -1
- package/dist/components/muscle-scheme/reproductive-female.d.ts +3 -0
- package/dist/components/muscle-scheme/reproductive-female.d.ts.map +1 -0
- package/dist/components/muscle-scheme/reproductive-male.d.ts +3 -0
- package/dist/components/muscle-scheme/reproductive-male.d.ts.map +1 -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/rich-text-editor/kit-extensions.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- package/dist/i18n/locales/ar.js +100 -2
- package/dist/i18n/locales/ar.js.map +1 -1
- package/dist/i18n/locales/de.d.ts +140 -0
- package/dist/i18n/locales/de.d.ts.map +1 -1
- package/dist/i18n/locales/de.js +91 -2
- package/dist/i18n/locales/de.js.map +1 -1
- package/dist/i18n/locales/el.d.ts +140 -0
- package/dist/i18n/locales/el.d.ts.map +1 -1
- package/dist/i18n/locales/el.js +106 -2
- package/dist/i18n/locales/el.js.map +1 -1
- package/dist/i18n/locales/en.d.ts +140 -0
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/en.js +82 -2
- package/dist/i18n/locales/en.js.map +1 -1
- package/dist/i18n/locales/es.d.ts +140 -0
- package/dist/i18n/locales/es.d.ts.map +1 -1
- package/dist/i18n/locales/es.js +97 -2
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.d.ts +140 -0
- package/dist/i18n/locales/fr.d.ts.map +1 -1
- package/dist/i18n/locales/fr.js +88 -2
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hi.d.ts +140 -0
- package/dist/i18n/locales/hi.d.ts.map +1 -1
- package/dist/i18n/locales/hi.js +85 -2
- package/dist/i18n/locales/hi.js.map +1 -1
- package/dist/i18n/locales/it.d.ts +140 -0
- package/dist/i18n/locales/it.d.ts.map +1 -1
- package/dist/i18n/locales/it.js +100 -2
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/ja.d.ts +140 -0
- package/dist/i18n/locales/ja.d.ts.map +1 -1
- package/dist/i18n/locales/ja.js +58 -2
- package/dist/i18n/locales/ja.js.map +1 -1
- package/dist/i18n/locales/nl.d.ts +140 -0
- package/dist/i18n/locales/nl.d.ts.map +1 -1
- package/dist/i18n/locales/nl.js +82 -2
- package/dist/i18n/locales/nl.js.map +1 -1
- package/dist/i18n/locales/pl.d.ts +140 -0
- package/dist/i18n/locales/pl.d.ts.map +1 -1
- package/dist/i18n/locales/pl.js +106 -2
- package/dist/i18n/locales/pl.js.map +1 -1
- package/dist/i18n/locales/pt.d.ts +140 -0
- package/dist/i18n/locales/pt.d.ts.map +1 -1
- package/dist/i18n/locales/pt.js +97 -2
- package/dist/i18n/locales/pt.js.map +1 -1
- package/dist/i18n/locales/ro.d.ts +140 -0
- package/dist/i18n/locales/ro.d.ts.map +1 -1
- package/dist/i18n/locales/ro.js +97 -2
- package/dist/i18n/locales/ro.js.map +1 -1
- package/dist/i18n/locales/ru.d.ts +140 -0
- package/dist/i18n/locales/ru.d.ts.map +1 -1
- package/dist/i18n/locales/ru.js +121 -2
- package/dist/i18n/locales/ru.js.map +1 -1
- package/dist/i18n/locales/sq.d.ts +140 -0
- package/dist/i18n/locales/sq.d.ts.map +1 -1
- package/dist/i18n/locales/sq.js +100 -2
- package/dist/i18n/locales/sq.js.map +1 -1
- package/dist/i18n/locales/sv.d.ts +140 -0
- package/dist/i18n/locales/sv.d.ts.map +1 -1
- package/dist/i18n/locales/sv.js +76 -2
- package/dist/i18n/locales/sv.js.map +1 -1
- package/dist/i18n/locales/tr.d.ts +140 -0
- package/dist/i18n/locales/tr.d.ts.map +1 -1
- package/dist/i18n/locales/tr.js +76 -2
- package/dist/i18n/locales/tr.js.map +1 -1
- package/dist/i18n/locales/zh.d.ts +140 -0
- package/dist/i18n/locales/zh.d.ts.map +1 -1
- package/dist/i18n/locales/zh.js +58 -2
- package/dist/i18n/locales/zh.js.map +1 -1
- package/dist/index.js +984 -979
- package/dist/index.js.map +1 -1
- 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/dialog-C7RWaH08.js.map +0 -1
- package/dist/_chunks/kit-extensions-BOnTM4Yf.js.map +0 -1
- package/dist/_chunks/muscle-scheme-CznhrQlo.js +0 -1706
- package/dist/_chunks/muscle-scheme-CznhrQlo.js.map +0 -1
|
@@ -2,6 +2,8 @@ import type { MarkerShape, MarkerTone } from '../annotation-marker';
|
|
|
2
2
|
/** Muscle figure variant. `child` is the adult-male map scaled down. */
|
|
3
3
|
export type FigureVariant = 'adult-male' | 'adult-female' | 'child';
|
|
4
4
|
export type MuscleViewId = string;
|
|
5
|
+
/** What a view depicts. */
|
|
6
|
+
export type MuscleViewKind = 'front' | 'back' | 'pelvis';
|
|
5
7
|
export type MuscleSchemeMode = 'interactive' | 'display';
|
|
6
8
|
export type RegionSide = 'left' | 'right' | 'midline';
|
|
7
9
|
/**
|
|
@@ -20,6 +22,19 @@ export interface MuscleFinding {
|
|
|
20
22
|
type: FindingType;
|
|
21
23
|
/** Optional free-text clinical note. PHI — never bundle real notes in stories. */
|
|
22
24
|
note?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Host presentation overrides, for a practice-configured finding such as a
|
|
27
|
+
* platform diagnosis type. `shape` replaces the type's marker shape (the
|
|
28
|
+
* platform's circle / square / triangle symbol), `color` its tone (a CSS
|
|
29
|
+
* colour or `var(--token)`; the practice's configured colour) and `label`
|
|
30
|
+
* its translated name in the region's accessible name and tooltip (the
|
|
31
|
+
* diagnosis name). A practice has only three symbols, so two of its
|
|
32
|
+
* diagnoses can share a shape; the `label` in the region's accessible name
|
|
33
|
+
* and tooltip is what always tells them apart.
|
|
34
|
+
*/
|
|
35
|
+
shape?: MarkerShape;
|
|
36
|
+
color?: string;
|
|
37
|
+
label?: string;
|
|
23
38
|
}
|
|
24
39
|
/** Findings keyed by region id. */
|
|
25
40
|
export type MuscleChart = Record<string, MuscleFinding[]>;
|
|
@@ -43,6 +58,29 @@ export type RegionShape = {
|
|
|
43
58
|
kind: 'path';
|
|
44
59
|
d: string;
|
|
45
60
|
fillRule?: 'evenodd';
|
|
61
|
+
transform?: string;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* What a region is made of. Picks its illustration paint from the
|
|
65
|
+
* `--anatomy-*` tokens: red skeletal muscle and ivory tendon for the muscle
|
|
66
|
+
* figures; rose smooth muscle, pink mucosa, peach gland, cream gonad and
|
|
67
|
+
* duct, amber urinary tract, red erectile tissue and the one neutral skin
|
|
68
|
+
* tone for the organs.
|
|
69
|
+
*/
|
|
70
|
+
export type AnatomyTissue = 'skeletal' | 'tendon' | 'muscle' | 'mucosa' | 'gland' | 'gonad' | 'duct' | 'urinary' | 'erectile' | 'skin';
|
|
71
|
+
/**
|
|
72
|
+
* Paint for a decorative layer of the art. A tissue fills like an organ;
|
|
73
|
+
* `cavity` / `opening` are lumens, `membrane` / `fascia` / `ligament` thin
|
|
74
|
+
* connective layers, `follicle` / `trigone` small landmarks. The line paints
|
|
75
|
+
* stroke only: `fibre` a muscle's striations, `ink` an anatomical contour,
|
|
76
|
+
* `fine` texture (folds, rugae), `crease` a skin fold, `lumen` a canal, `hidden` a structure behind
|
|
77
|
+
* another (dashed, the illustrators' convention), `context` a body outline,
|
|
78
|
+
* `line` the muscle figure's own stroke (the default).
|
|
79
|
+
*/
|
|
80
|
+
export type AnatomyPaint = AnatomyTissue | 'fibre' | 'cavity' | 'opening' | 'membrane' | 'fascia' | 'ligament' | 'follicle' | 'trigone' | 'line' | 'ink' | 'fine' | 'crease' | 'lumen' | 'hidden' | 'context';
|
|
81
|
+
/** A decorative, non-interactive layer of a region or view. */
|
|
82
|
+
export type AnatomyDetail = RegionShape & {
|
|
83
|
+
paint?: AnatomyPaint;
|
|
46
84
|
};
|
|
47
85
|
export interface MuscleRegion {
|
|
48
86
|
/** Stable id, unique within a view — the finding key + `data-region`. */
|
|
@@ -50,6 +88,16 @@ export interface MuscleRegion {
|
|
|
50
88
|
/** i18n key suffix under `muscleScheme.region.*`. */
|
|
51
89
|
labelKey: string;
|
|
52
90
|
shape: RegionShape;
|
|
91
|
+
/**
|
|
92
|
+
* The tissue the region is drawn in: every built-in muscle, joint, breast
|
|
93
|
+
* and pelvic organ has one, and renders as shaded anatomical illustration.
|
|
94
|
+
* A region without one draws as neutral line art.
|
|
95
|
+
*/
|
|
96
|
+
tissue?: AnatomyTissue;
|
|
97
|
+
/** Non-interactive anatomical detail (cavities, linings, folds), drawn inside the region. */
|
|
98
|
+
details?: AnatomyDetail[];
|
|
99
|
+
/** Wider transparent pointer target for a thin structure (a duct, the urethra), in the same coordinates. */
|
|
100
|
+
hitShape?: RegionShape;
|
|
53
101
|
/** Bilateral side, where meaningful (drives "left/right" in the label). */
|
|
54
102
|
side?: RegionSide;
|
|
55
103
|
/** Optional grouping (e.g. 'upper-limb'). */
|
|
@@ -66,9 +114,40 @@ export interface MuscleView {
|
|
|
66
114
|
labelKey: string;
|
|
67
115
|
/** Which muscle figure this view is drawn on. */
|
|
68
116
|
figure: FigureVariant;
|
|
117
|
+
/**
|
|
118
|
+
* What the view depicts: the body from the front or the back, or the
|
|
119
|
+
* pelvic organs. Map it to the host's own sub-area (the platform's
|
|
120
|
+
* `body_front` / `body_back`), never parse the view id.
|
|
121
|
+
*/
|
|
122
|
+
kind: MuscleViewKind;
|
|
69
123
|
viewBox: string;
|
|
124
|
+
/** Pelvic diagrams use a wider canvas than full-body figures. */
|
|
125
|
+
presentation?: 'organs';
|
|
126
|
+
/** Non-interactive context drawn BENEATH the regions (ureters, ligaments, landmarks). */
|
|
127
|
+
backdrop?: AnatomyDetail[];
|
|
128
|
+
/** Non-interactive detail drawn ABOVE the regions, e.g. a hidden duct's dashed course. */
|
|
129
|
+
details?: AnatomyDetail[];
|
|
130
|
+
/** Panels behind separate diagrams of one view, in view coordinates. */
|
|
131
|
+
plates?: Array<{
|
|
132
|
+
x: number;
|
|
133
|
+
y: number;
|
|
134
|
+
w: number;
|
|
135
|
+
h: number;
|
|
136
|
+
}>;
|
|
137
|
+
/** Labels for separate diagrams; suffixes under muscleScheme.section.*. */
|
|
138
|
+
sections?: Array<{
|
|
139
|
+
labelKey: string;
|
|
140
|
+
x: number;
|
|
141
|
+
y: number;
|
|
142
|
+
}>;
|
|
70
143
|
/** Decorative head silhouette drawn behind the regions (`aria-hidden`). */
|
|
71
144
|
silhouette?: string;
|
|
145
|
+
/**
|
|
146
|
+
* The head as separately painted pieces (face and ears, hair, a hair tie),
|
|
147
|
+
* drawn in order over the body and under the regions. Replaces the
|
|
148
|
+
* one-colour `silhouette` when set.
|
|
149
|
+
*/
|
|
150
|
+
head?: HeadPiece[];
|
|
72
151
|
/** Optional SVG transform applied to the regions group (and the silhouette,
|
|
73
152
|
* unless `silhouetteTransform` overrides it). */
|
|
74
153
|
transform?: string;
|
|
@@ -79,21 +158,36 @@ export interface MuscleView {
|
|
|
79
158
|
* with the body `transform`, not the `silhouetteTransform` — this is what lets
|
|
80
159
|
* the child carry an enlarged head while its body stays scaled down. */
|
|
81
160
|
bodyDetail?: string;
|
|
82
|
-
/** When true, the view's regions render as transparent click hotspots (tinting
|
|
161
|
+
/** When true, the view's muscle regions render as transparent click hotspots (tinting
|
|
83
162
|
* only on hover / focus / finding) rather than filled shapes — implied when a
|
|
84
163
|
* realistic illustration is loaded over the figure. */
|
|
85
164
|
hotspotZones?: boolean;
|
|
86
165
|
regions: MuscleRegion[];
|
|
87
166
|
}
|
|
167
|
+
/** One painted piece of a figure's head. */
|
|
168
|
+
export interface HeadPiece {
|
|
169
|
+
part: 'face' | 'hair' | 'tie';
|
|
170
|
+
d: string;
|
|
171
|
+
}
|
|
172
|
+
/** The art of an organ-only view, as the reproductive-* modules export it. */
|
|
173
|
+
export type OrganArt = Pick<MuscleView, 'viewBox' | 'regions' | 'backdrop' | 'details' | 'plates' | 'sections'>;
|
|
88
174
|
export declare function regionCentroid(region: MuscleRegion): {
|
|
89
175
|
x: number;
|
|
90
176
|
y: number;
|
|
91
177
|
};
|
|
92
178
|
export declare const MUSCLE_VIEWS: Record<MuscleViewId, MuscleView>;
|
|
93
179
|
export declare function getView(id: MuscleViewId): MuscleView | undefined;
|
|
94
|
-
/**
|
|
180
|
+
/** Muscle front/back, followed by the organ-only view for adults. */
|
|
95
181
|
export declare function viewsForFigure(figure: FigureVariant): MuscleView[];
|
|
96
182
|
export declare function getRegion(viewId: MuscleViewId, regionId: string): MuscleRegion | undefined;
|
|
183
|
+
/**
|
|
184
|
+
* The view that carries a region for a figure: where a host sends the chart
|
|
185
|
+
* when the clinician opens a saved finding from a list. Falls back to any view
|
|
186
|
+
* when the figure has none (a male region on a female patient's record).
|
|
187
|
+
* A region drawn on both the front and back views (each figure shares 20 ids
|
|
188
|
+
* between them) resolves to the front view.
|
|
189
|
+
*/
|
|
190
|
+
export declare function findRegionView(regionId: string, figure?: FigureVariant): MuscleView | undefined;
|
|
97
191
|
/** Default view shown when no explicit `views` are given. */
|
|
98
192
|
export declare const DEFAULT_MUSCLE_VIEW: MuscleViewId;
|
|
99
193
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"muscle-scheme-data.d.ts","sourceRoot":"","sources":["../../../src/components/muscle-scheme/muscle-scheme-data.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"muscle-scheme-data.d.ts","sourceRoot":"","sources":["../../../src/components/muscle-scheme/muscle-scheme-data.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAiBpE,wEAAwE;AACxE,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,cAAc,GAAG,OAAO,CAAC;AAEpE,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAClC,2BAA2B;AAC3B,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;AACz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O,MAAM,iBAAiB,EAAE,YAAY,CAAC,kBAAkB,
|
|
1
|
+
{"version":3,"file":"muscle-scheme.agent.d.ts","sourceRoot":"","sources":["../../../src/components/muscle-scheme/muscle-scheme.agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAkBxD,eAAO,MAAM,iBAAiB,EAAE,YAAY,CAAC,kBAAkB,CA4K9D,CAAC;AAEF,YAAY,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"muscle-scheme.d.ts","sourceRoot":"","sources":["../../../src/components/muscle-scheme/muscle-scheme.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"muscle-scheme.d.ts","sourceRoot":"","sources":["../../../src/components/muscle-scheme/muscle-scheme.tsx"],"names":[],"mappings":"AA2CA,OAAO,EAUL,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,gBAAgB,EAGrB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,WAAW,EAEjB,MAAM,sBAAsB,CAAC;AAM9B,MAAM,WAAW,iBAAiB;IAChC,kFAAkF;IAClF,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,qDAAqD;IACrD,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB;;;;OAIG;IACH,KAAK,CAAC,EAAE,YAAY,EAAE,CAAC;IACvB;;;;OAIG;IACH,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,sEAAsE;IAC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AI,EAAE,WAAW,EAAE,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACzE,6DAA6D;IAC7D,aAAa,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IAC7D,yCAAyC;IACzC,WAAW,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,8BAA8B;IAC9B,OAAO,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IACxC,+BAA+B;IAC/B,OAAO,EAAE,MAAM,YAAY,CAAC;CAC7B;AAyBD;;;;;GAKG;AACH,wBAAgB,oBAAoB,IAAI,CACtC,QAAQ,EAAE,MAAM,EAChB,MAAM,CAAC,EAAE,aAAa,KACnB,MAAM,CAWV;AAwVD,eAAO,MAAM,YAAY,kHA0vBxB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reproductive-female.d.ts","sourceRoot":"","sources":["../../../src/components/muscle-scheme/reproductive-female.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAiBrD,eAAO,MAAM,aAAa,EAAE,QA0b3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reproductive-male.d.ts","sourceRoot":"","sources":["../../../src/components/muscle-scheme/reproductive-male.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAcrD,eAAO,MAAM,WAAW,EAAE,QAkWzB,CAAC"}
|
|
@@ -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,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kit-extensions.d.ts","sourceRoot":"","sources":["../../../src/components/rich-text-editor/kit-extensions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"kit-extensions.d.ts","sourceRoot":"","sources":["../../../src/components/rich-text-editor/kit-extensions.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,yFAAyF;AACzF,eAAO,MAAM,mBAAmB,EAAE,eAAe,EA0DhD,CAAC"}
|