@robot-admin/naive-ui-components 0.42.1 → 0.43.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 (106) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +1 -1
  3. package/README_EN.md +1 -1
  4. package/dist/C_ResourceSchedule.css +51 -27
  5. package/dist/C_ResourceSchedule.d.cts +2 -2
  6. package/dist/C_ResourceSchedule.d.ts +2 -2
  7. package/dist/C_ResourceSchedule2.cjs +1 -1
  8. package/dist/C_ResourceSchedule2.js +1 -1
  9. package/dist/C_SplitPane.css +75 -74
  10. package/dist/C_SplitPane2.cjs +1 -1
  11. package/dist/C_SplitPane2.js +1 -1
  12. package/dist/C_Table.base.css +128 -115
  13. package/dist/C_Table.css +128 -115
  14. package/dist/C_Table2.cjs +4 -4
  15. package/dist/C_Table2.js +4 -4
  16. package/dist/C_Tabs.css +9 -9
  17. package/dist/component-config.d.ts +3 -0
  18. package/dist/constants3.d.cts +3 -3
  19. package/dist/constants3.d.ts +3 -3
  20. package/dist/constants4.d.cts +6 -6
  21. package/dist/constants4.d.ts +6 -6
  22. package/dist/context.d.cts +3 -0
  23. package/dist/data2.d.cts +19 -15
  24. package/dist/data2.d.ts +19 -15
  25. package/dist/data3.cjs +1 -1
  26. package/dist/data3.js +1 -1
  27. package/dist/editors.d.cts +9 -8
  28. package/dist/editors.d.ts +9 -8
  29. package/dist/graphics.d.cts +1 -1
  30. package/dist/graphics.d.ts +1 -1
  31. package/dist/index.d.cts +2 -2
  32. package/dist/index.d.ts +2 -2
  33. package/dist/index13.vue.d.ts +4 -4
  34. package/dist/index14.vue.d.cts +4 -4
  35. package/dist/index14.vue.d.ts +3 -3
  36. package/dist/index15.vue.d.cts +3 -3
  37. package/dist/index17.vue.d.ts +1 -1
  38. package/dist/index18.vue.d.cts +1 -1
  39. package/dist/index19.vue.d.ts +2 -2
  40. package/dist/index2.vue.d.cts +2 -2
  41. package/dist/index2.vue.d.ts +2 -2
  42. package/dist/index20.vue.d.cts +2 -2
  43. package/dist/index20.vue.d.ts +6 -6
  44. package/dist/index21.vue.d.cts +6 -6
  45. package/dist/index21.vue.d.ts +8 -8
  46. package/dist/index22.vue.d.cts +8 -8
  47. package/dist/index26.vue.d.ts +1 -1
  48. package/dist/index27.vue.d.cts +1 -1
  49. package/dist/index27.vue.d.ts +3 -3
  50. package/dist/index28.vue.d.cts +3 -3
  51. package/dist/index29.vue.d.cts +2 -2
  52. package/dist/index29.vue.d.ts +2 -2
  53. package/dist/index3.vue.d.cts +3 -3
  54. package/dist/index3.vue.d.ts +3 -3
  55. package/dist/index34.vue.d.cts +13 -2
  56. package/dist/index34.vue.d.ts +13 -2
  57. package/dist/index35.vue.d.cts +2 -2
  58. package/dist/index35.vue.d.ts +2 -2
  59. package/dist/index38.vue.d.cts +1 -1
  60. package/dist/index38.vue.d.ts +1 -1
  61. package/dist/index39.vue.d.cts +1 -1
  62. package/dist/index39.vue.d.ts +1 -1
  63. package/dist/index41.vue.d.cts +1 -1
  64. package/dist/index41.vue.d.ts +1 -1
  65. package/dist/index42.vue.d.cts +5 -5
  66. package/dist/index42.vue.d.ts +5 -5
  67. package/dist/index43.vue.d.cts +2 -2
  68. package/dist/index43.vue.d.ts +2 -2
  69. package/dist/index5.vue.d.cts +2 -2
  70. package/dist/index5.vue.d.ts +2 -2
  71. package/dist/index6.vue.d.cts +5 -5
  72. package/dist/index6.vue.d.ts +5 -5
  73. package/dist/localSource.cjs +1 -1
  74. package/dist/localSource.d.cts +9 -4
  75. package/dist/localSource.d.ts +9 -4
  76. package/dist/localSource.js +1 -1
  77. package/dist/mapUtils.d.cts +2 -2
  78. package/dist/mapUtils.d.ts +2 -2
  79. package/dist/presets.d.cts +1 -1
  80. package/dist/presets.d.ts +1 -1
  81. package/dist/style.css +263 -225
  82. package/dist/useCollapsePanel.d.cts +3 -3
  83. package/dist/useCollapsePanel.d.ts +3 -3
  84. package/dist/useCropperCore.d.cts +5 -5
  85. package/dist/useCropperCore.d.ts +5 -5
  86. package/dist/useEdgeInteraction.d.cts +1 -1
  87. package/dist/useEdgeInteraction.d.ts +1 -1
  88. package/dist/useFullscreen.d.cts +3 -3
  89. package/dist/useFullscreen.d.ts +3 -3
  90. package/dist/useQRCode.d.cts +5 -5
  91. package/dist/useQRCode.d.ts +5 -5
  92. package/dist/useSignatureHistory.d.cts +5 -5
  93. package/dist/useSignatureHistory.d.ts +5 -5
  94. package/dist/useSplitResize.d.cts +1 -0
  95. package/dist/useSplitResize.d.ts +1 -0
  96. package/dist/useWorkflowValidation.d.cts +102 -102
  97. package/dist/useWorkflowValidation.d.ts +102 -102
  98. package/dist/verification.d.cts +4 -4
  99. package/dist/verification.d.ts +4 -4
  100. package/docs/guides/data-picker.md +2 -0
  101. package/docs/guides/data-workflows.md +4 -0
  102. package/docs/guides/resource-schedule.md +4 -0
  103. package/docs/guides/split-pane.en.md +6 -4
  104. package/docs/guides/split-pane.md +6 -11
  105. package/docs/wl-ui-produce-coverage.md +1 -1
  106. package/package.json +1 -1
