@alfadocs/ui-kit-debug 0.63.0 → 0.64.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/{ai-prompt-input-C6sCr1Vi.js → ai-prompt-input-Dx8eXoPm.js} +2 -2
- package/dist/_chunks/{ai-prompt-input-C6sCr1Vi.js.map → ai-prompt-input-Dx8eXoPm.js.map} +1 -1
- package/dist/_chunks/{audio-recorder-D6OVfNiZ.js → audio-recorder-CdXuT9ln.js} +2 -2
- package/dist/_chunks/{audio-recorder-D6OVfNiZ.js.map → audio-recorder-CdXuT9ln.js.map} +1 -1
- package/dist/_chunks/{bishop-score-B9tvgoIq.js → bishop-score-CzjSx-dm.js} +2 -2
- package/dist/_chunks/{bishop-score-B9tvgoIq.js.map → bishop-score-CzjSx-dm.js.map} +1 -1
- package/dist/_chunks/{booking-BUV9fspj.js → booking-ChfvWy3P.js} +2 -2
- package/dist/_chunks/{booking-BUV9fspj.js.map → booking-ChfvWy3P.js.map} +1 -1
- package/dist/_chunks/{care-plan-card-QmNpGggC.js → care-plan-card-DhZNoXs4.js} +2 -2
- package/dist/_chunks/{care-plan-card-QmNpGggC.js.map → care-plan-card-DhZNoXs4.js.map} +1 -1
- package/dist/_chunks/{care-plan-entry-card-Cnra7vUc.js → care-plan-entry-card-DW70yBOD.js} +2 -2
- package/dist/_chunks/{care-plan-entry-card-Cnra7vUc.js.map → care-plan-entry-card-DW70yBOD.js.map} +1 -1
- package/dist/_chunks/{editable-currency-cell-renderer-D5C5tCfu.js → editable-currency-cell-renderer-BQgaKFCz.js} +2 -2
- package/dist/_chunks/{editable-currency-cell-renderer-D5C5tCfu.js.map → editable-currency-cell-renderer-BQgaKFCz.js.map} +1 -1
- package/dist/_chunks/{gestational-age-calculator-AkNFfZYs.js → gestational-age-calculator-D85E8lGN.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-AkNFfZYs.js.map → gestational-age-calculator-D85E8lGN.js.map} +1 -1
- package/dist/_chunks/{pregnancy-dating-Dg6dTe1p.js → pregnancy-dating-7NUaAfob.js} +2 -2
- package/dist/_chunks/{pregnancy-dating-Dg6dTe1p.js.map → pregnancy-dating-7NUaAfob.js.map} +1 -1
- package/dist/_chunks/{select-hsCaJSX3.js → select-CEtRcon5.js} +46 -45
- package/dist/_chunks/select-CEtRcon5.js.map +1 -0
- package/dist/_chunks/{tabs-BpPYVme_.js → tabs-BIQ0ew1T.js} +2 -2
- package/dist/_chunks/{tabs-BpPYVme_.js.map → tabs-BIQ0ew1T.js.map} +1 -1
- package/dist/_chunks/tooth-scheme-CiphQaON.js +1257 -0
- package/dist/_chunks/tooth-scheme-CiphQaON.js.map +1 -0
- package/dist/_chunks/{unit-converter-3sINXO3m.js → unit-converter-BIbXHIQA.js} +2 -2
- package/dist/_chunks/{unit-converter-3sINXO3m.js.map → unit-converter-BIbXHIQA.js.map} +1 -1
- package/dist/agent-catalog.json +41 -4
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-entry-card/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/select.d.ts +8 -0
- package/dist/components/select/select.d.ts.map +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tooth-scheme/index.d.ts +2 -2
- package/dist/components/tooth-scheme/index.d.ts.map +1 -1
- package/dist/components/tooth-scheme/index.js +22 -15
- package/dist/components/tooth-scheme/tooth-data.d.ts +79 -18
- package/dist/components/tooth-scheme/tooth-data.d.ts.map +1 -1
- package/dist/components/tooth-scheme/tooth-scheme.agent.d.ts +2 -0
- package/dist/components/tooth-scheme/tooth-scheme.agent.d.ts.map +1 -1
- package/dist/components/tooth-scheme/tooth-scheme.d.ts +48 -1
- package/dist/components/tooth-scheme/tooth-scheme.d.ts.map +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +17 -0
- package/dist/i18n/locales/ar.d.ts.map +1 -1
- package/dist/i18n/locales/ar.js +18 -1
- package/dist/i18n/locales/ar.js.map +1 -1
- package/dist/i18n/locales/de.d.ts +17 -0
- package/dist/i18n/locales/de.d.ts.map +1 -1
- package/dist/i18n/locales/de.js +18 -1
- package/dist/i18n/locales/de.js.map +1 -1
- package/dist/i18n/locales/el.d.ts +17 -0
- package/dist/i18n/locales/el.d.ts.map +1 -1
- package/dist/i18n/locales/el.js +18 -1
- package/dist/i18n/locales/el.js.map +1 -1
- package/dist/i18n/locales/en.d.ts +17 -0
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/en.js +18 -1
- package/dist/i18n/locales/en.js.map +1 -1
- package/dist/i18n/locales/es.d.ts +17 -0
- package/dist/i18n/locales/es.d.ts.map +1 -1
- package/dist/i18n/locales/es.js +18 -1
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.d.ts +17 -0
- package/dist/i18n/locales/fr.d.ts.map +1 -1
- package/dist/i18n/locales/fr.js +18 -1
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hi.d.ts +17 -0
- package/dist/i18n/locales/hi.d.ts.map +1 -1
- package/dist/i18n/locales/hi.js +18 -1
- package/dist/i18n/locales/hi.js.map +1 -1
- package/dist/i18n/locales/it.d.ts +17 -0
- package/dist/i18n/locales/it.d.ts.map +1 -1
- package/dist/i18n/locales/it.js +18 -1
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/ja.d.ts +17 -0
- package/dist/i18n/locales/ja.d.ts.map +1 -1
- package/dist/i18n/locales/ja.js +18 -1
- package/dist/i18n/locales/ja.js.map +1 -1
- package/dist/i18n/locales/nl.d.ts +17 -0
- package/dist/i18n/locales/nl.d.ts.map +1 -1
- package/dist/i18n/locales/nl.js +18 -1
- package/dist/i18n/locales/nl.js.map +1 -1
- package/dist/i18n/locales/pl.d.ts +17 -0
- package/dist/i18n/locales/pl.d.ts.map +1 -1
- package/dist/i18n/locales/pl.js +18 -1
- package/dist/i18n/locales/pl.js.map +1 -1
- package/dist/i18n/locales/pt.d.ts +17 -0
- package/dist/i18n/locales/pt.d.ts.map +1 -1
- package/dist/i18n/locales/pt.js +18 -1
- package/dist/i18n/locales/pt.js.map +1 -1
- package/dist/i18n/locales/ro.d.ts +17 -0
- package/dist/i18n/locales/ro.d.ts.map +1 -1
- package/dist/i18n/locales/ro.js +18 -1
- package/dist/i18n/locales/ro.js.map +1 -1
- package/dist/i18n/locales/ru.d.ts +17 -0
- package/dist/i18n/locales/ru.d.ts.map +1 -1
- package/dist/i18n/locales/ru.js +18 -1
- package/dist/i18n/locales/ru.js.map +1 -1
- package/dist/i18n/locales/sq.d.ts +17 -0
- package/dist/i18n/locales/sq.d.ts.map +1 -1
- package/dist/i18n/locales/sq.js +18 -1
- package/dist/i18n/locales/sq.js.map +1 -1
- package/dist/i18n/locales/sv.d.ts +17 -0
- package/dist/i18n/locales/sv.d.ts.map +1 -1
- package/dist/i18n/locales/sv.js +18 -1
- package/dist/i18n/locales/sv.js.map +1 -1
- package/dist/i18n/locales/tr.d.ts +17 -0
- package/dist/i18n/locales/tr.d.ts.map +1 -1
- package/dist/i18n/locales/tr.js +18 -1
- package/dist/i18n/locales/tr.js.map +1 -1
- package/dist/i18n/locales/zh.d.ts +17 -0
- package/dist/i18n/locales/zh.d.ts.map +1 -1
- package/dist/i18n/locales/zh.js +18 -1
- package/dist/i18n/locales/zh.js.map +1 -1
- package/dist/index.js +180 -173
- package/dist/locales/ar.json +18 -1
- package/dist/locales/de.json +18 -1
- package/dist/locales/el.json +18 -1
- package/dist/locales/en.json +18 -1
- package/dist/locales/es.json +18 -1
- package/dist/locales/fr.json +18 -1
- package/dist/locales/hi.json +18 -1
- package/dist/locales/it.json +18 -1
- package/dist/locales/ja.json +18 -1
- package/dist/locales/nl.json +18 -1
- package/dist/locales/pl.json +18 -1
- package/dist/locales/pt.json +18 -1
- package/dist/locales/ro.json +18 -1
- package/dist/locales/ru.json +18 -1
- package/dist/locales/sq.json +18 -1
- package/dist/locales/sv.json +18 -1
- package/dist/locales/tr.json +18 -1
- package/dist/locales/zh.json +18 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/select-hsCaJSX3.js.map +0 -1
- package/dist/_chunks/tooth-scheme-CxlsLjfN.js +0 -753
- package/dist/_chunks/tooth-scheme-CxlsLjfN.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/components/select/select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,wBAAwB,EAG7B,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,GAAG,EACT,MAAM,OAAO,CAAC;AAIf,iDAAiD;AACjD,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,MAAM,CAAC;IACvB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,MAAM,EAAE,MAAM,OAAO,CAAC;CACvB;AACD,OAAO,KAAK,WAAW,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAOlE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAIrD,QAAA,MAAM,qBAAqB;;;8EA8B1B,CAAC;AAEF,QAAA,MAAM,qBAAqB,oFAY1B,CAAC;AAEF,QAAA,MAAM,kBAAkB;;8EAoBvB,CAAC;AAuCF,KAAK,eAAe,GAAG,wBAAwB,C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U,EACV,aAAa,EACb,WAAW,EACX,aAAa,EACb,cAAc,EACd,UAAU,EACV,cAAc,EACd,WAAW,EACX,WAAW,EACX,eAAe,GAChB,CAAC;AAEF,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,CAAC;AAE5E,YAAY,EACV,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,eAAe,GAChB,CAAC;AAEF,YAAY,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './tooth-scheme';
|
|
2
|
-
export { FDI_TO_META, FDI_TO_UNIVERSAL, FDI_TO_PALMER, CONDITION_COLORS, CONDITION_TOKENS,
|
|
3
|
-
export type { Anatomy, Arch, Quadrant, Side, Surface,
|
|
2
|
+
export { FDI_TO_META, FDI_TO_UNIVERSAL, FDI_TO_PALMER, CONDITION_COLORS, CONDITION_TOKENS, CONDITION_SIDE_SYMBOL, CONDITION_PLAN_FOLDER, SURFACE_ASSET_NAME, toothImageUrl, conditionSymbolUrl, surfaceSymbolUrl, zonesForTooth, zoneSurface, zonePath, chartFromConditions, emptyChart, labelFor, layoutTeeth, } from './tooth-data';
|
|
3
|
+
export type { Anatomy, Arch, Quadrant, Side, Surface, SurfaceZone, Projection, SideSymbolSpec, ToothMeta, PositionedTooth, } from './tooth-data';
|
|
4
4
|
export { toothSchemeAgent } from './tooth-scheme.agent';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/tooth-scheme/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/tooth-scheme/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,aAAa,EACb,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,EACb,WAAW,EACX,QAAQ,EACR,mBAAmB,EACnB,UAAU,EACV,QAAQ,EACR,WAAW,GACZ,MAAM,cAAc,CAAC;AACtB,YAAY,EACV,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,IAAI,EACJ,OAAO,EACP,WAAW,EACX,UAAU,EACV,cAAc,EACd,SAAS,EACT,eAAe,GAChB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -1,20 +1,27 @@
|
|
|
1
|
-
import { C as
|
|
1
|
+
import { C as o, a as t, b as e, c as T, F as O, d as _, e as E, P as I, f as S, S as r, T as N, g as h, h as m, i as n, l as A, j as l, s as C, t as D, k as F, r as c, z as R, m as i, n as L } from "../../_chunks/tooth-scheme-CiphQaON.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
t as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
o as CONDITION_COLORS,
|
|
4
|
+
t as CONDITION_PLAN_FOLDER,
|
|
5
|
+
e as CONDITION_SIDE_SYMBOL,
|
|
6
|
+
T as CONDITION_TOKENS,
|
|
7
|
+
O as FDI_TO_META,
|
|
8
|
+
_ as FDI_TO_PALMER,
|
|
8
9
|
E as FDI_TO_UNIVERSAL,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
I as PERMANENT_TEETH,
|
|
11
|
+
S as PRIMARY_TEETH,
|
|
12
|
+
r as SURFACE_ASSET_NAME,
|
|
13
|
+
N as ToothScheme,
|
|
14
|
+
h as chartFromConditions,
|
|
15
|
+
m as conditionSymbolUrl,
|
|
16
|
+
n as emptyChart,
|
|
15
17
|
A as labelFor,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
l as layoutTeeth,
|
|
19
|
+
C as surfaceSymbolUrl,
|
|
20
|
+
D as toothImageUrl,
|
|
21
|
+
F as toothSchemeAgent,
|
|
22
|
+
c as toothSchemeVariants,
|
|
23
|
+
R as zonePath,
|
|
24
|
+
i as zoneSurface,
|
|
25
|
+
L as zonesForTooth
|
|
19
26
|
};
|
|
20
27
|
//# sourceMappingURL=index.js.map
|
|
@@ -3,7 +3,7 @@ export type Dentition = 'permanent' | 'primary' | 'mixed';
|
|
|
3
3
|
export type Numbering = 'fdi' | 'universal' | 'palmer';
|
|
4
4
|
export type ToothMode = 'interactive' | 'display';
|
|
5
5
|
export type Surface = 'mesial' | 'distal' | 'occlusal' | 'buccal' | 'lingual';
|
|
6
|
-
export type ToothCondition = 'caries' | 'filled' | 'crowned' | 'missing' | 'implant' | 'rootCanal';
|
|
6
|
+
export type ToothCondition = 'caries' | 'filled' | 'crowned' | 'temporaryCrown' | 'bridge' | 'missing' | 'implant' | 'implantExtraction' | 'stub' | 'destroyed' | 'rootCanal';
|
|
7
7
|
export interface ToothState {
|
|
8
8
|
conditions: ToothCondition[];
|
|
9
9
|
surfaces: Surface[];
|
|
@@ -43,33 +43,94 @@ export declare const PRIMARY_TEETH: FdiId[];
|
|
|
43
43
|
export declare const FDI_TO_META: Record<FdiId, ToothMeta>;
|
|
44
44
|
export declare const FDI_TO_UNIVERSAL: Record<FdiId, string>;
|
|
45
45
|
export declare const FDI_TO_PALMER: Record<FdiId, string>;
|
|
46
|
+
/**
|
|
47
|
+
* FDI used to resolve a tooth's RENDER. There are no separate deciduous
|
|
48
|
+
* renders — primary teeth reuse the permanent image of the same position
|
|
49
|
+
* (quadrant 5→1, 6→2, 7→3, 8→4; position digit unchanged), scaled down by
|
|
50
|
+
* the renderer. Permanent teeth resolve to themselves.
|
|
51
|
+
*/
|
|
52
|
+
export declare function assetFdi(meta: ToothMeta): FdiId;
|
|
53
|
+
/** Render scale applied to a tooth image (primary teeth are smaller). */
|
|
54
|
+
export declare const PRIMARY_TOOTH_SCALE = 0.72;
|
|
46
55
|
/** CSS variable name (without the leading `var(...)`) that drives a condition's colour. */
|
|
47
56
|
export declare const CONDITION_TOKENS: Record<ToothCondition, string>;
|
|
48
57
|
/**
|
|
49
58
|
* Convenience: the `fill="var(--destructive)"` string ready to paste onto
|
|
50
|
-
* an SVG attribute. Kept in sync with `CONDITION_TOKENS`.
|
|
59
|
+
* an SVG attribute. Kept in sync with `CONDITION_TOKENS`. Used for the legend
|
|
60
|
+
* swatch + the surface-condition ring; whole-tooth conditions render a
|
|
61
|
+
* distinct symbol image (the glyph is the colour-independent channel).
|
|
51
62
|
*/
|
|
52
63
|
export declare const CONDITION_COLORS: Record<ToothCondition, string>;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
|
|
58
|
-
/** Visual height inside the enclosing `<g>`. */
|
|
59
|
-
height: number;
|
|
60
|
-
/** SVG `d` attribute for the crown outline. */
|
|
61
|
-
path: string;
|
|
62
|
-
/** Optional inner decorative path (occlusal surface on molars, etc.). */
|
|
63
|
-
innerPath?: string;
|
|
64
|
+
export interface SideSymbolSpec {
|
|
65
|
+
/** Asset folder under `side/`. */
|
|
66
|
+
folder: string;
|
|
67
|
+
/** How the file resolves inside `{folder}/{view}/`. */
|
|
68
|
+
resolve: 'per-fdi' | 'general' | 'rct';
|
|
64
69
|
}
|
|
65
|
-
export declare const
|
|
66
|
-
|
|
67
|
-
export declare
|
|
70
|
+
export declare const CONDITION_SIDE_SYMBOL: Partial<Record<ToothCondition, SideSymbolSpec>>;
|
|
71
|
+
/** Resolve the side-view symbol overlay URL for a condition on a tooth. */
|
|
72
|
+
export declare function conditionSymbolUrl(meta: ToothMeta, assetBaseUrl: string, spec: SideSymbolSpec): string;
|
|
73
|
+
export type Projection = 'side' | 'plan';
|
|
74
|
+
/** The user-selectable view: a single projection, or both stacked together. */
|
|
75
|
+
export type ViewMode = Projection | 'both';
|
|
76
|
+
/** Map the clinical `Surface` enum to the asset surface filename token. */
|
|
77
|
+
export declare const SURFACE_ASSET_NAME: Record<Surface, string>;
|
|
78
|
+
/** Conditions that render as per-surface fills in the plan view. */
|
|
79
|
+
export declare const CONDITION_PLAN_FOLDER: Partial<Record<ToothCondition, string>>;
|
|
80
|
+
/** Resolve a per-surface plan-view overlay URL (e.g. caries on the distal). */
|
|
81
|
+
export declare function surfaceSymbolUrl(meta: ToothMeta, assetBaseUrl: string, folder: string, surface: Surface): string;
|
|
82
|
+
/**
|
|
83
|
+
* Clickable surface regions of a plan-view tooth, named by SCREEN position.
|
|
84
|
+
* `zoneSurface()` resolves each to the anatomical `Surface` per quadrant.
|
|
85
|
+
*/
|
|
86
|
+
export type SurfaceZone = 'top' | 'bottom' | 'left' | 'right' | 'center';
|
|
87
|
+
/**
|
|
88
|
+
* Which zones a tooth exposes. Molars & premolars have a central occlusal
|
|
89
|
+
* table (5 zones); incisors & canines have no occlusal surface to mark, so
|
|
90
|
+
* their crown splits into 4 directional zones.
|
|
91
|
+
*/
|
|
92
|
+
export declare function zonesForTooth(meta: ToothMeta): SurfaceZone[];
|
|
93
|
+
/**
|
|
94
|
+
* Map a screen zone to the anatomical surface, QUADRANT-AWARE. Two flips make
|
|
95
|
+
* this non-trivial (ported from the platform odontogram's `_getAreaBySide`, so
|
|
96
|
+
* a finding always lands on the correct surface wherever the tooth sits):
|
|
97
|
+
*
|
|
98
|
+
* - mesial / distal (left & right zones) flip between the patient's right
|
|
99
|
+
* quadrants {1,4} and left quadrants {2,3} — "toward the midline" reverses.
|
|
100
|
+
* - buccal(vestibular) / lingual(oral) (top & bottom zones) flip between the
|
|
101
|
+
* upper and lower arch.
|
|
102
|
+
* - centre is always occlusal.
|
|
103
|
+
*
|
|
104
|
+
* Primary quadrants (5-8) normalise to their permanent counterpart (1-4).
|
|
105
|
+
*/
|
|
106
|
+
export declare function zoneSurface(meta: ToothMeta, zone: SurfaceZone): Surface;
|
|
107
|
+
/**
|
|
108
|
+
* SVG `d` path for a clickable surface zone within a tooth's local box.
|
|
109
|
+
* 5-zone teeth frame a central occlusal rect with four edge trapezoids;
|
|
110
|
+
* 4-zone teeth split the box along both diagonals into four triangles meeting
|
|
111
|
+
* at the centre.
|
|
112
|
+
*/
|
|
113
|
+
export declare function zonePath(zone: SurfaceZone, rect: {
|
|
114
|
+
x: number;
|
|
115
|
+
y: number;
|
|
116
|
+
w: number;
|
|
117
|
+
h: number;
|
|
118
|
+
}, hasCenter: boolean): string;
|
|
119
|
+
export declare const TOOTH_GAP = 5;
|
|
120
|
+
export declare const TOOTH_ROW_GAP = 40;
|
|
68
121
|
export declare const TOOTH_HIT_PAD = 4;
|
|
122
|
+
export declare const TOOTH_SLOT_WIDTH = 36;
|
|
123
|
+
/** Facial-view slot block-size; the plan/occlusal view uses a shorter slot. */
|
|
124
|
+
export declare const TOOTH_SLOT_HEIGHT = 62;
|
|
125
|
+
/**
|
|
126
|
+
* Resolve a tooth render URL. `view` follows the arch (`top` = upper,
|
|
127
|
+
* `bottom` = lower); `symbol` selects the artwork layer (`default` is the
|
|
128
|
+
* healthy tooth; condition/finding overlays use their symbol folder).
|
|
129
|
+
*/
|
|
130
|
+
export declare function toothImageUrl(meta: ToothMeta, assetBaseUrl: string, symbol?: string, projection?: 'side' | 'plan'): string;
|
|
69
131
|
export interface PositionedTooth {
|
|
70
132
|
fdi: FdiId;
|
|
71
133
|
meta: ToothMeta;
|
|
72
|
-
shape: ToothShape;
|
|
73
134
|
x: number;
|
|
74
135
|
y: number;
|
|
75
136
|
}
|
|
@@ -80,7 +141,7 @@ export interface PositionedTooth {
|
|
|
80
141
|
* is preserved: the patient's right sits on the viewer's left in both
|
|
81
142
|
* arches, regardless of document direction.
|
|
82
143
|
*/
|
|
83
|
-
export declare function layoutTeeth(dentition: Dentition): {
|
|
144
|
+
export declare function layoutTeeth(dentition: Dentition, slotHeight?: number): {
|
|
84
145
|
teeth: PositionedTooth[];
|
|
85
146
|
width: number;
|
|
86
147
|
height: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooth-data.d.ts","sourceRoot":"","sources":["../../../src/components/tooth-scheme/tooth-data.ts"],"names":[],"mappings":"AAiBA,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC;AAE3B,MAAM,MAAM,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,OAAO,CAAC;AAC1D,MAAM,MAAM,SAAS,GAAG,KAAK,GAAG,WAAW,GAAG,QAAQ,CAAC;AACvD,MAAM,MAAM,SAAS,GAAG,aAAa,GAAG,SAAS,CAAC;AAClD,MAAM,MAAM,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,GAAG,QAAQ,GAAG,SAAS,CAAC;AAC9E,MAAM,MAAM,cAAc,GACtB,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,SAAS,GACT,SAAS,GACT,WAAW,CAAC;AAEhB,MAAM,WAAW,UAAU;IACzB,UAAU,EAAE,cAAc,EAAE,CAAC;IAC7B,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;AAEnD,MAAM,MAAM,OAAO,GAAG,SAAS,GAAG,QAAQ,GAAG,UAAU,GAAG,OAAO,CAAC;AAClE,MAAM,MAAM,IAAI,GAAG,OAAO,GAAG,OAAO,CAAC;AACrC,MAAM,MAAM,IAAI,GAAG,OAAO,GAAG,MAAM,CAAC;AACpC,MAAM,MAAM,QAAQ,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAErD,MAAM,WAAW,SAAS;IACxB,GAAG,EAAE,KAAK,C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E,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,GAAG,MAAM,CAUhE;AAMD,wBAAgB,UAAU,IAAI,UAAU,CAEvC;AAED,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,cAAc,EAAE,CAAC,CAAC,GACnD,UAAU,CAOZ"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { AgentAdapter } from '../../agent/types';
|
|
2
2
|
import type { ToothSchemeHandle } from './tooth-scheme';
|
|
3
|
+
import type { Surface, ToothCondition } from './tooth-data';
|
|
3
4
|
export declare const toothSchemeAgent: AgentAdapter<ToothSchemeHandle>;
|
|
5
|
+
export type { Surface, ToothCondition };
|
|
4
6
|
//# sourceMappingURL=tooth-scheme.agent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooth-scheme.agent.d.ts","sourceRoot":"","sources":["../../../src/components/tooth-scheme/tooth-scheme.agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"tooth-scheme.agent.d.ts","sourceRoot":"","sources":["../../../src/components/tooth-scheme/tooth-scheme.agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAI5D,eAAO,MAAM,gBAAgB,EAAE,YAAY,CAAC,iBAAiB,CAoF5D,CAAC;AAGF,YAAY,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PERMANENT_TEETH, PRIMARY_TEETH, type Dentition, type FdiId, type Numbering, type ToothChart, type ToothCondition, type ToothMode } from './tooth-data';
|
|
1
|
+
import { PERMANENT_TEETH, PRIMARY_TEETH, type ViewMode, type Dentition, type FdiId, type Numbering, type Surface, type ToothChart, type ToothCondition, type ToothMode } from './tooth-data';
|
|
2
2
|
export interface ToothSchemeProps {
|
|
3
3
|
/** Opaque instance id — emitted as `data-component-id` for the agent registry. */
|
|
4
4
|
id?: string;
|
|
@@ -8,6 +8,13 @@ export interface ToothSchemeProps {
|
|
|
8
8
|
numbering?: Numbering;
|
|
9
9
|
/** `'interactive'` enables selection + keyboard nav; `'display'` is read-only. Default `'interactive'`. */
|
|
10
10
|
mode?: ToothMode;
|
|
11
|
+
/**
|
|
12
|
+
* `'side'` shows the facial view (whole-tooth findings); `'plan'` shows the
|
|
13
|
+
* occlusal view (per-surface caries / fillings); `'both'` stacks the side
|
|
14
|
+
* chart above an interactive occlusal companion that shares the chart data.
|
|
15
|
+
* Default `'side'`.
|
|
16
|
+
*/
|
|
17
|
+
projection?: ViewMode;
|
|
11
18
|
/** Controlled chart state — the full `Record<FdiId, ToothState>`. */
|
|
12
19
|
value?: ToothChart;
|
|
13
20
|
/** Uncontrolled initial chart state. */
|
|
@@ -18,6 +25,36 @@ export interface ToothSchemeProps {
|
|
|
18
25
|
onSelect?: (toothId: FdiId) => void;
|
|
19
26
|
/** Shortcut for pre-populating conditions: `{ '16': ['caries'], '36': ['filled'] }`. */
|
|
20
27
|
conditions?: Partial<Record<FdiId, ToothCondition[]>>;
|
|
28
|
+
/**
|
|
29
|
+
* The finding a tooth-click applies in interactive mode (the selected
|
|
30
|
+
* tool in a Findings / "Stato dentale" panel). Clicking a tooth toggles
|
|
31
|
+
* this condition. When unset, clicking cycles caries on/off.
|
|
32
|
+
*/
|
|
33
|
+
activeCondition?: ToothCondition;
|
|
34
|
+
/**
|
|
35
|
+
* Base URL the photoreal tooth renders are served from. Resolves to
|
|
36
|
+
* `${assetBaseUrl}/{side|plan}/{symbol}/{top|bottom}/{fdi}.webp`. Defaults
|
|
37
|
+
* to the kit's bundled static path; host the `toothscheme/teeth` set
|
|
38
|
+
* elsewhere (CDN) by overriding this. Trusted developer-controlled value —
|
|
39
|
+
* interpolated into an SVG `<image href>` (which cannot execute scripts),
|
|
40
|
+
* not user input; intentionally not runtime-validated.
|
|
41
|
+
*/
|
|
42
|
+
assetBaseUrl?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Show the finding-colour legend below the chart. Default `false` — findings
|
|
45
|
+
* render as distinct symbol glyphs (self-describing) + tooltips, so the
|
|
46
|
+
* colour key is opt-in; a consuming "Stato dentale" surface uses a
|
|
47
|
+
* finding-type panel as its key instead.
|
|
48
|
+
*/
|
|
49
|
+
legend?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Render a built-in options affordance: a gear button that opens a popover
|
|
52
|
+
* letting the END USER toggle the legend and switch dentition / numbering /
|
|
53
|
+
* projection. Opt-in — when on, those four become user-overridable (seeded
|
|
54
|
+
* from the props); when off, the props drive the chart directly. Default
|
|
55
|
+
* `false`.
|
|
56
|
+
*/
|
|
57
|
+
controls?: boolean;
|
|
21
58
|
/** Accessible label override for the chart region. */
|
|
22
59
|
ariaLabel?: string;
|
|
23
60
|
/** Extra class names on the wrapper. */
|
|
@@ -28,6 +65,16 @@ export interface ToothSchemeHandle {
|
|
|
28
65
|
focusTooth: (id: FdiId) => void;
|
|
29
66
|
/** Read the current chart state. */
|
|
30
67
|
getChart: () => ToothChart;
|
|
68
|
+
/** Read the findings recorded on one tooth (empty array if none). */
|
|
69
|
+
getTooth: (id: FdiId) => ToothCondition[];
|
|
70
|
+
/** Read the FDI ids of every tooth carrying a given finding. */
|
|
71
|
+
teethWith: (condition: ToothCondition) => FdiId[];
|
|
72
|
+
/** Add a finding to a tooth (no-op if already present). Optionally mark surfaces. */
|
|
73
|
+
setFinding: (id: FdiId, condition: ToothCondition, surfaces?: Surface[]) => void;
|
|
74
|
+
/** Remove a finding from a tooth (no-op if absent). */
|
|
75
|
+
removeFinding: (id: FdiId, condition: ToothCondition) => void;
|
|
76
|
+
/** Clear every finding from a tooth. */
|
|
77
|
+
clearTooth: (id: FdiId) => void;
|
|
31
78
|
}
|
|
32
79
|
declare const rootVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
33
80
|
export declare const ToothScheme: import("react").ForwardRefExoticComponent<ToothSchemeProps & import("react").RefAttributes<ToothSchemeHandle>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooth-scheme.d.ts","sourceRoot":"","sources":["../../../src/components/tooth-scheme/tooth-scheme.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tooth-scheme.d.ts","sourceRoot":"","sources":["../../../src/components/tooth-scheme/tooth-scheme.tsx"],"names":[],"mappings":"AA+CA,OAAO,EAUL,eAAe,EACf,aAAa,EAUb,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,KAAK,EACV,KAAK,SAAS,EACd,KAAK,OAAO,EAEZ,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,SAAS,EAEf,MAAM,cAAc,CAAC;AAMtB,MAAM,WAAW,gBAAgB;IAC/B,kFAAkF;IAClF,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,oDAAoD;IACpD,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,mEAAmE;IACnE,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,2GAA2G;IAC3G,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,QAAQ,CAAC;IACtB,qEAAqE;IACrE,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,wCAAwC;IACxC,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;IACtC,gDAAgD;IAChD,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,KAAK,KAAK,IAA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V,SAAS,EACT,KAAK,EACL,SAAS,EACT,UAAU,EACV,cAAc,EACd,SAAS,EACT,UAAU,GACX,MAAM,cAAc,CAAC"}
|
|
@@ -1923,11 +1923,23 @@ export declare const arUi: {
|
|
|
1923
1923
|
readonly toothScheme: {
|
|
1924
1924
|
readonly ariaLabel: "مخطط الأسنان";
|
|
1925
1925
|
readonly legendLabel: "دليل الحالات";
|
|
1926
|
+
readonly view: {
|
|
1927
|
+
readonly side: "عرض جانبي";
|
|
1928
|
+
readonly occlusal: "عرض إطباقي";
|
|
1929
|
+
readonly both: "كلا العرضين";
|
|
1930
|
+
};
|
|
1926
1931
|
readonly dentition: {
|
|
1927
1932
|
readonly permanent: "أسنان دائمة";
|
|
1928
1933
|
readonly primary: "أسنان لبنية";
|
|
1929
1934
|
readonly mixed: "تسنين مختلط";
|
|
1930
1935
|
};
|
|
1936
|
+
readonly options: {
|
|
1937
|
+
readonly label: "خيارات المخطط";
|
|
1938
|
+
readonly legend: "مفتاح";
|
|
1939
|
+
readonly dentition: "الأسنان";
|
|
1940
|
+
readonly numbering: "الترقيم";
|
|
1941
|
+
readonly view: "العرض";
|
|
1942
|
+
};
|
|
1931
1943
|
readonly anatomy: {
|
|
1932
1944
|
readonly incisor: "قاطعة";
|
|
1933
1945
|
readonly canine: "ناب";
|
|
@@ -1941,6 +1953,11 @@ export declare const arUi: {
|
|
|
1941
1953
|
readonly missing: "مفقود";
|
|
1942
1954
|
readonly implant: "زرعة";
|
|
1943
1955
|
readonly rootCanal: "علاج جذر";
|
|
1956
|
+
readonly temporaryCrown: "تاج مؤقت";
|
|
1957
|
+
readonly bridge: "جسر";
|
|
1958
|
+
readonly destroyed: "مُهدَّم";
|
|
1959
|
+
readonly implantExtraction: "إزالة زرعة";
|
|
1960
|
+
readonly stub: "جذر متبقٍ";
|
|
1944
1961
|
};
|
|
1945
1962
|
readonly surface: {
|
|
1946
1963
|
readonly mesial: "وسطاني";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ar.d.ts","sourceRoot":"","sources":["../../../src/i18n/locales/ar.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"ar.d.ts","sourceRoot":"","sources":["../../../src/i18n/locales/ar.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAonFP,CAAC"}
|
package/dist/i18n/locales/ar.js
CHANGED
|
@@ -1906,11 +1906,23 @@ const e = {
|
|
|
1906
1906
|
toothScheme: {
|
|
1907
1907
|
ariaLabel: "مخطط الأسنان",
|
|
1908
1908
|
legendLabel: "دليل الحالات",
|
|
1909
|
+
view: {
|
|
1910
|
+
side: "عرض جانبي",
|
|
1911
|
+
occlusal: "عرض إطباقي",
|
|
1912
|
+
both: "كلا العرضين"
|
|
1913
|
+
},
|
|
1909
1914
|
dentition: {
|
|
1910
1915
|
permanent: "أسنان دائمة",
|
|
1911
1916
|
primary: "أسنان لبنية",
|
|
1912
1917
|
mixed: "تسنين مختلط"
|
|
1913
1918
|
},
|
|
1919
|
+
options: {
|
|
1920
|
+
label: "خيارات المخطط",
|
|
1921
|
+
legend: "مفتاح",
|
|
1922
|
+
dentition: "الأسنان",
|
|
1923
|
+
numbering: "الترقيم",
|
|
1924
|
+
view: "العرض"
|
|
1925
|
+
},
|
|
1914
1926
|
anatomy: {
|
|
1915
1927
|
incisor: "قاطعة",
|
|
1916
1928
|
canine: "ناب",
|
|
@@ -1923,7 +1935,12 @@ const e = {
|
|
|
1923
1935
|
crowned: "مُتوَّج",
|
|
1924
1936
|
missing: "مفقود",
|
|
1925
1937
|
implant: "زرعة",
|
|
1926
|
-
rootCanal: "علاج جذر"
|
|
1938
|
+
rootCanal: "علاج جذر",
|
|
1939
|
+
temporaryCrown: "تاج مؤقت",
|
|
1940
|
+
bridge: "جسر",
|
|
1941
|
+
destroyed: "مُهدَّم",
|
|
1942
|
+
implantExtraction: "إزالة زرعة",
|
|
1943
|
+
stub: "جذر متبقٍ"
|
|
1927
1944
|
},
|
|
1928
1945
|
surface: {
|
|
1929
1946
|
mesial: "وسطاني",
|