@robot-admin/naive-ui-components 0.21.1 → 0.22.1

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 (157) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +5 -1
  3. package/README_EN.md +5 -1
  4. package/SECURITY.md +10 -0
  5. package/THIRD_PARTY_NOTICES.md +10 -0
  6. package/dist/C_AntV2.cjs +1 -1
  7. package/dist/C_Barcode2.cjs +1 -1
  8. package/dist/C_Captcha.d.ts +2 -0
  9. package/dist/C_Editor.css +18 -18
  10. package/dist/C_Editor2.cjs +1 -1
  11. package/dist/C_Editor2.js +1 -1
  12. package/dist/C_FilePreview2.cjs +1 -1
  13. package/dist/C_FilePreview2.js +1 -1
  14. package/dist/C_Form.base.css +58 -58
  15. package/dist/C_Form.cjs +1 -1
  16. package/dist/C_Form.css +76 -76
  17. package/dist/C_Form.d.cts +3 -1
  18. package/dist/C_Form.d.ts +3 -2
  19. package/dist/C_Form.js +1 -1
  20. package/dist/C_FormModal.css +10 -10
  21. package/dist/C_FormModal.d.ts +1 -0
  22. package/dist/C_FormModal2.cjs +1 -1
  23. package/dist/C_FormModal2.js +1 -1
  24. package/dist/C_FormSearch.css +56 -56
  25. package/dist/C_FormSearch.d.ts +2 -1
  26. package/dist/C_FormSearch2.cjs +1 -1
  27. package/dist/C_FormSearch2.js +1 -1
  28. package/dist/C_FullCalendar2.cjs +1 -1
  29. package/dist/C_Login.d.ts +3 -0
  30. package/dist/C_Markdown.css +37 -37
  31. package/dist/C_Markdown2.cjs +1 -1
  32. package/dist/C_Markdown2.js +1 -1
  33. package/dist/C_QRCode2.cjs +1 -1
  34. package/dist/C_Table.base.css +58 -58
  35. package/dist/C_Table.css +76 -76
  36. package/dist/C_Table.d.cts +1 -1
  37. package/dist/C_Table.d.ts +5 -2
  38. package/dist/C_Tree.d.cts +1 -1
  39. package/dist/C_Tree.d.ts +5 -2
  40. package/dist/C_Upload2.cjs +1 -1
  41. package/dist/C_WaterFall.css +49 -31
  42. package/dist/C_WaterFall2.cjs +1 -1
  43. package/dist/C_WaterFall2.js +1 -1
  44. package/dist/chunk.cjs +1 -1
  45. package/dist/config.cjs +1 -1
  46. package/dist/config.d.cts +4 -1
  47. package/dist/config.d.ts +4 -2
  48. package/dist/config.js +1 -1
  49. package/dist/config2.d.ts +14 -0
  50. package/dist/constants.d.cts +1 -1
  51. package/dist/constants.d.ts +1 -1
  52. package/dist/constants2.d.cts +1 -1
  53. package/dist/constants2.d.ts +1 -1
  54. package/dist/constants3.d.cts +2 -2
  55. package/dist/constants3.d.ts +2 -2
  56. package/dist/constants4.d.cts +5 -5
  57. package/dist/constants4.d.ts +5 -5
  58. package/dist/data.cjs +1 -1
  59. package/dist/data.d.cts +7 -7
  60. package/dist/data.d.ts +7 -7
  61. package/dist/data.js +1 -1
  62. package/dist/dateRange.d.ts +1 -2
  63. package/dist/density.cjs +1 -1
  64. package/dist/density.js +1 -1
  65. package/dist/graphics.d.cts +17 -11
  66. package/dist/graphics.d.ts +17 -11
  67. package/dist/helpers.cjs +1 -1
  68. package/dist/helpers.js +1 -1
  69. package/dist/html.cjs +1 -1
  70. package/dist/index.cjs +1 -1
  71. package/dist/index.d.cts +4 -3
  72. package/dist/index.d.ts +7 -5
  73. package/dist/index.js +1 -1
  74. package/dist/index.vue.d.cts +5 -5
  75. package/dist/index.vue.d.ts +5 -5
  76. package/dist/index10.vue.d.cts +2 -2
  77. package/dist/index10.vue.d.ts +5 -5
  78. package/dist/index11.vue.d.cts +5 -5
  79. package/dist/index11.vue.d.ts +1 -1
  80. package/dist/index12.vue.d.cts +1 -1
  81. package/dist/index12.vue.d.ts +4 -4
  82. package/dist/index13.vue.d.cts +4 -4
  83. package/dist/index13.vue.d.ts +9 -9
  84. package/dist/index14.vue.d.cts +9 -9
  85. package/dist/index17.vue.d.ts +2 -2
  86. package/dist/index18.vue.d.cts +2 -2
  87. package/dist/index18.vue.d.ts +2 -2
  88. package/dist/index19.vue.d.cts +2 -2
  89. package/dist/index19.vue.d.ts +2 -2
  90. package/dist/index2.vue.d.cts +2 -2
  91. package/dist/index2.vue.d.ts +2 -2
  92. package/dist/index20.vue.d.cts +1 -1
  93. package/dist/index20.vue.d.ts +1 -1
  94. package/dist/index21.vue.d.cts +1 -1
  95. package/dist/index21.vue.d.ts +1 -1
  96. package/dist/index22.vue.d.cts +1 -1
  97. package/dist/index22.vue.d.ts +1 -1
  98. package/dist/index25.vue.d.cts +2 -2
  99. package/dist/index25.vue.d.ts +2 -2
  100. package/dist/index3.vue.d.cts +6 -6
  101. package/dist/index3.vue.d.ts +6 -6
  102. package/dist/index4.vue.d.cts +2 -2
  103. package/dist/index8.vue.d.ts +3 -3
  104. package/dist/index9.vue.d.cts +3 -3
  105. package/dist/index9.vue.d.ts +2 -2
  106. package/dist/mapUtils.d.cts +2 -2
  107. package/dist/mapUtils.d.ts +2 -2
  108. package/dist/style.css +228 -210
  109. package/dist/types.d.ts +5 -0
  110. package/dist/types2.d.cts +5 -0
  111. package/dist/useCalendarEvents.d.cts +1 -1
  112. package/dist/useCalendarEvents.d.ts +1 -1
  113. package/dist/useCollapsePanel.d.cts +5 -5
  114. package/dist/useCollapsePanel.d.ts +5 -5
  115. package/dist/useCropperCore.d.cts +10 -10
  116. package/dist/useCropperCore.d.ts +10 -10
  117. package/dist/useDynamicFormState.d.cts +6 -579
  118. package/dist/useDynamicFormState.d.ts +6 -579
  119. package/dist/useEdgeInteraction.d.cts +2 -2
  120. package/dist/useEdgeInteraction.d.ts +2 -2
  121. package/dist/useFormConfig.cjs +1 -0
  122. package/dist/useFormConfig.d.cts +576 -0
  123. package/dist/useFormConfig.d.ts +611 -0
  124. package/dist/useFormConfig.js +1 -0
  125. package/dist/useGlobalSearch.d.cts +1 -1
  126. package/dist/useGlobalSearch.d.ts +1 -1
  127. package/dist/useInfiniteScroll.d.cts +16 -17
  128. package/dist/useInfiniteScroll.d.ts +16 -17
  129. package/dist/useQRCode.d.cts +5 -5
  130. package/dist/useQRCode.d.ts +5 -5
  131. package/dist/useSignatureHistory.d.cts +4 -4
  132. package/dist/useSignatureHistory.d.ts +4 -4
  133. package/dist/useSplitResize.d.cts +10 -10
  134. package/dist/useSplitResize.d.ts +10 -10
  135. package/dist/useTableQuery.cjs +1 -1
  136. package/dist/useTableQuery.d.cts +15 -13
  137. package/dist/useTableQuery.d.ts +17 -26
  138. package/dist/useTableQuery.js +1 -1
  139. package/dist/useWorkflowValidation.d.cts +2 -2
  140. package/dist/useWorkflowValidation.d.ts +2 -2
  141. package/dist/verification.d.cts +5 -5
  142. package/dist/verification.d.ts +6 -6
  143. package/dist/xlsx.js +143 -0
  144. package/dist/xlsx2.cjs +143 -0
  145. package/docs/architecture.en.md +1 -0
  146. package/docs/architecture.md +1 -0
  147. package/docs/guides/api-migration.md +111 -0
  148. package/docs/guides/form-density.en.md +17 -3
  149. package/docs/guides/form-density.md +17 -3
  150. package/docs/guides/runtime-performance.md +16 -1
  151. package/docs/guides/usage.en.md +1 -1
  152. package/docs/guides/waterfall.md +113 -0
  153. package/docs/runtime-review-20261019.md +2 -0
  154. package/licenses/SheetJS.txt +201 -0
  155. package/package.json +13 -9
  156. package/dist/contracts.d.ts +0 -24
  157. package/dist/density.d.ts +0 -15
