@vunk/form 1.4.4 → 1.4.5

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 (195) hide show
  1. package/components/cascader/index.cjs +3 -3
  2. package/components/cascader/index.mjs +3 -3
  3. package/components/color-picker/index.cjs +1 -1
  4. package/components/color-picker/index.mjs +1 -1
  5. package/components/form/index.cjs +1 -1
  6. package/components/form/index.mjs +1 -1
  7. package/components/form-item-renderer/index.cjs +1 -0
  8. package/components/form-item-renderer/index.mjs +1 -0
  9. package/components/input/index.cjs +2 -6
  10. package/components/input/index.mjs +2 -6
  11. package/components/input-link/index.cjs +7 -7
  12. package/components/input-link/index.mjs +7 -7
  13. package/components/radio/index.cjs +3 -3
  14. package/components/radio/index.mjs +3 -3
  15. package/components/templates-default/index.cjs +0 -2
  16. package/components/templates-default/index.mjs +0 -2
  17. package/components/templates-layout/index.cjs +1 -1
  18. package/components/templates-layout/index.mjs +1 -1
  19. package/package.json +1 -1
  20. package/components/button/index.d.ts +0 -4
  21. package/components/button/src/ctx.d.ts +0 -96
  22. package/components/button/src/index.vue.d.ts +0 -495
  23. package/components/button/src/types.d.ts +0 -13
  24. package/components/cascader/index.d.ts +0 -6
  25. package/components/cascader/src/ctx.d.ts +0 -120
  26. package/components/cascader/src/index.vue.d.ts +0 -13955
  27. package/components/cascader/src/types.d.ts +0 -7
  28. package/components/cascader/src/use.d.ts +0 -5
  29. package/components/checkbox/index.d.ts +0 -5
  30. package/components/checkbox/src/ctx.d.ts +0 -89
  31. package/components/checkbox/src/index.vue.d.ts +0 -1099
  32. package/components/checkbox/src/types.d.ts +0 -8
  33. package/components/color-picker/index.d.ts +0 -4
  34. package/components/color-picker/src/ctx.d.ts +0 -80
  35. package/components/color-picker/src/index.vue.d.ts +0 -11135
  36. package/components/color-picker/src/types.d.ts +0 -7
  37. package/components/date-picker/index.d.ts +0 -5
  38. package/components/date-picker/src/ctx.d.ts +0 -158
  39. package/components/date-picker/src/index.vue.d.ts +0 -590
  40. package/components/date-picker/src/types.d.ts +0 -20
  41. package/components/date-picker-range/index.d.ts +0 -4
  42. package/components/date-picker-range/src/ctx.d.ts +0 -177
  43. package/components/date-picker-range/src/index.vue.d.ts +0 -410
  44. package/components/date-picker-range/src/types.d.ts +0 -12
  45. package/components/download-plus/index.d.ts +0 -4
  46. package/components/download-plus/src/api.d.ts +0 -13
  47. package/components/download-plus/src/const.d.ts +0 -9
  48. package/components/download-plus/src/ctx.d.ts +0 -84
  49. package/components/download-plus/src/index.vue.d.ts +0 -1020
  50. package/components/download-plus/src/types.d.ts +0 -17
  51. package/components/esri-input-geojson/index.d.ts +0 -6
  52. package/components/esri-input-geojson/src/append.vue.d.ts +0 -2259
  53. package/components/esri-input-geojson/src/const.d.ts +0 -12
  54. package/components/esri-input-geojson/src/ctx.d.ts +0 -223
  55. package/components/esri-input-geojson/src/default-view.vue.d.ts +0 -133
  56. package/components/esri-input-geojson/src/index.vue.d.ts +0 -1249
  57. package/components/esri-input-geojson/src/types.d.ts +0 -22
  58. package/components/esri-input-geojson/src/viewer.vue.d.ts +0 -427
  59. package/components/form/index.d.ts +0 -5
  60. package/components/form/src/ctx.d.ts +0 -84
  61. package/components/form/src/index.vue.d.ts +0 -789
  62. package/components/form/src/types.d.ts +0 -12
  63. package/components/form/src/utils.d.ts +0 -15
  64. package/components/form-item/index.d.ts +0 -5
  65. package/components/form-item/src/ctx.d.ts +0 -62
  66. package/components/form-item/src/index.vue.d.ts +0 -320
  67. package/components/form-item/src/types.d.ts +0 -6
  68. package/components/form-item-renderer/index.d.ts +0 -5
  69. package/components/form-item-renderer/src/ctx.d.ts +0 -16
  70. package/components/form-item-renderer/src/index.vue.d.ts +0 -38
  71. package/components/form-item-renderer/src/symbols.d.ts +0 -3
  72. package/components/form-item-renderer/src/types.d.ts +0 -7
  73. package/components/form-item-renderer-template/index.d.ts +0 -4
  74. package/components/form-item-renderer-template/src/ctx.d.ts +0 -7
  75. package/components/form-item-renderer-template/src/index.vue.d.ts +0 -16
  76. package/components/form-item-renderer-template/src/types.d.ts +0 -1
  77. package/components/geoinput/index.d.ts +0 -4
  78. package/components/geoinput/src/ctx.d.ts +0 -228
  79. package/components/geoinput/src/index.vue.d.ts +0 -519
  80. package/components/geoinput/src/types.d.ts +0 -12
  81. package/components/geoinput-read/index.d.ts +0 -5
  82. package/components/geoinput-read/src/append.vue.d.ts +0 -383
  83. package/components/geoinput-read/src/core.vue.d.ts +0 -644
  84. package/components/geoinput-read/src/ctx.d.ts +0 -199
  85. package/components/geoinput-read/src/index.vue.d.ts +0 -1169
  86. package/components/geoinput-read/src/types.d.ts +0 -3
  87. package/components/geoinput-update/index.d.ts +0 -5
  88. package/components/geoinput-update/src/append.vue.d.ts +0 -2246
  89. package/components/geoinput-update/src/ctx.d.ts +0 -207
  90. package/components/geoinput-update/src/index.vue.d.ts +0 -1302
  91. package/components/geoinput-update/src/types.d.ts +0 -6
  92. package/components/input/index.d.ts +0 -5
  93. package/components/input/src/ctx.d.ts +0 -148
  94. package/components/input/src/index.vue.d.ts +0 -809
  95. package/components/input/src/types.d.ts +0 -13
  96. package/components/input-collection/index.d.ts +0 -4
  97. package/components/input-collection/src/ctx.d.ts +0 -72
  98. package/components/input-collection/src/index.vue.d.ts +0 -1160
  99. package/components/input-collection/src/types.d.ts +0 -19
  100. package/components/input-link/index.d.ts +0 -4
  101. package/components/input-link/src/ctx.d.ts +0 -179
  102. package/components/input-link/src/index.vue.d.ts +0 -385
  103. package/components/input-link/src/types.d.ts +0 -7
  104. package/components/input-number/index.d.ts +0 -4
  105. package/components/input-number/src/ctx.d.ts +0 -90
  106. package/components/input-number/src/index.vue.d.ts +0 -1783
  107. package/components/input-number/src/types.d.ts +0 -8
  108. package/components/monaco-editor/index.d.ts +0 -4
  109. package/components/monaco-editor/src/ctx.d.ts +0 -70
  110. package/components/monaco-editor/src/index.vue.d.ts +0 -209
  111. package/components/monaco-editor/src/types.d.ts +0 -7
  112. package/components/radio/index.d.ts +0 -4
  113. package/components/radio/src/ctx.d.ts +0 -82
  114. package/components/radio/src/index.vue.d.ts +0 -629
  115. package/components/radio/src/types.d.ts +0 -8
  116. package/components/select/index.d.ts +0 -4
  117. package/components/select/src/ctx.d.ts +0 -156
  118. package/components/select/src/index.vue.d.ts +0 -13405
  119. package/components/select/src/types.d.ts +0 -11
  120. package/components/slider/index.d.ts +0 -4
  121. package/components/slider/src/ctx.d.ts +0 -127
  122. package/components/slider/src/index.vue.d.ts +0 -341
  123. package/components/slider/src/types.d.ts +0 -7
  124. package/components/switch/index.d.ts +0 -4
  125. package/components/switch/src/ctx.d.ts +0 -114
  126. package/components/switch/src/index.vue.d.ts +0 -584
  127. package/components/switch/src/types.d.ts +0 -8
  128. package/components/template-instances-provider/index.d.ts +0 -3
  129. package/components/template-instances-provider/src/index.vue.d.ts +0 -4
  130. package/components/templates-default/index.d.ts +0 -4
  131. package/components/templates-default/src/ctx.d.ts +0 -19
  132. package/components/templates-default/src/index.vue.d.ts +0 -198
  133. package/components/templates-default/src/types.d.ts +0 -53
  134. package/components/templates-element-plus/index.d.ts +0 -4
  135. package/components/templates-element-plus/src/ctx.d.ts +0 -9
  136. package/components/templates-element-plus/src/index.vue.d.ts +0 -206
  137. package/components/templates-element-plus/src/types.d.ts +0 -13
  138. package/components/templates-esri/index.d.ts +0 -4
  139. package/components/templates-esri/src/ctx.d.ts +0 -11
  140. package/components/templates-esri/src/index.vue.d.ts +0 -43
  141. package/components/templates-esri/src/types.d.ts +0 -2
  142. package/components/templates-layout/index.d.ts +0 -4
  143. package/components/templates-layout/src/ctx.d.ts +0 -9
  144. package/components/templates-layout/src/index.vue.d.ts +0 -161
  145. package/components/templates-layout/src/types.d.ts +0 -32
  146. package/components/templates-mapbox/index.d.ts +0 -4
  147. package/components/templates-mapbox/src/ctx.d.ts +0 -11
  148. package/components/templates-mapbox/src/index.vue.d.ts +0 -43
  149. package/components/templates-mapbox/src/types.d.ts +0 -3
  150. package/components/templates-variant/index.d.ts +0 -4
  151. package/components/templates-variant/src/ctx.d.ts +0 -11
  152. package/components/templates-variant/src/index.vue.d.ts +0 -43
  153. package/components/templates-variant/src/types.d.ts +0 -2
  154. package/components/upload/index.d.ts +0 -5
  155. package/components/upload/src/ctx.d.ts +0 -180
  156. package/components/upload/src/file.vue.d.ts +0 -363
  157. package/components/upload/src/index.vue.d.ts +0 -2784
  158. package/components/upload/src/types.d.ts +0 -7
  159. package/components/upload-plus/index.d.ts +0 -6
  160. package/components/upload-plus/src/api.d.ts +0 -38
  161. package/components/upload-plus/src/const.d.ts +0 -9
  162. package/components/upload-plus/src/ctx.d.ts +0 -103
  163. package/components/upload-plus/src/index.vue.d.ts +0 -1077
  164. package/components/upload-plus/src/types.d.ts +0 -32
  165. package/components/van-cascader/index.d.ts +0 -4
  166. package/components/van-cascader/src/ctx.d.ts +0 -118
  167. package/components/van-cascader/src/index.vue.d.ts +0 -13312
  168. package/components/van-cascader/src/types.d.ts +0 -1
  169. package/components/var-datetime-picker/index.d.ts +0 -4
  170. package/components/var-datetime-picker/src/const.d.ts +0 -10
  171. package/components/var-datetime-picker/src/ctx.d.ts +0 -67
  172. package/components/var-datetime-picker/src/index.vue.d.ts +0 -771
  173. package/components/var-datetime-picker/src/types.d.ts +0 -22
  174. package/components/vditor/index.d.ts +0 -4
  175. package/components/vditor/src/ctx.d.ts +0 -77
  176. package/components/vditor/src/index.vue.d.ts +0 -324
  177. package/components/vditor/src/types.d.ts +0 -7
  178. package/shared/const/index.d.ts +0 -4
  179. package/shared/element-plus/ctx.d.ts +0 -26
  180. package/shared/element-plus/index.d.ts +0 -3
  181. package/shared/element-plus/instances.d.ts +0 -195
  182. package/shared/element-plus/version.d.ts +0 -1
  183. package/shared/form/index.d.ts +0 -18
  184. package/shared/helper/index.d.ts +0 -4
  185. package/shared/index.d.ts +0 -2
  186. package/shared/infer-prop/index.d.ts +0 -17
  187. package/shared/progress-it/index.d.ts +0 -16
  188. package/shared/rules/index.d.ts +0 -35
  189. package/shared/types/form/checkbox.d.ts +0 -13
  190. package/shared/types/form/index.d.ts +0 -2
  191. package/shared/types/form/radio.d.ts +0 -8
  192. package/shared/types/index.d.ts +0 -2
  193. package/shared/types/source/index.d.ts +0 -21
  194. package/shared/types/source-manager/index.d.ts +0 -6
  195. package/shared/upload/index.d.ts +0 -7
