yc-agent-ui 1.2.6 → 1.2.8

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 (136) hide show
  1. package/es/_virtual/_commonjsHelpers.mjs +7 -0
  2. package/es/_virtual/toastify.mjs +3 -0
  3. package/es/components/data-table/src/data-table-pagination.vue.d.ts +3 -3
  4. package/es/components/data-table/src/data-table-toolbar.vue.d.ts +1 -1
  5. package/es/components/data-table/src/data-table.vue.d.ts +3 -3
  6. package/es/components/dialog-form/index.d.ts +4 -4
  7. package/es/components/dialog-form/src/index.vue.d.ts +4 -4
  8. package/es/components/display-item/index.d.ts +15 -15
  9. package/es/components/display-item/src/index.vue.d.ts +13 -13
  10. package/es/components/drawer-form/index.d.ts +10 -10
  11. package/es/components/drawer-form/src/index.vue.d.ts +6 -6
  12. package/es/components/form/index.d.ts +11 -11
  13. package/es/components/form/src/form-content.vue.d.ts +9 -9
  14. package/es/components/form/src/index.vue.d.ts +9 -9
  15. package/es/components/form-item/index.d.ts +6 -6
  16. package/es/components/form-item/src/index.vue.d.ts +6 -6
  17. package/es/components/page/index.d.ts +362 -362
  18. package/es/components/page/src/index.vue.d.ts +123 -123
  19. package/es/components/search/index.d.ts +82 -82
  20. package/es/components/search/src/index.vue.d.ts +30 -30
  21. package/es/components/table/index.d.ts +18 -18
  22. package/es/components/table/src/index.vue.d.ts +2 -2
  23. package/es/components/table/src/table-column.vue.d.ts +34 -34
  24. package/es/components/virtual-table/index.d.ts +7 -7
  25. package/es/components/virtual-table/src/index.vue.d.ts +2 -2
  26. package/es/components/yc-ai-chat/src/file-card.vue.d.ts +1 -1
  27. package/es/components/yc-ai-chat/src/select.vue.d.ts +2 -2
  28. package/es/components/yc-ai-chat/src/sidebar.vue.d.ts +3 -3
  29. package/es/components/yc-coss-table/src/coss-table.vue.d.ts +2 -2
  30. package/es/components/yc-coss-table/src/table-head.vue.d.ts +1 -1
  31. package/es/components/yc-display-cards/index.d.ts +20 -1
  32. package/es/components/yc-display-cards/src/form-card.vue.d.ts +23 -0
  33. package/es/components/yc-display-cards/src/toast.d.ts +4 -0
  34. package/es/components/yc-display-cards/src/types.d.ts +77 -0
  35. package/es/components/yc-plus-page/src/header-filter-cell.vue.d.ts +8 -8
  36. package/es/components/yc-plus-page/src/index.vue.d.ts +381 -381
  37. package/es/components/yc-property-table/src/bill-table.vue.d.ts +1 -1
  38. package/es/components/yc-property-table/src/property-table.vue.d.ts +3 -3
  39. package/es/components/yc-select-v2/src/index.vue.d.ts +1 -1
  40. package/es/hooks/usePlusFormReset.d.ts +66 -66
  41. package/es/index.css +18 -10
  42. package/es/index.mjs +1 -1
  43. package/es/node_modules/.pnpm/toastify-js@1.12.0/node_modules/toastify-js/src/toastify.mjs +456 -0
  44. package/es/packages/components/index.mjs +1 -1
  45. package/es/packages/components/yc-display-cards/capability.mjs +24 -2
  46. package/es/packages/components/yc-display-cards/index.mjs +3 -1
  47. package/es/packages/components/yc-display-cards/src/detail-card.vue.mjs +1 -1
  48. package/es/packages/components/yc-display-cards/src/form-card.vue.mjs +6 -0
  49. package/es/packages/components/yc-display-cards/src/form-card2.vue.mjs +1266 -0
  50. package/es/packages/components/yc-display-cards/src/metrics-card.vue.mjs +1 -1
  51. package/es/packages/components/yc-display-cards/src/table-card.vue.mjs +1 -1
  52. package/es/packages/components/yc-display-cards/src/toast.mjs +35 -0
  53. package/es/version.d.ts +1 -1
  54. package/es/version.mjs +1 -1
  55. package/index.css +11 -3
  56. package/index.js +2309 -535
  57. package/index.min.css +11 -3
  58. package/index.min.js +44 -37
  59. package/index.min.mjs +42 -35
  60. package/index.mjs +2307 -534
  61. package/lib/_virtual/_commonjsHelpers.js +10 -0
  62. package/lib/_virtual/toastify.js +5 -0
  63. package/lib/components/data-table/src/data-table-pagination.vue.d.ts +3 -3
  64. package/lib/components/data-table/src/data-table-toolbar.vue.d.ts +1 -1
  65. package/lib/components/data-table/src/data-table.vue.d.ts +3 -3
  66. package/lib/components/dialog-form/index.d.ts +4 -4
  67. package/lib/components/dialog-form/src/index.vue.d.ts +4 -4
  68. package/lib/components/display-item/index.d.ts +15 -15
  69. package/lib/components/display-item/src/index.vue.d.ts +13 -13
  70. package/lib/components/drawer-form/index.d.ts +10 -10
  71. package/lib/components/drawer-form/src/index.vue.d.ts +6 -6
  72. package/lib/components/form/index.d.ts +11 -11
  73. package/lib/components/form/src/form-content.vue.d.ts +9 -9
  74. package/lib/components/form/src/index.vue.d.ts +9 -9
  75. package/lib/components/form-item/index.d.ts +6 -6
  76. package/lib/components/form-item/src/index.vue.d.ts +6 -6
  77. package/lib/components/page/index.d.ts +362 -362
  78. package/lib/components/page/src/index.vue.d.ts +123 -123
  79. package/lib/components/search/index.d.ts +82 -82
  80. package/lib/components/search/src/index.vue.d.ts +30 -30
  81. package/lib/components/table/index.d.ts +18 -18
  82. package/lib/components/table/src/index.vue.d.ts +2 -2
  83. package/lib/components/table/src/table-column.vue.d.ts +34 -34
  84. package/lib/components/virtual-table/index.d.ts +7 -7
  85. package/lib/components/virtual-table/src/index.vue.d.ts +2 -2
  86. package/lib/components/yc-ai-chat/src/file-card.vue.d.ts +1 -1
  87. package/lib/components/yc-ai-chat/src/select.vue.d.ts +2 -2
  88. package/lib/components/yc-ai-chat/src/sidebar.vue.d.ts +3 -3
  89. package/lib/components/yc-coss-table/src/coss-table.vue.d.ts +2 -2
  90. package/lib/components/yc-coss-table/src/table-head.vue.d.ts +1 -1
  91. package/lib/components/yc-display-cards/index.d.ts +20 -1
  92. package/lib/components/yc-display-cards/src/form-card.vue.d.ts +23 -0
  93. package/lib/components/yc-display-cards/src/toast.d.ts +4 -0
  94. package/lib/components/yc-display-cards/src/types.d.ts +77 -0
  95. package/lib/components/yc-plus-page/src/header-filter-cell.vue.d.ts +8 -8
  96. package/lib/components/yc-plus-page/src/index.vue.d.ts +381 -381
  97. package/lib/components/yc-property-table/src/bill-table.vue.d.ts +1 -1
  98. package/lib/components/yc-property-table/src/property-table.vue.d.ts +3 -3
  99. package/lib/components/yc-select-v2/src/index.vue.d.ts +1 -1
  100. package/lib/hooks/usePlusFormReset.d.ts +66 -66
  101. package/lib/index.css +19 -11
  102. package/lib/index.js +1 -0
  103. package/lib/node_modules/.pnpm/toastify-js@1.12.0/node_modules/toastify-js/src/toastify.js +460 -0
  104. package/lib/packages/components/index.js +1 -0
  105. package/lib/packages/components/yc-display-cards/capability.js +23 -1
  106. package/lib/packages/components/yc-display-cards/index.js +3 -0
  107. package/lib/packages/components/yc-display-cards/src/detail-card.vue.js +1 -1
  108. package/lib/packages/components/yc-display-cards/src/form-card.vue.js +10 -0
  109. package/lib/packages/components/yc-display-cards/src/form-card2.vue.js +1270 -0
  110. package/lib/packages/components/yc-display-cards/src/metrics-card.vue.js +1 -1
  111. package/lib/packages/components/yc-display-cards/src/table-card.vue.js +1 -1
  112. package/lib/packages/components/yc-display-cards/src/toast.js +37 -0
  113. package/lib/version.d.ts +1 -1
  114. package/lib/version.js +1 -1
  115. package/locale/en.js +1 -1
  116. package/locale/en.min.js +1 -1
  117. package/locale/en.min.mjs +1 -1
  118. package/locale/en.mjs +1 -1
  119. package/locale/ja.js +1 -1
  120. package/locale/ja.min.js +1 -1
  121. package/locale/ja.min.mjs +1 -1
  122. package/locale/ja.mjs +1 -1
  123. package/locale/ko.js +1 -1
  124. package/locale/ko.min.js +1 -1
  125. package/locale/ko.min.mjs +1 -1
  126. package/locale/ko.mjs +1 -1
  127. package/locale/zh-cn.js +1 -1
  128. package/locale/zh-cn.min.js +1 -1
  129. package/locale/zh-cn.min.mjs +1 -1
  130. package/locale/zh-cn.mjs +1 -1
  131. package/locale/zh-tw.js +1 -1
  132. package/locale/zh-tw.min.js +1 -1
  133. package/locale/zh-tw.min.mjs +1 -1
  134. package/locale/zh-tw.mjs +1 -1
  135. package/package.json +2 -1
  136. package/theme-chalk/index.css +11 -3