package/dist/types.d.ts CHANGED
@@ -37,10 +37,15 @@ type DateProps<M extends DatePickerMode | undefined = DatePickerMode> = Omit<Dat
37
37
  } : never));
38
38
  interface DateEmits<M extends DatePickerMode | undefined = DatePickerMode> {
39
39
  'update:modelValue': [value: DateModelValue<M>];
40
+ /** @deprecated Use update:modelValue with mode="date". */
40
41
  'update:singleDate': [value: DateValue];
42
+ /** @deprecated Use update:modelValue with mode="datetime". */
41
43
  'update:singleDateTime': [value: DateValue];
44
+ /** @deprecated Use update:modelValue with mode="daterange". */
42
45
  'update:dateRange': [value: DateRangeValue];
46
+ /** @deprecated Use update:modelValue with mode="datetimerange". */
43
47
  'update:dateTimeRange': [value: DateRangeValue];
48
+ /** @deprecated Use update:modelValue with mode="smart-range". */
44
49
  'update:smartRange': [value: DateRangeValue];
45
50
  change: [value: DateModelValue<M>];
46
51
  }
package/dist/types2.d.cts CHANGED
@@ -37,10 +37,15 @@ type DateProps<M extends DatePickerMode | undefined = DatePickerMode> = Omit<Dat
37
37
  } : never));
