x-next 1.11.1 → 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 (116) 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 +40 -0
  37. package/dist/components/network/Network.vue.d.ts +8 -4
  38. package/dist/components/network/index.d.ts +13 -5
  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/table/Table.d.ts +11 -0
  48. package/dist/components/table/context.d.ts +5 -0
  49. package/dist/components/table/dom-listeners.d.ts +23 -0
  50. package/dist/components/table/hooks/use-column-resize.d.ts +2 -1
  51. package/dist/components/table/hooks/use-drag.d.ts +6 -3
  52. package/dist/components/table/hooks/use-keyboard-navigation.d.ts +27 -0
  53. package/dist/components/table/hooks/use-sorter.d.ts +3 -1
  54. package/dist/components/table/index.d.ts +15 -0
  55. package/dist/components/table/interface.d.ts +9 -2
  56. package/dist/components/table/locale.d.ts +8 -7
  57. package/dist/components/table/table-operation-td.d.ts +34 -0
  58. package/dist/components/table/table-td.d.ts +36 -2
  59. package/dist/components/table/table-th.d.ts +34 -0
  60. package/dist/components/table/table-tr.d.ts +34 -0
  61. package/dist/components/time-range-selector/index.d.ts +6 -6
  62. package/dist/components/trend-chart/components/TrendChart.d.ts +1 -1
  63. package/dist/components/trend-chart/index.d.ts +3 -3
  64. package/dist/components/upload/Upload.d.ts +1 -1
  65. package/dist/components/upload/index.d.ts +3 -3
  66. package/dist/es/_styles/palette-aliases.js +4 -4
  67. package/dist/es/components/button/Button.js +53 -42
  68. package/dist/es/components/network/Network.vue.js +17 -12
  69. package/dist/es/components/network/Network.vue2.js +78 -70
  70. package/dist/es/components/network/utils.js +112 -71
  71. package/dist/es/components/pagination/Pagination.js +132 -123
  72. package/dist/es/components/pagination/page-item-ellipsis.vue.js +10 -10
  73. package/dist/es/components/pagination/page-item-ellipsis.vue2.js +24 -19
  74. package/dist/es/components/pagination/page-item-step.vue.js +14 -11
  75. package/dist/es/components/pagination/page-item-step.vue2.js +20 -22
  76. package/dist/es/components/pagination/page-item.vue.js +10 -9
  77. package/dist/es/components/pagination/page-item.vue2.js +24 -19
  78. package/dist/es/components/pagination/page-jumper.vue2.js +23 -23
  79. package/dist/es/components/pagination/page-options.vue.js +15 -10
  80. package/dist/es/components/pagination/page-options.vue2.js +21 -17
  81. package/dist/es/components/pagination/utils.js +4 -2
  82. package/dist/es/components/table/Table.js +947 -713
  83. package/dist/es/components/table/dom-listeners.js +23 -0
  84. package/dist/es/components/table/hooks/use-column-resize.js +27 -18
  85. package/dist/es/components/table/hooks/use-column-sorter.js +22 -29
  86. package/dist/es/components/table/hooks/use-drag.js +23 -20
  87. package/dist/es/components/table/hooks/use-filter.js +43 -43
  88. package/dist/es/components/table/hooks/use-keyboard-navigation.js +69 -0
  89. package/dist/es/components/table/hooks/use-row-selection.js +33 -29
  90. package/dist/es/components/table/hooks/use-sorter.js +86 -38
  91. package/dist/es/components/table/hooks/use-span.js +28 -35
  92. package/dist/es/components/table/locale.js +27 -10
  93. package/dist/es/components/table/table-col-group.vue2.js +9 -9
  94. package/dist/es/components/table/table-operation-td.js +72 -51
  95. package/dist/es/components/table/table-operation-th.js +41 -34
  96. package/dist/es/components/table/table-td.js +100 -77
  97. package/dist/es/components/table/table-th.js +221 -188
  98. package/dist/es/components/table/table-tr.js +11 -8
  99. package/dist/es/components/table/utils.js +104 -94
  100. package/dist/es/components/virtual-list-v2/hooks/use-size.js +47 -41
  101. package/dist/es/components/virtual-list-v2/virtual-list-item.js +29 -16
  102. package/dist/es/locale/en-US.js +9 -1
  103. package/dist/es/locale/index.js +3 -3
  104. package/dist/es/locale/zh-CN.js +9 -1
  105. package/dist/es/style.css +1 -1
  106. package/dist/index.cjs +3 -3
  107. package/dist/index.umd.js +3 -3
  108. package/dist/locale/interface.d.ts +12 -0
  109. package/dist/style/base.css +1 -1
  110. package/dist/style/button.css +1 -1
  111. package/dist/style/form-select.css +1 -1
  112. package/dist/style/network.css +1 -1
  113. package/dist/style/pagination.css +1 -1
  114. package/dist/style/table.css +1 -1
  115. package/dist/style.css +1 -1
  116. package/package.json +1 -1
