@alfadocs/ui-kit 1.4.2 → 1.4.5
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-i18n-CwQX6KXF.js → anamnesis-i18n-BiZeub0o.js} +1588 -1554
- package/dist/agent-catalog.json +1 -1
- package/dist/index.js +115 -113
- package/dist/patterns/anamnesis/anamnesis-compare-panel.d.ts +6 -2
- package/dist/patterns/anamnesis/anamnesis-questionnaire.d.ts +6 -1
- package/dist/patterns/anamnesis/anamnesis-types.d.ts +5 -0
- package/dist/patterns/anamnesis/anamnesis.d.ts +4 -1
- package/dist/patterns/anamnesis/index.d.ts +1 -0
- package/dist/patterns/anamnesis/index.js +15 -13
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import { type DeltaInfo, type SpanDiff } from './anamnesis-derive';
|
|
|
4
4
|
import type { NumericParameterDef, PathologyCode, Visit } from './anamnesis-types';
|
|
5
5
|
import type { VisitColumn } from './anamnesis-window';
|
|
6
6
|
/** The one grammar every category speaks. */
|
|
7
|
-
export type CompareChangeKind = 'added' | 'removed' | 'changed';
|
|
7
|
+
export type CompareChangeKind = 'added' | 'removed' | 'changed' | 'notMeasured';
|
|
8
8
|
/** One line of the compare table. Every field is already display-ready, so
|
|
9
9
|
* the renderer below never reaches back into the domain model. */
|
|
10
10
|
export interface CompareRow {
|
|
@@ -74,9 +74,13 @@ export interface AnamnesisComparePanelProps {
|
|
|
74
74
|
/** Exit compare mode from inside the panel. The toggle that opened it is a
|
|
75
75
|
* full grid above, so without this the only way out is off-screen. */
|
|
76
76
|
onClose?: () => void;
|
|
77
|
+
/** Draw the table's own border/surface. `false` to match a grid rendered
|
|
78
|
+
* unframed above it — the two read as one surface, not a boxed table under
|
|
79
|
+
* a bare one. */
|
|
80
|
+
framed?: boolean;
|
|
77
81
|
}
|
|
78
82
|
/** Slot 4's contents: a header carrying the way out, the visit picker, then
|
|
79
83
|
* one matrix of differences. The enclosing `Collapsible` lives in
|
|
80
84
|
* `anamnesis-evolution.tsx`. */
|
|
81
|
-
export declare function AnamnesisComparePanel({ visits, columns, selectedIds, onSelectionChange, diff, seriesByKey, pathologies, annotations, onSelectAnnotation, t, onClose, }: AnamnesisComparePanelProps): import("react/jsx-runtime").JSX.Element;
|
|
85
|
+
export declare function AnamnesisComparePanel({ visits, columns, selectedIds, onSelectionChange, diff, seriesByKey, pathologies, annotations, onSelectAnnotation, t, onClose, framed, }: AnamnesisComparePanelProps): import("react/jsx-runtime").JSX.Element;
|
|
82
86
|
//# sourceMappingURL=anamnesis-compare-panel.d.ts.map
|
|
@@ -47,6 +47,11 @@ export interface AnamnesisQuestionnaireProps {
|
|
|
47
47
|
* strip stays, so the trend and the host's own tabs remain reachable;
|
|
48
48
|
* unmounting the whole surface for one withheld panel took them with it. */
|
|
49
49
|
questionnaireSlot?: ReactNode;
|
|
50
|
+
/** Rendered INSIDE the questionnaire's tab panel, above the questionnaire —
|
|
51
|
+
* the host's per-interview controls (its date, its signature state). They
|
|
52
|
+
* belong to the interview being answered, so they show only when it does;
|
|
53
|
+
* in the shared tab header they sat beside host tabs about other things. */
|
|
54
|
+
questionnaireHeaderSlot?: ReactNode;
|
|
50
55
|
}
|
|
51
56
|
/** A host-supplied tab that precedes the built-in ones. */
|
|
52
57
|
export interface AnamnesisLeadingTab {
|
|
@@ -57,7 +62,7 @@ export interface AnamnesisLeadingTab {
|
|
|
57
62
|
/** The built-in tab values, widened so a host's leading-tab values type
|
|
58
63
|
* without a cast. */
|
|
59
64
|
export type AnamnesisQuestionnaireTab = 'questionnaire' | 'trend' | (string & {});
|
|
60
|
-
export declare function AnamnesisQuestionnaire({ record, t, config, onSubmit, jumpToField, statusSlot, onTargetChange, hideTargetStrip, leadingTabs, readOnly, questionnaireSlot, tab: tabProp, onTabChange, defaultTab, }: AnamnesisQuestionnaireProps): import("react/jsx-runtime").JSX.Element;
|
|
65
|
+
export declare function AnamnesisQuestionnaire({ record, t, config, onSubmit, jumpToField, statusSlot, onTargetChange, hideTargetStrip, leadingTabs, readOnly, questionnaireSlot, questionnaireHeaderSlot, tab: tabProp, onTabChange, defaultTab, }: AnamnesisQuestionnaireProps): import("react/jsx-runtime").JSX.Element;
|
|
61
66
|
export declare namespace AnamnesisQuestionnaire {
|
|
62
67
|
var displayName: string;
|
|
63
68
|
}
|
|
@@ -287,6 +287,11 @@ export interface Visit {
|
|
|
287
287
|
dateIso: string;
|
|
288
288
|
/** Practitioner display name (placeholder only). */
|
|
289
289
|
practitioner?: string;
|
|
290
|
+
/** Where this visit's numbers came from, when a record draws on more than
|
|
291
|
+
* one source — the platform's module ("Esami del sangue"). Rendered under
|
|
292
|
+
* the date in every column header, so two same-day columns from different
|
|
293
|
+
* modules are told apart by more than their minute. */
|
|
294
|
+
sourceLabel?: string;
|
|
290
295
|
anthropometrics: AnthropometricSet;
|
|
291
296
|
labs: LabResult[];
|
|
292
297
|
/** Estimated daily intake at this visit (energy, protein). Optional: a
|
|
@@ -51,6 +51,9 @@ export interface AnamnesisProps {
|
|
|
51
51
|
/** Questionnaire mode only: render this instead of the questionnaire in its
|
|
52
52
|
* tab panel (a restriction message), keeping the tab strip and the trend. */
|
|
53
53
|
questionnaireSlot?: ReactNode;
|
|
54
|
+
/** Questionnaire mode only: the host's per-interview controls, rendered
|
|
55
|
+
* inside the questionnaire panel above the questionnaire. */
|
|
56
|
+
questionnaireHeaderSlot?: ReactNode;
|
|
54
57
|
/** Compile mode only: route the Summary's missing-answer jump to a host
|
|
55
58
|
* questionnaire surface instead of the internal Compila gaps block. */
|
|
56
59
|
onMissingAnswerJump?: (missing: MissingAnswer) => void;
|
|
@@ -85,5 +88,5 @@ export interface AnamnesisProps {
|
|
|
85
88
|
defaultShareOpen?: boolean;
|
|
86
89
|
defaultExportAudience?: DisclosureAudience;
|
|
87
90
|
}
|
|
88
|
-
export declare function Anamnesis({ mode, record, t, dataComponent, embedded, config, onTargetChange, hideTargetStrip, statusSlot, onOpenNote, onIntakeSubmit, intakeJumpToField, readOnly, onMissingAnswerJump, onRecordChange, leadingTabs, questionnaireTab, onQuestionnaireTabChange, questionnaireSlot, defaultQuestionnaireTab, practitioners, newVisitDateIso, defaultView, defaultExportMenuOpen, defaultShareOpen, defaultExportAudience, }: AnamnesisProps): import("react/jsx-runtime").JSX.Element;
|
|
91
|
+
export declare function Anamnesis({ mode, record, t, dataComponent, embedded, config, onTargetChange, hideTargetStrip, statusSlot, onOpenNote, onIntakeSubmit, intakeJumpToField, readOnly, onMissingAnswerJump, onRecordChange, leadingTabs, questionnaireTab, onQuestionnaireTabChange, questionnaireSlot, questionnaireHeaderSlot, defaultQuestionnaireTab, practitioners, newVisitDateIso, defaultView, defaultExportMenuOpen, defaultShareOpen, defaultExportAudience, }: AnamnesisProps): import("react/jsx-runtime").JSX.Element;
|
|
89
92
|
//# sourceMappingURL=anamnesis.d.ts.map
|
|
@@ -8,5 +8,6 @@ export { LOCKED_PARAMETER_KEYS, SEEDED_ANAMNESIS_CONFIG, TARGETABLE_PARAMETER_KE
|
|
|
8
8
|
export { anamnesisNoteId, anamnesisNotes } from './anamnesis-notes';
|
|
9
9
|
export { stripParameters } from './anamnesis-targets';
|
|
10
10
|
export { PATTERN_NS, registerAnamnesisBundles } from './anamnesis-i18n';
|
|
11
|
+
export { formatIntakeAnswer, intakeFieldLabel } from './anamnesis-format';
|
|
11
12
|
export type { AnamnesisMode, AnamnesisNoteTarget, AnamnesisRecord, BetterDirection, ClinicalEvent, ConfigurableDescriptor, IntakeAnswer, IntakeFieldDef, IntakeFieldType, IntakeHighlightRule, IntakeResponse, IntakeSectionDef, NumericParameterDef, OpenAnamnesisNote, ParameterGroup, PathologyCode, PractitionerOption, Visit, } from './anamnesis-types';
|
|
12
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,27 +1,29 @@
|
|
|
1
|
-
import { A as e, a as i, L as n, P as r, S as o, T as
|
|
1
|
+
import { A as e, a as i, L as n, P as r, S as o, T as t, b as l, c as d, d as g, e as A, f as E, g as m, h as c, i as P, j as f, k as h, l as S, m as T, n as u, o as I, p as N, r as _, q as C, s as L, t as R } from "../../_chunks/anamnesis-i18n-BiZeub0o.js";
|
|
2
2
|
export {
|
|
3
3
|
e as Anamnesis,
|
|
4
4
|
i as AnamnesisConfigEditor,
|
|
5
5
|
n as LOCKED_PARAMETER_KEYS,
|
|
6
6
|
r as PATTERN_NS,
|
|
7
7
|
o as SEEDED_ANAMNESIS_CONFIG,
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
t as TARGETABLE_PARAMETER_KEYS,
|
|
9
|
+
l as allParametersIncludingArchived,
|
|
10
10
|
d as allPathologiesIncludingArchived,
|
|
11
11
|
g as allSectionsIncludingArchived,
|
|
12
12
|
A as anamnesisNoteId,
|
|
13
13
|
E as anamnesisNotes,
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
m as assignablePathologyCodes,
|
|
15
|
+
c as configuredParameters,
|
|
16
16
|
P as configuredPathologies,
|
|
17
17
|
f as configuredSections,
|
|
18
|
-
h as
|
|
19
|
-
S as
|
|
20
|
-
T as
|
|
21
|
-
u as
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
h as formatIntakeAnswer,
|
|
19
|
+
S as intakeFieldLabel,
|
|
20
|
+
T as isHighlightedAnswer,
|
|
21
|
+
u as isParameterLocked,
|
|
22
|
+
I as isParameterTargetable,
|
|
23
|
+
N as keyFromLabel,
|
|
24
|
+
_ as registerAnamnesisBundles,
|
|
25
|
+
C as resolveConfig,
|
|
26
|
+
L as seededConfigDraft,
|
|
27
|
+
R as stripParameters
|
|
26
28
|
};
|
|
27
29
|
//# sourceMappingURL=index.js.map
|