@v-c/menu 0.0.1 → 0.0.3

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 (58) hide show
  1. package/dist/Divider.cjs +33 -36
  2. package/dist/Divider.js +28 -34
  3. package/dist/Icon.cjs +39 -38
  4. package/dist/Icon.js +36 -38
  5. package/dist/Menu.cjs +506 -575
  6. package/dist/Menu.d.ts +2 -0
  7. package/dist/Menu.js +495 -570
  8. package/dist/MenuItem.cjs +314 -344
  9. package/dist/MenuItem.js +303 -339
  10. package/dist/MenuItemGroup.cjs +98 -116
  11. package/dist/MenuItemGroup.js +91 -113
  12. package/dist/SubMenu/InlineSubMenuList.cjs +58 -82
  13. package/dist/SubMenu/InlineSubMenuList.js +54 -81
  14. package/dist/SubMenu/PopupTrigger.cjs +133 -167
  15. package/dist/SubMenu/PopupTrigger.d.ts +2 -2
  16. package/dist/SubMenu/PopupTrigger.js +126 -165
  17. package/dist/SubMenu/SubMenuList.cjs +18 -26
  18. package/dist/SubMenu/SubMenuList.js +14 -25
  19. package/dist/SubMenu/index.cjs +479 -526
  20. package/dist/SubMenu/index.js +469 -521
  21. package/dist/_virtual/rolldown_runtime.cjs +21 -0
  22. package/dist/context/IdContext.cjs +15 -23
  23. package/dist/context/IdContext.js +15 -27
  24. package/dist/context/MenuContext.cjs +183 -174
  25. package/dist/context/MenuContext.js +180 -177
  26. package/dist/context/PathContext.cjs +54 -79
  27. package/dist/context/PathContext.js +54 -90
  28. package/dist/context/PrivateContext.cjs +11 -17
  29. package/dist/context/PrivateContext.js +11 -20
  30. package/dist/hooks/useAccessibility.cjs +171 -191
  31. package/dist/hooks/useAccessibility.js +168 -193
  32. package/dist/hooks/useActive.cjs +25 -28
  33. package/dist/hooks/useActive.js +23 -28
  34. package/dist/hooks/useDirectionStyle.cjs +11 -17
  35. package/dist/hooks/useDirectionStyle.js +9 -17
  36. package/dist/hooks/useKeyRecords.cjs +70 -88
  37. package/dist/hooks/useKeyRecords.js +68 -89
  38. package/dist/hooks/useMemoCallback.cjs +9 -9
  39. package/dist/hooks/useMemoCallback.js +7 -9
  40. package/dist/index.cjs +21 -21
  41. package/dist/index.d.ts +2 -2
  42. package/dist/index.js +12 -20
  43. package/dist/interface.cjs +0 -1
  44. package/dist/interface.js +0 -1
  45. package/dist/placements.cjs +70 -70
  46. package/dist/placements.js +69 -72
  47. package/dist/utils/commonUtil.cjs +24 -26
  48. package/dist/utils/commonUtil.js +23 -26
  49. package/dist/utils/motionUtil.cjs +2 -9
  50. package/dist/utils/motionUtil.js +3 -10
  51. package/dist/utils/nodeUtil.cjs +49 -77
  52. package/dist/utils/nodeUtil.d.ts +4 -1
  53. package/dist/utils/nodeUtil.js +48 -77
  54. package/dist/utils/timeUtil.cjs +2 -3
  55. package/dist/utils/timeUtil.js +3 -4
  56. package/dist/utils/warnUtil.cjs +8 -14
  57. package/dist/utils/warnUtil.js +7 -14
  58. package/package.json +2 -2
@@ -1,93 +1,75 @@
1
- "use strict";
2
- Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const vue = require("vue");
4
- const timeUtil = require("../utils/timeUtil.cjs");
5
- const PATH_SPLIT = "__VC_UTIL_PATH_SPLIT__";
6
- const getPathStr = (keyPath) => keyPath.join(PATH_SPLIT);
7
- const getPathKeys = (keyPathStr) => keyPathStr.split(PATH_SPLIT);
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ const require_rolldown_runtime = require("../_virtual/rolldown_runtime.cjs");
3
+ const require_timeUtil = require("../utils/timeUtil.cjs");
4
+ let vue = require("vue");
5
+ var PATH_SPLIT = "__VC_UTIL_PATH_SPLIT__";
6
+ var getPathStr = (keyPath) => keyPath.join(PATH_SPLIT);
7
+ var getPathKeys = (keyPathStr) => keyPathStr.split(PATH_SPLIT);
8
8
  const OVERFLOW_KEY = "vc-menu-more";
