layplux 0.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 +41 -0
- package/dist/cjs/components/corner-glow/index.cjs +31 -0
- package/dist/cjs/components/dropdown/index.cjs +162 -0
- package/dist/cjs/components/icon/index.cjs +59 -0
- package/dist/cjs/components/index.cjs +25 -0
- package/dist/cjs/components/panel-view/index.cjs +166 -0
- package/dist/cjs/components/popup/index.cjs +280 -0
- package/dist/cjs/components/title/index.cjs +76 -0
- package/dist/cjs/components/tooltip/index.cjs +68 -0
- package/dist/cjs/components/widget/index.cjs +104 -0
- package/dist/cjs/index.cjs +40 -0
- package/dist/cjs/layout/glass-overlay.cjs +31 -0
- package/dist/cjs/layout/layered-manager.cjs +35 -0
- package/dist/cjs/layout/layplux.cjs +41 -0
- package/dist/cjs/layout/root-pane.cjs +46 -0
- package/dist/cjs/layout/skeleton/bottom-area.cjs +64 -0
- package/dist/cjs/layout/skeleton/bottom-left-area.cjs +42 -0
- package/dist/cjs/layout/skeleton/bottom-right-area.cjs +38 -0
- package/dist/cjs/layout/skeleton/center-area.cjs +467 -0
- package/dist/cjs/layout/skeleton/index.cjs +24 -0
- package/dist/cjs/layout/skeleton/left-bottom-area.cjs +42 -0
- package/dist/cjs/layout/skeleton/left-top-area.cjs +42 -0
- package/dist/cjs/layout/skeleton/right-bottom-area.cjs +38 -0
- package/dist/cjs/layout/skeleton/right-top-area.cjs +38 -0
- package/dist/cjs/layout/skeleton/skeleton.cjs +66 -0
- package/dist/cjs/layout/skeleton/top-area.cjs +64 -0
- package/dist/cjs/locales/en-US.cjs +34 -0
- package/dist/cjs/locales/index.cjs +39 -0
- package/dist/cjs/locales/zh-CN.cjs +34 -0
- package/dist/cjs/managers/area.cjs +32 -0
- package/dist/cjs/managers/index.cjs +20 -0
- package/dist/cjs/managers/pane.cjs +34 -0
- package/dist/cjs/managers/skeleton.cjs +208 -0
- package/dist/cjs/managers/theme.cjs +37 -0
- package/dist/cjs/managers/widget-container.cjs +96 -0
- package/dist/cjs/managers/widget.cjs +103 -0
- package/dist/cjs/types/config.cjs +16 -0
- package/dist/cjs/types/index.cjs +18 -0
- package/dist/cjs/types/locale.cjs +16 -0
- package/dist/cjs/utils/event-bus.cjs +154 -0
- package/dist/cjs/utils/focus-tracker.cjs +154 -0
- package/dist/cjs/utils/index.cjs +31 -0
- package/dist/cjs/utils/unique-id.cjs +27 -0
- package/dist/cjs/utils/vue.cjs +37 -0
- package/dist/esm/components/center-view/index.mjs +21 -0
- package/dist/esm/components/corner-glow/index.mjs +11 -0
- package/dist/esm/components/dropdown/index.mjs +146 -0
- package/dist/esm/components/icon/index.mjs +39 -0
- package/dist/esm/components/index.mjs +8 -0
- package/dist/esm/components/panel-view/index.mjs +152 -0
- package/dist/esm/components/popup/index.mjs +268 -0
- package/dist/esm/components/title/index.mjs +56 -0
- package/dist/esm/components/tooltip/index.mjs +48 -0
- package/dist/esm/components/widget/index.mjs +84 -0
- package/dist/esm/index.mjs +10 -0
- package/dist/esm/layout/glass-overlay.mjs +11 -0
- package/dist/esm/layout/layered-manager.mjs +15 -0
- package/dist/esm/layout/layplux.mjs +21 -0
- package/dist/esm/layout/root-pane.mjs +26 -0
- package/dist/esm/layout/skeleton/bottom-area.mjs +44 -0
- package/dist/esm/layout/skeleton/bottom-left-area.mjs +22 -0
- package/dist/esm/layout/skeleton/bottom-right-area.mjs +18 -0
- package/dist/esm/layout/skeleton/center-area.mjs +454 -0
- package/dist/esm/layout/skeleton/index.mjs +4 -0
- package/dist/esm/layout/skeleton/left-bottom-area.mjs +22 -0
- package/dist/esm/layout/skeleton/left-top-area.mjs +22 -0
- package/dist/esm/layout/skeleton/right-bottom-area.mjs +18 -0
- package/dist/esm/layout/skeleton/right-top-area.mjs +18 -0
- package/dist/esm/layout/skeleton/skeleton.mjs +46 -0
- package/dist/esm/layout/skeleton/top-area.mjs +44 -0
- package/dist/esm/locales/en-US.mjs +14 -0
- package/dist/esm/locales/index.mjs +19 -0
- package/dist/esm/locales/zh-CN.mjs +14 -0
- package/dist/esm/managers/area.mjs +12 -0
- package/dist/esm/managers/index.mjs +3 -0
- package/dist/esm/managers/pane.mjs +14 -0
- package/dist/esm/managers/skeleton.mjs +192 -0
- package/dist/esm/managers/theme.mjs +17 -0
- package/dist/esm/managers/widget-container.mjs +76 -0
- package/dist/esm/managers/widget.mjs +83 -0
- package/dist/esm/types/config.mjs +0 -0
- package/dist/esm/types/index.mjs +1 -0
- package/dist/esm/types/locale.mjs +0 -0
- package/dist/esm/utils/event-bus.mjs +124 -0
- package/dist/esm/utils/focus-tracker.mjs +135 -0
- package/dist/esm/utils/index.mjs +10 -0
- package/dist/esm/utils/unique-id.mjs +7 -0
- package/dist/esm/utils/vue.mjs +17 -0
- package/dist/style/base/_tokens-dark.scss +51 -0
- package/dist/style/base/_tokens.scss +56 -0
- package/dist/style/components/_bottom-area.scss +30 -0
- package/dist/style/components/_bottom-left-area.scss +8 -0
- package/dist/style/components/_bottom-right-area.scss +8 -0
- package/dist/style/components/_center-area.scss +162 -0
- package/dist/style/components/_corner-glow.scss +17 -0
- package/dist/style/components/_dropdown.scss +91 -0
- package/dist/style/components/_glass-pane.scss +6 -0
- package/dist/style/components/_layered-manager.scss +6 -0
- package/dist/style/components/_left-bottom-area.scss +8 -0
- package/dist/style/components/_left-top-area.scss +9 -0
- package/dist/style/components/_pane-view.scss +79 -0
- package/dist/style/components/_popup.scss +19 -0
- package/dist/style/components/_right-bottom-area.scss +8 -0
- package/dist/style/components/_right-top-area.scss +8 -0
- package/dist/style/components/_root-pane.scss +17 -0
- package/dist/style/components/_skeleton.scss +38 -0
- package/dist/style/components/_title-view.scss +176 -0
- package/dist/style/components/_tooltip.scss +65 -0
- package/dist/style/components/_top-area.scss +25 -0
- package/dist/style/index.css +768 -0
- package/dist/style/layplux.scss +21 -0
- package/dist/types/components/center-view/index.d.ts +16 -0
- package/dist/types/components/center-view/index.d.ts.map +1 -0
- package/dist/types/components/corner-glow/index.d.ts +2 -0
- package/dist/types/components/corner-glow/index.d.ts.map +1 -0
- package/dist/types/components/dropdown/index.d.ts +116 -0
- package/dist/types/components/dropdown/index.d.ts.map +1 -0
- package/dist/types/components/icon/index.d.ts +22 -0
- package/dist/types/components/icon/index.d.ts.map +1 -0
- package/dist/types/components/index.d.ts +9 -0
- package/dist/types/components/index.d.ts.map +1 -0
- package/dist/types/components/panel-view/index.d.ts +22 -0
- package/dist/types/components/panel-view/index.d.ts.map +1 -0
- package/dist/types/components/popup/index.d.ts +99 -0
- package/dist/types/components/popup/index.d.ts.map +1 -0
- package/dist/types/components/title/index.d.ts +57 -0
- package/dist/types/components/title/index.d.ts.map +1 -0
- package/dist/types/components/tooltip/index.d.ts +69 -0
- package/dist/types/components/tooltip/index.d.ts.map +1 -0
- package/dist/types/components/widget/index.d.ts +15 -0
- package/dist/types/components/widget/index.d.ts.map +1 -0
- package/dist/types/index.d.ts +10 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/layout/glass-overlay.d.ts +2 -0
- package/dist/types/layout/glass-overlay.d.ts.map +1 -0
- package/dist/types/layout/layered-manager.d.ts +8 -0
- package/dist/types/layout/layered-manager.d.ts.map +1 -0
- package/dist/types/layout/layplux.d.ts +25 -0
- package/dist/types/layout/layplux.d.ts.map +1 -0
- package/dist/types/layout/root-pane.d.ts +8 -0
- package/dist/types/layout/root-pane.d.ts.map +1 -0
- package/dist/types/layout/skeleton/bottom-area.d.ts +9 -0
- package/dist/types/layout/skeleton/bottom-area.d.ts.map +1 -0
- package/dist/types/layout/skeleton/bottom-left-area.d.ts +9 -0
- package/dist/types/layout/skeleton/bottom-left-area.d.ts.map +1 -0
- package/dist/types/layout/skeleton/bottom-right-area.d.ts +9 -0
- package/dist/types/layout/skeleton/bottom-right-area.d.ts.map +1 -0
- package/dist/types/layout/skeleton/center-area.d.ts +11 -0
- package/dist/types/layout/skeleton/center-area.d.ts.map +1 -0
- package/dist/types/layout/skeleton/index.d.ts +2 -0
- package/dist/types/layout/skeleton/index.d.ts.map +1 -0
- package/dist/types/layout/skeleton/left-bottom-area.d.ts +9 -0
- package/dist/types/layout/skeleton/left-bottom-area.d.ts.map +1 -0
- package/dist/types/layout/skeleton/left-top-area.d.ts +9 -0
- package/dist/types/layout/skeleton/left-top-area.d.ts.map +1 -0
- package/dist/types/layout/skeleton/right-bottom-area.d.ts +9 -0
- package/dist/types/layout/skeleton/right-bottom-area.d.ts.map +1 -0
- package/dist/types/layout/skeleton/right-top-area.d.ts +9 -0
- package/dist/types/layout/skeleton/right-top-area.d.ts.map +1 -0
- package/dist/types/layout/skeleton/skeleton.d.ts +8 -0
- package/dist/types/layout/skeleton/skeleton.d.ts.map +1 -0
- package/dist/types/layout/skeleton/top-area.d.ts +9 -0
- package/dist/types/layout/skeleton/top-area.d.ts.map +1 -0
- package/dist/types/locales/en-US.d.ts +3 -0
- package/dist/types/locales/en-US.d.ts.map +1 -0
- package/dist/types/locales/index.d.ts +7 -0
- package/dist/types/locales/index.d.ts.map +1 -0
- package/dist/types/locales/zh-CN.d.ts +3 -0
- package/dist/types/locales/zh-CN.d.ts.map +1 -0
- package/dist/types/managers/area.d.ts +10 -0
- package/dist/types/managers/area.d.ts.map +1 -0
- package/dist/types/managers/index.d.ts +5 -0
- package/dist/types/managers/index.d.ts.map +1 -0
- package/dist/types/managers/pane.d.ts +8 -0
- package/dist/types/managers/pane.d.ts.map +1 -0
- package/dist/types/managers/skeleton.d.ts +38 -0
- package/dist/types/managers/skeleton.d.ts.map +1 -0
- package/dist/types/managers/theme.d.ts +2 -0
- package/dist/types/managers/theme.d.ts.map +1 -0
- package/dist/types/managers/widget-container.d.ts +21 -0
- package/dist/types/managers/widget-container.d.ts.map +1 -0
- package/dist/types/managers/widget.d.ts +26 -0
- package/dist/types/managers/widget.d.ts.map +1 -0
- package/dist/types/types/config.d.ts +54 -0
- package/dist/types/types/config.d.ts.map +1 -0
- package/dist/types/types/index.d.ts +2 -0
- package/dist/types/types/index.d.ts.map +1 -0
- package/dist/types/types/locale.d.ts +12 -0
- package/dist/types/types/locale.d.ts.map +1 -0
- package/dist/types/utils/event-bus.d.ts +18 -0
- package/dist/types/utils/event-bus.d.ts.map +1 -0
- package/dist/types/utils/focus-tracker.d.ts +37 -0
- package/dist/types/utils/focus-tracker.d.ts.map +1 -0
- package/dist/types/utils/index.d.ts +6 -0
- package/dist/types/utils/index.d.ts.map +1 -0
- package/dist/types/utils/unique-id.d.ts +2 -0
- package/dist/types/utils/unique-id.d.ts.map +1 -0
- package/dist/types/utils/vue.d.ts +5 -0
- package/dist/types/utils/vue.d.ts.map +1 -0
- package/dist/umd/index.js +4000 -0
- package/package.json +46 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
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 left_bottom_area_exports = {};
|
|
20
|
+
__export(left_bottom_area_exports, {
|
|
21
|
+
LeftBottomArea: () => LeftBottomArea
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(left_bottom_area_exports);
|
|
24
|
+
var import_jsx_runtime = require("vue/jsx-runtime");
|
|
25
|
+
var import_vue = require("vue");
|
|
26
|
+
const LeftBottomArea = (0, import_vue.defineComponent)({
|
|
27
|
+
name: "LeftBottomArea",
|
|
28
|
+
props: {
|
|
29
|
+
area: Object
|
|
30
|
+
},
|
|
31
|
+
setup(props) {
|
|
32
|
+
return () => {
|
|
33
|
+
const items = props.area?.container.items.value;
|
|
34
|
+
if (!items || items.length === 0) return null;
|
|
35
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { class: "layplux-left-bottom-area", children: items.slice().toSorted((a, b) => {
|
|
36
|
+
const i1 = a.config?.index ?? 0;
|
|
37
|
+
const i2 = b.config?.index ?? 0;
|
|
38
|
+
return i1 === i2 ? 0 : i1 > i2 ? 1 : -1;
|
|
39
|
+
}).map((widget) => widget.renderTitle()) });
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
});
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
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 left_top_area_exports = {};
|
|
20
|
+
__export(left_top_area_exports, {
|
|
21
|
+
LeftTopArea: () => LeftTopArea
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(left_top_area_exports);
|
|
24
|
+
var import_jsx_runtime = require("vue/jsx-runtime");
|
|
25
|
+
var import_vue = require("vue");
|
|
26
|
+
const LeftTopArea = (0, import_vue.defineComponent)({
|
|
27
|
+
name: "LeftTopArea",
|
|
28
|
+
props: {
|
|
29
|
+
area: Object
|
|
30
|
+
},
|
|
31
|
+
setup(props) {
|
|
32
|
+
return () => {
|
|
33
|
+
const items = props.area?.container.items.value;
|
|
34
|
+
if (!items || items.length === 0) return null;
|
|
35
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { class: "layplux-left-top-area", children: items.slice().toSorted((a, b) => {
|
|
36
|
+
const i1 = a.config?.index ?? 0;
|
|
37
|
+
const i2 = b.config?.index ?? 0;
|
|
38
|
+
return i1 === i2 ? 0 : i1 > i2 ? 1 : -1;
|
|
39
|
+
}).map((widget) => widget.renderTitle()) });
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
});
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
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 right_bottom_area_exports = {};
|
|
20
|
+
__export(right_bottom_area_exports, {
|
|
21
|
+
RightBottomArea: () => RightBottomArea
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(right_bottom_area_exports);
|
|
24
|
+
var import_jsx_runtime = require("vue/jsx-runtime");
|
|
25
|
+
var import_vue = require("vue");
|
|
26
|
+
const RightBottomArea = (0, import_vue.defineComponent)({
|
|
27
|
+
name: "RightBottomArea",
|
|
28
|
+
props: {
|
|
29
|
+
area: Object
|
|
30
|
+
},
|
|
31
|
+
setup(props) {
|
|
32
|
+
return () => {
|
|
33
|
+
const items = props.area?.container.items.value;
|
|
34
|
+
if (!items || items.length === 0) return null;
|
|
35
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { class: "layplux-right-bottom-area", children: items.slice().toSorted((a, b) => (a.config?.index ?? 0) - (b.config?.index ?? 0)).map((widget) => widget.renderTitle()) });
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
});
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
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 right_top_area_exports = {};
|
|
20
|
+
__export(right_top_area_exports, {
|
|
21
|
+
RightTopArea: () => RightTopArea
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(right_top_area_exports);
|
|
24
|
+
var import_jsx_runtime = require("vue/jsx-runtime");
|
|
25
|
+
var import_vue = require("vue");
|
|
26
|
+
const RightTopArea = (0, import_vue.defineComponent)({
|
|
27
|
+
name: "RightTopArea",
|
|
28
|
+
props: {
|
|
29
|
+
area: Object
|
|
30
|
+
},
|
|
31
|
+
setup(props) {
|
|
32
|
+
return () => {
|
|
33
|
+
const items = props.area?.container.items.value;
|
|
34
|
+
if (!items || items.length === 0) return null;
|
|
35
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { class: "layplux-right-top-area", children: items.slice().toSorted((a, b) => (a.config?.index ?? 0) - (b.config?.index ?? 0)).map((widget) => widget.renderTitle()) });
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
});
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
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 skeleton_exports = {};
|
|
20
|
+
__export(skeleton_exports, {
|
|
21
|
+
Skeleton: () => Skeleton
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(skeleton_exports);
|
|
24
|
+
var import_jsx_runtime = require("vue/jsx-runtime");
|
|
25
|
+
var import_vue = require("vue");
|
|
26
|
+
var import_top_area = require("./top-area");
|
|
27
|
+
var import_bottom_area = require("./bottom-area");
|
|
28
|
+
var import_left_top_area = require("./left-top-area");
|
|
29
|
+
var import_left_bottom_area = require("./left-bottom-area");
|
|
30
|
+
var import_bottom_left_area = require("./bottom-left-area");
|
|
31
|
+
var import_right_top_area = require("./right-top-area");
|
|
32
|
+
var import_right_bottom_area = require("./right-bottom-area");
|
|
33
|
+
var import_bottom_right_area = require("./bottom-right-area");
|
|
34
|
+
var import_managers = require("../../managers");
|
|
35
|
+
var import_center_area = require("./center-area");
|
|
36
|
+
const Skeleton = (0, import_vue.defineComponent)({
|
|
37
|
+
name: "Skeleton",
|
|
38
|
+
props: {
|
|
39
|
+
skeleton: Object
|
|
40
|
+
},
|
|
41
|
+
setup(props) {
|
|
42
|
+
return () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { class: "layplux-skeleton", children: [
|
|
43
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_top_area.TopArea, { area: props.skeleton?.topArea }),
|
|
44
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { class: "layplux-skeleton__body", children: [
|
|
45
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { class: "layplux-skeleton__stripe", children: [
|
|
46
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { class: "layplux-skeleton__stripe-top", children: [
|
|
47
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_left_top_area.LeftTopArea, { area: props.skeleton?.leftTopArea }),
|
|
48
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { class: "layplux-skeleton__stripe-separator" }),
|
|
49
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_left_bottom_area.LeftBottomArea, { area: props.skeleton?.leftBottomArea })
|
|
50
|
+
] }),
|
|
51
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_bottom_left_area.BottomLeftArea, { area: props.skeleton?.bottomLeftArea })
|
|
52
|
+
] }),
|
|
53
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { class: "layplux-skeleton__center", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_center_area.CenterArea, { skeleton: props.skeleton, centerArea: props.skeleton?.centerArea }) }),
|
|
54
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { class: "layplux-skeleton__stripe", children: [
|
|
55
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { class: "layplux-skeleton__stripe-top", children: [
|
|
56
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_right_top_area.RightTopArea, { area: props.skeleton?.rightTopArea }),
|
|
57
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { class: "layplux-skeleton__stripe-separator" }),
|
|
58
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_right_bottom_area.RightBottomArea, { area: props.skeleton?.rightBottomArea })
|
|
59
|
+
] }),
|
|
60
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_bottom_right_area.BottomRightArea, { area: props.skeleton?.bottomRightArea })
|
|
61
|
+
] })
|
|
62
|
+
] }),
|
|
63
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_bottom_area.BottomArea, { area: props.skeleton?.bottomArea })
|
|
64
|
+
] });
|
|
65
|
+
}
|
|
66
|
+
});
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
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 top_area_exports = {};
|
|
20
|
+
__export(top_area_exports, {
|
|
21
|
+
TopArea: () => TopArea
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(top_area_exports);
|
|
24
|
+
var import_jsx_runtime = require("vue/jsx-runtime");
|
|
25
|
+
var import_vue = require("vue");
|
|
26
|
+
const TopArea = (0, import_vue.defineComponent)({
|
|
27
|
+
name: "TopArea",
|
|
28
|
+
props: {
|
|
29
|
+
area: Object
|
|
30
|
+
},
|
|
31
|
+
setup(props) {
|
|
32
|
+
return () => {
|
|
33
|
+
const { area } = props;
|
|
34
|
+
const left = [];
|
|
35
|
+
const center = [];
|
|
36
|
+
const right = [];
|
|
37
|
+
area?.container.items.value.slice().toSorted((a, b) => {
|
|
38
|
+
const index1 = a.config?.index || 0;
|
|
39
|
+
const index2 = b.config?.index || 0;
|
|
40
|
+
return index1 === index2 ? 0 : index1 > index2 ? 1 : -1;
|
|
41
|
+
}).forEach((item) => {
|
|
42
|
+
const content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: item.renderContent() }, `top-area-${item.name}`);
|
|
43
|
+
if (item.align === "left") {
|
|
44
|
+
left.push(content);
|
|
45
|
+
} else if (item.align === "center") {
|
|
46
|
+
center.push(content);
|
|
47
|
+
} else {
|
|
48
|
+
right.push(content);
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { class: "layplux-top-area", children: [
|
|
52
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { class: "layplux-top-area__toolbar-left", children: [
|
|
53
|
+
...left
|
|
54
|
+
] }),
|
|
55
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { class: "layplux-top-area__toolbar-center", children: [
|
|
56
|
+
...center
|
|
57
|
+
] }),
|
|
58
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { class: "layplux-top-area__toolbar-right", children: [
|
|
59
|
+
...right
|
|
60
|
+
] })
|
|
61
|
+
] });
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
});
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
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 en_US_exports = {};
|
|
20
|
+
__export(en_US_exports, {
|
|
21
|
+
enUS: () => enUS
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(en_US_exports);
|
|
24
|
+
const enUS = {
|
|
25
|
+
panel: {
|
|
26
|
+
viewMode: "View Mode",
|
|
27
|
+
dockPinned: "Dock Pinned",
|
|
28
|
+
dockUnpinned: "Dock Unpinned",
|
|
29
|
+
undock: "Undock",
|
|
30
|
+
help: "Help",
|
|
31
|
+
more: "More",
|
|
32
|
+
minimize: "Minimize"
|
|
33
|
+
}
|
|
34
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
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 locales_exports = {};
|
|
20
|
+
__export(locales_exports, {
|
|
21
|
+
enUS: () => import_en_US.enUS,
|
|
22
|
+
getBuiltInLocale: () => getBuiltInLocale,
|
|
23
|
+
zhCN: () => import_zh_CN.zhCN
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(locales_exports);
|
|
26
|
+
var import_zh_CN = require("./zh-CN");
|
|
27
|
+
var import_en_US = require("./en-US");
|
|
28
|
+
const builtInLocales = {
|
|
29
|
+
"zh-CN": import_zh_CN.zhCN,
|
|
30
|
+
"en-US": import_en_US.enUS
|
|
31
|
+
};
|
|
32
|
+
function getBuiltInLocale(name) {
|
|
33
|
+
const locale = builtInLocales[name];
|
|
34
|
+
if (!locale) {
|
|
35
|
+
console.warn(`[Layplux] Unknown locale "${name}", falling back to zh-CN`);
|
|
36
|
+
return import_zh_CN.zhCN;
|
|
37
|
+
}
|
|
38
|
+
return locale;
|
|
39
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
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 zh_CN_exports = {};
|
|
20
|
+
__export(zh_CN_exports, {
|
|
21
|
+
zhCN: () => zhCN
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(zh_CN_exports);
|
|
24
|
+
const zhCN = {
|
|
25
|
+
panel: {
|
|
26
|
+
viewMode: "\u89C6\u56FE\u6A21\u5F0F",
|
|
27
|
+
dockPinned: "\u505C\u9760\u56FA\u5B9A",
|
|
28
|
+
dockUnpinned: "\u505C\u9760\u4E0D\u56FA\u5B9A",
|
|
29
|
+
undock: "\u53D6\u6D88\u505C\u9760",
|
|
30
|
+
help: "\u5E2E\u52A9",
|
|
31
|
+
more: "\u66F4\u591A",
|
|
32
|
+
minimize: "\u6700\u5C0F\u5316"
|
|
33
|
+
}
|
|
34
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
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 area_exports = {};
|
|
20
|
+
__export(area_exports, {
|
|
21
|
+
useArea: () => useArea
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(area_exports);
|
|
24
|
+
var import_widget_container = require("./widget-container");
|
|
25
|
+
function useArea(skeleton, name, handle) {
|
|
26
|
+
const container = skeleton.createContainer(name, handle);
|
|
27
|
+
function add(config) {
|
|
28
|
+
const item = container.add(config);
|
|
29
|
+
return item;
|
|
30
|
+
}
|
|
31
|
+
return { add, container };
|
|
32
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
var managers_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(managers_exports);
|
|
18
|
+
__reExport(managers_exports, require("./skeleton"), module.exports);
|
|
19
|
+
__reExport(managers_exports, require("./area"), module.exports);
|
|
20
|
+
__reExport(managers_exports, require("./widget"), module.exports);
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
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 pane_exports = {};
|
|
20
|
+
__export(pane_exports, {
|
|
21
|
+
usePane: () => usePane
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(pane_exports);
|
|
24
|
+
var import_vue = require("vue");
|
|
25
|
+
function usePane(defaultViewMode = "DockPinned") {
|
|
26
|
+
const viewMode = (0, import_vue.ref)(defaultViewMode);
|
|
27
|
+
function setViewMode(mode) {
|
|
28
|
+
viewMode.value = mode;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
viewMode,
|
|
32
|
+
setViewMode
|
|
33
|
+
};
|
|
34
|
+
}
|