layplux 1.0.0 → 1.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/esm/components/dropdown/index.mjs +2 -2
- package/dist/esm/components/index.mjs +8 -8
- package/dist/esm/components/panel-view/index.mjs +4 -4
- package/dist/esm/components/title/index.mjs +1 -1
- package/dist/esm/components/tooltip/index.mjs +2 -2
- package/dist/esm/components/widget/index.mjs +2 -2
- package/dist/esm/index.mjs +4 -4
- package/dist/esm/layout/layered-manager.mjs +1 -1
- package/dist/esm/layout/layplux.mjs +1 -1
- package/dist/esm/layout/root-pane.mjs +3 -3
- package/dist/esm/layout/skeleton/center-area.mjs +1 -1
- package/dist/esm/layout/skeleton/index.mjs +1 -1
- package/dist/esm/layout/skeleton/skeleton.mjs +10 -10
- package/dist/esm/locales/index.mjs +2 -2
- package/dist/esm/managers/area.mjs +1 -1
- package/dist/esm/managers/index.mjs +3 -3
- package/dist/esm/managers/skeleton.mjs +5 -5
- package/dist/esm/managers/widget.mjs +3 -3
- package/dist/esm/types/index.mjs +1 -1
- package/dist/esm/utils/index.mjs +5 -5
- package/package.json +3 -2
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
provide,
|
|
5
5
|
inject
|
|
6
6
|
} from "vue";
|
|
7
|
-
import { Popup } from "../popup";
|
|
8
|
-
import { ChevronRightIcon } from "../icon";
|
|
7
|
+
import { Popup } from "../popup/index.mjs";
|
|
8
|
+
import { ChevronRightIcon } from "../icon/index.mjs";
|
|
9
9
|
const DROPDOWN_CLOSE = Symbol("dropdown-close");
|
|
10
10
|
const DROPDOWN_ON_CLICK = Symbol("dropdown-on-click");
|
|
11
11
|
const Dropdown = defineComponent({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export * from "./corner-glow";
|
|
2
|
-
export * from "./panel-view";
|
|
3
|
-
export * from "./widget";
|
|
4
|
-
export * from "./title";
|
|
5
|
-
export * from "./panel-view";
|
|
6
|
-
export * from "./dropdown";
|
|
7
|
-
export * from "./tooltip";
|
|
8
|
-
export * from "./center-view";
|
|
1
|
+
export * from "./corner-glow/index.mjs";
|
|
2
|
+
export * from "./panel-view/index.mjs";
|
|
3
|
+
export * from "./widget/index.mjs";
|
|
4
|
+
export * from "./title/index.mjs";
|
|
5
|
+
export * from "./panel-view/index.mjs";
|
|
6
|
+
export * from "./dropdown/index.mjs";
|
|
7
|
+
export * from "./tooltip/index.mjs";
|
|
8
|
+
export * from "./center-view/index.mjs";
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
DropdownItem,
|
|
7
7
|
DropdownDivider,
|
|
8
8
|
DropdownSubmenu
|
|
9
|
-
} from "../dropdown";
|
|
10
|
-
import { MoreIcon, MinimizeIcon } from "../icon";
|
|
11
|
-
import { createContent } from "../../utils";
|
|
12
|
-
import { getBuiltInLocale } from "../../locales";
|
|
9
|
+
} from "../dropdown/index.mjs";
|
|
10
|
+
import { MoreIcon, MinimizeIcon } from "../icon/index.mjs";
|
|
11
|
+
import { createContent } from "../../utils/index.mjs";
|
|
12
|
+
import { getBuiltInLocale } from "../../locales/index.mjs";
|
|
13
13
|
const viewModeKeys = /* @__PURE__ */ new Set(["DockPinned", "DockUnpinned", "Undock"]);
|
|
14
14
|
function findItem(items, key) {
|
|
15
15
|
if (!items) return;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "vue/jsx-runtime";
|
|
2
2
|
import { defineComponent } from "vue";
|
|
3
|
-
import { createContent } from "../../utils";
|
|
3
|
+
import { createContent } from "../../utils/index.mjs";
|
|
4
4
|
const TitleView = defineComponent({
|
|
5
5
|
name: "TitleView",
|
|
6
6
|
inheritAttrs: false,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "vue/jsx-runtime";
|
|
2
2
|
import { defineComponent } from "vue";
|
|
3
|
-
import { createContent } from "../../utils";
|
|
4
|
-
import { Popup } from "../popup";
|
|
3
|
+
import { createContent } from "../../utils/index.mjs";
|
|
4
|
+
import { Popup } from "../popup/index.mjs";
|
|
5
5
|
const Tooltip = defineComponent({
|
|
6
6
|
name: "LaypluxTooltip",
|
|
7
7
|
props: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "vue/jsx-runtime";
|
|
2
2
|
import { defineComponent, Fragment, ref, onErrorCaptured, h } from "vue";
|
|
3
|
-
import { TitleView } from "../title";
|
|
4
|
-
import { Tooltip } from "../tooltip";
|
|
3
|
+
import { TitleView } from "../title/index.mjs";
|
|
4
|
+
import { Tooltip } from "../tooltip/index.mjs";
|
|
5
5
|
const WidgetView = defineComponent({
|
|
6
6
|
name: "WidgetView",
|
|
7
7
|
inheritAttrs: false,
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { default as default2 } from "./layout/layplux";
|
|
2
|
-
import { useSkeleton } from "./managers/skeleton";
|
|
3
|
-
import { createPluginEventBus } from "./utils/event-bus";
|
|
4
|
-
import { FocusTracker } from "./utils/focus-tracker";
|
|
1
|
+
import { default as default2 } from "./layout/layplux.mjs";
|
|
2
|
+
import { useSkeleton } from "./managers/skeleton.mjs";
|
|
3
|
+
import { createPluginEventBus } from "./utils/event-bus.mjs";
|
|
4
|
+
import { FocusTracker } from "./utils/focus-tracker.mjs";
|
|
5
5
|
export {
|
|
6
6
|
FocusTracker,
|
|
7
7
|
default2 as Layplux,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs } from "vue/jsx-runtime";
|
|
2
2
|
import { computed, defineComponent, provide } from "vue";
|
|
3
|
-
import { LayeredManager } from "./layered-manager";
|
|
4
|
-
import { GlassOverlay } from "./glass-overlay";
|
|
5
|
-
import { CornerGlow } from "../components";
|
|
3
|
+
import { LayeredManager } from "./layered-manager.mjs";
|
|
4
|
+
import { GlassOverlay } from "./glass-overlay.mjs";
|
|
5
|
+
import { CornerGlow } from "../components/index.mjs";
|
|
6
6
|
const RootPane = defineComponent({
|
|
7
7
|
name: "RootPane",
|
|
8
8
|
props: {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx, jsxs } from "vue/jsx-runtime";
|
|
2
2
|
import { defineComponent } from "vue";
|
|
3
|
-
import { TopArea } from "./top-area";
|
|
4
|
-
import { BottomArea } from "./bottom-area";
|
|
5
|
-
import { LeftTopArea } from "./left-top-area";
|
|
6
|
-
import { LeftBottomArea } from "./left-bottom-area";
|
|
7
|
-
import { BottomLeftArea } from "./bottom-left-area";
|
|
8
|
-
import { RightTopArea } from "./right-top-area";
|
|
9
|
-
import { RightBottomArea } from "./right-bottom-area";
|
|
10
|
-
import { BottomRightArea } from "./bottom-right-area";
|
|
11
|
-
import {} from "../../managers";
|
|
12
|
-
import { CenterArea } from "./center-area";
|
|
3
|
+
import { TopArea } from "./top-area.mjs";
|
|
4
|
+
import { BottomArea } from "./bottom-area.mjs";
|
|
5
|
+
import { LeftTopArea } from "./left-top-area.mjs";
|
|
6
|
+
import { LeftBottomArea } from "./left-bottom-area.mjs";
|
|
7
|
+
import { BottomLeftArea } from "./bottom-left-area.mjs";
|
|
8
|
+
import { RightTopArea } from "./right-top-area.mjs";
|
|
9
|
+
import { RightBottomArea } from "./right-bottom-area.mjs";
|
|
10
|
+
import { BottomRightArea } from "./bottom-right-area.mjs";
|
|
11
|
+
import {} from "../../managers/index.mjs";
|
|
12
|
+
import { CenterArea } from "./center-area.mjs";
|
|
13
13
|
const Skeleton = defineComponent({
|
|
14
14
|
name: "Skeleton",
|
|
15
15
|
props: {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./skeleton";
|
|
2
|
-
export * from "./area";
|
|
3
|
-
export * from "./widget";
|
|
1
|
+
export * from "./skeleton.mjs";
|
|
2
|
+
export * from "./area.mjs";
|
|
3
|
+
export * from "./widget.mjs";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ref } from "vue";
|
|
2
|
-
import { useArea } from "./area";
|
|
3
|
-
import { isWidget, useWidget } from "./widget";
|
|
4
|
-
import { useWidgetContainer } from "./widget-container";
|
|
2
|
+
import { useArea } from "./area.mjs";
|
|
3
|
+
import { isWidget, useWidget } from "./widget.mjs";
|
|
4
|
+
import { useWidgetContainer } from "./widget-container.mjs";
|
|
5
5
|
import {
|
|
6
6
|
FocusTracker,
|
|
7
7
|
createPluginEventBus,
|
|
8
8
|
getBuiltInLocale
|
|
9
|
-
} from "../utils";
|
|
10
|
-
import { injectThemeCSS } from "./theme";
|
|
9
|
+
} from "../utils/index.mjs";
|
|
10
|
+
import { injectThemeCSS } from "./theme.mjs";
|
|
11
11
|
function useSkeleton() {
|
|
12
12
|
const widgets = [];
|
|
13
13
|
const self = {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { computed, h, watch } from "vue";
|
|
2
|
-
import { createContent, uniqueId } from "../utils";
|
|
3
|
-
import { WidgetTitleView, WidgetView } from "../components";
|
|
4
|
-
import { usePane } from "./pane";
|
|
2
|
+
import { createContent, uniqueId } from "../utils/index.mjs";
|
|
3
|
+
import { WidgetTitleView, WidgetView } from "../components/index.mjs";
|
|
4
|
+
import { usePane } from "./pane.mjs";
|
|
5
5
|
function useWidget(config, container, skeleton) {
|
|
6
6
|
const { name, props, type } = config;
|
|
7
7
|
const active = computed(() => container?.activeId.value === name);
|
package/dist/esm/types/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./config";
|
|
1
|
+
export * from "./config.mjs";
|
package/dist/esm/utils/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export * from "./vue";
|
|
2
|
-
export * from "./unique-id";
|
|
3
|
-
export * from "./focus-tracker";
|
|
4
|
-
export * from "./event-bus";
|
|
5
|
-
import { getBuiltInLocale, zhCN, enUS } from "../locales";
|
|
1
|
+
export * from "./vue.mjs";
|
|
2
|
+
export * from "./unique-id.mjs";
|
|
3
|
+
export * from "./focus-tracker.mjs";
|
|
4
|
+
export * from "./event-bus.mjs";
|
|
5
|
+
import { getBuiltInLocale, zhCN, enUS } from "../locales/index.mjs";
|
|
6
6
|
export {
|
|
7
7
|
enUS,
|
|
8
8
|
getBuiltInLocale,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "layplux",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "IDE-like window system and plugin framework for the web",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/cjs/index.cjs",
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
"require": "./dist/cjs/*.cjs"
|
|
20
20
|
},
|
|
21
21
|
"./style": "./dist/style/index.css",
|
|
22
|
-
"./style/scss": "./dist/style/layplux.scss"
|
|
22
|
+
"./style/scss": "./dist/style/layplux.scss",
|
|
23
|
+
"./scss": "./dist/style/layplux.scss"
|
|
23
24
|
},
|
|
24
25
|
"files": [
|
|
25
26
|
"dist"
|