@robot-admin/naive-ui-components 0.7.1 → 0.8.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.
Files changed (54) hide show
  1. package/CHANGELOG.md +76 -60
  2. package/dist/C_Form.cjs +1 -1
  3. package/dist/C_Form.d.cts +2 -2
  4. package/dist/C_Form.d.ts +2 -2
  5. package/dist/C_Form.js +1 -1
  6. package/dist/C_Form.js.map +1 -1
  7. package/dist/C_Form2.js +1 -1
  8. package/dist/C_Form2.js.map +1 -1
  9. package/dist/C_Table.js.map +1 -1
  10. package/dist/C_Table2.js +3 -3
  11. package/dist/C_Table2.js.map +1 -1
  12. package/dist/constants.d.ts +2 -2
  13. package/dist/constants2.d.ts +3 -3
  14. package/dist/constants4.d.ts +5 -5
  15. package/dist/constants5.d.ts +4 -4
  16. package/dist/index.cjs +1 -1
  17. package/dist/index.d.cts +2 -2
  18. package/dist/index.d.ts +2 -2
  19. package/dist/index.js +1 -1
  20. package/dist/index.js.map +1 -1
  21. package/dist/index.vue.d.ts +1 -1
  22. package/dist/index10.vue.d.ts +1 -1
  23. package/dist/index11.vue.d.ts +5 -5
  24. package/dist/index12.vue.d.ts +3 -3
  25. package/dist/index13.vue.d.ts +4 -4
  26. package/dist/index15.vue.d.ts +5 -5
  27. package/dist/index18.vue.d.ts +3 -3
  28. package/dist/index2.vue.d.ts +2 -2
  29. package/dist/index20.vue.d.ts +2 -2
  30. package/dist/index21.vue.d.ts +1 -1
  31. package/dist/index22.vue.d.ts +2 -2
  32. package/dist/index23.vue.d.ts +2 -2
  33. package/dist/index26.vue.d.ts +4 -4
  34. package/dist/index27.vue.d.ts +2 -2
  35. package/dist/index28.vue.d.ts +2 -2
  36. package/dist/index3.vue.d.ts +2 -2
  37. package/dist/index4.vue.d.ts +5 -5
  38. package/dist/index6.vue.d.ts +5 -5
  39. package/dist/index8.vue.d.ts +2 -2
  40. package/dist/useCalendarEvents.d.ts +1 -1
  41. package/dist/useCropperCore.d.ts +8 -8
  42. package/dist/useDraggableLayout.d.ts +10 -10
  43. package/dist/useDynamicFormState.d.ts +217 -143
  44. package/dist/useEdgeInteraction.d.ts +3 -3
  45. package/dist/useGlobalSearch.d.ts +1 -1
  46. package/dist/useInfiniteScroll.d.ts +3 -3
  47. package/dist/useModalEdit.d.ts +5 -5
  48. package/dist/useQRCode.d.ts +2 -2
  49. package/dist/useSignatureHistory.d.ts +3 -3
  50. package/dist/useSplitResize.d.ts +6 -6
  51. package/dist/useTimeSelection.d.ts +2 -2
  52. package/dist/useTreeOperations.d.ts +6 -6
  53. package/dist/useWorkflowValidation.d.ts +2 -2
  54. package/package.json +1 -1
