@close-by/clay 0.1.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/LICENSE +21 -0
- package/README.md +21 -0
- package/package.json +32 -0
- package/src/index.ts +1420 -0
- package/src/pages.ts +180 -0
package/src/index.ts
ADDED
|
@@ -0,0 +1,1420 @@
|
|
|
1
|
+
import {
|
|
2
|
+
button as buttonFactory,
|
|
3
|
+
label as labelFactory,
|
|
4
|
+
input as inputFactory,
|
|
5
|
+
checkbox as checkboxFactory,
|
|
6
|
+
switchControl as switchFactory,
|
|
7
|
+
select as selectFactory,
|
|
8
|
+
radioGroup as radioGroupFactory,
|
|
9
|
+
combobox as comboboxFactory,
|
|
10
|
+
date as dateFactory,
|
|
11
|
+
tooltip as tooltipFactory,
|
|
12
|
+
avatar as avatarFactory,
|
|
13
|
+
skeleton as skeletonFactory,
|
|
14
|
+
slider as sliderFactory,
|
|
15
|
+
textArea as textAreaFactory,
|
|
16
|
+
link as linkFactory,
|
|
17
|
+
badge as badgeFactory,
|
|
18
|
+
alert as alertFactory,
|
|
19
|
+
spinner as spinnerFactory,
|
|
20
|
+
progress as progressFactory,
|
|
21
|
+
separator as separatorFactory,
|
|
22
|
+
icon as iconFactory,
|
|
23
|
+
stat as statFactory,
|
|
24
|
+
dataTable as dataTableFactory,
|
|
25
|
+
areaChart as areaChartFactory,
|
|
26
|
+
barChart as barChartFactory,
|
|
27
|
+
lineChart as lineChartFactory,
|
|
28
|
+
pieChart as pieChartFactory,
|
|
29
|
+
radarChart as radarChartFactory,
|
|
30
|
+
radialChart as radialChartFactory,
|
|
31
|
+
scatterChart as scatterChartFactory,
|
|
32
|
+
composedChart as composedChartFactory,
|
|
33
|
+
row as rowFactory,
|
|
34
|
+
column as columnFactory,
|
|
35
|
+
container as containerFactory,
|
|
36
|
+
hero as heroFactory,
|
|
37
|
+
card as cardFactory,
|
|
38
|
+
dialog as dialogFactory,
|
|
39
|
+
dialogStack as dialogStackFactory,
|
|
40
|
+
alertDialog as alertDialogFactory,
|
|
41
|
+
dropdownMenu as dropdownMenuFactory,
|
|
42
|
+
breadcrumb as breadcrumbFactory,
|
|
43
|
+
contextMenu as contextMenuFactory,
|
|
44
|
+
hoverCard as hoverCardFactory,
|
|
45
|
+
popover as popoverFactory,
|
|
46
|
+
inputOtp as inputOtpFactory,
|
|
47
|
+
toggleGroup as toggleGroupFactory,
|
|
48
|
+
menubar as menubarFactory,
|
|
49
|
+
carousel as carouselFactory,
|
|
50
|
+
command as commandFactory,
|
|
51
|
+
resizable as resizableFactory,
|
|
52
|
+
scrollArea as scrollAreaFactory,
|
|
53
|
+
keybind as keybindFactory,
|
|
54
|
+
kbd as kbdFactory,
|
|
55
|
+
sheet as sheetFactory,
|
|
56
|
+
drawer as drawerFactory,
|
|
57
|
+
tabs as tabsFactory,
|
|
58
|
+
accordion as accordionFactory,
|
|
59
|
+
collapsible as collapsibleFactory,
|
|
60
|
+
confirm as confirmFactory,
|
|
61
|
+
prompt as promptFactory,
|
|
62
|
+
choose as chooseFactory,
|
|
63
|
+
app as appFactory,
|
|
64
|
+
markdown as markdownFactory,
|
|
65
|
+
html as htmlFactory,
|
|
66
|
+
image as imageFactory,
|
|
67
|
+
upload as uploadFactory,
|
|
68
|
+
rating as ratingFactory,
|
|
69
|
+
colorPicker as colorPickerFactory,
|
|
70
|
+
tags as tagsFactory,
|
|
71
|
+
codeBlock as codeBlockFactory,
|
|
72
|
+
tree as treeFactory,
|
|
73
|
+
editor as editorFactory,
|
|
74
|
+
kanban as kanbanFactory,
|
|
75
|
+
relativeTime as relativeTimeFactory,
|
|
76
|
+
qrCode as qrCodeFactory,
|
|
77
|
+
imageZoom as imageZoomFactory,
|
|
78
|
+
list as listFactory,
|
|
79
|
+
imageCrop as imageCropFactory,
|
|
80
|
+
gantt as ganttFactory,
|
|
81
|
+
chart as chartNamespace,
|
|
82
|
+
table as tableFactory,
|
|
83
|
+
flow as flowFactory,
|
|
84
|
+
ai as aiNamespace,
|
|
85
|
+
AiChatElement,
|
|
86
|
+
type ButtonProps,
|
|
87
|
+
type LabelProps,
|
|
88
|
+
type InputProps,
|
|
89
|
+
type CheckboxProps,
|
|
90
|
+
type SwitchProps,
|
|
91
|
+
type SelectProps,
|
|
92
|
+
type RadioGroupProps,
|
|
93
|
+
type ComboboxProps,
|
|
94
|
+
type DateProps,
|
|
95
|
+
type TooltipProps,
|
|
96
|
+
type AvatarProps,
|
|
97
|
+
type SkeletonProps,
|
|
98
|
+
type SliderProps,
|
|
99
|
+
type TextAreaProps,
|
|
100
|
+
type LinkProps,
|
|
101
|
+
type BadgeProps,
|
|
102
|
+
type AlertProps,
|
|
103
|
+
type SpinnerProps,
|
|
104
|
+
type ProgressProps,
|
|
105
|
+
type SeparatorProps,
|
|
106
|
+
type IconProps,
|
|
107
|
+
type StatItem,
|
|
108
|
+
type DataTableProps,
|
|
109
|
+
type DataTableAction,
|
|
110
|
+
type DataTableView,
|
|
111
|
+
type DataTableGroup,
|
|
112
|
+
type DataTablePrimaryAction,
|
|
113
|
+
type DataTableFacetOption,
|
|
114
|
+
type DataTableDensity,
|
|
115
|
+
type DataTableSort,
|
|
116
|
+
type DataTableSortDir,
|
|
117
|
+
type DataTableQuery,
|
|
118
|
+
type TableColumn,
|
|
119
|
+
type TableColumnFilter,
|
|
120
|
+
type TableColumnEditor,
|
|
121
|
+
type TableColumnPin,
|
|
122
|
+
type TableColumnAggregate,
|
|
123
|
+
type AreaChartProps,
|
|
124
|
+
type AreaChartSeries,
|
|
125
|
+
type BarChartProps,
|
|
126
|
+
type BarChartSeries,
|
|
127
|
+
type LineChartProps,
|
|
128
|
+
type LineChartSeries,
|
|
129
|
+
type PieChartProps,
|
|
130
|
+
type PieChartSeries,
|
|
131
|
+
type RadarChartProps,
|
|
132
|
+
type RadarChartSeries,
|
|
133
|
+
type RadialChartProps,
|
|
134
|
+
type RadialChartSeries,
|
|
135
|
+
type ScatterChartProps,
|
|
136
|
+
type ScatterChartSeries,
|
|
137
|
+
type ComposedChartProps,
|
|
138
|
+
type ComposedChartSeries,
|
|
139
|
+
type ComposedSeriesType,
|
|
140
|
+
type CartesianChartProps,
|
|
141
|
+
type ChartSeries,
|
|
142
|
+
type CardProps,
|
|
143
|
+
type DialogProps,
|
|
144
|
+
type DialogStackProps,
|
|
145
|
+
type DialogStackStepOptions,
|
|
146
|
+
type AlertDialogProps,
|
|
147
|
+
type DropdownMenuProps,
|
|
148
|
+
type DropdownItemOptions,
|
|
149
|
+
type ContextMenuProps,
|
|
150
|
+
type ContextMenuItemOptions,
|
|
151
|
+
type HoverCardProps,
|
|
152
|
+
type HoverCardSide,
|
|
153
|
+
type PopoverProps,
|
|
154
|
+
type InputOtpProps,
|
|
155
|
+
type ToggleGroupProps,
|
|
156
|
+
type ToggleGroupType,
|
|
157
|
+
type ToggleItemOptions,
|
|
158
|
+
type MenubarProps,
|
|
159
|
+
type MenubarItemOptions,
|
|
160
|
+
type MenubarCheckboxOptions,
|
|
161
|
+
type MenubarRadioGroupOptions,
|
|
162
|
+
type MenubarRadioItemOptions,
|
|
163
|
+
type CarouselProps,
|
|
164
|
+
type CarouselOrientation,
|
|
165
|
+
type CommandProps,
|
|
166
|
+
type CommandMode,
|
|
167
|
+
type CommandItemOptions,
|
|
168
|
+
type ResizableProps,
|
|
169
|
+
type ResizableOrientation,
|
|
170
|
+
type ResizablePanelProps,
|
|
171
|
+
type ResizableHandleProps,
|
|
172
|
+
type ScrollAreaProps,
|
|
173
|
+
type KeybindProps,
|
|
174
|
+
type KbdProps,
|
|
175
|
+
type BreadcrumbItem,
|
|
176
|
+
type BreadcrumbProps,
|
|
177
|
+
type SheetProps,
|
|
178
|
+
type SheetSide,
|
|
179
|
+
type DrawerProps,
|
|
180
|
+
type DrawerDirection,
|
|
181
|
+
type TabsProps,
|
|
182
|
+
type TabPanelOptions,
|
|
183
|
+
type AccordionProps,
|
|
184
|
+
type AccordionType,
|
|
185
|
+
type AccordionItemOptions,
|
|
186
|
+
type CollapsibleProps,
|
|
187
|
+
type ConfirmOptions,
|
|
188
|
+
type PromptOptions,
|
|
189
|
+
type ChooseOptions,
|
|
190
|
+
type ChooseOption,
|
|
191
|
+
type AppProps,
|
|
192
|
+
type AppNavItem,
|
|
193
|
+
type AppUser,
|
|
194
|
+
type MarkdownProps,
|
|
195
|
+
type HtmlProps,
|
|
196
|
+
type ImageProps,
|
|
197
|
+
type UploadProps,
|
|
198
|
+
type UploadVariant,
|
|
199
|
+
type UploadedFile,
|
|
200
|
+
type UploadProgress,
|
|
201
|
+
type RatingProps,
|
|
202
|
+
type ColorPickerProps,
|
|
203
|
+
type TagsProps,
|
|
204
|
+
type TagsOption,
|
|
205
|
+
type CodeBlockProps,
|
|
206
|
+
type TreeProps,
|
|
207
|
+
type TreeNode,
|
|
208
|
+
type EditorProps,
|
|
209
|
+
type EditorFormat,
|
|
210
|
+
KanbanElement,
|
|
211
|
+
KANBAN_DETAIL_FIELD,
|
|
212
|
+
type KanbanProps,
|
|
213
|
+
type KanbanColumn,
|
|
214
|
+
type KanbanCard,
|
|
215
|
+
type KanbanLane,
|
|
216
|
+
type KanbanCardMovePayload,
|
|
217
|
+
type RelativeTimeProps,
|
|
218
|
+
type RelativeTimeTimezone,
|
|
219
|
+
type RelativeTimeDateStyle,
|
|
220
|
+
type RelativeTimeTimeStyle,
|
|
221
|
+
type QrCodeProps,
|
|
222
|
+
type QrCodeLevel,
|
|
223
|
+
type ImageZoomProps,
|
|
224
|
+
ListElement,
|
|
225
|
+
type ListProps,
|
|
226
|
+
type ListGroup,
|
|
227
|
+
type ListItem,
|
|
228
|
+
type ListItemMovePayload,
|
|
229
|
+
type ImageCropProps,
|
|
230
|
+
type ImageCropPayload,
|
|
231
|
+
GanttElement,
|
|
232
|
+
type GanttProps,
|
|
233
|
+
type GanttRow,
|
|
234
|
+
type GanttItem,
|
|
235
|
+
type GanttMarker,
|
|
236
|
+
type GanttDependency,
|
|
237
|
+
type GanttRange,
|
|
238
|
+
type GanttItemMovePayload,
|
|
239
|
+
type FlowProps,
|
|
240
|
+
type FlowNodeProps,
|
|
241
|
+
type FlowNodeKind,
|
|
242
|
+
type FlowEdge,
|
|
243
|
+
type FlowEdgePathType,
|
|
244
|
+
type FlowEdgeVariant,
|
|
245
|
+
type FlowHandle,
|
|
246
|
+
type FlowHandlePosition,
|
|
247
|
+
type FlowPosition,
|
|
248
|
+
type FlowConnectPayload,
|
|
249
|
+
type FlowNodeMovePayload,
|
|
250
|
+
type FlowSelectionPayload,
|
|
251
|
+
type FlowLayoutOptions,
|
|
252
|
+
type FlowLayoutNodeMeta,
|
|
253
|
+
type FlowLayoutDirection,
|
|
254
|
+
makeFlowEdgeId,
|
|
255
|
+
computeFlowLayout,
|
|
256
|
+
type AiLoaderProps,
|
|
257
|
+
type AiLoaderVariant,
|
|
258
|
+
type AiThinkingProps,
|
|
259
|
+
type AiMessageProps,
|
|
260
|
+
type AiChatProps,
|
|
261
|
+
type AiPromptBarProps,
|
|
262
|
+
type AiPromptBarVariant,
|
|
263
|
+
type AiCodeBlockProps,
|
|
264
|
+
type AiApprovalProps,
|
|
265
|
+
type AiToolChipsProps,
|
|
266
|
+
type AiTasksProps,
|
|
267
|
+
type AiRecommendationProps,
|
|
268
|
+
type AiContextProps,
|
|
269
|
+
type AiDiffTableProps,
|
|
270
|
+
type AiInsightsProps,
|
|
271
|
+
type AiSelectionActionsProps,
|
|
272
|
+
type AiFineTuneProps,
|
|
273
|
+
type AiIdLabel,
|
|
274
|
+
type AiThinkingKind,
|
|
275
|
+
type AiThinkingStep,
|
|
276
|
+
type AiMessageRole,
|
|
277
|
+
type AiMessageSource,
|
|
278
|
+
type AiMessageAction,
|
|
279
|
+
type AiChatMessage,
|
|
280
|
+
type AiChatTab,
|
|
281
|
+
type AiTaskStatus,
|
|
282
|
+
type AiTask,
|
|
283
|
+
type AiToolChip,
|
|
284
|
+
type AiApprovalOption,
|
|
285
|
+
type AiRecommendationAlternative,
|
|
286
|
+
type AiContextChunk,
|
|
287
|
+
type AiDiffRow,
|
|
288
|
+
type AiDiffColumn,
|
|
289
|
+
type AiInsight,
|
|
290
|
+
type AiSelectionAction,
|
|
291
|
+
type AiFineTuneField,
|
|
292
|
+
type SeriesInput,
|
|
293
|
+
type ChartChromeOpts,
|
|
294
|
+
type PieRowKeys,
|
|
295
|
+
type RadialRowKeys,
|
|
296
|
+
type StackedGaugeOpts,
|
|
297
|
+
type ComposedTerminalOpts,
|
|
298
|
+
type PageSizeOptions,
|
|
299
|
+
type GroupByOptions,
|
|
300
|
+
DataTableElement,
|
|
301
|
+
TableBuilder,
|
|
302
|
+
DialogElement,
|
|
303
|
+
DialogStackElement,
|
|
304
|
+
AlertDialogElement,
|
|
305
|
+
DropdownMenuElement,
|
|
306
|
+
ContextMenuElement,
|
|
307
|
+
PopoverElement,
|
|
308
|
+
ToggleGroupElement,
|
|
309
|
+
MenubarElement,
|
|
310
|
+
MenubarMenuElement,
|
|
311
|
+
MenubarRadioGroupElement,
|
|
312
|
+
CarouselElement,
|
|
313
|
+
CommandElement,
|
|
314
|
+
CommandGroupElement,
|
|
315
|
+
ResizableElement,
|
|
316
|
+
SheetElement,
|
|
317
|
+
DrawerElement,
|
|
318
|
+
TabsElement,
|
|
319
|
+
AccordionElement,
|
|
320
|
+
CollapsibleElement,
|
|
321
|
+
FlowElement,
|
|
322
|
+
} from '@close-by/clay-components';
|
|
323
|
+
import {
|
|
324
|
+
Element,
|
|
325
|
+
RefreshableElement,
|
|
326
|
+
AutoElement,
|
|
327
|
+
page as corePage,
|
|
328
|
+
getPage,
|
|
329
|
+
notify as notifyCore,
|
|
330
|
+
navigate as navigateCore,
|
|
331
|
+
reconnect as reconnectCore,
|
|
332
|
+
download as downloadCore,
|
|
333
|
+
clipboard as clipboardCore,
|
|
334
|
+
runJavaScript as runJavaScriptCore,
|
|
335
|
+
scroll as scrollCore,
|
|
336
|
+
timer as timerCore,
|
|
337
|
+
storage as storageCore,
|
|
338
|
+
theme as themeCore,
|
|
339
|
+
reactive as reactiveCore,
|
|
340
|
+
state as stateCore,
|
|
341
|
+
subscribe as subscribeCore,
|
|
342
|
+
auto as autoCore,
|
|
343
|
+
draft as draftCore,
|
|
344
|
+
validate as validateCore,
|
|
345
|
+
setPageWrapper,
|
|
346
|
+
type NotifyOptions,
|
|
347
|
+
type NotifyType,
|
|
348
|
+
type ScrollToOptions,
|
|
349
|
+
type ScrollIntoViewOptions,
|
|
350
|
+
type FieldRule,
|
|
351
|
+
type PageOptions,
|
|
352
|
+
type PageFn,
|
|
353
|
+
type ToastPosition,
|
|
354
|
+
TimerHandle,
|
|
355
|
+
type TimerOptions,
|
|
356
|
+
type ThemeMode,
|
|
357
|
+
type DraftStorage,
|
|
358
|
+
type DraftOptions,
|
|
359
|
+
} from '@close-by/clay-core';
|
|
360
|
+
import {
|
|
361
|
+
ClayServer,
|
|
362
|
+
type ClayServerConfig,
|
|
363
|
+
establishAuthSession as establishAuthSessionCore,
|
|
364
|
+
clearAuthSession as clearAuthSessionCore,
|
|
365
|
+
} from '@close-by/clay-server';
|
|
366
|
+
import {
|
|
367
|
+
loadPages,
|
|
368
|
+
navFromPages,
|
|
369
|
+
clearPageMeta,
|
|
370
|
+
attachPageMeta,
|
|
371
|
+
importFresh,
|
|
372
|
+
resetPageDiscovery,
|
|
373
|
+
type PageMeta,
|
|
374
|
+
type NavFromPagesOptions,
|
|
375
|
+
} from './pages';
|
|
376
|
+
|
|
377
|
+
export type {
|
|
378
|
+
DataTableProps,
|
|
379
|
+
DataTableAction,
|
|
380
|
+
DataTableView,
|
|
381
|
+
DataTableGroup,
|
|
382
|
+
DataTablePrimaryAction,
|
|
383
|
+
DataTableFacetOption,
|
|
384
|
+
DataTableDensity,
|
|
385
|
+
DataTableSort,
|
|
386
|
+
DataTableSortDir,
|
|
387
|
+
DataTableQuery,
|
|
388
|
+
TableColumn,
|
|
389
|
+
TableColumnFilter,
|
|
390
|
+
TableColumnEditor,
|
|
391
|
+
TableColumnPin,
|
|
392
|
+
TableColumnAggregate,
|
|
393
|
+
AreaChartProps,
|
|
394
|
+
AreaChartSeries,
|
|
395
|
+
RadarChartProps,
|
|
396
|
+
RadarChartSeries,
|
|
397
|
+
RadialChartProps,
|
|
398
|
+
RadialChartSeries,
|
|
399
|
+
DialogProps,
|
|
400
|
+
DialogStackProps,
|
|
401
|
+
DialogStackStepOptions,
|
|
402
|
+
AlertDialogProps,
|
|
403
|
+
DropdownMenuProps,
|
|
404
|
+
DropdownItemOptions,
|
|
405
|
+
BreadcrumbItem,
|
|
406
|
+
BreadcrumbProps,
|
|
407
|
+
SheetProps,
|
|
408
|
+
SheetSide,
|
|
409
|
+
DrawerProps,
|
|
410
|
+
DrawerDirection,
|
|
411
|
+
TabsProps,
|
|
412
|
+
TabPanelOptions,
|
|
413
|
+
AccordionProps,
|
|
414
|
+
AccordionType,
|
|
415
|
+
AccordionItemOptions,
|
|
416
|
+
CollapsibleProps,
|
|
417
|
+
KeybindProps,
|
|
418
|
+
KbdProps,
|
|
419
|
+
SwitchProps,
|
|
420
|
+
RadioGroupProps,
|
|
421
|
+
ComboboxProps,
|
|
422
|
+
DateProps,
|
|
423
|
+
TooltipProps,
|
|
424
|
+
AvatarProps,
|
|
425
|
+
SkeletonProps,
|
|
426
|
+
SpinnerProps,
|
|
427
|
+
ProgressProps,
|
|
428
|
+
SeparatorProps,
|
|
429
|
+
IconProps,
|
|
430
|
+
ConfirmOptions,
|
|
431
|
+
PromptOptions,
|
|
432
|
+
ChooseOptions,
|
|
433
|
+
ChooseOption,
|
|
434
|
+
AppProps,
|
|
435
|
+
AppNavItem,
|
|
436
|
+
AppUser,
|
|
437
|
+
MarkdownProps,
|
|
438
|
+
HtmlProps,
|
|
439
|
+
ImageProps,
|
|
440
|
+
UploadProps,
|
|
441
|
+
UploadVariant,
|
|
442
|
+
UploadedFile,
|
|
443
|
+
RatingProps,
|
|
444
|
+
ColorPickerProps,
|
|
445
|
+
TagsProps,
|
|
446
|
+
TagsOption,
|
|
447
|
+
CodeBlockProps,
|
|
448
|
+
TreeProps,
|
|
449
|
+
TreeNode,
|
|
450
|
+
EditorProps,
|
|
451
|
+
EditorFormat,
|
|
452
|
+
KanbanProps,
|
|
453
|
+
KanbanColumn,
|
|
454
|
+
KanbanCard,
|
|
455
|
+
KanbanLane,
|
|
456
|
+
KanbanCardMovePayload,
|
|
457
|
+
RelativeTimeProps,
|
|
458
|
+
RelativeTimeTimezone,
|
|
459
|
+
RelativeTimeDateStyle,
|
|
460
|
+
RelativeTimeTimeStyle,
|
|
461
|
+
QrCodeProps,
|
|
462
|
+
QrCodeLevel,
|
|
463
|
+
ImageZoomProps,
|
|
464
|
+
ListProps,
|
|
465
|
+
ListGroup,
|
|
466
|
+
ListItem,
|
|
467
|
+
ListItemMovePayload,
|
|
468
|
+
ImageCropProps,
|
|
469
|
+
ImageCropPayload,
|
|
470
|
+
GanttProps,
|
|
471
|
+
GanttRow,
|
|
472
|
+
GanttItem,
|
|
473
|
+
GanttMarker,
|
|
474
|
+
GanttDependency,
|
|
475
|
+
GanttRange,
|
|
476
|
+
GanttItemMovePayload,
|
|
477
|
+
FlowProps,
|
|
478
|
+
FlowNodeProps,
|
|
479
|
+
FlowNodeKind,
|
|
480
|
+
FlowEdge,
|
|
481
|
+
FlowEdgePathType,
|
|
482
|
+
FlowEdgeVariant,
|
|
483
|
+
FlowHandle,
|
|
484
|
+
FlowHandlePosition,
|
|
485
|
+
FlowPosition,
|
|
486
|
+
FlowConnectPayload,
|
|
487
|
+
FlowNodeMovePayload,
|
|
488
|
+
FlowSelectionPayload,
|
|
489
|
+
FlowLayoutOptions,
|
|
490
|
+
FlowLayoutNodeMeta,
|
|
491
|
+
FlowLayoutDirection,
|
|
492
|
+
AiLoaderProps,
|
|
493
|
+
AiLoaderVariant,
|
|
494
|
+
AiThinkingProps,
|
|
495
|
+
AiMessageProps,
|
|
496
|
+
AiChatProps,
|
|
497
|
+
AiPromptBarProps,
|
|
498
|
+
AiPromptBarVariant,
|
|
499
|
+
AiCodeBlockProps,
|
|
500
|
+
AiApprovalProps,
|
|
501
|
+
AiToolChipsProps,
|
|
502
|
+
AiTasksProps,
|
|
503
|
+
AiRecommendationProps,
|
|
504
|
+
AiContextProps,
|
|
505
|
+
AiDiffTableProps,
|
|
506
|
+
AiInsightsProps,
|
|
507
|
+
AiSelectionActionsProps,
|
|
508
|
+
AiFineTuneProps,
|
|
509
|
+
AiIdLabel,
|
|
510
|
+
AiThinkingKind,
|
|
511
|
+
AiThinkingStep,
|
|
512
|
+
AiMessageRole,
|
|
513
|
+
AiMessageSource,
|
|
514
|
+
AiMessageAction,
|
|
515
|
+
AiChatMessage,
|
|
516
|
+
AiChatTab,
|
|
517
|
+
AiTaskStatus,
|
|
518
|
+
AiTask,
|
|
519
|
+
AiToolChip,
|
|
520
|
+
AiApprovalOption,
|
|
521
|
+
AiRecommendationAlternative,
|
|
522
|
+
AiContextChunk,
|
|
523
|
+
AiDiffRow,
|
|
524
|
+
AiDiffColumn,
|
|
525
|
+
AiInsight,
|
|
526
|
+
AiSelectionAction,
|
|
527
|
+
AiFineTuneField,
|
|
528
|
+
SeriesInput,
|
|
529
|
+
ChartChromeOpts,
|
|
530
|
+
PieRowKeys,
|
|
531
|
+
RadialRowKeys,
|
|
532
|
+
StackedGaugeOpts,
|
|
533
|
+
PageSizeOptions,
|
|
534
|
+
GroupByOptions,
|
|
535
|
+
NotifyOptions,
|
|
536
|
+
NotifyType,
|
|
537
|
+
ToastPosition,
|
|
538
|
+
ThemeMode,
|
|
539
|
+
PageMeta,
|
|
540
|
+
NavFromPagesOptions,
|
|
541
|
+
PageOptions,
|
|
542
|
+
PageFn,
|
|
543
|
+
TimerOptions,
|
|
544
|
+
FieldRule,
|
|
545
|
+
DraftStorage,
|
|
546
|
+
DraftOptions,
|
|
547
|
+
};
|
|
548
|
+
export {
|
|
549
|
+
DataTableElement,
|
|
550
|
+
TableBuilder,
|
|
551
|
+
DialogElement,
|
|
552
|
+
DialogStackElement,
|
|
553
|
+
AlertDialogElement,
|
|
554
|
+
DropdownMenuElement,
|
|
555
|
+
SheetElement,
|
|
556
|
+
DrawerElement,
|
|
557
|
+
TabsElement,
|
|
558
|
+
AccordionElement,
|
|
559
|
+
CollapsibleElement,
|
|
560
|
+
FlowElement,
|
|
561
|
+
KanbanElement,
|
|
562
|
+
KANBAN_DETAIL_FIELD,
|
|
563
|
+
ListElement,
|
|
564
|
+
GanttElement,
|
|
565
|
+
AiChatElement,
|
|
566
|
+
makeFlowEdgeId,
|
|
567
|
+
computeFlowLayout,
|
|
568
|
+
TimerHandle,
|
|
569
|
+
loadPages,
|
|
570
|
+
navFromPages,
|
|
571
|
+
clearPageMeta,
|
|
572
|
+
attachPageMeta,
|
|
573
|
+
importFresh,
|
|
574
|
+
resetPageDiscovery,
|
|
575
|
+
};
|
|
576
|
+
|
|
577
|
+
/** Text label. Prefer `ui.label`. See {@link LabelProps}. */
|
|
578
|
+
export function label(text?: string | (() => string), props?: Omit<LabelProps, 'text'>): Element {
|
|
579
|
+
return labelFactory(text, props);
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
/** Clickable button. Prefer `ui.button`. See {@link ButtonProps}. */
|
|
583
|
+
export function button(text?: string, props?: Omit<ButtonProps, 'text'>): Element {
|
|
584
|
+
return buttonFactory(text, props);
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
/** Text input. Prefer `ui.input`. See {@link InputProps}. */
|
|
588
|
+
export function input(props?: InputProps): Element {
|
|
589
|
+
return inputFactory(props);
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
/** Checkbox control. Prefer `ui.checkbox`. See {@link CheckboxProps}. */
|
|
593
|
+
export function checkbox(props?: CheckboxProps): Element {
|
|
594
|
+
return checkboxFactory(props);
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
/** Bound boolean toggle. Prefer `ui.switch`. See {@link SwitchProps}. */
|
|
598
|
+
export function switch_(props?: SwitchProps): Element {
|
|
599
|
+
return switchFactory(props);
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
/** Bound boolean toggle (`ui.switch`). */
|
|
603
|
+
export { switch_ as switch };
|
|
604
|
+
|
|
605
|
+
/** Select dropdown. Prefer `ui.select`. See {@link SelectProps}. */
|
|
606
|
+
export function select(props: SelectProps): Element {
|
|
607
|
+
return selectFactory(props);
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
/** Radio group. Prefer `ui.radioGroup`. See {@link RadioGroupProps}. */
|
|
611
|
+
export function radioGroup(props: RadioGroupProps): Element {
|
|
612
|
+
return radioGroupFactory(props);
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
/** Searchable combobox. Prefer `ui.combobox`. See {@link ComboboxProps}. */
|
|
616
|
+
export function combobox(props: ComboboxProps): Element {
|
|
617
|
+
return comboboxFactory(props);
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
/** Date picker. Prefer `ui.date`. See {@link DateProps}. */
|
|
621
|
+
export function date(props?: DateProps): Element {
|
|
622
|
+
return dateFactory(props);
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
/** Tooltip around content (`fn` or props-first). Prefer `ui.tooltip`. See {@link TooltipProps}. */
|
|
626
|
+
export function tooltip(fn: () => void, props: TooltipProps): Element;
|
|
627
|
+
export function tooltip(props: TooltipProps, fn: () => void): Element;
|
|
628
|
+
export function tooltip(a: any, b: any): Element {
|
|
629
|
+
return tooltipFactory(a, b);
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
/** Avatar image/fallback. Prefer `ui.avatar`. See {@link AvatarProps}. */
|
|
633
|
+
export function avatar(props?: AvatarProps): Element {
|
|
634
|
+
return avatarFactory(props);
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
/** Loading placeholder. Prefer `ui.skeleton`. See {@link SkeletonProps}. */
|
|
638
|
+
export function skeleton(props?: SkeletonProps): Element {
|
|
639
|
+
return skeletonFactory(props);
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
/** Range slider. Prefer `ui.slider`. See {@link SliderProps}. */
|
|
643
|
+
export function slider(props?: SliderProps): Element {
|
|
644
|
+
return sliderFactory(props);
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
/** Multi-line text input. Prefer `ui.textArea`. See {@link TextAreaProps}. */
|
|
648
|
+
export function textArea(props?: TextAreaProps): Element {
|
|
649
|
+
return textAreaFactory(props);
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
/** Anchor / client navigate link. Prefer `ui.link`. See {@link LinkProps}. */
|
|
653
|
+
export function link(text: string, href: string, props?: Omit<LinkProps, 'href' | 'text'>): Element {
|
|
654
|
+
return linkFactory(text, href, props);
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
/** Small status badge. Prefer `ui.badge`. See {@link BadgeProps}. */
|
|
658
|
+
export function badge(text?: string, props?: Omit<BadgeProps, 'text'>): Element {
|
|
659
|
+
return badgeFactory(text, props);
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
/** Inline alert banner. Prefer `ui.alert`. See {@link AlertProps}. */
|
|
663
|
+
export function alert(message?: string, props?: Omit<AlertProps, 'message'>): Element {
|
|
664
|
+
return alertFactory(message, props);
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
/** Loading spinner. Prefer `ui.spinner`. See {@link SpinnerProps}. */
|
|
668
|
+
export function spinner(props?: SpinnerProps): Element {
|
|
669
|
+
return spinnerFactory(props);
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
/** Progress bar (`value` 0–100). Prefer `ui.progress`. See {@link ProgressProps}. */
|
|
673
|
+
export function progress(props?: ProgressProps): Element {
|
|
674
|
+
return progressFactory(props);
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
/** Horizontal/vertical rule. Prefer `ui.separator`. See {@link SeparatorProps}. */
|
|
678
|
+
export function separator(props?: SeparatorProps): Element {
|
|
679
|
+
return separatorFactory(props);
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
/** Lucide icon by name. Prefer `ui.icon`. See {@link IconProps}. */
|
|
683
|
+
export function icon(name: string, props?: Omit<IconProps, 'name'>): Element {
|
|
684
|
+
return iconFactory(name, props);
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
/** Render markdown to HTML. Prefer `ui.markdown`. See {@link MarkdownProps}. */
|
|
688
|
+
export function markdown(text?: string, props?: MarkdownProps): Element {
|
|
689
|
+
return markdownFactory(text, props);
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
/** Raw HTML (trusted). Prefer `ui.html`. See {@link HtmlProps}. */
|
|
693
|
+
export function html(content?: string, props?: HtmlProps): Element {
|
|
694
|
+
return htmlFactory(content, props);
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
/** Image element. Prefer `ui.image`. See {@link ImageProps}. */
|
|
698
|
+
export function image(src: string, props?: ImageProps): Element {
|
|
699
|
+
return imageFactory(src, props);
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
/** File upload control (`POST /upload`). Prefer `ui.upload`. See {@link UploadProps}. */
|
|
703
|
+
export function upload(props?: UploadProps): Element {
|
|
704
|
+
return uploadFactory(props);
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
/** Star rating control. Prefer `ui.rating`. See {@link RatingProps}. */
|
|
708
|
+
export function rating(props?: RatingProps): Element {
|
|
709
|
+
return ratingFactory(props);
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
/** Hex color picker. Prefer `ui.colorPicker`. See {@link ColorPickerProps}. */
|
|
713
|
+
export function colorPicker(props?: ColorPickerProps): Element {
|
|
714
|
+
return colorPickerFactory(props);
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
/** Multi-tag chip input. Prefer `ui.tags`. See {@link TagsProps}. */
|
|
718
|
+
export function tags(props?: TagsProps): Element {
|
|
719
|
+
return tagsFactory(props);
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
/** Read-only syntax-highlighted code block (Shiki). Prefer `ui.codeBlock`. See {@link CodeBlockProps}. */
|
|
723
|
+
export function codeBlock(props: CodeBlockProps): Element {
|
|
724
|
+
return codeBlockFactory(props);
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
/** Nested tree with selection + expand. Prefer `ui.tree`. See {@link TreeProps}. */
|
|
728
|
+
export function tree(props: TreeProps): Element {
|
|
729
|
+
return treeFactory(props);
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
/** Rich text editor (Domternal). Prefer `ui.editor`. See {@link EditorProps}. */
|
|
733
|
+
export function editor(props?: EditorProps): Element {
|
|
734
|
+
return editorFactory(props);
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
/**
|
|
738
|
+
* Kanban board with cross-column card drag, optional swimlanes, and card detail drawer.
|
|
739
|
+
* Owns columns + card order + selection; default `cardMove` / `cardSelect` settle
|
|
740
|
+
* updates the model before user callbacks. Prefer `ui.kanban`. See {@link KanbanProps}.
|
|
741
|
+
*/
|
|
742
|
+
export function kanban(props?: KanbanProps): KanbanElement {
|
|
743
|
+
return kanbanFactory(props);
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
/** Multi-timezone clock (ticks when `date` omitted). Prefer `ui.relativeTime`. See {@link RelativeTimeProps}. */
|
|
747
|
+
export function relativeTime(props: RelativeTimeProps): Element {
|
|
748
|
+
return relativeTimeFactory(props);
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
/** SVG QR code from a string. Prefer `ui.qrCode`. See {@link QrCodeProps}. */
|
|
752
|
+
export function qrCode(props: QrCodeProps): Element {
|
|
753
|
+
return qrCodeFactory(props);
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
/** Image with click-to-zoom overlay. Prefer `ui.imageZoom`. See {@link ImageZoomProps}. */
|
|
757
|
+
export function imageZoom(props: ImageZoomProps): Element {
|
|
758
|
+
return imageZoomFactory(props);
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
/**
|
|
762
|
+
* Dense vertical grouped DnD list. Owns groups + item order;
|
|
763
|
+
* default `itemMove` settle updates the model before user `onItemMove`.
|
|
764
|
+
* Prefer `ui.list`. See {@link ListProps}.
|
|
765
|
+
*/
|
|
766
|
+
export function list(props?: ListProps): ListElement {
|
|
767
|
+
return listFactory(props);
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
/** Interactive image cropper (emits data URL). Prefer `ui.imageCrop`. See {@link ImageCropProps}. */
|
|
771
|
+
export function imageCrop(props: ImageCropProps): Element {
|
|
772
|
+
return imageCropFactory(props);
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
/**
|
|
776
|
+
* Project timeline with drag move/resize (including cross-row), markers,
|
|
777
|
+
* and dependency arrows. Owns rows + dates + markers + dependencies;
|
|
778
|
+
* default `itemMove` / `markerAdd` settle updates the model before user callbacks.
|
|
779
|
+
* Prefer `ui.gantt`. See {@link GanttProps}.
|
|
780
|
+
*/
|
|
781
|
+
export function gantt(props?: GanttProps): GanttElement {
|
|
782
|
+
return ganttFactory(props);
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
/**
|
|
786
|
+
* Interactive flow diagram (`@xyflow/react`). Owns edges + positions;
|
|
787
|
+
* node bodies are Clay trees; drag by card chrome (controls are nodrag);
|
|
788
|
+
* default settle handlers update the owned model before user `on*`.
|
|
789
|
+
* Prefer `ui.flow`. See {@link FlowProps}.
|
|
790
|
+
*/
|
|
791
|
+
export function flow(fn: (f: FlowElement) => void, props?: FlowProps): FlowElement;
|
|
792
|
+
export function flow(props: FlowProps, fn: (f: FlowElement) => void): FlowElement;
|
|
793
|
+
export function flow(a: any, b?: any): FlowElement {
|
|
794
|
+
return flowFactory(a, b);
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
/** Stat strip (label/value items). Prefer `ui.stat`. */
|
|
798
|
+
export function stat(items: StatItem[], props?: { className?: string }): Element {
|
|
799
|
+
return statFactory(items, props);
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
/** Data grid with sort/filter/actions. Prefer `ui.dataTable`. See {@link DataTableProps}. */
|
|
803
|
+
export function dataTable(data?: unknown, props?: DataTableProps): DataTableElement {
|
|
804
|
+
return dataTableFactory(data, props);
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
/** Staged DataTable builder — optional sugar over `ui.dataTable`. */
|
|
808
|
+
export function table(data?: unknown): TableBuilder {
|
|
809
|
+
return tableFactory(data);
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
/** Mode-first chart builders — optional sugar over `ui.areaChart` / `pieChart` / etc. */
|
|
813
|
+
export const chart = chartNamespace;
|
|
814
|
+
|
|
815
|
+
/**
|
|
816
|
+
* AI-native visual primitives (`ui.ai.chat`, `ui.ai.promptBar`, …).
|
|
817
|
+
* Props + events only — no model / streaming runtime.
|
|
818
|
+
*/
|
|
819
|
+
export const ai = aiNamespace;
|
|
820
|
+
|
|
821
|
+
/** Area chart. Prefer `ui.areaChart`. See {@link AreaChartProps}. */
|
|
822
|
+
export function areaChart(props: AreaChartProps): Element {
|
|
823
|
+
return areaChartFactory(props);
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
/** Bar chart. Prefer `ui.barChart`. See {@link BarChartProps}. */
|
|
827
|
+
export function barChart(props: BarChartProps): Element {
|
|
828
|
+
return barChartFactory(props);
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
/** Line chart. Prefer `ui.lineChart`. See {@link LineChartProps}. */
|
|
832
|
+
export function lineChart(props: LineChartProps): Element {
|
|
833
|
+
return lineChartFactory(props);
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
/** Pie / donut chart. Prefer `ui.pieChart`. See {@link PieChartProps}. */
|
|
837
|
+
export function pieChart(props: PieChartProps): Element {
|
|
838
|
+
return pieChartFactory(props);
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
/** Radar chart. Prefer `ui.radarChart`. See {@link RadarChartProps}. */
|
|
842
|
+
export function radarChart(props: RadarChartProps): Element {
|
|
843
|
+
return radarChartFactory(props);
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
/** Radial / gauge chart. Prefer `ui.radialChart`. See {@link RadialChartProps}. */
|
|
847
|
+
export function radialChart(props: RadialChartProps): Element {
|
|
848
|
+
return radialChartFactory(props);
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
/** Scatter chart. Prefer `ui.scatterChart`. See {@link ScatterChartProps}. */
|
|
852
|
+
export function scatterChart(props: ScatterChartProps): Element {
|
|
853
|
+
return scatterChartFactory(props);
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
/** Composed multi-geometry chart. Prefer `ui.composedChart`. See {@link ComposedChartProps}. */
|
|
857
|
+
export function composedChart(props: ComposedChartProps): Element {
|
|
858
|
+
return composedChartFactory(props);
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
/** Horizontal flex row (`fn` or props-first). Prefer `ui.row`. */
|
|
862
|
+
export function row(fn: () => void, props?: Parameters<typeof rowFactory>[1]): Element;
|
|
863
|
+
export function row(props: Parameters<typeof rowFactory>[0], fn: () => void): Element;
|
|
864
|
+
export function row(a: any, b?: any): Element {
|
|
865
|
+
return rowFactory(a, b);
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
/** Vertical flex column (`fn` or props-first). Prefer `ui.column`. */
|
|
869
|
+
export function column(fn: () => void, props?: Parameters<typeof columnFactory>[1]): Element;
|
|
870
|
+
export function column(props: Parameters<typeof columnFactory>[0], fn: () => void): Element;
|
|
871
|
+
export function column(a: any, b?: any): Element {
|
|
872
|
+
return columnFactory(a, b);
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
/** Layout container (`fn` or props-first). Prefer `ui.container`. */
|
|
876
|
+
export function container(fn: () => void, props?: Parameters<typeof containerFactory>[1]): Element;
|
|
877
|
+
export function container(props: Parameters<typeof containerFactory>[0], fn: () => void): Element;
|
|
878
|
+
export function container(a: any, b?: any): Element {
|
|
879
|
+
return containerFactory(a, b);
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
/** Hero section (`fn` or props-first). Prefer `ui.hero`. */
|
|
883
|
+
export function hero(fn: () => void, props?: Parameters<typeof heroFactory>[1]): Element;
|
|
884
|
+
export function hero(props: Parameters<typeof heroFactory>[0], fn: () => void): Element;
|
|
885
|
+
export function hero(a: any, b?: any): Element {
|
|
886
|
+
return heroFactory(a, b);
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
/** Card with optional header/footer (`fn` or props-first). Prefer `ui.card`. See {@link CardProps}. */
|
|
890
|
+
export function card(fn: (card: Element) => void, props?: CardProps): Element;
|
|
891
|
+
export function card(props: CardProps, fn: (card: Element) => void): Element;
|
|
892
|
+
export function card(a: any, b?: any): Element {
|
|
893
|
+
return cardFactory(a, b);
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
/** App shell (sidebar + header). Prefer `ui.app`, or pass via `ui.run({ app })`. See {@link AppProps}. */
|
|
897
|
+
export function app(props: AppProps, fn: () => void): Element {
|
|
898
|
+
return appFactory(props, fn);
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
/** Modal dialog (`fn` or props-first). Prefer `ui.dialog`. See {@link DialogProps}. */
|
|
902
|
+
export function dialog(fn: (dlg: DialogElement) => void, props?: DialogProps): DialogElement;
|
|
903
|
+
export function dialog(props: DialogProps, fn: (dlg: DialogElement) => void): DialogElement;
|
|
904
|
+
export function dialog(a: any, b?: any): DialogElement {
|
|
905
|
+
return dialogFactory(a, b);
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
/** Stacked multi-step dialog (`fn` or props-first). Prefer `ui.dialogStack`. See {@link DialogStackProps}. */
|
|
909
|
+
export function dialogStack(
|
|
910
|
+
fn: (stack: DialogStackElement) => void,
|
|
911
|
+
props?: DialogStackProps,
|
|
912
|
+
): DialogStackElement;
|
|
913
|
+
export function dialogStack(
|
|
914
|
+
props: DialogStackProps,
|
|
915
|
+
fn: (stack: DialogStackElement) => void,
|
|
916
|
+
): DialogStackElement;
|
|
917
|
+
export function dialogStack(a: any, b?: any): DialogStackElement {
|
|
918
|
+
return dialogStackFactory(a, b);
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
/** Alert / confirm dialog. Prefer `ui.alertDialog`. See {@link AlertDialogProps}. */
|
|
922
|
+
export function alertDialog(props?: AlertDialogProps): AlertDialogElement {
|
|
923
|
+
return alertDialogFactory(props);
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
/** Dropdown menu (`fn` or props-first). Prefer `ui.dropdownMenu`. See {@link DropdownMenuProps}. */
|
|
927
|
+
export function dropdownMenu(
|
|
928
|
+
fn: (m: DropdownMenuElement) => void,
|
|
929
|
+
props?: DropdownMenuProps,
|
|
930
|
+
): DropdownMenuElement;
|
|
931
|
+
export function dropdownMenu(
|
|
932
|
+
props: DropdownMenuProps,
|
|
933
|
+
fn: (m: DropdownMenuElement) => void,
|
|
934
|
+
): DropdownMenuElement;
|
|
935
|
+
export function dropdownMenu(a: any, b?: any): DropdownMenuElement {
|
|
936
|
+
return dropdownMenuFactory(a, b);
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
/** Right-click context menu. Prefer `ui.contextMenu`. See {@link ContextMenuProps}. */
|
|
940
|
+
export function contextMenu(
|
|
941
|
+
fn: (m: ContextMenuElement) => void,
|
|
942
|
+
props?: ContextMenuProps,
|
|
943
|
+
): ContextMenuElement;
|
|
944
|
+
export function contextMenu(
|
|
945
|
+
props: ContextMenuProps,
|
|
946
|
+
fn: (m: ContextMenuElement) => void,
|
|
947
|
+
): ContextMenuElement;
|
|
948
|
+
export function contextMenu(a: any, b?: any): ContextMenuElement {
|
|
949
|
+
return contextMenuFactory(a, b);
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
/** Hover card (`fn` or props-first). Prefer `ui.hoverCard`. See {@link HoverCardProps}. */
|
|
953
|
+
export function hoverCard(fn: () => void, props: HoverCardProps): Element;
|
|
954
|
+
export function hoverCard(props: HoverCardProps, fn: () => void): Element;
|
|
955
|
+
export function hoverCard(a: any, b: any): Element {
|
|
956
|
+
return hoverCardFactory(a, b);
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
/** Popover (`fn` or props-first). Prefer `ui.popover`. See {@link PopoverProps}. */
|
|
960
|
+
export function popover(fn: (p: PopoverElement) => void, props?: PopoverProps): PopoverElement;
|
|
961
|
+
export function popover(props: PopoverProps, fn: (p: PopoverElement) => void): PopoverElement;
|
|
962
|
+
export function popover(a: any, b?: any): PopoverElement {
|
|
963
|
+
return popoverFactory(a, b);
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
/** One-time-password / digit inputs. Prefer `ui.inputOtp`. See {@link InputOtpProps}. */
|
|
967
|
+
export function inputOtp(props?: InputOtpProps): Element {
|
|
968
|
+
return inputOtpFactory(props);
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
/** Toggle button group. Prefer `ui.toggleGroup`. See {@link ToggleGroupProps}. */
|
|
972
|
+
export function toggleGroup(
|
|
973
|
+
fn: (g: ToggleGroupElement) => void,
|
|
974
|
+
props?: ToggleGroupProps,
|
|
975
|
+
): ToggleGroupElement;
|
|
976
|
+
export function toggleGroup(
|
|
977
|
+
props: ToggleGroupProps,
|
|
978
|
+
fn: (g: ToggleGroupElement) => void,
|
|
979
|
+
): ToggleGroupElement;
|
|
980
|
+
export function toggleGroup(a: any, b?: any): ToggleGroupElement {
|
|
981
|
+
return toggleGroupFactory(a, b);
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
/** Menubar. Prefer `ui.menubar`. See {@link MenubarProps}. */
|
|
985
|
+
export function menubar(
|
|
986
|
+
fn: (m: MenubarElement) => void,
|
|
987
|
+
props?: MenubarProps,
|
|
988
|
+
): MenubarElement;
|
|
989
|
+
export function menubar(
|
|
990
|
+
props: MenubarProps,
|
|
991
|
+
fn: (m: MenubarElement) => void,
|
|
992
|
+
): MenubarElement;
|
|
993
|
+
export function menubar(a: any, b?: any): MenubarElement {
|
|
994
|
+
return menubarFactory(a, b);
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
/** Carousel. Prefer `ui.carousel`. See {@link CarouselProps}. */
|
|
998
|
+
export function carousel(
|
|
999
|
+
fn: (c: CarouselElement) => void,
|
|
1000
|
+
props?: CarouselProps,
|
|
1001
|
+
): CarouselElement;
|
|
1002
|
+
export function carousel(
|
|
1003
|
+
props: CarouselProps,
|
|
1004
|
+
fn: (c: CarouselElement) => void,
|
|
1005
|
+
): CarouselElement;
|
|
1006
|
+
export function carousel(a: any, b?: any): CarouselElement {
|
|
1007
|
+
return carouselFactory(a, b);
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
/** Command palette / searchable list. Prefer `ui.command`. See {@link CommandProps}. */
|
|
1011
|
+
export function command(
|
|
1012
|
+
fn: (c: CommandElement) => void,
|
|
1013
|
+
props?: CommandProps,
|
|
1014
|
+
): CommandElement;
|
|
1015
|
+
export function command(
|
|
1016
|
+
props: CommandProps,
|
|
1017
|
+
fn: (c: CommandElement) => void,
|
|
1018
|
+
): CommandElement;
|
|
1019
|
+
export function command(a: any, b?: any): CommandElement {
|
|
1020
|
+
return commandFactory(a, b);
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
/** Resizable split panes. Prefer `ui.resizable`. See {@link ResizableProps}. */
|
|
1024
|
+
export function resizable(
|
|
1025
|
+
fn: (r: ResizableElement) => void,
|
|
1026
|
+
props?: ResizableProps,
|
|
1027
|
+
): ResizableElement;
|
|
1028
|
+
export function resizable(
|
|
1029
|
+
props: ResizableProps,
|
|
1030
|
+
fn: (r: ResizableElement) => void,
|
|
1031
|
+
): ResizableElement;
|
|
1032
|
+
export function resizable(a: any, b?: any): ResizableElement {
|
|
1033
|
+
return resizableFactory(a, b);
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
/** Scrollable region (`fn` or props-first). Prefer `ui.scrollArea`. See {@link ScrollAreaProps}. */
|
|
1037
|
+
export function scrollArea(fn: () => void, props?: ScrollAreaProps): Element;
|
|
1038
|
+
export function scrollArea(props: ScrollAreaProps, fn: () => void): Element;
|
|
1039
|
+
export function scrollArea(a: any, b?: any): Element {
|
|
1040
|
+
return scrollAreaFactory(a, b);
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
/**
|
|
1044
|
+
* Headless keyboard chord listener. Prefer `ui.keybind`. See {@link KeybindProps}.
|
|
1045
|
+
*
|
|
1046
|
+
* @example
|
|
1047
|
+
* ```ts
|
|
1048
|
+
* ui.keybind({
|
|
1049
|
+
* keys: 'mod+s',
|
|
1050
|
+
* onPress: async () => {
|
|
1051
|
+
* await save();
|
|
1052
|
+
* ui.notify('Saved', 'success');
|
|
1053
|
+
* },
|
|
1054
|
+
* });
|
|
1055
|
+
* ```
|
|
1056
|
+
*/
|
|
1057
|
+
export function keybind(props: KeybindProps): Element {
|
|
1058
|
+
return keybindFactory(props);
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
/**
|
|
1062
|
+
* Display-only keyboard chord glyphs. Prefer `ui.kbd`. See {@link KbdProps}.
|
|
1063
|
+
* Pair with `ui.keybind` for the actual listener.
|
|
1064
|
+
*
|
|
1065
|
+
* @example
|
|
1066
|
+
* ```ts
|
|
1067
|
+
* ui.kbd('mod+k');
|
|
1068
|
+
* ui.kbd({ keys: 'mod+s', className: 'ml-1' });
|
|
1069
|
+
* ui.kbd(['mod+k', 'ctrl+k']);
|
|
1070
|
+
* ```
|
|
1071
|
+
*/
|
|
1072
|
+
export function kbd(keys: string | string[], props?: Omit<KbdProps, 'keys'>): Element;
|
|
1073
|
+
export function kbd(props: KbdProps): Element;
|
|
1074
|
+
export function kbd(a: any, b?: any): Element {
|
|
1075
|
+
return kbdFactory(a, b);
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
/** Breadcrumb trail. Prefer `ui.breadcrumb`. See {@link BreadcrumbProps}. */
|
|
1079
|
+
export function breadcrumb(items: BreadcrumbItem[], props?: BreadcrumbProps): Element {
|
|
1080
|
+
return breadcrumbFactory(items, props);
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
/** Side sheet panel. Prefer `ui.sheet`. See {@link SheetProps}. */
|
|
1084
|
+
export function sheet(fn: (s: SheetElement) => void, props?: SheetProps): SheetElement;
|
|
1085
|
+
export function sheet(props: SheetProps, fn: (s: SheetElement) => void): SheetElement;
|
|
1086
|
+
export function sheet(a: any, b?: any): SheetElement {
|
|
1087
|
+
return sheetFactory(a, b);
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
/** Drawer panel. Prefer `ui.drawer`. See {@link DrawerProps}. */
|
|
1091
|
+
export function drawer(fn: (d: DrawerElement) => void, props?: DrawerProps): DrawerElement;
|
|
1092
|
+
export function drawer(props: DrawerProps, fn: (d: DrawerElement) => void): DrawerElement;
|
|
1093
|
+
export function drawer(a: any, b?: any): DrawerElement {
|
|
1094
|
+
return drawerFactory(a, b);
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
/** Tabs. Prefer `ui.tabs`. See {@link TabsProps}. */
|
|
1098
|
+
export function tabs(fn: (t: TabsElement) => void, props?: TabsProps): TabsElement;
|
|
1099
|
+
export function tabs(props: TabsProps, fn: (t: TabsElement) => void): TabsElement;
|
|
1100
|
+
export function tabs(a: any, b?: any): TabsElement {
|
|
1101
|
+
return tabsFactory(a, b);
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
/** Accordion. Prefer `ui.accordion`. See {@link AccordionProps}. */
|
|
1105
|
+
export function accordion(fn: (a: AccordionElement) => void, props?: AccordionProps): AccordionElement;
|
|
1106
|
+
export function accordion(props: AccordionProps, fn: (a: AccordionElement) => void): AccordionElement;
|
|
1107
|
+
export function accordion(a: any, b?: any): AccordionElement {
|
|
1108
|
+
return accordionFactory(a, b);
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
/** Collapsible section. Prefer `ui.collapsible`. See {@link CollapsibleProps}. */
|
|
1112
|
+
export function collapsible(fn: (c: CollapsibleElement) => void, props?: CollapsibleProps): CollapsibleElement;
|
|
1113
|
+
export function collapsible(props: CollapsibleProps, fn: (c: CollapsibleElement) => void): CollapsibleElement;
|
|
1114
|
+
export function collapsible(a: any, b?: any): CollapsibleElement {
|
|
1115
|
+
return collapsibleFactory(a, b);
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
/** Confirm dialog; resolves `true`/`false`. Prefer `ui.confirm`. See {@link ConfirmOptions}. */
|
|
1119
|
+
export function confirm(message: string, options?: ConfirmOptions): Promise<boolean> {
|
|
1120
|
+
return confirmFactory(message, options);
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
/** Prompt dialog; resolves string or `null` if cancelled. Prefer `ui.prompt`. See {@link PromptOptions}. */
|
|
1124
|
+
export function prompt(message: string, options?: PromptOptions): Promise<string | null> {
|
|
1125
|
+
return promptFactory(message, options);
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
/** Multi-choice dialog; resolves choice id or `null`. Prefer `ui.choose`. See {@link ChooseOptions}. */
|
|
1129
|
+
export function choose(
|
|
1130
|
+
message: string,
|
|
1131
|
+
choices: ChooseOption[],
|
|
1132
|
+
options?: ChooseOptions,
|
|
1133
|
+
): Promise<string | null> {
|
|
1134
|
+
return chooseFactory(message, choices, options);
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
/** Toast notification. Prefer `ui.notify`. See {@link NotifyOptions}. */
|
|
1138
|
+
export function notify(message: string, typeOrOptions?: NotifyType | NotifyOptions): void {
|
|
1139
|
+
notifyCore(message, typeOrOptions);
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1142
|
+
/** Client SPA navigate. Prefer `ui.navigate`. */
|
|
1143
|
+
export function navigate(path: string): void {
|
|
1144
|
+
navigateCore(path);
|
|
1145
|
+
}
|
|
1146
|
+
|
|
1147
|
+
/** Soft-reconnect so the next hello includes updated cookies. */
|
|
1148
|
+
export function reconnect(): void {
|
|
1149
|
+
reconnectCore();
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
/**
|
|
1153
|
+
* Set the HttpOnly auth cookie (via client `POST /auth/session`) and soft-reconnect.
|
|
1154
|
+
* Requires `ui.run({ authSecret })`.
|
|
1155
|
+
*/
|
|
1156
|
+
export function establishAuthSession(
|
|
1157
|
+
userId: string,
|
|
1158
|
+
options?: { path?: string },
|
|
1159
|
+
): void {
|
|
1160
|
+
establishAuthSessionCore(userId, options);
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
/**
|
|
1164
|
+
* Clear the auth cookie (via client `DELETE /auth/session`) and soft-reconnect.
|
|
1165
|
+
*/
|
|
1166
|
+
export function clearAuthSession(options?: { path?: string }): void {
|
|
1167
|
+
clearAuthSessionCore(options);
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
/** Trigger a browser file download. Prefer `ui.download`. */
|
|
1171
|
+
export function download(filename: string, mime: string, content: string): void {
|
|
1172
|
+
downloadCore(filename, mime, content);
|
|
1173
|
+
}
|
|
1174
|
+
|
|
1175
|
+
/** Copy text to the client clipboard. Prefer `ui.clipboard`. */
|
|
1176
|
+
export function clipboard(content: string): void {
|
|
1177
|
+
clipboardCore(content);
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
/** Run trusted JavaScript in the connected browser. */
|
|
1181
|
+
export function runJavaScript(code: string): void {
|
|
1182
|
+
runJavaScriptCore(code);
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
/** Window / element scroll helpers (`ui.scroll.to` / `ui.scroll.intoView`). */
|
|
1186
|
+
export const scroll = scrollCore;
|
|
1187
|
+
|
|
1188
|
+
/**
|
|
1189
|
+
* Session-scoped timer. Interval is in **seconds**. Prefer `ui.timer`.
|
|
1190
|
+
* See {@link TimerOptions}.
|
|
1191
|
+
*/
|
|
1192
|
+
export function timer(
|
|
1193
|
+
interval: number,
|
|
1194
|
+
callback: () => void | Promise<void>,
|
|
1195
|
+
options?: TimerOptions,
|
|
1196
|
+
): TimerHandle {
|
|
1197
|
+
return timerCore(interval, callback, options);
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
/** Tab + user + app storage (NiceGUI-ish). Prefer `ui.storage`. */
|
|
1201
|
+
export const storage = storageCore;
|
|
1202
|
+
|
|
1203
|
+
/** Server-driven appearance (`light` | `dark` | `system`). */
|
|
1204
|
+
export const theme = themeCore;
|
|
1205
|
+
|
|
1206
|
+
/** Proxy that notifies subscribers on property change. Prefer this over importing from `@close-by/clay-core`. */
|
|
1207
|
+
export const reactive = reactiveCore;
|
|
1208
|
+
|
|
1209
|
+
/** Alias for `reactive` — NiceGUI-ish mutable page state. Prefer `ui.state`. */
|
|
1210
|
+
export const state = stateCore;
|
|
1211
|
+
|
|
1212
|
+
/** Listen for a reactive property change. Prefer this over importing from `@close-by/clay-core`. */
|
|
1213
|
+
export const subscribe = subscribeCore;
|
|
1214
|
+
|
|
1215
|
+
/**
|
|
1216
|
+
* Reactive object hydrated from sync storage (`tab` by default) with write-through.
|
|
1217
|
+
* Survives reconnect / `--reload`. Prefer `ui.draft`. See {@link DraftOptions}.
|
|
1218
|
+
*
|
|
1219
|
+
* @example
|
|
1220
|
+
* ```ts
|
|
1221
|
+
* const form = ui.draft('formDemo', { name: '', email: '' });
|
|
1222
|
+
* // on submit/reset:
|
|
1223
|
+
* ui.draft.clear('formDemo');
|
|
1224
|
+
* ```
|
|
1225
|
+
*/
|
|
1226
|
+
export const draft = draftCore;
|
|
1227
|
+
|
|
1228
|
+
/** Run field checks, set errors, return true if all pass. Prefer `ui.validate`. */
|
|
1229
|
+
export function validate(rules: FieldRule[]): boolean {
|
|
1230
|
+
return validateCore(rules);
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
/** Manually refreshable block — call `.refresh()` to rebuild. Prefer `ui.refreshable`. */
|
|
1234
|
+
export function refreshable(fn: () => void): RefreshableElement {
|
|
1235
|
+
return new RefreshableElement(fn);
|
|
1236
|
+
}
|
|
1237
|
+
|
|
1238
|
+
/**
|
|
1239
|
+
* Auto-refreshing UI block: rebuilds when `ui.state` / `reactive` values read
|
|
1240
|
+
* during the builder change. Keep state outside the builder.
|
|
1241
|
+
*/
|
|
1242
|
+
export function auto(fn: () => void): AutoElement {
|
|
1243
|
+
return autoCore(fn);
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1246
|
+
/**
|
|
1247
|
+
* Register a route builder. Prefer `ui.page`.
|
|
1248
|
+
* See {@link PageOptions} (`shell: false` skips the global `ui.run({ app })` wrapper).
|
|
1249
|
+
*/
|
|
1250
|
+
export function page(path: string, fn: () => void, options?: PageOptions): void {
|
|
1251
|
+
corePage(path, fn, options);
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
/**
|
|
1255
|
+
* Server + run options for `ui.run`.
|
|
1256
|
+
* Extends {@link ClayServerConfig} (port, auth, storage, uploads, session timeouts).
|
|
1257
|
+
*/
|
|
1258
|
+
export type RunConfig = ClayServerConfig & {
|
|
1259
|
+
/** Global dashboard shell; wraps every page unless `ui.page(..., { shell: false })`. */
|
|
1260
|
+
app?: AppProps;
|
|
1261
|
+
};
|
|
1262
|
+
|
|
1263
|
+
let runCalled = false;
|
|
1264
|
+
|
|
1265
|
+
/** Whether `ui.run` has been invoked in this process (used by the `clay` CLI). */
|
|
1266
|
+
export function wasRunCalled(): boolean {
|
|
1267
|
+
return runCalled;
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
/** Test / CLI helper: clear the run-called flag. */
|
|
1271
|
+
export function resetRunState(): void {
|
|
1272
|
+
runCalled = false;
|
|
1273
|
+
}
|
|
1274
|
+
|
|
1275
|
+
/**
|
|
1276
|
+
* Start the Clay server.
|
|
1277
|
+
*
|
|
1278
|
+
* - `ui.run(config?)` — current pages + optional global shell
|
|
1279
|
+
* - `ui.run(root, config?)` — NiceGUI-style root page: registers `/` if missing, then starts
|
|
1280
|
+
*/
|
|
1281
|
+
export function run(config?: RunConfig): ClayServer;
|
|
1282
|
+
export function run(root: PageFn, config?: RunConfig): ClayServer;
|
|
1283
|
+
export function run(rootOrConfig: PageFn | RunConfig = {}, config: RunConfig = {}): ClayServer {
|
|
1284
|
+
let root: PageFn | undefined;
|
|
1285
|
+
let cfg: RunConfig;
|
|
1286
|
+
|
|
1287
|
+
if (typeof rootOrConfig === 'function') {
|
|
1288
|
+
root = rootOrConfig;
|
|
1289
|
+
cfg = config;
|
|
1290
|
+
} else {
|
|
1291
|
+
cfg = rootOrConfig ?? {};
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
if (root && !getPage('/')) {
|
|
1295
|
+
corePage('/', root);
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1298
|
+
const { app: appProps, ...serverConfig } = cfg;
|
|
1299
|
+
if (appProps) {
|
|
1300
|
+
setPageWrapper((pageFn) => app(appProps, pageFn));
|
|
1301
|
+
} else {
|
|
1302
|
+
setPageWrapper(null);
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
runCalled = true;
|
|
1306
|
+
const server = new ClayServer(serverConfig);
|
|
1307
|
+
server.start();
|
|
1308
|
+
return server;
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
export const ui = {
|
|
1312
|
+
label,
|
|
1313
|
+
button,
|
|
1314
|
+
input,
|
|
1315
|
+
checkbox,
|
|
1316
|
+
switch: switch_,
|
|
1317
|
+
select,
|
|
1318
|
+
radioGroup,
|
|
1319
|
+
combobox,
|
|
1320
|
+
date,
|
|
1321
|
+
tooltip,
|
|
1322
|
+
avatar,
|
|
1323
|
+
skeleton,
|
|
1324
|
+
slider,
|
|
1325
|
+
textArea,
|
|
1326
|
+
link,
|
|
1327
|
+
badge,
|
|
1328
|
+
alert,
|
|
1329
|
+
spinner,
|
|
1330
|
+
progress,
|
|
1331
|
+
separator,
|
|
1332
|
+
icon,
|
|
1333
|
+
markdown,
|
|
1334
|
+
html,
|
|
1335
|
+
image,
|
|
1336
|
+
upload,
|
|
1337
|
+
rating,
|
|
1338
|
+
colorPicker,
|
|
1339
|
+
tags,
|
|
1340
|
+
codeBlock,
|
|
1341
|
+
tree,
|
|
1342
|
+
editor,
|
|
1343
|
+
kanban,
|
|
1344
|
+
relativeTime,
|
|
1345
|
+
qrCode,
|
|
1346
|
+
imageZoom,
|
|
1347
|
+
list,
|
|
1348
|
+
imageCrop,
|
|
1349
|
+
gantt,
|
|
1350
|
+
flow,
|
|
1351
|
+
stat,
|
|
1352
|
+
dataTable,
|
|
1353
|
+
table,
|
|
1354
|
+
chart,
|
|
1355
|
+
ai,
|
|
1356
|
+
areaChart,
|
|
1357
|
+
barChart,
|
|
1358
|
+
lineChart,
|
|
1359
|
+
pieChart,
|
|
1360
|
+
radarChart,
|
|
1361
|
+
radialChart,
|
|
1362
|
+
scatterChart,
|
|
1363
|
+
composedChart,
|
|
1364
|
+
row,
|
|
1365
|
+
column,
|
|
1366
|
+
container,
|
|
1367
|
+
hero,
|
|
1368
|
+
card,
|
|
1369
|
+
app,
|
|
1370
|
+
dialog,
|
|
1371
|
+
dialogStack,
|
|
1372
|
+
alertDialog,
|
|
1373
|
+
dropdownMenu,
|
|
1374
|
+
contextMenu,
|
|
1375
|
+
hoverCard,
|
|
1376
|
+
popover,
|
|
1377
|
+
inputOtp,
|
|
1378
|
+
toggleGroup,
|
|
1379
|
+
menubar,
|
|
1380
|
+
carousel,
|
|
1381
|
+
command,
|
|
1382
|
+
resizable,
|
|
1383
|
+
scrollArea,
|
|
1384
|
+
keybind,
|
|
1385
|
+
kbd,
|
|
1386
|
+
breadcrumb,
|
|
1387
|
+
sheet,
|
|
1388
|
+
drawer,
|
|
1389
|
+
tabs,
|
|
1390
|
+
accordion,
|
|
1391
|
+
collapsible,
|
|
1392
|
+
confirm,
|
|
1393
|
+
prompt,
|
|
1394
|
+
choose,
|
|
1395
|
+
notify,
|
|
1396
|
+
navigate,
|
|
1397
|
+
reconnect,
|
|
1398
|
+
establishAuthSession,
|
|
1399
|
+
clearAuthSession,
|
|
1400
|
+
download,
|
|
1401
|
+
clipboard,
|
|
1402
|
+
runJavaScript,
|
|
1403
|
+
scroll,
|
|
1404
|
+
timer,
|
|
1405
|
+
storage,
|
|
1406
|
+
theme,
|
|
1407
|
+
reactive,
|
|
1408
|
+
state,
|
|
1409
|
+
subscribe,
|
|
1410
|
+
draft,
|
|
1411
|
+
validate,
|
|
1412
|
+
refreshable,
|
|
1413
|
+
auto,
|
|
1414
|
+
page,
|
|
1415
|
+
run,
|
|
1416
|
+
loadPages,
|
|
1417
|
+
navFromPages,
|
|
1418
|
+
};
|
|
1419
|
+
|
|
1420
|
+
export default ui;
|