@mieweb/ui 0.10.0-dev.10 → 0.10.0-dev.12

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.
Files changed (113) hide show
  1. package/dist/Input-yN516s5_.d.cts +3 -0
  2. package/dist/Input-yN516s5_.d.ts +3 -0
  3. package/dist/ag-grid.d.cts +142 -1
  4. package/dist/ag-grid.d.ts +142 -1
  5. package/dist/components/Alert/index.d.cts +1 -1
  6. package/dist/components/Alert/index.d.ts +1 -1
  7. package/dist/components/AlertDialog/index.d.cts +28 -3
  8. package/dist/components/AlertDialog/index.d.ts +28 -3
  9. package/dist/components/AudioRecorder/index.d.cts +2 -2
  10. package/dist/components/AudioRecorder/index.d.ts +2 -2
  11. package/dist/components/Autocomplete/index.d.cts +8 -2
  12. package/dist/components/Autocomplete/index.d.ts +8 -2
  13. package/dist/components/Avatar/index.d.cts +1 -1
  14. package/dist/components/Avatar/index.d.ts +1 -1
  15. package/dist/components/Badge/index.d.cts +1 -1
  16. package/dist/components/Badge/index.d.ts +1 -1
  17. package/dist/components/BoardView/index.d.cts +91 -4
  18. package/dist/components/BoardView/index.d.ts +91 -4
  19. package/dist/components/Button/index.d.cts +1 -1
  20. package/dist/components/Button/index.d.ts +1 -1
  21. package/dist/components/CalendarView/index.d.cts +1 -2
  22. package/dist/components/CalendarView/index.d.ts +1 -2
  23. package/dist/components/Card/index.d.cts +3 -3
  24. package/dist/components/Card/index.d.ts +3 -3
  25. package/dist/components/Dropdown/index.d.cts +2 -1
  26. package/dist/components/Dropdown/index.d.ts +2 -1
  27. package/dist/components/GanttView/index.d.cts +1 -2
  28. package/dist/components/GanttView/index.d.ts +1 -2
  29. package/dist/components/ListView/index.d.cts +2 -3
  30. package/dist/components/ListView/index.d.ts +2 -3
  31. package/dist/components/MediaEditor/index.d.cts +91 -2
  32. package/dist/components/MediaEditor/index.d.ts +91 -2
  33. package/dist/components/MediaPlayer/index.d.cts +1 -1
  34. package/dist/components/MediaPlayer/index.d.ts +1 -1
  35. package/dist/components/Pagination/index.d.cts +1 -1
  36. package/dist/components/Pagination/index.d.ts +1 -1
  37. package/dist/components/PhoneInput/index.d.cts +36 -3
  38. package/dist/components/PhoneInput/index.d.ts +36 -3
  39. package/dist/components/Progress/index.d.cts +1 -1
  40. package/dist/components/Progress/index.d.ts +1 -1
  41. package/dist/components/Q/index.d.cts +2 -2
  42. package/dist/components/Q/index.d.ts +2 -2
  43. package/dist/components/QuickAction/index.d.cts +1 -1
  44. package/dist/components/QuickAction/index.d.ts +1 -1
  45. package/dist/components/RecordButton/index.d.cts +1 -1
  46. package/dist/components/RecordButton/index.d.ts +1 -1
  47. package/dist/components/RichTextEditor/index.d.cts +7 -2
  48. package/dist/components/RichTextEditor/index.d.ts +7 -2
  49. package/dist/components/ScrollArea/index.d.cts +1 -1
  50. package/dist/components/ScrollArea/index.d.ts +1 -1
  51. package/dist/components/Select/index.d.cts +1 -2
  52. package/dist/components/Select/index.d.ts +1 -2
  53. package/dist/components/Skeleton/index.d.cts +1 -1
  54. package/dist/components/Skeleton/index.d.ts +1 -1
  55. package/dist/components/Slider/index.d.cts +2 -2
  56. package/dist/components/Slider/index.d.ts +2 -2
  57. package/dist/components/Spinner/index.d.cts +2 -2
  58. package/dist/components/Spinner/index.d.ts +2 -2
  59. package/dist/components/SuperChat/index.d.cts +2 -4
  60. package/dist/components/SuperChat/index.d.ts +2 -4
  61. package/dist/components/SuperChat/plugins/index.d.cts +2 -3
  62. package/dist/components/SuperChat/plugins/index.d.ts +2 -3
  63. package/dist/components/Text/index.d.cts +3 -3
  64. package/dist/components/Text/index.d.ts +3 -3
  65. package/dist/components/Textarea/index.d.cts +1 -2
  66. package/dist/components/Textarea/index.d.ts +1 -2
  67. package/dist/components/ThemeProvider/index.d.cts +3 -1
  68. package/dist/components/ThemeProvider/index.d.ts +3 -1
  69. package/dist/components/TranscriptView/index.d.cts +85 -4
  70. package/dist/components/TranscriptView/index.d.ts +85 -4
  71. package/dist/components/ViewSet/index.d.cts +120 -9
  72. package/dist/components/ViewSet/index.d.ts +120 -9
  73. package/dist/components/ViewSwitcher/index.d.cts +4 -40
  74. package/dist/components/ViewSwitcher/index.d.ts +4 -40
  75. package/dist/datavis.d.cts +167 -13
  76. package/dist/datavis.d.ts +167 -13
  77. package/dist/esheet.d.cts +183 -1
  78. package/dist/esheet.d.ts +183 -1
  79. package/dist/hooks/index.d.cts +383 -31
  80. package/dist/hooks/index.d.ts +383 -31
  81. package/dist/index-DoYYWsNc.d.cts +127 -0
  82. package/dist/index-DoYYWsNc.d.ts +127 -0
  83. package/dist/index.d.cts +7592 -414
  84. package/dist/index.d.ts +7592 -414
  85. package/dist/motion.d.cts +186 -2
  86. package/dist/motion.d.ts +186 -2
  87. package/dist/q.d.cts +25 -3
  88. package/dist/q.d.ts +25 -3
  89. package/dist/{types-B97JNRNQ.d.cts → types-DOxdTwmq.d.cts} +170 -2
  90. package/dist/{types-gZXrfLj6.d.ts → types-DOxdTwmq.d.ts} +170 -2
  91. package/dist/{types-CbWXIKbe.d.cts → types-DsdZvEI1.d.cts} +1 -28
  92. package/dist/{types-CbWXIKbe.d.ts → types-DsdZvEI1.d.ts} +1 -28
  93. package/dist/utils/index.d.cts +13 -2
  94. package/dist/utils/index.d.ts +13 -2
  95. package/package.json +3 -2
  96. package/dist/Animated-XmH6k8pZ.d.cts +0 -188
  97. package/dist/Animated-XmH6k8pZ.d.ts +0 -188
  98. package/dist/MedicationEditor-Bp4NLy7y.d.cts +0 -352
  99. package/dist/MedicationEditor-Bp4NLy7y.d.ts +0 -352
  100. package/dist/html-MdxqSzjD.d.cts +0 -13
  101. package/dist/html-MdxqSzjD.d.ts +0 -13
  102. package/dist/orderRows-BUJYgSc7.d.cts +0 -221
  103. package/dist/orderRows-BUJYgSc7.d.ts +0 -221
  104. package/dist/transcript-Cg7uSW-C.d.cts +0 -84
  105. package/dist/transcript-Cg7uSW-C.d.ts +0 -84
  106. package/dist/types-CnPEwzlp.d.cts +0 -254
  107. package/dist/types-CnPEwzlp.d.ts +0 -254
  108. package/dist/useAnchoredPosition-CKwLSQW8.d.cts +0 -76
  109. package/dist/useAnchoredPosition-CKwLSQW8.d.ts +0 -76
  110. package/dist/useTheme-B9SWu6ui.d.cts +0 -24
  111. package/dist/useTheme-B9SWu6ui.d.ts +0 -24
  112. package/dist/useTranscriptEdits-CGzlemHT.d.cts +0 -182
  113. package/dist/useTranscriptEdits-D32bLs0l.d.ts +0 -182