9
9
  function useKeyRecords() {
10
- const forceUpdateCount = vue.ref(0);
11
- const key2pathRef = vue.shallowRef(/* @__PURE__ */ new Map());
12
- const path2keyRef = vue.shallowRef(/* @__PURE__ */ new Map());
13
- const overflowKeys = vue.ref([]);
14
- const updateRef = vue.ref(0);
15
- const destroyRef = vue.ref(false);
16
- const forceUpdate = () => {
17
- if (!destroyRef.value) {
18
- forceUpdateCount.value += 1;
19
- }
20
- };
21
- const registerPath = (key, keyPath) => {
22
- if (process.env.NODE_ENV !== "production") {
23
- if (key2pathRef.value.has(key)) {
24
- console.warn(
25
- `Duplicated key '${key}' used in Menu by path [${keyPath.join(" > ")}]`
26
- );
27
- }
28
- }
29
- const connectedPath = getPathStr(keyPath);
30
- path2keyRef.value.set(connectedPath, key);
31
- key2pathRef.value.set(key, connectedPath);
32
- updateRef.value += 1;
33
- const id = updateRef.value;
34
- timeUtil.nextSlice(() => {
35
- if (id === updateRef.value) {
36
- forceUpdate();
37
- }
38
- });
39
- };
40
- const unregisterPath = (key, keyPath) => {
41
- const connectedPath = getPathStr(keyPath);
42
- path2keyRef.value.delete(connectedPath);
43
- key2pathRef.value.delete(key);
44
- };
45
- const refreshOverflowKeys = (keys) => {
46
- overflowKeys.value = keys;
47
- };
48
- const getKeyPath = (eventKey, includeOverflow) => {
49
- const fullPath = key2pathRef.value.get(eventKey) || "";
50
- const keys = getPathKeys(fullPath);
51
- if (includeOverflow && overflowKeys.value.includes(keys[0])) {
52
- keys.unshift(OVERFLOW_KEY);
53
- }
54
- return keys;
55
- };
56
- const isSubPathKey = (pathKeys, eventKey) => pathKeys.filter((item) => item !== void 0).some((pathKey) => {
57
- const pathKeyList = getKeyPath(pathKey, true);
58
- return pathKeyList.includes(eventKey);
59
- });
60
- const getKeys = () => {
61
- const keys = [...key2pathRef.value.keys()];
62
- if (overflowKeys.value.length) {
63
- keys.push(OVERFLOW_KEY);
64
- }
65
- return keys;
66
- };
67
- const getSubPathKeys = (key) => {
68
- const connectedPath = `${key2pathRef.value.get(key)}${PATH_SPLIT}`;
69
- const pathKeys = /* @__PURE__ */ new Set();
70
- [...path2keyRef.value.keys()].forEach((pathKey) => {
71
- if (pathKey.startsWith(connectedPath)) {
72
- pathKeys.add(path2keyRef.value.get(pathKey));
73
- }
74
- });
75
- return pathKeys;
76
- };
77
- vue.onBeforeUnmount(() => {
78
- destroyRef.value = true;
79
- });
80
- return {
81
- // Register
82
- registerPath,
83
- unregisterPath,
84
- refreshOverflowKeys,
85
- // Util
86
- isSubPathKey,
87
- getKeyPath,
88
- getKeys,
89
- getSubPathKeys
90
- };
10
+ const forceUpdateCount = (0, vue.ref)(0);
11
+ const key2pathRef = (0, vue.shallowRef)(/* @__PURE__ */ new Map());
12
+ const path2keyRef = (0, vue.shallowRef)(/* @__PURE__ */ new Map());
13
+ const overflowKeys = (0, vue.ref)([]);
14
+ const updateRef = (0, vue.ref)(0);
15
+ const destroyRef = (0, vue.ref)(false);
16
+ const forceUpdate = () => {
17
+ if (!destroyRef.value) forceUpdateCount.value += 1;
18
+ };
19
+ const registerPath = (key, keyPath) => {
20
+ if (process.env.NODE_ENV !== "production") {
21
+ if (key2pathRef.value.has(key)) console.warn(`Duplicated key '${key}' used in Menu by path [${keyPath.join(" > ")}]`);
22
+ }
23
+ const connectedPath = getPathStr(keyPath);
24
+ path2keyRef.value.set(connectedPath, key);
25
+ key2pathRef.value.set(key, connectedPath);
26
+ updateRef.value += 1;
27
+ const id = updateRef.value;
28
+ require_timeUtil.nextSlice(() => {
29
+ if (id === updateRef.value) forceUpdate();
30
+ });
31
+ };
32
+ const unregisterPath = (key, keyPath) => {
33
+ const connectedPath = getPathStr(keyPath);
34
+ path2keyRef.value.delete(connectedPath);
35
+ key2pathRef.value.delete(key);
36
+ };
37
+ const refreshOverflowKeys = (keys) => {
38
+ overflowKeys.value = keys;
39
+ };
40
+ const getKeyPath = (eventKey, includeOverflow) => {
41
+ const keys = getPathKeys(key2pathRef.value.get(eventKey) || "");
42
+ if (includeOverflow && overflowKeys.value.includes(keys[0])) keys.unshift(OVERFLOW_KEY);
43
+ return keys;
44
+ };
45
+ const isSubPathKey = (pathKeys, eventKey) => pathKeys.filter((item) => item !== void 0).some((pathKey) => {
46
+ return getKeyPath(pathKey, true).includes(eventKey);
47
+ });
48
+ const getKeys = () => {
49
+ const keys = [...key2pathRef.value.keys()];
50
+ if (overflowKeys.value.length) keys.push(OVERFLOW_KEY);
51
+ return keys;
52
+ };
53
+ const getSubPathKeys = (key) => {
54
+ const connectedPath = `${key2pathRef.value.get(key)}${PATH_SPLIT}`;
55
+ const pathKeys = /* @__PURE__ */ new Set();
56
+ [...path2keyRef.value.keys()].forEach((pathKey) => {
57
+ if (pathKey.startsWith(connectedPath)) pathKeys.add(path2keyRef.value.get(pathKey));
58
+ });
59
+ return pathKeys;
60
+ };
61
+ (0, vue.onBeforeUnmount)(() => {
62
+ destroyRef.value = true;
63
+ });
64
+ return {
65
+ registerPath,
66
+ unregisterPath,
67
+ refreshOverflowKeys,
68
+ isSubPathKey,
69
+ getKeyPath,
70
+ getKeys,
71
+ getSubPathKeys
72
+ };
91
73
  }