@@ -162,8 +162,8 @@ declare const __VLS_component: DefineComponent<unknown, {
162
162
  column: PlusColumn;
163
163
  row: RecordType;
164
164
  index: number;
165
- rest: RecordType;
166
165
  formProps: PlusFormProps;
166
+ rest: RecordType;
167
167
  editable: boolean | "click" | "dblclick";
168
168
  }> & Omit<{
169
169
  readonly onChange?: ((data: {
@@ -171,7 +171,7 @@ declare const __VLS_component: DefineComponent<unknown, {
171
171
  prop: string;
172
172
  row: RecordType;
173
173
  }) => any) | undefined;
174
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "column" | "row" | "index" | "rest" | "formProps" | "editable">;
174
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "column" | "row" | "index" | "formProps" | "rest" | "editable">;
175
175
  $attrs: Attrs;
176
176
  $refs: {
177
177
  [x: string]: unknown;
@@ -215,8 +215,8 @@ declare const __VLS_component: DefineComponent<unknown, {
215
215
  column: PlusColumn;
216
216
  row: RecordType;
217
217
  index: number;
218
- rest: RecordType;
219
218
  formProps: PlusFormProps;
219
+ rest: RecordType;
220
220
  editable: boolean | "click" | "dblclick";
221
221
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
222
222
  beforeCreate?: (() => void) | (() => void)[];
@@ -242,8 +242,8 @@ declare const __VLS_component: DefineComponent<unknown, {
242
242
  column: PlusColumn;
243
243
  row: RecordType;
244
244
  index: number;
245
- rest: RecordType;
246
245
  formProps: PlusFormProps;
246
+ rest: RecordType;
247
247
  editable: boolean | "click" | "dblclick";
248
248
  }> & Omit<Readonly<unknown> & Readonly<{
249
249
  onChange?: ((data: {
@@ -251,7 +251,7 @@ declare const __VLS_component: DefineComponent<unknown, {
251
251
  prop: string;
252
252
  row: RecordType;
253
253
  }) => any) | undefined;
254
- }>, "startCellEdit" | "stopCellEdit" | "getDisplayItemInstance" | ("column" | "row" | "index" | "rest" | "formProps" | "editable")> & {
254
+ }>, "startCellEdit" | "stopCellEdit" | "getDisplayItemInstance" | ("column" | "row" | "index" | "formProps" | "rest" | "editable")> & {
255
255
  startCellEdit: () => void;
256
256
  stopCellEdit: () => void;
257
257
  getDisplayItemInstance: () => {
@@ -270,10 +270,10 @@ declare const __VLS_component: DefineComponent<unknown, {
270
270
  readonly label: string | ComputedRef<string>;
271
271
  readonly modelValue: string | number | boolean | string[] | number[] | [string, string] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
272
272
  readonly hasLabel: boolean | Ref<boolean, boolean> | ComputedRef<boolean>;
273
- readonly tooltip: string | Partial< Mutable<UseTooltipProps> & {
273
+ readonly tooltip: string | ComputedRef<string> | Partial< Mutable<UseTooltipProps> & {
274
274
  style?: CSSProperties;
275
275
  class?: any;
276
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
276
+ } & RecordType> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
277
277
  style?: CSSProperties;
278
278
  class?: any;
279
279
  } & RecordType>>;
@@ -344,10 +344,10 @@ declare const __VLS_component: DefineComponent<unknown, {
344
344
  prop: PlusColumn["prop"];
345
345
  modelValue: string | number | boolean | string[] | number[] | [string, string] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
346
346
  hasLabel: boolean | Ref<boolean, boolean> | ComputedRef<boolean>;
347
- tooltip: string | Partial< Mutable<UseTooltipProps> & {
347
+ tooltip: string | ComputedRef<string> | Partial< Mutable<UseTooltipProps> & {
348
348
  style?: CSSProperties;
349
349
  class?: any;
350
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
350
+ } & RecordType> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
351
351
  style?: CSSProperties;
352
352
  class?: any;
353
353
  } & RecordType>>;
@@ -383,10 +383,10 @@ declare const __VLS_component: DefineComponent<unknown, {
383
383
  readonly label: string | ComputedRef<string>;
384
384
  readonly modelValue: string | number | boolean | string[] | number[] | [string, string] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
385
385
  readonly hasLabel: boolean | Ref<boolean, boolean> | ComputedRef<boolean>;
386
- readonly tooltip: string | Partial< Mutable<UseTooltipProps> & {
386
+ readonly tooltip: string | ComputedRef<string> | Partial< Mutable<UseTooltipProps> & {
387
387
  style?: CSSProperties;
388
388
  class?: any;
389
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
389
+ } & RecordType> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
390
390
  style?: CSSProperties;
391
391
  class?: any;
392
392
  } & RecordType>>;
@@ -457,10 +457,10 @@ declare const __VLS_component: DefineComponent<unknown, {
457
457
  prop: PlusColumn["prop"];
458
458
  modelValue: string | number | boolean | string[] | number[] | [string, string] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
459
459
  hasLabel: boolean | Ref<boolean, boolean> | ComputedRef<boolean>;
460
- tooltip: string | Partial< Mutable<UseTooltipProps> & {
460
+ tooltip: string | ComputedRef<string> | Partial< Mutable<UseTooltipProps> & {
461
461
  style?: CSSProperties;
462
462
  class?: any;
463
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
463
+ } & RecordType> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
464
464
  style?: CSSProperties;
465
465
  class?: any;
466
466
  } & RecordType>>;
@@ -496,10 +496,10 @@ declare const __VLS_component: DefineComponent<unknown, {
496
496
  readonly label: string | ComputedRef<string>;
497
497
  readonly modelValue: string | number | boolean | string[] | number[] | [string, string] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
498
498
  readonly hasLabel: boolean | Ref<boolean, boolean> | ComputedRef<boolean>;
499
- readonly tooltip: string | Partial< Mutable<UseTooltipProps> & {
499
+ readonly tooltip: string | ComputedRef<string> | Partial< Mutable<UseTooltipProps> & {
500
500
  style?: CSSProperties;
501
501
  class?: any;
502
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
502
+ } & RecordType> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
503
503
  style?: CSSProperties;
504
504
  class?: any;
505
505
  } & RecordType>>;
@@ -570,10 +570,10 @@ declare const __VLS_component: DefineComponent<unknown, {
570
570
  prop: PlusColumn["prop"];
571
571
  modelValue: string | number | boolean | string[] | number[] | [string, string] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
572
572
  hasLabel: boolean | Ref<boolean, boolean> | ComputedRef<boolean>;
573
- tooltip: string | Partial< Mutable<UseTooltipProps> & {
573
+ tooltip: string | ComputedRef<string> | Partial< Mutable<UseTooltipProps> & {
574
574
  style?: CSSProperties;
575
575
  class?: any;
576
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
576
+ } & RecordType> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
577
577
  style?: CSSProperties;
578
578
  class?: any;
579
579
  } & RecordType>>;
@@ -622,8 +622,8 @@ declare const __VLS_component: DefineComponent<unknown, {
622
622
  column: PlusColumn;
623
623
  row: RecordType;
624
624
  index: number;
625
- rest: RecordType;
626
625
  formProps: PlusFormProps;
626
+ rest: RecordType;
627
627
  editable: boolean | "click" | "dblclick";
628
628
  }> & Omit<{
629
629
  readonly onChange?: ((data: {
@@ -631,7 +631,7 @@ declare const __VLS_component: DefineComponent<unknown, {
631
631
  prop: string;
632
632
  row: RecordType;
633
633
  }) => any) | undefined;
634
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "column" | "row" | "index" | "rest" | "formProps" | "editable">;
634
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "column" | "row" | "index" | "formProps" | "rest" | "editable">;
635
635
  $attrs: Attrs;
636
636
  $refs: {
637
637
  [x: string]: unknown;
@@ -675,8 +675,8 @@ declare const __VLS_component: DefineComponent<unknown, {
675
675
  column: PlusColumn;
676
676
  row: RecordType;
677
677
  index: number;
678
- rest: RecordType;
679
678
  formProps: PlusFormProps;
679
+ rest: RecordType;
680
680
  editable: boolean | "click" | "dblclick";
681
681
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
682
682
  beforeCreate?: (() => void) | (() => void)[];
@@ -702,8 +702,8 @@ declare const __VLS_component: DefineComponent<unknown, {
702
702
  column: PlusColumn;
703
703
  row: RecordType;
704
704
  index: number;
705
- rest: RecordType;
706
705
  formProps: PlusFormProps;
706
+ rest: RecordType;
707
707
  editable: boolean | "click" | "dblclick";
708
708
  }> & Omit<Readonly<unknown> & Readonly<{
709
709
  onChange?: ((data: {
@@ -711,7 +711,7 @@ declare const __VLS_component: DefineComponent<unknown, {
711
711
  prop: string;
712
712
  row: RecordType;
713
713
  }) => any) | undefined;
714
- }>, "startCellEdit" | "stopCellEdit" | "getDisplayItemInstance" | ("column" | "row" | "index" | "rest" | "formProps" | "editable")> & {
714
+ }>, "startCellEdit" | "stopCellEdit" | "getDisplayItemInstance" | ("column" | "row" | "index" | "formProps" | "rest" | "editable")> & {
715
715
  startCellEdit: () => void;
716
716
  stopCellEdit: () => void;
717
717
  getDisplayItemInstance: () => {
@@ -730,10 +730,10 @@ declare const __VLS_component: DefineComponent<unknown, {
730
730
  readonly label: string | ComputedRef<string>;
731
731
  readonly modelValue: string | number | boolean | string[] | number[] | [string, string] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
732
732
  readonly hasLabel: boolean | Ref<boolean, boolean> | ComputedRef<boolean>;
733
- readonly tooltip: string | Partial< Mutable<UseTooltipProps> & {
733
+ readonly tooltip: string | ComputedRef<string> | Partial< Mutable<UseTooltipProps> & {
734
734
  style?: CSSProperties;
735
735
  class?: any;
736
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
736
+ } & RecordType> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
737
737
  style?: CSSProperties;
738
738
  class?: any;
739
739
  } & RecordType>>;
@@ -804,10 +804,10 @@ declare const __VLS_component: DefineComponent<unknown, {
804
804
  prop: PlusColumn["prop"];
805
805
  modelValue: string | number | boolean | string[] | number[] | [string, string] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
806
806
  hasLabel: boolean | Ref<boolean, boolean> | ComputedRef<boolean>;
807
- tooltip: string | Partial< Mutable<UseTooltipProps> & {
807
+ tooltip: string | ComputedRef<string> | Partial< Mutable<UseTooltipProps> & {
808
808
  style?: CSSProperties;
809
809
  class?: any;
810
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
810
+ } & RecordType> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
811
811
  style?: CSSProperties;
812
812
  class?: any;
813
813
  } & RecordType>>;
@@ -843,10 +843,10 @@ declare const __VLS_component: DefineComponent<unknown, {
843
843
  readonly label: string | ComputedRef<string>;
844
844
  readonly modelValue: string | number | boolean | string[] | number[] | [string, string] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
845
845
  readonly hasLabel: boolean | Ref<boolean, boolean> | ComputedRef<boolean>;
846
- readonly tooltip: string | Partial< Mutable<UseTooltipProps> & {
846
+ readonly tooltip: string | ComputedRef<string> | Partial< Mutable<UseTooltipProps> & {
847
847
  style?: CSSProperties;
848
848
  class?: any;
849
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
849
+ } & RecordType> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
850
850
  style?: CSSProperties;
851
851
  class?: any;
852
852
  } & RecordType>>;
@@ -917,10 +917,10 @@ declare const __VLS_component: DefineComponent<unknown, {
917
917
  prop: PlusColumn["prop"];
918
918
  modelValue: string | number | boolean | string[] | number[] | [string, string] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
919
919
  hasLabel: boolean | Ref<boolean, boolean> | ComputedRef<boolean>;
920
- tooltip: string | Partial< Mutable<UseTooltipProps> & {
920
+ tooltip: string | ComputedRef<string> | Partial< Mutable<UseTooltipProps> & {
921
921
  style?: CSSProperties;
922
922
  class?: any;
923
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
923
+ } & RecordType> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
924
924
  style?: CSSProperties;
925
925
  class?: any;
926
926
  } & RecordType>>;
@@ -956,10 +956,10 @@ declare const __VLS_component: DefineComponent<unknown, {
956
956
  readonly label: string | ComputedRef<string>;
957
957
  readonly modelValue: string | number | boolean | string[] | number[] | [string, string] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
958
958
  readonly hasLabel: boolean | Ref<boolean, boolean> | ComputedRef<boolean>;
959
- readonly tooltip: string | Partial< Mutable<UseTooltipProps> & {
959
+ readonly tooltip: string | ComputedRef<string> | Partial< Mutable<UseTooltipProps> & {
960
960
  style?: CSSProperties;
961
961
  class?: any;
962
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
962
+ } & RecordType> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
963
963
  style?: CSSProperties;
964
964
  class?: any;
965
965
  } & RecordType>>;
@@ -1030,10 +1030,10 @@ declare const __VLS_component: DefineComponent<unknown, {
1030
1030
  prop: PlusColumn["prop"];
1031
1031
  modelValue: string | number | boolean | string[] | number[] | [string, string] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
1032
1032
  hasLabel: boolean | Ref<boolean, boolean> | ComputedRef<boolean>;
1033
- tooltip: string | Partial< Mutable<UseTooltipProps> & {
1033
+ tooltip: string | ComputedRef<string> | Partial< Mutable<UseTooltipProps> & {
1034
1034
  style?: CSSProperties;
1035
1035
  class?: any;
1036
- } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
1036
+ } & RecordType> | ComputedRef<Partial< Mutable<UseTooltipProps> & {
1037
1037
  style?: CSSProperties;
1038
1038
  class?: any;
1039
1039
  } & RecordType>>;
@@ -2,7 +2,7 @@ import { default as _VirtualTable } from './src/index.vue';
2
2
  import { CreateComponentPublicInstanceWithMixins, ComputedRef, ShallowRef, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps } from 'vue';
3
3
  import { RecordType, PageInfo, PlusColumn } from '../../types';
4
4
  import { VirtualTableColumn } from './src/type';
5
- import { ButtonsCallBackParams, ActionBarProps, PlusPaginationProps } from '../../agent-ui';
5
+ import { ButtonsCallBackParams, PlusPaginationProps, ActionBarProps } from '../../agent-ui';
6
6
  import { TableV2Instance, ComponentSize } from 'element-plus';
7
7
 
8
8
  export type PlusVirtualTableInstance = InstanceType<typeof _VirtualTable>;
@@ -47,8 +47,9 @@ export declare const PlusVirtualTable: {
47
47
  border: boolean;
48
48
  columns: PlusColumn[];
49
49
  rowKey: string;
50
- actionBar: false | Partial< ActionBarProps>;
50
+ pagination: false | Partial< PlusPaginationProps>;
51
51
  stripe: boolean;
52
+ actionBar: false | Partial< ActionBarProps>;
52
53
  scrollbarAlwaysOn: boolean;
53
54
  titleBar: boolean | {
54
55
  title?: string;
@@ -56,7 +57,6 @@ export declare const PlusVirtualTable: {
56
57
  };
57
58
  defaultSize: ComponentSize;
58
59
  tableData: RecordType[];
59
- pagination: false | Partial< PlusPaginationProps>;
60
60
  hasIndexColumn: boolean;
61
61
  isSelection: boolean;
62
62
  loadingStatus: boolean;
@@ -100,8 +100,9 @@ export declare const PlusVirtualTable: {
100
100
  border: boolean;
101
101
  columns: PlusColumn[];
102
102
  rowKey: string;
103
- actionBar: false | Partial< ActionBarProps>;
103
+ pagination: false | Partial< PlusPaginationProps>;
104
104
  stripe: boolean;
105
+ actionBar: false | Partial< ActionBarProps>;
105
106
  scrollbarAlwaysOn: boolean;
106
107
  titleBar: boolean | {
107
108
  title?: string;
@@ -109,7 +110,6 @@ export declare const PlusVirtualTable: {
109
110
  };
110
111
  defaultSize: ComponentSize;
111
112
  tableData: RecordType[];
112
- pagination: false | Partial< PlusPaginationProps>;
113
113
  hasIndexColumn: boolean;
114
114
  isSelection: boolean;
115
115
  loadingStatus: boolean;
@@ -163,8 +163,9 @@ export declare const PlusVirtualTable: {
163
163
  border: boolean;
164
164
  columns: PlusColumn[];
165
165
  rowKey: string;
166
- actionBar: false | Partial< ActionBarProps>;
166
+ pagination: false | Partial< PlusPaginationProps>;
167
167
  stripe: boolean;
168
+ actionBar: false | Partial< ActionBarProps>;
168
169
  scrollbarAlwaysOn: boolean;
169
170
  titleBar: boolean | {
170
171
  title?: string;
@@ -172,7 +173,6 @@ export declare const PlusVirtualTable: {
172
173
  };
173
174
  defaultSize: ComponentSize;
174
175
  tableData: RecordType[];
175
- pagination: false | Partial< PlusPaginationProps>;
176
176
  hasIndexColumn: boolean;
177
177
  isSelection: boolean;
178
178
  loadingStatus: boolean;
@@ -51,8 +51,9 @@ declare const __VLS_component: DefineComponent<unknown, {
51
51
  border: boolean;
52
52
  columns: PlusColumn[];
53
53
  rowKey: string;
54
- actionBar: false | Partial< ActionBarProps>;
54
+ pagination: false | Partial<PlusPaginationProps>;
55
55
  stripe: boolean;
56
+ actionBar: false | Partial< ActionBarProps>;
56
57
  scrollbarAlwaysOn: boolean;
57
58
  titleBar: boolean | {
58
59
  title?: string;
@@ -60,7 +61,6 @@ declare const __VLS_component: DefineComponent<unknown, {
60
61
  };
61
62
  defaultSize: ComponentSize;
62
63
  tableData: RecordType[];
63
- pagination: false | Partial<PlusPaginationProps>;
64
64
  hasIndexColumn: boolean;
65
65
  isSelection: boolean;
66
66
  loadingStatus: boolean;
@@ -9,8 +9,8 @@ declare const _default: DefineComponent<unknown, {}, {}, {}, {}, ComponentOption
9
9
  url: string;
10
10
  uid: string;
11
11
  variant: "composer" | "artifact";
12
- fileSize: number;
13
12
  mimeType: string;
13
+ fileSize: number;
14
14
  removable: boolean;
15
15
  downloadable: boolean;
16
16
  downloading: boolean;
@@ -15,10 +15,10 @@ declare const _default: DefineComponent<unknown, {}, {}, {}, {}, ComponentOption
15
15
  disabled: boolean;
16
16
  placeholder: string;
17
17
  modelValue: string;
18
+ searchable: boolean;
19
+ searchPlaceholder: string;
18
20
  ariaLabel: string;
19
21
  clearable: boolean;
20
22
  variant: "field" | "chip";
21
- searchable: boolean;
22
- searchPlaceholder: string;
23
23
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
24
24
  export default _default;
@@ -18,12 +18,12 @@ declare const __VLS_component: DefineComponent<unknown, {}, {}, {}, {}, Componen
18
18
  "load-more": () => void;
19
19
  }, string, PublicProps, Readonly<unknown> & Readonly<{
20
20
  onSelect?: ((id: string) => any) | undefined;
21
- onDelete?: ((id: string) => any) | undefined;
22
- "onLoad-more"?: (() => any) | undefined;
23
21
  onAction?: ((payload: {
24
22
  action: YcChatSessionAction;
25
23
  id: string;
26
24
  }) => any) | undefined;
25
+ onDelete?: ((id: string) => any) | undefined;
26
+ "onLoad-more"?: (() => any) | undefined;
27
27
  onArchive?: ((id: string) => any) | undefined;
28
28
  onShare?: ((id: string) => any) | undefined;
29
29
  onUnarchive?: ((id: string) => any) | undefined;
@@ -33,8 +33,8 @@ declare const __VLS_component: DefineComponent<unknown, {}, {}, {}, {}, Componen
33
33
  loading: boolean;
34
34
  emptyText: string;
35
35
  createText: string;
36
- hasMore: boolean;
37
36
  searchPlaceholder: string;
37
+ hasMore: boolean;
38
38
  connected: boolean;
39
39
  sessions: YcChatSessionItem[];
40
40
  activeId: string;
@@ -42,10 +42,10 @@ declare const __VLS_component: DefineComponent<unknown, {
42
42
  caption: string;
43
43
  columns: TableColumn[];
44
44
  selectable: boolean;
45
- striped: boolean;
46
45
  rowKey: string;
47
- density: TableDensity;
48
46
  selection: any[];
47
+ striped: boolean;
48
+ density: TableDensity;
49
49
  variant: TableVariant;
50
50
  hoverable: boolean;
51
51
  bordered: boolean;
@@ -9,8 +9,8 @@ declare const __VLS_component: DefineComponent<unknown, {}, {}, {}, {}, Componen
9
9
  onSort?: ((order: "ascending" | "descending" | null) => any) | undefined;
10
10
  }>, {
11
11
  align: TableAlign;
12
- sortable: boolean;
13
12
  sortOrder: TableSortOrder;
13
+ sortable: boolean;
14
14
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
15
15
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
16
16
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { SFCWithInstall } from '../../utils';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- import { DisplaySummaryItem, DisplayTableColumn, DisplayMetricItem, DisplayDetailStatus, DisplayDetailField } from './src/types';
3
+ import { DisplaySummaryItem, DisplayTableColumn, DisplayMetricItem, DisplayDetailStatus, DisplayDetailField, DisplayFormAttachment, DisplayFormField, DisplayFormActionRequest, DisplayFormActionResult, DisplayFormReplyPayload, DisplayFormReplyResult } from './src/types';
4
4
  export declare const YcDisplayTableCard: SFCWithInstall<DefineComponent<unknown, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<unknown> & Readonly<{}>, {
5
5
  title: string;
6
6
  summary: DisplaySummaryItem[];
@@ -21,4 +21,23 @@ export declare const YcDisplayDetailCard: SFCWithInstall<DefineComponent<unknown
21
21
  subtitle: string;
22
22
  note: string;
23
23
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>>;
24
+ export declare const YcDisplayFormCard: SFCWithInstall<DefineComponent<unknown, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
25
+ action: (text: string, attachments?: DisplayFormAttachment[] | undefined) => void;
26
+ }, string, PublicProps, Readonly<unknown> & Readonly<{
27
+ onAction?: ((text: string, attachments?: DisplayFormAttachment[] | undefined) => any) | undefined;
28
+ }>, {
29
+ title: string;
30
+ values: Record<string, unknown>;
31
+ mode: "query" | "submit" | "reply";
32
+ compact: boolean;
33
+ fields: DisplayFormField[];
34
+ subtitle: string;
35
+ operation: string;
36
+ submitLabel: string;
37
+ replyPrefix: string;
38
+ skillName: string;
39
+ executeAction: (req: DisplayFormActionRequest) => Promise< DisplayFormActionResult>;
40
+ uploadFile: (file: File) => Promise< DisplayFormAttachment>;
41
+ submitReply: (payload: DisplayFormReplyPayload) => Promise< DisplayFormReplyResult>;
42
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>>;
24
43
  export type * from './src/types';
@@ -0,0 +1,23 @@
1
+ import { DisplayFormAttachment, DisplayFormField, DisplayFormActionRequest, DisplayFormActionResult, DisplayFormReplyPayload, DisplayFormReplyResult } from './types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+
4
+ declare const _default: DefineComponent<unknown, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
5
+ action: (text: string, attachments?: DisplayFormAttachment[] | undefined) => void;
6
+ }, string, PublicProps, Readonly<unknown> & Readonly<{
7
+ onAction?: ((text: string, attachments?: DisplayFormAttachment[] | undefined) => any) | undefined;
8
+ }>, {
9
+ title: string;
10
+ values: Record<string, unknown>;
11
+ mode: "query" | "submit" | "reply";
12
+ compact: boolean;
13
+ fields: DisplayFormField[];
14
+ subtitle: string;
15
+ operation: string;
16
+ submitLabel: string;
17
+ replyPrefix: string;
18
+ skillName: string;
19
+ executeAction: (req: DisplayFormActionRequest) => Promise< DisplayFormActionResult>;
20
+ uploadFile: (file: File) => Promise<DisplayFormAttachment>;
21
+ submitReply: (payload: DisplayFormReplyPayload) => Promise< DisplayFormReplyResult>;
22
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
23
+ export default _default;
@@ -0,0 +1,4 @@
1
+
2
+ export type DisplayToastType = "info" | "success" | "warning" | "error";
3
+ /** 基于 toastify-js 弹出跨端(PC / 企微 / H5)顶部居中通知。 */
4
+ export declare function showDisplayToast(message: string, type?: DisplayToastType, duration?: number): void;
@@ -45,3 +45,80 @@ export interface YcDisplayDetailCardProps {
45
45
  fields?: DisplayDetailField[];
46
46
  note?: string;
47
47
  }
48
+ export interface DisplayFormOption {
49
+ label: string;
50
+ value: string | number | boolean;
51
+ }
52
+ export interface DisplayFormField {
53
+ name: string;
54
+ label?: string;
55
+ in?: string;
56
+ type?: string;
57
+ widget?: string;
58
+ required?: boolean;
59
+ visible?: boolean;
60
+ enum?: unknown[];
61
+ options?: Array<DisplayFormOption | string | number>;
62
+ options_operation?: string;
63
+ option_label_key?: string;
64
+ option_value_key?: string;
65
+ }
66
+ export interface DisplayFormAttachment {
67
+ fileRef?: string;
68
+ versionRef?: string;
69
+ uploadRef?: string;
70
+ fileName: string;
71
+ mimeType?: string;
72
+ sizeBytes?: number;
73
+ url?: string;
74
+ [key: string]: unknown;
75
+ }
76
+ export interface DisplayFormActionRequest {
77
+ operation: string;
78
+ mode: "schema" | "options" | "query" | "submit";
79
+ schema_only?: boolean;
80
+ values?: Record<string, unknown>;
81
+ }
82
+ export interface DisplayFormActionResult {
83
+ title?: string;
84
+ read_only?: boolean;
85
+ fields?: DisplayFormField[];
86
+ data?: unknown;
87
+ }
88
+ export interface DisplayFormTraceStep {
89
+ id: string;
90
+ label: string;
91
+ status: "running" | "succeeded" | "failed";
92
+ detail?: string;
93
+ }
94
+ export interface DisplayFormReplyPayload {
95
+ text: string;
96
+ attachments?: DisplayFormAttachment[];
97
+ values: Record<string, unknown>;
98
+ onTrace: (step: DisplayFormTraceStep) => void;
99
+ }
100
+ export interface DisplayFormReplyResult {
101
+ ok: boolean;
102
+ message?: string;
103
+ /** 后台发现缺少字段或附件时返回,卡片会在当前表单中动态追加这些字段供用户补齐。 */
104
+ missingFields?: DisplayFormField[];
105
+ trace?: DisplayFormTraceStep[];
106
+ }
107
+ export interface YcDisplayFormCardProps {
108
+ title?: string;
109
+ subtitle?: string;
110
+ operation?: string;
111
+ mode?: "query" | "submit" | "reply";
112
+ submitLabel?: string;
113
+ replyPrefix?: string;
114
+ fields?: DisplayFormField[];
115
+ values?: Record<string, unknown>;
116
+ compact?: boolean;
117
+ skillName?: string;
118
+ /** 业务表单直连查询/提交/拉取字段定义或远程下拉选项的适配器(reply 模式可不传)。 */
119
+ executeAction?: (req: DisplayFormActionRequest) => Promise<DisplayFormActionResult>;
120
+ /** 表单内 image/file 字段的文件上传适配器;由宿主项目提供具体上传接口。 */
121
+ uploadFile?: (file: File) => Promise<DisplayFormAttachment>;
122
+ /** 卡片内静默执行回填(不往主聊天流追加用户消息气泡,改为在卡片内展示执行追踪与动态补全)。 */
123
+ submitReply?: (payload: DisplayFormReplyPayload) => Promise<DisplayFormReplyResult>;
124
+ }
@@ -7,29 +7,29 @@ declare const _default: DefineComponent<unknown, {}, {}, {}, {}, ComponentOption
7
7
  column: PlusColumn;
8
8
  op: string;
9
9
  }) => void;
10
+ sortChange: (payload: {
11
+ field: string;
12
+ direction?: "asc" | "desc";
13
+ }) => void;
10
14
  confirm: (payload: {
11
15
  column: PlusColumn;
12
16
  op: string;
13
17
  value?: string;
14
18
  }) => void;
15
- sortChange: (payload: {
16
- field: string;
17
- direction?: "asc" | "desc";
18
- }) => void;
19
19
  }, string, PublicProps, Readonly<unknown> & Readonly<{
20
20
  onReset?: ((payload: {
21
21
  column: PlusColumn;
22
22
  op: string;
23
23
  }) => any) | undefined;
24
+ onSortChange?: ((payload: {
25
+ field: string;
26
+ direction?: "asc" | "desc";
27
+ }) => any) | undefined;
24
28
  onConfirm?: ((payload: {
25
29
  column: PlusColumn;
26
30
  op: string;
27
31
  value?: string;
28
32
  }) => any) | undefined;
29
- onSortChange?: ((payload: {
30
- field: string;
31
- direction?: "asc" | "desc";
32
- }) => any) | undefined;
33
33
  }>, {
34
34
  filters: FilterItem[];
35
35
  operators: OperatorOption[];