38
38
  interface DateEmits<M extends DatePickerMode | undefined = DatePickerMode> {
39
39
  'update:modelValue': [value: DateModelValue<M>];
40
+ /** @deprecated Use update:modelValue with mode="date". */
40
41
  'update:singleDate': [value: DateValue];
42
+ /** @deprecated Use update:modelValue with mode="datetime". */
41
43
  'update:singleDateTime': [value: DateValue];
44
+ /** @deprecated Use update:modelValue with mode="daterange". */
42
45
  'update:dateRange': [value: DateRangeValue];
46
+ /** @deprecated Use update:modelValue with mode="datetimerange". */
43
47
  'update:dateTimeRange': [value: DateRangeValue];
48
+ /** @deprecated Use update:modelValue with mode="smart-range". */
44
49
  'update:smartRange': [value: DateRangeValue];
45
50
  change: [value: DateModelValue<M>];
46
51
  }
@@ -72,8 +72,8 @@ declare const __VLS_export: vue.DefineComponent<CalendarProps, CalendarExpose, {
72
72
  }) => any) | undefined;
73
73
  "onEvent-dropped"?: ((event: Partial<CalendarEvent>) => any) | undefined;
74
74
  }>, {
75
- initialView: CalendarViewType;
76
75
  editable: boolean;
76
+ initialView: CalendarViewType;
77
77
  events: CalendarEvent[];
78
78
  showAddDialog: boolean;
79
79
  showEditDialog: boolean;
@@ -72,8 +72,8 @@ declare const __VLS_export: vue.DefineComponent<CalendarProps, CalendarExpose, {
72
72
  }) => any) | undefined;
73
73
  "onEvent-dropped"?: ((event: Partial<CalendarEvent>) => any) | undefined;
74
74
  }>, {
75
- initialView: CalendarViewType;
76
75
  editable: boolean;
76
+ initialView: CalendarViewType;
77
77
  events: CalendarEvent[];
78
78
  showAddDialog: boolean;
79
79
  showEditDialog: boolean;
@@ -71,21 +71,21 @@ declare var __VLS_7: `header-${string}`, __VLS_8: {
71
71
  type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_7>]?: (props: typeof __VLS_8) => any } & { [K in NonNullable<typeof __VLS_16>]?: (props: typeof __VLS_17) => any } & { [K in NonNullable<typeof __VLS_31>]?: (props: typeof __VLS_32) => any };
72
72
  declare const __VLS_base: vue.DefineComponent<Props, CollapsePanelExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
73
73
  change: (activeKeys: string[]) => any;
74
- "update:activeKeys": (keys: string[]) => any;
75
- expand: (key: string) => any;
76
74
  collapse: (key: string) => any;
75
+ expand: (key: string) => any;
76
+ "update:activeKeys": (keys: string[]) => any;
77
77
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
78
78
  onChange?: ((activeKeys: string[]) => any) | undefined;
79
- "onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
80
- onExpand?: ((key: string) => any) | undefined;
81
79
  onCollapse?: ((key: string) => any) | undefined;
80
+ onExpand?: ((key: string) => any) | undefined;
81
+ "onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
82
82
  }>, {
83
- bordered: boolean;
84
83
  activeKeys: string[];
85
84
  defaultActiveKeys: string[];
86
85
  accordion: boolean;
87
86
  variant: CollapsePanelVariant;
88
87
  expandIconPosition: ExpandIconPosition;
88
+ bordered: boolean;
89
89
  persistKey: string;
90
90
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
91
91
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -71,21 +71,21 @@ declare var __VLS_7: `header-${string}`, __VLS_8: {
71
71
  type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_7>]?: (props: typeof __VLS_8) => any } & { [K in NonNullable<typeof __VLS_16>]?: (props: typeof __VLS_17) => any } & { [K in NonNullable<typeof __VLS_31>]?: (props: typeof __VLS_32) => any };