@@ -48,12 +48,29 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
48
48
  default: number;
49
49
  };
50
50
  renderExpandBtn: {
51
- type: PropType<(record: TableDataWithRaw, stopPropagation?: boolean) => VNode>;
51
+ type: PropType<(record: TableDataWithRaw, stopPropagation?: boolean, loading?: boolean) => VNode>;
52
52
  };
53
53
  summary: {
54
54
  type: BooleanConstructor;
55
55
  default: boolean;
56
56
  };
57
+ tabindex: (StringConstructor | NumberConstructor)[];
58
+ onClick: PropType<(event: MouseEvent) => void>;
59
+ onDblclick: PropType<(event: MouseEvent) => void>;
60
+ onContextmenu: PropType<(event: MouseEvent) => void>;
61
+ onMouseenter: PropType<(event: MouseEvent) => void>;
62
+ onMouseleave: PropType<(event: MouseEvent) => void>;
63
+ onDragstart: PropType<(event: DragEvent) => void>;
64
+ onDragend: PropType<(event: DragEvent) => void>;
65
+ onDragenter: PropType<(event: DragEvent) => void>;
66
+ onDragover: PropType<(event: DragEvent) => void>;
67
+ onDrop: PropType<(event: DragEvent) => void>;
68
+ onKeydown: PropType<(event: KeyboardEvent) => void>;
69
+ onFocus: PropType<(event: FocusEvent) => void>;
70
+ onPointerdown: PropType<(event: PointerEvent) => void>;
71
+ onPointermove: PropType<(event: PointerEvent) => void>;
72
+ onPointerup: PropType<(event: PointerEvent) => void>;
73
+ onPointercancel: PropType<(event: PointerEvent) => void>;
57
74
  }>, () => VNode<import('vue').RendererNode, import('vue').RendererElement, {
58
75
  [key: string]: any;
59
76
  }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
@@ -102,12 +119,29 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
102
119
  default: number;
103
120
  };
104
121
  renderExpandBtn: {
105
- type: PropType<(record: TableDataWithRaw, stopPropagation?: boolean) => VNode>;
122
+ type: PropType<(record: TableDataWithRaw, stopPropagation?: boolean, loading?: boolean) => VNode>;
106
123
  };
107
124
  summary: {
108
125
  type: BooleanConstructor;
109
126
  default: boolean;
110
127
  };
128
+ tabindex: (StringConstructor | NumberConstructor)[];
129
+ onClick: PropType<(event: MouseEvent) => void>;
130
+ onDblclick: PropType<(event: MouseEvent) => void>;
131
+ onContextmenu: PropType<(event: MouseEvent) => void>;
132
+ onMouseenter: PropType<(event: MouseEvent) => void>;
133
+ onMouseleave: PropType<(event: MouseEvent) => void>;
134
+ onDragstart: PropType<(event: DragEvent) => void>;
135
+ onDragend: PropType<(event: DragEvent) => void>;
136
+ onDragenter: PropType<(event: DragEvent) => void>;
137
+ onDragover: PropType<(event: DragEvent) => void>;
138
+ onDrop: PropType<(event: DragEvent) => void>;
139
+ onKeydown: PropType<(event: KeyboardEvent) => void>;
140
+ onFocus: PropType<(event: FocusEvent) => void>;
141
+ onPointerdown: PropType<(event: PointerEvent) => void>;
142
+ onPointermove: PropType<(event: PointerEvent) => void>;
143
+ onPointerup: PropType<(event: PointerEvent) => void>;
144
+ onPointercancel: PropType<(event: PointerEvent) => void>;
111
145
  }>> & Readonly<{}>, {
112
146
  type: "normal" | "expand" | "checkbox" | "radio" | "operation";
113
147
  summary: boolean;
@@ -14,6 +14,23 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
14
14
  default: () => never[];
15
15
  };
16
16
  resizable: BooleanConstructor;
