@robot-admin/naive-ui-components 0.3.0 → 0.3.2

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 (48) hide show
  1. package/dist/C_Form.cjs +1 -0
  2. package/dist/C_Form.js +1 -0
  3. package/dist/C_Form2.js +22 -25
  4. package/dist/C_Form2.js.map +1 -1
  5. package/dist/C_Table.cjs +1 -0
  6. package/dist/C_Table.js +1 -0
  7. package/dist/constants.d.ts +1 -1
  8. package/dist/constants2.d.ts +3 -3
  9. package/dist/constants3.d.ts +3 -3
  10. package/dist/constants4.d.ts +6 -6
  11. package/dist/data.d.ts +1 -1
  12. package/dist/index.cjs +1 -1
  13. package/dist/index.js +1 -1
  14. package/dist/index.js.map +1 -1
  15. package/dist/index10.vue.d.ts +5 -5
  16. package/dist/index12.vue.d.ts +2 -2
  17. package/dist/index13.vue.d.ts +1 -1
  18. package/dist/index16.vue.d.ts +4 -4
  19. package/dist/index16.vue.d.ts.map +1 -1
  20. package/dist/index2.vue.d.ts +3 -3
  21. package/dist/index3.vue.d.ts +4 -4
  22. package/dist/index6.vue.d.ts +3 -3
  23. package/dist/index7.vue.d.ts +1 -1
  24. package/dist/index8.vue.d.ts +3 -3
  25. package/dist/resolver.cjs +88 -0
  26. package/dist/resolver.d.cts +48 -0
  27. package/dist/resolver.d.cts.map +1 -0
  28. package/dist/resolver.d.ts +48 -0
  29. package/dist/resolver.d.ts.map +1 -0
  30. package/dist/resolver.js +86 -0
  31. package/dist/resolver.js.map +1 -0
  32. package/dist/useCropperCore.d.ts +3 -3
  33. package/dist/useDraggableLayout.d.ts +4 -4
  34. package/dist/useDynamicFormState.d.ts +118 -118
  35. package/dist/useDynamicFormState.d.ts.map +1 -1
  36. package/dist/useEdgeInteraction.d.ts +1 -1
  37. package/dist/useFullscreen.d.ts +2 -2
  38. package/dist/useInfiniteScroll.d.ts +1 -1
  39. package/dist/useModalEdit.d.ts +1 -1
  40. package/dist/useModalEdit.d.ts.map +1 -1
  41. package/dist/useQRCode.d.ts +3 -3
  42. package/dist/useSignatureHistory.d.ts +3 -3
  43. package/dist/useSplitResize.d.ts +1 -1
  44. package/dist/useSplitResize.d.ts.map +1 -1
  45. package/dist/useTimeSelection.d.ts +1 -1
  46. package/dist/useTreeOperations.d.ts +4 -4
  47. package/dist/useWorkflowValidation.d.ts +3 -3
  48. package/package.json +6 -1
