@composy/layout-vue 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/CHANGELOG.md +6 -0
- package/LICENSE +21 -0
- package/README.md +75 -0
- package/dist/index.css +2383 -0
- package/dist/index.js +2665 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.css +1 -0
- package/dist/index.min.js +1 -0
- package/es/components/LGrid.d.ts +3 -0
- package/es/components/LGrid.d.ts.map +1 -0
- package/es/components/LGrid.js +91 -0
- package/es/components/LGrid.js.map +1 -0
- package/es/components/LGridItem.d.ts +52 -0
- package/es/components/LGridItem.d.ts.map +1 -0
- package/es/components/LGridItem.js +52 -0
- package/es/components/LGridItem.js.map +1 -0
- package/es/components/LLayoutEditor.d.ts +49 -0
- package/es/components/LLayoutEditor.d.ts.map +1 -0
- package/es/components/LLayoutEditor.js +81 -0
- package/es/components/LLayoutEditor.js.map +1 -0
- package/es/components/LLayoutWorkspace.js +17 -0
- package/es/components/LLayoutWorkspace.js.map +1 -0
- package/es/components/LLayoutWorkspace.vue_vue_type_script_setup_true_lang.js +2217 -0
- package/es/components/LLayoutWorkspace.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/es/components/LMaterialDragSource.d.ts +55 -0
- package/es/components/LMaterialDragSource.d.ts.map +1 -0
- package/es/components/LMaterialDragSource.js +92 -0
- package/es/components/LMaterialDragSource.js.map +1 -0
- package/es/components/LMaterialRenderer.d.ts +63 -0
- package/es/components/LMaterialRenderer.d.ts.map +1 -0
- package/es/components/LMaterialRenderer.js +48 -0
- package/es/components/LMaterialRenderer.js.map +1 -0
- package/es/components/LMetricCard.d.ts +29 -0
- package/es/components/LMetricCard.d.ts.map +1 -0
- package/es/components/LMetricCard.js +39 -0
- package/es/components/LMetricCard.js.map +1 -0
- package/es/components/LTrendCard.d.ts +17 -0
- package/es/components/LTrendCard.d.ts.map +1 -0
- package/es/components/LTrendCard.js +36 -0
- package/es/components/LTrendCard.js.map +1 -0
- package/es/components/index.d.ts +10 -0
- package/es/components/index.d.ts.map +1 -0
- package/es/components/index.js +19 -0
- package/es/components/material-renderer.d.ts +26 -0
- package/es/components/material-renderer.d.ts.map +1 -0
- package/es/components/material-renderer.js +96 -0
- package/es/components/material-renderer.js.map +1 -0
- package/es/composables/index.d.ts +2 -0
- package/es/composables/index.d.ts.map +1 -0
- package/es/composables/index.js +12 -0
- package/es/composables/useLayoutEditor.d.ts +3 -0
- package/es/composables/useLayoutEditor.d.ts.map +1 -0
- package/es/composables/useLayoutEditor.js +22 -0
- package/es/composables/useLayoutEditor.js.map +1 -0
- package/es/index.d.ts +7 -0
- package/es/index.d.ts.map +1 -0
- package/es/index.js +22 -0
- package/es/style/css.js +1 -0
- package/es/style/index.js +1 -0
- package/es/style/index.less +1 -0
- package/es/style/workspace.css +2370 -0
- package/es/types.d.ts +26 -0
- package/es/types.d.ts.map +1 -0
- package/es/types.js +10 -0
- package/lib/components/LGrid.cjs +92 -0
- package/lib/components/LGrid.cjs.map +1 -0
- package/lib/components/LGrid.d.ts +3 -0
- package/lib/components/LGridItem.cjs +53 -0
- package/lib/components/LGridItem.cjs.map +1 -0
- package/lib/components/LGridItem.d.ts +52 -0
- package/lib/components/LLayoutEditor.cjs +82 -0
- package/lib/components/LLayoutEditor.cjs.map +1 -0
- package/lib/components/LLayoutEditor.d.ts +49 -0
- package/lib/components/LLayoutWorkspace.cjs +21 -0
- package/lib/components/LLayoutWorkspace.cjs.map +1 -0
- package/lib/components/LLayoutWorkspace.vue_vue_type_script_setup_true_lang.cjs +2217 -0
- package/lib/components/LLayoutWorkspace.vue_vue_type_script_setup_true_lang.cjs.map +1 -0
- package/lib/components/LMaterialDragSource.cjs +93 -0
- package/lib/components/LMaterialDragSource.cjs.map +1 -0
- package/lib/components/LMaterialDragSource.d.ts +55 -0
- package/lib/components/LMaterialRenderer.cjs +49 -0
- package/lib/components/LMaterialRenderer.cjs.map +1 -0
- package/lib/components/LMaterialRenderer.d.ts +63 -0
- package/lib/components/LMetricCard.cjs +40 -0
- package/lib/components/LMetricCard.cjs.map +1 -0
- package/lib/components/LMetricCard.d.ts +29 -0
- package/lib/components/LTrendCard.cjs +37 -0
- package/lib/components/LTrendCard.cjs.map +1 -0
- package/lib/components/LTrendCard.d.ts +17 -0
- package/lib/components/index.cjs +27 -0
- package/lib/components/index.d.ts +10 -0
- package/lib/components/material-renderer.cjs +99 -0
- package/lib/components/material-renderer.cjs.map +1 -0
- package/lib/components/material-renderer.d.ts +26 -0
- package/lib/composables/index.cjs +13 -0
- package/lib/composables/index.d.ts +2 -0
- package/lib/composables/useLayoutEditor.cjs +23 -0
- package/lib/composables/useLayoutEditor.cjs.map +1 -0
- package/lib/composables/useLayoutEditor.d.ts +3 -0
- package/lib/index.cjs +29 -0
- package/lib/index.d.ts +7 -0
- package/lib/package.json +3 -0
- package/lib/style/css.js +1 -0
- package/lib/style/index.css +2 -0
- package/lib/style/index.js +1 -0
- package/lib/style/workspace.css +2378 -0
- package/lib/types.cjs +11 -0
- package/lib/types.d.ts +26 -0
- package/package.json +117 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import type { LayoutNode, LayoutPlacement } from '@composy/layout-core';
|
|
3
|
+
import { type LayoutRenderTarget, type VueMaterialSource } from './material-renderer';
|
|
4
|
+
/**
|
|
5
|
+
* A target-aware renderer for one registered layout material.
|
|
6
|
+
*
|
|
7
|
+
* `LGrid` owns the placement shell; this component owns the renderer lookup.
|
|
8
|
+
* Consumers can therefore use the same item renderer in an editor, a preview,
|
|
9
|
+
* a modal or their own grid implementation without duplicating framework
|
|
10
|
+
* branching logic.
|
|
11
|
+
*/
|
|
12
|
+
export declare const LMaterialRenderer: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
13
|
+
item: {
|
|
14
|
+
type: PropType<LayoutNode>;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
materials: {
|
|
18
|
+
type: PropType<VueMaterialSource>;
|
|
19
|
+
default: any;
|
|
20
|
+
};
|
|
21
|
+
target: {
|
|
22
|
+
type: PropType<LayoutRenderTarget>;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
placement: {
|
|
26
|
+
type: PropType<LayoutPlacement>;
|
|
27
|
+
default: any;
|
|
28
|
+
};
|
|
29
|
+
breakpointId: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
34
|
+
[key: string]: any;
|
|
35
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
36
|
+
item: {
|
|
37
|
+
type: PropType<LayoutNode>;
|
|
38
|
+
required: true;
|
|
39
|
+
};
|
|
40
|
+
materials: {
|
|
41
|
+
type: PropType<VueMaterialSource>;
|
|
42
|
+
default: any;
|
|
43
|
+
};
|
|
44
|
+
target: {
|
|
45
|
+
type: PropType<LayoutRenderTarget>;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
placement: {
|
|
49
|
+
type: PropType<LayoutPlacement>;
|
|
50
|
+
default: any;
|
|
51
|
+
};
|
|
52
|
+
breakpointId: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
default: string;
|
|
55
|
+
};
|
|
56
|
+
}>> & Readonly<{}>, {
|
|
57
|
+
materials: VueMaterialSource;
|
|
58
|
+
target: LayoutRenderTarget;
|
|
59
|
+
placement: LayoutPlacement;
|
|
60
|
+
breakpointId: string;
|
|
61
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
62
|
+
export type { LayoutRenderTarget };
|
|
63
|
+
//# sourceMappingURL=LMaterialRenderer.d.ts.map
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* ***********************************
|
|
3
|
+
* @composy/layout-vue v0.0.1 *
|
|
4
|
+
* Built with rollup *
|
|
5
|
+
* Build time: 2024-08-17 11:47:09 *
|
|
6
|
+
* Build mode: production *
|
|
7
|
+
* Minified: No *
|
|
8
|
+
* ***********************************
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
11
|
+
let vue = require("vue");
|
|
12
|
+
//#region src/components/LMetricCard.ts
|
|
13
|
+
const LMetricCard = (0, vue.defineComponent)({
|
|
14
|
+
name: "LMetricCard",
|
|
15
|
+
props: {
|
|
16
|
+
title: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: "数据指标"
|
|
19
|
+
},
|
|
20
|
+
value: {
|
|
21
|
+
type: [String, Number],
|
|
22
|
+
default: void 0
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
setup(props) {
|
|
26
|
+
return () => (0, vue.h)("article", {
|
|
27
|
+
class: "layout-card",
|
|
28
|
+
"data-layout-card": ""
|
|
29
|
+
}, [
|
|
30
|
+
(0, vue.h)("div", { class: "layout-card__meta" }, [(0, vue.h)("span", { class: "layout-card__type" }, "数据指标"), (0, vue.h)("span", { class: "layout-card__status" }, "已配置")]),
|
|
31
|
+
(0, vue.h)("h3", { class: "layout-card__title" }, props.title),
|
|
32
|
+
props.value === void 0 ? null : (0, vue.h)("strong", { class: "layout-card__value" }, Number(props.value).toLocaleString("zh-CN")),
|
|
33
|
+
(0, vue.h)("div", { class: "layout-card__footer" }, [(0, vue.h)("span", null, "实时数据"), (0, vue.h)("span", { class: "layout-card__spark" }, "趋势稳定")])
|
|
34
|
+
]);
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
//#endregion
|
|
38
|
+
exports.LMetricCard = LMetricCard;
|
|
39
|
+
/*! End of @composy/layout-vue | Powered by @composy/builder */
|
|
40
|
+
//# sourceMappingURL=LMetricCard.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LMetricCard.cjs","names":[],"sources":["../../src/components/LMetricCard.ts"],"sourcesContent":["import { defineComponent, h } from 'vue'\n\n/**\n * Reference Vue material used by the layout examples and as a small,\n * framework-native registration contract for consumers.\n */\nexport const LMetricCard = defineComponent({\n name: 'LMetricCard',\n props: {\n title: { type: String, default: '数据指标' },\n value: { type: [String, Number], default: undefined },\n },\n setup(props) {\n return () =>\n h('article', { class: 'layout-card', 'data-layout-card': '' }, [\n h('div', { class: 'layout-card__meta' }, [\n h('span', { class: 'layout-card__type' }, '数据指标'),\n h('span', { class: 'layout-card__status' }, '已配置'),\n ]),\n h('h3', { class: 'layout-card__title' }, props.title),\n props.value === undefined\n ? null\n : h(\n 'strong',\n { class: 'layout-card__value' },\n Number(props.value).toLocaleString('zh-CN')\n ),\n h('div', { class: 'layout-card__footer' }, [\n h('span', null, '实时数据'),\n h('span', { class: 'layout-card__spark' }, '趋势稳定'),\n ]),\n ])\n },\n})\n"],"mappings":";;;;;;;;;;;;AAMO,MAAM,eAAA,GAAA,IAAA,gBAAA,CAA8B;CACzC,MAAM;CACN,OAAO;EACL,OAAO;GAAE,MAAM;GAAQ,SAAS;EAAO;EACvC,OAAO;GAAE,MAAM,CAAC,QAAQ,MAAM;GAAG,SAAS,KAAA;EAAU;CACtD;CACA,MAAM,OAAO;EACX,cAAA,GAAA,IAAA,EAAA,CACI,WAAW;GAAE,OAAO;GAAe,oBAAoB;EAAG,GAAG;cAC3D,OAAO,EAAE,OAAO,oBAAoB,GAAG,EAAA,GAAA,IAAA,EAAA,CACrC,QAAQ,EAAE,OAAO,oBAAoB,GAAG,MAAM,IAAA,GAAA,IAAA,EAAA,CAC9C,QAAQ,EAAE,OAAO,sBAAsB,GAAG,KAAK,CACnD,CAAC;cACC,MAAM,EAAE,OAAO,qBAAqB,GAAG,MAAM,KAAK;GACpD,MAAM,UAAU,KAAA,IACZ,QAAA,GAAA,IAAA,EAAA,CAEE,UACA,EAAE,OAAO,qBAAqB,GAC9B,OAAO,MAAM,KAAK,CAAA,CAAE,eAAe,OAAO,CAC5C;cACF,OAAO,EAAE,OAAO,sBAAsB,GAAG,EAAA,GAAA,IAAA,EAAA,CACvC,QAAQ,MAAM,MAAM,IAAA,GAAA,IAAA,EAAA,CACpB,QAAQ,EAAE,OAAO,qBAAqB,GAAG,MAAM,CACnD,CAAC;EACH,CAAC;CACL;AACF,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reference Vue material used by the layout examples and as a small,
|
|
3
|
+
* framework-native registration contract for consumers.
|
|
4
|
+
*/
|
|
5
|
+
export declare const LMetricCard: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
|
+
title: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
value: {
|
|
11
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
12
|
+
default: any;
|
|
13
|
+
};
|
|
14
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
+
title: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
value: {
|
|
22
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
23
|
+
default: any;
|
|
24
|
+
};
|
|
25
|
+
}>> & Readonly<{}>, {
|
|
26
|
+
title: string;
|
|
27
|
+
value: string | number;
|
|
28
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
29
|
+
//# sourceMappingURL=LMetricCard.d.ts.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* ***********************************
|
|
3
|
+
* @composy/layout-vue v0.0.1 *
|
|
4
|
+
* Built with rollup *
|
|
5
|
+
* Build time: 2024-08-17 11:47:09 *
|
|
6
|
+
* Build mode: production *
|
|
7
|
+
* Minified: No *
|
|
8
|
+
* ***********************************
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
11
|
+
let vue = require("vue");
|
|
12
|
+
//#region src/components/LTrendCard.ts
|
|
13
|
+
const LTrendCard = (0, vue.defineComponent)({
|
|
14
|
+
name: "LTrendCard",
|
|
15
|
+
props: { title: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: "趋势图表"
|
|
18
|
+
} },
|
|
19
|
+
setup(props) {
|
|
20
|
+
return () => (0, vue.h)("article", {
|
|
21
|
+
class: "layout-card",
|
|
22
|
+
"data-layout-card": ""
|
|
23
|
+
}, [
|
|
24
|
+
(0, vue.h)("div", { class: "layout-card__meta" }, [(0, vue.h)("span", { class: "layout-card__type" }, "趋势图表"), (0, vue.h)("span", { class: "layout-card__status" }, "已配置")]),
|
|
25
|
+
(0, vue.h)("h3", { class: "layout-card__title" }, props.title),
|
|
26
|
+
(0, vue.h)("span", {
|
|
27
|
+
class: "layout-card__chart",
|
|
28
|
+
"aria-hidden": "true"
|
|
29
|
+
}, Array.from({ length: 5 }, (_, index) => (0, vue.h)("i", { key: index }))),
|
|
30
|
+
(0, vue.h)("div", { class: "layout-card__footer" }, [(0, vue.h)("span", null, "实时数据"), (0, vue.h)("span", { class: "layout-card__spark" }, "趋势稳定")])
|
|
31
|
+
]);
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
//#endregion
|
|
35
|
+
exports.LTrendCard = LTrendCard;
|
|
36
|
+
/*! End of @composy/layout-vue | Powered by @composy/builder */
|
|
37
|
+
//# sourceMappingURL=LTrendCard.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LTrendCard.cjs","names":[],"sources":["../../src/components/LTrendCard.ts"],"sourcesContent":["import { defineComponent, h } from 'vue'\n\n/** Reference Vue chart material for renderer registration examples. */\nexport const LTrendCard = defineComponent({\n name: 'LTrendCard',\n props: {\n title: { type: String, default: '趋势图表' },\n },\n setup(props) {\n return () =>\n h('article', { class: 'layout-card', 'data-layout-card': '' }, [\n h('div', { class: 'layout-card__meta' }, [\n h('span', { class: 'layout-card__type' }, '趋势图表'),\n h('span', { class: 'layout-card__status' }, '已配置'),\n ]),\n h('h3', { class: 'layout-card__title' }, props.title),\n h(\n 'span',\n { class: 'layout-card__chart', 'aria-hidden': 'true' },\n Array.from({ length: 5 }, (_, index) => h('i', { key: index }))\n ),\n h('div', { class: 'layout-card__footer' }, [\n h('span', null, '实时数据'),\n h('span', { class: 'layout-card__spark' }, '趋势稳定'),\n ]),\n ])\n },\n})\n"],"mappings":";;;;;;;;;;;;AAGO,MAAM,cAAA,GAAA,IAAA,gBAAA,CAA6B;CACxC,MAAM;CACN,OAAO,EACL,OAAO;EAAE,MAAM;EAAQ,SAAS;CAAO,EACzC;CACA,MAAM,OAAO;EACX,cAAA,GAAA,IAAA,EAAA,CACI,WAAW;GAAE,OAAO;GAAe,oBAAoB;EAAG,GAAG;cAC3D,OAAO,EAAE,OAAO,oBAAoB,GAAG,EAAA,GAAA,IAAA,EAAA,CACrC,QAAQ,EAAE,OAAO,oBAAoB,GAAG,MAAM,IAAA,GAAA,IAAA,EAAA,CAC9C,QAAQ,EAAE,OAAO,sBAAsB,GAAG,KAAK,CACnD,CAAC;cACC,MAAM,EAAE,OAAO,qBAAqB,GAAG,MAAM,KAAK;cAElD,QACA;IAAE,OAAO;IAAsB,eAAe;GAAO,GACrD,MAAM,KAAK,EAAE,QAAQ,EAAE,IAAI,GAAG,WAAA,GAAA,IAAA,EAAA,CAAY,KAAK,EAAE,KAAK,MAAM,CAAC,CAAC,CAChE;cACE,OAAO,EAAE,OAAO,sBAAsB,GAAG,EAAA,GAAA,IAAA,EAAA,CACvC,QAAQ,MAAM,MAAM,IAAA,GAAA,IAAA,EAAA,CACpB,QAAQ,EAAE,OAAO,qBAAqB,GAAG,MAAM,CACnD,CAAC;EACH,CAAC;CACL;AACF,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** Reference Vue chart material for renderer registration examples. */
|
|
2
|
+
export declare const LTrendCard: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
+
title: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10
|
+
title: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
}>> & Readonly<{}>, {
|
|
15
|
+
title: string;
|
|
16
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
17
|
+
//# sourceMappingURL=LTrendCard.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* ***********************************
|
|
3
|
+
* @composy/layout-vue v0.0.1 *
|
|
4
|
+
* Built with rollup *
|
|
5
|
+
* Build time: 2024-08-17 11:47:09 *
|
|
6
|
+
* Build mode: production *
|
|
7
|
+
* Minified: No *
|
|
8
|
+
* ***********************************
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
11
|
+
const require_LGrid = require("./LGrid.cjs");
|
|
12
|
+
const require_LGridItem = require("./LGridItem.cjs");
|
|
13
|
+
const require_LLayoutEditor = require("./LLayoutEditor.cjs");
|
|
14
|
+
const require_LMaterialDragSource = require("./LMaterialDragSource.cjs");
|
|
15
|
+
const require_LMaterialRenderer = require("./LMaterialRenderer.cjs");
|
|
16
|
+
const require_LMetricCard = require("./LMetricCard.cjs");
|
|
17
|
+
const require_LTrendCard = require("./LTrendCard.cjs");
|
|
18
|
+
const require_LLayoutWorkspace = require("./LLayoutWorkspace.cjs");
|
|
19
|
+
exports.LGrid = require_LGrid.LGrid;
|
|
20
|
+
exports.LGridItem = require_LGridItem.LGridItem;
|
|
21
|
+
exports.LLayoutEditor = require_LLayoutEditor.LLayoutEditor;
|
|
22
|
+
exports.LLayoutWorkspace = require_LLayoutWorkspace.default;
|
|
23
|
+
exports.LMaterialDragSource = require_LMaterialDragSource.LMaterialDragSource;
|
|
24
|
+
exports.LMaterialRenderer = require_LMaterialRenderer.LMaterialRenderer;
|
|
25
|
+
exports.LMetricCard = require_LMetricCard.LMetricCard;
|
|
26
|
+
exports.LTrendCard = require_LTrendCard.LTrendCard;
|
|
27
|
+
/*! End of @composy/layout-vue | Powered by @composy/builder */
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { LGrid } from './LGrid';
|
|
2
|
+
export { LGridItem } from './LGridItem';
|
|
3
|
+
export { LMaterialRenderer } from './LMaterialRenderer';
|
|
4
|
+
export { LLayoutEditor } from './LLayoutEditor';
|
|
5
|
+
export { default as LLayoutWorkspace } from './LLayoutWorkspace.vue';
|
|
6
|
+
export { LMaterialDragSource } from './LMaterialDragSource';
|
|
7
|
+
export { LMetricCard } from './LMetricCard';
|
|
8
|
+
export { LTrendCard } from './LTrendCard';
|
|
9
|
+
export type { LayoutRenderTarget, VueMaterialSource } from './material-renderer';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* ***********************************
|
|
3
|
+
* @composy/layout-vue v0.0.1 *
|
|
4
|
+
* Built with rollup *
|
|
5
|
+
* Build time: 2024-08-17 11:47:09 *
|
|
6
|
+
* Build mode: production *
|
|
7
|
+
* Minified: No *
|
|
8
|
+
* ***********************************
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
11
|
+
let vue = require("vue");
|
|
12
|
+
let _composy_layout_core = require("@composy/layout-core");
|
|
13
|
+
//#region src/components/material-renderer.ts
|
|
14
|
+
function resolveRegistry(source) {
|
|
15
|
+
if (!source) return void 0;
|
|
16
|
+
if (Array.isArray(source)) return (0, _composy_layout_core.createMaterialRegistry)(source);
|
|
17
|
+
return source;
|
|
18
|
+
}
|
|
19
|
+
function resolveMaterialDefinition(materials, type) {
|
|
20
|
+
return resolveRegistry(materials)?.get(type);
|
|
21
|
+
}
|
|
22
|
+
function renderMaterialFallback(materials, item, placement, breakpointId) {
|
|
23
|
+
const material = resolveMaterialDefinition(materials, item.type);
|
|
24
|
+
const context = {
|
|
25
|
+
item,
|
|
26
|
+
placement,
|
|
27
|
+
breakpointId
|
|
28
|
+
};
|
|
29
|
+
const vueRenderer = material?.renderers?.vue;
|
|
30
|
+
if (vueRenderer?.component) return (0, vue.h)(vueRenderer.component, {
|
|
31
|
+
...item.props ?? {},
|
|
32
|
+
...vueRenderer.tagName ? { is: vueRenderer.tagName } : {}
|
|
33
|
+
});
|
|
34
|
+
const webComponentRenderer = material?.renderers?.webcomponent;
|
|
35
|
+
if (webComponentRenderer?.tagName) return (0, vue.h)(webComponentRenderer.tagName, {
|
|
36
|
+
...item.props ?? {},
|
|
37
|
+
materialProps: { ...item.props ?? {} }
|
|
38
|
+
});
|
|
39
|
+
const htmlRenderer = material?.renderers?.html;
|
|
40
|
+
if (htmlRenderer?.render) {
|
|
41
|
+
const rendered = htmlRenderer.render(context);
|
|
42
|
+
if (typeof rendered === "string") return (0, vue.h)("div", { innerHTML: sanitizeMarkup(rendered) });
|
|
43
|
+
return rendered;
|
|
44
|
+
}
|
|
45
|
+
if (htmlRenderer?.tagName) return (0, vue.h)(htmlRenderer.tagName, { ...item.props ?? {} });
|
|
46
|
+
}
|
|
47
|
+
function renderMaterialForTarget(materials, item, target, placement, breakpointId = "desktop") {
|
|
48
|
+
const material = resolveMaterialDefinition(materials, item.type);
|
|
49
|
+
const props = { ...item.props ?? {} };
|
|
50
|
+
if (target === "vue") {
|
|
51
|
+
const renderer = material?.renderers?.vue;
|
|
52
|
+
if (renderer?.component) return (0, vue.h)(renderer.component, props);
|
|
53
|
+
} else {
|
|
54
|
+
const renderer = material?.renderers?.webcomponent;
|
|
55
|
+
if (renderer?.tagName) return (0, vue.h)(renderer.tagName, {
|
|
56
|
+
...props,
|
|
57
|
+
materialProps: props,
|
|
58
|
+
onVnodeMounted: (vnode) => {
|
|
59
|
+
const el = vnode.el;
|
|
60
|
+
if (el && "materialProps" in el) el.materialProps = props;
|
|
61
|
+
},
|
|
62
|
+
onVnodeUpdated: (vnode) => {
|
|
63
|
+
const el = vnode.el;
|
|
64
|
+
if (el && "materialProps" in el) el.materialProps = props;
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
const htmlRenderer = material?.renderers?.html;
|
|
69
|
+
if (htmlRenderer?.render) {
|
|
70
|
+
const rendered = htmlRenderer.render({
|
|
71
|
+
item,
|
|
72
|
+
placement: placement ?? item.layout[breakpointId] ?? {
|
|
73
|
+
x: 0,
|
|
74
|
+
y: 0,
|
|
75
|
+
w: 1,
|
|
76
|
+
h: 1
|
|
77
|
+
},
|
|
78
|
+
breakpointId
|
|
79
|
+
});
|
|
80
|
+
if (typeof rendered === "string") return (0, vue.h)("div", { innerHTML: sanitizeMarkup(rendered) });
|
|
81
|
+
return rendered;
|
|
82
|
+
}
|
|
83
|
+
if (htmlRenderer?.tagName) return (0, vue.h)(htmlRenderer.tagName, props);
|
|
84
|
+
return renderMaterialFallback(materials, item, placement ?? item.layout[breakpointId] ?? {
|
|
85
|
+
x: 0,
|
|
86
|
+
y: 0,
|
|
87
|
+
w: 1,
|
|
88
|
+
h: 1
|
|
89
|
+
}, breakpointId);
|
|
90
|
+
}
|
|
91
|
+
function sanitizeMarkup(value) {
|
|
92
|
+
return value.replace(/<script\b[^>]*>[\s\S]*?<\/script\s*>/gi, "").replace(/\s+on[a-z]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi, "").replace(/\s+(?:href|src)\s*=\s*("|')\s*javascript:[^"']*\1/gi, "");
|
|
93
|
+
}
|
|
94
|
+
//#endregion
|
|
95
|
+
exports.renderMaterialFallback = renderMaterialFallback;
|
|
96
|
+
exports.renderMaterialForTarget = renderMaterialForTarget;
|
|
97
|
+
exports.resolveMaterialDefinition = resolveMaterialDefinition;
|
|
98
|
+
/*! End of @composy/layout-vue | Powered by @composy/builder */
|
|
99
|
+
//# sourceMappingURL=material-renderer.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"material-renderer.cjs","names":[],"sources":["../../src/components/material-renderer.ts"],"sourcesContent":["import { h, type VNode } from 'vue'\nimport {\n createMaterialRegistry,\n type LayoutNode,\n type LayoutPlacement,\n type MaterialDefinition,\n type MaterialRegistry,\n} from '@composy/layout-core'\nexport type VueMaterialSource =\n MaterialRegistry | readonly MaterialDefinition[] | undefined\n\n/**\n * The runtime target used by the layout renderer. It intentionally contains\n * only the two targets supported by the workspace today: a Vue component or a\n * registered native custom element.\n */\nexport type LayoutRenderTarget = 'vue' | 'webcomponent'\n\nfunction resolveRegistry(\n source: VueMaterialSource\n): MaterialRegistry | undefined {\n if (!source) return undefined\n if (Array.isArray(source)) return createMaterialRegistry(source)\n return source as MaterialRegistry\n}\n\nexport function resolveMaterialDefinition(\n materials: VueMaterialSource,\n type: string\n): MaterialDefinition | undefined {\n return resolveRegistry(materials)?.get(type)\n}\n\n/**\n * Render the framework-specific fallback declared by a material.\n * A host-provided item slot always takes precedence over this helper.\n */\nexport function renderMaterialFallback(\n materials: VueMaterialSource,\n item: LayoutNode,\n placement: LayoutPlacement,\n breakpointId: string\n): VNode | undefined {\n const material = resolveMaterialDefinition(materials, item.type)\n const context = { item, placement, breakpointId }\n const vueRenderer = material?.renderers?.vue\n if (vueRenderer?.component) {\n return h(vueRenderer.component as never, {\n ...(item.props ?? {}),\n ...(vueRenderer.tagName ? { is: vueRenderer.tagName } : {}),\n })\n }\n const webComponentRenderer = material?.renderers?.webcomponent\n if (webComponentRenderer?.tagName)\n return h(webComponentRenderer.tagName, {\n ...(item.props ?? {}),\n materialProps: { ...(item.props ?? {}) },\n })\n const htmlRenderer = material?.renderers?.html\n if (htmlRenderer?.render) {\n const rendered = htmlRenderer.render(context)\n if (typeof rendered === 'string')\n return h('div', { innerHTML: sanitizeMarkup(rendered) })\n return rendered as VNode | undefined\n }\n if (htmlRenderer?.tagName)\n return h(htmlRenderer.tagName, { ...(item.props ?? {}) })\n return undefined\n}\n\n/**\n * Render the registered renderer for a concrete target.\n *\n * Keeping this decision in one place is important: grid items, preview\n * surfaces and integrations must not each invent their own component lookup.\n * A material can still provide the legacy html renderer as a final fallback,\n * but a Vue target never silently prefers a web component when its Vue\n * renderer is present (and vice versa).\n */\nexport function renderMaterialForTarget(\n materials: VueMaterialSource,\n item: LayoutNode,\n target: LayoutRenderTarget,\n placement?: LayoutPlacement,\n breakpointId = 'desktop'\n): VNode | undefined {\n const material = resolveMaterialDefinition(materials, item.type)\n const props = { ...(item.props ?? {}) }\n\n if (target === 'vue') {\n const renderer = material?.renderers?.vue\n if (renderer?.component) return h(renderer.component as never, props)\n } else {\n const renderer = material?.renderers?.webcomponent\n if (renderer?.tagName)\n return h(renderer.tagName, {\n ...props,\n // Workspace-provided custom elements use this property to render the\n // same registered material props as the editor/runtime adapters.\n materialProps: props,\n onVnodeMounted: vnode => {\n const el = vnode.el as unknown as Element & {\n materialProps?: Record<string, unknown>\n }\n if (el && 'materialProps' in el) el.materialProps = props\n },\n onVnodeUpdated: vnode => {\n const el = vnode.el as unknown as Element & {\n materialProps?: Record<string, unknown>\n }\n if (el && 'materialProps' in el) el.materialProps = props\n },\n })\n }\n\n const htmlRenderer = material?.renderers?.html\n if (htmlRenderer?.render) {\n const rendered = htmlRenderer.render({\n item,\n placement: placement ??\n item.layout[breakpointId] ?? { x: 0, y: 0, w: 1, h: 1 },\n breakpointId,\n })\n if (typeof rendered === 'string')\n return h('div', { innerHTML: sanitizeMarkup(rendered) })\n return rendered as VNode | undefined\n }\n if (htmlRenderer?.tagName) return h(htmlRenderer.tagName, props)\n\n // Preserve the historical behavior for incomplete third-party definitions\n // so registering only one renderer does not make an item disappear.\n return renderMaterialFallback(\n materials,\n item,\n placement ?? item.layout[breakpointId] ?? { x: 0, y: 0, w: 1, h: 1 },\n breakpointId\n )\n}\n\nfunction sanitizeMarkup(value: string): string {\n return value\n .replace(/<script\\b[^>]*>[\\s\\S]*?<\\/script\\s*>/gi, '')\n .replace(/\\s+on[a-z]+\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s>]+)/gi, '')\n .replace(/\\s+(?:href|src)\\s*=\\s*(\"|')\\s*javascript:[^\"']*\\1/gi, '')\n}\n"],"mappings":";;;;;;;;;;;;;AAkBA,SAAS,gBACP,QAC8B;CAC9B,IAAI,CAAC,QAAQ,OAAO,KAAA;CACpB,IAAI,MAAM,QAAQ,MAAM,GAAG,QAAA,GAAA,qBAAA,uBAAA,CAA8B,MAAM;CAC/D,OAAO;AACT;AAEO,SAAS,0BACd,WACA,MACgC;CAChC,OAAO,gBAAgB,SAAS,CAAA,EAAG,IAAI,IAAI;AAC7C;AAMO,SAAS,uBACd,WACA,MACA,WACA,cACmB;CACnB,MAAM,WAAW,0BAA0B,WAAW,KAAK,IAAI;CAC/D,MAAM,UAAU;EAAE;EAAM;EAAW;CAAa;CAChD,MAAM,cAAc,UAAU,WAAW;CACzC,IAAI,aAAa,WACf,QAAA,GAAA,IAAA,EAAA,CAAS,YAAY,WAAoB;EACvC,GAAI,KAAK,SAAS,CAAC;EACnB,GAAI,YAAY,UAAU,EAAE,IAAI,YAAY,QAAQ,IAAI,CAAC;CAC3D,CAAC;CAEH,MAAM,uBAAuB,UAAU,WAAW;CAClD,IAAI,sBAAsB,SACxB,QAAA,GAAA,IAAA,EAAA,CAAS,qBAAqB,SAAS;EACrC,GAAI,KAAK,SAAS,CAAC;EACnB,eAAe,EAAE,GAAI,KAAK,SAAS,CAAC,EAAG;CACzC,CAAC;CACH,MAAM,eAAe,UAAU,WAAW;CAC1C,IAAI,cAAc,QAAQ;EACxB,MAAM,WAAW,aAAa,OAAO,OAAO;EAC5C,IAAI,OAAO,aAAa,UACtB,QAAA,GAAA,IAAA,EAAA,CAAS,OAAO,EAAE,WAAW,eAAe,QAAQ,EAAE,CAAC;EACzD,OAAO;CACT;CACA,IAAI,cAAc,SAChB,QAAA,GAAA,IAAA,EAAA,CAAS,aAAa,SAAS,EAAE,GAAI,KAAK,SAAS,CAAC,EAAG,CAAC;AAE5D;AAWO,SAAS,wBACd,WACA,MACA,QACA,WACA,eAAe,WACI;CACnB,MAAM,WAAW,0BAA0B,WAAW,KAAK,IAAI;CAC/D,MAAM,QAAQ,EAAE,GAAI,KAAK,SAAS,CAAC,EAAG;CAEtC,IAAI,WAAW,OAAO;EACpB,MAAM,WAAW,UAAU,WAAW;EACtC,IAAI,UAAU,WAAW,QAAA,GAAA,IAAA,EAAA,CAAS,SAAS,WAAoB,KAAK;CACtE,OAAO;EACL,MAAM,WAAW,UAAU,WAAW;EACtC,IAAI,UAAU,SACZ,QAAA,GAAA,IAAA,EAAA,CAAS,SAAS,SAAS;GACzB,GAAG;GAGH,eAAe;GACf,iBAAgB,UAAS;IACvB,MAAM,KAAK,MAAM;IAGjB,IAAI,MAAM,mBAAmB,IAAI,GAAG,gBAAgB;GACtD;GACA,iBAAgB,UAAS;IACvB,MAAM,KAAK,MAAM;IAGjB,IAAI,MAAM,mBAAmB,IAAI,GAAG,gBAAgB;GACtD;EACF,CAAC;CACL;CAEA,MAAM,eAAe,UAAU,WAAW;CAC1C,IAAI,cAAc,QAAQ;EACxB,MAAM,WAAW,aAAa,OAAO;GACnC;GACA,WAAW,aACT,KAAK,OAAO,iBAAiB;IAAE,GAAG;IAAG,GAAG;IAAG,GAAG;IAAG,GAAG;GAAE;GACxD;EACF,CAAC;EACD,IAAI,OAAO,aAAa,UACtB,QAAA,GAAA,IAAA,EAAA,CAAS,OAAO,EAAE,WAAW,eAAe,QAAQ,EAAE,CAAC;EACzD,OAAO;CACT;CACA,IAAI,cAAc,SAAS,QAAA,GAAA,IAAA,EAAA,CAAS,aAAa,SAAS,KAAK;CAI/D,OAAO,uBACL,WACA,MACA,aAAa,KAAK,OAAO,iBAAiB;EAAE,GAAG;EAAG,GAAG;EAAG,GAAG;EAAG,GAAG;CAAE,GACnE,YACF;AACF;AAEA,SAAS,eAAe,OAAuB;CAC7C,OAAO,MACJ,QAAQ,0CAA0C,EAAE,CAAA,CACpD,QAAQ,mDAAmD,EAAE,CAAA,CAC7D,QAAQ,uDAAuD,EAAE;AACtE"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type VNode } from 'vue';
|
|
2
|
+
import { type LayoutNode, type LayoutPlacement, type MaterialDefinition, type MaterialRegistry } from '@composy/layout-core';
|
|
3
|
+
export type VueMaterialSource = MaterialRegistry | readonly MaterialDefinition[] | undefined;
|
|
4
|
+
/**
|
|
5
|
+
* The runtime target used by the layout renderer. It intentionally contains
|
|
6
|
+
* only the two targets supported by the workspace today: a Vue component or a
|
|
7
|
+
* registered native custom element.
|
|
8
|
+
*/
|
|
9
|
+
export type LayoutRenderTarget = 'vue' | 'webcomponent';
|
|
10
|
+
export declare function resolveMaterialDefinition(materials: VueMaterialSource, type: string): MaterialDefinition | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Render the framework-specific fallback declared by a material.
|
|
13
|
+
* A host-provided item slot always takes precedence over this helper.
|
|
14
|
+
*/
|
|
15
|
+
export declare function renderMaterialFallback(materials: VueMaterialSource, item: LayoutNode, placement: LayoutPlacement, breakpointId: string): VNode | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Render the registered renderer for a concrete target.
|
|
18
|
+
*
|
|
19
|
+
* Keeping this decision in one place is important: grid items, preview
|
|
20
|
+
* surfaces and integrations must not each invent their own component lookup.
|
|
21
|
+
* A material can still provide the legacy html renderer as a final fallback,
|
|
22
|
+
* but a Vue target never silently prefers a web component when its Vue
|
|
23
|
+
* renderer is present (and vice versa).
|
|
24
|
+
*/
|
|
25
|
+
export declare function renderMaterialForTarget(materials: VueMaterialSource, item: LayoutNode, target: LayoutRenderTarget, placement?: LayoutPlacement, breakpointId?: string): VNode | undefined;
|
|
26
|
+
//# sourceMappingURL=material-renderer.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* ***********************************
|
|
3
|
+
* @composy/layout-vue v0.0.1 *
|
|
4
|
+
* Built with rollup *
|
|
5
|
+
* Build time: 2024-08-17 11:47:09 *
|
|
6
|
+
* Build mode: production *
|
|
7
|
+
* Minified: No *
|
|
8
|
+
* ***********************************
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
11
|
+
const require_useLayoutEditor = require("./useLayoutEditor.cjs");
|
|
12
|
+
exports.useLayoutEditor = require_useLayoutEditor.useLayoutEditor;
|
|
13
|
+
/*! End of @composy/layout-vue | Powered by @composy/builder */
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* ***********************************
|
|
3
|
+
* @composy/layout-vue v0.0.1 *
|
|
4
|
+
* Built with rollup *
|
|
5
|
+
* Build time: 2024-08-17 11:47:09 *
|
|
6
|
+
* Build mode: production *
|
|
7
|
+
* Minified: No *
|
|
8
|
+
* ***********************************
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
11
|
+
let vue = require("vue");
|
|
12
|
+
let _composy_layout_editor = require("@composy/layout-editor");
|
|
13
|
+
//#region src/composables/useLayoutEditor.ts
|
|
14
|
+
function useLayoutEditor(options) {
|
|
15
|
+
const editor = (0, vue.shallowRef)((0, _composy_layout_editor.createLayoutEditor)(options));
|
|
16
|
+
(0, vue.onMounted)(() => editor.value.mount());
|
|
17
|
+
(0, vue.onBeforeUnmount)(() => editor.value.destroy());
|
|
18
|
+
return editor;
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
exports.useLayoutEditor = useLayoutEditor;
|
|
22
|
+
/*! End of @composy/layout-vue | Powered by @composy/builder */
|
|
23
|
+
//# sourceMappingURL=useLayoutEditor.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLayoutEditor.cjs","names":[],"sources":["../../src/composables/useLayoutEditor.ts"],"sourcesContent":["import { onBeforeUnmount, onMounted, shallowRef } from 'vue'\nimport { createLayoutEditor } from '@composy/layout-editor'\nimport type { LayoutEditorOptions } from '@composy/layout-editor'\n\nexport function useLayoutEditor(options: LayoutEditorOptions) {\n const editor = shallowRef(createLayoutEditor(options))\n onMounted(() => editor.value.mount())\n onBeforeUnmount(() => editor.value.destroy())\n return editor\n}\n"],"mappings":";;;;;;;;;;;;;AAIO,SAAS,gBAAgB,SAA8B;CAC5D,MAAM,UAAA,GAAA,IAAA,WAAA,EAAA,GAAA,uBAAA,mBAAA,CAAuC,OAAO,CAAC;CACrD,CAAA,GAAA,IAAA,UAAA,OAAgB,OAAO,MAAM,MAAM,CAAC;CACpC,CAAA,GAAA,IAAA,gBAAA,OAAsB,OAAO,MAAM,QAAQ,CAAC;CAC5C,OAAO;AACT"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { LayoutEditorOptions } from '@composy/layout-editor';
|
|
2
|
+
export declare function useLayoutEditor(options: LayoutEditorOptions): import("vue").ShallowRef<import("@composy/layout-editor").LayoutEditor, import("@composy/layout-editor").LayoutEditor>;
|
|
3
|
+
//# sourceMappingURL=useLayoutEditor.d.ts.map
|
package/lib/index.cjs
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* ***********************************
|
|
3
|
+
* @composy/layout-vue v0.0.1 *
|
|
4
|
+
* Built with rollup *
|
|
5
|
+
* Build time: 2024-08-17 11:47:09 *
|
|
6
|
+
* Build mode: production *
|
|
7
|
+
* Minified: No *
|
|
8
|
+
* ***********************************
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
11
|
+
const require_LGrid = require("./components/LGrid.cjs");
|
|
12
|
+
const require_LGridItem = require("./components/LGridItem.cjs");
|
|
13
|
+
const require_LLayoutEditor = require("./components/LLayoutEditor.cjs");
|
|
14
|
+
const require_LMaterialDragSource = require("./components/LMaterialDragSource.cjs");
|
|
15
|
+
const require_LMaterialRenderer = require("./components/LMaterialRenderer.cjs");
|
|
16
|
+
const require_LMetricCard = require("./components/LMetricCard.cjs");
|
|
17
|
+
const require_LTrendCard = require("./components/LTrendCard.cjs");
|
|
18
|
+
const require_LLayoutWorkspace = require("./components/LLayoutWorkspace.cjs");
|
|
19
|
+
const require_useLayoutEditor = require("./composables/useLayoutEditor.cjs");
|
|
20
|
+
exports.LGrid = require_LGrid.LGrid;
|
|
21
|
+
exports.LGridItem = require_LGridItem.LGridItem;
|
|
22
|
+
exports.LLayoutEditor = require_LLayoutEditor.LLayoutEditor;
|
|
23
|
+
exports.LLayoutWorkspace = require_LLayoutWorkspace.default;
|
|
24
|
+
exports.LMaterialDragSource = require_LMaterialDragSource.LMaterialDragSource;
|
|
25
|
+
exports.LMaterialRenderer = require_LMaterialRenderer.LMaterialRenderer;
|
|
26
|
+
exports.LMetricCard = require_LMetricCard.LMetricCard;
|
|
27
|
+
exports.LTrendCard = require_LTrendCard.LTrendCard;
|
|
28
|
+
exports.useLayoutEditor = require_useLayoutEditor.useLayoutEditor;
|
|
29
|
+
/*! End of @composy/layout-vue | Powered by @composy/builder */
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { LGrid, LGridItem, LMaterialRenderer, LLayoutEditor, LLayoutWorkspace, LMaterialDragSource, LMetricCard, LTrendCard, } from './components';
|
|
2
|
+
export { useLayoutEditor } from './composables';
|
|
3
|
+
export type * from './types';
|
|
4
|
+
export type { LayoutRenderTarget, VueMaterialSource, } from './components/material-renderer';
|
|
5
|
+
export type { LayoutDocument, LayoutNode, LayoutPlacement, MaterialDefinition, } from '@composy/layout-core';
|
|
6
|
+
export type { LayoutEditor, LayoutEditorEngine, LayoutEditorOptions, } from '@composy/layout-editor';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
package/lib/package.json
ADDED
package/lib/style/css.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.css';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.css';
|