antdv-next 1.5.0 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (208) hide show
  1. package/dist/_util/hooks/useClosable.d.ts +4 -2
  2. package/dist/_util/hooks/useClosable.js +9 -3
  3. package/dist/_util/hooks/useMergeSemantic.d.ts +7 -4
  4. package/dist/_util/hooks/useMergeSemantic.js +8 -3
  5. package/dist/_util/statusUtils.d.ts +1 -1
  6. package/dist/_util/vueNode.d.ts +2 -6
  7. package/dist/alert/style/index.d.ts +5 -0
  8. package/dist/alert/style/index.js +2 -1
  9. package/dist/anchor/Anchor.js +12 -6
  10. package/dist/antd-with-locales.esm.js +12799 -12587
  11. package/dist/antd-with-locales.js +82 -82
  12. package/dist/antd.css +1 -1
  13. package/dist/antd.esm.js +10540 -10546
  14. package/dist/antd.js +57 -57
  15. package/dist/avatar/AvatarGroup.d.ts +4 -1
  16. package/dist/avatar/AvatarGroup.js +6 -4
  17. package/dist/avatar/index.d.ts +2 -2
  18. package/dist/badge/Ribbon.d.ts +4 -1
  19. package/dist/badge/Ribbon.js +11 -11
  20. package/dist/badge/index.d.ts +3 -2
  21. package/dist/badge/index.js +26 -24
  22. package/dist/border-beam/BorderBeam.d.ts +1 -0
  23. package/dist/border-beam/BorderBeam.js +30 -11
  24. package/dist/border-beam/hooks/useBorderSize.d.ts +3 -7
  25. package/dist/border-beam/hooks/useBorderSize.js +25 -26
  26. package/dist/border-beam/style/index.js +9 -8
  27. package/dist/border-beam/util.d.ts +3 -1
  28. package/dist/border-beam/util.js +4 -1
  29. package/dist/breadcrumb/Breadcrumb.d.ts +4 -1
  30. package/dist/breadcrumb/Breadcrumb.js +12 -7
  31. package/dist/breadcrumb/index.d.ts +2 -2
  32. package/dist/button/Button.js +5 -14
  33. package/dist/button/buttonHelper.d.ts +1 -1
  34. package/dist/button/style/index.js +0 -1
  35. package/dist/calendar/generateCalendar.d.ts +4 -1
  36. package/dist/calendar/generateCalendar.js +8 -5
  37. package/dist/calendar/index.d.ts +2 -2
  38. package/dist/calendar/locale/sq_AL.d.ts +2 -0
  39. package/dist/calendar/locale/sq_AL.js +5 -0
  40. package/dist/card/CardGrid.d.ts +4 -1
  41. package/dist/card/CardGrid.js +7 -4
  42. package/dist/card/CardMeta.d.ts +4 -1
  43. package/dist/card/CardMeta.js +5 -3
  44. package/dist/card/index.d.ts +3 -3
  45. package/dist/carousel/index.d.ts +1 -0
  46. package/dist/carousel/index.js +13 -10
  47. package/dist/collapse/Collapse.js +2 -4
  48. package/dist/color-picker/ColorPicker.js +4 -7
  49. package/dist/color-picker/components/ColorTrigger.js +1 -1
  50. package/dist/color-picker/style/index.js +1 -0
  51. package/dist/components.d.ts +25 -21
  52. package/dist/components.js +4 -3
  53. package/dist/config-provider/context.d.ts +24 -8
  54. package/dist/config-provider/define.d.ts +2 -1
  55. package/dist/config-provider/index.js +10 -0
  56. package/dist/date-picker/generatePicker/generateRangePicker.js +6 -7
  57. package/dist/date-picker/generatePicker/generateSinglePicker.js +2 -5
  58. package/dist/date-picker/generatePicker/useComponents.d.ts +2 -2
  59. package/dist/date-picker/hooks/useMergedPickerSemantic.d.ts +1 -1
  60. package/dist/date-picker/hooks/useMergedPickerSemantic.js +7 -3
  61. package/dist/date-picker/locale/sq_AL.d.ts +6 -0
  62. package/dist/date-picker/locale/sq_AL.js +72 -0
  63. package/dist/date-picker/locale/zh_TW.js +2 -2
  64. package/dist/date-picker/util.d.ts +2 -6
  65. package/dist/descriptions/hooks/useItems.d.ts +4 -4
  66. package/dist/descriptions/index.d.ts +4 -1
  67. package/dist/descriptions/index.js +5 -2
  68. package/dist/divider/index.d.ts +4 -1
  69. package/dist/divider/index.js +9 -6
  70. package/dist/drawer/DrawerPanel.js +5 -3
  71. package/dist/drawer/index.js +9 -13
  72. package/dist/drawer/style/index.js +1 -0
  73. package/dist/dropdown/dropdown.js +4 -6
  74. package/dist/empty/index.d.ts +4 -1
  75. package/dist/empty/index.js +5 -2
  76. package/dist/float-button/BackTop.d.ts +2 -0
  77. package/dist/float-button/BackTop.js +25 -43
  78. package/dist/float-button/FloatButtonGroup.d.ts +4 -1
  79. package/dist/float-button/FloatButtonGroup.js +5 -4
  80. package/dist/float-button/hooks/useScroll.d.ts +16 -0
  81. package/dist/float-button/hooks/useScroll.js +80 -0
  82. package/dist/float-button/index.d.ts +2 -2
  83. package/dist/float-button/style/button.js +23 -0
  84. package/dist/form/ErrorList.js +2 -2
  85. package/dist/form/FormItem/ItemHolder.js +1 -1
  86. package/dist/form/FormItem/index.js +26 -28
  87. package/dist/form/context.d.ts +1 -1
  88. package/dist/form/hooks/useVariant.d.ts +2 -2
  89. package/dist/form/hooks/useVariant.js +15 -5
  90. package/dist/form/style/index.js +25 -12
  91. package/dist/form/types.d.ts +11 -3
  92. package/dist/form/utils/validateUtil.js +4 -0
  93. package/dist/image/hooks/usePreviewConfig.d.ts +5 -4
  94. package/dist/image/index.js +8 -9
  95. package/dist/index.d.ts +25 -21
  96. package/dist/index.js +2 -2
  97. package/dist/input/OTP/index.js +6 -3
  98. package/dist/input/Password.js +4 -1
  99. package/dist/input/Search.js +11 -6
  100. package/dist/input/index.d.ts +1 -1
  101. package/dist/input/style/token.js +2 -1
  102. package/dist/input/style/variants.js +1 -1
  103. package/dist/listy/interface.d.ts +3 -2
  104. package/dist/listy/style/index.js +5 -1
  105. package/dist/locale/en_US.js +4 -0
  106. package/dist/locale/index.d.ts +4 -0
  107. package/dist/locale/is_IS.js +1 -1
  108. package/dist/locale/mn_MN.js +1 -1
  109. package/dist/locale/sq_AL.d.ts +5 -0
  110. package/dist/locale/sq_AL.js +151 -0
  111. package/dist/locale/zh_CN.js +4 -0
  112. package/dist/locale/zh_TW.js +41 -41
  113. package/dist/masonry/Masonry.js +4 -4
  114. package/dist/mentions/index.d.ts +1 -0
  115. package/dist/mentions/index.js +4 -0
  116. package/dist/menu/MenuItem.js +12 -2
  117. package/dist/menu/SubMenu.d.ts +1 -1
  118. package/dist/menu/style/vertical.js +2 -6
  119. package/dist/message/useMessage.js +4 -4
  120. package/dist/modal/PurePanel.js +4 -7
  121. package/dist/notification/index.js +2 -1
  122. package/dist/notification/useNotification.js +12 -9
  123. package/dist/package.js +1 -1
  124. package/dist/package.json.d.ts +4 -0
  125. package/dist/pagination/Pagination.js +14 -6
  126. package/dist/pagination/index.d.ts +2 -2
  127. package/dist/pagination/interface.d.ts +20 -3
  128. package/dist/popconfirm/index.js +17 -8
  129. package/dist/popover/PurePanel.js +10 -0
  130. package/dist/popover/index.js +24 -16
  131. package/dist/qrcode/index.d.ts +4 -1
  132. package/dist/qrcode/index.js +16 -13
  133. package/dist/radio/group.js +2 -2
  134. package/dist/rate/style/index.js +12 -9
  135. package/dist/result/index.d.ts +4 -1
  136. package/dist/result/index.js +7 -4
  137. package/dist/select/index.js +1 -1
  138. package/dist/select/style/dropdown.js +4 -0
  139. package/dist/select/style/index.js +1 -1
  140. package/dist/select/style/select-input.js +1 -1
  141. package/dist/select/style/token.js +4 -2
  142. package/dist/select/useIcons.d.ts +2 -6
  143. package/dist/skeleton/Skeleton.d.ts +4 -1
  144. package/dist/skeleton/Skeleton.js +10 -4
  145. package/dist/skeleton/index.d.ts +2 -2
  146. package/dist/slider/SliderTooltip.js +5 -0
  147. package/dist/slider/index.d.ts +5 -1
  148. package/dist/slider/index.js +9 -9
  149. package/dist/space/Compact.d.ts +5 -2
  150. package/dist/space/Compact.js +8 -3
  151. package/dist/space/index.d.ts +2 -2
  152. package/dist/space/index.js +3 -3
  153. package/dist/spin/index.d.ts +4 -1
  154. package/dist/spin/index.js +7 -5
  155. package/dist/splitter/Splitter.d.ts +4 -1
  156. package/dist/splitter/Splitter.js +4 -2
  157. package/dist/splitter/index.d.ts +2 -2
  158. package/dist/splitter/style/index.js +2 -1
  159. package/dist/statistic/Statistic.d.ts +4 -1
  160. package/dist/statistic/index.d.ts +2 -2
  161. package/dist/steps/index.js +6 -8
  162. package/dist/steps/style/index.js +2 -1
  163. package/dist/table/InternalTable.js +5 -4
  164. package/dist/table/hooks/useFilter/FilterDropdown.js +2 -2
  165. package/dist/table/style/radius.js +4 -0
  166. package/dist/table/style/virtual.js +4 -0
  167. package/dist/tag/hooks/useColor.d.ts +1 -1
  168. package/dist/tag/index.js +3 -3
  169. package/dist/theme/interface/seeds.d.ts +8 -0
  170. package/dist/theme/themes/seed.js +1 -0
  171. package/dist/theme/util/alias.js +1 -1
  172. package/dist/time-picker/locale/sq_AL.d.ts +5 -0
  173. package/dist/time-picker/locale/sq_AL.js +7 -0
  174. package/dist/timeline/Timeline.js +5 -7
  175. package/dist/tooltip/PurePanel.js +5 -0
  176. package/dist/tooltip/index.d.ts +1 -0
  177. package/dist/tooltip/index.js +27 -13
  178. package/dist/tour/index.js +10 -13
  179. package/dist/tour/panelRender.js +2 -8
  180. package/dist/transfer/ListBody.js +2 -1
  181. package/dist/transfer/ListItem.d.ts +1 -0
  182. package/dist/transfer/ListItem.js +6 -2
  183. package/dist/transfer/Transfer.d.ts +4 -1
  184. package/dist/transfer/Transfer.js +5 -2
  185. package/dist/transfer/index.d.ts +2 -2
  186. package/dist/transfer/search.js +2 -2
  187. package/dist/tree/index.d.ts +3 -2
  188. package/dist/tree/index.js +3 -2
  189. package/dist/tree/style/index.js +4 -0
  190. package/dist/tree/utils/dictUtil.js +3 -2
  191. package/dist/typography/Base/EllipsisTooltip.d.ts +6 -1
  192. package/dist/typography/Base/EllipsisTooltip.js +2 -2
  193. package/dist/typography/Base/index.js +9 -26
  194. package/dist/typography/hooks/useCopyClick.d.ts +1 -1
  195. package/dist/typography/hooks/useCopyClick.js +5 -15
  196. package/dist/upload/Upload.js +7 -9
  197. package/dist/upload/UploadList/ListItem.js +6 -13
  198. package/dist/upload/UploadList/index.js +8 -2
  199. package/dist/upload/index.d.ts +2 -2
  200. package/dist/version/token-meta.json +1 -0
  201. package/dist/version/token.json +1 -0
  202. package/dist/watermark/index.d.ts +4 -1
  203. package/dist/watermark/index.js +2 -1
  204. package/package.json +13 -9
  205. package/web-tags.json +1980 -1947
  206. package/web-types.json +5808 -5730
  207. package/dist/slider/useRafLock.d.ts +0 -5
  208. package/dist/slider/useRafLock.js +0 -23
