x-next 1.12.0 → 1.13.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 (127) hide show
  1. package/AI_USAGE/catalog.md +1 -1
  2. package/AI_USAGE/components/alert.md +1 -1
  3. package/AI_USAGE/components/bar-chart.md +1 -1
  4. package/AI_USAGE/components/button.md +1 -1
  5. package/AI_USAGE/components/checkbox.md +1 -1
  6. package/AI_USAGE/components/color-picker.md +1 -1
  7. package/AI_USAGE/components/config-provider.md +1 -1
  8. package/AI_USAGE/components/date-picker.md +1 -1
  9. package/AI_USAGE/components/dialog.md +1 -1
  10. package/AI_USAGE/components/dropdown.md +1 -1
  11. package/AI_USAGE/components/empty.md +1 -1
  12. package/AI_USAGE/components/input.md +1 -1
  13. package/AI_USAGE/components/line-chart.md +1 -1
  14. package/AI_USAGE/components/message-box.md +1 -1
  15. package/AI_USAGE/components/message.md +1 -1
  16. package/AI_USAGE/components/notification.md +1 -1
  17. package/AI_USAGE/components/pagination.md +7 -3
  18. package/AI_USAGE/components/pie-chart.md +1 -1
  19. package/AI_USAGE/components/popconfirm.md +1 -1
  20. package/AI_USAGE/components/popover.md +1 -1
  21. package/AI_USAGE/components/progress.md +1 -1
  22. package/AI_USAGE/components/radio.md +1 -1
  23. package/AI_USAGE/components/rate.md +1 -1
  24. package/AI_USAGE/components/select.md +1 -1
  25. package/AI_USAGE/components/slider.md +1 -1
  26. package/AI_USAGE/components/steps.md +1 -1
  27. package/AI_USAGE/components/switch.md +1 -1
  28. package/AI_USAGE/components/tabs.md +1 -1
  29. package/AI_USAGE/components/textarea.md +1 -1
  30. package/AI_USAGE/components/time-picker.md +1 -1
  31. package/AI_USAGE/components/upload.md +1 -1
  32. package/AI_USAGE/core.md +1 -1
  33. package/AI_USAGE/index.md +1 -1
  34. package/AI_USAGE/recipes/form-on-demand.md +1 -1
  35. package/AI_USAGE.md +8 -4
  36. package/CHANGELOG.md +22 -0
  37. package/dist/components/network/Network.vue.d.ts +7 -3
  38. package/dist/components/network/index.d.ts +10 -2
  39. package/dist/components/network/props.d.ts +5 -0
  40. package/dist/components/network/utils.d.ts +3 -3
  41. package/dist/components/pagination/page-item-ellipsis.vue.d.ts +4 -1
  42. package/dist/components/pagination/page-item-step.vue.d.ts +101 -130
  43. package/dist/components/pagination/page-item.vue.d.ts +1 -0
  44. package/dist/components/pagination/page-jumper.vue.d.ts +1 -1
  45. package/dist/components/pagination/page-options.vue.d.ts +6 -4
  46. package/dist/components/pagination/utils.d.ts +3 -0
  47. package/dist/components/time-range-selector/index.d.ts +6 -6
  48. package/dist/es/_container/resize-observer-v2.js +1 -1
  49. package/dist/es/_container/resize-observer.js +1 -1
  50. package/dist/es/_hooks/use-resize-observer.js +1 -1
  51. package/dist/es/_styles/palette-aliases.js +4 -4
  52. package/dist/es/_virtual/advancedFormat.js +1 -1
  53. package/dist/es/_virtual/customParseFormat.js +1 -1
  54. package/dist/es/_virtual/dayjs.min.js +1 -1
  55. package/dist/es/_virtual/isBetween.js +1 -1
  56. package/dist/es/_virtual/quarterOfYear.js +1 -1
  57. package/dist/es/_virtual/weekOfYear.js +1 -1
  58. package/dist/es/_virtual/weekYear.js +1 -1
  59. package/dist/es/_virtual/zh-cn.js +1 -1
  60. package/dist/es/components/button/Button.js +53 -42
  61. package/dist/es/components/draggable/useDraggable.js +1 -1
  62. package/dist/es/components/form/Form.vue2.js +1 -1
  63. package/dist/es/components/form/FormItem.vue2.js +1 -1
  64. package/dist/es/components/form-input-number/InputNumber.js +1 -1
  65. package/dist/es/components/form-slider/Slider.vue2.js +1 -1
  66. package/dist/es/components/form-slider/slider-ticks.vue2.js +1 -1
  67. package/dist/es/components/form-slider/utils.js +1 -1
  68. package/dist/es/components/menu/MenuItem.js +1 -1
  69. package/dist/es/components/menu/overflow-wrap.js +1 -1
  70. package/dist/es/components/network/Network.vue.js +17 -12
  71. package/dist/es/components/network/Network.vue2.js +78 -70
  72. package/dist/es/components/network/utils.js +112 -71
  73. package/dist/es/components/pagination/Pagination.js +132 -123
  74. package/dist/es/components/pagination/page-item-ellipsis.vue.js +10 -10
  75. package/dist/es/components/pagination/page-item-ellipsis.vue2.js +24 -19
  76. package/dist/es/components/pagination/page-item-step.vue.js +14 -11
  77. package/dist/es/components/pagination/page-item-step.vue2.js +20 -22
  78. package/dist/es/components/pagination/page-item.vue.js +10 -9
  79. package/dist/es/components/pagination/page-item.vue2.js +24 -19
  80. package/dist/es/components/pagination/page-jumper.vue2.js +23 -23
  81. package/dist/es/components/pagination/page-options.vue.js +15 -10
  82. package/dist/es/components/pagination/page-options.vue2.js +21 -17
  83. package/dist/es/components/pagination/utils.js +4 -2
  84. package/dist/es/components/progress/circle.vue2.js +1 -1
  85. package/dist/es/components/progress/line.vue2.js +1 -1
  86. package/dist/es/components/progress/steps.vue2.js +1 -1
  87. package/dist/es/components/rate/Rate.js +1 -1
  88. package/dist/es/components/virtual-list-v2/virtual-list-item.js +1 -1
  89. package/dist/es/locale/en-US.js +2 -0
  90. package/dist/es/locale/zh-CN.js +2 -0
  91. package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/dayjs.min.js +1 -1
  92. package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/locale/zh-cn.js +1 -1
  93. package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/advancedFormat.js +1 -1
  94. package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/customParseFormat.js +1 -1
  95. package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/isBetween.js +1 -1
  96. package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/quarterOfYear.js +1 -1
  97. package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/weekOfYear.js +1 -1
  98. package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/weekYear.js +1 -1
  99. package/dist/es/style.css +1 -1
  100. package/dist/index.cjs +3 -3
  101. package/dist/index.umd.js +3 -3
  102. package/dist/locale/interface.d.ts +3 -0
  103. package/dist/style/base.css +1 -1
  104. package/dist/style/button.css +1 -1
  105. package/dist/style/form-select.css +1 -1
  106. package/dist/style/network.css +1 -1
  107. package/dist/style/pagination.css +1 -1
  108. package/dist/style/table.css +1 -1
  109. package/dist/style.css +1 -1
  110. package/package.json +1 -1
  111. /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/index.js +0 -0
  112. /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/is.js +0 -0
  113. /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/locale/en-US.js +0 -0
  114. /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/array.js +0 -0
  115. /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/base.js +0 -0
  116. /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/boolean.js +0 -0
  117. /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/custom.js +0 -0
  118. /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/number.js +0 -0
  119. /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/object.js +0 -0
  120. /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/string.js +0 -0
  121. /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/rules/type.js +0 -0
  122. /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/util.js +0 -0
  123. /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/compute-scroll-into-view@3.1.1/node_modules/compute-scroll-into-view/dist/index.js +0 -0
  124. /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/number-precision@1.6.0/node_modules/number-precision/build/index.es.js +0 -0
  125. /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +0 -0
  126. /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/scroll-into-view-if-needed@3.1.0/node_modules/scroll-into-view-if-needed/dist/index.js +0 -0
  127. /package/dist/es/{Users/xuyu/Code/x-next/node_modules → node_modules}/.pnpm/sortablejs@1.15.7/node_modules/sortablejs/modular/sortable.esm.js +0 -0
