@tailor-cms/ce-accordion-display 2.0.0 → 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/index.cjs +27 -22
- package/dist/index.css +1 -1
- package/dist/index.js +28 -23
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -37,27 +37,29 @@ function _v4(options, buf, offset) {
|
|
|
37
37
|
}
|
|
38
38
|
//#endregion
|
|
39
39
|
//#region ../manifest/dist/index.mjs
|
|
40
|
-
var id1 = v4();
|
|
41
|
-
var id2 = v4();
|
|
42
40
|
var type = "ACCORDION";
|
|
43
41
|
var name = "Accordion";
|
|
44
|
-
var initState = () =>
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
42
|
+
var initState = () => {
|
|
43
|
+
const id1 = v4();
|
|
44
|
+
const id2 = v4();
|
|
45
|
+
return {
|
|
46
|
+
embeds: {},
|
|
47
|
+
items: {
|
|
48
|
+
[id1]: {
|
|
49
|
+
id: id1,
|
|
50
|
+
header: "",
|
|
51
|
+
body: {},
|
|
52
|
+
position: 1
|
|
53
|
+
},
|
|
54
|
+
[id2]: {
|
|
55
|
+
id: id2,
|
|
56
|
+
header: "",
|
|
57
|
+
body: {},
|
|
58
|
+
position: 2
|
|
59
|
+
}
|
|
58
60
|
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
+
};
|
|
62
|
+
};
|
|
61
63
|
var ui = {
|
|
62
64
|
icon: "mdi-view-day",
|
|
63
65
|
forceFullWidth: true
|
|
@@ -2871,6 +2873,7 @@ var Display_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0, vu
|
|
|
2871
2873
|
}, {});
|
|
2872
2874
|
});
|
|
2873
2875
|
return (_ctx, _cache) => {
|
|
2876
|
+
const _component_VExpansionPanelTitle = (0, vue.resolveComponent)("VExpansionPanelTitle");
|
|
2874
2877
|
const _component_VAlert = (0, vue.resolveComponent)("VAlert");
|
|
2875
2878
|
const _component_TailorEmbeddedContainer = (0, vue.resolveComponent)("TailorEmbeddedContainer");
|
|
2876
2879
|
const _component_VExpansionPanelText = (0, vue.resolveComponent)("VExpansionPanelText");
|
|
@@ -2885,10 +2888,12 @@ var Display_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0, vu
|
|
|
2885
2888
|
default: (0, vue.withCtx)(() => [((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)(accordionItems.value, (item) => {
|
|
2886
2889
|
return (0, vue.openBlock)(), (0, vue.createBlock)(_component_VExpansionPanel, {
|
|
2887
2890
|
key: item.id,
|
|
2888
|
-
title: item.header,
|
|
2889
2891
|
class: "border"
|
|
2890
2892
|
}, {
|
|
2891
|
-
default: (0, vue.withCtx)(() => [(0, vue.createVNode)(
|
|
2893
|
+
default: (0, vue.withCtx)(() => [(0, vue.createVNode)(_component_VExpansionPanelTitle, null, {
|
|
2894
|
+
default: (0, vue.withCtx)(() => [(0, vue.createTextVNode)((0, vue.toDisplayString)(item.header), 1)]),
|
|
2895
|
+
_: 2
|
|
2896
|
+
}, 1024), (0, vue.createVNode)(_component_VExpansionPanelText, null, {
|
|
2892
2897
|
default: (0, vue.withCtx)(() => [!embeds.value[item.id].length ? ((0, vue.openBlock)(), (0, vue.createBlock)(_component_VAlert, {
|
|
2893
2898
|
key: 0,
|
|
2894
2899
|
type: "info",
|
|
@@ -2903,7 +2908,7 @@ var Display_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0, vu
|
|
|
2903
2908
|
_: 2
|
|
2904
2909
|
}, 1024)]),
|
|
2905
2910
|
_: 2
|
|
2906
|
-
},
|
|
2911
|
+
}, 1024);
|
|
2907
2912
|
}), 128))]),
|
|
2908
2913
|
_: 1
|
|
2909
2914
|
})]),
|
|
@@ -2921,7 +2926,7 @@ var _plugin_vue_export_helper_default = (sfc, props) => {
|
|
|
2921
2926
|
};
|
|
2922
2927
|
//#endregion
|
|
2923
2928
|
//#region src/components/Display.vue
|
|
2924
|
-
var Display_default = /* @__PURE__ */ _plugin_vue_export_helper_default(Display_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
2929
|
+
var Display_default = /* @__PURE__ */ _plugin_vue_export_helper_default(Display_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-9e023e64"]]);
|
|
2925
2930
|
//#endregion
|
|
2926
2931
|
//#region src/index.ts
|
|
2927
2932
|
var manifest = {
|
package/dist/index.css
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fragment, computed, createBlock, createElementBlock, createTextVNode, createVNode, defineComponent, openBlock, renderList, resolveComponent, withCtx } from "vue";
|
|
1
|
+
import { Fragment, computed, createBlock, createElementBlock, createTextVNode, createVNode, defineComponent, openBlock, renderList, resolveComponent, toDisplayString, withCtx } from "vue";
|
|
2
2
|
import './index.css';//#region ../../node_modules/.pnpm/uuid@14.0.0/node_modules/uuid/dist/stringify.js
|
|
3
3
|
var byteToHex = [];
|
|
4
4
|
for (let i = 0; i < 256; ++i) byteToHex.push((i + 256).toString(16).slice(1));
|
|
@@ -33,27 +33,29 @@ function _v4(options, buf, offset) {
|
|
|
33
33
|
}
|
|
34
34
|
//#endregion
|
|
35
35
|
//#region ../manifest/dist/index.mjs
|
|
36
|
-
var id1 = v4();
|
|
37
|
-
var id2 = v4();
|
|
38
36
|
var type = "ACCORDION";
|
|
39
37
|
var name = "Accordion";
|
|
40
|
-
var initState = () =>
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
38
|
+
var initState = () => {
|
|
39
|
+
const id1 = v4();
|
|
40
|
+
const id2 = v4();
|
|
41
|
+
return {
|
|
42
|
+
embeds: {},
|
|
43
|
+
items: {
|
|
44
|
+
[id1]: {
|
|
45
|
+
id: id1,
|
|
46
|
+
header: "",
|
|
47
|
+
body: {},
|
|
48
|
+
position: 1
|
|
49
|
+
},
|
|
50
|
+
[id2]: {
|
|
51
|
+
id: id2,
|
|
52
|
+
header: "",
|
|
53
|
+
body: {},
|
|
54
|
+
position: 2
|
|
55
|
+
}
|
|
54
56
|
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
+
};
|
|
58
|
+
};
|
|
57
59
|
var ui = {
|
|
58
60
|
icon: "mdi-view-day",
|
|
59
61
|
forceFullWidth: true
|
|
@@ -2867,6 +2869,7 @@ var Display_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
|
|
|
2867
2869
|
}, {});
|
|
2868
2870
|
});
|
|
2869
2871
|
return (_ctx, _cache) => {
|
|
2872
|
+
const _component_VExpansionPanelTitle = resolveComponent("VExpansionPanelTitle");
|
|
2870
2873
|
const _component_VAlert = resolveComponent("VAlert");
|
|
2871
2874
|
const _component_TailorEmbeddedContainer = resolveComponent("TailorEmbeddedContainer");
|
|
2872
2875
|
const _component_VExpansionPanelText = resolveComponent("VExpansionPanelText");
|
|
@@ -2881,10 +2884,12 @@ var Display_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
|
|
|
2881
2884
|
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(accordionItems.value, (item) => {
|
|
2882
2885
|
return openBlock(), createBlock(_component_VExpansionPanel, {
|
|
2883
2886
|
key: item.id,
|
|
2884
|
-
title: item.header,
|
|
2885
2887
|
class: "border"
|
|
2886
2888
|
}, {
|
|
2887
|
-
default: withCtx(() => [createVNode(
|
|
2889
|
+
default: withCtx(() => [createVNode(_component_VExpansionPanelTitle, null, {
|
|
2890
|
+
default: withCtx(() => [createTextVNode(toDisplayString(item.header), 1)]),
|
|
2891
|
+
_: 2
|
|
2892
|
+
}, 1024), createVNode(_component_VExpansionPanelText, null, {
|
|
2888
2893
|
default: withCtx(() => [!embeds.value[item.id].length ? (openBlock(), createBlock(_component_VAlert, {
|
|
2889
2894
|
key: 0,
|
|
2890
2895
|
type: "info",
|
|
@@ -2899,7 +2904,7 @@ var Display_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
|
|
|
2899
2904
|
_: 2
|
|
2900
2905
|
}, 1024)]),
|
|
2901
2906
|
_: 2
|
|
2902
|
-
},
|
|
2907
|
+
}, 1024);
|
|
2903
2908
|
}), 128))]),
|
|
2904
2909
|
_: 1
|
|
2905
2910
|
})]),
|
|
@@ -2917,7 +2922,7 @@ var _plugin_vue_export_helper_default = (sfc, props) => {
|
|
|
2917
2922
|
};
|
|
2918
2923
|
//#endregion
|
|
2919
2924
|
//#region src/components/Display.vue
|
|
2920
|
-
var Display_default = /* @__PURE__ */ _plugin_vue_export_helper_default(Display_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
2925
|
+
var Display_default = /* @__PURE__ */ _plugin_vue_export_helper_default(Display_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-9e023e64"]]);
|
|
2921
2926
|
//#endregion
|
|
2922
2927
|
//#region src/index.ts
|
|
2923
2928
|
var manifest = {
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Tailor CMS accordion element",
|
|
4
4
|
"author": "Studion <info@gostudion.com> (https://github.com/tailor-cms)",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"version": "2.0.
|
|
6
|
+
"version": "2.0.1",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
9
9
|
"import": "./dist/index.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
28
28
|
"vue-tsc": "^3.2.7",
|
|
29
29
|
"vuetify": "^4.0.6",
|
|
30
|
-
"@tailor-cms/ce-accordion-manifest": "2.0.
|
|
30
|
+
"@tailor-cms/ce-accordion-manifest": "2.0.1"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"lodash-es": "^4.18.1"
|