@@ -73,23 +73,23 @@ declare var __VLS_7: `header-${string}`, __VLS_8: {
73
73
  };
74
74
  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 };
75
75
  declare const __VLS_base: vue.DefineComponent<Props, CollapsePanelExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
76
- expand: (key: string) => any;
77
76
  change: (activeKeys: string[]) => any;
77
+ expand: (key: string) => any;
78
78
  collapse: (key: string) => any;
79
79
  "update:activeKeys": (keys: string[]) => any;
80
80
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
81
- onExpand?: ((key: string) => any) | undefined;
82
81
  onChange?: ((activeKeys: string[]) => any) | undefined;
82
+ onExpand?: ((key: string) => any) | undefined;
83
83
  onCollapse?: ((key: string) => any) | undefined;
84
84
  "onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
85
85
  }>, {
86
86
  bordered: boolean;
87
87
  accordion: boolean;
88
+ persistKey: string;
88
89
  activeKeys: string[];
89
90
  defaultActiveKeys: string[];
90
91
  variant: CollapsePanelVariant;
91
92
  expandIconPosition: ExpandIconPosition;
92
- persistKey: string;
93
93
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
94
94
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
95
95
  declare const _default: typeof __VLS_export;
@@ -73,23 +73,23 @@ declare var __VLS_7: `header-${string}`, __VLS_8: {
73
73
  };
74
74
  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 };
75
75
  declare const __VLS_base: vue.DefineComponent<Props, CollapsePanelExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
76
- expand: (key: string) => any;
77
76
  change: (activeKeys: string[]) => any;
77
+ expand: (key: string) => any;
78
78
  collapse: (key: string) => any;
79
79
  "update:activeKeys": (keys: string[]) => any;