@@ -61,11 +61,103 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
61
61
  disabled: boolean;
62
62
  simple: boolean;
63
63
  }, {}, {
64
- IconLeft: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
65
- fillColor: {
66
- type: ArrayConstructor;
67
- default: undefined;
68
- };
64
+ XIcon: {
65
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
66
+ name: {
67
+ type: StringConstructor;
68
+ default: undefined;
69
+ };
70
+ size: {
71
+ type: (StringConstructor | NumberConstructor)[];
72
+ default: undefined;
73
+ };
74
+ rotate: {
75
+ type: NumberConstructor;
76
+ default: undefined;
77
+ };
78
+ spin: {
79
+ type: BooleanConstructor;
80
+ default: boolean;
81
+ };
82
+ color: {
83
+ type: StringConstructor;
84
+ default: undefined;
85
+ };
86
+ title: {
87
+ type: StringConstructor;
88
+ default: undefined;
89
+ };
90
+ ariaLabel: {
91
+ type: StringConstructor;
92
+ default: undefined;
93
+ };
94
+ strokeWidth: {
95
+ type: (StringConstructor | NumberConstructor)[];
96
+ default: undefined;
97
+ };
98
+ }>> & Readonly<{}>, () => VNode, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
99
+ name: string;
100
+ title: string;
101
+ size: string | number;
102
+ rotate: number;
103
+ spin: boolean;
104
+ color: string;
105
+ ariaLabel: string;
106
+ strokeWidth: string | number;
107
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
108
+ P: {};
109
+ B: {};
110
+ D: {};
111
+ C: {};
112
+ M: {};
113
+ Defaults: {};
114
+ }, Readonly<import('vue').ExtractPropTypes<{
115
+ name: {
116
+ type: StringConstructor;
117
+ default: undefined;
118
+ };
119
+ size: {
120
+ type: (StringConstructor | NumberConstructor)[];
121
+ default: undefined;
122
+ };
123
+ rotate: {
124
+ type: NumberConstructor;
125
+ default: undefined;
126
+ };
127
+ spin: {
128
+ type: BooleanConstructor;
129
+ default: boolean;
130
+ };
131
+ color: {
132
+ type: StringConstructor;
133
+ default: undefined;
134
+ };
135
+ title: {
136
+ type: StringConstructor;
137
+ default: undefined;
138
+ };
139
+ ariaLabel: {
140
+ type: StringConstructor;
141
+ default: undefined;
142
+ };
143
+ strokeWidth: {
144
+ type: (StringConstructor | NumberConstructor)[];
145
+ default: undefined;
146
+ };
147
+ }>> & Readonly<{}>, () => VNode, {}, {}, {}, {
148
+ name: string;
149
+ title: string;
150
+ size: string | number;
151
+ rotate: number;
152
+ spin: boolean;
153
+ color: string;
154
+ ariaLabel: string;
155
+ strokeWidth: string | number;
156
+ }>;
157
+ __isFragment?: never;
158
+ __isTeleport?: never;
159
+ __isSuspense?: never;
160
+ } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
69
161
  name: {
70
162
  type: StringConstructor;
71
163
  default: undefined;
@@ -98,44 +190,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
98
190
  type: (StringConstructor | NumberConstructor)[];
99
191
  default: undefined;
100
192
  };