@@ -3,5 +3,5 @@ import SkeletonButton from "./Button.js";
3
3
  import SkeletonNode from "./Node.js";
4
4
  import SkeletonImage from "./Image.js";
5
5
  import SkeletonInput from "./Input.js";
6
- import SkeletonWithSubComponents, { SkeletonProps } from "./Skeleton.js";
7
- export { SkeletonAvatar, SkeletonButton, SkeletonImage, SkeletonInput, SkeletonNode, type SkeletonProps, SkeletonWithSubComponents as default };
6
+ import SkeletonWithSubComponents, { SkeletonProps, SkeletonRef } from "./Skeleton.js";
7
+ export { SkeletonAvatar, SkeletonButton, SkeletonImage, SkeletonInput, SkeletonNode, type SkeletonProps, type SkeletonRef, SkeletonWithSubComponents as default };
@@ -102,6 +102,11 @@ const SliderTooltip = /* @__PURE__ */ defineComponent((props, { slots }) => {
102
102
  required: false,
103
103
  default: void 0
104
104
  },
105
+ disabled: {
106
+ type: Boolean,
107
+ required: false,
108
+ default: void 0
109
+ },
105
110
  getPopupContainer: {
106
111
  type: Function,
107
112
  required: false
@@ -95,6 +95,10 @@ interface SliderEmitsProps {
95
95
  'onUpdate:value'?: SliderEmits['update:value'];
96
96
  onChangeComplete?: SliderEmits['changeComplete'];
97
97
  }
98
+ interface SliderRef {
99
+ focus: () => void;
100
+ blur: () => void;
101
+ }
98
102
  interface SliderSlots {}
99
103
  type SliderRange = SliderProps$1['range'];
100
104
  interface Opens {
@@ -102,4 +106,4 @@ interface Opens {
102
106
  }
103
107
  declare const Slider: import("vue").DefineSetupFnComponent<SliderInternalProps, SliderEmits, SlotsType<SliderSlots>, SliderInternalProps, import("vue").PublicProps>;
104
108
  //#endregion
105
- export { Formatter, HandleGeneratorFn, Opens, SliderBaseProps, SliderClassNamesType, SliderEmits, SliderEmitsProps, SliderInternalProps, SliderMarks, SliderProps, SliderSemanticClassNames, SliderSemanticName, SliderSemanticStyles, SliderSlots, SliderStylesType, SliderTooltipProps, Slider as default };
109
+ export { Formatter, HandleGeneratorFn, Opens, SliderBaseProps, SliderClassNamesType, SliderEmits, SliderEmitsProps, SliderInternalProps, SliderMarks, SliderProps, SliderRef, SliderSemanticClassNames, SliderSemanticName, SliderSemanticStyles, SliderSlots, SliderStylesType, SliderTooltipProps, Slider as default };
@@ -6,11 +6,11 @@ import { useDisabledContext } from "../config-provider/DisabledContext.js";
6
6
  import { useSliderInternalContext } from "./Context.js";
7
7
  import SliderTooltip from "./SliderTooltip.js";
8
8
  import style_default from "./style/index.js";
9
- import useRafLock from "./useRafLock.js";
10
9
  import { cloneVNode, computed, createVNode, defineComponent, isVNode, mergeProps, onMounted, onUnmounted, shallowRef } from "vue";
11
10
  import { clsx } from "@v-c/util";
12
11
  import raf from "@v-c/util/dist/raf";
13
12
  import { omit } from "es-toolkit/compat";
13
+ import useDelayState from "@v-c/util/dist/hooks/useDelayState";
14
14
  import VcSlider from "@v-c/slider";
15
15
  //#region src/slider/index.tsx
16
16
  function _isSlot(s) {
@@ -39,14 +39,14 @@ const Slider = /* @__PURE__ */ defineComponent((props, { attrs, emit, expose })
39
39
  const { handleRender: contextHandleRender, direction: internalContextDirection } = useSliderInternalContext();
40
40
  const mergedDirection = computed(() => internalContextDirection?.value || contextDirection.value);
41
41
  const isRTL = computed(() => mergedDirection.value === "rtl");
42
- const [hoverOpen, setHoverOpen] = useRafLock();
43
- const [focusOpen, setFocusOpen] = useRafLock();
42
+ const [hoverOpen, setHoverOpen] = useDelayState(false);
43
+ const [focusOpen, setFocusOpen] = useDelayState(false);
44
44
  const tooltipProps = computed(() => {
45
45
  return { ...props.tooltip };
46
46
  });
47
47
  const lockOpen = computed(() => tooltipProps.value?.open);
48
48
  const activeOpen = computed(() => (hoverOpen.value || focusOpen.value) && lockOpen.value !== false);
49
- const [dragging, setDragging] = useRafLock();
49
+ const [dragging, setDragging] = useDelayState(false);
50
50
  const onInternalChangeComplete = (nextValues) => {
51
51
  emit("changeComplete", nextValues);
52
52
  setDragging(false);
@@ -59,7 +59,7 @@ const Slider = /* @__PURE__ */ defineComponent((props, { attrs, emit, expose })
59
59
  const [hashId, cssVarCls] = style_default(prefixCls);
60
60
  const onMouseUp = () => {
61
61
  raf(() => {
62
- focusOpen.value = false;
62
+ setFocusOpen(false);
63
63
  }, 1);
64
64
  };
65
65
  onMounted(() => {
@@ -106,7 +106,7 @@ const Slider = /* @__PURE__ */ defineComponent((props, { attrs, emit, expose })
106
106
  }
107
107
  const cloneNode = cloneVNode(node, {
108
108
  onMouseenter: (e) => {
109
- setHoverOpen(true);
109
+ setHoverOpen(true, true);
110
110
  proxyEvent("onMouseenter", e);
111
111
  },
112
112
  onMouseleave: (e) => {
@@ -114,12 +114,12 @@ const Slider = /* @__PURE__ */ defineComponent((props, { attrs, emit, expose })
114
114
  proxyEvent("onMouseleave", e);
115
115
  },
116
116
  onMousedown: (e) => {
117
- setFocusOpen(true);
118
- setDragging(true);
117
+ setFocusOpen(true, true);
118
+ setDragging(true, true);
119
119
  proxyEvent("onMousedown", e);
120
120
  },
121
121
  onFocus: (e) => {
122
- setFocusOpen(true);
122
+ setFocusOpen(true, true);
123
123
  proxyEvent("onFocus", e);
124
124
  },
125
125
  onBlur: (e) => {
@@ -9,6 +9,9 @@ interface SpaceCompactProps extends ComponentBaseProps {
9
9
  orientation?: 'horizontal' | 'vertical';
10
10
  vertical?: boolean;
11
11
  }
12
+ interface SpaceCompactRef {
13
+ nativeElement: HTMLDivElement;
14
+ }
12
15
  interface SpaceCompactItemContextType {
13
16
  compactSize?: SizeType;
14
17
  compactDirection?: 'horizontal' | 'vertical';
@@ -18,10 +21,10 @@ interface SpaceCompactItemContextType {
18
21
  declare function useSpaceCompactItemContext(): Ref<SpaceCompactItemContextType | null, SpaceCompactItemContextType | null>;
19
22
  declare function useCompactItemContext(prefixCls: Ref<string>, direction: Ref<DirectionType>): {
20
23
  compactSize: import("vue").ComputedRef<SizeType>;
21
- compactDirection: import("vue").ComputedRef<"vertical" | "horizontal" | undefined>;
24
+ compactDirection: import("vue").ComputedRef<"horizontal" | "vertical" | undefined>;
22
25
  compactItemClassnames: import("vue").ComputedRef<string>;
23
26
  };
24
27
  declare const NoCompactStyle: import("vue").DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import("vue").PublicProps>;
25
28
  declare const Compact: import("vue").DefineSetupFnComponent<SpaceCompactProps, {}, {}, SpaceCompactProps & {}, import("vue").PublicProps>;
26
29
  //#endregion
27
- export { NoCompactStyle, SpaceCompactItemContextType, SpaceCompactProps, Compact as default, useCompactItemContext, useSpaceCompactItemContext };
30
+ export { NoCompactStyle, SpaceCompactItemContextType, SpaceCompactProps, SpaceCompactRef, Compact as default, useCompactItemContext, useSpaceCompactItemContext };
@@ -2,7 +2,7 @@ import { useOrientation } from "../_util/hooks/useOrientation.js";
2
2
  import { useConfig } from "../config-provider/context.js";
3
3
  import { useSize } from "../config-provider/hooks/useSize.js";
4
4
  import compact_default from "./style/compact.js";
5
- import { computed, createVNode, defineComponent, inject, isVNode, mergeProps, provide, ref, toRefs } from "vue";
5
+ import { computed, createVNode, defineComponent, inject, isVNode, mergeProps, provide, ref, shallowRef, toRefs } from "vue";
6
6
  import { classNames } from "@v-c/util";
7
7
  import { filterEmpty } from "@v-c/util/dist/props-util";
8
8
  //#region src/space/Compact.tsx
@@ -65,7 +65,7 @@ const CompactItem = /* @__PURE__ */ defineComponent((props, { slots }) => {
65
65
  default: void 0
66
66
  }
67
67
  } });
68
- const Compact = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
68
+ const Compact = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose }) => {
69
69
  const mergedSize = useSize((ctx) => props?.size ?? ctx);
70
70
  const configContext = useConfig();
71
71
  const prefixCls = computed(() => configContext.value?.getPrefixCls?.("space-compact", props.prefixCls));
@@ -73,6 +73,8 @@ const Compact = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
73
73
  const compactItemContext = useSpaceCompactItemContext();
74
74
  const { direction, vertical, orientation } = toRefs(props);
75
75
  const [mergedOrientation, mergedVertical] = useOrientation(orientation, vertical, direction);
76
+ const nativeElementRef = shallowRef();
77
+ expose({ nativeElement: nativeElementRef });
76
78
  return () => {
77
79
  const { rootClass, block } = props;
78
80
  const directionConfig = configContext.value?.direction;
@@ -93,7 +95,10 @@ const Compact = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
93
95
  }, _isSlot(child) ? child : { default: () => [child] });
94
96
  });
95
97
  if (childNodes.length === 0) return null;
96
- return createVNode("div", mergeProps({ "class": clx }, attrs), [nodes]);
98
+ return createVNode("div", mergeProps({
99
+ "ref": nativeElementRef,
100
+ "class": clx
101
+ }, attrs), [nodes]);
97
102
  };
98
103
  }, {
99
104
  props: {
@@ -3,7 +3,7 @@ import { SemanticClassNamesType, SemanticStylesType } from "../_util/hooks/useMe
3
3
  import { Orientation } from "../_util/hooks/useOrientation.js";
4
4
  import "../_util/hooks/index.js";
5
5
  import { SizeType } from "../config-provider/SizeContext.js";
6
- import { SpaceCompactProps } from "./Compact.js";
6
+ import { SpaceCompactProps, SpaceCompactRef } from "./Compact.js";
7
7
  import { SpaceCompactCellProps } from "./Addon.js";
8
8
  import { ComponentBaseProps } from "../config-provider/context.js";
9
9
  import { CSSProperties, SlotsType } from "vue";
@@ -42,4 +42,4 @@ declare const Space: import("vue").DefineSetupFnComponent<SpaceProps, EmptyEmit,
42
42
  declare const SpaceCompact: import("vue").DefineSetupFnComponent<SpaceCompactProps, {}, {}, SpaceCompactProps & {}, import("vue").PublicProps>;
43
43
  declare const SpaceAddon: import("vue").DefineSetupFnComponent<SpaceCompactCellProps, {}, {}, SpaceCompactCellProps & {}, import("vue").PublicProps>;
44
44
  //#endregion
45
- export { SpaceAddon, SpaceClassNamesType, SpaceCompact, SpaceProps, SpaceSemanticClassNames, SpaceSemanticName, SpaceSemanticStyles, SpaceSize, SpaceSlots, SpaceStylesType, Space as default };
45
+ export { SpaceAddon, SpaceClassNamesType, SpaceCompact, type SpaceCompactProps, type SpaceCompactRef, SpaceProps, SpaceSemanticClassNames, SpaceSemanticName, SpaceSemanticStyles, SpaceSize, SpaceSlots, SpaceStylesType, Space as default };
@@ -1,7 +1,7 @@
1
1
  import { useOrientation } from "../_util/hooks/useOrientation.js";
2
2
  import { useComponentBaseConfig } from "../config-provider/context.js";
3
3
  import Compact from "./Compact.js";
4
- import { pureAttrs, useMergeSemantic, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
4
+ import { pureAttrs, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
5
5
  import { getSlotPropFn, toPropsRefs as toPropsRefs$1 } from "../_util/tools.js";
6
6
  import { isPresetSize, isValidGapNumber } from "../_util/gapSize.js";
7
7
  import SpaceAddon$1 from "./Addon.js";
@@ -33,7 +33,8 @@ const InternalSpace = /* @__PURE__ */ defineComponent((props, { slots, attrs })
33
33
  align: mergedAlign.value
34
34
  };
35
35
  });
36
- const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(contextClassNames, classes), useToArr(contextStyles, styles), useToProps(mergedProps));
36
+ const contextStyleRoot = useSemanticRootStyle(contextStyle);
37
+ const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(contextClassNames, classes), useToArr(contextStyles, contextStyleRoot, styles), useToProps(mergedProps));
37
38
  const latestIndex = shallowRef(0);
38
39
  useSpaceContextProvider(computed(() => {
39
40
  return { latestIndex: latestIndex.value };
@@ -74,7 +75,6 @@ const InternalSpace = /* @__PURE__ */ defineComponent((props, { slots, attrs })
74
75
  "style": [
75
76
  gapStyle,
76
77
  mergedStyles.value.root,
77
- contextStyle.value,
78
78
  attrs.style
79
79
  ]
80
80
  }, pureAttrs(attrs)), [nodes]);
@@ -54,6 +54,9 @@ interface SpinProps extends ComponentBaseProps {
54
54
  classes?: SpinClassNamesType;
55
55
  styles?: SpinStylesType;
56
56
  }
57
+ interface SpinRef {
58
+ nativeElement: HTMLDivElement;
59
+ }
57
60
  interface SpinSlots {
58
61
  indicator?: () => any;
59
62
  /** @deprecated Please use `description` instead */
@@ -66,4 +69,4 @@ declare const _default: typeof Spin & {
66
69
  setDefaultIndicator: (indicator: VueNode) => void;
67
70
  };
68
71
  //#endregion
69
- export { SpinClassNamesType, SpinProps, SpinSemanticClassNames, SpinSemanticName, SpinSemanticStyles, SpinSlots, SpinStylesType, _default as default };
72
+ export { SpinClassNamesType, SpinProps, SpinRef, SpinSemanticClassNames, SpinSemanticName, SpinSemanticStyles, SpinSlots, SpinStylesType, _default as default };
@@ -1,7 +1,7 @@
1
1
  import { devUseWarning, isDev } from "../_util/warning.js";
2
2
  import { useComponentBaseConfig, useComponentConfig } from "../config-provider/context.js";
3
3
  import { useSize } from "../config-provider/hooks/useSize.js";
4
- import { getAttrStyleAndClass as getAttrStyleAndClass$1, useMergeSemantic, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
4
+ import { getAttrStyleAndClass as getAttrStyleAndClass$1, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
5
5
  import { getSlotPropsFnRun, toPropsRefs as toPropsRefs$1 } from "../_util/tools.js";
6
6
  import Indicator from "./Indicator/index.js";
7
7
  import style_default from "./style/index.js";
@@ -15,7 +15,7 @@ let defaultIndicator;
15
15
  function shouldDelay(spinning, delay) {
16
16
  return !!spinning && !!delay && !Number.isNaN(Number(delay));
17
17
  }
18
- const Spin = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
18
+ const Spin = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose }) => {
19
19
  const componentCtx = useComponentConfig("spin");
20
20
  const { direction, prefixCls, class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles } = useComponentBaseConfig("spin", props, ["indicator"]);
21
21
  const [hashId, cssVarCls] = style_default(prefixCls);
@@ -46,7 +46,10 @@ const Spin = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
46
46
  percent: mergedPercent.value
47
47
  };
48
48
  });
49
- const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(contextClassNames, classes), useToArr(contextStyles, styles), useToProps(mergedProps));
49
+ const contextStyleRoot = useSemanticRootStyle(contextStyle);
50
+ const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(contextClassNames, classes), useToArr(contextStyles, contextStyleRoot, styles), useToProps(mergedProps));
51
+ const nativeElementRef = shallowRef();
52
+ expose({ nativeElement: nativeElementRef });
50
53
  return () => {
51
54
  const { fullscreen, size, rootClass, wrapperClassName } = props;
52
55
  const children = filterEmpty(slots?.default?.() || []);
@@ -79,7 +82,7 @@ const Spin = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
79
82
  ...mergedStyles.value.description
80
83
  }
81
84
  }, [mergedDescription])]);
82
- return createVNode("div", mergeProps(restAttrs, {
85
+ return createVNode("div", mergeProps({ "ref": nativeElementRef }, restAttrs, {
83
86
  "class": classNames(prefixCls.value, {
84
87
  [`${prefixCls.value}-sm`]: mergedSize.value === "small",
85
88
  [`${prefixCls.value}-lg`]: mergedSize.value === "large",
@@ -91,7 +94,6 @@ const Spin = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
91
94
  ...mergedStyles.value.root,
92
95
  ...!isNested ? mergedStyles.value.section : {},
93
96
  ...fullscreen ? mergedStyles.value.mask : {},
94
- ...contextStyle.value,
95
97
  ...style
96
98
  },
97
99
  "aria-live": "polite",
@@ -3,6 +3,9 @@ import { SlotsType } from "vue";
3
3
  //#region src/splitter/Splitter.d.ts
4
4
  interface InternalSplitterProps extends SplitterProps, SplitterEmitsProps {}
5
5
  interface SplitterEmitsProps {}
6
+ interface SplitterRef {
7
+ nativeElement: HTMLDivElement;
8
+ }
6
9
  declare const Splitter: import("vue").DefineSetupFnComponent<InternalSplitterProps, SplitterEmits, SlotsType<SplitterSlots>, InternalSplitterProps, import("vue").PublicProps>;
7
10
  //#endregion
8
- export { InternalSplitterProps, SplitterEmitsProps, Splitter as default };
11
+ export { InternalSplitterProps, SplitterEmitsProps, SplitterRef, Splitter as default };
@@ -16,7 +16,7 @@ import { clsx } from "@v-c/util";
16
16
  import { omit } from "es-toolkit";
17
17
  import ResizeObserver from "@v-c/resize-observer";
18
18
  //#region src/splitter/Splitter.tsx
19
- const Splitter = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
19
+ const Splitter = /* @__PURE__ */ defineComponent((props, { slots, attrs, expose }) => {
20
20
  const { prefixCls, rootPrefixCls, direction, class: contextClassName, style: contextStyle, classes: contextClassNames, styles: contextStyles } = useComponentBaseConfig("splitter", props);
21
21
  const { classes, styles, orientation, layout, vertical } = toPropsRefs(props, "classes", "styles", "orientation", "layout", "vertical");
22
22
  const rootCls = useCSSVarCls(prefixCls);
@@ -83,6 +83,8 @@ const Splitter = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
83
83
  }
84
84
  return mergedSizes;
85
85
  });
86
+ const nativeElementRef = shallowRef();
87
+ expose({ nativeElement: nativeElementRef });
86
88
  return () => {
87
89
  const { rootClass, lazy, draggerIcon, collapsible, collapsibleIcon } = props;
88
90
  const mergedCollapsibleIcon = collapsible?.icon ?? collapsibleIcon;
@@ -94,7 +96,7 @@ const Splitter = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
94
96
  ...mergedStyles.value.root,
95
97
  ...style
96
98
  };
97
- return createVNode(ResizeObserver, { "onResize": onContainerResize }, { default: () => [createVNode("div", mergeProps(restAttrs, {
99
+ return createVNode(ResizeObserver, { "onResize": onContainerResize }, { default: () => [createVNode("div", mergeProps({ "ref": nativeElementRef }, restAttrs, {
98
100
  "style": mergedStyle,
99
101
  "class": containerClassName
100
102
  }), [items.value?.map?.((item, idx) => {
@@ -1,7 +1,7 @@
1
1
  import { PanelProps, SplitterEmits, SplitterSlots } from "./interface.js";
2
- import Splitter, { InternalSplitterProps } from "./Splitter.js";
2
+ import Splitter, { InternalSplitterProps, SplitterRef } from "./Splitter.js";
3
3
  //#region src/splitter/index.d.ts
4
4
  type SplitterProps = InternalSplitterProps;
5
5
  declare const SplitterPanel: import("vue").DefineSetupFnComponent<PanelProps, {}, {}, PanelProps & {}, import("vue").PublicProps>;
6
6
  //#endregion
7
- export { type SplitterEmits, SplitterPanel, SplitterProps, type SplitterSlots, Splitter as default };
7
+ export { type SplitterEmits, SplitterPanel, SplitterProps, type SplitterRef, type SplitterSlots, Splitter as default };
@@ -1,4 +1,4 @@
1
- import { resetComponent } from "../../style/index.js";
1
+ import { genFocusOutline, resetComponent } from "../../style/index.js";
2
2
  import { genCssVar, genStyleHooks } from "../../theme/util/genStyleUtils.js";
3
3
  //#region src/splitter/style/index.ts
4
4
  const centerStyle = {
@@ -86,6 +86,7 @@ const genSplitterStyle = (token) => {
86
86
  display: "flex",
87
87
  alignItems: "center",
88
88
  justifyContent: "center",
89
+ "&:focus-visible": genFocusOutline(token),
89
90
  [`&:hover:not(${splitBarCls}-collapse-bar-customize)`]: { background: controlItemBgActive },
90
91
  [`&:active:not(${splitBarCls}-collapse-bar-customize)`]: { background: controlItemBgActiveHover },
91
92
  [`${splitBarCls}-collapse-icon`]: {
@@ -42,6 +42,9 @@ interface StatisticEmits {
42
42
  mouseenter: (e: MouseEvent) => void;
43
43
  mouseleave: (e: MouseEvent) => void;
44
44
  }
45
+ interface StatisticRef {
46
+ nativeElement: HTMLDivElement | null;
47
+ }
45
48
  interface StatisticSlots {
46
49
  default: () => any;
47
50
  title: () => any;
@@ -55,4 +58,4 @@ interface StatisticEmitsProps {
55
58
  }
56
59
  declare const Statistic: import("vue").DefineSetupFnComponent<InternalStatisticProps, StatisticEmits, SlotsType<StatisticSlots>, InternalStatisticProps, import("vue").PublicProps>;
57
60
  //#endregion
58
- export { InternalStatisticProps, StatisticClassNamesType, StatisticEmits, StatisticEmitsProps, StatisticProps, StatisticSemanticClassNames, StatisticSemanticName, StatisticSemanticStyles, StatisticSlots, StatisticStylesType, Statistic as default };
61
+ export { InternalStatisticProps, StatisticClassNamesType, StatisticEmits, StatisticEmitsProps, StatisticProps, StatisticRef, StatisticSemanticClassNames, StatisticSemanticName, StatisticSemanticStyles, StatisticSlots, StatisticStylesType, Statistic as default };
@@ -1,4 +1,4 @@
1
- import Statistic, { InternalStatisticProps, StatisticSlots } from "./Statistic.js";
1
+ import Statistic, { InternalStatisticProps, StatisticRef, StatisticSlots } from "./Statistic.js";
2
2
  import StatisticTimer$1, { InternalStatisticTimerProps, StatisticTimeEmits } from "./Timer.js";
3
3
  //#region src/statistic/index.d.ts
4
4
  type StatisticProps = InternalStatisticProps;
@@ -8,4 +8,4 @@ declare const _default: typeof Statistic & {
8
8
  Timer: typeof StatisticTimer$1;
9
9
  };
10
10
  //#endregion
11
- export { StatisticProps, StatisticTimer, StatisticTimerProps, _default as default };
11
+ export { StatisticProps, type StatisticRef, StatisticTimer, StatisticTimerProps, _default as default };
@@ -2,7 +2,7 @@ import { devUseWarning, isDev } from "../_util/warning.js";
2
2
  import { useComponentBaseConfig } from "../config-provider/context.js";
3
3
  import { useSize } from "../config-provider/hooks/useSize.js";
4
4
  import { genCssVar } from "../theme/util/genStyleUtils.js";
5
- import { useMergeSemantic, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
5
+ import { useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
6
6
  import { getSlotPropsFnRun, toPropsRefs as toPropsRefs$1 } from "../_util/tools.js";
7
7
  import InternalTooltip from "../tooltip/index.js";
8
8
  import { TARGET_CLS } from "../_util/wave/interface.js";
@@ -71,7 +71,9 @@ const Steps = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit }) =>
71
71
  percent: mergedPercent.value
72
72
  };
73
73
  });
74
- const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(computed(() => waveEffectClassNames), contextClassNames, classes), useToArr(contextStyles, styles), useToProps(mergedProps));
74
+ const contextStyleRoot = useSemanticRootStyle(contextStyle);
75
+ const styleRoot = useSemanticRootStyle(computed(() => attrs.style));
76
+ const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(computed(() => waveEffectClassNames), contextClassNames, classes), useToArr(contextStyles, contextStyleRoot, styles, styleRoot), useToProps(mergedProps));
75
77
  if (isDev) {
76
78
  const { labelPlacement, progressDot, direction } = props;
77
79
  const warning = devUseWarning("Steps");
@@ -84,7 +86,7 @@ const Steps = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit }) =>
84
86
  }
85
87
  return () => {
86
88
  const { variant, onChange, offset, ellipsis, rootClass, current: _current, initial: _initial, maxCount: _maxCount, ...restProps } = props;
87
- const { className, style, restAttrs } = getAttrStyleAndClass(attrs);
89
+ const { className, restAttrs } = getAttrStyleAndClass(attrs);
88
90
  const iconRender = slots?.iconRender || props?.iconRender;
89
91
  const legacyProgressDotRenderFn = () => {
90
92
  return mergedType.value === "dot" && typeof props.progressDot === "function" ? props.progressDot : void 0;
@@ -154,11 +156,7 @@ const Steps = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit }) =>
154
156
  const itemWrapperRender = mergedType.value === "panel" ? (itemNode) => {
155
157
  return createVNode(Fragment, null, [itemNode, createVNode(PanelArrow, { "prefixCls": prefixCls.value }, null)]);
156
158
  } : void 0;
157
- const mergedStyle = {
158
- [varName("items-offset")]: `${offset}`,
159
- ...contextStyle.value,
160
- ...style
161
- };
159
+ const mergedStyle = { [varName("items-offset")]: `${offset}` };
162
160
  const stepsClassName = clsx(contextClassName.value, `${prefixCls.value}-${variant}`, {
163
161
  [`${prefixCls.value}-${mergedType.value}`]: mergedType.value !== "dot" ? mergedType.value : false,
164
162
  [`${prefixCls.value}-rtl`]: rtlDirection.value === "rtl",
@@ -1,4 +1,4 @@
1
- import { resetComponent, textEllipsis } from "../../style/index.js";
1
+ import { genFocusOutline, resetComponent, textEllipsis } from "../../style/index.js";
2
2
  import { genCssVar, genStyleHooks } from "../../theme/util/genStyleUtils.js";
3
3
  import { mergeToken } from "../../theme/internal.js";
4
4
  import genHorizontalStyle from "./horizontal.js";
@@ -71,6 +71,7 @@ const genBasicStyle = (token) => {
71
71
  },
72
72
  [`${itemCls}-title, ${itemCls}-subtitle, ${itemCls}-content, ${itemCls}-rail`]: { transition: `all ${token.motionDurationSlow}` },
73
73
  [`&${componentCls}-ellipsis`]: { [`${itemCls}-title, ${itemCls}-subtitle, ${itemCls}-content`]: textEllipsis },
74
+ [`${itemCls}[role='button']:focus-visible`]: genFocusOutline(token),
74
75
  [`${itemCls}[role='button']:not(${itemCls}-active):hover`]: { cursor: "pointer" }
75
76
  } };
76
77
  };
@@ -374,15 +374,16 @@ const InternalTable = /* @__PURE__ */ defineComponent((props, { slots, emit, att
374
374
  ...mergedStyles.value.root,
375
375
  ...style
376
376
  };
377
+ const title = resolvePanelRender(slots, props, "title");
378
+ const footer = resolvePanelRender(slots, props, "footer");
379
+ const summary = resolvePanelRender(slots, props, "summary");
377
380
  const tableClassName = clsx({
378
381
  [`${prefixCls.value}-medium`]: mergedSize.value === "middle" || mergedSize.value === "medium",
379
382
  [`${prefixCls.value}-small`]: mergedSize.value === "small",
380
383
  [`${prefixCls.value}-bordered`]: props.bordered,
381
- [`${prefixCls.value}-empty`]: rawData.value.length === 0
384
+ [`${prefixCls.value}-empty`]: rawData.value.length === 0,
385
+ [`${prefixCls.value}-no-header`]: !title && props.showHeader === false
382
386
  }, cssVarCls.value, rootCls.value, hashId.value);
383
- const title = resolvePanelRender(slots, props, "title");
384
- const footer = resolvePanelRender(slots, props, "footer");
385
- const summary = resolvePanelRender(slots, props, "summary");
386
387
  const TableComp = TableComponent.value;
387
388
  const virtualProps = mergedVirtual.value ? { listItemHeight: listItemHeight.value } : {};
388
389
  const mergedScroll = props.scroll ?? contextScroll.value;
@@ -163,8 +163,8 @@ const FilterDropdown = /* @__PURE__ */ defineComponent((props, { slots }) => {
163
163
  const onVisibleChange = (newVisible, info) => {
164
164
  if (info?.source === "trigger") {
165
165
  if (newVisible && propFilteredKeys.value !== void 0) setFilteredKeysSync(wrapStringListType(propFilteredKeys.value));
166
- triggerVisible(newVisible);
167
- if (!newVisible && !hasPropDropdownRender && props.filterOnClose) onConfirm();
166
+ if (!newVisible && !hasPropDropdownRender && !column.value.filterDropdown && props.filterOnClose) onConfirm();
167
+ else triggerVisible(newVisible);
168
168
  }
169
169
  };
170
170
  const dropdownMenuClass = computed(() => clsx({ [`${props.dropdownPrefixCls}-menu-without-submenu`]: !hasSubMenu(column?.value?.filters || []) }));
@@ -10,6 +10,10 @@ const genRadiusStyle = (token) => {
10
10
  [`${componentCls}-header, table`]: { borderRadius: 0 },
11
11
  "table > thead > tr:first-child": { "th:first-child, th:last-child, td:first-child, td:last-child": { borderRadius: 0 } }
12
12
  },
13
+ [`&${componentCls}-bordered${componentCls}-no-header`]: { [`> ${componentCls}-container`]: { [`> ${componentCls}-content, > ${componentCls}-body`]: { "> table > tbody > tr:first-child": {
14
+ "> *:first-child": { borderStartStartRadius: tableRadius },
15
+ "> *:last-child": { borderStartEndRadius: tableRadius }
16
+ } } } },
13
17
  "&-container": {
14
18
  borderStartStartRadius: tableRadius,
15
19
  borderStartEndRadius: tableRadius,
@@ -6,6 +6,10 @@ const genVirtualStyle = (token) => {
6
6
  const rowCellCls = `${componentCls}-expanded-row-cell`;
7
7
  return { [`${componentCls}-wrapper`]: {
8
8
  [`${componentCls}-tbody-virtual`]: {
9
+ [`${componentCls}-tbody-virtual-scrollbar`]: {
10
+ cursor: "pointer",
11
+ "&:hover": { backgroundColor: token.colorFillQuaternary }
12
+ },
9
13
  [`${componentCls}-tbody-virtual-holder-inner`]: { [`
10
14
  & > ${componentCls}-row,
11
15
  & > div:not(${componentCls}-row) > ${componentCls}-row
@@ -9,6 +9,6 @@ declare function useColor(props: {
9
9
  color: Ref<TagProps['color']>;
10
10
  variant: Ref<TagProps['variant']>;
11
11
  bordered: Ref<TagProps['bordered']>;
12
- }, contextVariant?: Ref<TagProps['variant']>): readonly [import("vue").ComputedRef<"outlined" | "solid" | "filled">, import("vue").ComputedRef<string | undefined>, import("vue").ComputedRef<boolean>, import("vue").ComputedRef<boolean>, import("vue").ComputedRef<CSSProperties>];
12
+ }, contextVariant?: Ref<TagProps['variant']>): readonly [import("vue").ComputedRef<"outlined" | "filled" | "solid">, import("vue").ComputedRef<string | undefined>, import("vue").ComputedRef<boolean>, import("vue").ComputedRef<boolean>, import("vue").ComputedRef<CSSProperties>];
13
13
  //#endregion
14
14
  export { useColor as default };
package/dist/tag/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { useComponentBaseConfig, useConfig } from "../config-provider/context.js";
2
- import { pureAttrs, useMergeSemantic, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
2
+ import { pureAttrs, useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
3
3
  import { getSlotPropsFnRun, toPropsRefs as toPropsRefs$1 } from "../_util/tools.js";
4
4
  import { useDisabledContext } from "../config-provider/DisabledContext.js";
5
5
  import wave_default from "../_util/wave/index.js";
@@ -41,7 +41,8 @@ const InternalTag = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit
41
41
  disabled: mergedDisabled?.value
42
42
  };
43
43
  });
44
- const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(contextClassNames, classes), useToArr(contextStyles, styles), useToProps(mergedProps));
44
+ const contextStyleRoot = useSemanticRootStyle(contextStyle);
45
+ const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(contextClassNames, classes), useToArr(contextStyles, contextStyleRoot, styles), useToProps(mergedProps));
45
46
  expose({ tagRef });
46
47
  const triggerClose = (e) => {
47
48
  if (mergedDisabled.value) return;
@@ -98,7 +99,6 @@ const InternalTag = /* @__PURE__ */ defineComponent((props, { slots, attrs, emit
98
99
  const tagStyle = computed(() => {
99
100
  let nextTagStyle = {
100
101
  ...mergedStyles.value?.root,
101
- ...contextStyle.value,
102
102
  ...attrs.style
103
103
  };
104
104
  if (!mergedDisabled.value) nextTagStyle = {
@@ -217,6 +217,14 @@ interface SeedToken extends PresetColorType {
217
217
  * @default false
218
218
  */
219
219
  wireframe: boolean;
220
+ /**
221
+ * @nameZH 聚焦描边
222
+ * @nameEN Focus Outline
223
+ * @desc 用于配置组件聚焦时是否显示可见描边
224
+ * @descEN Used to configure whether components show a visible outline when focused
225
+ * @default true
226
+ */
227
+ focusOutline: boolean;
220
228
  /**
221
229
  * @nameZH 动画风格
222
230
  * @nameEN Motion Style
@@ -53,6 +53,7 @@ const seedToken = {
53
53
  zIndexPopupBase: 1e3,
54
54
  opacityImage: 1,
55
55
  wireframe: false,
56
+ focusOutline: true,
56
57
  motion: true
57
58
  };
58
59
  //#endregion
@@ -57,7 +57,7 @@ function formatToken(derivativeToken) {
57
57
  colorErrorAffix: mergedToken.colorError,
58
58
  colorWarningAffix: mergedToken.colorWarning,
59
59
  fontSizeIcon: mergedToken.fontSizeSM,
60
- lineWidthFocus: mergedToken.lineWidth * 3,
60
+ lineWidthFocus: mergedToken.focusOutline === false ? 0 : mergedToken.lineWidth * 3,
61
61
  lineWidth: mergedToken.lineWidth,
62
62
  controlOutlineWidth: mergedToken.lineWidth * 2,
63
63
  controlInteractiveSize: mergedToken.controlHeight / 2,
@@ -0,0 +1,5 @@
1
+ import { TimePickerLocale } from "../index.js";
2
+ //#region src/time-picker/locale/sq_AL.d.ts
3
+ declare const locale: TimePickerLocale;
4
+ //#endregion
5
+ export { locale as default };
@@ -0,0 +1,7 @@
1
+ //#region src/time-picker/locale/sq_AL.ts
2
+ const locale = {
3
+ placeholder: "Zgjidh kohën",
4
+ rangePlaceholder: ["Koha e fillimit", "Koha e mbarimit"]
5
+ };
6
+ //#endregion
7
+ export { locale as default };
@@ -1,6 +1,6 @@
1
1
  import { useBaseConfig, useComponentBaseConfig } from "../config-provider/context.js";
2
2
  import { genCssVar } from "../theme/util/genStyleUtils.js";
3
- import { useMergeSemantic, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
3
+ import { useMergeSemantic, useSemanticRootStyle, useToArr, useToProps } from "../_util/hooks/useMergeSemantic.js";
4
4
  import { toPropsRefs as toPropsRefs$1 } from "../_util/tools.js";
5
5
  import useCSSVarCls from "../config-provider/hooks/useCSSVarCls.js";
6
6
  import isNonNullable from "../_util/isNonNullable.js";
@@ -79,17 +79,15 @@ const Timeline = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
79
79
  items: mergedItems.value
80
80
  };
81
81
  });
82
- const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(stepsClassNames, contextClassNames, classes), useToArr(contextStyles, styles), useToProps(mergedProps));
82
+ const contextStyleRoot = useSemanticRootStyle(contextStyle);
83
+ const styleRoot = useSemanticRootStyle(computed(() => attrs.style));
84
+ const [mergedClassNames, mergedStyles] = useMergeSemantic(useToArr(stepsClassNames, contextClassNames, classes), useToArr(contextStyles, contextStyleRoot, styles, styleRoot), useToProps(mergedProps));
83
85
  const layoutAlternate = computed(() => {
84
86
  return mergedMode.value === "alternate" || orientation.value === "vertical" && mergedItems.value.some((item) => item.title);
85
87
  });
86
88
  return () => {
87
89
  const { variant = "outlined", titleSpan } = props;
88
- const stepStyle = {
89
- ...contextStyle.value,
90
- ...timeline?.value?.style || {},
91
- ...attrs.style || {}
92
- };
90
+ const stepStyle = {};
93
91
  if (isNonNullable(titleSpan) && mergedMode.value !== "alternate") if (typeof titleSpan === "number" && !Number.isNaN(titleSpan)) stepStyle[varName("head-span")] = titleSpan;
94
92
  else stepStyle[varName("head-span-ptg")] = titleSpan;
95
93
  return createVNode(Steps, mergeProps(omit(attrs, ["class", "style"]), omit(props, [
@@ -105,6 +105,11 @@ const PurePanel = /* @__PURE__ */ defineComponent((props, { attrs, slots }) => {
105
105
  required: false,
106
106
  default: void 0
107
107
  },
108
+ disabled: {
109
+ type: Boolean,
110
+ required: false,
111
+ default: void 0
112
+ },
108
113
  getPopupContainer: {
109
114
  type: Function,
110
115
  required: false
@@ -55,6 +55,7 @@ interface TriggerCommonApi extends ComponentBaseProps {
55
55
  color?: LiteralUnion<PresetColorType>;
56
56
  open?: boolean;
57
57
  defaultOpen?: boolean;
58
+ disabled?: boolean;
58
59
  getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
59
60
  destroyOnHidden?: boolean;
60
61
  zIndex?: number;