92
74
  exports.OVERFLOW_KEY = OVERFLOW_KEY;
93
75
  exports.default = useKeyRecords;
@@ -1,93 +1,72 @@
1
- import { ref, shallowRef, onBeforeUnmount } from "vue";
2
1
  import { nextSlice } from "../utils/timeUtil.js";
3
- const PATH_SPLIT = "__VC_UTIL_PATH_SPLIT__";
4
- const getPathStr = (keyPath) => keyPath.join(PATH_SPLIT);
5
- const getPathKeys = (keyPathStr) => keyPathStr.split(PATH_SPLIT);
2
+ import { onBeforeUnmount, ref, shallowRef } from "vue";
3
+ var PATH_SPLIT = "__VC_UTIL_PATH_SPLIT__";
4
+ var getPathStr = (keyPath) => keyPath.join(PATH_SPLIT);
5
+ var getPathKeys = (keyPathStr) => keyPathStr.split(PATH_SPLIT);
6
6
  const OVERFLOW_KEY = "vc-menu-more";
7
7
  function useKeyRecords() {
8
- const forceUpdateCount = ref(0);
9
- const key2pathRef = shallowRef(/* @__PURE__ */ new Map());
10
- const path2keyRef = shallowRef(/* @__PURE__ */ new Map());
11
- const overflowKeys = ref([]);
12
- const updateRef = ref(0);
13
- const destroyRef = ref(false);
14
- const forceUpdate = () => {
15
- if (!destroyRef.value) {
16
- forceUpdateCount.value += 1;
17
- }
18
- };
19
- const registerPath = (key, keyPath) => {
20
- if (process.env.NODE_ENV !== "production") {
21
- if (key2pathRef.value.has(key)) {
22
- console.warn(
23
- `Duplicated key '${key}' used in Menu by path [${keyPath.join(" > ")}]`
24
- );
25
- }
26
- }
27
- const connectedPath = getPathStr(keyPath);
28
- path2keyRef.value.set(connectedPath, key);
29
- key2pathRef.value.set(key, connectedPath);
30
- updateRef.value += 1;
31
- const id = updateRef.value;
32
- nextSlice(() => {
33
- if (id === updateRef.value) {
34
- forceUpdate();
35
- }
36
- });
37
- };
38
- const unregisterPath = (key, keyPath) => {
39
- const connectedPath = getPathStr(keyPath);
40
- path2keyRef.value.delete(connectedPath);
41
- key2pathRef.value.delete(key);
42
- };
43
- const refreshOverflowKeys = (keys) => {
44
- overflowKeys.value = keys;
45
- };
46
- const getKeyPath = (eventKey, includeOverflow) => {
47
- const fullPath = key2pathRef.value.get(eventKey) || "";
48
- const keys = getPathKeys(fullPath);
49
- if (includeOverflow && overflowKeys.value.includes(keys[0])) {
50
- keys.unshift(OVERFLOW_KEY);
51
- }
52
- return keys;
53
- };
54
- const isSubPathKey = (pathKeys, eventKey) => pathKeys.filter((item) => item !== void 0).some((pathKey) => {
55
- const pathKeyList = getKeyPath(pathKey, true);
56
- return pathKeyList.includes(eventKey);
57
- });
58
- const getKeys = () => {
59
- const keys = [...key2pathRef.value.keys()];
60
- if (overflowKeys.value.length) {
61
- keys.push(OVERFLOW_KEY);
62
- }
63
- return keys;
64
- };
65
- const getSubPathKeys = (key) => {
66
- const connectedPath = `${key2pathRef.value.get(key)}${PATH_SPLIT}`;
67
- const pathKeys = /* @__PURE__ */ new Set();
68
- [...path2keyRef.value.keys()].forEach((pathKey) => {
69
- if (pathKey.startsWith(connectedPath)) {
70
- pathKeys.add(path2keyRef.value.get(pathKey));
71
- }
72
- });
73
- return pathKeys;
74
- };
75
- onBeforeUnmount(() => {
76
- destroyRef.value = true;
77
- });
78
- return {
79
- // Register
80
- registerPath,
81
- unregisterPath,
82
- refreshOverflowKeys,
83
- // Util
84
- isSubPathKey,
85
- getKeyPath,
86
- getKeys,
87
- getSubPathKeys
88
- };
8
+ const forceUpdateCount = ref(0);
9
+ const key2pathRef = shallowRef(/* @__PURE__ */ new Map());
10
+ const path2keyRef = shallowRef(/* @__PURE__ */ new Map());
11
+ const overflowKeys = ref([]);
12
+ const updateRef = ref(0);
13
+ const destroyRef = ref(false);
14
+ const forceUpdate = () => {
15
+ if (!destroyRef.value) forceUpdateCount.value += 1;
16
+ };
17
+ const registerPath = (key, keyPath) => {
18
+ if (process.env.NODE_ENV !== "production") {
19
+ if (key2pathRef.value.has(key)) console.warn(`Duplicated key '${key}' used in Menu by path [${keyPath.join(" > ")}]`);
20
+ }
21
+ const connectedPath = getPathStr(keyPath);
22
+ path2keyRef.value.set(connectedPath, key);
23
+ key2pathRef.value.set(key, connectedPath);
24
+ updateRef.value += 1;
25
+ const id = updateRef.value;
26
+ nextSlice(() => {
27
+ if (id === updateRef.value) forceUpdate();
28
+ });
29
+ };
30
+ const unregisterPath = (key, keyPath) => {
31
+ const connectedPath = getPathStr(keyPath);
32
+ path2keyRef.value.delete(connectedPath);
33
+ key2pathRef.value.delete(key);
34
+ };
35
+ const refreshOverflowKeys = (keys) => {
36
+ overflowKeys.value = keys;
37
+ };
38
+ const getKeyPath = (eventKey, includeOverflow) => {
39
+ const keys = getPathKeys(key2pathRef.value.get(eventKey) || "");
40
+ if (includeOverflow && overflowKeys.value.includes(keys[0])) keys.unshift(OVERFLOW_KEY);
41
+ return keys;
42
+ };
43
+ const isSubPathKey = (pathKeys, eventKey) => pathKeys.filter((item) => item !== void 0).some((pathKey) => {
44
+ return getKeyPath(pathKey, true).includes(eventKey);
45
+ });
46
+ const getKeys = () => {
47
+ const keys = [...key2pathRef.value.keys()];
48
+ if (overflowKeys.value.length) keys.push(OVERFLOW_KEY);
49
+ return keys;
50
+ };
51
+ const getSubPathKeys = (key) => {
52
+ const connectedPath = `${key2pathRef.value.get(key)}${PATH_SPLIT}`;
53
+ const pathKeys = /* @__PURE__ */ new Set();
54
+ [...path2keyRef.value.keys()].forEach((pathKey) => {
55
+ if (pathKey.startsWith(connectedPath)) pathKeys.add(path2keyRef.value.get(pathKey));
56
+ });
57
+ return pathKeys;
58
+ };
59
+ onBeforeUnmount(() => {
60
+ destroyRef.value = true;
61
+ });
62
+ return {
63
+ registerPath,
64
+ unregisterPath,
65
+ refreshOverflowKeys,
66
+ isSubPathKey,
67
+ getKeyPath,
68
+ getKeys,
69
+ getSubPathKeys
70
+ };
89
71
  }