@@ -0,0 +1,86 @@
1
+ //#region src/resolver.ts
2
+ /**
3
+ * @robot-admin/naive-ui-components Resolver
4
+ * 用于 unplugin-vue-components 的自动导入解析器
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * // vite.config.ts
9
+ * import Components from 'unplugin-vue-components/vite'
10
+ * import { RobotNaiveUiResolver } from '@robot-admin/naive-ui-components/resolver'
11
+ *
12
+ * export default defineConfig({
13
+ * plugins: [
14
+ * Components({
15
+ * resolvers: [RobotNaiveUiResolver()]
16
+ * })
17
+ * ]
18
+ * })
19
+ * ```
20
+ */
21
+ const PKG_NAME = "@robot-admin/naive-ui-components";
22
+ /** 组件库包含的所有组件名称 */
23
+ const componentNames = [
24
+ "C_ActionBar",
25
+ "C_AntV",
26
+ "C_Barcode",
27
+ "C_Captcha",
28
+ "C_Cascade",
29
+ "C_City",
30
+ "C_Code",
31
+ "C_CollapsePanel",
32
+ "C_Cron",
33
+ "C_Date",
34
+ "C_Draggable",
35
+ "C_Editor",
36
+ "C_FilePreview",
37
+ "C_Form",
38
+ "C_FormSearch",
39
+ "C_FormulaEditor",
40
+ "C_FullCalendar",
41
+ "C_Guide",
42
+ "C_Icon",
43
+ "C_ImageCropper",
44
+ "C_Language",
45
+ "C_Map",
46
+ "C_Markdown",
47
+ "C_NotificationCenter",
48
+ "C_Progress",
49
+ "C_QRCode",
50
+ "C_Signature",
51
+ "C_SplitPane",
52
+ "C_Steps",
53
+ "C_Table",
54
+ "C_Theme",
55
+ "C_Time",
56
+ "C_Tree",
57
+ "C_Upload",
58
+ "C_VideoPlayer",
59
+ "C_VtableGantt",
60
+ "C_WaterFall",
61
+ "C_WorkFlow"
62
+ ];
63
+ /** 组件名称集合(快速查找) */
64
+ const componentSet = new Set(componentNames);
65
+ /**
66
+ * @robot-admin/naive-ui-components 组件自动导入解析器
67
+ *
68
+ * 匹配组件库中所有 C_ 前缀的组件,自动解析导入路径。
69
+ * 类似于 NaiveUiResolver、ElementPlusResolver 等成熟解析器的设计。
70
+ */
71
+ function RobotNaiveUiResolver(options = {}) {
72
+ const { importOnDemand = false } = options;
73
+ return {
74
+ type: "component",
75
+ resolve: (name) => {
76
+ if (componentSet.has(name)) return {
77
+ name,
78
+ from: importOnDemand ? `${PKG_NAME}/${name}` : PKG_NAME
79
+ };
80
+ }
81
+ };
82
+ }
83
+
84
+ //#endregion
85
+ export { RobotNaiveUiResolver, componentNames };
86
+ //# sourceMappingURL=resolver.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolver.js","names":[],"sources":["../src/resolver.ts"],"sourcesContent":["/**\n * @robot-admin/naive-ui-components Resolver\n * 用于 unplugin-vue-components 的自动导入解析器\n *\n * @example\n * ```ts\n * // vite.config.ts\n * import Components from 'unplugin-vue-components/vite'\n * import { RobotNaiveUiResolver } from '@robot-admin/naive-ui-components/resolver'\n *\n * export default defineConfig({\n * plugins: [\n * Components({\n * resolvers: [RobotNaiveUiResolver()]\n * })\n * ]\n * })\n * ```\n */\n\nconst PKG_NAME = '@robot-admin/naive-ui-components'\n\n/** 组件库包含的所有组件名称 */\nexport const componentNames = [\n 'C_ActionBar',\n 'C_AntV',\n 'C_Barcode',\n 'C_Captcha',\n 'C_Cascade',\n 'C_City',\n 'C_Code',\n 'C_CollapsePanel',\n 'C_Cron',\n 'C_Date',\n 'C_Draggable',\n 'C_Editor',\n 'C_FilePreview',\n 'C_Form',\n 'C_FormSearch',\n 'C_FormulaEditor',\n 'C_FullCalendar',\n 'C_Guide',\n 'C_Icon',\n 'C_ImageCropper',\n 'C_Language',\n 'C_Map',\n 'C_Markdown',\n 'C_NotificationCenter',\n 'C_Progress',\n 'C_QRCode',\n 'C_Signature',\n 'C_SplitPane',\n 'C_Steps',\n 'C_Table',\n 'C_Theme',\n 'C_Time',\n 'C_Tree',\n 'C_Upload',\n 'C_VideoPlayer',\n 'C_VtableGantt',\n 'C_WaterFall',\n 'C_WorkFlow',\n] as const\n\n/** 组件名称类型 */\nexport type ComponentName = (typeof componentNames)[number]\n\n/** 组件名称集合(快速查找) */\nconst componentSet = new Set<string>(componentNames)\n\nexport interface RobotNaiveUiResolverOptions {\n /**\n * 按需导入:从子路径解析单个组件,减少打包体积\n * - false (默认): `import { C_Form } from '@robot-admin/naive-ui-components'`\n * - true: `import { C_Form } from '@robot-admin/naive-ui-components/C_Form'`\n */\n importOnDemand?: boolean\n}\n\n/**\n * @robot-admin/naive-ui-components 组件自动导入解析器\n *\n * 匹配组件库中所有 C_ 前缀的组件,自动解析导入路径。\n * 类似于 NaiveUiResolver、ElementPlusResolver 等成熟解析器的设计。\n */\nexport function RobotNaiveUiResolver(\n options: RobotNaiveUiResolverOptions = {}\n) {\n const { importOnDemand = false } = options\n\n return {\n type: 'component' as const,\n resolve: (name: string) => {\n if (componentSet.has(name)) {\n return {\n name,\n from: importOnDemand ? `${PKG_NAME}/${name}` : PKG_NAME,\n }\n }\n },\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAoBA,MAAM,WAAW;;AAGjB,MAAa,iBAAiB;CAC5B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;;AAMD,MAAM,eAAe,IAAI,IAAY,eAAe;;;;;;;AAiBpD,SAAgB,qBACd,UAAuC,EAAE,EACzC;CACA,MAAM,EAAE,iBAAiB,UAAU;AAEnC,QAAO;EACL,MAAM;EACN,UAAU,SAAiB;AACzB,OAAI,aAAa,IAAI,KAAK,CACxB,QAAO;IACL;IACA,MAAM,iBAAiB,GAAG,SAAS,GAAG,SAAS;IAChD;;EAGN"}
@@ -63,16 +63,16 @@ declare const __VLS_export: vue.DefineComponent<ImageCropperProps, ImageCropperE
63
63
  onCrop?: ((result: any) => any) | undefined;