@@ -1,14 +1,125 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
- import { ViewOption } from '../ViewSwitcher/index.cjs';
4
- import { ListViewProps } from '../ListView/index.cjs';
5
- import { BoardLabels, BoardViewProps } from '../BoardView/index.cjs';
6
- import { CalendarLabels, CalendarViewProps } from '../CalendarView/index.cjs';
7
- import { GanttLabels, GanttViewProps } from '../GanttView/index.cjs';
8
- import { a as ViewBaseProps, b as ViewId, S as Stage } from '../../types-CbWXIKbe.cjs';
9
- import 'class-variance-authority/types';
10
- import 'class-variance-authority';
11
- import 'luxon';
3
+ import { V as ViewBaseProps, S as Stage, a as ViewLabels, b as ViewId, c as ViewOption } from '../../index-DoYYWsNc.cjs';
4
+ import * as class_variance_authority_types from 'class-variance-authority/types';
5
+ import { VariantProps } from 'class-variance-authority';
6
+
7
+ type ListViewSlot = 'group' | 'groupHeader' | 'item' | 'selectedItem' | 'state';
8
+ interface ListViewProps<T> extends ViewBaseProps<T>, VariantProps<typeof itemVariants> {
9
+ /**
10
+ * Group rows by `accessors.getStatus`, using these stages for order and
11
+ * labels. Items whose status matches no stage are appended under their own
12
+ * heading rather than dropped.
13
+ */
14
+ stages?: readonly Stage[];
15
+ /** Group by `accessors.getGroup` instead of by stage. */
16
+ groupBy?: 'status' | 'group' | 'none';
17
+ /** Groups that start collapsed. Uncontrolled; the user can reopen them. */
18
+ defaultCollapsedGroups?: readonly string[];
19
+ /** Retries the failed load. Renders the retry action only when provided. */
20
+ onRetry?: () => void;
21
+ classNames?: Partial<Record<ListViewSlot, string>>;
22
+ /** Heading level for group headers, under the page's own heading. */
23
+ headingLevel?: 'h2' | 'h3' | 'h4';
24
+ }
25
+ declare const itemVariants: (props?: ({
26
+ density?: "comfortable" | "compact" | null | undefined;
27
+ interactive?: boolean | null | undefined;
28
+ selected?: boolean | null | undefined;
29
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
30
+
31
+ type BoardViewSlot = 'column' | 'columnHeader' | 'card' | 'selectedCard' | 'state';
32
+ interface BoardLabels extends ViewLabels {
33
+ /** Accessible name of the scrollable board region. */
34
+ board: string;
35
+ /** Announced when a card starts moving. `{item}` and `{stage}` are substituted. */
36
+ moved: string;
37
+ /** Announced when `onMove` rejects. */
38
+ moveFailed: string;
39
+ /** Hint on a focusable card describing the keyboard move. */
40
+ moveHint: string;
41
+ }
42
+ interface BoardViewProps<T> extends ViewBaseProps<T>, VariantProps<typeof cardVariants> {
43
+ /** Columns, in order. A board without stages has nothing to draw. */
44
+ stages: readonly Stage[];
45
+ /**
46
+ * Commits a move. The board shows the card in its new column while this is
47
+ * pending and puts it back if the promise rejects, so the caller never has to
48
+ * re-render it home.
49
+ */
50
+ onMove?: (id: string, toStage: string, item: T) => void | Promise<void>;
51
+ labels?: Partial<BoardLabels>;
52
+ classNames?: Partial<Record<BoardViewSlot, string>>;
53
+ /** Heading level for column headers, under the page's own heading. */
54
+ headingLevel?: 'h2' | 'h3' | 'h4';
55
+ }
56
+ declare const cardVariants: (props?: ({
57
+ density?: "comfortable" | "compact" | null | undefined;
58
+ interactive?: boolean | null | undefined;
59
+ selected?: boolean | null | undefined;
60
+ pending?: boolean | null | undefined;
61
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
62
+
63
+ type CalendarViewSlot = 'toolbar' | 'weekday' | 'day' | 'outsideDay' | 'today' | 'entry' | 'selectedEntry' | 'state';
64
+ interface CalendarLabels extends ViewLabels {
65
+ previousMonth: string;
66
+ nextMonth: string;
67
+ today: string;
68
+ /** Overflow affordance. `{count}` is substituted. */
69
+ more: string;
70
+ }
71
+ interface CalendarViewProps<T> extends ViewBaseProps<T> {
72
+ /** Controlled month. Any date inside the month works. */
73
+ month?: Date;
74
+ /** Starting month when uncontrolled. Defaults to the month containing `now`. */
75
+ defaultMonth?: Date;
76
+ onMonthChange?: (month: Date) => void;
77
+ /**
78
+ * IANA zone the grid is drawn in, e.g. `America/New_York`. Defaults to the
79
+ * runtime's. A day boundary is a business fact, so state it explicitly when
80
+ * the collection belongs to somewhere other than the viewer.
81
+ */
82
+ timeZone?: string;
83
+ /** 1 = Monday … 7 = Sunday. Defaults to Monday. */
84
+ weekStartsOn?: number;
85
+ /** Locale for month, weekday and day-number formatting. */
86
+ locale?: string;
87
+ /** Entries to show per day before collapsing into "{count} more". */
88
+ maxPerDay?: number;
89
+ labels?: Partial<CalendarLabels>;
90
+ classNames?: Partial<Record<CalendarViewSlot, string>>;
91
+ /** Hide the month toolbar when the host renders its own. */
92
+ hideToolbar?: boolean;
93
+ }
94
+
95
+ /**
96
+ * Column width in time. `month` and `quarter` are what a roadmap is — the
97
+ * family has no separate RoadmapView, because it would be this component with
98
+ * wider columns.
99
+ */
100
+ type GanttCadence = 'day' | 'week' | 'month' | 'quarter';
101
+ type GanttViewSlot = 'header' | 'groupLabel' | 'row' | 'bar' | 'selectedBar' | 'state';
102
+ interface GanttLabels extends ViewLabels {
103
+ /** Accessible name of the scrollable chart region. */
104
+ chart: string;
105
+ /** Footnote for records a time axis cannot place. `{count}` is substituted. */
106
+ undated: string;
107
+ }
108
+ interface GanttViewProps<T> extends ViewBaseProps<T> {
109
+ /** Column width in time. Defaults to `week`. */
110
+ cadence?: GanttCadence;
111
+ /** First column. Defaults to the earliest start in `items`. */
112
+ rangeStart?: Date;
113
+ /** Last column. Defaults to the latest end in `items`. */
114
+ rangeEnd?: Date;
115
+ /** Group rows into swimlanes by `accessors.getGroup`. */
116
+ groupByLane?: boolean;
117
+ timeZone?: string;
118
+ locale?: string;
119
+ labels?: Partial<GanttLabels>;
120
+ classNames?: Partial<Record<GanttViewSlot, string>>;
121
+ headingLevel?: 'h2' | 'h3' | 'h4';
122
+ }
12
123
 
13
124
  /**
14
125
  * Every string any layout in the set can render.
@@ -1,14 +1,125 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
- import { ViewOption } from '../ViewSwitcher/index.js';
4
- import { ListViewProps } from '../ListView/index.js';
5
- import { BoardLabels, BoardViewProps } from '../BoardView/index.js';
6
- import { CalendarLabels, CalendarViewProps } from '../CalendarView/index.js';
7
- import { GanttLabels, GanttViewProps } from '../GanttView/index.js';
8
- import { a as ViewBaseProps, b as ViewId, S as Stage } from '../../types-CbWXIKbe.js';
9
- import 'class-variance-authority/types';
10
- import 'class-variance-authority';
11
- import 'luxon';
3
+ import { V as ViewBaseProps, S as Stage, a as ViewLabels, b as ViewId, c as ViewOption } from '../../index-DoYYWsNc.js';
4
+ import * as class_variance_authority_types from 'class-variance-authority/types';
5
+ import { VariantProps } from 'class-variance-authority';
6
+
7
+ type ListViewSlot = 'group' | 'groupHeader' | 'item' | 'selectedItem' | 'state';
8
+ interface ListViewProps<T> extends ViewBaseProps<T>, VariantProps<typeof itemVariants> {
9
+ /**
10
+ * Group rows by `accessors.getStatus`, using these stages for order and
11
+ * labels. Items whose status matches no stage are appended under their own
12
+ * heading rather than dropped.
13
+ */
14
+ stages?: readonly Stage[];
15
+ /** Group by `accessors.getGroup` instead of by stage. */
16
+ groupBy?: 'status' | 'group' | 'none';
17
+ /** Groups that start collapsed. Uncontrolled; the user can reopen them. */
18
+ defaultCollapsedGroups?: readonly string[];
19
+ /** Retries the failed load. Renders the retry action only when provided. */
20
+ onRetry?: () => void;
21
+ classNames?: Partial<Record<ListViewSlot, string>>;
22
+ /** Heading level for group headers, under the page's own heading. */
23
+ headingLevel?: 'h2' | 'h3' | 'h4';
24
+ }
25
+ declare const itemVariants: (props?: ({
26
+ density?: "comfortable" | "compact" | null | undefined;
27
+ interactive?: boolean | null | undefined;
28
+ selected?: boolean | null | undefined;
29
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
30
+
31
+ type BoardViewSlot = 'column' | 'columnHeader' | 'card' | 'selectedCard' | 'state';
32
+ interface BoardLabels extends ViewLabels {
33
+ /** Accessible name of the scrollable board region. */
34
+ board: string;
35
+ /** Announced when a card starts moving. `{item}` and `{stage}` are substituted. */
36
+ moved: string;
37
+ /** Announced when `onMove` rejects. */
38
+ moveFailed: string;
39
+ /** Hint on a focusable card describing the keyboard move. */
40
+ moveHint: string;
41
+ }
42
+ interface BoardViewProps<T> extends ViewBaseProps<T>, VariantProps<typeof cardVariants> {
43
+ /** Columns, in order. A board without stages has nothing to draw. */
44
+ stages: readonly Stage[];
45
+ /**
46
+ * Commits a move. The board shows the card in its new column while this is
47
+ * pending and puts it back if the promise rejects, so the caller never has to
48
+ * re-render it home.
49
+ */
50
+ onMove?: (id: string, toStage: string, item: T) => void | Promise<void>;
51
+ labels?: Partial<BoardLabels>;
52
+ classNames?: Partial<Record<BoardViewSlot, string>>;
53
+ /** Heading level for column headers, under the page's own heading. */
54
+ headingLevel?: 'h2' | 'h3' | 'h4';
55
+ }
56
+ declare const cardVariants: (props?: ({
57
+ density?: "comfortable" | "compact" | null | undefined;
58
+ interactive?: boolean | null | undefined;
59
+ selected?: boolean | null | undefined;
60
+ pending?: boolean | null | undefined;
61
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
62
+
63
+ type CalendarViewSlot = 'toolbar' | 'weekday' | 'day' | 'outsideDay' | 'today' | 'entry' | 'selectedEntry' | 'state';
64
+ interface CalendarLabels extends ViewLabels {
65
+ previousMonth: string;
66
+ nextMonth: string;
67
+ today: string;
68
+ /** Overflow affordance. `{count}` is substituted. */
69
+ more: string;
70
+ }
71
+ interface CalendarViewProps<T> extends ViewBaseProps<T> {
72
+ /** Controlled month. Any date inside the month works. */
73
+ month?: Date;
74
+ /** Starting month when uncontrolled. Defaults to the month containing `now`. */
75
+ defaultMonth?: Date;
76
+ onMonthChange?: (month: Date) => void;
77
+ /**
78
+ * IANA zone the grid is drawn in, e.g. `America/New_York`. Defaults to the
79
+ * runtime's. A day boundary is a business fact, so state it explicitly when
80
+ * the collection belongs to somewhere other than the viewer.
81
+ */
82
+ timeZone?: string;
83
+ /** 1 = Monday … 7 = Sunday. Defaults to Monday. */
84
+ weekStartsOn?: number;
85
+ /** Locale for month, weekday and day-number formatting. */
86
+ locale?: string;
87
+ /** Entries to show per day before collapsing into "{count} more". */
88
+ maxPerDay?: number;
89
+ labels?: Partial<CalendarLabels>;
90
+ classNames?: Partial<Record<CalendarViewSlot, string>>;
91
+ /** Hide the month toolbar when the host renders its own. */
92
+ hideToolbar?: boolean;
93
+ }
94
+
95
+ /**
96
+ * Column width in time. `month` and `quarter` are what a roadmap is — the
97
+ * family has no separate RoadmapView, because it would be this component with
98
+ * wider columns.
99
+ */
100
+ type GanttCadence = 'day' | 'week' | 'month' | 'quarter';
101
+ type GanttViewSlot = 'header' | 'groupLabel' | 'row' | 'bar' | 'selectedBar' | 'state';
102
+ interface GanttLabels extends ViewLabels {
103
+ /** Accessible name of the scrollable chart region. */
104
+ chart: string;
105
+ /** Footnote for records a time axis cannot place. `{count}` is substituted. */
106
+ undated: string;
107
+ }
108
+ interface GanttViewProps<T> extends ViewBaseProps<T> {
109
+ /** Column width in time. Defaults to `week`. */
110
+ cadence?: GanttCadence;
111
+ /** First column. Defaults to the earliest start in `items`. */
112
+ rangeStart?: Date;
113
+ /** Last column. Defaults to the latest end in `items`. */
114
+ rangeEnd?: Date;
115
+ /** Group rows into swimlanes by `accessors.getGroup`. */
116
+ groupByLane?: boolean;
117
+ timeZone?: string;
118
+ locale?: string;
119
+ labels?: Partial<GanttLabels>;
120
+ classNames?: Partial<Record<GanttViewSlot, string>>;
121
+ headingLevel?: 'h2' | 'h3' | 'h4';
122
+ }
12
123
 
13
124
  /**
14
125
  * Every string any layout in the set can render.
@@ -1,40 +1,4 @@
1
- import * as class_variance_authority_types from 'class-variance-authority/types';
2
- import * as React from 'react';
3
- import { VariantProps } from 'class-variance-authority';
4
- import { b as ViewId } from '../../types-CbWXIKbe.cjs';
5
- import 'luxon';
6
-
7
- interface ViewOption {
8
- id: ViewId;
9
- /** Overrides the built-in English label. */
10
- label?: string;
11
- /** Overrides the built-in icon. */
12
- icon?: React.ComponentType<{
13
- className?: string;
14
- 'aria-hidden'?: boolean;
15
- }>;
16
- disabled?: boolean;
17
- }
18
- interface ViewSwitcherProps extends VariantProps<typeof viewSwitcherVariants> {
19
- /** Views to offer, in order. Accepts bare ids or `ViewOption`s. */
20
- views: readonly (ViewId | ViewOption)[];
21
- value: ViewId;
22
- onValueChange: (view: ViewId) => void;
23
- /** Accessible name of the group. */
24
- label?: string;
25
- /** Show labels beside the icons. `responsive` hides them below `sm`. */
26
- showLabels?: boolean | 'responsive';
27
- className?: string;
28
- classNames?: Partial<Record<'option' | 'activeOption', string>>;
29
- }
30
- declare const viewSwitcherVariants: (props?: ({
31
- size?: "sm" | "md" | null | undefined;
32
- } & class_variance_authority_types.ClassProp) | undefined) => string;
33
- /**
34
- * Keyboard model is a radio group: one tab stop, arrows move *and* select.
35
- * Every option is visible, so moving the selection is the whole interaction —
36
- * there is nothing to "commit" afterwards.
37
- */
38
- declare const ViewSwitcher: React.ForwardRefExoticComponent<ViewSwitcherProps & React.RefAttributes<HTMLDivElement>>;
39
-
40
- export { type ViewOption, ViewSwitcher, type ViewSwitcherProps, viewSwitcherVariants };
1
+ export { c as ViewOption, d as ViewSwitcher, e as ViewSwitcherProps, v as viewSwitcherVariants } from '../../index-DoYYWsNc.cjs';
2
+ import 'class-variance-authority/types';
3
+ import 'react';
4
+ import 'class-variance-authority';
@@ -1,40 +1,4 @@
1
- import * as class_variance_authority_types from 'class-variance-authority/types';
2
- import * as React from 'react';
3
- import { VariantProps } from 'class-variance-authority';
4
- import { b as ViewId } from '../../types-CbWXIKbe.js';
5
- import 'luxon';
6
-
7
- interface ViewOption {
8
- id: ViewId;
9
- /** Overrides the built-in English label. */
10
- label?: string;
11
- /** Overrides the built-in icon. */
12
- icon?: React.ComponentType<{
13
- className?: string;
14
- 'aria-hidden'?: boolean;
15
- }>;
16
- disabled?: boolean;
17
- }
18
- interface ViewSwitcherProps extends VariantProps<typeof viewSwitcherVariants> {
19
- /** Views to offer, in order. Accepts bare ids or `ViewOption`s. */
20
- views: readonly (ViewId | ViewOption)[];
21
- value: ViewId;
22
- onValueChange: (view: ViewId) => void;
23
- /** Accessible name of the group. */
24
- label?: string;
25
- /** Show labels beside the icons. `responsive` hides them below `sm`. */
26
- showLabels?: boolean | 'responsive';
27
- className?: string;
28
- classNames?: Partial<Record<'option' | 'activeOption', string>>;
29
- }
30
- declare const viewSwitcherVariants: (props?: ({
31
- size?: "sm" | "md" | null | undefined;
32
- } & class_variance_authority_types.ClassProp) | undefined) => string;
33
- /**
34
- * Keyboard model is a radio group: one tab stop, arrows move *and* select.
35
- * Every option is visible, so moving the selection is the whole interaction —
36
- * there is nothing to "commit" afterwards.
37
- */
38
- declare const ViewSwitcher: React.ForwardRefExoticComponent<ViewSwitcherProps & React.RefAttributes<HTMLDivElement>>;
39
-
40
- export { type ViewOption, ViewSwitcher, type ViewSwitcherProps, viewSwitcherVariants };
1
+ export { c as ViewOption, d as ViewSwitcher, e as ViewSwitcherProps, v as viewSwitcherVariants } from '../../index-DoYYWsNc.js';
2
+ import 'class-variance-authority/types';
3
+ import 'react';
4
+ import 'class-variance-authority';
@@ -1,7 +1,6 @@
1
- import * as React$1 from 'react';
2
- import React__default from 'react';
1
+ import * as react from 'react';
2
+ import react__default from 'react';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
- import { P as PatientHistory, a as ProgramsMap, O as OrderRow } from './orderRows-BUJYgSc7.cjs';
5
4
 
6
5
  /**
7
6
  * EventBridge — Adapts the wcdatavis `mixinEventHandling` pub/sub pattern
@@ -345,7 +344,7 @@ interface TableFeatures {
345
344
  rowMode?: 'wrapped' | 'clipped';
346
345
  }
347
346
  /** Cell formatter function — returns React node */
348
- type CellFormatter = (value: unknown, row: RowData, column: TableColumn) => React__default.ReactNode;
347
+ type CellFormatter = (value: unknown, row: RowData, column: TableColumn) => react__default.ReactNode;
349
348
 
350
349
  /**
351
350
  * OperationsPalette — Inline toolbar of action buttons for row-level operations.
@@ -359,7 +358,7 @@ interface Operation {
359
358
  /** Display label */
360
359
  label?: string;
361
360
  /** Optional icon element */
362
- icon?: React__default.ReactNode;
361
+ icon?: react__default.ReactNode;
363
362
  /** Category for grouping */
364
363
  category?: string;
365
364
  /** Callback invoked when the operation is triggered */
@@ -369,7 +368,7 @@ interface OperationContext {
369
368
  /** Currently selected rows */
370
369
  rows: unknown[];
371
370
  /** The button element (for positioning popovers, etc.) */
372
- buttonRef?: React__default.RefObject<HTMLButtonElement>;
371
+ buttonRef?: react__default.RefObject<HTMLButtonElement>;
373
372
  }
374
373
 
375
374
  /**
@@ -627,7 +626,7 @@ interface DataVisNitroAggregate {
627
626
  fields: string[];
628
627
  }
629
628
  interface DataVisNitroSourceConfigurationProps {
630
- children?: React__default.ReactNode;
629
+ children?: react__default.ReactNode;
631
630
  groupBy?: Array<string | DataVisNitroGroupField>;
632
631
  aggregates?: DataVisNitroAggregate[];
633
632
  }
@@ -648,15 +647,15 @@ interface DataVisNitroGridProps extends Omit<DataGridProps, 'view' | 'children'
648
647
  columns?: DataVisNitroColumn[];
649
648
  allColumns?: TableColumn[];
650
649
  features?: TableFeatures;
651
- style?: React__default.CSSProperties;
650
+ style?: react__default.CSSProperties;
652
651
  trans?: TranslateFn;
653
652
  }
654
- declare const DataVisNitroContext: React__default.Context<ViewInstance | null>;
655
- declare function DataVisNitroSource(props: DataVisNitroSourceProps): React__default.JSX.Element;
653
+ declare const DataVisNitroContext: react__default.Context<ViewInstance | null>;
654
+ declare function DataVisNitroSource(props: DataVisNitroSourceProps): react__default.JSX.Element;
656
655
  declare namespace DataVisNitroSource {
657
656
  var displayName: string;
658
657
  }
659
- declare function DataVisNitroGrid(props: DataVisNitroGridProps): React__default.JSX.Element | null;
658
+ declare function DataVisNitroGrid(props: DataVisNitroGridProps): react__default.JSX.Element | null;
660
659
  declare namespace DataVisNitroGrid {
661
660
  var displayName: string;
662
661
  }
@@ -669,7 +668,7 @@ interface DataVisNitroGraphProps {
669
668
  height?: string;
670
669
  onConfigChange?: (config: GraphConfig) => void;
671
670
  }
672
- declare function DataVisNitroGraph(props: DataVisNitroGraphProps): React$1.JSX.Element | null;
671
+ declare function DataVisNitroGraph(props: DataVisNitroGraphProps): react.JSX.Element | null;
673
672
  declare namespace DataVisNitroGraph {
674
673
  var displayName: string;
675
674
  }
@@ -682,7 +681,162 @@ interface LanguageSelectorProps {
682
681
  /** Extra CSS class. */
683
682
  className?: string;
684
683
  }
685
- declare function LanguageSelector({ value, onLanguageChange, className, }: LanguageSelectorProps): React$1.JSX.Element;
684
+ declare function LanguageSelector({ value, onLanguageChange, className, }: LanguageSelectorProps): react.JSX.Element;
685
+
686
+ /**
687
+ * Patient history — the minimal longitudinal facts the health-surveillance
688
+ * due engine needs: who the patient is (age, sex) and what has been done or
689
+ * is in flight (orders with status, observations, procedures, immunizations),
690
+ * plus problem-list context (conditions) and allergies for display/interop.
691
+ *
692
+ * All clinical entries are keyed by `CODETYPE|FULLCODE` — the same keys used
693
+ * by programs.json order sets and the codify shards — so the due engine can
694
+ * match history against a program's satisfying orders with plain string
695
+ * equality.
696
+ */
697
+ /** ISO date string (YYYY-MM-DD or full ISO timestamp). */
698
+ type IsoDate = string;
699
+ interface HistoryOrder {
700
+ /** CODETYPE|FULLCODE, e.g. "Quest Order|3058" or "HCPCS|92551" */
701
+ key: string;
702
+ /** Display label (optional; the due list falls back to the key) */
703
+ label?: string;
704
+ status: 'completed' | 'pending';
705
+ /** Completion date for completed orders; order date for pending ones */
706
+ date: IsoDate;
707
+ /** Ordering/performing provider display name (e.g. "Dr. Patel") */
708
+ provider?: string;
709
+ /** Requisition the order was bundled into — the document routing a batch
710
+ * of encounter orders to a provider/referral (e.g. "REQ-2024-0117") */
711
+ requisitionId?: string;
712
+ /** Encounter (visit) the order was placed in (e.g. "ENC-2024-0117") */
713
+ encounterId?: string;
714
+ }
715
+ interface HistoryObservation {
716
+ /** CODETYPE|FULLCODE, e.g. "LOINC|4548-4" (HbA1c) */
717
+ key: string;
718
+ label?: string;
719
+ /** Display value with units, e.g. "7.2 %" or "38 ug/dL" */
720
+ value?: string;
721
+ date: IsoDate;
722
+ }
723
+ interface HistoryProcedure {
724
+ key: string;
725
+ label?: string;
726
+ date: IsoDate;
727
+ }
728
+ interface HistoryImmunization {
729
+ /** CODETYPE|FULLCODE, e.g. "CVX|88" */
730
+ key: string;
731
+ label?: string;
732
+ date: IsoDate;
733
+ }
734
+ interface HistoryCondition {
735
+ key: string;
736
+ label?: string;
737
+ onset?: IsoDate;
738
+ }
739
+ interface HistoryAllergy {
740
+ /** Allergen key when coded (e.g. "RxNORM|7980"), else omit */
741
+ key?: string;
742
+ label: string;
743
+ reaction?: string;
744
+ severity?: 'mild' | 'moderate' | 'severe';
745
+ }
746
+ interface HistoryMedication {
747
+ key?: string;
748
+ label: string;
749
+ /** Sig / dose display, e.g. "10 mg daily" */
750
+ detail?: string;
751
+ }
752
+ interface PatientHistory {
753
+ /** Age in years */
754
+ age: number;
755
+ sex: 'M' | 'F';
756
+ /** Past + in-flight orders (completion drives the due engine) */
757
+ orders: HistoryOrder[];
758
+ observations?: HistoryObservation[];
759
+ procedures?: HistoryProcedure[];
760
+ immunizations?: HistoryImmunization[];
761
+ conditions?: HistoryCondition[];
762
+ allergies?: HistoryAllergy[];
763
+ medications?: HistoryMedication[];
764
+ }
765
+
766
+ /**
767
+ * Due-evaluation engine — the "knowledge" layer of health surveillance.
768
+ * Given a patient's history and the program metadata (programs.json from
769
+ * mieweb/codify, or a deployment's own), decides which programs/measures are
770
+ * due, overdue, pending, or satisfied. Pure functions, no I/O — the metadata
771
+ * is small, so this runs on the main thread.
772
+ */
773
+
774
+ /**
775
+ * One entry in a program's order set:
776
+ * - `"CODETYPE|FULLCODE"` — a plain required order
777
+ * - `{ alt: [a, b] }` — mutually exclusive alternatives (one-of): a
778
+ * colonoscopy OR a FIT satisfies colorectal screening
779
+ * - `{ key, after: […] }` — depends on completed prerequisites (Gantt edge):
780
+ * the RMO's fitness-for-duty determination needs the panel results first,
781
+ * and a program may carry several determinations (per panel / per SEG)
782
+ */
783
+ type ProgramOrder = string | {
784
+ key?: string;
785
+ alt?: string[];
786
+ after?: string[];
787
+ };
788
+ /** Program metadata — mirrors programs.json (see mieweb/codify). */
789
+ interface ProgramMeta {
790
+ kind?: 'surveillance' | 'fitness' | 'credential' | 'quality';
791
+ /** Omitted = one-time / event-driven (satisfied forever once done) */
792
+ periodicityMonths?: number;
793
+ ageMin?: number;
794
+ ageMax?: number;
795
+ sex?: 'M' | 'F';
796
+ /** Satisfying orders — plain keys, one-of alternatives, or dependent
797
+ * entries (see ProgramOrder) */
798
+ orders?: ProgramOrder[];
799
+ }
800
+ type ProgramsMap = Record<string, ProgramMeta>;
801
+
802
+ /**
803
+ * Order-row builders — flatten the order history and the due-evaluation
804
+ * output into grid-friendly rows (one row per encounter order) for the
805
+ * NITRO-backed ChartOrdersGrid / EncounterOrdersGrid.
806
+ *
807
+ * Pure functions, no I/O. Every field is a flat string so the DataVis engine
808
+ * can group/filter/aggregate on any of them (reason, provider, requisition,
809
+ * status, kind, date).
810
+ */
811
+
812
+ /** Per-order status — finer grained than the program-level DueStatus. */
813
+ type OrderRowStatus = 'completed' | 'pending' | 'available' | 'blocked';
814
+ /** One encounter order as a flat grid row. */
815
+ interface OrderRow {
816
+ /** CODETYPE|FULLCODE of the order */
817
+ orderKey: string;
818
+ /** Order display label */
819
+ order: string;
820
+ /** Reason/concern — the surveillance program or quality measure label */
821
+ reason: string;
822
+ /** Program key (CODETYPE|FULLCODE); '' when no program matches */
823
+ reasonKey: string;
824
+ /** Program kind label ('surveillance', 'quality measure', …) */
825
+ kind: string;
826
+ status: OrderRowStatus;
827
+ /** Completion date (completed) or order date (pending); '' otherwise */
828
+ date: string;
829
+ /** Program due date, when known */
830
+ dueDate: string;
831
+ /** Ordering/performing provider; '' when unknown */
832
+ provider: string;
833
+ /** Requisition the order is bundled into; '' = unprocessed */
834
+ requisitionId: string;
835
+ /** Encounter the order was placed in; '' for not-yet-placed rows */
836
+ encounterId: string;
837
+ /** Unmet prerequisite labels, comma-joined ('' when unblocked) */
838
+ blockedBy: string;
839
+ }
686
840
 
687
841
  interface OrdersGridBaseProps {
688
842
  history: PatientHistory;