@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.
- package/dist/Divider.cjs +33 -36
- package/dist/Divider.js +28 -34
- package/dist/Icon.cjs +39 -38
- package/dist/Icon.js +36 -38
- package/dist/Menu.cjs +506 -575
- package/dist/Menu.d.ts +2 -0
- package/dist/Menu.js +495 -570
- package/dist/MenuItem.cjs +314 -344
- package/dist/MenuItem.js +303 -339
- package/dist/MenuItemGroup.cjs +98 -116
- package/dist/MenuItemGroup.js +91 -113
- package/dist/SubMenu/InlineSubMenuList.cjs +58 -82
- package/dist/SubMenu/InlineSubMenuList.js +54 -81
- package/dist/SubMenu/PopupTrigger.cjs +133 -167
- package/dist/SubMenu/PopupTrigger.d.ts +2 -2
- package/dist/SubMenu/PopupTrigger.js +126 -165
- package/dist/SubMenu/SubMenuList.cjs +18 -26
- package/dist/SubMenu/SubMenuList.js +14 -25
- package/dist/SubMenu/index.cjs +479 -526
- package/dist/SubMenu/index.js +469 -521
- package/dist/_virtual/rolldown_runtime.cjs +21 -0
- package/dist/context/IdContext.cjs +15 -23
- package/dist/context/IdContext.js +15 -27
- package/dist/context/MenuContext.cjs +183 -174
- package/dist/context/MenuContext.js +180 -177
- package/dist/context/PathContext.cjs +54 -79
- package/dist/context/PathContext.js +54 -90
- package/dist/context/PrivateContext.cjs +11 -17
- package/dist/context/PrivateContext.js +11 -20
- package/dist/hooks/useAccessibility.cjs +171 -191
- package/dist/hooks/useAccessibility.js +168 -193
- package/dist/hooks/useActive.cjs +25 -28
- package/dist/hooks/useActive.js +23 -28
- package/dist/hooks/useDirectionStyle.cjs +11 -17
- package/dist/hooks/useDirectionStyle.js +9 -17
- package/dist/hooks/useKeyRecords.cjs +70 -88
- package/dist/hooks/useKeyRecords.js +68 -89
- package/dist/hooks/useMemoCallback.cjs +9 -9
- package/dist/hooks/useMemoCallback.js +7 -9
- package/dist/index.cjs +21 -21
- package/dist/index.d.ts +2 -2
- package/dist/index.js +12 -20
- package/dist/interface.cjs +0 -1
- package/dist/interface.js +0 -1
- package/dist/placements.cjs +70 -70
- package/dist/placements.js +69 -72
- package/dist/utils/commonUtil.cjs +24 -26
- package/dist/utils/commonUtil.js +23 -26
- package/dist/utils/motionUtil.cjs +2 -9
- package/dist/utils/motionUtil.js +3 -10
- package/dist/utils/nodeUtil.cjs +49 -77
- package/dist/utils/nodeUtil.d.ts +4 -1
- package/dist/utils/nodeUtil.js +48 -77
- package/dist/utils/timeUtil.cjs +2 -3
- package/dist/utils/timeUtil.js +3 -4
- package/dist/utils/warnUtil.cjs +8 -14
- package/dist/utils/warnUtil.js +7 -14
- package/package.json +2 -2
|
@@ -1,93 +1,75 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
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
|
-
"
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
"
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
ExportMenu.
|
|
11
|
-
ExportMenu.
|
|
12
|
-
ExportMenu.
|
|
13
|
-
|
|
14
|
-
exports.
|
|
15
|
-
exports.
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
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
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
ExportMenu.Item =
|
|
9
|
-
ExportMenu.SubMenu =
|
|
10
|
-
ExportMenu.ItemGroup =
|
|
11
|
-
ExportMenu.Divider =
|
|
12
|
-
|
|
13
|
-
|
|
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 };
|
package/dist/interface.cjs
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
package/dist/interface.js
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/dist/placements.cjs
CHANGED
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
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
|
-
|
|
74
|
+
var placements_default = placements;
|
|
75
|
+
exports.default = placements_default;
|
|
76
76
|
exports.placements = placements;
|
|
77
77
|
exports.placementsRtl = placementsRtl;
|