@sdata/web-vue 2.3.1 → 2.8.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 (119) hide show
  1. package/README.md +1 -1
  2. package/dist/sd.css +133 -187
  3. package/dist/sd.min.css +1 -1
  4. package/es/_hooks/use-responsive.d.ts +2 -2
  5. package/es/_hooks/use-theme-mode.d.ts +3 -0
  6. package/es/{calendar/hooks/use-calendar-theme.js → _hooks/use-theme-mode.js} +14 -10
  7. package/es/_utils/responsive-observe.d.ts +5 -4
  8. package/es/_utils/responsive-observe.js +2 -1
  9. package/es/alert/index.d.ts +3 -3
  10. package/es/anchor/index.d.ts +3 -3
  11. package/es/avatar/index.d.ts +20 -20
  12. package/es/border-beam/border-beam.js +5 -0
  13. package/es/border-beam/border-beam.vue.d.ts +52 -0
  14. package/es/border-beam/border-beam.vue_vue_type_script_setup_true_lang.js +623 -0
  15. package/es/border-beam/index.d.ts +106 -0
  16. package/es/border-beam/index.js +10 -0
  17. package/es/border-beam/pulseDriver.d.ts +2 -0
  18. package/es/border-beam/pulseDriver.js +74 -0
  19. package/es/border-beam/style/css.js +2 -0
  20. package/es/border-beam/style/index.css +21 -0
  21. package/es/border-beam/style/index.d.ts +2 -0
  22. package/es/border-beam/style/index.js +2 -0
  23. package/es/border-beam/style/index.scss +12 -0
  24. package/es/border-beam/style/token.scss +12 -0
  25. package/es/border-beam/styles.d.ts +42 -0
  26. package/es/border-beam/styles.js +3545 -0
  27. package/es/border-beam/types.d.ts +27 -0
  28. package/es/button/index.d.ts +24 -24
  29. package/es/calendar/components/index.vue.d.ts +1 -1
  30. package/es/calendar/components/index.vue_vue_type_script_setup_true_lang.js +3 -2
  31. package/es/calendar/index.d.ts +5 -5
  32. package/es/carousel/index.d.ts +3 -3
  33. package/es/checkbox/checkbox.d.ts +3 -3
  34. package/es/collapse/collapse-item.d.ts +5 -5
  35. package/es/collapse/index.d.ts +3 -3
  36. package/es/components.d.ts +1 -0
  37. package/es/config-provider/index.d.ts +21 -21
  38. package/es/date-picker/index.d.ts +14 -14
  39. package/es/date-picker/picker.vue.d.ts +2 -2
  40. package/es/date-picker/range-picker.vue.d.ts +2 -2
  41. package/es/descriptions/index.d.ts +24 -24
  42. package/es/drawer/index.d.ts +16 -15
  43. package/es/dropdown/index.d.ts +15 -15
  44. package/es/form/form-item.vue_vue_type_script_setup_true_lang.js +3 -3
  45. package/es/form/index.d.ts +3 -3
  46. package/es/grid/grid-col.vue_vue_type_script_setup_true_lang.js +2 -2
  47. package/es/grid/grid.vue_vue_type_script_setup_true_lang.js +10 -10
  48. package/es/icon/icon-menu/icon-menu.js +5 -0
  49. package/es/icon/icon-menu/icon-menu.vue_vue_type_script_setup_true_lang.js +52 -0
  50. package/es/icon/icon-menu/index.js +9 -0
  51. package/es/index.css +133 -187
  52. package/es/index.d.ts +4 -2
  53. package/es/index.js +3 -2
  54. package/es/index.scss +1 -0
  55. package/es/input/index.d.ts +7 -7
  56. package/es/json-form/index.d.ts +9 -9
  57. package/es/json-form/json-form-item.vue_vue_type_script_setup_true_lang.js +1 -1
  58. package/es/json-form/json-form.vue.d.ts +3 -3
  59. package/es/layout/content.vue.d.ts +2 -2
  60. package/es/layout/content.vue_vue_type_script_setup_true_lang.js +8 -3
  61. package/es/layout/context.d.ts +12 -9
  62. package/es/layout/context.js +11 -3
  63. package/es/layout/footer.vue.d.ts +2 -2
  64. package/es/layout/footer.vue_vue_type_script_setup_true_lang.js +8 -3
  65. package/es/layout/header.vue.d.ts +3 -30
  66. package/es/layout/header.vue_vue_type_script_setup_true_lang.js +9 -339
  67. package/es/layout/hooks/use-has-sider.d.ts +2 -0
  68. package/es/layout/hooks/use-has-sider.js +38 -0
  69. package/es/layout/index.d.ts +120 -371
  70. package/es/layout/index.js +2 -2
  71. package/es/layout/interface.d.ts +16 -46
  72. package/es/layout/layout.vue.d.ts +4 -2
  73. package/es/layout/layout.vue_vue_type_script_setup_true_lang.js +38 -14
  74. package/es/layout/sider.vue.d.ts +68 -178
  75. package/es/layout/sider.vue_vue_type_script_setup_true_lang.js +243 -363
  76. package/es/layout/style/index.css +128 -186
  77. package/es/layout/style/index.scss +146 -234
  78. package/es/layout/style/token.scss +46 -26
  79. package/es/link/index.d.ts +6 -6
  80. package/es/list/index.d.ts +18 -18
  81. package/es/menu/base-menu.vue.d.ts +1 -1
  82. package/es/menu/base-menu.vue_vue_type_script_setup_true_lang.js +14 -14
  83. package/es/menu/item.d.ts +1 -1
  84. package/es/menu/menu.d.ts +12 -12
  85. package/es/menu/menu.js +3 -3
  86. package/es/modal/index.d.ts +15 -15
  87. package/es/popconfirm/index.d.ts +12 -12
  88. package/es/popover/index.d.ts +12 -12
  89. package/es/progress/index.d.ts +6 -6
  90. package/es/qr-code/index.d.ts +3 -3
  91. package/es/radio/radio.d.ts +3 -3
  92. package/es/resize-box/resize-box.vue_vue_type_script_setup_true_lang.js +7 -7
  93. package/es/result/index.d.ts +3 -3
  94. package/es/scrollbar/style/index.css +1 -1
  95. package/es/scrollbar/style/index.scss +4 -1
  96. package/es/sd-vue.js +3 -1
  97. package/es/select/select.d.ts +17 -17
  98. package/es/slider/index.d.ts +3 -3
  99. package/es/split/split.vue_vue_type_script_setup_true_lang.js +6 -6
  100. package/es/steps/index.d.ts +6 -6
  101. package/es/tabs/index.d.ts +6 -6
  102. package/es/tag/index.d.ts +6 -6
  103. package/es/textarea/textarea.vue_vue_type_script_setup_true_lang.js +2 -2
  104. package/es/theme-provider/index.d.ts +9 -9
  105. package/es/time-picker/index.d.ts +6 -6
  106. package/es/timeline/index.d.ts +3 -3
  107. package/es/timeline/timeline.d.ts +1 -1
  108. package/es/tooltip/index.d.ts +3 -3
  109. package/es/tour/index.d.ts +3 -3
  110. package/es/tour/tour.vue_vue_type_script_setup_true_lang.js +6 -6
  111. package/es/tree/node-switcher.vue.d.ts +1 -1
  112. package/es/tree/tree.vue_vue_type_script_setup_true_lang.js +23 -23
  113. package/json/vetur-attributes.json +27 -153
  114. package/json/vetur-tags.json +13 -43
  115. package/json/web-types.json +43 -293
  116. package/package.json +10 -10
  117. package/es/calendar/hooks/use-calendar-theme.d.ts +0 -4
  118. package/es/layout/utils.d.ts +0 -1
  119. package/es/layout/utils.js +0 -11