@@ -1,195 +0,0 @@
1
- import { ComponentSize, DatePickType } from 'element-plus';
2
- import { PropType, Component } from 'vue';
3
- export declare const datePickerProps: {
4
- type: {
5
- type: PropType<DatePickType>;
6
- default: string;
7
- };
8
- ariaLabel: StringConstructor;
9
- emptyValues: ArrayConstructor;
10
- valueOnClear: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor, BooleanConstructor, FunctionConstructor], unknown, unknown, undefined, boolean>;
11
- disabledDate: {
12
- readonly type: import("vue").PropType<Function>;
13
- readonly required: false;
14
- readonly validator: ((val: unknown) => boolean) | undefined;
15
- __epPropKey: true;
16
- };
17
- cellClassName: {
18
- readonly type: import("vue").PropType<Function>;
19
- readonly required: false;
20
- readonly validator: ((val: unknown) => boolean) | undefined;
21
- __epPropKey: true;
22
- };
23
- shortcuts: import("element-plus/es/utils").EpPropFinalized<ArrayConstructor, unknown, unknown, () => never[], boolean>;
24
- arrowControl: BooleanConstructor;
25
- label: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
26
- tabindex: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown, 0, boolean>;
27
- validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
28
- unlinkPanels: BooleanConstructor;
29
- disabledHours: {
30
- readonly type: import("vue").PropType<import("element-plus/es/components/time-picker/src/props/shared").GetDisabledHours>;
31
- readonly required: false;
32
- readonly validator: ((val: unknown) => boolean) | undefined;
33
- __epPropKey: true;
34
- };
35
- disabledMinutes: {
36
- readonly type: import("vue").PropType<import("element-plus/es/components/time-picker/src/props/shared").GetDisabledMinutes>;
37
- readonly required: false;
38
- readonly validator: ((val: unknown) => boolean) | undefined;
39
- __epPropKey: true;
40
- };
41
- disabledSeconds: {
42
- readonly type: import("vue").PropType<import("element-plus/es/components/time-picker/src/props/shared").GetDisabledSeconds>;
43
- readonly required: false;
44
- readonly validator: ((val: unknown) => boolean) | undefined;
45
- __epPropKey: true;
46
- };
47
- id: {
48
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").SingleOrRange<string> & {}) | (() => import("element-plus").SingleOrRange<string>) | ((new (...args: any[]) => import("element-plus").SingleOrRange<string> & {}) | (() => import("element-plus").SingleOrRange<string>))[], unknown, unknown>>;
49
- readonly required: false;
50
- readonly validator: ((val: unknown) => boolean) | undefined;
51
- __epPropKey: true;
52
- };
53
- name: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").SingleOrRange<string> & {}) | (() => import("element-plus").SingleOrRange<string>) | ((new (...args: any[]) => import("element-plus").SingleOrRange<string> & {}) | (() => import("element-plus").SingleOrRange<string>))[], unknown, unknown, "", boolean>;
54
- popperClass: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
55
- format: StringConstructor;
56
- valueFormat: StringConstructor;
57
- dateFormat: StringConstructor;
58
- timeFormat: StringConstructor;
59
- clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
60
- clearIcon: {
61
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>>;
62
- readonly required: false;
63
- readonly validator: ((val: unknown) => boolean) | undefined;
64
- __epPropKey: true;
65
- };
66
- editable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
67
- prefixIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, "", boolean>;
68
- size: {
69
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
70
- readonly required: false;
71
- readonly validator: ((val: unknown) => boolean) | undefined;
72
- __epPropKey: true;
73
- };
74
- readonly: BooleanConstructor;
75
- disabled: BooleanConstructor;
76
- placeholder: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
77
- popperOptions: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("element-plus").Options>) | (() => Partial<import("element-plus").Options>) | ((new (...args: any[]) => Partial<import("element-plus").Options>) | (() => Partial<import("element-plus").Options>))[], unknown, unknown, () => {}, boolean>;
78
- modelValue: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").ModelValueType & {}) | (() => import("element-plus").ModelValueType) | ((new (...args: any[]) => import("element-plus").ModelValueType & {}) | (() => import("element-plus").ModelValueType))[], unknown, unknown, "", boolean>;
79
- rangeSeparator: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "-", boolean>;
80
- startPlaceholder: StringConstructor;
81
- endPlaceholder: StringConstructor;
82
- defaultValue: {
83
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>))[], unknown, unknown>>;
84
- readonly required: false;
85
- readonly validator: ((val: unknown) => boolean) | undefined;
86
- __epPropKey: true;
87
- };
88
- defaultTime: {
89
- readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>))[], unknown, unknown>>;
90
- readonly required: false;
91
- readonly validator: ((val: unknown) => boolean) | undefined;
92
- __epPropKey: true;
93
- };
94
- isRange: BooleanConstructor;
95
- };
96
- export declare const datePickerEmits: {
97
- 'update:modelValue': any;
98
- change: any;
99
- focus: any;
100
- blur: any;
101
- 'calendar-change': any;
102
- 'panel-change': any;
103
- 'visible-change': any;
104
- keydown: any;
105
- };
106
- export declare const selectProps: {
107
- name: StringConstructor;
108
- id: StringConstructor;
109
- modelValue: {
110
- type: (ObjectConstructor | BooleanConstructor | StringConstructor | NumberConstructor | ArrayConstructor)[];
111
- default: any;
112
- };
113
- autocomplete: {
114
- type: StringConstructor;
115
- default: string;
116
- };
117
- automaticDropdown: BooleanConstructor;
118
- size: {
119
- type: PropType<ComponentSize>;
120
- };
121
- effect: {
122
- type: PropType<"light" | "dark" | string>;
123
- default: string;
124
- };
125
- disabled: BooleanConstructor;
126
- clearable: BooleanConstructor;
127
- filterable: BooleanConstructor;
128
- allowCreate: BooleanConstructor;
129
- loading: BooleanConstructor;
130
- popperClass: {
131
- type: StringConstructor;
132
- default: string;
133
- };
134
- remote: BooleanConstructor;
135
- loadingText: StringConstructor;
136
- noMatchText: StringConstructor;
137
- noDataText: StringConstructor;
138
- remoteMethod: FunctionConstructor;
139
- filterMethod: FunctionConstructor;
140
- multiple: BooleanConstructor;
141
- multipleLimit: {
142
- type: NumberConstructor;
143
- default: number;
144
- };
145
- placeholder: {
146
- type: StringConstructor;
147
- };
148
- defaultFirstOption: BooleanConstructor;
149
- reserveKeyword: {
150
- type: BooleanConstructor;
151
- default: boolean;
152
- };
153
- valueKey: {
154
- type: StringConstructor;
155
- default: string;
156
- };
157
- collapseTags: BooleanConstructor;
158
- collapseTagsTooltip: {
159
- type: BooleanConstructor;
160
- default: boolean;
161
- };
162
- teleported: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
163
- persistent: {
164
- type: BooleanConstructor;
165
- default: boolean;
166
- };
167
- clearIcon: {
168
- type: PropType<string | Component>;
169
- default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
170
- };
171
- fitInputWidth: {
172
- type: BooleanConstructor;
173
- default: boolean;
174
- };
175
- suffixIcon: {
176
- type: PropType<string | Component>;
177
- default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
178
- };
179
- tagType: {
180
- default: string;
181
- type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "success" | "warning" | "info" | "primary" | "danger", unknown>>;
182
- required: false;
183
- validator: ((val: unknown) => boolean) | undefined;
184
- __epPropKey: true;
185
- };
186
- };
187
- export declare const selectEmits: {
188
- 'update:modelValue': any;
189
- change: any;
190
- 'remove-tag': any;
191
- clear: any;
192
- 'visible-change': any;
193
- focus: any;
194
- blur: any;
195
- };
@@ -1 +0,0 @@
1
- export declare const isGte2_6_0: boolean;
@@ -1,18 +0,0 @@
1
- import { Func, NormalObject } from '@vunk/core';
2
- /**
3
- * 表单验证失败, 处理方式
4
- * 消息提示
5
- * @param err Record<string, {message: string}[]>
6
- */
7
- export declare const validateCatch: (err: any, init?: {
8
- prefix?: string;
9
- suffix?: string;
10
- }) => void;
11
- /**
12
- * 根据 templateIf 生成 显隐函数
13
- * @param templateIfRaw
14
- * @returns
15
- */
16
- export declare const genTemplateIfFunc: Func<[
17
- any
18
- ], (e?: NormalObject) => boolean>;
@@ -1,4 +0,0 @@
1
- export {};
2
- export declare const createDefaultSlots: <T>(o: T | T[]) => {
3
- default: T[];
4
- };
package/shared/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from './types';
2
- export * from './const';
@@ -1,17 +0,0 @@
1
- import { __VkfTemplatesDefault } from '@vunk/form/components/templates-default';
2
- export interface PropInfo {
3
- prop: string;
4
- type: string;
5
- precision?: number;
6
- }
7
- export type InferPropInfo = (item: __VkfTemplatesDefault.CoreSource) => Partial<PropInfo>;
8
- export declare const propInfoAction: {
9
- VkfSelect: InferPropInfo;
10
- VkfRadio: InferPropInfo;
11
- VkfCheckbox: InferPropInfo;
12
- VkfColorPicker: InferPropInfo;
13
- VkfInputNumber: InferPropInfo;
14
- VkfSwitch: InferPropInfo;
15
- VkfUpload: InferPropInfo;
16
- VkfDatePicker: InferPropInfo;
17
- };
@@ -1,16 +0,0 @@
1
- /**
2
- * ref: https://github1s.com/Envov/progress-it/blob/master/src/index.ts#L1-L61
3
- *
4
- */
5
- export type Effect = (percent: number, state: boolean | 'fail') => void;
6
- export type Setter = (newState: boolean | 'fail') => Setter;
7
- type progress = (effect: Effect, option?: Partial<IProgressPotions>) => (initState: boolean) => (newState: boolean | 'fail') => Setter;
8
- type IProgressPotions = {
9
- percent: number;
10
- interval: number;
11
- speed: number;
12
- timeLine: number;
13
- timer: number | undefined;
14
- };
15
- declare const progress: progress;
16
- export default progress;
@@ -1,35 +0,0 @@
1
- export declare const PATTERN: {
2
- /**
3
- * 由数字、26个英文字母或者下划线以及中文组成的字符串
4
- */
5
- normal: RegExp;
6
- /**
7
- * 只能由 中文 和 英文 组成
8
- */
9
- normalName: RegExp;
10
- /**
11
- * 只能由数字、字母、下划线组成, 且不能以下划线和数字开头
12
- */
13
- code: RegExp;
14
- /**
15
- * 只能由数字或字母组成, 且不能以数字开头
16
- */
17
- strictCode: RegExp;
18
- /**
19
- * 只能由字母、数字或特殊字符组成,且长度在8到16之间
20
- */
21
- password: RegExp;
22
- /**
23
- * 要求密码必须同时包含至少一个小写字母、大写字母和数字,且长度在8到16之间。
24
- */
25
- strictPassword: RegExp;
26
- /**
27
- * 正确的手机号码
28
- */
29
- phone: RegExp;
30
- };
31
- export declare const PATTERN_OPTIONS: {
32
- label: string;
33
- value: RegExp;
34
- title: string;
35
- }[];
@@ -1,13 +0,0 @@
1
- export interface CheckboxProps {
2
- value?: string | number | boolean;
3
- label?: string;
4
- 'trueLabel'?: string | number;
5
- 'falseLabel'?: string | number;
6
- disabled?: boolean;
7
- border?: boolean;
8
- size?: '' | 'default' | 'small' | 'large';
9
- name?: string;
10
- checked?: boolean;
11
- indeterminate?: boolean;
12
- validateEvent?: boolean;
13
- }
@@ -1,2 +0,0 @@
1
- export * from './radio';
2
- export * from './checkbox';
@@ -1,8 +0,0 @@
1
- export interface RadioProps {
2
- border?: boolean;
3
- name?: string;
4
- size?: '' | 'default' | 'small' | 'large';
5
- disabled?: boolean;
6
- value?: string | number | boolean;
7
- label?: string;
8
- }
@@ -1,2 +0,0 @@
1
- export * from './source';
2
- export * from './source-manager';
@@ -1,21 +0,0 @@
1
- import { __VkfTemplatesDefault } from '@vunk/form/components/templates-default';
2
- import { __VkfTemplatesLayout } from '@vunk/form/components/templates-layout';
3
- import { __VkfTemplatesElementPlus } from '@vunk/form/components/templates-element-plus';
4
- import { __VkfTemplatesMapbox } from '@vunk/form/components/templates-mapbox';
5
- import { __VkfTemplatesEsri } from '@vunk/form/components/templates-esri';
6
- import { NormalObject } from '@vunk/core';
7
- import { __VkfTemplatesVariant } from '@vunk/form/components/templates-variant';
8
- export interface BasicSource {
9
- templateIf?: ((data?: NormalObject) => boolean) | string | boolean;
10
- templateType?: string;
11
- class?: any;
12
- prop?: any;
13
- }
14
- /**
15
- * @deprecated use __VkfTemplatesDefault.Source<P>
16
- * ```ts
17
- * import { __VkfTemplatesDefault } from '@vunk/form/components/templates-default'
18
- * ```
19
- */
20
- export type FormItemRendererSource<P extends string = string> = __VkfTemplatesDefault.Source<P>;
21
- export type AllTemplatesSource<P extends string = string> = __VkfTemplatesDefault.Source<P> | __VkfTemplatesMapbox.Source<P> | __VkfTemplatesEsri.Source<P> | __VkfTemplatesLayout.ElRowSource<AllTemplatesSource<P>> | __VkfTemplatesLayout.ElColSource<AllTemplatesSource<P>> | __VkfTemplatesLayout.VkfFlexSource<AllTemplatesSource<P>> | __VkfTemplatesElementPlus.Source | __VkfTemplatesVariant.Source<P>;
@@ -1,6 +0,0 @@
1
- export interface ManagerInfo<I> {
2
- source: I;
3
- key: (string | number)[];
4
- nextKey: (string | number)[];
5
- prop: string;
6
- }
@@ -1,7 +0,0 @@
1
- export declare function createFileChunk(file: File, size: number): Blob[];
2
- /**
3
- * 文件抽样算hash
4
- * @param file
5
- * @returns
6
- */
7
- export declare function calculateFileHashSample(file: File): Promise<string>;