17
+ tabindex: (StringConstructor | NumberConstructor)[];
18
+ onClick: PropType<(event: MouseEvent) => void>;
19
+ onDblclick: PropType<(event: MouseEvent) => void>;
20
+ onContextmenu: PropType<(event: MouseEvent) => void>;
21
+ onMouseenter: PropType<(event: MouseEvent) => void>;
22
+ onMouseleave: PropType<(event: MouseEvent) => void>;
23
+ onDragstart: PropType<(event: DragEvent) => void>;
24
+ onDragend: PropType<(event: DragEvent) => void>;
25
+ onDragenter: PropType<(event: DragEvent) => void>;
26
+ onDragover: PropType<(event: DragEvent) => void>;
27
+ onDrop: PropType<(event: DragEvent) => void>;
28
+ onKeydown: PropType<(event: KeyboardEvent) => void>;
29
+ onFocus: PropType<(event: FocusEvent) => void>;
30
+ onPointerdown: PropType<(event: PointerEvent) => void>;
31
+ onPointermove: PropType<(event: PointerEvent) => void>;
32
+ onPointerup: PropType<(event: PointerEvent) => void>;
33
+ onPointercancel: PropType<(event: PointerEvent) => void>;
17
34
  }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
18
35
  [key: string]: any;
19
36
  }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
@@ -30,6 +47,23 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
30
47
  default: () => never[];
31
48
  };
32
49
  resizable: BooleanConstructor;
50
+ tabindex: (StringConstructor | NumberConstructor)[];
51
+ onClick: PropType<(event: MouseEvent) => void>;
52
+ onDblclick: PropType<(event: MouseEvent) => void>;
53
+ onContextmenu: PropType<(event: MouseEvent) => void>;
54
+ onMouseenter: PropType<(event: MouseEvent) => void>;
55
+ onMouseleave: PropType<(event: MouseEvent) => void>;
56
+ onDragstart: PropType<(event: DragEvent) => void>;
57
+ onDragend: PropType<(event: DragEvent) => void>;
58
+ onDragenter: PropType<(event: DragEvent) => void>;
59
+ onDragover: PropType<(event: DragEvent) => void>;
60
+ onDrop: PropType<(event: DragEvent) => void>;
61
+ onKeydown: PropType<(event: KeyboardEvent) => void>;
62
+ onFocus: PropType<(event: FocusEvent) => void>;
63
+ onPointerdown: PropType<(event: PointerEvent) => void>;
64
+ onPointermove: PropType<(event: PointerEvent) => void>;
65
+ onPointerup: PropType<(event: PointerEvent) => void>;
66
+ onPointercancel: PropType<(event: PointerEvent) => void>;
33
67
  }>> & Readonly<{}>, {
34
68
  column: TableColumnData;
35
69
  dataColumns: TableColumnData[];
@@ -15,6 +15,23 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
15
15
  type: PropType<TableDataWithRaw>;
16
16
  default: () => {};
17
17
  };
18
+ tabindex: (StringConstructor | NumberConstructor)[];
19
+ onClick: PropType<(event: MouseEvent) => void>;
20
+ onDblclick: PropType<(event: MouseEvent) => void>;
21
+ onContextmenu: PropType<(event: MouseEvent) => void>;
22
+ onMouseenter: PropType<(event: MouseEvent) => void>;
23
+ onMouseleave: PropType<(event: MouseEvent) => void>;
24
+ onDragstart: PropType<(event: DragEvent) => void>;
25
+ onDragend: PropType<(event: DragEvent) => void>;
26
+ onDragenter: PropType<(event: DragEvent) => void>;
27
+ onDragover: PropType<(event: DragEvent) => void>;
28
+ onDrop: PropType<(event: DragEvent) => void>;
29
+ onKeydown: PropType<(event: KeyboardEvent) => void>;
30
+ onFocus: PropType<(event: FocusEvent) => void>;
31
+ onPointerdown: PropType<(event: PointerEvent) => void>;
32
+ onPointermove: PropType<(event: PointerEvent) => void>;
33
+ onPointerup: PropType<(event: PointerEvent) => void>;
34
+ onPointercancel: PropType<(event: PointerEvent) => void>;
18
35
  }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
19
36
  [key: string]: any;
20
37
  }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
@@ -32,6 +49,23 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
32
49
  type: PropType<TableDataWithRaw>;
33
50
  default: () => {};
34
51
  };
