layplux 1.0.1 → 2.0.1
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/cjs/components/center-view/index.cjs +18 -28
- package/dist/cjs/components/corner-glow/index.cjs +11 -28
- package/dist/cjs/components/dropdown/index.cjs +136 -130
- package/dist/cjs/components/icon/index.cjs +29 -51
- package/dist/cjs/components/index.cjs +24 -25
- package/dist/cjs/components/panel-view/index.cjs +111 -114
- package/dist/cjs/components/popup/index.cjs +166 -151
- package/dist/cjs/components/title/index.cjs +34 -47
- package/dist/cjs/components/tooltip/index.cjs +70 -61
- package/dist/cjs/components/widget/index.cjs +52 -72
- package/dist/cjs/index.cjs +13 -40
- package/dist/cjs/layout/glass-overlay.cjs +15 -28
- package/dist/cjs/layout/layered-manager.cjs +20 -29
- package/dist/cjs/layout/layplux.cjs +19 -32
- package/dist/cjs/layout/root-pane.cjs +20 -38
- package/dist/cjs/layout/skeleton/bottom-area.cjs +26 -43
- package/dist/cjs/layout/skeleton/bottom-left-area.cjs +12 -29
- package/dist/cjs/layout/skeleton/bottom-right-area.cjs +11 -28
- package/dist/cjs/layout/skeleton/center-area.cjs +278 -371
- package/dist/cjs/layout/skeleton/index.cjs +7 -24
- package/dist/cjs/layout/skeleton/left-bottom-area.cjs +12 -29
- package/dist/cjs/layout/skeleton/left-top-area.cjs +12 -29
- package/dist/cjs/layout/skeleton/right-bottom-area.cjs +11 -28
- package/dist/cjs/layout/skeleton/right-top-area.cjs +11 -28
- package/dist/cjs/layout/skeleton/skeleton.cjs +55 -60
- package/dist/cjs/layout/skeleton/top-area.cjs +26 -43
- package/dist/cjs/locales/en-US.cjs +11 -30
- package/dist/cjs/locales/index.cjs +12 -30
- package/dist/cjs/locales/zh-CN.cjs +11 -30
- package/dist/cjs/managers/area.cjs +12 -25
- package/dist/cjs/managers/index.cjs +12 -20
- package/dist/cjs/managers/pane.cjs +12 -26
- package/dist/cjs/managers/skeleton.cjs +112 -124
- package/dist/cjs/managers/theme.cjs +8 -29
- package/dist/cjs/managers/widget-container.cjs +31 -31
- package/dist/cjs/managers/widget.cjs +63 -50
- package/dist/cjs/types/config.cjs +2 -16
- package/dist/cjs/types/index.cjs +2 -18
- package/dist/cjs/types/locale.cjs +2 -16
- package/dist/cjs/utils/event-bus.cjs +53 -49
- package/dist/cjs/utils/focus-tracker.cjs +66 -42
- package/dist/cjs/utils/index.cjs +23 -31
- package/dist/cjs/utils/unique-id.cjs +5 -24
- package/dist/cjs/utils/vue.cjs +20 -30
- package/dist/esm/components/center-view/index.mjs +15 -7
- package/dist/esm/components/corner-glow/index.mjs +8 -7
- package/dist/esm/components/dropdown/index.mjs +117 -101
- package/dist/esm/components/icon/index.mjs +24 -30
- package/dist/esm/components/index.mjs +7 -8
- package/dist/esm/components/panel-view/index.mjs +107 -98
- package/dist/esm/components/popup/index.mjs +155 -130
- package/dist/esm/components/title/index.mjs +29 -24
- package/dist/esm/components/tooltip/index.mjs +67 -40
- package/dist/esm/components/widget/index.mjs +45 -48
- package/dist/esm/index.mjs +4 -10
- package/dist/esm/layout/glass-overlay.mjs +12 -7
- package/dist/esm/layout/layered-manager.mjs +17 -8
- package/dist/esm/layout/layplux.mjs +14 -11
- package/dist/esm/layout/root-pane.mjs +16 -16
- package/dist/esm/layout/skeleton/bottom-area.mjs +23 -22
- package/dist/esm/layout/skeleton/bottom-left-area.mjs +9 -8
- package/dist/esm/layout/skeleton/bottom-right-area.mjs +8 -7
- package/dist/esm/layout/skeleton/center-area.mjs +251 -333
- package/dist/esm/layout/skeleton/index.mjs +1 -4
- package/dist/esm/layout/skeleton/left-bottom-area.mjs +9 -8
- package/dist/esm/layout/skeleton/left-top-area.mjs +9 -8
- package/dist/esm/layout/skeleton/right-bottom-area.mjs +8 -7
- package/dist/esm/layout/skeleton/right-top-area.mjs +8 -7
- package/dist/esm/layout/skeleton/skeleton.mjs +52 -39
- package/dist/esm/layout/skeleton/top-area.mjs +23 -22
- package/dist/esm/locales/en-US.mjs +9 -10
- package/dist/esm/locales/index.mjs +7 -9
- package/dist/esm/locales/zh-CN.mjs +9 -10
- package/dist/esm/managers/area.mjs +10 -5
- package/dist/esm/managers/index.mjs +3 -3
- package/dist/esm/managers/pane.mjs +9 -5
- package/dist/esm/managers/skeleton.mjs +97 -95
- package/dist/esm/managers/theme.mjs +6 -9
- package/dist/esm/managers/widget-container.mjs +28 -10
- package/dist/esm/managers/widget.mjs +55 -25
- package/dist/esm/types/config.mjs +1 -0
- package/dist/esm/types/index.mjs +1 -1
- package/dist/esm/types/locale.mjs +1 -0
- package/dist/esm/utils/event-bus.mjs +46 -17
- package/dist/esm/utils/focus-tracker.mjs +63 -23
- package/dist/esm/utils/index.mjs +7 -10
- package/dist/esm/utils/unique-id.mjs +3 -4
- package/dist/esm/utils/vue.mjs +13 -5
- package/dist/types/managers/skeleton.d.ts.map +1 -1
- package/dist/umd/index.js +2 -30
- package/package.json +18 -14
|
@@ -1,27 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var unique_id_exports = {};
|
|
20
|
-
__export(unique_id_exports, {
|
|
21
|
-
uniqueId: () => uniqueId
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(unique_id_exports);
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
24
3
|
let guid = Date.now();
|
|
25
|
-
function uniqueId(prefix =
|
|
4
|
+
function uniqueId(prefix = '') {
|
|
26
5
|
return `${prefix}${(guid++).toString(36).toLowerCase()}`;
|
|
27
6
|
}
|
|
7
|
+
|
|
8
|
+
exports.uniqueId = uniqueId;
|
package/dist/cjs/utils/vue.cjs
CHANGED
|
@@ -1,37 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var vue_exports = {};
|
|
20
|
-
__export(vue_exports, {
|
|
21
|
-
createContent: () => createContent
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(vue_exports);
|
|
24
|
-
var import_vue = require("vue");
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
|
|
25
5
|
function createContent(content, extraProps = {}) {
|
|
26
6
|
if (!content) return null;
|
|
27
|
-
|
|
28
|
-
|
|
7
|
+
|
|
8
|
+
// 1. 是 VNode -> 克隆并合并属性
|
|
9
|
+
if (vue.isVNode(content)) {
|
|
10
|
+
return vue.cloneVNode(content, extraProps);
|
|
29
11
|
}
|
|
30
|
-
|
|
12
|
+
|
|
13
|
+
// 2. 是字符串
|
|
14
|
+
if (typeof content === 'string') {
|
|
15
|
+
// 如果需要附加属性,则包裹在 span 中
|
|
31
16
|
if (Object.keys(extraProps).length > 0) {
|
|
32
|
-
return
|
|
17
|
+
return vue.h(content, extraProps, content);
|
|
33
18
|
}
|
|
34
|
-
|
|
19
|
+
// 否则创建纯文本节点,避免多余 DOM
|
|
20
|
+
return vue.h(vue.Text, null, content);
|
|
35
21
|
}
|
|
36
|
-
|
|
22
|
+
|
|
23
|
+
// 3. 否则视为组件(对象或函数)
|
|
24
|
+
return vue.h(content, extraProps);
|
|
37
25
|
}
|
|
26
|
+
|
|
27
|
+
exports.createContent = createContent;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { defineComponent, createVNode, Teleport, isVNode } from 'vue';
|
|
2
|
+
|
|
3
|
+
function _isSlot(s) {
|
|
4
|
+
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
|
|
5
|
+
}
|
|
3
6
|
const CenterView = defineComponent({
|
|
4
|
-
name:
|
|
7
|
+
name: 'CenterView',
|
|
5
8
|
props: {
|
|
6
9
|
widget: Object,
|
|
7
10
|
anchor: {
|
|
@@ -11,11 +14,16 @@ const CenterView = defineComponent({
|
|
|
11
14
|
},
|
|
12
15
|
setup(props) {
|
|
13
16
|
return () => {
|
|
17
|
+
let _slot;
|
|
14
18
|
if (!props.widget) return null;
|
|
15
|
-
return
|
|
19
|
+
return createVNode(Teleport, {
|
|
20
|
+
"defer": true,
|
|
21
|
+
"to": props.anchor
|
|
22
|
+
}, _isSlot(_slot = props.widget.renderContent()) ? _slot : {
|
|
23
|
+
default: () => [_slot]
|
|
24
|
+
});
|
|
16
25
|
};
|
|
17
26
|
}
|
|
18
27
|
});
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
};
|
|
28
|
+
|
|
29
|
+
export { CenterView };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { defineComponent, createVNode } from 'vue';
|
|
2
|
+
|
|
3
3
|
const CornerGlow = defineComponent({
|
|
4
|
-
name:
|
|
4
|
+
name: 'CornerGlow',
|
|
5
5
|
setup() {
|
|
6
|
-
return () =>
|
|
6
|
+
return () => createVNode("div", {
|
|
7
|
+
"class": "corner-glow"
|
|
8
|
+
}, null);
|
|
7
9
|
}
|
|
8
10
|
});
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
};
|
|
11
|
+
|
|
12
|
+
export { CornerGlow };
|
|
@@ -1,63 +1,89 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import { Popup } from "../popup/index.mjs";
|
|
8
|
-
import { ChevronRightIcon } from "../icon/index.mjs";
|
|
9
|
-
const DROPDOWN_CLOSE = Symbol("dropdown-close");
|
|
10
|
-
const DROPDOWN_ON_CLICK = Symbol("dropdown-on-click");
|
|
1
|
+
import { defineComponent, provide, createVNode, inject } from 'vue';
|
|
2
|
+
import { Popup } from '../popup/index.mjs';
|
|
3
|
+
import { ChevronRightIcon } from '../icon/index.mjs';
|
|
4
|
+
|
|
5
|
+
const DROPDOWN_CLOSE = Symbol('dropdown-close');
|
|
6
|
+
const DROPDOWN_ON_CLICK = Symbol('dropdown-on-click');
|
|
11
7
|
const Dropdown = defineComponent({
|
|
12
|
-
name:
|
|
8
|
+
name: 'LaypluxDropdown',
|
|
13
9
|
props: {
|
|
14
10
|
visible: Boolean,
|
|
15
|
-
trigger: {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
trigger: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: 'click'
|
|
14
|
+
},
|
|
15
|
+
placement: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: 'bottom-start'
|
|
18
|
+
},
|
|
19
|
+
disabled: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: false
|
|
22
|
+
},
|
|
23
|
+
destroyOnClose: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: true
|
|
26
|
+
},
|
|
19
27
|
onClick: Function,
|
|
20
|
-
getContainer: {
|
|
28
|
+
getContainer: {
|
|
29
|
+
type: Function
|
|
30
|
+
}
|
|
21
31
|
},
|
|
22
|
-
emits: [
|
|
23
|
-
setup(props, {
|
|
32
|
+
emits: ['update:visible'],
|
|
33
|
+
setup(props, {
|
|
34
|
+
emit,
|
|
35
|
+
slots
|
|
36
|
+
}) {
|
|
24
37
|
const closeDropdown = () => {
|
|
25
|
-
emit(
|
|
38
|
+
emit('update:visible', false);
|
|
26
39
|
};
|
|
27
40
|
provide(DROPDOWN_CLOSE, closeDropdown);
|
|
28
41
|
provide(DROPDOWN_ON_CLICK, props.onClick);
|
|
29
|
-
return () =>
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
);
|
|
42
|
+
return () => createVNode(Popup, {
|
|
43
|
+
"visible": props.visible,
|
|
44
|
+
"trigger": props.trigger,
|
|
45
|
+
"placement": props.placement,
|
|
46
|
+
"disabled": props.disabled,
|
|
47
|
+
"destroyOnClose": props.destroyOnClose,
|
|
48
|
+
"getContainer": props.getContainer,
|
|
49
|
+
"onUpdate:visible": v => emit('update:visible', v)
|
|
50
|
+
}, {
|
|
51
|
+
default: () => slots.default?.(),
|
|
52
|
+
content: () => createVNode("div", {
|
|
53
|
+
"class": "layplux-dropdown"
|
|
54
|
+
}, [slots.overlay?.()])
|
|
55
|
+
});
|
|
45
56
|
}
|
|
46
57
|
});
|
|
47
58
|
const DropdownMenu = defineComponent({
|
|
48
|
-
name:
|
|
49
|
-
setup(_props, {
|
|
50
|
-
|
|
59
|
+
name: 'LaypluxDropdownMenu',
|
|
60
|
+
setup(_props, {
|
|
61
|
+
slots
|
|
62
|
+
}) {
|
|
63
|
+
return () => createVNode("div", {
|
|
64
|
+
"class": "layplux-dropdown-menu"
|
|
65
|
+
}, [slots.default?.()]);
|
|
51
66
|
}
|
|
52
67
|
});
|
|
53
68
|
const DropdownItem = defineComponent({
|
|
54
|
-
name:
|
|
69
|
+
name: 'LaypluxDropdownItem',
|
|
55
70
|
props: {
|
|
56
|
-
eventKey: {
|
|
57
|
-
|
|
58
|
-
|
|
71
|
+
eventKey: {
|
|
72
|
+
type: String,
|
|
73
|
+
required: true
|
|
74
|
+
},
|
|
75
|
+
disabled: {
|
|
76
|
+
type: Boolean,
|
|
77
|
+
default: false
|
|
78
|
+
},
|
|
79
|
+
danger: {
|
|
80
|
+
type: Boolean,
|
|
81
|
+
default: false
|
|
82
|
+
}
|
|
59
83
|
},
|
|
60
|
-
setup(props, {
|
|
84
|
+
setup(props, {
|
|
85
|
+
slots
|
|
86
|
+
}) {
|
|
61
87
|
const closeDropdown = inject(DROPDOWN_CLOSE);
|
|
62
88
|
const onItemClick = inject(DROPDOWN_ON_CLICK);
|
|
63
89
|
const handleClick = () => {
|
|
@@ -65,82 +91,72 @@ const DropdownItem = defineComponent({
|
|
|
65
91
|
onItemClick?.(props.eventKey);
|
|
66
92
|
closeDropdown?.();
|
|
67
93
|
};
|
|
68
|
-
return () =>
|
|
69
|
-
"
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
"layplux-dropdown-menu__item",
|
|
73
|
-
props.disabled && "layplux-dropdown-menu__item--disabled",
|
|
74
|
-
props.danger && "layplux-dropdown-menu__item--danger"
|
|
75
|
-
],
|
|
76
|
-
onClick: handleClick,
|
|
77
|
-
children: slots.default?.()
|
|
78
|
-
}
|
|
79
|
-
);
|
|
94
|
+
return () => createVNode("div", {
|
|
95
|
+
"class": ['layplux-dropdown-menu__item', props.disabled && 'layplux-dropdown-menu__item--disabled', props.danger && 'layplux-dropdown-menu__item--danger'],
|
|
96
|
+
"onClick": handleClick
|
|
97
|
+
}, [slots.default?.()]);
|
|
80
98
|
}
|
|
81
99
|
});
|
|
82
100
|
const DropdownDivider = defineComponent({
|
|
83
|
-
name:
|
|
101
|
+
name: 'LaypluxDropdownDivider',
|
|
84
102
|
setup() {
|
|
85
|
-
return () =>
|
|
103
|
+
return () => createVNode("div", {
|
|
104
|
+
"class": "layplux-dropdown-menu__divider"
|
|
105
|
+
}, null);
|
|
86
106
|
}
|
|
87
107
|
});
|
|
88
108
|
const DropdownSubmenu = defineComponent({
|
|
89
|
-
name:
|
|
109
|
+
name: 'LaypluxDropdownSubmenu',
|
|
90
110
|
props: {
|
|
91
|
-
title: {
|
|
111
|
+
title: {
|
|
112
|
+
type: String
|
|
113
|
+
},
|
|
92
114
|
icon: Object,
|
|
93
|
-
disabled: {
|
|
94
|
-
|
|
115
|
+
disabled: {
|
|
116
|
+
type: Boolean,
|
|
117
|
+
default: false
|
|
118
|
+
},
|
|
119
|
+
getContainer: {
|
|
120
|
+
type: Function
|
|
121
|
+
}
|
|
95
122
|
},
|
|
96
|
-
setup(props, {
|
|
123
|
+
setup(props, {
|
|
124
|
+
slots
|
|
125
|
+
}) {
|
|
97
126
|
const closeParent = inject(DROPDOWN_CLOSE);
|
|
98
127
|
const onParentClick = inject(DROPDOWN_ON_CLICK);
|
|
99
128
|
if (closeParent) {
|
|
100
129
|
provide(DROPDOWN_CLOSE, closeParent);
|
|
101
130
|
}
|
|
102
|
-
const handleClick =
|
|
131
|
+
const handleClick = key => {
|
|
103
132
|
onParentClick?.(key);
|
|
104
133
|
closeParent?.();
|
|
105
134
|
};
|
|
106
135
|
provide(DROPDOWN_ON_CLICK, handleClick);
|
|
107
|
-
return () =>
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
/* @__PURE__ */ jsx(ChevronRightIcon, { size: 12, class: "layplux-dropdown-menu__submenu-arrow" })
|
|
131
|
-
]
|
|
132
|
-
}
|
|
133
|
-
),
|
|
134
|
-
content: () => /* @__PURE__ */ jsx("div", { class: "layplux-dropdown", children: slots.default?.() })
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
);
|
|
136
|
+
return () => createVNode(Popup, {
|
|
137
|
+
"trigger": "hover",
|
|
138
|
+
"placement": "right-start",
|
|
139
|
+
"offset": {
|
|
140
|
+
x: 4,
|
|
141
|
+
y: 0
|
|
142
|
+
},
|
|
143
|
+
"mouseEnterDelay": 150,
|
|
144
|
+
"mouseLeaveDelay": 100,
|
|
145
|
+
"destroyOnClose": true,
|
|
146
|
+
"disabled": props.disabled,
|
|
147
|
+
"getContainer": props.getContainer
|
|
148
|
+
}, {
|
|
149
|
+
default: () => createVNode("div", {
|
|
150
|
+
"class": ['layplux-dropdown-menu__item', 'layplux-dropdown-menu__item--submenu', props.disabled && 'layplux-dropdown-menu__item--disabled']
|
|
151
|
+
}, [props.icon, createVNode("span", null, [props.title]), createVNode(ChevronRightIcon, {
|
|
152
|
+
"size": 12,
|
|
153
|
+
"class": "layplux-dropdown-menu__submenu-arrow"
|
|
154
|
+
}, null)]),
|
|
155
|
+
content: () => createVNode("div", {
|
|
156
|
+
"class": "layplux-dropdown"
|
|
157
|
+
}, [slots.default?.()])
|
|
158
|
+
});
|
|
138
159
|
}
|
|
139
160
|
});
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
DropdownDivider,
|
|
143
|
-
DropdownItem,
|
|
144
|
-
DropdownMenu,
|
|
145
|
-
DropdownSubmenu
|
|
146
|
-
};
|
|
161
|
+
|
|
162
|
+
export { Dropdown, DropdownDivider, DropdownItem, DropdownMenu, DropdownSubmenu };
|
|
@@ -1,39 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { defineComponent, createVNode } from 'vue';
|
|
2
|
+
|
|
3
3
|
const iconProps = {
|
|
4
|
-
size: {
|
|
4
|
+
size: {
|
|
5
|
+
type: [Number, String],
|
|
6
|
+
default: 16
|
|
7
|
+
}
|
|
5
8
|
};
|
|
6
|
-
function createIcon(d, viewBox =
|
|
9
|
+
function createIcon(d, viewBox = '0 0 16 16') {
|
|
7
10
|
return defineComponent({
|
|
8
|
-
name:
|
|
11
|
+
name: 'LaypluxIcon',
|
|
9
12
|
props: iconProps,
|
|
10
13
|
setup(props) {
|
|
11
|
-
return () =>
|
|
12
|
-
"svg",
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
style: { flexShrink: 0 },
|
|
20
|
-
children: /* @__PURE__ */ jsx("path", { d })
|
|
14
|
+
return () => createVNode("svg", {
|
|
15
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
16
|
+
"viewBox": viewBox,
|
|
17
|
+
"width": props.size,
|
|
18
|
+
"height": props.size,
|
|
19
|
+
"fill": "currentColor",
|
|
20
|
+
"style": {
|
|
21
|
+
flexShrink: 0
|
|
21
22
|
}
|
|
22
|
-
|
|
23
|
+
}, [createVNode("path", {
|
|
24
|
+
"d": d
|
|
25
|
+
}, null)]);
|
|
23
26
|
}
|
|
24
27
|
});
|
|
25
28
|
}
|
|
26
|
-
const MoreIcon = createIcon(
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
const ChevronRightIcon = createIcon(
|
|
32
|
-
"M8.59 16.58L13.17 12L8.59 7.41L10 6l6 6l-6 6z",
|
|
33
|
-
"0 0 24 24"
|
|
34
|
-
);
|
|
35
|
-
export {
|
|
36
|
-
ChevronRightIcon,
|
|
37
|
-
MinimizeIcon,
|
|
38
|
-
MoreIcon
|
|
39
|
-
};
|
|
29
|
+
const MoreIcon = createIcon('M16 12a2 2 0 0 1 2-2a2 2 0 0 1 2 2a2 2 0 0 1-2 2a2 2 0 0 1-2-2m-6 0a2 2 0 0 1 2-2a2 2 0 0 1 2 2a2 2 0 0 1-2 2a2 2 0 0 1-2-2m-6 0a2 2 0 0 1 2-2a2 2 0 0 1 2 2a2 2 0 0 1-2 2a2 2 0 0 1-2-2', '0 0 24 24');
|
|
30
|
+
const MinimizeIcon = createIcon('M19 13H5v-2h14z', '0 0 24 24');
|
|
31
|
+
const ChevronRightIcon = createIcon('M8.59 16.58L13.17 12L8.59 7.41L10 6l6 6l-6 6z', '0 0 24 24');
|
|
32
|
+
|
|
33
|
+
export { ChevronRightIcon, MinimizeIcon, MoreIcon };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export * from "./center-view/index.mjs";
|
|
1
|
+
export { CornerGlow } from './corner-glow/index.mjs';
|
|
2
|
+
export { PanelView } from './panel-view/index.mjs';
|
|
3
|
+
export { WidgetTitleView, WidgetView } from './widget/index.mjs';
|
|
4
|
+
export { TitleView } from './title/index.mjs';
|
|
5
|
+
export { Dropdown, DropdownDivider, DropdownItem, DropdownMenu, DropdownSubmenu } from './dropdown/index.mjs';
|
|
6
|
+
export { Tooltip } from './tooltip/index.mjs';
|
|
7
|
+
export { CenterView } from './center-view/index.mjs';
|