101
- }>, () => VNode, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
102
- fillColor: {
103
- type: ArrayConstructor;
104
- default: undefined;
105
- };
106
- name: {
107
- type: StringConstructor;
108
- default: undefined;
109
- };
110
- size: {
111
- type: (StringConstructor | NumberConstructor)[];
112
- default: undefined;
113
- };
114
- rotate: {
115
- type: NumberConstructor;
116
- default: undefined;
117
- };
118
- spin: {
119
- type: BooleanConstructor;
120
- default: boolean;
121
- };
122
- color: {
123
- type: StringConstructor;
124
- default: undefined;
125
- };
126
- title: {
127
- type: StringConstructor;
128
- default: undefined;
129
- };
130
- ariaLabel: {
131
- type: StringConstructor;
132
- default: undefined;
133
- };
134
- strokeWidth: {
135
- type: (StringConstructor | NumberConstructor)[];
136
- default: undefined;
137
- };
138
- }>> & Readonly<{}>, {
193
+ }>> & Readonly<{}>, () => VNode, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
139
194
  name: string;
140
195
  title: string;
141
196
  size: string | number;
@@ -144,92 +199,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
144
199
  color: string;
145
200
  ariaLabel: string;
146
201
  strokeWidth: string | number;
147
- fillColor: unknown[];
148
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
149
- IconRight: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
150
- fillColor: {
151
- type: ArrayConstructor;
152
- default: undefined;
153
- };
154
- name: {
155
- type: StringConstructor;
156
- default: undefined;
157
- };
158
- size: {
159
- type: (StringConstructor | NumberConstructor)[];
160
- default: undefined;
161
- };
162
- rotate: {
163
- type: NumberConstructor;
164
- default: undefined;
165
- };
166
- spin: {
167
- type: BooleanConstructor;
168
- default: boolean;
169
- };
170
- color: {
171
- type: StringConstructor;
172
- default: undefined;
173
- };
174
- title: {
175
- type: StringConstructor;
176
- default: undefined;
177
- };
178
- ariaLabel: {
179
- type: StringConstructor;
180
- default: undefined;
181
- };
182
- strokeWidth: {
183
- type: (StringConstructor | NumberConstructor)[];
184
- default: undefined;
185
- };
186
- }>, () => VNode, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
187
- fillColor: {
188
- type: ArrayConstructor;
189
- default: undefined;
190
- };
191
- name: {
192
- type: StringConstructor;
193
- default: undefined;
194
- };
195
- size: {
196
- type: (StringConstructor | NumberConstructor)[];
197
- default: undefined;
198
- };
199
- rotate: {
200
- type: NumberConstructor;
201
- default: undefined;
202
- };
203
- spin: {
204
- type: BooleanConstructor;
205
- default: boolean;
206
- };
207
- color: {
208
- type: StringConstructor;
209
- default: undefined;
210
- };
211
- title: {
212
- type: StringConstructor;
213
- default: undefined;
214
- };
215
- ariaLabel: {
216
- type: StringConstructor;
217
- default: undefined;
218
- };
219
- strokeWidth: {
220
- type: (StringConstructor | NumberConstructor)[];
221
- default: undefined;
222
- };
223
- }>> & Readonly<{}>, {
224
- name: string;
225
- title: string;
226
- size: string | number;
227
- rotate: number;
228
- spin: boolean;
229
- color: string;
230
- ariaLabel: string;
231
- strokeWidth: string | number;
232
- fillColor: unknown[];
233
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
202
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
203
+ install(app: import('vue').App): void;
204
+ };
234
205
  }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
