@sdata/web-vue 2.2.1 → 2.6.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 (205) hide show
  1. package/README.md +1 -1
  2. package/dist/sd.css +117 -191
  3. package/dist/sd.min.css +1 -1
  4. package/es/_components/picker/input-range.vue.d.ts +2 -2
  5. package/es/_components/transition/expand-transition.vue.d.ts +2 -2
  6. package/es/_hooks/use-responsive.d.ts +2 -2
  7. package/es/_hooks/use-theme-mode.d.ts +3 -0
  8. package/es/{calendar/hooks/use-calendar-theme.js → _hooks/use-theme-mode.js} +14 -10
  9. package/es/_utils/date.d.ts +10 -9
  10. package/es/_utils/date.js +23 -7
  11. package/es/_utils/responsive-observe.d.ts +5 -4
  12. package/es/_utils/responsive-observe.js +2 -1
  13. package/es/alert/index.d.ts +3 -3
  14. package/es/anchor/anchor.vue.d.ts +52 -2
  15. package/es/anchor/anchor.vue_vue_type_script_setup_true_lang.js +75 -15
  16. package/es/anchor/index.d.ts +78 -3
  17. package/es/avatar/index.d.ts +20 -20
  18. package/es/border-beam/border-beam.js +5 -0
  19. package/es/border-beam/border-beam.vue.d.ts +52 -0
  20. package/es/border-beam/border-beam.vue_vue_type_script_setup_true_lang.js +623 -0
  21. package/es/border-beam/index.d.ts +106 -0
  22. package/es/border-beam/index.js +10 -0
  23. package/es/border-beam/pulseDriver.d.ts +2 -0
  24. package/es/border-beam/pulseDriver.js +74 -0
  25. package/es/border-beam/style/css.js +2 -0
  26. package/es/border-beam/style/index.css +21 -0
  27. package/es/border-beam/style/index.d.ts +2 -0
  28. package/es/border-beam/style/index.js +2 -0
  29. package/es/border-beam/style/index.scss +12 -0
  30. package/es/border-beam/style/token.scss +12 -0
  31. package/es/border-beam/styles.d.ts +42 -0
  32. package/es/border-beam/styles.js +3545 -0
  33. package/es/border-beam/types.d.ts +27 -0
  34. package/es/button/button.vue.d.ts +16 -3
  35. package/es/button/button.vue_vue_type_script_setup_true_lang.js +39 -9
  36. package/es/button/index.d.ts +43 -24
  37. package/es/button/interface.d.ts +1 -0
  38. package/es/calendar/components/cell.vue.d.ts +26 -26
  39. package/es/calendar/components/index.vue.d.ts +1 -1
  40. package/es/calendar/components/index.vue_vue_type_script_setup_true_lang.js +3 -2
  41. package/es/calendar/index.d.ts +5 -5
  42. package/es/carousel/index.d.ts +3 -3
  43. package/es/cascader/cascader.vue.d.ts +8 -8
  44. package/es/checkbox/checkbox.d.ts +3 -3
  45. package/es/collapse/collapse-item.d.ts +5 -5
  46. package/es/collapse/index.d.ts +3 -3
  47. package/es/components.d.ts +1 -0
  48. package/es/config-provider/config-provider.vue.d.ts +9 -0
  49. package/es/config-provider/config-provider.vue_vue_type_script_setup_true_lang.js +10 -1
  50. package/es/config-provider/context.d.ts +1 -0
  51. package/es/config-provider/index.d.ts +36 -21
  52. package/es/copy/copy.vue_vue_type_script_setup_true_lang.js +1 -0
  53. package/es/date-picker/hooks/use-cell-class-name.d.ts +1 -0
  54. package/es/date-picker/hooks/use-cell-class-name.js +3 -2
  55. package/es/date-picker/hooks/use-header-value.d.ts +2 -0
  56. package/es/date-picker/hooks/use-header-value.js +23 -19
  57. package/es/date-picker/hooks/use-picker-state.d.ts +2 -0
  58. package/es/date-picker/hooks/use-picker-state.js +3 -3
  59. package/es/date-picker/hooks/use-range-header-value.d.ts +2 -0
  60. package/es/date-picker/hooks/use-range-header-value.js +5 -1
  61. package/es/date-picker/hooks/use-range-picker-state.d.ts +2 -0
  62. package/es/date-picker/hooks/use-range-picker-state.js +3 -3
  63. package/es/date-picker/hooks/use-value-format.d.ts +5 -3
  64. package/es/date-picker/hooks/use-value-format.js +10 -8
  65. package/es/date-picker/index.d.ts +1373 -12
  66. package/es/date-picker/interface.d.ts +7 -0
  67. package/es/date-picker/panels/body.vue.d.ts +24 -6
  68. package/es/date-picker/panels/body.vue_vue_type_script_setup_true_lang.js +13 -12
  69. package/es/date-picker/panels/date/index.vue.d.ts +26 -8
  70. package/es/date-picker/panels/date/index.vue_vue_type_script_setup_true_lang.js +18 -9
  71. package/es/date-picker/panels/header.vue_vue_type_script_setup_true_lang.js +13 -20
  72. package/es/date-picker/panels/month/index.vue.d.ts +13 -8
  73. package/es/date-picker/panels/month/index.vue_vue_type_script_setup_true_lang.js +6 -6
  74. package/es/date-picker/panels/quarter/index.vue.d.ts +13 -8
  75. package/es/date-picker/panels/quarter/index.vue_vue_type_script_setup_true_lang.js +6 -6
  76. package/es/date-picker/panels/shortcuts.vue_vue_type_script_setup_true_lang.js +2 -6
  77. package/es/date-picker/panels/week/index.vue.d.ts +13 -1
  78. package/es/date-picker/panels/week/index.vue_vue_type_script_setup_true_lang.js +5 -2
  79. package/es/date-picker/panels/year/index.vue.d.ts +13 -8
  80. package/es/date-picker/panels/year/index.vue_vue_type_script_setup_true_lang.js +25 -15
  81. package/es/date-picker/picker-panel.vue.d.ts +56 -14
  82. package/es/date-picker/picker-panel.vue_vue_type_script_setup_true_lang.js +36 -19
  83. package/es/date-picker/picker.vue.d.ts +951 -3
  84. package/es/date-picker/picker.vue_vue_type_script_setup_true_lang.js +91 -29
  85. package/es/date-picker/range-picker-panel.vue.d.ts +77 -15
  86. package/es/date-picker/range-picker-panel.vue_vue_type_script_setup_true_lang.js +52 -28
  87. package/es/date-picker/range-picker.vue.d.ts +1348 -4
  88. package/es/date-picker/range-picker.vue_vue_type_script_setup_true_lang.js +114 -34
  89. package/es/descriptions/index.d.ts +24 -24
  90. package/es/drawer/drawer.vue.d.ts +5 -5
  91. package/es/drawer/index.d.ts +15 -15
  92. package/es/dropdown/dropdown-button.vue.d.ts +4 -4
  93. package/es/dropdown/index.d.ts +15 -15
  94. package/es/ellipsis/ellipsis.vue.d.ts +7 -7
  95. package/es/ellipsis/performant-ellipsis.vue.d.ts +5 -5
  96. package/es/form/form-item.vue_vue_type_script_setup_true_lang.js +3 -3
  97. package/es/form/index.d.ts +3 -3
  98. package/es/grid/grid-col.vue_vue_type_script_setup_true_lang.js +2 -2
  99. package/es/grid/grid.vue_vue_type_script_setup_true_lang.js +10 -10
  100. package/es/icon/icon-menu/icon-menu.js +5 -0
  101. package/es/icon/icon-menu/icon-menu.vue_vue_type_script_setup_true_lang.js +52 -0
  102. package/es/icon/icon-menu/index.js +9 -0
  103. package/es/image/preview-toolbar.vue.d.ts +2 -3
  104. package/es/image/preview-toolbar.vue_vue_type_script_setup_true_lang.js +2 -3
  105. package/es/image/preview.vue.d.ts +2 -2
  106. package/es/index.css +117 -191
  107. package/es/index.d.ts +3 -1
  108. package/es/index.js +3 -2
  109. package/es/index.scss +1 -0
  110. package/es/input/index.d.ts +7 -7
  111. package/es/input/input-password.vue.d.ts +3 -3
  112. package/es/json-form/index.d.ts +9 -9
  113. package/es/json-form/json-form-item.vue_vue_type_script_setup_true_lang.js +1 -1
  114. package/es/json-form/json-form.vue.d.ts +3 -3
  115. package/es/layout/content.vue.d.ts +2 -2
  116. package/es/layout/content.vue_vue_type_script_setup_true_lang.js +8 -3
  117. package/es/layout/context.d.ts +12 -9
  118. package/es/layout/context.js +11 -3
  119. package/es/layout/footer.vue.d.ts +2 -2
  120. package/es/layout/footer.vue_vue_type_script_setup_true_lang.js +8 -3
  121. package/es/layout/header.vue.d.ts +3 -30
  122. package/es/layout/header.vue_vue_type_script_setup_true_lang.js +9 -339
  123. package/es/layout/hooks/use-has-sider.d.ts +2 -0
  124. package/es/layout/hooks/use-has-sider.js +38 -0
  125. package/es/layout/index.d.ts +91 -380
  126. package/es/layout/index.js +2 -2
  127. package/es/layout/interface.d.ts +12 -46
  128. package/es/layout/layout.vue.d.ts +4 -2
  129. package/es/layout/layout.vue_vue_type_script_setup_true_lang.js +38 -14
  130. package/es/layout/sider.vue.d.ts +47 -183
  131. package/es/layout/sider.vue_vue_type_script_setup_true_lang.js +191 -370
  132. package/es/layout/style/index.css +112 -190
  133. package/es/layout/style/index.scss +127 -239
  134. package/es/layout/style/token.scss +46 -26
  135. package/es/link/index.d.ts +6 -6
  136. package/es/list/index.d.ts +18 -18
  137. package/es/locale/interface.d.ts +2 -0
  138. package/es/locale/lang/ar-eg.js +46 -0
  139. package/es/locale/lang/de-de.js +46 -0
  140. package/es/locale/lang/es-es.js +46 -0
  141. package/es/locale/lang/fr-fr.js +46 -0
  142. package/es/locale/lang/id-id.js +46 -0
  143. package/es/locale/lang/it-it.js +46 -0
  144. package/es/locale/lang/km-kh.js +46 -0
  145. package/es/locale/lang/ko-kr.js +46 -0
  146. package/es/locale/lang/ms-my.js +46 -0
  147. package/es/locale/lang/pt-pt.js +46 -0
  148. package/es/locale/lang/th-th.js +46 -0
  149. package/es/locale/lang/vi-vn.js +46 -0
  150. package/es/mention/mention.js +2 -0
  151. package/es/menu/base-menu.vue.d.ts +1 -1
  152. package/es/menu/base-menu.vue_vue_type_script_setup_true_lang.js +14 -14
  153. package/es/menu/item.d.ts +1 -1
  154. package/es/menu/menu.d.ts +12 -12
  155. package/es/menu/menu.js +3 -3
  156. package/es/menu/sub-menu-pop.vue_vue_type_script_setup_true_lang.js +3 -4
  157. package/es/modal/index.d.ts +22 -20
  158. package/es/modal/index.js +47 -11
  159. package/es/modal/interface.d.ts +5 -0
  160. package/es/modal/modal.vue.d.ts +4 -4
  161. package/es/popconfirm/index.d.ts +12 -12
  162. package/es/popover/index.d.ts +12 -12
  163. package/es/progress/index.d.ts +6 -6
  164. package/es/qr-code/index.d.ts +3 -3
  165. package/es/radio/radio.d.ts +3 -3
  166. package/es/resize-box/resize-box.vue.d.ts +4 -4
  167. package/es/resize-box/resize-box.vue_vue_type_script_setup_true_lang.js +7 -7
  168. package/es/result/index.d.ts +3 -3
  169. package/es/scrollbar/style/index.css +1 -1
  170. package/es/scrollbar/style/index.scss +4 -1
  171. package/es/sd-vue.js +3 -1
  172. package/es/select/select.d.ts +17 -17
  173. package/es/slider/index.d.ts +3 -3
  174. package/es/split/split.vue.d.ts +4 -4
  175. package/es/split/split.vue_vue_type_script_setup_true_lang.js +6 -6
  176. package/es/steps/index.d.ts +6 -6
  177. package/es/tabs/index.d.ts +6 -6
  178. package/es/tag/index.d.ts +6 -6
  179. package/es/tag/tag.vue.d.ts +2 -2
  180. package/es/textarea/textarea.vue_vue_type_script_setup_true_lang.js +4 -4
  181. package/es/theme-provider/index.d.ts +9 -9
  182. package/es/time-picker/index.d.ts +6 -6
  183. package/es/time-picker/time-picker.vue.d.ts +2 -2
  184. package/es/timeline/index.d.ts +3 -3
  185. package/es/timeline/timeline.d.ts +1 -1
  186. package/es/tooltip/index.d.ts +3 -3
  187. package/es/tour/index.d.ts +3 -3
  188. package/es/tour/tour.vue_vue_type_script_setup_true_lang.js +6 -6
  189. package/es/tree/base-node.vue_vue_type_script_setup_true_lang.js +6 -21
  190. package/es/tree/expand-transition.vue.d.ts +2 -2
  191. package/es/tree/node-switcher.vue.d.ts +1 -12
  192. package/es/tree/node-switcher.vue_vue_type_script_lang.js +1 -5
  193. package/es/tree/tree.vue_vue_type_script_setup_true_lang.js +23 -23
  194. package/es/tree-select/tree-select.vue.d.ts +9 -9
  195. package/es/trigger/trigger.js +2 -1
  196. package/es/verification-code/verification-code.js +17 -7
  197. package/json/vetur-attributes.json +76 -156
  198. package/json/vetur-tags.json +26 -44
  199. package/json/web-types.json +150 -304
  200. package/package.json +5 -5
  201. package/es/_components/render-function.d.ts +0 -14
  202. package/es/_components/render-function.js +0 -14
  203. package/es/calendar/hooks/use-calendar-theme.d.ts +0 -4
  204. package/es/layout/utils.d.ts +0 -1
  205. package/es/layout/utils.js +0 -11