80
80
  }, string, vue.PublicProps, Readonly<Props> & Readonly<{
81
- onExpand?: ((key: string) => any) | undefined;
82
81
  onChange?: ((activeKeys: string[]) => any) | undefined;
82
+ onExpand?: ((key: string) => any) | undefined;
83
83
  onCollapse?: ((key: string) => any) | undefined;
84
84
  "onUpdate:activeKeys"?: ((keys: string[]) => any) | undefined;
85
85
  }>, {
86
86
  bordered: boolean;
87
87
  accordion: boolean;
88
+ persistKey: string;
88
89
  activeKeys: string[];
89
90
  defaultActiveKeys: string[];
90
91
  variant: CollapsePanelVariant;
91
92
  expandIconPosition: ExpandIconPosition;
92
- persistKey: string;
93
93
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
94
94
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
95
95
  declare const _default: typeof __VLS_export;
@@ -51,20 +51,19 @@ 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
- confirm: (result: CropResult) => any;
56
54
  error: (error: Error) => any;
57
55
  ready: () => any;
58
56
  crop: (result: CropResult) => any;
57
+ confirm: (result: CropResult) => any;
58
+ cancel: () => any;
59
59
  }, string, vue.PublicProps, Readonly<ImageCropperProps> & Readonly<{
60
- onCancel?: (() => any) | undefined;
61
- onConfirm?: ((result: CropResult) => any) | undefined;
62
60
  onError?: ((error: Error) => any) | undefined;
63
61
  onReady?: (() => any) | undefined;
64
62
  onCrop?: ((result: CropResult) => any) | undefined;
63
+ onConfirm?: ((result: CropResult) => any) | undefined;
64
+ onCancel?: (() => any) | undefined;
65
65
  }>, {
66
66
  disabled: boolean;
67
- modal: boolean;
68
67
  height: string | number;
69
68
  showToolbar: boolean;
70
69
  src: string;
@@ -75,6 +74,7 @@ declare const __VLS_export: vue.DefineComponent<ImageCropperProps, ImageCropperE
75
74
  maxOutputHeight: number;
76
75
  showPreview: boolean;
77
76
  circular: boolean;
77
+ modal: boolean;
78
78
  modalTitle: string;
79
79
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
80
80
  declare const _default: typeof __VLS_export;
@@ -51,20 +51,19 @@ 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
- confirm: (result: CropResult) => any;
56
54
  error: (error: Error) => any;
57
55
  ready: () => any;
58
56
  crop: (result: CropResult) => any;
57
+ confirm: (result: CropResult) => any;
58
+ cancel: () => any;
59
59
  }, string, vue.PublicProps, Readonly<ImageCropperProps> & Readonly<{
60
- onCancel?: (() => any) | undefined;
61
- onConfirm?: ((result: CropResult) => any) | undefined;
62
60
  onError?: ((error: Error) => any) | undefined;
63
61
  onReady?: (() => any) | undefined;
64
62
  onCrop?: ((result: CropResult) => any) | undefined;
63
+ onConfirm?: ((result: CropResult) => any) | undefined;
64
+ onCancel?: (() => any) | undefined;
65
65
  }>, {
66
66
  disabled: boolean;
67
- modal: boolean;
68
67
  height: string | number;
69
68
  showToolbar: boolean;
70
69
  src: string;
@@ -75,6 +74,7 @@ declare const __VLS_export: vue.DefineComponent<ImageCropperProps, ImageCropperE
75
74
  maxOutputHeight: number;
76
75
  showPreview: boolean;
77
76
  circular: boolean;
77
+ modal: boolean;
78
78
  modalTitle: string;
79
79
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
80
80
  declare const _default: typeof __VLS_export;
@@ -255,9 +255,9 @@ declare const __VLS_export: vue.DefineComponent<DiagramConfig, {
255
255
  onReady?: ((graph: Graph) => any) | undefined;
256
256
  "onData-change"?: ((data: DiagramData) => any) | undefined;
257
257
  }>, {
258
- width: string | number;
259
258
  readonly: boolean;
260
259
  height: string | number;
260
+ width: string | number;
261
261
  showToolbar: boolean;
262
262
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
263
263
  declare const _default: typeof __VLS_export;
@@ -255,9 +255,9 @@ declare const __VLS_export: vue.DefineComponent<DiagramConfig, {
255
255
  onReady?: ((graph: Graph) => any) | undefined;
256
256
  "onData-change"?: ((data: DiagramData) => any) | undefined;
257
257
  }>, {
258
- width: string | number;
259
258
  readonly: boolean;
260
259
  height: string | number;
260
+ width: string | number;
261
261
  showToolbar: boolean;
262
262
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
263
263
  declare const _default: typeof __VLS_export;
@@ -4,16 +4,16 @@ import { Ref } from "vue";
4
4
 
5
5
  //#region src/components/C_FilePreview/index.vue.d.ts
6
6
  declare const __VLS_export: vue.DefineComponent<FilePreviewProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
7
- download: (file: string | File) => any;
8
7
  preview: (file: string | File) => any;
8
+ download: (file: string | File) => any;
9
9
  "update:show": (show: boolean) => any;
10
10
  }, string, vue.PublicProps, Readonly<FilePreviewProps> & Readonly<{
11
- onDownload?: ((file: string | File) => any) | undefined;
12
11
  onPreview?: ((file: string | File) => any) | undefined;
12
+ onDownload?: ((file: string | File) => any) | undefined;
13
13
  "onUpdate:show"?: ((show: boolean) => any) | undefined;
14
14
  }>, {
15
- inline: boolean;
16
15
  show: boolean;
16
+ inline: boolean;
17
17
  fileName: string;
18
18
  autoPreview: boolean;
19
19
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -4,16 +4,16 @@ import { Ref } from "vue";
4
4
 
5
5
  //#region src/components/C_FilePreview/index.vue.d.ts
6
6
  declare const __VLS_export: vue.DefineComponent<FilePreviewProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
7
- download: (file: string | File) => any;
8
7
  preview: (file: string | File) => any;
8
+ download: (file: string | File) => any;
9
9
  "update:show": (show: boolean) => any;
10
10
  }, string, vue.PublicProps, Readonly<FilePreviewProps> & Readonly<{
11
- onDownload?: ((file: string | File) => any) | undefined;
12
11
  onPreview?: ((file: string | File) => any) | undefined;
12
+ onDownload?: ((file: string | File) => any) | undefined;
13
13
  "onUpdate:show"?: ((show: boolean) => any) | undefined;
14
14
  }>, {
15
- inline: boolean;
16
15
  show: boolean;
16
+ inline: boolean;
17
17
  fileName: string;
18
18
  autoPreview: boolean;
19
19
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -37,16 +37,16 @@ declare const __VLS_export: vue.DefineComponent<QRCodeProps, QRCodeExpose, {}, {
37
37
  }, string, vue.PublicProps, Readonly<QRCodeProps> & Readonly<{
38
38
  onError?: ((error: Error) => any) | undefined;
39
39
  }>, {
40
- mode: RenderMode;
41
40
  size: number;
41
+ label: string;
42
+ mode: RenderMode;
43
+ color: string;
42
44
  margin: number;
43
45
  bgColor: string;
44
- color: string;
45
- label: string;
46
- errorCorrectionLevel: ErrorCorrectionLevel;
47
- logo: LogoOptions;
48
46
  showBorder: boolean;
49
47
  showLabel: boolean;
48
+ errorCorrectionLevel: ErrorCorrectionLevel;
49
+ logo: LogoOptions;
50
50
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
51
51
  declare const _default: typeof __VLS_export;
52
52
  //#endregion
@@ -37,16 +37,16 @@ declare const __VLS_export: vue.DefineComponent<QRCodeProps, QRCodeExpose, {}, {
37
37
  }, string, vue.PublicProps, Readonly<QRCodeProps> & Readonly<{
38
38
  onError?: ((error: Error) => any) | undefined;
39
39
  }>, {
40
- mode: RenderMode;
41
40
  size: number;
41
+ label: string;
42
+ mode: RenderMode;
43
+ color: string;
42
44
  margin: number;
43
45
  bgColor: string;
44
- color: string;
45
- label: string;
46
- errorCorrectionLevel: ErrorCorrectionLevel;
47
- logo: LogoOptions;
48
46
  showBorder: boolean;
49
47
  showLabel: boolean;
48
+ errorCorrectionLevel: ErrorCorrectionLevel;
49
+ logo: LogoOptions;
50
50
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
51
51
  declare const _default: typeof __VLS_export;
52
52
  //#endregion
@@ -94,28 +94,28 @@ interface SignatureEmits {
94
94
  //#endregion
95
95
  //#region src/components/C_Signature/index.vue.d.ts
96
96
  declare const __VLS_export: vue.DefineComponent<SignatureProps, SignatureExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
97
- error: (error: Error) => any;
98
- clear: () => any;
99
97
  change: (data: SignatureStroke[]) => any;
98
+ clear: () => any;
99
+ error: (error: Error) => any;
100
100
  "start-draw": () => any;
101
101
  drawing: (point: SignaturePoint) => any;
102
102
  "end-draw": (stroke: SignatureStroke) => any;
103
103
  undo: () => any;
104
104
  redo: () => any;
105
105
  }, string, vue.PublicProps, Readonly<SignatureProps> & Readonly<{
106
- onError?: ((error: Error) => any) | undefined;
107
- onClear?: (() => any) | undefined;
108
106
  onChange?: ((data: SignatureStroke[]) => any) | undefined;
107
+ onClear?: (() => any) | undefined;
108
+ onError?: ((error: Error) => any) | undefined;
109
109
  "onStart-draw"?: (() => any) | undefined;
110
110
  onDrawing?: ((point: SignaturePoint) => any) | undefined;
111
111
  "onEnd-draw"?: ((stroke: SignatureStroke) => any) | undefined;
112
112
  onUndo?: (() => any) | undefined;
113
113
  onRedo?: (() => any) | undefined;
114
114
  }>, {
115
- width: number | string;
116
115
  disabled: boolean;
117
116
  readonly: boolean;
118
117
  height: number | string;
118
+ width: number | string;
119
119
  showToolbar: boolean;
120
120
  maxHistory: number;
121
121
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -94,28 +94,28 @@ interface SignatureEmits {
94
94
  //#endregion
95
95
  //#region src/components/C_Signature/index.vue.d.ts
96
96
  declare const __VLS_export: vue.DefineComponent<SignatureProps, SignatureExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
97
- error: (error: Error) => any;
98
- clear: () => any;
99
97
  change: (data: SignatureStroke[]) => any;
98
+ clear: () => any;
99
+ error: (error: Error) => any;
100
100
  "start-draw": () => any;
101
101
  drawing: (point: SignaturePoint) => any;
102
102
  "end-draw": (stroke: SignatureStroke) => any;
103
103
  undo: () => any;
104
104
  redo: () => any;
105
105
  }, string, vue.PublicProps, Readonly<SignatureProps> & Readonly<{
106
- onError?: ((error: Error) => any) | undefined;
107
- onClear?: (() => any) | undefined;
108
106
  onChange?: ((data: SignatureStroke[]) => any) | undefined;
107
+ onClear?: (() => any) | undefined;
108
+ onError?: ((error: Error) => any) | undefined;
109
109
  "onStart-draw"?: (() => any) | undefined;
110
110
  onDrawing?: ((point: SignaturePoint) => any) | undefined;
111
111
  "onEnd-draw"?: ((stroke: SignatureStroke) => any) | undefined;
112
112
  onUndo?: (() => any) | undefined;
113
113
  onRedo?: (() => any) | undefined;
114
114
  }>, {
115
- width: number | string;
116
115
  disabled: boolean;
117
116
  readonly: boolean;
118
117
  height: number | string;
118
+ width: number | string;
119
119
  showToolbar: boolean;
120
120
  maxHistory: number;
121
121
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -103,6 +103,7 @@ interface UseSplitResizeOptions {
103
103
  disabled: Ref<boolean>;
104
104
  collapsible: Ref<boolean>;
105
105
  step: MaybeRefOrGetter<number>;
106
+ interruptMotion?: () => number | undefined;
106
107
  onUpdateSize?: (size: number) => void;
107
108
  onResize?: (firstSize: number, secondSize: number) => void;
108
109
  onCollapse?: (target: CollapseTarget) => void;
@@ -103,6 +103,7 @@ interface UseSplitResizeOptions {
103
103
  disabled: Ref<boolean>;
104
104
  collapsible: Ref<boolean>;
105
105
  step: MaybeRefOrGetter<number>;
106
+ interruptMotion?: () => number | undefined;
106
107
  onUpdateSize?: (size: number) => void;
107
108
  onResize?: (firstSize: number, secondSize: number) => void;
108
109
  onCollapse?: (target: CollapseTarget) => void;