64
64
  onConfirm?: ((result: any) => any) | undefined;
65
65
  }>, {
66
- height: string | number;
67
- aspectRatio: number;
68
66
  disabled: boolean;
67
+ height: string | number;
69
68
  showToolbar: boolean;
69
+ aspectRatio: number;
70
+ showPreview: boolean;
70
71
  src: string;
71
72
  outputFormat: CropOutputFormat;
72
73
  outputQuality: number;
73
74
  maxOutputWidth: number;
74
75
  maxOutputHeight: number;
75
- showPreview: boolean;
76
76
  circular: boolean;
77
77
  modal: boolean;
78
78
  modalTitle: string;
@@ -116,19 +116,19 @@ 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
- direction: "vertical" | "horizontal";
121
119
  modelValue: DraggableItem[];
120
+ sort: boolean;
122
121
  disabled: boolean;
122
+ delay: number;
123
123
  layout: LayoutMode;
124
+ itemClass: string;
124
125
  group: string | GroupOptions;
125
126
  alignItems: AlignItems;
127
+ direction: "vertical" | "horizontal";
126
128
  flexWrap: boolean;
127
129
  justifyContent: JustifyContent;
128
130
  animation: number;
129
131
  gap: string | number;
130
- itemClass: string;
131
- delay: number;
132
132
  handle: string;
133
133
  showHandle: boolean;
134
134
  ghostClass: string;
@@ -1296,8 +1296,66 @@ declare const useDynamicFormState: () => {
1296
1296
  readonly rules?: readonly {
1297
1297
  readonly type?: RuleType | undefined;
1298
1298
  readonly required?: boolean | undefined;
1299
- readonly asyncValidator?: naive_ui_es_form_src_interface0.FormItemRuleAsyncValidator | undefined;
1299
+ readonly options?: {
1300
+ readonly suppressWarning?: boolean | undefined;
1301
+ readonly suppressValidatorError?: boolean | undefined;
1302
+ readonly first?: boolean | undefined;
1303
+ readonly firstFields?: boolean | readonly string[] | undefined;
1304
+ readonly messages?: {
1305
+ readonly default?: (string | ((...args: unknown[]) => string)) | undefined;
1306
+ readonly required?: (string | ((args_0: string | undefined) => string)) | undefined;
1307
+ readonly enum?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1308
+ readonly whitespace?: (string | ((args_0: string | undefined) => string)) | undefined;
1309
+ readonly date?: {
1310
+ readonly format?: (string | ((...args: unknown[]) => string)) | undefined;
1311
+ readonly parse?: (string | ((...args: unknown[]) => string)) | undefined;
1312
+ readonly invalid?: (string | ((...args: unknown[]) => string)) | undefined;
1313
+ } | undefined;
1314
+ readonly types?: {
1315
+ readonly string?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1316
+ readonly method?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1317
+ readonly array?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1318
+ readonly object?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1319
+ readonly number?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1320
+ readonly date?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1321
+ readonly boolean?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1322
+ readonly integer?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1323
+ readonly float?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1324
+ readonly regexp?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1325
+ readonly email?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1326
+ readonly url?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1327
+ readonly hex?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1328
+ } | undefined;
1329
+ readonly string?: {
1330
+ readonly len?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
1331
+ readonly min?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
1332
+ readonly max?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
1333
+ readonly range?: (string | ((args_0: string | undefined, args_1: number | undefined, args_2: number | undefined) => string)) | undefined;
1334
+ } | undefined;
1335
+ readonly number?: {
1336
+ readonly len?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
1337
+ readonly min?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
1338
+ readonly max?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
1339
+ readonly range?: (string | ((args_0: string | undefined, args_1: number | undefined, args_2: number | undefined) => string)) | undefined;
1340
+ } | undefined;
1341
+ readonly array?: {
1342
+ readonly len?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
1343
+ readonly min?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
1344
+ readonly max?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
1345
+ readonly range?: (string | ((args_0: string | undefined, args_1: number | undefined, args_2: number | undefined) => string)) | undefined;
1346
+ } | undefined;
1347
+ readonly pattern?: {
1348
+ readonly mismatch?: (string | ((args_0: string | undefined, args_1: any, args_2: string | RegExp | undefined) => string)) | undefined;
1349
+ } | undefined;
1350
+ } | undefined;
1351
+ readonly keys?: readonly string[] | undefined;
1352
+ readonly error?: ((rule: InternalRuleItem, message: string) => ValidateError) | undefined;
1353
+ } | undefined;
1354
+ readonly trigger?: string | readonly string[] | undefined;
1300
1355
  readonly pattern?: (RegExp | string) | undefined;
1356
+ readonly level?: "warning" | "error" | undefined;
1357
+ readonly key?: string | undefined;
1358
+ readonly asyncValidator?: naive_ui_es_form_src_interface0.FormItemRuleAsyncValidator | undefined;
1301
1359
  readonly min?: number | undefined;
1302
1360
  readonly max?: number | undefined;
1303
1361
  readonly len?: number | undefined;
@@ -1446,61 +1504,6 @@ declare const useDynamicFormState: () => {
1446
1504
  readonly validator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => SyncValidateResult | void) | undefined;
1447
1505
  }[];
1448
1506
  } | undefined;
1449
- readonly options?: {
1450
- readonly suppressWarning?: boolean | undefined;
1451
- readonly suppressValidatorError?: boolean | undefined;
1452
- readonly first?: boolean | undefined;
1453
- readonly firstFields?: boolean | readonly string[] | undefined;
1454
- readonly messages?: {
1455
- readonly default?: (string | ((...args: unknown[]) => string)) | undefined;
1456
- readonly required?: (string | ((args_0: string | undefined) => string)) | undefined;
1457
- readonly enum?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1458
- readonly whitespace?: (string | ((args_0: string | undefined) => string)) | undefined;
1459
- readonly date?: {
1460
- readonly format?: (string | ((...args: unknown[]) => string)) | undefined;
1461
- readonly parse?: (string | ((...args: unknown[]) => string)) | undefined;
1462
- readonly invalid?: (string | ((...args: unknown[]) => string)) | undefined;
1463
- } | undefined;
1464
- readonly types?: {
1465
- readonly string?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1466
- readonly method?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1467
- readonly array?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1468
- readonly object?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1469
- readonly number?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1470
- readonly date?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1471
- readonly boolean?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1472
- readonly integer?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1473
- readonly float?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1474
- readonly regexp?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1475
- readonly email?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1476
- readonly url?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1477
- readonly hex?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
1478
- } | undefined;
1479
- readonly string?: {
1480
- readonly len?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
1481
- readonly min?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
1482
- readonly max?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
1483
- readonly range?: (string | ((args_0: string | undefined, args_1: number | undefined, args_2: number | undefined) => string)) | undefined;
1484
- } | undefined;
1485
- readonly number?: {
1486
- readonly len?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
1487
- readonly min?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
1488
- readonly max?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
1489
- readonly range?: (string | ((args_0: string | undefined, args_1: number | undefined, args_2: number | undefined) => string)) | undefined;
1490
- } | undefined;
1491
- readonly array?: {
1492
- readonly len?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
1493
- readonly min?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
1494
- readonly max?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
1495
- readonly range?: (string | ((args_0: string | undefined, args_1: number | undefined, args_2: number | undefined) => string)) | undefined;
1496
- } | undefined;
1497
- readonly pattern?: {
1498
- readonly mismatch?: (string | ((args_0: string | undefined, args_1: any, args_2: string | RegExp | undefined) => string)) | undefined;
1499
- } | undefined;
1500
- } | undefined;
1501
- readonly keys?: readonly string[] | undefined;
1502
- readonly error?: ((rule: InternalRuleItem, message: string) => ValidateError) | undefined;
1503
- } | undefined;
1504
1507
  readonly defaultField?: {
1505
1508
  readonly type?: RuleType | undefined;
1506
1509
  readonly required?: boolean | undefined;
@@ -1928,10 +1931,7 @@ declare const useDynamicFormState: () => {
1928
1931
  }[] | undefined;
1929
1932
  readonly transform?: ((value: Value) => Value) | undefined;
1930
1933
  readonly message?: string | ((a?: string) => string) | undefined;
1931
- readonly key?: string | undefined;
1932
- readonly trigger?: string | readonly string[] | undefined;
1933
1934
  readonly renderMessage?: (() => vue.VNodeChild) | undefined;
1934
- readonly level?: "warning" | "error" | undefined;
1935
1935
  readonly validator: NonNullable<naive_ui0.FormItemRule["validator"]>;
1936
1936
  }[] | undefined;
1937
1937
  readonly attrs?: {
@@ -3573,8 +3573,66 @@ declare const useDynamicFormState: () => {
3573
3573
  readonly rules?: readonly {
3574
3574
  readonly type?: RuleType | undefined;
3575
3575
  readonly required?: boolean | undefined;
3576
- readonly asyncValidator?: naive_ui_es_form_src_interface0.FormItemRuleAsyncValidator | undefined;
3576
+ readonly options?: {
3577
+ readonly suppressWarning?: boolean | undefined;
3578
+ readonly suppressValidatorError?: boolean | undefined;
3579
+ readonly first?: boolean | undefined;
3580
+ readonly firstFields?: boolean | readonly string[] | undefined;
3581
+ readonly messages?: {
3582
+ readonly default?: (string | ((...args: unknown[]) => string)) | undefined;
3583
+ readonly required?: (string | ((args_0: string | undefined) => string)) | undefined;
3584
+ readonly enum?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3585
+ readonly whitespace?: (string | ((args_0: string | undefined) => string)) | undefined;
3586
+ readonly date?: {
3587
+ readonly format?: (string | ((...args: unknown[]) => string)) | undefined;
3588
+ readonly parse?: (string | ((...args: unknown[]) => string)) | undefined;
3589
+ readonly invalid?: (string | ((...args: unknown[]) => string)) | undefined;
3590
+ } | undefined;
3591
+ readonly types?: {
3592
+ readonly string?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3593
+ readonly method?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3594
+ readonly array?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3595
+ readonly object?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3596
+ readonly number?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3597
+ readonly date?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3598
+ readonly boolean?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3599
+ readonly integer?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3600
+ readonly float?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3601
+ readonly regexp?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3602
+ readonly email?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3603
+ readonly url?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3604
+ readonly hex?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3605
+ } | undefined;
3606
+ readonly string?: {
3607
+ readonly len?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
3608
+ readonly min?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
3609
+ readonly max?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
3610
+ readonly range?: (string | ((args_0: string | undefined, args_1: number | undefined, args_2: number | undefined) => string)) | undefined;
3611
+ } | undefined;
3612
+ readonly number?: {
3613
+ readonly len?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
3614
+ readonly min?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
3615
+ readonly max?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
3616
+ readonly range?: (string | ((args_0: string | undefined, args_1: number | undefined, args_2: number | undefined) => string)) | undefined;
3617
+ } | undefined;
3618
+ readonly array?: {
3619
+ readonly len?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
3620
+ readonly min?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
3621
+ readonly max?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
3622
+ readonly range?: (string | ((args_0: string | undefined, args_1: number | undefined, args_2: number | undefined) => string)) | undefined;
3623
+ } | undefined;
3624
+ readonly pattern?: {
3625
+ readonly mismatch?: (string | ((args_0: string | undefined, args_1: any, args_2: string | RegExp | undefined) => string)) | undefined;
3626
+ } | undefined;
3627
+ } | undefined;
3628
+ readonly keys?: readonly string[] | undefined;
3629
+ readonly error?: ((rule: InternalRuleItem, message: string) => ValidateError) | undefined;
3630
+ } | undefined;
3631
+ readonly trigger?: string | readonly string[] | undefined;
3577
3632
  readonly pattern?: (RegExp | string) | undefined;
3633
+ readonly level?: "warning" | "error" | undefined;
3634
+ readonly key?: string | undefined;
3635
+ readonly asyncValidator?: naive_ui_es_form_src_interface0.FormItemRuleAsyncValidator | undefined;
3578
3636
  readonly min?: number | undefined;
3579
3637
  readonly max?: number | undefined;
3580
3638
  readonly len?: number | undefined;
@@ -3723,61 +3781,6 @@ declare const useDynamicFormState: () => {
3723
3781
  readonly validator?: ((rule: InternalRuleItem, value: Value, callback: (error?: string | Error) => void, source: Values, options: ValidateOption) => SyncValidateResult | void) | undefined;
3724
3782
  }[];
3725
3783
  } | undefined;
3726
- readonly options?: {
3727
- readonly suppressWarning?: boolean | undefined;
3728
- readonly suppressValidatorError?: boolean | undefined;
3729
- readonly first?: boolean | undefined;
3730
- readonly firstFields?: boolean | readonly string[] | undefined;
3731
- readonly messages?: {
3732
- readonly default?: (string | ((...args: unknown[]) => string)) | undefined;
3733
- readonly required?: (string | ((args_0: string | undefined) => string)) | undefined;
3734
- readonly enum?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3735
- readonly whitespace?: (string | ((args_0: string | undefined) => string)) | undefined;
3736
- readonly date?: {
3737
- readonly format?: (string | ((...args: unknown[]) => string)) | undefined;
3738
- readonly parse?: (string | ((...args: unknown[]) => string)) | undefined;
3739
- readonly invalid?: (string | ((...args: unknown[]) => string)) | undefined;
3740
- } | undefined;
3741
- readonly types?: {
3742
- readonly string?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3743
- readonly method?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3744
- readonly array?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3745
- readonly object?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3746
- readonly number?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3747
- readonly date?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3748
- readonly boolean?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3749
- readonly integer?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3750
- readonly float?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3751
- readonly regexp?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3752
- readonly email?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3753
- readonly url?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3754
- readonly hex?: (string | ((args_0: string | undefined, args_1: string | undefined) => string)) | undefined;
3755
- } | undefined;
3756
- readonly string?: {
3757
- readonly len?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
3758
- readonly min?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
3759
- readonly max?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
3760
- readonly range?: (string | ((args_0: string | undefined, args_1: number | undefined, args_2: number | undefined) => string)) | undefined;
3761
- } | undefined;
3762
- readonly number?: {
3763
- readonly len?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
3764
- readonly min?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
3765
- readonly max?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
3766
- readonly range?: (string | ((args_0: string | undefined, args_1: number | undefined, args_2: number | undefined) => string)) | undefined;
3767
- } | undefined;
3768
- readonly array?: {
3769
- readonly len?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
3770
- readonly min?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
3771
- readonly max?: (string | ((args_0: string | undefined, args_1: number | undefined) => string)) | undefined;
3772
- readonly range?: (string | ((args_0: string | undefined, args_1: number | undefined, args_2: number | undefined) => string)) | undefined;
3773
- } | undefined;
3774
- readonly pattern?: {
3775
- readonly mismatch?: (string | ((args_0: string | undefined, args_1: any, args_2: string | RegExp | undefined) => string)) | undefined;
3776
- } | undefined;
3777
- } | undefined;
3778
- readonly keys?: readonly string[] | undefined;
3779
- readonly error?: ((rule: InternalRuleItem, message: string) => ValidateError) | undefined;
3780
- } | undefined;
3781
3784
  readonly defaultField?: {
3782
3785
  readonly type?: RuleType | undefined;
3783
3786
  readonly required?: boolean | undefined;
@@ -4205,10 +4208,7 @@ declare const useDynamicFormState: () => {
4205
4208
  }[] | undefined;
4206
4209
  readonly transform?: ((value: Value) => Value) | undefined;
4207
4210
  readonly message?: string | ((a?: string) => string) | undefined;
4208
- readonly key?: string | undefined;
4209
- readonly trigger?: string | readonly string[] | undefined;
4210
4211
  readonly renderMessage?: (() => vue.VNodeChild) | undefined;
4211
- readonly level?: "warning" | "error" | undefined;
4212
4212
  readonly validator: NonNullable<naive_ui0.FormItemRule["validator"]>;
4213
4213
  }[] | undefined;
4214
4214
  }[];