@@ -1,55 +1,21 @@
1
+ import type { CSSProperties } from 'vue';
2
+ import type { SiderBreakpoint } from '../_utils/responsive-observe';
3
+ import type { ScrollbarProps } from '../scrollbar';
4
+ export type SiderTheme = 'light' | 'dark';
5
+ export type CollapseType = 'clickTrigger' | 'responsive';
1
6
  export interface LayoutProps {
2
7
  hasSider?: boolean;
3
8
  }
4
- export type LayoutHeaderDensity = 'default' | 'prominent' | 'comfortable' | 'compact';
5
- export type LayoutHeaderScrollBehavior = 'hide' | 'fully-hide' | 'inverted' | 'collapse' | 'elevate' | 'fade-image';
6
- export interface LayoutHeaderProps {
7
- title?: string;
8
- image?: string;
9
- modelValue?: boolean;
10
- defaultVisible?: boolean;
11
- height?: number | string;
12
- density?: LayoutHeaderDensity;
13
- extended?: boolean;
14
- extensionHeight?: number | string;
15
- collapse?: boolean;
16
- flat?: boolean;
17
- floating?: boolean;
18
- fixed?: boolean;
19
- sticky?: boolean;
20
- absolute?: boolean;
21
- location?: 'top' | 'bottom';
22
- scrollBehavior?: string;
23
- scrollTarget?: string;
24
- scrollThreshold?: number | string;
25
- }
26
9
  export interface SiderProps {
27
- theme?: 'dark' | 'light';
28
- modelValue?: boolean;
29
- defaultVisible?: boolean;
10
+ collapsible?: boolean;
30
11
  collapsed?: boolean;
31
12
  defaultCollapsed?: boolean;
32
- collapsible?: boolean;
33
- rail?: boolean;
34
- defaultRail?: boolean;
35
- railWidth?: number | string;
36
- expandOnHover?: boolean;
37
- disableResizeWatcher?: boolean;
38
- disableRouteWatcher?: boolean;
39
- width?: number | string;
40
- height?: number | string;
41
- collapsedWidth?: number;
42
- temporary?: boolean;
43
- permanent?: boolean;
44
- persistent?: boolean;
45
- mask?: boolean;
46
- maskClosable?: boolean;
47
- escToClose?: boolean;
48
- location?: 'start' | 'end' | 'left' | 'right' | 'top' | 'bottom';
49
- floating?: boolean;
50
- sticky?: boolean;
51
13
  reverseArrow?: boolean;
52
- breakpoint?: 'xxl' | 'xl' | 'lg' | 'md' | 'sm' | 'xs';
53
- resizeDirections?: string[];
14
+ zeroWidthTriggerStyle?: CSSProperties;
54
15
  hideTrigger?: boolean;
16
+ width?: number | string;
17
+ collapsedWidth?: number | string;
18
+ breakpoint?: SiderBreakpoint;
19
+ theme?: SiderTheme;
20
+ scrollbar?: boolean | ScrollbarProps;
55
21
  }