235
206
  export default _default;
@@ -17,6 +17,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
17
17
  type: PropType<CSSProperties>;
18
18
  };
19
19
  }>, {
20
+ pageLabel: import('vue').ComputedRef<string>;
20
21
  className: {
21
22
  block: string;
22
23
  element: (className: string) => string;
@@ -39,7 +39,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
39
39
  })[]>;
40
40
  inputValue: import('vue').Ref<number | undefined, number | undefined>;
41
41
  handleChange: (value: number | undefined) => void;
42
- handleFormatter: (value: number) => string | undefined;
42
+ handleFormatter: (value: string) => string | undefined;
43
43
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "change"[], "change", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
44
44
  current: {
45
45
  type: NumberConstructor;
@@ -1,8 +1,9 @@
1
1
  import { PropType } from 'vue';
2
+ import { SelectProps } from '../form-select';
2
3
  import { Size } from '../../_utils/constant.ts';
3
4
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
5
  sizeOptions: {
5
- type: ArrayConstructor;
6
+ type: PropType<number[]>;
6
7
  required: true;
7
8
  };
8
9
  pageSize: NumberConstructor;
@@ -14,9 +15,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
14
15
  type: PropType<(value: number) => void>;
15
16
  };
16
17
  selectProps: {
17
- type: ObjectConstructor;
18
+ type: PropType<SelectProps>;
18
19
  };
