@tongfun/ui 0.0.0-alpha.3 → 0.0.1-alpha.10

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 (36) hide show
  1. package/README.md +110 -0
  2. package/dist/agent-schema/index.d.ts +12 -0
  3. package/dist/agent-schema/index.js +33 -0
  4. package/dist/agent-schema/types.d.ts +27 -0
  5. package/dist/formula/index.d.ts +17 -0
  6. package/dist/formula/types.d.ts +136 -0
  7. package/dist/html2canvas.esm-Bfw1xMTR.js +4886 -0
  8. package/dist/index-C0rb4BPV.js +482 -0
  9. package/dist/index-Ci3-2oB_.js +323459 -0
  10. package/dist/index.d.ts +719 -0
  11. package/dist/index.es-CoCAKfeh.js +5790 -0
  12. package/dist/index.js +842 -0
  13. package/dist/jspdf.es.min-B9-wXZ_S.js +10769 -0
  14. package/dist/lowcode-agent/icons.d.ts +12 -0
  15. package/dist/lowcode-agent/icons.js +229 -0
  16. package/dist/lowcode-agent/index.d.ts +27 -0
  17. package/dist/lowcode-agent/index.js +79577 -0
  18. package/dist/lowcode-agent/types.d.ts +471 -0
  19. package/dist/skill/golden-examples/dashboard-workbench.md +224 -0
  20. package/dist/skill/golden-examples/form-create.md +227 -0
  21. package/dist/skill/golden-examples/management-list.md +264 -0
  22. package/dist/skill/golden-examples/new-document.md +748 -0
  23. package/dist/skill/tongfun-ui-skill.json +470 -0
  24. package/dist/skill/tongfun-ui-skill.md +297 -0
  25. package/dist/style.css +10 -0
  26. package/package.json +113 -38
  27. package/Button/button-props.d.ts +0 -9
  28. package/Button/button-variants.d.ts +0 -5
  29. package/Button/index.d.ts +0 -20
  30. package/Button/index.js +0 -111
  31. package/index.css +0 -596
  32. package/index.d.ts +0 -15
  33. package/index.js +0 -19
  34. package/utils/forward-attrs.d.ts +0 -6
  35. package/utils/install.d.ts +0 -6
  36. package/utils/utils.d.ts +0 -2