90
- export {
91
- OVERFLOW_KEY,
92
- useKeyRecords as default
93
- };
72
+ export { OVERFLOW_KEY, useKeyRecords as default };
@@ -1,12 +1,12 @@
1
- "use strict";
2
- Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const vue = require("vue");
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ const require_rolldown_runtime = require("../_virtual/rolldown_runtime.cjs");
3
+ let vue = require("vue");
4
4
  function useMemoCallback(callback) {
5
- const fnRef = vue.ref(callback);
6
- fnRef.value = callback;
7
- const memoFn = ((...args) => {
8
- return fnRef.value(...args);
9
- });
10
- return memoFn;
5
+ const fnRef = (0, vue.ref)(callback);
6
+ fnRef.value = callback;
7
+ const memoFn = ((...args) => {
8
+ return fnRef.value(...args);
9
+ });
10
+ return memoFn;
11
11
  }
12
12
  exports.default = useMemoCallback;
@@ -1,12 +1,10 @@
1
1
  import { ref } from "vue";
2
2
  function useMemoCallback(callback) {
3
- const fnRef = ref(callback);
4
- fnRef.value = callback;
5
- const memoFn = ((...args) => {
6
- return fnRef.value(...args);
7
- });
8
- return memoFn;
3
+ const fnRef = ref(callback);
4
+ fnRef.value = callback;
5
+ const memoFn = ((...args) => {
6
+ return fnRef.value(...args);
7
+ });
8
+ return memoFn;
9
9
  }