19
20
  }>, {
21
+ pageSizeLabel: import('vue').ComputedRef<string>;
20
22
  className: {
21
23
  block: string;
22
24
  element: (className: string) => string;
@@ -30,7 +32,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
30
32
  handleChange: (value: string | undefined | number | boolean | Record<string, unknown> | (string | number | boolean | Record<string, unknown>)[]) => void;
31
33
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "change"[], "change", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
32
34
  sizeOptions: {
33
- type: ArrayConstructor;
35
+ type: PropType<number[]>;
34
36
  required: true;
35
37
  };
36
38
  pageSize: NumberConstructor;
@@ -42,7 +44,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
42
44
  type: PropType<(value: number) => void>;
43
45
  };
44
46
  selectProps: {
45
- type: ObjectConstructor;
47
+ type: PropType<SelectProps>;
46
48
  };
47
49
  }>> & Readonly<{
48
50
  onChange?: ((...args: any[]) => any) | undefined;
@@ -1,3 +1,6 @@
1
+ export declare const isValidPageSize: (value: unknown) => value is number;
2
+ /** 保证循环边界可推进;显示配置额外限流,避免异常参数创建海量 DOM。 */
3
+ export declare const normalizeInteger: (value: number, fallback: number, min: number, max: number) => number;
1
4
  export declare const getLegalPage: (page: number, { min, max }: {
2
5
  min: number;
3
6
  max: number;
@@ -2,7 +2,7 @@ export declare const TimeRangeSelector: {
2
2
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
3
3
  modelValue: [string, string][];
4
4
  color?: string;
5
- scene?: "default" | "compact" | "schedule" | "monitor";
5
+ scene?: "default" | "compact" | "monitor" | "schedule";
6
6
  overlapAllowed?: boolean;
7
7
  stepMinutes?: number;
8
8
  disabledRanges?: [string, string][];
@@ -21,7 +21,7 @@ export declare const TimeRangeSelector: {
21
21
  }, import('vue').PublicProps, {
22
22
  readonly: boolean;
23
23
  disabled: boolean;
24
- scene: "default" | "compact" | "schedule" | "monitor";
24
+ scene: "default" | "compact" | "monitor" | "schedule";
25
25
  overlapAllowed: boolean;
26
26
  stepMinutes: number;
27
27
  disabledRanges: [string, string][];
@@ -37,7 +37,7 @@ export declare const TimeRangeSelector: {
37
37
  }, Readonly<{
38
38
  modelValue: [string, string][];
39
39
  color?: string;
40
- scene?: "default" | "compact" | "schedule" | "monitor";
40
+ scene?: "default" | "compact" | "monitor" | "schedule";
41
41
  overlapAllowed?: boolean;
42
42
  stepMinutes?: number;
43
43
  disabledRanges?: [string, string][];
@@ -52,7 +52,7 @@ export declare const TimeRangeSelector: {
52
52
  }>, {}, {}, {}, {}, {
53
53
  readonly: boolean;
54
54
  disabled: boolean;
55
- scene: "default" | "compact" | "schedule" | "monitor";
55
+ scene: "default" | "compact" | "monitor" | "schedule";
56
56
  overlapAllowed: boolean;
57
57
  stepMinutes: number;
58
58
  disabledRanges: [string, string][];
@@ -65,7 +65,7 @@ export declare const TimeRangeSelector: {
65
65
  } & import('vue').ComponentOptionsBase<Readonly<{
66
66
  modelValue: [string, string][];
67
67
  color?: string;
68
- scene?: "default" | "compact" | "schedule" | "monitor";
68
+ scene?: "default" | "compact" | "monitor" | "schedule";
69
69
  overlapAllowed?: boolean;
70
70
  stepMinutes?: number;
71
71
  disabledRanges?: [string, string][];
@@ -84,7 +84,7 @@ export declare const TimeRangeSelector: {
84
84
  }, string, {
85
85
  readonly: boolean;
86
86
  disabled: boolean;
87
- scene: "default" | "compact" | "schedule" | "monitor";
87
+ scene: "default" | "compact" | "monitor" | "schedule";
88
88
  overlapAllowed: boolean;
89
89
  stepMinutes: number;
90
90
  disabledRanges: [string, string][];
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, watch as u, onBeforeUnmount as a } from "vue";
2
- import d from "../Users/xuyu/Code/x-next/node_modules/.pnpm/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js";
2
+ import d from "../node_modules/.pnpm/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js";
3
3
  import { useFirstElement as v } from "../_hooks/use-first-element.js";
4
4
  const R = /* @__PURE__ */ p({
5
5
  name: "ResizeObserver",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as u, watch as a, onBeforeUnmount as p } from "vue";
2
- import v from "../Users/xuyu/Code/x-next/node_modules/.pnpm/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js";
2
+ import v from "../node_modules/.pnpm/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js";
3
3
  import { useFirstElement as d } from "../_hooks/use-first-element.js";
4
4
  const R = /* @__PURE__ */ u({
5
5
  name: "ResizeObserver",
@@ -1,4 +1,4 @@
1
- import o from "../Users/xuyu/Code/x-next/node_modules/.pnpm/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js";
1
+ import o from "../node_modules/.pnpm/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js";
2
2
  import { isFunction as n } from "../_utils/is.js";
3
3
  const O = ({
4
4
  elementRef: r,
@@ -74,11 +74,11 @@ const r = {
74
74
  "--x-notification-color-accent-info": "var(--x-color-primary-solid)",
75
75
  "--x-notification-color-icon-bg-info": "var(--x-color-primary-subtle)",
76
76
  "--x-pagination-color-bg-item_active": "var(--x-color-primary-light-1)",
77
- "--x-pagination-color-icon-arrow-text_hover": "var(--x-color-primary-6)",
78
- "--x-pagination-color-item-outline_focus": "var(--x-color-primary-light-3)",
79
- "--x-pagination-color-item-text_active": "var(--x-color-primary-6)",
77
+ "--x-pagination-color-icon-arrow-text_hover": "var(--x-color-primary-text)",
78
+ "--x-pagination-color-item-outline_focus": "var(--x-color-primary-text)",
79
+ "--x-pagination-color-item-text_active": "color-mix( in srgb, var(--x-color-primary-text) 96%, var(--x-color-text-1) )",
80
80
  "--x-pagination-color-item-text_active_disabled": "var(--x-color-primary-light-3)",
81
- "--x-pagination-simple-color-icon-arrow-text_hover": "var(--x-color-primary-6)",
81
+ "--x-pagination-simple-color-icon-arrow-text_hover": "var(--x-color-primary-text)",
82
82
  "--x-picker-color-border_focus": "var(--x-field-color-border-focus)",
83
83
  "--x-picker-color-shadow_focus": "var(--x-field-color-shadow-focus)",
84
84
  "--x-radio-button-color-text_active": "var(--x-color-primary-6)",
@@ -1,5 +1,5 @@
1
1
  import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
2
- import { __require as a } from "../Users/xuyu/Code/x-next/node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/advancedFormat.js";
2
+ import { __require as a } from "../node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/advancedFormat.js";
3
3
  var o = a();
4
4
  const m = /* @__PURE__ */ r(o);
5
5
  export {
@@ -1,5 +1,5 @@
1
1
  import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
2
- import { __require as o } from "../Users/xuyu/Code/x-next/node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/customParseFormat.js";
2
+ import { __require as o } from "../node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/customParseFormat.js";
3
3
  var t = o();
4
4
  const m = /* @__PURE__ */ r(t);
5
5
  export {
@@ -1,5 +1,5 @@
1
1
  import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
2
- import { __require as o } from "../Users/xuyu/Code/x-next/node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/dayjs.min.js";
2
+ import { __require as o } from "../node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/dayjs.min.js";
3
3
  var t = o();
4
4
  const i = /* @__PURE__ */ r(t);
5
5
  export {
@@ -1,5 +1,5 @@
1
1
  import { getDefaultExportFromCjs as e } from "./_commonjsHelpers.js";
2
- import { __require as r } from "../Users/xuyu/Code/x-next/node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/isBetween.js";
2
+ import { __require as r } from "../node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/isBetween.js";
3
3
  var t = r();
4
4
  const i = /* @__PURE__ */ e(t);
5
5
  export {
@@ -1,5 +1,5 @@
1
1
  import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
2
- import { __require as e } from "../Users/xuyu/Code/x-next/node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/quarterOfYear.js";
2
+ import { __require as e } from "../node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/quarterOfYear.js";
3
3
  var t = e();
4
4
  const f = /* @__PURE__ */ r(t);
5
5
  export {
@@ -1,5 +1,5 @@
1
1
  import { getDefaultExportFromCjs as e } from "./_commonjsHelpers.js";
2
- import { __require as r } from "../Users/xuyu/Code/x-next/node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/weekOfYear.js";
2
+ import { __require as r } from "../node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/weekOfYear.js";
3
3
  var o = r();
4
4
  const f = /* @__PURE__ */ e(o);
5
5
  export {
@@ -1,5 +1,5 @@
1
1
  import { getDefaultExportFromCjs as e } from "./_commonjsHelpers.js";
2
- import { __require as r } from "../Users/xuyu/Code/x-next/node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/weekYear.js";
2
+ import { __require as r } from "../node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/weekYear.js";
3
3
  var o = r();
4
4
  const m = /* @__PURE__ */ e(o);
5
5
  export {
@@ -1,2 +1,2 @@
1
- import { __require as r } from "../Users/xuyu/Code/x-next/node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/locale/zh-cn.js";
1
+ import { __require as r } from "../node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/locale/zh-cn.js";
2
2
  r();
@@ -1,73 +1,84 @@
1
- import { defineComponent as O, getCurrentInstance as P, inject as x, reactive as F, computed as t, withDirectives as T, createVNode as u, resolveDirective as L } from "vue";
2
- import { getClassNameMixin as p } from "../../_utils/config.js";
3
- import { buttonProps as A } from "./props.js";
4
- import B from "../../icons/animation/animation-loading.js";
5
- import I from "../../directives/wave.js";
6
- import { buttonGroupInjectionKey as K } from "./context.js";
7
- import { useSize as N } from "../../_hooks/use-size.js";
8
- const H = /* @__PURE__ */ O({
1
+ import { defineComponent as C, getCurrentInstance as E, inject as M, reactive as R, computed as r, withDirectives as Z, createVNode as d, resolveDirective as $, isVNode as q, Comment as H, Fragment as J, Text as Q } from "vue";
2
+ import { getClassNameMixin as U } from "../../_utils/config.js";
3
+ import { buttonProps as W } from "./props.js";
4
+ import X from "../../icons/animation/animation-loading.js";
5
+ import Y from "../../directives/wave.js";
6
+ import { buttonGroupInjectionKey as _ } from "./context.js";
7
+ import { useSize as G } from "../../_hooks/use-size.js";
8
+ const o = (e) => {
9
+ if (Array.isArray(e)) return e.some(o);
10
+ if (e == null || typeof e == "boolean") return !1;
11
+ if (typeof e == "string") return e.trim().length > 0;
12
+ if (q(e)) {
13
+ if (e.type === H) return !1;
14
+ if (e.type === J || e.type === Q)
15
+ return o(e.children);
16
+ }
17
+ return !0;
18
+ }, re = /* @__PURE__ */ C({
9
19
  name: "Button",
10
- props: A,
20
+ props: W,
11
21
  // 显式导入插槽
12
22
  slots: Object,
13
23
  directives: {
14
- wave: I
24
+ wave: Y
15
25
  },
16
26
  emits: ["click"],
17
27
  setup(e, {
18
- slots: l,
19
- emit: h
28
+ slots: n,
29
+ emit: A
20
30
  }) {
21
- const s = P(), a = x(K, void 0), {
22
- mergedSize: k
23
- } = N(void 0, {
31
+ const v = E(), a = M(_, void 0), {
32
+ mergedSize: F
33
+ } = G(void 0, {
24
34
  defaultValue: "medium"
25
- }), r = F({
35
+ }), u = R({
26
36
  clicked: !1,
27
37
  isDebounce: !1
28
- }), i = p("button"), w = (n) => n.replace(/[A-Z]/g, (d) => `-${d.toLowerCase()}`), o = (n) => {
29
- const d = (s == null ? void 0 : s.vnode.props) ?? {};
30
- return Object.prototype.hasOwnProperty.call(d, n) || Object.prototype.hasOwnProperty.call(d, w(n));
31
- }, m = t(() => o("type") ? e.type : (a == null ? void 0 : a.type) ?? e.type), v = t(() => o("size") ? e.size : (a == null ? void 0 : a.size) ?? k.value), b = t(() => o("status") ? e.status : (a == null ? void 0 : a.status) ?? e.status), g = t(() => o("shape") ? e.shape : (a == null ? void 0 : a.shape) ?? e.shape), f = t(() => o("disabled") ? e.disabled : (a == null ? void 0 : a.disabled) ?? e.disabled), D = t(() => [i.block, m.value && m.value !== "default" && i.modifier(m.value), v.value && i.modifier(v.value), b.value && i.modifier(b.value), f.value && i.is("disabled"), e.block && i.modifier("block"), e.plain && i.modifier("plain"), g.value && i.modifier(g.value), e.link && i.modifier("link"), !e.border && i.modifier("hide-border"), c.value && i.modifier("loading"), e.loadingFill && i.modifier("loading-fill"), e.narrow && i.modifier("narrow")]), z = () => {
32
- e.debounce > 0 && !r.isDebounce && (r.isDebounce = !0, setTimeout(() => {
33
- r.isDebounce = !1;
38
+ }), i = U("button"), I = (t) => t.replace(/[A-Z]/g, (c) => `-${c.toLowerCase()}`), f = (t) => {
39
+ const c = (v == null ? void 0 : v.vnode.props) ?? {};
40
+ return Object.prototype.hasOwnProperty.call(c, t) || Object.prototype.hasOwnProperty.call(c, I(t));
41
+ }, m = r(() => f("type") ? e.type : (a == null ? void 0 : a.type) ?? e.type), w = r(() => f("size") ? e.size : (a == null ? void 0 : a.size) ?? F.value), D = r(() => f("status") ? e.status : (a == null ? void 0 : a.status) ?? e.status), y = r(() => f("shape") ? e.shape : (a == null ? void 0 : a.shape) ?? e.shape), s = r(() => f("disabled") ? e.disabled : (a == null ? void 0 : a.disabled) ?? e.disabled), L = r(() => [i.block, m.value && m.value !== "default" && i.modifier(m.value), w.value && i.modifier(w.value), D.value && i.modifier(D.value), s.value && i.is("disabled"), e.block && i.modifier("block"), e.plain && i.modifier("plain"), y.value && i.modifier(y.value), e.link && i.modifier("link"), !e.border && i.modifier("hide-border"), l.value && i.modifier("loading"), e.narrow && i.modifier("narrow")]), N = () => {
42
+ e.debounce > 0 && !u.isDebounce && (u.isDebounce = !0, setTimeout(() => {
43
+ u.isDebounce = !1;
34
44
  }, e.debounce));
35
- }, c = t(() => e.loading || r.clicked || r.isDebounce), S = t(() => f.value || c.value || e.link || m.value === "text"), j = (n) => {
36
- var d;
37
- n.detail > 0 && ((d = n.currentTarget) == null || d.blur()), !(f.value || c.value) && (z(), h("click", n));
45
+ }, l = r(() => e.loading || u.clicked || u.isDebounce), V = r(() => s.value || l.value || e.link || m.value === "text"), B = (t) => {
46
+ var c;
47
+ t.detail > 0 && ((c = t.currentTarget) == null || c.blur()), !(s.value || l.value) && (N(), A("click", t));
38
48
  };
39
49
  return () => {
40
- var n, d, y;
41
- return T(u("button", {
42
- class: D.value,
50
+ var P, j, O, T;
51
+ const t = (P = n.default) == null ? void 0 : P.call(n), c = (j = n.prefix) == null ? void 0 : j.call(n), S = (O = n.icon) == null ? void 0 : O.call(n), x = (T = n.suffix) == null ? void 0 : T.call(n), b = o(t), g = o(c), h = o(S), p = o(x), z = !b && !g && h && !p, k = e.loadingFill || l.value && (y.value === "circle" || z), K = l.value && !k && (b || g || h || p);
52
+ return Z(d("button", {
53
+ class: [L.value, !b && i.modifier("empty-content"), z && i.modifier("only-icon"), k && i.modifier("loading-fill")],
43
54
  type: e.htmlType,
44
- disabled: f.value || c.value,
45
- "aria-busy": c.value || void 0,
46
- onClick: j
47
- }, [u("span", {
55
+ disabled: s.value || l.value,
56
+ "aria-busy": l.value || void 0,
57
+ onClick: B
58
+ }, [d("span", {
48
59
  class: i.element("loading"),
49
60
  "aria-hidden": "true",
50
61
  style: {
51
62
  display: "flex",
52
- opacity: c.value ? 1 : 0,
53
- width: e.loadingFill ? void 0 : c.value ? "1em" : 0,
54
- marginRight: c.value && !e.loadingFill ? "4px" : "0",
63
+ opacity: l.value ? 1 : 0,
64
+ width: k ? void 0 : l.value ? "1em" : 0,
65
+ marginRight: K ? "4px" : "0",
55
66
  overflow: "hidden"
56
67
  }
57
- }, [c.value && u(B, null, null)]), !!l.prefix && u("span", {
68
+ }, [l.value && d(X, null, null)]), g && d("span", {
58
69
  class: i.element("prefix")
59
- }, [(n = l.prefix) == null ? void 0 : n.call(l)]), l.icon && u("span", {
70
+ }, [c]), h && d("span", {
60
71
  class: i.element("prefix")
61
- }, [(d = l.icon) == null ? void 0 : d.call(l)]), u("span", {
72
+ }, [S]), d("span", {
62
73
  class: i.element("content")
63
- }, [(y = l.default) == null ? void 0 : y.call(l)]), l.suffix && u("span", {
74
+ }, [t]), p && d("span", {
64
75
  class: i.element("suffix")
65
- }, [l.suffix()])]), [[L("wave"), {
66
- disabled: S.value
76
+ }, [x])]), [[$("wave"), {
77
+ disabled: V.value
67
78
  }]]);
68
79
  };
69
80
  }
70
81
  });
71
82
  export {
72
- H as default
83
+ re as default
73
84
  };
@@ -1,4 +1,4 @@
1
- import { Sortable as V } from "../../Users/xuyu/Code/x-next/node_modules/.pnpm/sortablejs@1.15.7/node_modules/sortablejs/modular/sortable.esm.js";
1
+ import { Sortable as V } from "../../node_modules/.pnpm/sortablejs@1.15.7/node_modules/sortablejs/modular/sortable.esm.js";
2
2
  import { getCurrentInstance as O, unref as c, watch as W, onMounted as X, nextTick as k, onUnmounted as Z, isRef as D } from "vue";
3
3
  import { error as ee } from "./utils/log.js";
4
4
  import { isString as ne, getElementBySelector as te, isHTMLElement as oe, forEachObject as M, mergeOptionsEvents as re, isOn as le, extend as ie, insertNodeAt as T, removeNode as E, removeElement as R, isUndefined as ue, insertElement as h, moveArrayElement as B } from "./utils/index.js";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as K, ref as U, toRefs as D, computed as m, watch as G, onBeforeUnmount as H, reactive as E, provide as J } from "vue";
2
- import Q from "../../Users/xuyu/Code/x-next/node_modules/.pnpm/scroll-into-view-if-needed@3.1.0/node_modules/scroll-into-view-if-needed/dist/index.js";
2
+ import Q from "../../node_modules/.pnpm/scroll-into-view-if-needed@3.1.0/node_modules/scroll-into-view-if-needed/dist/index.js";
3
3
  import { formInjectionKey as X } from "./context.js";
4
4
  import { isArray as Y, isFunction as S } from "../../_utils/is.js";
5
5
  import { useSize as Z } from "../../_hooks/use-size.js";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as be, toRefs as H, inject as U, computed as i, ref as R, reactive as F, useId as me, nextTick as q, provide as ye, toRef as Se, onMounted as he, onBeforeUnmount as Fe, watch as pe } from "vue";
2
- import { Schema as we } from "../../Users/xuyu/Code/x-next/node_modules/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/index.js";
2
+ import { Schema as we } from "../../node_modules/.pnpm/b-validate@1.5.3/node_modules/b-validate/es/index.js";
3
3
  import { formInjectionKey as Be, formItemInjectionKey as G } from "./context.js";
4
4
  import { Col as Pe, Row as je } from "../grid/index.js";
5
5
  import Ce from "./form-item-label.vue.js";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as J, toRefs as Q, ref as V, computed as D, watch as E, onUnmounted as X, createVNode as o, Fragment as Z } from "vue";
2
- import O from "../../Users/xuyu/Code/x-next/node_modules/.pnpm/number-precision@1.6.0/node_modules/number-precision/build/index.es.js";
2
+ import O from "../../node_modules/.pnpm/number-precision@1.6.0/node_modules/number-precision/build/index.es.js";
3
3
  import { isNumber as s, isUndefined as ee } from "../../_utils/is.js";
4
4
  import ne from "../../icons/default/up.js";
5
5
  import ue from "../../icons/default/down.js";