@@ -29,7 +29,7 @@ declare const List: {
29
29
  default: boolean;
30
30
  };
31
31
  paginationProps: {
32
- type: import("vue").PropType<import("..").PaginationProps>;
32
+ type: import("vue").PropType<import("../index.ts").PaginationProps>;
33
33
  };
34
34
  gridProps: {
35
35
  type: ObjectConstructor;
@@ -43,10 +43,10 @@ declare const List: {
43
43
  default: number;
44
44
  };
45
45
  virtualListProps: {
46
- type: import("vue").PropType<import("../_components/virtual-list/interface").VirtualListProps>;
46
+ type: import("vue").PropType<import("../_components/virtual-list/interface.ts").VirtualListProps>;
47
47
  };
48
48
  scrollbar: {
49
- type: import("vue").PropType<boolean | import("..").ScrollbarProps>;
49
+ type: import("vue").PropType<boolean | import("../index.ts").ScrollbarProps>;
50
50
  default: boolean;
51
51
  };
52
52
  }>> & Readonly<{
@@ -58,7 +58,7 @@ declare const List: {
58
58
  virtualListRef: import("vue").Ref<any, any>;
59
59
  render: () => import("vue/jsx-runtime").JSX.Element;
60
60
  }, {}, {}, {
61
- scrollIntoView(options: import("../_components/virtual-list/interface").ScrollIntoViewOptions): void;
61
+ scrollIntoView(options: import("../_components/virtual-list/interface.ts").ScrollIntoViewOptions): void;
62
62
  }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
63
63
  scroll: () => true;
64
64
  reachBottom: () => true;
@@ -67,7 +67,7 @@ declare const List: {
67
67
  }, import("vue").PublicProps, {
68
68
  split: boolean;
69
69
  size: "small" | "medium" | "large";
70
- scrollbar: boolean | import("..").ScrollbarProps;
70
+ scrollbar: boolean | import("../index.ts").ScrollbarProps;
71
71
  loading: boolean;
72
72
  bottomOffset: number;
73
73
  bordered: boolean;
@@ -105,7 +105,7 @@ declare const List: {
105
105
  default: boolean;
106
106
  };
107
107
  paginationProps: {
108
- type: import("vue").PropType<import("..").PaginationProps>;
108
+ type: import("vue").PropType<import("../index.ts").PaginationProps>;
109
109
  };
110
110
  gridProps: {
111
111
  type: ObjectConstructor;
@@ -119,10 +119,10 @@ declare const List: {
119
119
  default: number;
120
120
  };
121
121
  virtualListProps: {
122
- type: import("vue").PropType<import("../_components/virtual-list/interface").VirtualListProps>;
122
+ type: import("vue").PropType<import("../_components/virtual-list/interface.ts").VirtualListProps>;
123
123
  };
124
124
  scrollbar: {
125
- type: import("vue").PropType<boolean | import("..").ScrollbarProps>;
125
+ type: import("vue").PropType<boolean | import("../index.ts").ScrollbarProps>;
126
126
  default: boolean;
127
127
  };
128
128
  }>> & Readonly<{
@@ -134,11 +134,11 @@ declare const List: {
134
134
  virtualListRef: import("vue").Ref<any, any>;
135
135
  render: () => import("vue/jsx-runtime").JSX.Element;
136
136
  }, {}, {}, {
137
- scrollIntoView(options: import("../_components/virtual-list/interface").ScrollIntoViewOptions): void;
137
+ scrollIntoView(options: import("../_components/virtual-list/interface.ts").ScrollIntoViewOptions): void;
138
138
  }, {
139
139
  split: boolean;
140
140
  size: "small" | "medium" | "large";
141
- scrollbar: boolean | import("..").ScrollbarProps;
141
+ scrollbar: boolean | import("../index.ts").ScrollbarProps;
142
142
  loading: boolean;
143
143
  bottomOffset: number;
144
144
  bordered: boolean;
@@ -173,7 +173,7 @@ declare const List: {
173
173
  default: boolean;
174
174
  };
175
175
  paginationProps: {
176
- type: import("vue").PropType<import("..").PaginationProps>;
176
+ type: import("vue").PropType<import("../index.ts").PaginationProps>;
177
177
  };
178
178
  gridProps: {
179
179
  type: ObjectConstructor;
@@ -187,10 +187,10 @@ declare const List: {
187
187
  default: number;
188
188
  };
189
189
  virtualListProps: {
190
- type: import("vue").PropType<import("../_components/virtual-list/interface").VirtualListProps>;
190
+ type: import("vue").PropType<import("../_components/virtual-list/interface.ts").VirtualListProps>;
191
191
  };
192
192
  scrollbar: {
193
- type: import("vue").PropType<boolean | import("..").ScrollbarProps>;
193
+ type: import("vue").PropType<boolean | import("../index.ts").ScrollbarProps>;
194
194
  default: boolean;
195
195
  };
196
196
  }>> & Readonly<{
@@ -202,7 +202,7 @@ declare const List: {
202
202
  virtualListRef: import("vue").Ref<any, any>;
203
203
  render: () => import("vue/jsx-runtime").JSX.Element;
204
204
  }, {}, {}, {
205
- scrollIntoView(options: import("../_components/virtual-list/interface").ScrollIntoViewOptions): void;
205
+ scrollIntoView(options: import("../_components/virtual-list/interface.ts").ScrollIntoViewOptions): void;
206
206
  }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
207
207
  scroll: () => true;
208
208
  reachBottom: () => true;
@@ -211,7 +211,7 @@ declare const List: {
211
211
  }, string, {
212
212
  split: boolean;
213
213
  size: "small" | "medium" | "large";
214
- scrollbar: boolean | import("..").ScrollbarProps;
214
+ scrollbar: boolean | import("../index.ts").ScrollbarProps;
215
215
  loading: boolean;
216
216
  bottomOffset: number;
217
217
  bordered: boolean;
@@ -221,7 +221,7 @@ declare const List: {
221
221
  Item: {
222
222
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
223
223
  actionLayout: {
224
- type: import("vue").PropType<import("..").Direction>;
224
+ type: import("vue").PropType<import("../index.ts").Direction>;
225
225
  default: string;
226
226
  };
227
227
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
@@ -235,7 +235,7 @@ declare const List: {
235
235
  Defaults: {};
236
236
  }, Readonly<import("vue").ExtractPropTypes<{
237
237
  actionLayout: {
238
- type: import("vue").PropType<import("..").Direction>;
238
+ type: import("vue").PropType<import("../index.ts").Direction>;
239
239
  default: string;
240
240
  };
241
241
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
@@ -246,7 +246,7 @@ declare const List: {
246
246
  __isSuspense?: never;
247
247
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
248
248
  actionLayout: {
249
- type: import("vue").PropType<import("..").Direction>;
249
+ type: import("vue").PropType<import("../index.ts").Direction>;
250
250
  default: string;
251
251
  };
252
252
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
@@ -212,8 +212,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
212
212
  mode: "pop" | "horizontal" | "vertical" | "popButton";
213
213
  collapsed: boolean;
214
214
  defaultSelectedKeys: string[];
215
- popupMaxHeight: number | boolean;
216
215
  theme: "dark" | "light";
216
+ popupMaxHeight: number | boolean;
217
217
  accordion: boolean;
218
218
  defaultCollapsed: boolean;
219
219
  autoScrollIntoView: boolean;
@@ -4,10 +4,10 @@ import { isNumber, isObject } from "../_utils/is.js";
4
4
  import { omit } from "../_utils/omit.js";
5
5
  import useMergeState from "../_hooks/use-merge-state.js";
6
6
  import usePickSlots from "../_hooks/use-pick-slots.js";
7
- import { useResponsive } from "../_hooks/use-responsive.js";
8
7
  import { MenuInjectionKey } from "./context.js";
9
8
  import { provideLevel } from "./hooks/use-level.js";
10
9
  import useMenuDataCollector from "./hooks/use-menu-data-collector.js";
10
+ import { useResponsive } from "../_hooks/use-responsive.js";
11
11
  import IconMenuFold from "../icon/icon-menu-fold/index.js";
12
12
  import IconMenuUnfold from "../icon/icon-menu-unfold/index.js";
13
13
  import useMenuOpenState from "./hooks/use-menu-open-state.js";
@@ -198,31 +198,31 @@ var base_menu_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ define
198
198
  const slots = useSlots();
199
199
  const { style, mode, theme, levelIndent, accordion, showCollapseButton, scrollConfig, autoScrollIntoView, collapsedWidth, autoOpen, collapsed: propCollapsed, defaultCollapsed, selectedKeys: propSelectedKeys, defaultSelectedKeys, openKeys: propOpenKeys, defaultOpenKeys, triggerProps, tooltipProps, ellipsis, ellipsisProps, autoOpenSelected, breakpoint, popupMaxHeight, prefixCls, inTrigger, siderCollapsed, isRoot } = toRefs(props);
200
200
  const { subMenuKeys, menuData } = useMenuDataCollector({ type: isRoot.value ? "menu" : "popupMenu" });
201
- const [selectedKeys, setSelectedKeys] = useMergeState(defaultSelectedKeys.value, reactive({ value: propSelectedKeys }));
202
- const { openKeys, setOpenKeys, open } = useMenuOpenState(reactive({
201
+ const [mergedSelectedKeys, setSelectedKeys] = useMergeState(defaultSelectedKeys.value, reactive({ value: propSelectedKeys }));
202
+ const { openKeys: mergedOpenKeys, setOpenKeys: setMergedOpenKeys, open } = useMenuOpenState(reactive({
203
203
  modelValue: propOpenKeys,
204
204
  defaultValue: defaultOpenKeys,
205
205
  autoOpen,
206
206
  autoOpenSelected,
207
- selectedKeys,
207
+ selectedKeys: mergedSelectedKeys,
208
208
  subMenuKeys,
209
209
  menuData,
210
210
  accordion
211
211
  }));
212
- const [collapsed, setCollapsed] = useMergeState(defaultCollapsed.value, reactive({ value: propCollapsed }));
213
- const computedCollapsed = computed(() => siderCollapsed.value || collapsed.value || mode.value === "popButton");
212
+ const [mergedCollapsed, setMergedCollapsed] = useMergeState(defaultCollapsed.value, reactive({ value: propCollapsed }));
213
+ const computedCollapsed = computed(() => siderCollapsed.value || mergedCollapsed.value || mode.value === "popButton");
214
214
  const computedHasCollapseButton = computed(() => ["horizontal", "popButton"].indexOf(mode.value) < 0 && !inTrigger.value && showCollapseButton.value);
215
- const changeCollapsed = (newVal, type) => {
216
- if (newVal === collapsed.value) return;
217
- setCollapsed(newVal);
215
+ const changeMergedCollapsed = (newVal, type) => {
216
+ if (newVal === mergedCollapsed.value) return;
217
+ setMergedCollapsed(newVal);
218
218
  emit("update:collapsed", newVal);
219
219
  emit("collapse", newVal, type);
220
220
  };
221
221
  const onCollapseBtnClick = () => {
222
- changeCollapsed(!collapsed.value, "clickTrigger");
222
+ changeMergedCollapsed(!mergedCollapsed.value, "clickTrigger");
223
223
  };
224
224
  useResponsive(breakpoint, (checked) => {
225
- changeCollapsed(!checked, "responsive");
225
+ changeMergedCollapsed(!checked, "responsive");
226
226
  });
227
227
  const computedPrefixCls = computed(() => (prefixCls === null || prefixCls === void 0 ? void 0 : prefixCls.value) || getPrefixCls("menu"));
228
228
  const classNames = computed(() => [
@@ -247,8 +247,8 @@ var base_menu_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ define
247
247
  mode,
248
248
  levelIndent,
249
249
  autoScrollIntoView,
250
- selectedKeys,
251
- openKeys,
250
+ selectedKeys: mergedSelectedKeys,
251
+ openKeys: mergedOpenKeys,
252
252
  prefixCls: computedPrefixCls,
253
253
  scrollConfig,
254
254
  inTrigger,
@@ -267,7 +267,7 @@ var base_menu_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ define
267
267
  },
268
268
  onSubMenuClick: (key, level) => {
269
269
  const newOpenKeys = open(key, level);
270
- setOpenKeys(newOpenKeys);
270
+ setMergedOpenKeys(newOpenKeys);
271
271
  emit("update:openKeys", newOpenKeys);
272
272
  emit("sub-menu-click", key, newOpenKeys);
273
273
  }
package/es/menu/item.d.ts CHANGED
@@ -4,7 +4,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
4
4
  default: boolean;
5
5
  };
6
6
  }>, {
7
- menuContext: Partial<Readonly<Pick<import("./interface").InternalMenuProps, "ellipsis" | "triggerProps" | "mode" | "popupMaxHeight" | "theme" | "tooltipProps" | "levelIndent" | "autoScrollIntoView" | "scrollConfig" | "inTrigger" | "ellipsisProps"> & {
7
+ menuContext: Partial<Readonly<Pick<import("./interface.ts").InternalMenuProps, "ellipsis" | "triggerProps" | "mode" | "theme" | "popupMaxHeight" | "tooltipProps" | "levelIndent" | "autoScrollIntoView" | "scrollConfig" | "inTrigger" | "ellipsisProps"> & {
8
8
  selectedKeys: string[];
9
9
  openKeys: string[];
10
10
  prefixCls: string;
package/es/menu/menu.d.ts CHANGED
@@ -107,7 +107,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
107
107
  }>;
108
108
  };
109
109
  triggerProps: {
110
- type: PropType<import("..").TriggerProps>;
110
+ type: PropType<import("../index.ts").TriggerProps>;
111
111
  };
112
112
  tooltipProps: {
113
113
  type: ObjectConstructor;
@@ -117,7 +117,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
117
117
  default: boolean;
118
118
  };
119
119
  ellipsisProps: {
120
- type: PropType<import("./interface").MenuEllipsisProps>;
120
+ type: PropType<import("./interface.ts").MenuEllipsisProps>;
121
121
  default: undefined;
122
122
  };
123
123
  autoOpenSelected: {
@@ -161,13 +161,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
161
161
  mode: "pop" | "horizontal" | "vertical" | "popButton";
162
162
  collapsed: boolean;
163
163
  defaultSelectedKeys: string[];
164
- popupMaxHeight: number | boolean;
165
164
  theme: "dark" | "light";
165
+ popupMaxHeight: number | boolean;
166
166
  accordion: boolean;
167
167
  defaultCollapsed: boolean;
168
168
  autoScrollIntoView: boolean;
169
169
  inTrigger: boolean;
170
- ellipsisProps: import("./interface").MenuEllipsisProps;
170
+ ellipsisProps: import("./interface.ts").MenuEllipsisProps;
171
171
  autoOpen: boolean;
172
172
  autoOpenSelected: boolean;
173
173
  showCollapseButton: boolean;
@@ -238,7 +238,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
238
238
  }>;
239
239
  };
240
240
  triggerProps: {
241
- type: PropType<import("..").TriggerProps>;
241
+ type: PropType<import("../index.ts").TriggerProps>;
242
242
  };
243
243
  tooltipProps: {
244
244
  type: ObjectConstructor;
@@ -248,7 +248,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
248
248
  default: boolean;
249
249
  };
250
250
  ellipsisProps: {
251
- type: PropType<import("./interface").MenuEllipsisProps>;
251
+ type: PropType<import("./interface.ts").MenuEllipsisProps>;
252
252
  default: undefined;
253
253
  };
254
254
  autoOpenSelected: {
@@ -285,13 +285,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
285
285
  mode: "pop" | "horizontal" | "vertical" | "popButton";
286
286
  collapsed: boolean;
287
287
  defaultSelectedKeys: string[];
288
- popupMaxHeight: number | boolean;
289
288
  theme: "dark" | "light";
289
+ popupMaxHeight: number | boolean;
290
290
  accordion: boolean;
291
291
  defaultCollapsed: boolean;
292
292
  autoScrollIntoView: boolean;
293
293
  inTrigger: boolean;
294
- ellipsisProps: import("./interface").MenuEllipsisProps;
294
+ ellipsisProps: import("./interface.ts").MenuEllipsisProps;
295
295
  autoOpen: boolean;
296
296
  autoOpenSelected: boolean;
297
297
  showCollapseButton: boolean;
@@ -359,7 +359,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
359
359
  }>;
360
360
  };
361
361
  triggerProps: {
362
- type: PropType<import("..").TriggerProps>;
362
+ type: PropType<import("../index.ts").TriggerProps>;
363
363
  };
364
364
  tooltipProps: {
365
365
  type: ObjectConstructor;
@@ -369,7 +369,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
369
369
  default: boolean;
370
370
  };
371
371
  ellipsisProps: {
372
- type: PropType<import("./interface").MenuEllipsisProps>;
372
+ type: PropType<import("./interface.ts").MenuEllipsisProps>;
373
373
  default: undefined;
374
374
  };
375
375
  autoOpenSelected: {
@@ -413,13 +413,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
413
413
  mode: "pop" | "horizontal" | "vertical" | "popButton";
414
414
  collapsed: boolean;
415
415
  defaultSelectedKeys: string[];
416
- popupMaxHeight: number | boolean;
417
416
  theme: "dark" | "light";
417
+ popupMaxHeight: number | boolean;
418
418
  accordion: boolean;
419
419
  defaultCollapsed: boolean;
420
420
  autoScrollIntoView: boolean;
421
421
  inTrigger: boolean;
422
- ellipsisProps: import("./interface").MenuEllipsisProps;
422
+ ellipsisProps: import("./interface.ts").MenuEllipsisProps;
423
423
  autoOpen: boolean;
424
424
  autoOpenSelected: boolean;
425
425
  showCollapseButton: boolean;
package/es/menu/menu.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectSpread2.js";
2
- import { SiderInjectionKey } from "../layout/context.js";
2
+ import { SiderContextInjectionKey } from "../layout/context.js";
3
3
  import { LevelInjectionKey, MenuInjectionKey } from "./context.js";
4
4
  import base_menu_default from "./base-menu.js";
5
5
  import overflow_wrap_default from "./overflow-wrap.js";
@@ -27,8 +27,8 @@ var menu_default = /* @__PURE__ */ defineComponent({
27
27
  },
28
28
  setup(props, { attrs, slots }) {
29
29
  const { theme: propTheme, mode } = toRefs(props);
30
- const siderContext = inject(SiderInjectionKey, void 0);
31
- const siderCollapsed = computed(() => (siderContext === null || siderContext === void 0 ? void 0 : siderContext.collapsed) || false);
30
+ const siderContext = inject(SiderContextInjectionKey, void 0);
31
+ const siderCollapsed = computed(() => (siderContext === null || siderContext === void 0 ? void 0 : siderContext.siderCollapsed) || false);
32
32
  const theme = computed(() => (propTheme === null || propTheme === void 0 ? void 0 : propTheme.value) || (siderContext === null || siderContext === void 0 ? void 0 : siderContext.theme) || "light");
33
33
  provide(MenuInjectionKey, void 0);
34
34
  provide(LevelInjectionKey, void 0);
@@ -25,7 +25,7 @@ declare const Modal: {
25
25
  type: StringConstructor;
26
26
  };
27
27
  titleEllipsisTooltip: {
28
- type: import("vue").PropType<boolean | import("..").EllipsisTooltipProps>;
28
+ type: import("vue").PropType<boolean | import("../index.ts").EllipsisTooltipProps>;
29
29
  default: boolean;
30
30
  };
31
31
  titleAlign: {
@@ -60,10 +60,10 @@ declare const Modal: {
60
60
  default: boolean;
61
61
  };
62
62
  okButtonProps: {
63
- type: import("vue").PropType<import("..").ButtonProps>;
63
+ type: import("vue").PropType<import("../index.ts").ButtonProps>;
64
64
  };
65
65
  cancelButtonProps: {
66
- type: import("vue").PropType<import("..").ButtonProps>;
66
+ type: import("vue").PropType<import("../index.ts").ButtonProps>;
67
67
  };
68
68
  footer: {
69
69
  type: BooleanConstructor;
@@ -119,7 +119,7 @@ declare const Modal: {
119
119
  type: import("vue").PropType<import("vue").StyleValue>;
120
120
  };
121
121
  messageType: {
122
- type: import("vue").PropType<import("..").MessageType>;
122
+ type: import("vue").PropType<import("../index.ts").MessageType>;
123
123
  };
124
124
  hideTitle: {
125
125
  type: BooleanConstructor;
@@ -152,7 +152,7 @@ declare const Modal: {
152
152
  closable: boolean;
153
153
  simple: boolean;
154
154
  draggable: boolean;
155
- titleEllipsisTooltip: boolean | import("..").EllipsisTooltipProps;
155
+ titleEllipsisTooltip: boolean | import("../index.ts").EllipsisTooltipProps;
156
156
  maskClosable: boolean;
157
157
  okLoading: boolean;
158
158
  escToClose: boolean;
@@ -193,7 +193,7 @@ declare const Modal: {
193
193
  type: StringConstructor;
194
194
  };
195
195
  titleEllipsisTooltip: {
196
- type: import("vue").PropType<boolean | import("..").EllipsisTooltipProps>;
196
+ type: import("vue").PropType<boolean | import("../index.ts").EllipsisTooltipProps>;
197
197
  default: boolean;
198
198
  };
199
199
  titleAlign: {
@@ -228,10 +228,10 @@ declare const Modal: {
228
228
  default: boolean;
229
229
  };
230
230
  okButtonProps: {
231
- type: import("vue").PropType<import("..").ButtonProps>;
231
+ type: import("vue").PropType<import("../index.ts").ButtonProps>;
232
232
  };
233
233
  cancelButtonProps: {
234
- type: import("vue").PropType<import("..").ButtonProps>;
234
+ type: import("vue").PropType<import("../index.ts").ButtonProps>;
235
235
  };
236
236
  footer: {
237
237
  type: BooleanConstructor;
@@ -287,7 +287,7 @@ declare const Modal: {
287
287
  type: import("vue").PropType<import("vue").StyleValue>;
288
288
  };
289
289
  messageType: {
290
- type: import("vue").PropType<import("..").MessageType>;
290
+ type: import("vue").PropType<import("../index.ts").MessageType>;
291
291
  };
292
292
  hideTitle: {
293
293
  type: BooleanConstructor;
@@ -312,7 +312,7 @@ declare const Modal: {
312
312
  closable: boolean;
313
313
  simple: boolean;
314
314
  draggable: boolean;
315
- titleEllipsisTooltip: boolean | import("..").EllipsisTooltipProps;
315
+ titleEllipsisTooltip: boolean | import("../index.ts").EllipsisTooltipProps;
316
316
  maskClosable: boolean;
317
317
  okLoading: boolean;
318
318
  escToClose: boolean;
@@ -350,7 +350,7 @@ declare const Modal: {
350
350
  type: StringConstructor;
351
351
  };
352
352
  titleEllipsisTooltip: {
353
- type: import("vue").PropType<boolean | import("..").EllipsisTooltipProps>;
353
+ type: import("vue").PropType<boolean | import("../index.ts").EllipsisTooltipProps>;
354
354
  default: boolean;
355
355
  };
356
356
  titleAlign: {
@@ -385,10 +385,10 @@ declare const Modal: {
385
385
  default: boolean;
386
386
  };
387
387
  okButtonProps: {
388
- type: import("vue").PropType<import("..").ButtonProps>;
388
+ type: import("vue").PropType<import("../index.ts").ButtonProps>;
389
389
  };
390
390
  cancelButtonProps: {
391
- type: import("vue").PropType<import("..").ButtonProps>;
391
+ type: import("vue").PropType<import("../index.ts").ButtonProps>;
392
392
  };
393
393
  footer: {
394
394
  type: BooleanConstructor;
@@ -444,7 +444,7 @@ declare const Modal: {
444
444
  type: import("vue").PropType<import("vue").StyleValue>;
445
445
  };
446
446
  messageType: {
447
- type: import("vue").PropType<import("..").MessageType>;
447
+ type: import("vue").PropType<import("../index.ts").MessageType>;
448
448
  };
449
449
  hideTitle: {
450
450
  type: BooleanConstructor;
@@ -477,7 +477,7 @@ declare const Modal: {
477
477
  closable: boolean;
478
478
  simple: boolean;
479
479
  draggable: boolean;
480
- titleEllipsisTooltip: boolean | import("..").EllipsisTooltipProps;
480
+ titleEllipsisTooltip: boolean | import("../index.ts").EllipsisTooltipProps;
481
481
  maskClosable: boolean;
482
482
  okLoading: boolean;
483
483
  escToClose: boolean;
@@ -5,7 +5,7 @@ declare const Popconfirm: {
5
5
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
6
6
  content: StringConstructor;
7
7
  position: {
8
- type: import("vue").PropType<import("..").TriggerPosition>;
8
+ type: import("vue").PropType<import("../index.ts").TriggerPosition>;
9
9
  default: string;
10
10
  };
11
11
  popupVisible: {
@@ -17,7 +17,7 @@ declare const Popconfirm: {
17
17
  default: boolean;
18
18
  };
19
19
  type: {
20
- type: import("vue").PropType<import("..").MessageType>;
20
+ type: import("vue").PropType<import("../index.ts").MessageType>;
21
21
  default: string;
22
22
  };
23
23
  okText: StringConstructor;
@@ -27,10 +27,10 @@ declare const Popconfirm: {
27
27
  default: boolean;
28
28
  };
29
29
  okButtonProps: {
30
- type: import("vue").PropType<import("..").ButtonProps>;
30
+ type: import("vue").PropType<import("../index.ts").ButtonProps>;
31
31
  };
32
32
  cancelButtonProps: {
33
- type: import("vue").PropType<import("..").ButtonProps>;
33
+ type: import("vue").PropType<import("../index.ts").ButtonProps>;
34
34
  };
35
35
  contentClass: {
36
36
  type: import("vue").PropType<import("../_utils/types").ClassName>;
@@ -79,7 +79,7 @@ declare const Popconfirm: {
79
79
  }, Readonly<import("vue").ExtractPropTypes<{
80
80
  content: StringConstructor;
81
81
  position: {
82
- type: import("vue").PropType<import("..").TriggerPosition>;
82
+ type: import("vue").PropType<import("../index.ts").TriggerPosition>;
83
83
  default: string;
84
84
  };
85
85
  popupVisible: {
@@ -91,7 +91,7 @@ declare const Popconfirm: {
91
91
  default: boolean;
92
92
  };
93
93
  type: {
94
- type: import("vue").PropType<import("..").MessageType>;
94
+ type: import("vue").PropType<import("../index.ts").MessageType>;
95
95
  default: string;
96
96
  };
97
97
  okText: StringConstructor;
@@ -101,10 +101,10 @@ declare const Popconfirm: {
101
101
  default: boolean;
102
102
  };
103
103
  okButtonProps: {
104
- type: import("vue").PropType<import("..").ButtonProps>;
104
+ type: import("vue").PropType<import("../index.ts").ButtonProps>;
105
105
  };
106
106
  cancelButtonProps: {
107
- type: import("vue").PropType<import("..").ButtonProps>;
107
+ type: import("vue").PropType<import("../index.ts").ButtonProps>;
108
108
  };
109
109
  contentClass: {
110
110
  type: import("vue").PropType<import("../_utils/types").ClassName>;
@@ -145,7 +145,7 @@ declare const Popconfirm: {
145
145
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
146
146
  content: StringConstructor;
147
147
  position: {
148
- type: import("vue").PropType<import("..").TriggerPosition>;
148
+ type: import("vue").PropType<import("../index.ts").TriggerPosition>;
149
149
  default: string;
150
150
  };
151
151
  popupVisible: {
@@ -157,7 +157,7 @@ declare const Popconfirm: {
157
157
  default: boolean;
158
158
  };
159
159
  type: {
160
- type: import("vue").PropType<import("..").MessageType>;
160
+ type: import("vue").PropType<import("../index.ts").MessageType>;
161
161
  default: string;
162
162
  };
163
163
  okText: StringConstructor;
@@ -167,10 +167,10 @@ declare const Popconfirm: {
167
167
  default: boolean;
168
168
  };
169
169
  okButtonProps: {
170
- type: import("vue").PropType<import("..").ButtonProps>;
170
+ type: import("vue").PropType<import("../index.ts").ButtonProps>;
171
171
  };
172
172
  cancelButtonProps: {
173
- type: import("vue").PropType<import("..").ButtonProps>;
173
+ type: import("vue").PropType<import("../index.ts").ButtonProps>;
174
174
  };
175
175
  contentClass: {
176
176
  type: import("vue").PropType<import("../_utils/types").ClassName>;
@@ -14,11 +14,11 @@ declare const Popover: {
14
14
  title: StringConstructor;
15
15
  content: StringConstructor;
16
16
  trigger: {
17
- type: import("vue").PropType<import("..").TriggerEvent | import("..").TriggerEvent[]>;
17
+ type: import("vue").PropType<import("../index.ts").TriggerEvent | import("../index.ts").TriggerEvent[]>;
18
18
  default: string;
19
19
  };
20
20
  position: {
21
- type: import("vue").PropType<import("..").TriggerPosition>;
21
+ type: import("vue").PropType<import("../index.ts").TriggerPosition>;
22
22
  default: string;
23
23
  };
24
24
  contentClass: {
@@ -28,7 +28,7 @@ declare const Popover: {
28
28
  type: import("vue").PropType<import("vue").CSSProperties>;
29
29
  };
30
30
  scrollbar: {
31
- type: import("vue").PropType<boolean | import("..").ScrollbarProps>;
31
+ type: import("vue").PropType<boolean | import("../index.ts").ScrollbarProps>;
32
32
  default: boolean;
33
33
  };
34
34
  arrowClass: {
@@ -51,7 +51,7 @@ declare const Popover: {
51
51
  defaultPopupVisible: boolean;
52
52
  trigger: "hover" | "click" | "focus" | "contextMenu" | ("hover" | "click" | "focus" | "contextMenu")[];
53
53
  position: "top" | "tl" | "tr" | "bottom" | "bl" | "br" | "left" | "lt" | "lb" | "right" | "rt" | "rb";
54
- scrollbar: boolean | import("..").ScrollbarProps;
54
+ scrollbar: boolean | import("../index.ts").ScrollbarProps;
55
55
  }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
56
56
  P: {};
57
57
  B: {};
@@ -71,11 +71,11 @@ declare const Popover: {
71
71
  title: StringConstructor;
72
72
  content: StringConstructor;
73
73
  trigger: {
74
- type: import("vue").PropType<import("..").TriggerEvent | import("..").TriggerEvent[]>;
74
+ type: import("vue").PropType<import("../index.ts").TriggerEvent | import("../index.ts").TriggerEvent[]>;
75
75
  default: string;
76
76
  };
77
77
  position: {
78
- type: import("vue").PropType<import("..").TriggerPosition>;
78
+ type: import("vue").PropType<import("../index.ts").TriggerPosition>;
79
79
  default: string;
80
80
  };
81
81
  contentClass: {
@@ -85,7 +85,7 @@ declare const Popover: {
85
85
  type: import("vue").PropType<import("vue").CSSProperties>;
86
86
  };
87
87
  scrollbar: {
88
- type: import("vue").PropType<boolean | import("..").ScrollbarProps>;
88
+ type: import("vue").PropType<boolean | import("../index.ts").ScrollbarProps>;
89
89
  default: boolean;
90
90
  };
91
91
  arrowClass: {
@@ -105,7 +105,7 @@ declare const Popover: {
105
105
  defaultPopupVisible: boolean;
106
106
  trigger: "hover" | "click" | "focus" | "contextMenu" | ("hover" | "click" | "focus" | "contextMenu")[];
107
107
  position: "top" | "tl" | "tr" | "bottom" | "bl" | "br" | "left" | "lt" | "lb" | "right" | "rt" | "rb";
108
- scrollbar: boolean | import("..").ScrollbarProps;
108
+ scrollbar: boolean | import("../index.ts").ScrollbarProps;
109
109
  }>;
110
110
  __isFragment?: never;
111
111
  __isTeleport?: never;
@@ -122,11 +122,11 @@ declare const Popover: {
122
122
  title: StringConstructor;
123
123
  content: StringConstructor;
124
124
  trigger: {
125
- type: import("vue").PropType<import("..").TriggerEvent | import("..").TriggerEvent[]>;
125
+ type: import("vue").PropType<import("../index.ts").TriggerEvent | import("../index.ts").TriggerEvent[]>;
126
126
  default: string;
127
127
  };
128
128
  position: {
129
- type: import("vue").PropType<import("..").TriggerPosition>;
129
+ type: import("vue").PropType<import("../index.ts").TriggerPosition>;
130
130
  default: string;
131
131
  };
132
132
  contentClass: {
@@ -136,7 +136,7 @@ declare const Popover: {
136
136
  type: import("vue").PropType<import("vue").CSSProperties>;
137
137
  };
138
138
  scrollbar: {
139
- type: import("vue").PropType<boolean | import("..").ScrollbarProps>;
139
+ type: import("vue").PropType<boolean | import("../index.ts").ScrollbarProps>;
140
140
  default: boolean;
141
141
  };
142
142
  arrowClass: {
@@ -159,7 +159,7 @@ declare const Popover: {
159
159
  defaultPopupVisible: boolean;
160
160
  trigger: "hover" | "click" | "focus" | "contextMenu" | ("hover" | "click" | "focus" | "contextMenu")[];
161
161
  position: "top" | "tl" | "tr" | "bottom" | "bl" | "br" | "left" | "lt" | "lb" | "right" | "rt" | "rb";
162
- scrollbar: boolean | import("..").ScrollbarProps;
162
+ scrollbar: boolean | import("../index.ts").ScrollbarProps;
163
163
  }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
164
164
  $slots: {
165
165
  default?: (props: {}) => any;