10
- export {
11
- useMemoCallback as default
12
- };
10
+ export { useMemoCallback as default };
package/dist/index.cjs CHANGED
@@ -1,21 +1,21 @@
1
- "use strict";
2
- Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const PathContext = require("./context/PathContext.cjs");
4
- const Divider = require("./Divider.cjs");
5
- const Menu = require("./Menu.cjs");
6
- const MenuItem = require("./MenuItem.cjs");
7
- const MenuItemGroup = require("./MenuItemGroup.cjs");
8
- const index = require("./SubMenu/index.cjs");
9
- const ExportMenu = Menu.default;
10
- ExportMenu.Item = MenuItem.default;
11
- ExportMenu.SubMenu = index.default;
12
- ExportMenu.ItemGroup = MenuItemGroup.default;
13
- ExportMenu.Divider = Divider.default;
14
- exports.useFullPath = PathContext.useFullPath;
15
- exports.Divider = Divider.default;
16
- exports.Item = MenuItem.default;
17
- exports.MenuItem = MenuItem.default;
18
- exports.ItemGroup = MenuItemGroup.default;
19
- exports.MenuItemGroup = MenuItemGroup.default;
20
- exports.SubMenu = index.default;
21
- exports.default = ExportMenu;
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ const require_PathContext = require("./context/PathContext.cjs");
3
+ const require_Divider = require("./Divider.cjs");
4
+ const require_MenuItem = require("./MenuItem.cjs");
5
+ const require_index = require("./SubMenu/index.cjs");
6
+ const require_MenuItemGroup = require("./MenuItemGroup.cjs");
7
+ const require_Menu = require("./Menu.cjs");
8
+ var ExportMenu = require_Menu.default;
9
+ ExportMenu.Item = require_MenuItem.default;
10
+ ExportMenu.SubMenu = require_index.default;
11
+ ExportMenu.ItemGroup = require_MenuItemGroup.default;
12
+ ExportMenu.Divider = require_Divider.default;
13
+ var src_default = ExportMenu;
14
+ exports.Divider = require_Divider.default;
15
+ exports.Item = require_MenuItem.default;
16
+ exports.MenuItem = require_MenuItem.default;
17
+ exports.ItemGroup = require_MenuItemGroup.default;
18
+ exports.MenuItemGroup = require_MenuItemGroup.default;
19
+ exports.SubMenu = require_index.default;
20
+ exports.default = src_default;
21
+ exports.useFullPath = require_PathContext.useFullPath;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { MenuRef } from './interface';
1
+ import { MenuDividerType, MenuItemGroupType, MenuItemType, MenuRef, RenderIconInfo, SubMenuType } from './interface';
2
2
  import { MenuProps, default as Menu } from './Menu';