52
+ tabindex: (StringConstructor | NumberConstructor)[];
53
+ onClick: PropType<(event: MouseEvent) => void>;
54
+ onDblclick: PropType<(event: MouseEvent) => void>;
55
+ onContextmenu: PropType<(event: MouseEvent) => void>;
56
+ onMouseenter: PropType<(event: MouseEvent) => void>;
57
+ onMouseleave: PropType<(event: MouseEvent) => void>;
58
+ onDragstart: PropType<(event: DragEvent) => void>;
59
+ onDragend: PropType<(event: DragEvent) => void>;
60
+ onDragenter: PropType<(event: DragEvent) => void>;
61
+ onDragover: PropType<(event: DragEvent) => void>;
62
+ onDrop: PropType<(event: DragEvent) => void>;
63
+ onKeydown: PropType<(event: KeyboardEvent) => void>;
64
+ onFocus: PropType<(event: FocusEvent) => void>;
65
+ onPointerdown: PropType<(event: PointerEvent) => void>;
66
+ onPointermove: PropType<(event: PointerEvent) => void>;
67
+ onPointerup: PropType<(event: PointerEvent) => void>;
68
+ onPointercancel: PropType<(event: PointerEvent) => void>;
35
69
  }>> & Readonly<{}>, {
36
70
  empty: boolean;
37
71
  expand: boolean;
@@ -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][];
@@ -165,12 +165,12 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
165
165
  padding: string | number;
166
166
  height: string | number;
167
167
  width: string | number;
168
- dataset: import('../props').DataSet;
169
168
  labels: Record<string, unknown> | null;
170
169
  theme: Theme;
171
170
  showPoints: import('../props').ShowPoints;
172
171
  interactive: boolean;
173
172
  tooltipFormatter: (value: number) => string;