@@ -78,8 +78,9 @@ declare const __VLS_base: vue.DefineComponent<OrgChartProps, {
78
78
  "onNode-collapse"?: ((node: OrgChartNode) => any) | undefined;
79
79
  }>, {
80
80
  direction: OrgChartDirection;
81
- lineStyle: OrgChartLineStyle;
82
81
  lineColor: string;
82
+ collapsible: boolean;
83
+ lineStyle: OrgChartLineStyle;
83
84
  lineWidth: number;
84
85
  nodeSpacing: number;
85
86
  levelSpacing: number;
@@ -88,7 +89,6 @@ declare const __VLS_base: vue.DefineComponent<OrgChartProps, {
88
89
  initialZoom: number;
89
90
  minZoom: number;
90
91
  maxZoom: number;
91
- collapsible: boolean;
92
92
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
93
93
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
94
94
  declare const _default: typeof __VLS_export;
@@ -34,8 +34,8 @@ type __VLS_Slots = {} & {
34
34
  indicator?: (props: typeof __VLS_9) => any;
35
35
  };
36
36
  declare const __VLS_base: vue.DefineComponent<Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<Props> & Readonly<{}>, {
37
- strokeWidth: number;
38
37
  time: number;
38
+ strokeWidth: number;
39
39
  status: "default" | "success" | "error" | "warning" | "info";
40
40
  percentage: number | number[];
41
41
  isAnimation: boolean;
@@ -86,10 +86,10 @@ type __VLS_Slots = {} & {
86
86
  default?: (props: typeof __VLS_1) => any;
87
87
  };
88
88
  declare const __VLS_base: vue.DefineComponent<SkeletonProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<SkeletonProps> & Readonly<{}>, {
89
- animation: SkeletonAnimation;
90
89
  repeat: number;
91
- borderRadius: string;
92
90
  loading: boolean;
91
+ animation: SkeletonAnimation;
92
+ borderRadius: string;
93
93
  preset: SkeletonPreset;
94
94
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
95
95
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -24,10 +24,10 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
24
24
  onChange?: ((args_0: number) => any) | undefined;
25
25
  "onUpdate:current"?: ((args_0: number) => any) | undefined;
26
26
  }>, {
27
- direction: "horizontal" | "vertical";
28
27
  clickable: boolean;
29
- current: number;
28
+ direction: "horizontal" | "vertical";
30
29
  connected: boolean;
30
+ current: number;
31
31
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
32
32
  declare const _default: typeof __VLS_export;
33
33
  //#endregion
@@ -84,17 +84,17 @@ declare const __VLS_base: vue.DefineComponent<TimelineProps, {
84
84
  /** 展开全部 */expandAll: () => void; /** 折叠全部 */
85
85
  collapseAll: () => void;
86
86
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
87
- "item-click": (item: TimelineItem, index: number) => any;
88
87
  expand: (item: TimelineItem, expanded: boolean) => any;
88
+ "item-click": (item: TimelineItem, index: number) => any;
89
89
  }, string, vue.PublicProps, Readonly<TimelineProps> & Readonly<{
90
- "onItem-click"?: ((item: TimelineItem, index: number) => any) | undefined;
91
90
  onExpand?: ((item: TimelineItem, expanded: boolean) => any) | undefined;
91
+ "onItem-click"?: ((item: TimelineItem, index: number) => any) | undefined;
92
92
  }>, {
93
+ size: "small" | "medium" | "large";
93
94
  reverse: boolean;
94
95
  items: TimelineItem[];
95
- size: "small" | "medium" | "large";
96
- labelPlacement: "left" | "right" | "alternate";
97
96
  mode: "vertical" | "horizontal";
97
+ labelPlacement: "left" | "right" | "alternate";
98
98
  pending: boolean;
99
99
  pendingText: string;
100
100
  lineType: "solid" | "dashed" | "dotted";
@@ -62,10 +62,10 @@ type __VLS_Props = {
62
62
  };
63
63
  declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
64
64
  "update:modelValue": (value: (string | number)[]) => any;
65
- change: (targetKeys: (string | number)[], direction: "right" | "left", moveKeys: (string | number)[]) => any;
65
+ change: (targetKeys: (string | number)[], direction: "left" | "right", moveKeys: (string | number)[]) => any;
66
66
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
67
67
  "onUpdate:modelValue"?: ((value: (string | number)[]) => any) | undefined;
68
- onChange?: ((targetKeys: (string | number)[], direction: "right" | "left", moveKeys: (string | number)[]) => any) | undefined;
68
+ onChange?: ((targetKeys: (string | number)[], direction: "left" | "right", moveKeys: (string | number)[]) => any) | undefined;
69
69
  }>, {
70
70
  size: "small" | "medium" | "large";
71
71
  filterable: boolean;
@@ -647,12 +647,12 @@ declare const __VLS_export: vue.DefineComponent<Props, {
647
647
  onTaskClick?: ((task: GanttTask, event: Event) => any) | undefined;
648
648
  onTaskChange?: ((task: GanttTask, changes: any) => any) | undefined;
649
649
  }>, {
650
- data: GanttTask[];
651
650
  height: string | number;
652
- showToolbar: boolean;
653
651
  theme: "light" | "dark";
652
+ data: GanttTask[];
654
653
  title: string;
655
654
  options: GanttOptions;
655
+ showToolbar: boolean;
656
656
  preset: GanttPreset;
657
657
  showFullscreenButton: boolean;
658
658
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -72,15 +72,15 @@ declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue
72
72
  onItemClick?: ((item: AvatarItem) => any) | undefined;
73
73
  onOverflowClick?: ((hiddenItems: AvatarItem[]) => any) | undefined;
74
74
  }>, {
75
- direction: "ltr" | "rtl";
76
75
  size: number;
77
76
  max: number;
78
77
  overlap: number;
79
- clickable: boolean;
80
78
  shape: "circle" | "square";
81
79
  showStatus: boolean;
82
80
  showTooltip: boolean;
81
+ clickable: boolean;
83
82
  overflowClickable: boolean;
83
+ direction: "ltr" | "rtl";
84
84
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
85
85
  declare const _default: typeof __VLS_export;
86
86
  //#endregion
@@ -20,17 +20,17 @@ declare const __VLS_export: vue.DefineComponent<Props, {}, {}, {}, {}, vue.Compo
20
20
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
21
21
  onError?: ((error: Error) => any) | undefined;
22
22
  }>, {
23
- width: number;
24
23
  height: number;
24
+ width: number;
25
25
  label: string;
26
- format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
27
- fontSize: number;
28
- background: string;
29
26
  showBorder: boolean;
30
27
  showLabel: boolean;
31
- lineColor: string;
28
+ format: "CODE128" | "CODE39" | "EAN13" | "EAN8" | "UPC" | "ITF14" | "MSI" | "pharmacode";
32
29
  showText: boolean;
30
+ fontSize: number;
33
31
  textPosition: "bottom" | "top";
32
+ lineColor: string;
33
+ background: string;
34
34
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
35
35
  declare const _default: typeof __VLS_export;
36
36
  //#endregion
@@ -18,24 +18,24 @@ declare const __VLS_export: vue.DefineComponent<CaptchaProps, {
18
18
  reset: () => void;
19
19
  show: () => void;
20
20
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
21
+ change: (valid: boolean) => any;
22
+ reset: () => any;
21
23
  success: (data: {
22
24
  token: string;
23
25
  timestamp: number;
24
26
  }) => any;
25
27
  fail: (error: string) => any;
26
- change: (valid: boolean) => any;
27
- reset: () => any;
28
28
  }, string, vue.PublicProps, Readonly<CaptchaProps> & Readonly<{
29
+ onChange?: ((valid: boolean) => any) | undefined;
30
+ onReset?: (() => any) | undefined;
29
31
  onSuccess?: ((data: {
30
32
  token: string;
31
33
  timestamp: number;
32
34
  }) => any) | undefined;
33
35
  onFail?: ((error: string) => any) | undefined;
34
- onChange?: ((valid: boolean) => any) | undefined;
35
- onReset?: (() => any) | undefined;
36
36
  }>, {
37
- theme: "light" | "dark";
38
37
  disabled: boolean;
38
+ theme: "light" | "dark";
39
39
  triggerText: string;
40
40
  images: string[];
41
41
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -104,14 +104,14 @@ declare const __VLS_base: vue.DefineComponent<ChatProps, {
104
104
  "onEmoji-click"?: (() => any) | undefined;
105
105
  onResend?: ((msg: ChatMessage) => any) | undefined;
106
106
  }>, {
107
- title: string;
108
107
  placeholder: string;
108
+ title: string;
109
+ messages: ChatMessage[];
109
110
  showContacts: boolean;
110
111
  showTimestamp: boolean;
111
112
  showSendBtn: boolean;
112
113
  loadingHistory: boolean;
113
114
  contacts: ChatContact[];
114
- messages: ChatMessage[];
115
115
  currentContactId: string;
116
116
  selfAvatar: string;
117
117
  selfName: string;
@@ -66,9 +66,9 @@ declare const __VLS_export: vue.DefineComponent<CalendarProps, CalendarExpose, {
66
66
  }) => any) | undefined;
67
67
  "onEvent-dropped"?: ((event: Partial<CalendarEvent>) => any) | undefined;
68
68
  }>, {
69
- events: CalendarEvent[];
70
69
  initialView: CalendarViewType;
71
70
  editable: boolean;
71
+ events: CalendarEvent[];
72
72
  showAddDialog: boolean;
73
73
  showEditDialog: boolean;
74
74
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -51,28 +51,28 @@ interface ImageCropperEmits {
51
51
  //#endregion
52
52
  //#region src/components/C_ImageCropper/index.vue.d.ts
53
53
  declare const __VLS_export: vue.DefineComponent<ImageCropperProps, ImageCropperExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
54
+ cancel: () => any;
55
+ error: (error: Event) => any;
54
56
  ready: () => any;
55
57
  crop: (result: any) => any;
56
- error: (error: Event) => any;
57
58
  confirm: (result: any) => any;
58
- cancel: () => any;
59
59
  }, string, vue.PublicProps, Readonly<ImageCropperProps> & Readonly<{
60
+ onCancel?: (() => any) | undefined;
61
+ onError?: ((error: Event) => any) | undefined;
60
62
  onReady?: (() => any) | undefined;
61
63
  onCrop?: ((result: any) => any) | undefined;
62
- onError?: ((error: Event) => any) | undefined;
63
64
  onConfirm?: ((result: any) => any) | undefined;
64
- onCancel?: (() => any) | undefined;
65
65
  }>, {
66
- height: string | number;
67
- showToolbar: boolean;
68
66
  disabled: boolean;
69
- src: string;
67
+ height: string | number;
70
68
  aspectRatio: number;
69
+ showPreview: boolean;
70
+ src: string;
71
71
  outputFormat: CropOutputFormat;
72
72
  outputQuality: number;
73
73
  maxOutputWidth: number;
74
74
  maxOutputHeight: number;
75
- showPreview: boolean;
75
+ showToolbar: boolean;
76
76
  circular: boolean;
77
77
  modal: boolean;
78
78
  modalTitle: string;
@@ -116,12 +116,20 @@ declare const __VLS_base: vue.DefineComponent<DraggableProps, {
116
116
  "onItem-remove"?: ((item: DraggableItem, index: number) => any) | undefined;
117
117
  "onList-change"?: ((list: DraggableItem[]) => any) | undefined;
118
118
  }>, {
119
- sort: boolean;
120
- disabled: boolean;
121
119
  modelValue: DraggableItem[];
120
+ disabled: boolean;
121
+ sort: boolean;
122
+ direction: "vertical" | "horizontal";
123
+ layout: LayoutMode;
124
+ itemClass: string;
122
125
  group: string | GroupOptions;
126
+ alignItems: AlignItems;
127
+ flexWrap: boolean;
128
+ justifyContent: JustifyContent;
123
129
  animation: number;
130
+ gap: string | number;
124
131
  delay: number;
132
+ emptyText: string;
125
133
  handle: string;
126
134
  showHandle: boolean;
127
135
  ghostClass: string;
@@ -129,19 +137,11 @@ declare const __VLS_base: vue.DefineComponent<DraggableProps, {
129
137
  dragClass: string;
130
138
  wrapperClass: string;
131
139
  listClass: string;
132
- itemClass: string;
133
140
  showEmptyState: boolean;
134
- emptyText: string;
135
141
  swapThreshold: number;
136
142
  invertSwap: boolean;
137
- direction: "vertical" | "horizontal";
138
- layout: LayoutMode;
139
143
  gridColumns: number;
140
144
  gridRows: number;
141
- gap: string | number;
142
- flexWrap: boolean;
143
- justifyContent: JustifyContent;
144
- alignItems: AlignItems;
145
145
  customStyles: Record<string, string | number>;
146
146
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
147
147
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;