@@ -0,0 +1,719 @@
1
+ import type { Component, CSSProperties, Plugin } from 'vue'
2
+
3
+ export declare const TfAffix: Component
4
+ export declare const TfAiActionMenu: Component
5
+ export declare const TfAiAssistant: Component
6
+ export declare const TfAiAssistantBanner: Component
7
+ export declare const TfAiAssistantDrawer: Component
8
+ export declare const TfAiAssistantPanel: Component
9
+ export declare const TfAiChat: Component
10
+ export declare const TfAiFab: Component
11
+ export declare const TfAiFabButton: Component
12
+ export declare const TfAiInsight: Component
13
+ export declare const TfAiOverlay: Component
14
+ export declare const TfAlert: Component
15
+ export declare const TfAnchor: Component
16
+ export declare const TfAppBar: Component
17
+ export declare const TfApprovalFlow: Component
18
+ export declare const TfAssetMarket: Component
19
+ export declare const TfBackTop: Component
20
+ export declare const TfBadge: Component
21
+ export declare const TfBarChart: Component
22
+ export declare const TfBaseUpload: Component
23
+ export declare const TfBasicData: Component
24
+ export declare const TfBasicDataLayout: Component
25
+ export declare const TfBasicDataModal: Component
26
+ export declare const TfBreadcrumb: Component
27
+ export declare const TfBusinessSelect: Component
28
+ export declare const TfButton: Component
29
+ export declare const TfCard: Component
30
+ export declare const TfCascader: Component
31
+ export declare const TfChangeTracking: Component
32
+ export declare const TfChart: Component
33
+ export declare const TfCoSignFlow: Component
34
+ export declare const TfCoSigningFlow: Component
35
+ export declare const TfCodeBlock: Component
36
+ export declare const TfColumnConfigPanel: Component
37
+ export declare const TfColumnFilterPopover: Component
38
+ export declare const TfContainer: Component
39
+ export declare const TfCustomDashboard: Component
40
+ export declare const TfDashboardPages: Component
41
+ export declare const TfDataGrid: Component
42
+ export declare const TfDataPicker: Component
43
+ export declare const TfDatePicker: Component
44
+ export declare const TfDateTimePicker: Component
45
+ export declare const TfDecimalInput: Component
46
+ export declare const TfDetailLayout: Component
47
+ export declare const TfDivider: Component
48
+ export declare const TfDocumentApprovalSection: Component
49
+ export declare const TfDocumentBodyTable: Component
50
+ export declare const TfDocumentFieldTemplateSettings: Component
51
+ export declare const TfDocumentFormShell: Component
52
+ export declare const TfDocumentGeneralList: Component
53
+ export declare const TfDocumentProgressCard: Component
54
+ export declare const TfDocumentSectionCard: Component
55
+ export declare const TfDonutChart: Component
56
+ export declare const TfDrawer: Component
57
+ export declare const TfDynamicForm: Component
58
+ export declare const TfEmpty: Component
59
+ export declare const TfError: Component
60
+ export declare const TfFeatureNav: Component
61
+ export declare const TfFieldArray: Component
62
+ export declare const TfFieldTip: Component
63
+ export declare const TfFilterSchemeEditor: Component
64
+ export declare const TfForm: Component
65
+ export declare const TfFormAiStatus: Component
66
+ export declare const TfFormAiToolbar: Component
67
+ export declare const TfFormArray: Component
68
+ export declare const TfFormBasicData: Component
69
+ export declare const TfFormBusinessSelect: Component
70
+ export declare const TfFormCascader: Component
71
+ export declare const TfFormCheckbox: Component
72
+ export declare const TfFormDataPicker: Component
73
+ export declare const TfFormDatePicker: Component
74
+ export declare const TfFormDateTimePicker: Component
75
+ export declare const TfFormDecimalInput: Component
76
+ export declare const TfFormDynamic: Component
77
+ export declare const TfFormField: Component
78
+ export declare const TfFormFileUpload: Component
79
+ export declare const TfFormGroup: Component
80
+ export declare const TfFormIconPicker: Component
81
+ export declare const TfFormImageUpload: Component
82
+ export declare const TfFormInput: Component
83
+ export declare const TfFormItem: Component
84
+ export declare const TfFormLayout: Component
85
+ export declare const TfFormLocationPicker: Component
86
+ export declare const TfFormNumberInput: Component
87
+ export declare const TfFormRadio: Component
88
+ export declare const TfFormRegionPicker: Component
89
+ export declare const TfFormSection: Component
90
+ export declare const TfFormSelect: Component
91
+ export declare const TfFormSignature: Component
92
+ export declare const TfFormSlider: Component
93
+ export declare const TfFormSwitch: Component
94
+ export declare const TfFormTable: Component
95
+ export declare const TfFormTextarea: Component
96
+ export declare const TfFormTimePicker: Component
97
+ export declare const TfFormUpload: Component
98
+ export declare const TfGaugeChart: Component
99
+ export declare const TfGrid: Component
100
+ export declare const TfGroupNav: Component
101
+ export declare const TfHelpDrawer: Component
102
+ export declare const TfHero: Component
103
+ export declare const TfIcon: Component
104
+ export declare const TfIconPicker: Component
105
+ export declare const TfImagePreview: Component
106
+ export declare const TfInfoCard: Component
107
+ export declare const TfInline: Component
108
+ export declare const TfInput: Component
109
+ export declare const TfInputSelect: Component
110
+ export declare const TfInsightDrawer: Component
111
+ export declare const TfLineChart: Component
112
+ export declare const TfList: Component
113
+ export declare const TfListFilter: Component
114
+ export declare const TfListItem: Component
115
+ export declare const TfLoading: Component
116
+ export declare const TfLocationPicker: Component
117
+ export declare const TfMasterDetail: Component
118
+ export declare const TfMessage: Component
119
+ export declare const TfMetric: Component
120
+ export declare const TfMetricDesigner: Component
121
+ export declare const TfMetricGrid: Component
122
+ export declare const TfModal: Component
123
+ export declare const TfNotification: Component
124
+ export declare const TfNotifyProvider: Component
125
+ export declare const TfNumberInput: Component
126
+ export declare const TfPage: Component
127
+ export declare const TfPageHeader: Component
128
+ export declare const TfPageSearch: Component
129
+ export declare const TfPageableGrid: Component
130
+ export declare const TfPagination: Component
131
+ export declare const TfParticipantList: Component
132
+ export declare const TfPieChart: Component
133
+ export declare const TfPointsCenter: Component
134
+ export declare const TfPrintRender: Component
135
+ export declare const TfRadarChart: Component
136
+ export declare const TfRedHeader: Component
137
+ export declare const TfRedHeaderConfig: Component
138
+ export declare const TfReportAiChatDock: Component
139
+ export declare const TfReportAiDock: Component
140
+ export declare const TfReportAssetNav: Component
141
+ export declare const TfReportCanvas: Component
142
+ export declare const TfReportSection: Component
143
+ export declare const TfReportWidgetPanel: Component
144
+ export declare const TfRichTextEditor: Component
145
+ export declare const TfScoreMetric: Component
146
+ export declare const TfSealSelector: Component
147
+ export declare const TfSection: Component
148
+ export declare const TfSectionHeading: Component
149
+ export declare const TfSelect: Component
150
+ export declare const TfSideNav: Component
151
+ export declare const TfSidebarLayout: Component
152
+ export declare const TfSignature: Component
153
+ export declare const TfSignaturePad: Component
154
+ export declare const TfSignaturePosition: Component
155
+ export declare const TfSignatureVerify: Component
156
+ export declare const TfSkeleton: Component
157
+ export declare const TfSlider: Component
158
+ export declare const TfSplit: Component
159
+ export declare const TfSplitterColumn: Component
160
+ export declare const TfSplitterRow: Component
161
+ export declare const TfStack: Component
162
+ export declare const TfStateContainer: Component
163
+ export declare const TfStatusDot: Component
164
+ export declare const TfStep: Component
165
+ export declare const TfSteps: Component
166
+ export declare const TfSubForm: Component
167
+ export declare const TfSubFormItem: Component
168
+ export declare const TfSystemDock: Component
169
+ export declare const TfTable: Component
170
+ export declare const TfTableForm: Component
171
+ export declare const TfTabs: Component
172
+ export declare const TfTabsContent: Component
173
+ export declare const TfTabsList: Component
174
+ export declare const TfTabsTrigger: Component
175
+ export declare const TfTag: Component
176
+ export declare const TfTemplateEditor: Component
177
+ export declare const TfTemplateManager: Component
178
+ export declare const TfTemplatePreview: Component
179
+ export declare const TfTemplatePrintModal: Component
180
+ export declare const TfTextArea: Component
181
+ export declare const TfTicketFeedbackDrawer: Component
182
+ export declare const TfTimePicker: Component
183
+ export declare const TfTimeline: Component
184
+ export declare const TfTimelineItem: Component
185
+ export declare const TfTitleBar: Component
186
+ export declare const TfToolbar: Component
187
+ export declare const TfTypography: Component
188
+ export declare const TfVersionDiff: Component
189
+ export declare const TfVersionDrawer: Component
190
+ export declare const TfVersionList: Component
191
+ export declare const TfWatermark: Component
192
+ export declare const TfWorkspaceSidebar: Component
193
+
194
+ export declare const TfUI: Plugin
195
+
196
+ export type PrintRuntimeProtocolId = 'tongfun.print-runtime'
197
+ export type PrintRuntimeMode = 'preview' | 'print'
198
+ export type PrintRuntimeElementType =
199
+ | 'text'
200
+ | 'field'
201
+ | 'image'
202
+ | 'barcode'
203
+ | 'qrcode'
204
+ | 'pageNumber'
205
+ | 'line'
206
+ | 'rect'
207
+ | 'circle'
208
+ | 'pageBreak'
209
+
210
+ export type PrintRuntimeAlignment = 'left' | 'center' | 'right'
211
+ export type PrintRuntimeTableMode = 'static' | 'dynamic'
212
+ export type PrintRuntimeEmptyDisplay = 'header-only' | 'placeholder' | 'hidden'
213
+ export type PrintRuntimeElementRegion = 'header' | 'body' | 'footer' | 'beforeTable' | 'afterTable'
214
+ export type PrintRuntimeTableAnchorPosition = 'before' | 'after'
215
+ export type PrintRuntimeValue = string | number | boolean | Date | null | undefined
216
+ export type PrintRuntimeRecord = Record<string, unknown>
217
+ export type PrintRuntimeRecordPath = string
218
+ export type PrintFlowBlockKind = 'element' | 'static-table' | 'dynamic-table' | 'card-list' | 'page-break'
219
+ export type PrintRuntimeDiagnosticSeverity = 'error' | 'warning'
220
+
221
+ export interface PrintPaperSize {
222
+ widthMm: number
223
+ heightMm: number
224
+ }
225
+
226
+ export interface PrintMargins {
227
+ topMm?: number
228
+ rightMm?: number
229
+ bottomMm?: number
230
+ leftMm?: number
231
+ }
232
+
233
+ export interface PrintRuntimeRect {
234
+ xMm: number
235
+ yMm: number
236
+ widthMm: number
237
+ heightMm: number
238
+ }
239
+
240
+ export interface PrintRuntimePageRegion {
241
+ enabled?: boolean
242
+ heightMm?: number
243
+ }
244
+
245
+ export interface PrintRuntimePageLayout {
246
+ header?: PrintRuntimePageRegion
247
+ body?: PrintRuntimePageRegion
248
+ footer?: PrintRuntimePageRegion
249
+ }
250
+
251
+ export interface PrintRuntimeStyle {
252
+ color?: string
253
+ backgroundColor?: string
254
+ fontFamily?: string
255
+ fontSizePt?: number
256
+ fontWeight?: string | number
257
+ lineHeight?: number | string
258
+ textAlign?: PrintRuntimeAlignment
259
+ verticalAlign?: 'top' | 'middle' | 'bottom'
260
+ whiteSpace?: 'normal' | 'nowrap' | 'pre-wrap'
261
+ border?: string
262
+ borderWidth?: number
263
+ borderColor?: string
264
+ paddingMm?: number
265
+ opacity?: number
266
+ [key: string]: string | number | undefined
267
+ }
268
+
269
+ export interface PrintFieldFormat {
270
+ type?: 'text' | 'number' | 'date'
271
+ decimals?: number
272
+ minimumFractionDigits?: number
273
+ maximumFractionDigits?: number
274
+ locale?: string
275
+ dateStyle?: 'full' | 'long' | 'medium' | 'short'
276
+ prefix?: string
277
+ suffix?: string
278
+ emptyText?: string
279
+ thousandth?: boolean
280
+ chineseAmount?: boolean
281
+ useGrouping?: boolean
282
+ }
283
+
284
+ export interface PrintRuntimeBinding {
285
+ path: string
286
+ source?: 'data' | 'record'
287
+ format?: PrintFieldFormat
288
+ defaultValue?: string
289
+ }
290
+
291
+ export interface PrintRuntimeElement {
292
+ id: string
293
+ type: PrintRuntimeElementType
294
+ rect?: Partial<PrintRuntimeRect>
295
+ xMm?: number
296
+ yMm?: number
297
+ widthMm?: number
298
+ heightMm?: number
299
+ content?: string
300
+ text?: string
301
+ value?: string
302
+ src?: string
303
+ field?: string | PrintRuntimeBinding
304
+ binding?: PrintRuntimeBinding
305
+ format?: PrintFieldFormat
306
+ pageFormat?: 'current' | 'total' | 'current/total' | string
307
+ repeatPerPage?: boolean
308
+ repeatPosition?: 'fixed' | 'followTable'
309
+ region?: PrintRuntimeElementRegion
310
+ tableAnchor?: PrintRuntimeTableAnchorPosition | {
311
+ tableId?: string
312
+ position: PrintRuntimeTableAnchorPosition
313
+ }
314
+ tableId?: string
315
+ style?: PrintRuntimeStyle
316
+ previewEditable?: boolean
317
+ fieldKind?: 'field' | 'label-field' | string
318
+ labelText?: string
319
+ [key: string]: unknown
320
+ }
321
+
322
+ export interface PrintRuntimeColumn {
323
+ id?: string
324
+ key?: string
325
+ title?: string
326
+ header?: string
327
+ headerName?: string
328
+ field: string
329
+ widthMm?: number
330
+ width?: number
331
+ align?: PrintRuntimeAlignment
332
+ textAlign?: PrintRuntimeAlignment
333
+ rowStyle?: PrintRuntimeStyle
334
+ headerStyle?: PrintRuntimeStyle
335
+ format?: PrintFieldFormat
336
+ previewEditable?: boolean
337
+ subtotal?: boolean
338
+ total?: boolean
339
+ aggregate?: 'sum'
340
+ }
341
+
342
+ export type PrintRuntimeStaticRowRole = 'header' | 'body' | 'footer'
343
+
344
+ export interface PrintRuntimeStaticCell {
345
+ content?: string
346
+ field?: string | PrintRuntimeBinding
347
+ format?: PrintFieldFormat
348
+ style?: PrintRuntimeStyle
349
+ colSpan?: number
350
+ rowSpan?: number
351
+ isCovered?: boolean
352
+ previewEditable?: boolean
353
+ }
354
+
355
+ export interface PrintRuntimeStaticRow {
356
+ role?: PrintRuntimeStaticRowRole
357
+ heightMm?: number
358
+ cells: PrintRuntimeStaticCell[]
359
+ }
360
+
361
+ export interface PrintRuntimeTable {
362
+ id: string
363
+ rect?: Partial<PrintRuntimeRect>
364
+ xMm?: number
365
+ yMm?: number
366
+ widthMm?: number
367
+ heightMm?: number
368
+ dataPath?: string
369
+ recordsPath?: string
370
+ columns: PrintRuntimeColumn[]
371
+ staticRows?: PrintRuntimeStaticRow[]
372
+ mode?: PrintRuntimeTableMode
373
+ rowHeightMm?: number
374
+ headerHeightMm?: number
375
+ subtotalHeightMm?: number
376
+ totalHeightMm?: number
377
+ repeatHeader?: boolean
378
+ padEmptyRows?: boolean
379
+ showHeader?: boolean
380
+ showFooter?: boolean
381
+ showSubtotal?: boolean
382
+ showTotal?: boolean
383
+ subtotalLabel?: string
384
+ totalLabel?: string
385
+ emptyDisplay?: PrintRuntimeEmptyDisplay
386
+ emptyText?: string
387
+ style?: PrintRuntimeStyle
388
+ headerStyle?: PrintRuntimeStyle
389
+ rowStyle?: PrintRuntimeStyle
390
+ summaryStyle?: PrintRuntimeStyle
391
+ }
392
+
393
+ export interface PrintCardConfig {
394
+ dataPath?: string
395
+ recordsPath?: string
396
+ columns?: number
397
+ cardHeightMm?: number
398
+ gapXMm?: number
399
+ gapYMm?: number
400
+ border?: PrintRuntimeStyle
401
+ borderRadiusMm?: number
402
+ backgroundColor?: string
403
+ paddingMm?: number
404
+ }
405
+
406
+ export interface PrintRuntimeCardList {
407
+ id: string
408
+ rect?: Partial<PrintRuntimeRect>
409
+ xMm?: number
410
+ yMm?: number
411
+ widthMm?: number
412
+ heightMm?: number
413
+ cardConfig: PrintCardConfig
414
+ children: PrintRuntimeElement[]
415
+ }
416
+
417
+ export interface PrintFlowBlock {
418
+ id: string
419
+ kind: PrintFlowBlockKind
420
+ order: number
421
+ xMm: number
422
+ yMm: number
423
+ widthMm: number
424
+ heightMm: number
425
+ element?: PrintRuntimeElement
426
+ table?: PrintRuntimeTable
427
+ cardList?: PrintRuntimeCardList
428
+ tableAnchor?: PrintRuntimeTableAnchorPosition
429
+ }
430
+
431
+ export interface PrintTableFragment {
432
+ tableId: string
433
+ fragmentIndex: number
434
+ recordStart: number
435
+ recordEnd: number
436
+ pageIndex: number
437
+ continued: boolean
438
+ recordCount: number
439
+ }
440
+
441
+ export interface PrintRuntimeTemplate {
442
+ protocol: PrintRuntimeProtocolId
443
+ version: number
444
+ paper: PrintPaperSize
445
+ margins?: PrintMargins
446
+ layout?: PrintRuntimePageLayout
447
+ pageLayout?: PrintRuntimePageLayout
448
+ elements?: PrintRuntimeElement[]
449
+ tables?: PrintRuntimeTable[]
450
+ cardLists?: PrintRuntimeCardList[]
451
+ backgroundColor?: string
452
+ }
453
+
454
+ export interface PrintDataContext {
455
+ data: PrintRuntimeRecord
456
+ records: PrintRuntimeRecord[]
457
+ }
458
+
459
+ export interface PrintPageContext {
460
+ currentPage: number
461
+ pageIndex: number
462
+ pageCount: number
463
+ totalPages: number
464
+ }
465
+
466
+ export interface PrintContentArea extends PrintRuntimeRect {}
467
+
468
+ export interface PrintPageRegion extends PrintContentArea {
469
+ enabled: boolean
470
+ }
471
+
472
+ export interface PrintResolvedElement extends PrintRuntimeRect {
473
+ id: string
474
+ type: PrintRuntimeElementType
475
+ content: string
476
+ rawValue?: PrintRuntimeValue
477
+ src?: string
478
+ style: PrintRuntimeStyle
479
+ zIndex?: number
480
+ error?: string
481
+ format?: PrintFieldFormat | string
482
+ displayValue?: boolean
483
+ errorCorrectionLevel?: string
484
+ previewEditable?: boolean
485
+ fieldKind?: string
486
+ labelText?: string
487
+ }
488
+
489
+ export interface PrintTableCell extends PrintRuntimeRect {
490
+ columnId: string
491
+ field: string
492
+ content: string
493
+ rawValue?: PrintRuntimeValue
494
+ format?: PrintFieldFormat
495
+ style: PrintRuntimeStyle
496
+ colSpan?: number
497
+ rowSpan?: number
498
+ isCovered?: boolean
499
+ previewEditable?: boolean
500
+ }
501
+
502
+ export interface PrintTableRow extends PrintRuntimeRect {
503
+ index: number
504
+ record: PrintRuntimeRecord
505
+ cells: PrintTableCell[]
506
+ kind: 'data' | 'header' | 'subtotal' | 'total' | 'empty'
507
+ }
508
+
509
+ export interface PrintPageTable extends PrintRuntimeRect {
510
+ id: string
511
+ fragment?: PrintTableFragment
512
+ sourcePath?: PrintRuntimeRecordPath
513
+ columns: PrintRuntimeColumn[]
514
+ header?: PrintTableRow
515
+ rows: PrintTableRow[]
516
+ subtotal?: PrintTableRow
517
+ total?: PrintTableRow
518
+ empty: boolean
519
+ emptyDisplay: PrintRuntimeEmptyDisplay
520
+ emptyText: string
521
+ style: PrintRuntimeStyle
522
+ }
523
+
524
+ export type PrintPageItem =
525
+ | ({ kind: 'element' } & PrintResolvedElement)
526
+ | ({ kind: 'table' } & PrintPageTable)
527
+
528
+ export interface PrintPage extends PrintPageContext {
529
+ widthMm: number
530
+ heightMm: number
531
+ contentArea: PrintContentArea
532
+ headerArea: PrintPageRegion
533
+ footerArea: PrintPageRegion
534
+ elements: PrintResolvedElement[]
535
+ tables: PrintPageTable[]
536
+ items: PrintPageItem[]
537
+ }
538
+
539
+ export interface PrintLayoutDiagnostic {
540
+ code: string
541
+ message: string
542
+ path?: string
543
+ severity?: PrintRuntimeDiagnosticSeverity
544
+ blockId?: string
545
+ pageIndex?: number
546
+ }
547
+
548
+ export interface PrintRuntimeError extends PrintLayoutDiagnostic {}
549
+
550
+ export interface PrintPaginationResult {
551
+ valid: boolean
552
+ pages: PrintPage[]
553
+ pageCount: number
554
+ contentArea?: PrintContentArea
555
+ errors: PrintRuntimeError[]
556
+ }
557
+
558
+ export interface PrintRenderResult extends PrintPaginationResult {
559
+ mode: PrintRuntimeMode
560
+ }
561
+
562
+ export interface PrintRenderProps {
563
+ template: PrintRuntimeTemplate
564
+ data?: PrintRuntimeRecord
565
+ records?: PrintRuntimeRecord[]
566
+ mode?: PrintRuntimeMode
567
+ loading?: boolean
568
+ class?: string
569
+ overrides?: Record<string, string>
570
+ }
571
+
572
+ export interface PrintRenderEmits {
573
+ (event: 'render', result: PrintRenderResult): void
574
+ (event: 'error', errors: PrintRuntimeError[]): void
575
+ (event: 'ready', pages: PrintPage[]): void
576
+ (event: 'update:overrides', overrides: Record<string, string>): void
577
+ (event: 'change-override', payload: { key: string; value: string; overrides: Record<string, string> }): void
578
+ }
579
+
580
+ export interface PrintRenderSlots {
581
+ loading?: () => unknown
582
+ empty?: (props: { records: PrintRuntimeRecord[]; table?: PrintPageTable }) => unknown
583
+ error?: (props: { errors: PrintRuntimeError[] }) => unknown
584
+ element?: (props: { element: PrintResolvedElement; page: PrintPage }) => unknown
585
+ cell?: (props: { cell: PrintTableCell; row: PrintTableRow; page: PrintPage }) => unknown
586
+ }
587
+
588
+ export type PrintElementCSSProperties = CSSProperties & Record<string, string | number | undefined>
589
+
590
+
591
+ export declare function paginatePrintRuntime(
592
+ template: PrintRuntimeTemplate,
593
+ data?: PrintRuntimeRecord,
594
+ records?: PrintRuntimeRecord[]
595
+ ): PrintPaginationResult
596
+ export declare const paginatePrintTemplate: typeof paginatePrintRuntime
597
+ export declare const buildPrintPages: typeof paginatePrintRuntime
598
+ export declare function getPrintPaginationErrors(result: PrintPaginationResult): PrintRuntimeError[]
599
+ export declare function getPrintPageRows(page: PrintPage, tableId?: string): PrintTableRow[]
600
+
601
+ export type DocumentFormShellStatusValue =
602
+ | string
603
+ | number
604
+ | { id: string; name: string }
605
+ | null
606
+ | undefined
607
+
608
+ export interface DocumentFormFieldAccess {
609
+ status?: {
610
+ readonly value: DocumentFormShellStatusValue | undefined
611
+ }
612
+ resolve: (statusDisabled?: Record<string, boolean>) => {
613
+ disabled: boolean
614
+ readonly: boolean
615
+ }
616
+ }
617
+
618
+ export type SidebarLayoutPosition = 'left' | 'right'
619
+
620
+ export type SidebarLayoutSurface = 'plain' | 'card'
621
+ export type SidebarLayoutSurfaceTone = 'white' | 'neutral'
622
+ export type SidebarLayoutBreakpoint = 'md' | 'lg' | 'xl'
623
+ export type SidebarLayoutGap = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl'
624
+
625
+ export type SidebarSectionNavigationScrollBehavior = 'auto' | 'smooth'
626
+
627
+ export type SidebarNavigationWarningCode =
628
+ | 'missing-navigation'
629
+ | 'multiple-navigation'
630
+ | 'missing-groups'
631
+ | 'missing-section-id'
632
+ | 'duplicate-section-id'
633
+ | 'unmatched-navigation-item'
634
+ | 'missing-navigation-item-id'
635
+
636
+ export interface SidebarSectionNavigationOptions {
637
+ enabled?: boolean
638
+ /** 额外滚动间距;组件会自动叠加当前滚动根顶部可见的吸顶区域高度 */
639
+ scrollOffset?: number
640
+ scrollBehavior?: SidebarSectionNavigationScrollBehavior
641
+ syncActiveOnScroll?: boolean
642
+ }
643
+
644
+ export interface SidebarNavigationWarning {
645
+ code: SidebarNavigationWarningCode
646
+ id?: string
647
+ message: string
648
+ }
649
+
650
+ export interface SidebarLayoutProps {
651
+ /** 侧边栏展开宽度,默认 240px */
652
+ sidebarWidth?: string
653
+ /** 侧边栏收起宽度,默认 64px */
654
+ collapsedWidth?: string
655
+ /** 是否收起,默认 false */
656
+ collapsed?: boolean
657
+ /** 是否可收起,默认 false */
658
+ collapsible?: boolean
659
+ /** 侧边栏位置,默认 left */
660
+ position?: SidebarLayoutPosition
661
+ /** 是否占满高度,默认 true */
662
+ fullHeight?: boolean
663
+ /** 右侧栏宽度,默认 undefined(不渲染) */
664
+ rightWidth?: string
665
+ /** 右侧栏 < breakpoint 时隐藏,默认 'xl' */
666
+ rightCollapseBreakpoint?: SidebarLayoutBreakpoint
667
+ /** 整体外观:plain 透明 / card 卡片化,默认 plain */
668
+ surface?: SidebarLayoutSurface
669
+ /** surface=card 时背景色,默认 white */
670
+ surfaceTone?: SidebarLayoutSurfaceTone
671
+ /** 侧栏粘性定位(仅 fullHeight=false 生效),默认 false。
672
+ * true 时:解除 sidebar/main 的独立滚动,sidebar 随页面滚动粘顶,
673
+ * 顶部偏移由 CSS 变量 --tf-sidebar-layout-sticky-top 控制(默认 16px)。 */
674
+ stickySidebar?: boolean
675
+ /** 侧栏、主内容、右侧栏之间的布局间距,默认 none */
676
+ gap?: SidebarLayoutGap
677
+ /** 是否显示侧栏分割线,默认 true */
678
+ showDivider?: boolean
679
+ /** surface=card 时是否显示外层边框,默认 true */
680
+ showSurfaceBorder?: boolean
681
+ sectionNavigation?: SidebarSectionNavigationOptions
682
+ activeSection?: string
683
+ }
684
+
685
+ export interface SidebarLayoutEmits {
686
+ /** 收起状态变更,用于 v-model:collapsed */
687
+ 'update:collapsed': [value: boolean]
688
+ /** 点击触发器切换收起状态时触发 */
689
+ collapse: [value: boolean]
690
+ 'section-change': [sectionId: string]
691
+ 'navigation-warning': [warning: SidebarNavigationWarning]
692
+ 'update:activeSection': [value: string]
693
+ }
694
+
695
+ export interface SidebarLayoutSlots {
696
+ sidebar?: (_: any) => any
697
+ main?: (_: any) => any
698
+ default?: (_: any) => any
699
+ trigger?: (_: any) => any
700
+ right?: (_: any) => any
701
+ }
702
+
703
+
704
+ export declare const DOCUMENT_FORM_FIELD_ACCESS_KEY: unique symbol
705
+ export declare const DOCUMENT_FORM_SHELL_CONTEXT_KEY: unique symbol
706
+
707
+ export {
708
+ evaluateFormula,
709
+ extractFormulaDependencies,
710
+ normalizeFormulaTokens,
711
+ validateFormula
712
+ } from './formula'
713
+
714
+ export type * from './formula'
715
+
716
+ export * from './lowcode-agent'
717
+ export * from './agent-schema'
718
+
719
+ export default TfUI