173
+ dataset: import('../props').DataSet;
174
174
  }, {}, {
175
175
  TrendChartCurve: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
176
176
  boundary: {
@@ -92,12 +92,12 @@ export declare const TrendChart: {
92
92
  padding: string | number;
93
93
  height: string | number;
94
94
  width: string | number;
95
- dataset: import('./props').DataSet;
96
95
  labels: Record<string, unknown> | null;
97
96
  theme: import('./props').Theme;
98
97
  showPoints: import('./props').ShowPoints;
99
98
  interactive: boolean;
100
99
  tooltipFormatter: (value: number) => string;
100
+ dataset: import('./props').DataSet;
101
101
  }, true, {}, {}, {
102
102
  TrendChartCurve: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
103
103
  boundary: {
@@ -328,12 +328,12 @@ export declare const TrendChart: {
328
328
  padding: string | number;
329
329
  height: string | number;
330
330
  width: string | number;
331
- dataset: import('./props').DataSet;
332
331
  labels: Record<string, unknown> | null;
333
332
  theme: import('./props').Theme;
334
333
  showPoints: import('./props').ShowPoints;
335
334
  interactive: boolean;
336
335
  tooltipFormatter: (value: number) => string;
336
+ dataset: import('./props').DataSet;
337
337
  }>;
338
338
  __isFragment?: never;
339
339
  __isTeleport?: never;
@@ -431,12 +431,12 @@ export declare const TrendChart: {
431
431
  padding: string | number;
432
432
  height: string | number;
433
433
  width: string | number;
434
- dataset: import('./props').DataSet;
435
434
  labels: Record<string, unknown> | null;
436
435
  theme: import('./props').Theme;
437
436
  showPoints: import('./props').ShowPoints;
438
437
  interactive: boolean;
439
438
  tooltipFormatter: (value: number) => string;
439
+ dataset: import('./props').DataSet;
440
440
  }, {}, string, {}, {
441
441
  TrendChartCurve: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
442
442
  boundary: {
@@ -323,8 +323,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
323
323
  imagePreview: boolean;
324
324
  multiple: boolean;
325
325
  tip: string;
326
- draggable: boolean;
327
326
  limit: number;
327
+ draggable: boolean;
328
328
  method: import('./interface').UploadRequestMethod;
329
329
  timeout: number;
330
330
  accept: string;
@@ -177,8 +177,8 @@ export declare const Upload: {
177
177
  imagePreview: boolean;
178
178
  multiple: boolean;
179
179
  tip: string;
180
- draggable: boolean;
181
180
  limit: number;
181
+ draggable: boolean;
182
182
  method: import('./interface').UploadRequestMethod;
183
183
  timeout: number;
184
184
  accept: string;
@@ -396,8 +396,8 @@ export declare const Upload: {
396
396
  imagePreview: boolean;
397
397
  multiple: boolean;
398
398
  tip: string;
399
- draggable: boolean;
400
399
  limit: number;
400
+ draggable: boolean;
401
401
  method: import('./interface').UploadRequestMethod;
402
402
  timeout: number;
403
403
  accept: string;
@@ -604,8 +604,8 @@ export declare const Upload: {
604
604
  imagePreview: boolean;
605
605
  multiple: boolean;
606
606
  tip: string;
607
- draggable: boolean;
608
607
  limit: number;
608
+ draggable: boolean;
609
609
  method: import('./interface').UploadRequestMethod;
610
610
  timeout: number;
611
611
  accept: string;
@@ -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,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,13 +1,14 @@
1
1
  import d from "./Network.vue2.js";
2
- import { openBlock as s, createElementBlock as r, normalizeClass as a, renderSlot as u, createElementVNode as l, Fragment as p, renderList as g, normalizeStyle as S, toDisplayString as i, createCommentVNode as m } from "vue";
2
+ import { openBlock as s, createElementBlock as r, normalizeClass as a, renderSlot as u, createElementVNode as l, toDisplayString as t, Fragment as p, renderList as g, normalizeStyle as S, createCommentVNode as m } from "vue";
3
3
  import y from "../../_virtual/_plugin-vue_export-helper.js";
4
- const f = ["aria-label", "aria-live", "title"];
5
- function c(e, t, v, N, h, k) {
4
+ const c = ["aria-label", "aria-live", "title"];
5
+ function f(e, n, v, N, h, k) {
6
6
  return s(), r("div", {
7
7
  class: a(e.cls),
8
8
  role: "status",
9
9
  "aria-label": e.mergedAriaLabel,
10
10
  "aria-live": e.ariaLive,
11
+ "aria-atomic": "true",
11
12
  title: e.showTooltip ? e.mergedAriaLabel : void 0
12
13
  }, [
13
14
  u(e.$slots, "default", {
@@ -21,40 +22,44 @@ function c(e, t, v, N, h, k) {
21
22
  reason: e.mergedStatus.reason,
22
23
  refresh: e.refresh
23
24
  }, () => [
25
+ l("span", {
26
+ class: a(e.className.element("status-text"))
27
+ }, t(e.mergedAriaLabel), 3),
24
28
  l("div", {
25
29
  class: a(e.className.element("signal")),
26
30
  "aria-hidden": "true"
27
31
  }, [
28
- (s(!0), r(p, null, g(e.lineItems, (o, n) => (s(), r("div", {
29
- key: n,
32
+ (s(!0), r(p, null, g(e.lineItems, (o, i) => (s(), r("div", {
33
+ key: i,
30
34
  class: a([
31
35
  e.className.element("signal--item"),
32
36
  o.active && e.className.is("active")
33
37
  ]),
34
38
  style: S({
35
- height: `${100 / e.lineItems.length * (n + 1)}%`,
39
+ height: `${100 / e.lineItems.length * (i + 1)}%`,
36
40
  "--x-network-line-color": o.color
37
41
  })
38
- }, [...t[0] || (t[0] = [
42
+ }, [...n[0] || (n[0] = [
39
43
  l("i", null, null, -1)
40
44
  ])], 6))), 128))
41
45
  ], 2),
42
46
  e.mergedShowMetrics ? (s(), r("span", {
43
47
  key: 0,
44
- class: a(e.className.element("metrics"))
48
+ class: a(e.className.element("metrics")),
49
+ "aria-hidden": "true"
45
50
  }, [
46
51
  e.mergedStatus.latency !== void 0 ? (s(), r("span", {
47
52
  key: 0,
48
53
  class: a(e.className.element("latency"))
49
- }, i(e.mergedStatus.latency) + "ms ", 3)) : m("", !0),
54
+ }, t(e.mergedStatus.latency) + "ms ", 3)) : m("", !0),
50
55
  l("span", {
51
56
  class: a(e.className.element("speed"))
52
- }, i(e.formattedDownloadSpeed), 3)
57
+ }, t(e.formattedDownloadSpeed), 3)
53
58
  ], 2)) : m("", !0)
54
59
  ])
55
- ], 10, f);
60
+ ], 10, c);
56
61
  }
57
- const L = /* @__PURE__ */ y(d, [["render", c]]);
62
+ const L = /* @__PURE__ */ y(d, [["render", f]]);
58
63
  export {
59
64
  L as default
60
65
  };