@@ -1,14 +1,16 @@
1
- declare var __VLS_1: {};
1
+ declare var __VLS_8: {};
2
2
  type __VLS_Slots = {} & {
3
- default?: (props: typeof __VLS_1) => any;
3
+ default?: (props: typeof __VLS_8) => any;
4
4
  };
5
5
  declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6
6
  hasSider: {
7
7
  type: BooleanConstructor;
8
+ default: undefined;
8
9
  };
9
10
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
10
11
  hasSider: {
11
12
  type: BooleanConstructor;
13
+ default: undefined;
12
14
  };
13
15
  }>> & Readonly<{}>, {
14
16
  hasSider: boolean;
@@ -1,29 +1,53 @@
1
+ import { configProviderInjectionKey } from "../config-provider/context.js";
1
2
  import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectSpread2.js";
2
3
  import { getPrefixCls } from "../_utils/global-config.js";
3
- import { LayoutSiderInjectionKey } from "./context.js";
4
- import { computed, createElementBlock, defineComponent, normalizeClass, openBlock, provide, ref, renderSlot } from "vue";
5
- //#region components/layout/layout.vue?vue&type=script&setup=true&lang.tsx
4
+ import { LayoutContextInjectionKey } from "./context.js";
5
+ import { useHasSider } from "./hooks/use-has-sider.js";
6
+ import { computed, createBlock, defineComponent, inject, normalizeClass, openBlock, provide, ref, renderSlot, resolveDynamicComponent, useSlots, withCtx } from "vue";
7
+ //#region components/layout/layout.vue?vue&type=script&setup=true&lang.ts
8
+ var tagName = "div";
6
9
  var layout_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent(_objectSpread2(_objectSpread2({}, { name: "Layout" }), {}, {
7
10
  __name: "layout",
8
11
  props: {
9
12
  /**
10
- * @zh 表示子元素里有 Sider,一般不用指定。可用于服务端渲染时避免样式闪动
11
- * @en Indicates that there is a Sider in the sub-element, which generally does not need to be specified. Used to avoid style flicker when rendering on the server side.
13
+ * @zh 是否包含 Sider,设为布尔值时会覆盖自动检测
14
+ * @en Whether contains Sider, overrides auto detection when set to a boolean
12
15
  */
13
- hasSider: { type: Boolean } },
16
+ hasSider: {
17
+ type: Boolean,
18
+ default: void 0
19
+ } },
14
20
  setup(__props) {
15
21
  const props = __props;
16
- const siderIds = ref([]);
17
22
  const prefixCls = getPrefixCls("layout");
18
- const classNames = computed(() => [prefixCls, { [`${prefixCls}-has-sider`]: props.hasSider || siderIds.value.length }]);
19
- provide(LayoutSiderInjectionKey, {
20
- onSiderMount: (id) => siderIds.value.push(id),
21
- onSiderUnMount: (id) => {
22
- siderIds.value = siderIds.value.filter((_id) => _id !== id);
23
- }
23
+ const slots = useSlots();
24
+ const siders = ref([]);
25
+ const mergedHasSider = useHasSider(siders, computed(() => {
26
+ var _slots$default;
27
+ return (_slots$default = slots.default) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots);
28
+ }), computed(() => props.hasSider));
29
+ const configProvider = inject(configProviderInjectionKey, void 0);
30
+ const rtl = computed(() => {
31
+ var _configProvider$rtl;
32
+ return (_configProvider$rtl = configProvider === null || configProvider === void 0 ? void 0 : configProvider.rtl) !== null && _configProvider$rtl !== void 0 ? _configProvider$rtl : false;
24
33
  });
34
+ const classNames = computed(() => [prefixCls, {
35
+ [`${prefixCls}-has-sider`]: mergedHasSider.value,
36
+ [`${prefixCls}-rtl`]: rtl.value
37
+ }]);
38
+ provide(LayoutContextInjectionKey, { siderHook: {
39
+ addSider(id) {
40
+ siders.value = [...siders.value, id];
41
+ },
42
+ removeSider(id) {
43
+ siders.value = siders.value.filter((currentId) => currentId !== id);
44
+ }
45
+ } });
25
46
  return (_ctx, _cache) => {
26
- return openBlock(), createElementBlock("section", { class: normalizeClass(classNames.value) }, [renderSlot(_ctx.$slots, "default")], 2);
47
+ return openBlock(), createBlock(resolveDynamicComponent(tagName), { class: normalizeClass(classNames.value) }, {
48
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
49
+ _: 3
50
+ }, 8, ["class"]);
27
51
  };
28
52
  }
29
53
  }));
@@ -1,29 +1,21 @@
1
- import { PropType } from 'vue';
2
- import { SIDER_LOCATIONS } from './utils';
3
- declare var __VLS_11: {}, __VLS_13: {}, __VLS_15: {}, __VLS_17: {}, __VLS_19: {
4
- collapsed: boolean;
5
- };
1
+ import { type PropType } from 'vue';
2
+ import type { SiderBreakpoint } from '../_utils/responsive-observe';
3
+ import type { CollapseType } from './interface';
4
+ import { type ScrollbarProps } from '../scrollbar';
5
+ declare var __VLS_1: {}, __VLS_3: {}, __VLS_11: {}, __VLS_13: {}, __VLS_20: {};
6
6
  type __VLS_Slots = {} & {
7
- image?: (props: typeof __VLS_11) => any;
7
+ header?: (props: typeof __VLS_1) => any;
8
8
  } & {
9
- prepend?: (props: typeof __VLS_13) => any;
9
+ default?: (props: typeof __VLS_3) => any;
10
10
  } & {
11
- default?: (props: typeof __VLS_15) => any;
11
+ default?: (props: typeof __VLS_11) => any;
12
12
  } & {
13
- append?: (props: typeof __VLS_17) => any;
13
+ trigger?: (props: typeof __VLS_13) => any;
14
14
  } & {
15
- trigger?: (props: typeof __VLS_19) => any;
15
+ trigger?: (props: typeof __VLS_20) => any;
16
16
  };
17
17
  declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
18
- theme: {
19
- type: PropType<"dark" | "light">;
20
- default: string;
21
- };
22
- modelValue: {
23
- type: BooleanConstructor;
24
- default: undefined;
25
- };
26
- defaultVisible: {
18
+ collapsible: {
27
19
  type: BooleanConstructor;
28
20
  default: boolean;
29
21
  };
@@ -35,103 +27,43 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
35
27
  type: BooleanConstructor;
36
28
  default: boolean;
37
29
  };
38
- collapsible: {
30
+ reverseArrow: {
39
31
  type: BooleanConstructor;
32
+ default: boolean;
40
33
  };
41
- rail: {
42
- type: BooleanConstructor;
34
+ zeroWidthTriggerStyle: {
35
+ type: ObjectConstructor;
43
36
  default: undefined;
44
37
  };
45
- defaultRail: {
38
+ hideTrigger: {
46
39
  type: BooleanConstructor;
47
40
  default: boolean;
48
41
  };
49
- railWidth: {
50
- type: (StringConstructor | NumberConstructor)[];
51
- default: number;
52
- };
53
- expandOnHover: {
54
- type: BooleanConstructor;
55
- };
56
- disableResizeWatcher: {
57
- type: BooleanConstructor;
58
- };
59
- disableRouteWatcher: {
60
- type: BooleanConstructor;
61
- };
62
42
  width: {
63
43
  type: (StringConstructor | NumberConstructor)[];
64
44
  default: number;
65
45
  };
66
- height: {
67
- type: (StringConstructor | NumberConstructor)[];
68
- default: undefined;
69
- };
70
46
  collapsedWidth: {
71
- type: NumberConstructor;
47
+ type: (StringConstructor | NumberConstructor)[];
72
48
  default: number;
73
49
  };
74
- temporary: {
75
- type: BooleanConstructor;
76
- };
77
- permanent: {
78
- type: BooleanConstructor;
79
- };
80
- persistent: {
81
- type: BooleanConstructor;
82
- };
83
- mask: {
84
- type: BooleanConstructor;
85
- default: boolean;
86
- };
87
- maskClosable: {
88
- type: BooleanConstructor;
89
- default: boolean;
90
- };
91
- escToClose: {
92
- type: BooleanConstructor;
93
- default: boolean;
94
- };
95
- location: {
96
- type: PropType<(typeof SIDER_LOCATIONS)[number]>;
97
- default: string;
98
- validator: (value: string) => boolean;
99
- };
100
- floating: {
101
- type: BooleanConstructor;
102
- };
103
- sticky: {
104
- type: BooleanConstructor;
105
- };
106
- reverseArrow: {
107
- type: BooleanConstructor;
108
- };
109
50
  breakpoint: {
110
- type: PropType<"xxl" | "xl" | "lg" | "md" | "sm" | "xs">;
111
- };
112
- resizeDirections: {
113
- type: PropType<Array<"left" | "right" | "top" | "bottom">>;
51
+ type: PropType<SiderBreakpoint>;
114
52
  default: undefined;
115
53
  };
116
- hideTrigger: {
117
- type: BooleanConstructor;
118
- };
119
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
120
- collapse: (_collapsed: boolean, _type: "responsive" | "clickTrigger") => any;
121
- "update:modelValue": (_value: boolean) => any;
122
- breakpoint: (_collapsed: boolean) => any;
123
- "update:rail": (_value: boolean) => any;
124
- "update:collapsed": (_collapsed: boolean) => any;
125
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
126
54
  theme: {
127
- type: PropType<"dark" | "light">;
128
- default: string;
55
+ type: () => "light" | "dark";
56
+ default: undefined;
129
57
  };
130
- modelValue: {
131
- type: BooleanConstructor;
58
+ scrollbar: {
59
+ type: PropType<boolean | ScrollbarProps>;
132
60
  default: undefined;
133
61
  };
134
- defaultVisible: {
62
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
63
+ collapse: (collapsed: boolean, type: CollapseType) => any;
64
+ breakpoint: (broken: boolean) => any;
65
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
66
+ collapsible: {
135
67
  type: BooleanConstructor;
136
68
  default: boolean;
137
69
  };
@@ -143,121 +75,53 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
143
75
  type: BooleanConstructor;
144
76
  default: boolean;
145
77
  };
146
- collapsible: {
78
+ reverseArrow: {
147
79
  type: BooleanConstructor;
80
+ default: boolean;
148
81
  };
149
- rail: {
150
- type: BooleanConstructor;
82
+ zeroWidthTriggerStyle: {
83
+ type: ObjectConstructor;
151
84
  default: undefined;
152
85
  };
153
- defaultRail: {
86
+ hideTrigger: {
154
87
  type: BooleanConstructor;
155
88
  default: boolean;
156
89
  };
157
- railWidth: {
158
- type: (StringConstructor | NumberConstructor)[];
159
- default: number;
160
- };
161
- expandOnHover: {
162
- type: BooleanConstructor;
163
- };
164
- disableResizeWatcher: {
165
- type: BooleanConstructor;
166
- };
167
- disableRouteWatcher: {
168
- type: BooleanConstructor;
169
- };
170
90
  width: {
171
91
  type: (StringConstructor | NumberConstructor)[];
172
92
  default: number;
173
93
  };
174
- height: {
175
- type: (StringConstructor | NumberConstructor)[];
176
- default: undefined;
177
- };
178
94
  collapsedWidth: {
179
- type: NumberConstructor;
95
+ type: (StringConstructor | NumberConstructor)[];
180
96
  default: number;
181
97
  };
182
- temporary: {
183
- type: BooleanConstructor;
184
- };
185
- permanent: {
186
- type: BooleanConstructor;
187
- };
188
- persistent: {
189
- type: BooleanConstructor;
190
- };
191
- mask: {
192
- type: BooleanConstructor;
193
- default: boolean;
194
- };
195
- maskClosable: {
196
- type: BooleanConstructor;
197
- default: boolean;
198
- };
199
- escToClose: {
200
- type: BooleanConstructor;
201
- default: boolean;
202
- };
203
- location: {
204
- type: PropType<(typeof SIDER_LOCATIONS)[number]>;
205
- default: string;
206
- validator: (value: string) => boolean;
207
- };
208
- floating: {
209
- type: BooleanConstructor;
210
- };
211
- sticky: {
212
- type: BooleanConstructor;
213
- };
214
- reverseArrow: {
215
- type: BooleanConstructor;
216
- };
217
98
  breakpoint: {
218
- type: PropType<"xxl" | "xl" | "lg" | "md" | "sm" | "xs">;
99
+ type: PropType<SiderBreakpoint>;
100
+ default: undefined;
219
101
  };
220
- resizeDirections: {
221
- type: PropType<Array<"left" | "right" | "top" | "bottom">>;
102
+ theme: {
103
+ type: () => "light" | "dark";
222
104
  default: undefined;
223
105
  };
224
- hideTrigger: {
225
- type: BooleanConstructor;
106
+ scrollbar: {
107
+ type: PropType<boolean | ScrollbarProps>;
108
+ default: undefined;
226
109
  };
227
110
  }>> & Readonly<{
228
- onCollapse?: ((_collapsed: boolean, _type: "responsive" | "clickTrigger") => any) | undefined;
229
- "onUpdate:modelValue"?: ((_value: boolean) => any) | undefined;
230
- onBreakpoint?: ((_collapsed: boolean) => any) | undefined;
231
- "onUpdate:rail"?: ((_value: boolean) => any) | undefined;
232
- "onUpdate:collapsed"?: ((_collapsed: boolean) => any) | undefined;
111
+ onCollapse?: ((collapsed: boolean, type: CollapseType) => any) | undefined;
112
+ onBreakpoint?: ((broken: boolean) => any) | undefined;
233
113
  }>, {
234
- mask: boolean;
235
- height: string | number;
236
- sticky: boolean;
237
- modelValue: boolean;
238
- defaultVisible: boolean;
114
+ scrollbar: boolean | ScrollbarProps;
239
115
  width: string | number;
240
116
  hideTrigger: boolean;
241
117
  collapsed: boolean;
242
- location: "top" | "bottom" | "left" | "right" | "end" | "start";
243
- maskClosable: boolean;
244
- escToClose: boolean;
245
118
  theme: "dark" | "light";
246
- floating: boolean;
247
- defaultCollapsed: boolean;
248
119
  collapsible: boolean;
249
- rail: boolean;
250
- defaultRail: boolean;
251
- railWidth: string | number;
252
- expandOnHover: boolean;
253
- disableResizeWatcher: boolean;
254
- disableRouteWatcher: boolean;
255
- collapsedWidth: number;
256
- temporary: boolean;
257
- permanent: boolean;
258
- persistent: boolean;
120
+ defaultCollapsed: boolean;
259
121
  reverseArrow: boolean;
260
- resizeDirections: ("top" | "bottom" | "left" | "right")[];
122
+ zeroWidthTriggerStyle: Record<string, any>;
123
+ collapsedWidth: string | number;
124
+ breakpoint: SiderBreakpoint;
261
125
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
262
126
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
263
127
  declare const _default: typeof __VLS_export;