@alfadocs/ui-kit-debug 1.111.0 → 1.112.1
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/{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-1BZd1-RE.js +3280 -0
- package/dist/_chunks/muscle-scheme-1BZd1-RE.js.map +1 -0
- package/dist/agent-catalog.json +14 -22
- 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/rich-text-editor/index.js +1 -1
- package/dist/components/rich-text-editor/kit-extensions.d.ts.map +1 -1
- package/dist/core.css +1 -1
- package/dist/host-compat.css +9 -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 +469 -467
- 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/tokens.css +1 -1
- package/package.json +1 -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
package/dist/agent-catalog.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"packageVersion": "1.
|
|
3
|
+
"packageVersion": "1.112.1",
|
|
4
4
|
"components": [
|
|
5
5
|
{
|
|
6
6
|
"kind": "component",
|
|
@@ -8135,7 +8135,7 @@
|
|
|
8135
8135
|
"properties": {
|
|
8136
8136
|
"regionId": {
|
|
8137
8137
|
"type": "string",
|
|
8138
|
-
"description": "
|
|
8138
|
+
"description": "Region id within the active view, e.g. 'quadriceps-r', 'biceps-l', 'chest-r', 'trapezius-l'. The female body view muscular-front-female also has breast-l and breast-r. The organ-only reproductive-female view has vulva, vagina, cervix, uterus, ovary-l, ovary-r, fallopian-tube-l, fallopian-tube-r, bladder and urethra. The organ-only reproductive-male view has penis, scrotum, testis-l, testis-r, prostate, bladder, urethra, epididymis-l, epididymis-r, vas-deferens-l, vas-deferens-r, seminal-vesicle-l and seminal-vesicle-r. Child views have no organ regions."
|
|
8139
8139
|
}
|
|
8140
8140
|
},
|
|
8141
8141
|
"required": [
|
|
@@ -8155,7 +8155,7 @@
|
|
|
8155
8155
|
"properties": {
|
|
8156
8156
|
"regionId": {
|
|
8157
8157
|
"type": "string",
|
|
8158
|
-
"description": "
|
|
8158
|
+
"description": "Region id within the active view, e.g. 'quadriceps-r', 'biceps-l', 'chest-r', 'trapezius-l'. The female body view muscular-front-female also has breast-l and breast-r. The organ-only reproductive-female view has vulva, vagina, cervix, uterus, ovary-l, ovary-r, fallopian-tube-l, fallopian-tube-r, bladder and urethra. The organ-only reproductive-male view has penis, scrotum, testis-l, testis-r, prostate, bladder, urethra, epididymis-l, epididymis-r, vas-deferens-l, vas-deferens-r, seminal-vesicle-l and seminal-vesicle-r. Child views have no organ regions."
|
|
8159
8159
|
}
|
|
8160
8160
|
},
|
|
8161
8161
|
"required": [
|
|
@@ -8216,7 +8216,7 @@
|
|
|
8216
8216
|
"type": "array",
|
|
8217
8217
|
"items": {
|
|
8218
8218
|
"type": "string",
|
|
8219
|
-
"description": "
|
|
8219
|
+
"description": "Region id within the active view, e.g. 'quadriceps-r', 'biceps-l', 'chest-r', 'trapezius-l'. The female body view muscular-front-female also has breast-l and breast-r. The organ-only reproductive-female view has vulva, vagina, cervix, uterus, ovary-l, ovary-r, fallopian-tube-l, fallopian-tube-r, bladder and urethra. The organ-only reproductive-male view has penis, scrotum, testis-l, testis-r, prostate, bladder, urethra, epididymis-l, epididymis-r, vas-deferens-l, vas-deferens-r, seminal-vesicle-l and seminal-vesicle-r. Child views have no organ regions."
|
|
8220
8220
|
}
|
|
8221
8221
|
},
|
|
8222
8222
|
"idempotent": true,
|
|
@@ -8232,7 +8232,7 @@
|
|
|
8232
8232
|
"properties": {
|
|
8233
8233
|
"regionId": {
|
|
8234
8234
|
"type": "string",
|
|
8235
|
-
"description": "
|
|
8235
|
+
"description": "Region id within the active view, e.g. 'quadriceps-r', 'biceps-l', 'chest-r', 'trapezius-l'. The female body view muscular-front-female also has breast-l and breast-r. The organ-only reproductive-female view has vulva, vagina, cervix, uterus, ovary-l, ovary-r, fallopian-tube-l, fallopian-tube-r, bladder and urethra. The organ-only reproductive-male view has penis, scrotum, testis-l, testis-r, prostate, bladder, urethra, epididymis-l, epididymis-r, vas-deferens-l, vas-deferens-r, seminal-vesicle-l and seminal-vesicle-r. Child views have no organ regions."
|
|
8236
8236
|
},
|
|
8237
8237
|
"type": {
|
|
8238
8238
|
"enum": [
|
|
@@ -8265,7 +8265,7 @@
|
|
|
8265
8265
|
"properties": {
|
|
8266
8266
|
"regionId": {
|
|
8267
8267
|
"type": "string",
|
|
8268
|
-
"description": "
|
|
8268
|
+
"description": "Region id within the active view, e.g. 'quadriceps-r', 'biceps-l', 'chest-r', 'trapezius-l'. The female body view muscular-front-female also has breast-l and breast-r. The organ-only reproductive-female view has vulva, vagina, cervix, uterus, ovary-l, ovary-r, fallopian-tube-l, fallopian-tube-r, bladder and urethra. The organ-only reproductive-male view has penis, scrotum, testis-l, testis-r, prostate, bladder, urethra, epididymis-l, epididymis-r, vas-deferens-l, vas-deferens-r, seminal-vesicle-l and seminal-vesicle-r. Child views have no organ regions."
|
|
8269
8269
|
},
|
|
8270
8270
|
"type": {
|
|
8271
8271
|
"enum": [
|
|
@@ -8295,7 +8295,7 @@
|
|
|
8295
8295
|
"properties": {
|
|
8296
8296
|
"regionId": {
|
|
8297
8297
|
"type": "string",
|
|
8298
|
-
"description": "
|
|
8298
|
+
"description": "Region id within the active view, e.g. 'quadriceps-r', 'biceps-l', 'chest-r', 'trapezius-l'. The female body view muscular-front-female also has breast-l and breast-r. The organ-only reproductive-female view has vulva, vagina, cervix, uterus, ovary-l, ovary-r, fallopian-tube-l, fallopian-tube-r, bladder and urethra. The organ-only reproductive-male view has penis, scrotum, testis-l, testis-r, prostate, bladder, urethra, epididymis-l, epididymis-r, vas-deferens-l, vas-deferens-r, seminal-vesicle-l and seminal-vesicle-r. Child views have no organ regions."
|
|
8299
8299
|
}
|
|
8300
8300
|
},
|
|
8301
8301
|
"required": [
|
|
@@ -8315,7 +8315,7 @@
|
|
|
8315
8315
|
"properties": {
|
|
8316
8316
|
"viewId": {
|
|
8317
8317
|
"type": "string",
|
|
8318
|
-
"description": "View id
|
|
8318
|
+
"description": "View id: 'muscular-front', 'muscular-back', 'muscular-front-female', 'muscular-back-female', 'muscular-front-child', 'muscular-back-child', 'reproductive-female' or 'reproductive-male'. Reproductive views (kind 'pelvis') contain only organs; the others show the body from the front or back. Switch to the relevant view before focusing an organ region. When the host controls the view, it decides whether the switch happens."
|
|
8319
8319
|
}
|
|
8320
8320
|
},
|
|
8321
8321
|
"required": [
|
|
@@ -8339,7 +8339,7 @@
|
|
|
8339
8339
|
},
|
|
8340
8340
|
"item": {
|
|
8341
8341
|
"attr": "data-region",
|
|
8342
|
-
"description": "Each rendered region `<g>` carries its region id as `data-region` and its anatomical side (`left` / `right` / `midline`) as `data-side`, so bilateral regions can be disambiguated by side
|
|
8342
|
+
"description": "Each rendered region `<g>` carries its region id as `data-region` and its anatomical side (`left` / `right` / `midline`) as `data-side`, so bilateral regions can be disambiguated by side; a host-selected region also carries `data-selected`. The root `data-view` and `data-view-kind` attributes expose the active view and what it depicts (`front` / `back` / `pelvis`)."
|
|
8343
8343
|
}
|
|
8344
8344
|
}
|
|
8345
8345
|
},
|
|
@@ -19627,23 +19627,15 @@
|
|
|
19627
19627
|
},
|
|
19628
19628
|
{
|
|
19629
19629
|
"component": "money",
|
|
19630
|
-
"as": "
|
|
19630
|
+
"as": "materialUnitCost"
|
|
19631
19631
|
},
|
|
19632
19632
|
{
|
|
19633
|
-
"component": "
|
|
19634
|
-
"as": "
|
|
19635
|
-
},
|
|
19636
|
-
{
|
|
19637
|
-
"component": "form-field",
|
|
19638
|
-
"as": "hoursField"
|
|
19639
|
-
},
|
|
19640
|
-
{
|
|
19641
|
-
"component": "number-input",
|
|
19642
|
-
"as": "yearlyHours"
|
|
19633
|
+
"component": "button",
|
|
19634
|
+
"as": "apply"
|
|
19643
19635
|
},
|
|
19644
19636
|
{
|
|
19645
|
-
"component": "
|
|
19646
|
-
"as": "
|
|
19637
|
+
"component": "live-region",
|
|
19638
|
+
"as": "ebitAnnouncement"
|
|
19647
19639
|
}
|
|
19648
19640
|
],
|
|
19649
19641
|
"workflows": []
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { MuscleScheme } from './muscle-scheme';
|
|
1
|
+
export { MuscleScheme, useMuscleRegionLabel } from './muscle-scheme';
|
|
2
2
|
export type { MuscleSchemeProps, MuscleSchemeHandle } from './muscle-scheme';
|
|
3
|
-
export { MUSCLE_VIEWS, DEFAULT_MUSCLE_VIEW, FINDING_TYPES, FINDING_MARKER, getView, viewsForFigure, getRegion, regionCentroid, figureFromPatient, emptyChart as emptyMuscleChart, } from './muscle-scheme-data';
|
|
4
|
-
export type { MuscleViewId, MuscleView, MuscleRegion, MuscleChart, MuscleFinding, MuscleSchemeMode, RegionSide, FigureVariant, FindingType, RegionShape, } from './muscle-scheme-data';
|
|
3
|
+
export { MUSCLE_VIEWS, DEFAULT_MUSCLE_VIEW, FINDING_TYPES, FINDING_MARKER, getView, viewsForFigure, getRegion, findRegionView, regionCentroid, figureFromPatient, emptyChart as emptyMuscleChart, } from './muscle-scheme-data';
|
|
4
|
+
export type { MuscleViewId, MuscleView, MuscleViewKind, AnatomyTissue, AnatomyPaint, AnatomyDetail, OrganArt, MuscleRegion, MuscleChart, MuscleFinding, MuscleSchemeMode, RegionSide, FigureVariant, FindingType, RegionShape, } from './muscle-scheme-data';
|
|
5
5
|
export { muscleSchemeAgent } from './muscle-scheme.agent';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/muscle-scheme/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/muscle-scheme/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AACrE,YAAY,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC7E,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,aAAa,EACb,cAAc,EACd,OAAO,EACP,cAAc,EACd,SAAS,EACT,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,UAAU,IAAI,gBAAgB,GAC/B,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EACV,YAAY,EACZ,UAAU,EACV,cAAc,EACd,aAAa,EACb,YAAY,EACZ,aAAa,EACb,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,aAAa,EACb,gBAAgB,EAChB,UAAU,EACV,aAAa,EACb,WAAW,EACX,WAAW,GACZ,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import { D as a, F as
|
|
1
|
+
import { D as a, F as i, a as g, M as r, b as o, e as t, f as n, c as u, g as c, d as m, m as E, r as F, u as M, v as I } from "../../_chunks/muscle-scheme-1BZd1-RE.js";
|
|
2
2
|
export {
|
|
3
3
|
a as DEFAULT_MUSCLE_VIEW,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
4
|
+
i as FINDING_MARKER,
|
|
5
|
+
g as FINDING_TYPES,
|
|
6
|
+
r as MUSCLE_VIEWS,
|
|
7
|
+
o as MuscleScheme,
|
|
8
|
+
t as emptyMuscleChart,
|
|
9
|
+
n as figureFromPatient,
|
|
10
|
+
u as findRegionView,
|
|
11
|
+
c as getRegion,
|
|
12
|
+
m as getView,
|
|
13
|
+
E as muscleSchemeAgent,
|
|
14
|
+
F as regionCentroid,
|
|
15
|
+
M as useMuscleRegionLabel,
|
|
16
|
+
I as viewsForFigure
|
|
15
17
|
};
|
|
16
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"muscle-fibres.d.ts","sourceRoot":"","sources":["../../../src/components/muscle-scheme/muscle-fibres.ts"],"names":[],"mappings":"AAYA,MAAM,MAAM,cAAc,GACtB,YAAY,GACZ,WAAW,GACX,cAAc,GACd,aAAa,CAAC;AAElB,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAmQxE,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type MuscleOutlineSet = 'male-front' | 'male-back' | 'female-front' | 'female-back' | 'child-front' | 'child-back';
|
|
2
|
+
/**
|
|
3
|
+
* The child's proportions, in the male figure's coordinates: legs scaled by
|
|
4
|
+
* `legScale` about the soles, everything above `hip` (and the arms, further
|
|
5
|
+
* than `armReach` from the midline) moved down by `drop` to meet them.
|
|
6
|
+
*/
|
|
7
|
+
export declare const CHILD_PROPORTIONS: {
|
|
8
|
+
legScale: number;
|
|
9
|
+
hip: number;
|
|
10
|
+
sole: number;
|
|
11
|
+
armReach: number;
|
|
12
|
+
midline: {
|
|
13
|
+
front: number;
|
|
14
|
+
back: number;
|
|
15
|
+
};
|
|
16
|
+
drop: number;
|
|
17
|
+
};
|
|
18
|
+
export declare const MUSCLE_OUTLINES: Record<MuscleOutlineSet, string>;
|
|
19
|
+
//# sourceMappingURL=muscle-outlines.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"muscle-outlines.d.ts","sourceRoot":"","sources":["../../../src/components/muscle-scheme/muscle-outlines.ts"],"names":[],"mappings":"AAUA,MAAM,MAAM,gBAAgB,GACxB,YAAY,GACZ,WAAW,GACX,cAAc,GACd,aAAa,GACb,aAAa,GACb,YAAY,CAAC;AAEjB;;;;GAIG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;CAU7B,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAa5D,CAAC"}
|
|
@@ -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;AACzD,MAAM,MAAM,gBAAgB,GAAG,aAAa,GAAG,SAAS,CAAC;AACzD,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;AAEtD;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GACnB,aAAa,GACb,QAAQ,GACR,MAAM,GACN,WAAW,GACX,MAAM,CAAC;AAEX,eAAO,MAAM,aAAa,EAAE,WAAW,EAMtC,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,MAAM,CACjC,WAAW,EACX;IAAE,KAAK,EAAE,WAAW,CAAC;IAAC,IAAI,EAAE,UAAU,CAAA;CAAE,CAOzC,CAAC;AAEF,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,WAAW,CAAC;IAClB,kFAAkF;IAClF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AY,EACpB,QAAQ,EAAE,MAAM,GACf,YAAY,GAAG,SAAS,CAE1B;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,MAAM,EAChB,MAAM,CAAC,EAAE,aAAa,GACrB,UAAU,GAAG,SAAS,CASxB;AAED,6DAA6D;AAC7D,eAAO,MAAM,mBAAmB,EAAE,YAA+B,CAAC;AAElE;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAC/B,GAAG,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,SAAS,EAChC,QAAQ,EAAE,MAAM,GAAG,SAAS,GAC3B,aAAa,CAGf;AAED,wBAAgB,UAAU,IAAI,WAAW,CAExC"}
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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;IACtE,WAAW,CAAC,EAAE,YAAY,CAAC;IAC3B,4DAA4D;IAC5D,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IAC9C,0FAA0F;IAC1F,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB,iEAAiE;IACjE,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,qCAAqC;IACrC,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,wCAAwC;IACxC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IACvC,+EAA+E;IAC/E,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IAClE;;;;;;;OA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ACnB,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
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-
|
|
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"}
|