72
72
  declare const __VLS_base: vue.DefineComponent<Props, CollapsePanelExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
73
73
  change: (activeKeys: string[]) => any;
74
- "update:activeKeys": (keys: string[]) => any;
75
- expand: (key: string) => any;
76
74
  collapse: (key: string) => any;
75
+ expand: (key: string) => any;
76
+ "update:activeKeys": (keys: string[]) => any;
77
77
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
78
78
  onChange?: ((activeKeys: string[]) => any) | undefined;
79
- "onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
80
- onExpand?: ((key: string) => any) | undefined;
81
79
  onCollapse?: ((key: string) => any) | undefined;
80
+ onExpand?: ((key: string) => any) | undefined;
81
+ "onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
82
82
  }>, {
83
- bordered: boolean;
84
83
  activeKeys: string[];
85
84
  defaultActiveKeys: string[];
86
85
  accordion: boolean;
87
86
  variant: CollapsePanelVariant;
88
87
  expandIconPosition: ExpandIconPosition;
88
+ bordered: boolean;
89
89
  persistKey: string;
90
90
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
91
91
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -52,30 +52,30 @@ interface ImageCropperEmits {
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
54
  error: (error: Error) => any;
55
- crop: (result: CropResult) => any;
56
55
  ready: () => any;
57
- confirm: (result: CropResult) => any;
58
56
  cancel: () => any;
57
+ confirm: (result: CropResult) => any;
58
+ crop: (result: CropResult) => any;
59
59
  }, string, vue.PublicProps, Readonly<ImageCropperProps> & Readonly<{
60
60
  onError?: ((error: Error) => any) | undefined;
61
- onCrop?: ((result: CropResult) => any) | undefined;
62
61
  onReady?: (() => any) | undefined;
63
- onConfirm?: ((result: CropResult) => any) | undefined;
64
62
  onCancel?: (() => any) | undefined;
63
+ onConfirm?: ((result: CropResult) => any) | undefined;
64
+ onCrop?: ((result: CropResult) => any) | undefined;
65
65
  }>, {
66
66
  height: string | number;
67
- src: string;
67
+ disabled: boolean;
68
68
  aspectRatio: number;
69
+ showPreview: boolean;
70
+ showToolbar: boolean;
71
+ modalTitle: string;
72
+ modal: boolean;
73
+ src: string;
69
74
  outputFormat: CropOutputFormat;
70
75
  outputQuality: number;
71
76
  maxOutputWidth: number;
72
77
  maxOutputHeight: number;
73
- showPreview: boolean;
74
- showToolbar: boolean;
75
78
  circular: boolean;
76
- disabled: boolean;
77
- modal: boolean;
78
- modalTitle: string;
79
79
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
80
80
  declare const _default: typeof __VLS_export;
81
81
  //#endregion
@@ -52,30 +52,30 @@ interface ImageCropperEmits {
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
54
  error: (error: Error) => any;
55
- crop: (result: CropResult) => any;
56
55
  ready: () => any;
57
- confirm: (result: CropResult) => any;
58
56
  cancel: () => any;
57
+ confirm: (result: CropResult) => any;
58
+ crop: (result: CropResult) => any;
59
59
  }, string, vue.PublicProps, Readonly<ImageCropperProps> & Readonly<{
60
60
  onError?: ((error: Error) => any) | undefined;
61
- onCrop?: ((result: CropResult) => any) | undefined;
62
61
  onReady?: (() => any) | undefined;
63
- onConfirm?: ((result: CropResult) => any) | undefined;
64
62
  onCancel?: (() => any) | undefined;
63
+ onConfirm?: ((result: CropResult) => any) | undefined;
64
+ onCrop?: ((result: CropResult) => any) | undefined;
65
65
  }>, {
66
66
  height: string | number;
67
- src: string;
67
+ disabled: boolean;
68
68
  aspectRatio: number;
69
+ showPreview: boolean;
70
+ showToolbar: boolean;
71
+ modalTitle: string;
72
+ modal: boolean;
73
+ src: string;
69
74
  outputFormat: CropOutputFormat;
70
75
  outputQuality: number;
71
76
  maxOutputWidth: number;
72
77
  maxOutputHeight: number;
73
- showPreview: boolean;
74
- showToolbar: boolean;
75
78
  circular: boolean;
76
- disabled: boolean;
77
- modal: boolean;
78
- modalTitle: string;
79
79
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
80
80
  declare const _default: typeof __VLS_export;
81
81
  //#endregion