3
3
  import { MenuItemProps, default as MenuItem } from './MenuItem';
4
4
  import { MenuItemGroupProps, default as MenuItemGroup } from './MenuItemGroup';
@@ -8,7 +8,7 @@ import { default as Divider } from './Divider';
8
8
  export { Divider, MenuItem as Item, MenuItemGroup as ItemGroup, MenuItem, MenuItemGroup, SubMenu,
9
9
  /** @private Only used for antd internal. Do not use in your production. */
10
10
  useFullPath, };
11
- export type { MenuItemGroupProps, MenuItemProps, MenuProps, MenuRef, SubMenuProps, };
11
+ export type { MenuDividerType, MenuItemGroupProps, MenuItemGroupType, MenuItemProps, MenuItemType, MenuProps, MenuRef, RenderIconInfo, SubMenuProps, SubMenuType, };
12
12
  type MenuType = typeof Menu & {
13
13
  Item: typeof MenuItem;
14
14
  SubMenu: typeof SubMenu;
package/dist/index.js CHANGED
@@ -1,21 +1,13 @@
1
1
  import { useFullPath } from "./context/PathContext.js";
2
- import Divider from "./Divider.js";
3
- import Menu from "./Menu.js";
4
- import MenuItem from "./MenuItem.js";
5
- import MenuItemGroup from "./MenuItemGroup.js";
6
- import SubMenu from "./SubMenu/index.js";
7
- const ExportMenu = Menu;
8
- ExportMenu.Item = MenuItem;
9
- ExportMenu.SubMenu = SubMenu;
10
- ExportMenu.ItemGroup = MenuItemGroup;
11
- ExportMenu.Divider = Divider;
12
- export {
13
- Divider,
14
- MenuItem as Item,
15
- MenuItemGroup as ItemGroup,
16
- MenuItem,
17
- MenuItemGroup,
18
- SubMenu,
19
- ExportMenu as default,
20
- useFullPath
21
- };
2
+ import Divider_default from "./Divider.js";
3
+ import MenuItem_default from "./MenuItem.js";
4
+ import SubMenu_default from "./SubMenu/index.js";
5
+ import MenuItemGroup_default from "./MenuItemGroup.js";
6
+ import Menu_default from "./Menu.js";
7
+ var ExportMenu = Menu_default;
8
+ ExportMenu.Item = MenuItem_default;
9
+ ExportMenu.SubMenu = SubMenu_default;
10
+ ExportMenu.ItemGroup = MenuItemGroup_default;
11
+ ExportMenu.Divider = Divider_default;
12
+ var src_default = ExportMenu;
13
+ export { Divider_default as Divider, MenuItem_default as Item, MenuItem_default as MenuItem, MenuItemGroup_default as ItemGroup, MenuItemGroup_default as MenuItemGroup, SubMenu_default as SubMenu, src_default as default, useFullPath };
@@ -1 +0,0 @@
1
- "use strict";
package/dist/interface.js CHANGED
@@ -1 +0,0 @@
1
-
@@ -1,77 +1,77 @@
1
- "use strict";
2
- Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const autoAdjustOverflow = {
4
- adjustX: 1,
5
- adjustY: 1
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ var autoAdjustOverflow = {
3
+ adjustX: 1,
4
+ adjustY: 1
6
5
  };
7
6
  const placements = {
8
- topLeft: {
9
- points: ["bl", "tl"],
10
- overflow: autoAdjustOverflow
11
- },
12
- topRight: {
13
- points: ["br", "tr"],
14
- overflow: autoAdjustOverflow
15
- },
16
- bottomLeft: {
17
- points: ["tl", "bl"],
18
- overflow: autoAdjustOverflow
19
- },
20
- bottomRight: {
21
- points: ["tr", "br"],
22
- overflow: autoAdjustOverflow
23
- },
24
- leftTop: {
25
- points: ["tr", "tl"],
26
- overflow: autoAdjustOverflow
27
- },
28
- leftBottom: {
29
- points: ["br", "bl"],
30
- overflow: autoAdjustOverflow
31
- },
32
- rightTop: {
33
- points: ["tl", "tr"],
34
- overflow: autoAdjustOverflow
35
- },
36
- rightBottom: {
37
- points: ["bl", "br"],
38
- overflow: autoAdjustOverflow
39
- }
7
+ topLeft: {
8
+ points: ["bl", "tl"],
9
+ overflow: autoAdjustOverflow
10
+ },
11
+ topRight: {
12
+ points: ["br", "tr"],
13
+ overflow: autoAdjustOverflow
14
+ },
15
+ bottomLeft: {
16
+ points: ["tl", "bl"],
17
+ overflow: autoAdjustOverflow
18
+ },
19
+ bottomRight: {
20
+ points: ["tr", "br"],
21
+ overflow: autoAdjustOverflow
22
+ },
23
+ leftTop: {
24
+ points: ["tr", "tl"],
25
+ overflow: autoAdjustOverflow
26
+ },
27
+ leftBottom: {
28
+ points: ["br", "bl"],
29
+ overflow: autoAdjustOverflow
30
+ },
31
+ rightTop: {
32
+ points: ["tl", "tr"],
33
+ overflow: autoAdjustOverflow
34
+ },
35
+ rightBottom: {
36
+ points: ["bl", "br"],
37
+ overflow: autoAdjustOverflow
38
+ }
40
39
  };
41
40
  const placementsRtl = {
42
- topLeft: {
43
- points: ["bl", "tl"],
44
- overflow: autoAdjustOverflow
45
- },
46
- topRight: {
47
- points: ["br", "tr"],
48
- overflow: autoAdjustOverflow
49
- },
50
- bottomLeft: {
51
- points: ["tl", "bl"],
52
- overflow: autoAdjustOverflow
53
- },
54
- bottomRight: {
55
- points: ["tr", "br"],
56
- overflow: autoAdjustOverflow
57
- },
58
- rightTop: {
59
- points: ["tr", "tl"],
60
- overflow: autoAdjustOverflow
61
- },
62
- rightBottom: {
63
- points: ["br", "bl"],
64
- overflow: autoAdjustOverflow
65
- },
66
- leftTop: {
67
- points: ["tl", "tr"],
68
- overflow: autoAdjustOverflow
69
- },
70
- leftBottom: {
71
- points: ["bl", "br"],
72
- overflow: autoAdjustOverflow
73
- }
41
+ topLeft: {
42
+ points: ["bl", "tl"],
43
+ overflow: autoAdjustOverflow
44
+ },
45
+ topRight: {
46
+ points: ["br", "tr"],
47
+ overflow: autoAdjustOverflow
48
+ },
49
+ bottomLeft: {
50
+ points: ["tl", "bl"],
51
+ overflow: autoAdjustOverflow
52
+ },
53
+ bottomRight: {
54
+ points: ["tr", "br"],
55
+ overflow: autoAdjustOverflow
56
+ },
57
+ rightTop: {
58
+ points: ["tr", "tl"],
59
+ overflow: autoAdjustOverflow
60
+ },
61
+ rightBottom: {
62
+ points: ["br", "bl"],
63
+ overflow: autoAdjustOverflow
64
+ },
65
+ leftTop: {
66
+ points: ["tl", "tr"],
67
+ overflow: autoAdjustOverflow
68
+ },
69
+ leftBottom: {
70
+ points: ["bl", "br"],
71
+ overflow: autoAdjustOverflow
72
+ }
74
73
  };
75
- exports.default = placements;
74
+ var placements_default = placements;
75
+ exports.default = placements_default;
76
76
  exports.placements = placements;
77
77
  exports.placementsRtl = placementsRtl;