@tailor-cms/ce-accordion-edit 0.0.5 → 0.0.6
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 +43 -31
- package/dist/index.js +43 -31
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -19601,7 +19601,7 @@ function uniqueId(prefix) {
|
|
|
19601
19601
|
}
|
|
19602
19602
|
var uniqueId_1 = uniqueId;
|
|
19603
19603
|
const uniqueId$1 = /* @__PURE__ */ getDefaultExportFromCjs(uniqueId_1);
|
|
19604
|
-
const _hoisted_1$
|
|
19604
|
+
const _hoisted_1$4 = ["id", "accept"];
|
|
19605
19605
|
/* @__PURE__ */ vue.defineComponent({
|
|
19606
19606
|
__name: "UploadBtn",
|
|
19607
19607
|
props: {
|
|
@@ -19654,7 +19654,7 @@ const _hoisted_1$3 = ["id", "accept"];
|
|
|
19654
19654
|
class: "d-none",
|
|
19655
19655
|
type: "file",
|
|
19656
19656
|
onChange: _cache[1] || (_cache[1] = ($event) => validateAndUpload($event.target))
|
|
19657
|
-
}, null, 40, _hoisted_1$
|
|
19657
|
+
}, null, 40, _hoisted_1$4)),
|
|
19658
19658
|
fileInput.value ? (vue.openBlock(), vue.createBlock(_component_VBtn, {
|
|
19659
19659
|
key: 0,
|
|
19660
19660
|
loading: vue.unref(uploading),
|
|
@@ -19675,11 +19675,11 @@ const _hoisted_1$3 = ["id", "accept"];
|
|
|
19675
19675
|
};
|
|
19676
19676
|
}
|
|
19677
19677
|
});
|
|
19678
|
-
const _hoisted_1$
|
|
19678
|
+
const _hoisted_1$3 = {
|
|
19679
19679
|
key: 0,
|
|
19680
19680
|
class: "text-grey-darken-2 text-subtitle-1"
|
|
19681
19681
|
};
|
|
19682
|
-
const _sfc_main$
|
|
19682
|
+
const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
19683
19683
|
__name: "ElementPlaceholder",
|
|
19684
19684
|
props: {
|
|
19685
19685
|
icon: {},
|
|
@@ -19727,7 +19727,7 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19727
19727
|
_ctx.dense ? "my-2 text-subtitle-2" : "my-4 text-h5"
|
|
19728
19728
|
])
|
|
19729
19729
|
}, vue.toDisplayString(_ctx.name), 3),
|
|
19730
|
-
!_ctx.dense && !_ctx.isDisabled ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
19730
|
+
!_ctx.dense && !_ctx.isDisabled ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$3, [
|
|
19731
19731
|
!_ctx.isFocused ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
19732
19732
|
vue.createTextVNode(vue.toDisplayString(_ctx.placeholder), 1)
|
|
19733
19733
|
], 64)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
@@ -27490,7 +27490,7 @@ function isEmpty(value) {
|
|
|
27490
27490
|
}
|
|
27491
27491
|
var isEmpty_1 = isEmpty;
|
|
27492
27492
|
const isEmpty$1 = /* @__PURE__ */ getDefaultExportFromCjs(isEmpty_1);
|
|
27493
|
-
const _hoisted_1$
|
|
27493
|
+
const _hoisted_1$2 = {
|
|
27494
27494
|
key: 2,
|
|
27495
27495
|
class: "accordion-title ml-4"
|
|
27496
27496
|
};
|
|
@@ -27498,7 +27498,7 @@ const _hoisted_2 = {
|
|
|
27498
27498
|
key: 3,
|
|
27499
27499
|
class: "d-flex mx-2 ga-1"
|
|
27500
27500
|
};
|
|
27501
|
-
const _sfc_main$
|
|
27501
|
+
const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
27502
27502
|
__name: "AccordionItem",
|
|
27503
27503
|
props: {
|
|
27504
27504
|
item: {},
|
|
@@ -27606,7 +27606,7 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
27606
27606
|
}, ["stop"])),
|
|
27607
27607
|
onKeyup: _cache[3] || (_cache[3] = vue.withKeys(vue.withModifiers(() => {
|
|
27608
27608
|
}, ["prevent"]), ["space"]))
|
|
27609
|
-
}, null, 8, ["modelValue", "rules"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
27609
|
+
}, null, 8, ["modelValue", "rules"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$2, vue.toDisplayString(_ctx.item.title), 1)),
|
|
27610
27610
|
vue.createVNode(_component_VSpacer),
|
|
27611
27611
|
!_ctx.isDisabled ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
|
27612
27612
|
isEditing.value ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
@@ -27697,9 +27697,9 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
27697
27697
|
}
|
|
27698
27698
|
});
|
|
27699
27699
|
const AccordionItem_vue_vue_type_style_index_0_scoped_2e9fbd32_lang = "";
|
|
27700
|
-
const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
27701
|
-
const _hoisted_1 = { class: "tce-accordion d-flex flex-column align-center text-center" };
|
|
27702
|
-
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
27700
|
+
const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-2e9fbd32"]]);
|
|
27701
|
+
const _hoisted_1$1 = { class: "tce-accordion d-flex flex-column align-center text-center" };
|
|
27702
|
+
const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
27703
27703
|
__name: "Edit",
|
|
27704
27704
|
props: {
|
|
27705
27705
|
element: {},
|
|
@@ -27710,6 +27710,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
27710
27710
|
emits: ["save", "link"],
|
|
27711
27711
|
setup(__props, { emit: emit2 }) {
|
|
27712
27712
|
const props2 = __props;
|
|
27713
|
+
const elementBus = vue.inject("$elementBus");
|
|
27713
27714
|
const expanded = vue.ref([]);
|
|
27714
27715
|
const elementData = vue.reactive(cloneDeep$1(props2.element.data));
|
|
27715
27716
|
const panels = vue.ref();
|
|
@@ -27720,12 +27721,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
27720
27721
|
return acc;
|
|
27721
27722
|
}, {})
|
|
27722
27723
|
);
|
|
27723
|
-
const add2 = () => {
|
|
27724
|
-
const id = createId_1();
|
|
27725
|
-
elementData.items.push({ id, title: "Title", elementIds: [] });
|
|
27726
|
-
expanded.value.push(id);
|
|
27727
|
-
emit2("save", elementData);
|
|
27728
|
-
};
|
|
27729
27724
|
const saveItem = ({ item, embeds = {} }, index2) => {
|
|
27730
27725
|
elementData.items[index2] = item;
|
|
27731
27726
|
Object.assign(elementData.embeds, embeds);
|
|
@@ -27753,14 +27748,19 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
27753
27748
|
}
|
|
27754
27749
|
});
|
|
27755
27750
|
});
|
|
27751
|
+
elementBus.on("add", () => {
|
|
27752
|
+
const id = createId_1();
|
|
27753
|
+
elementData.items.push({ id, title: "Title", elementIds: [] });
|
|
27754
|
+
expanded.value.push(id);
|
|
27755
|
+
emit2("save", elementData);
|
|
27756
|
+
});
|
|
27756
27757
|
vue.onBeforeUnmount(() => {
|
|
27757
27758
|
sortable.value.destroy();
|
|
27758
27759
|
});
|
|
27759
27760
|
return (_ctx, _cache) => {
|
|
27760
27761
|
const _component_VExpandTransition = vue.resolveComponent("VExpandTransition");
|
|
27761
27762
|
const _component_VExpansionPanels = vue.resolveComponent("VExpansionPanels");
|
|
27762
|
-
|
|
27763
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
27763
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$1, [
|
|
27764
27764
|
vue.createVNode(_component_VExpansionPanels, {
|
|
27765
27765
|
ref_key: "panels",
|
|
27766
27766
|
ref: panels,
|
|
@@ -27795,37 +27795,49 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
27795
27795
|
]),
|
|
27796
27796
|
_: 1
|
|
27797
27797
|
}, 8, ["modelValue"]),
|
|
27798
|
-
!elementData.items.length ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$
|
|
27798
|
+
!elementData.items.length ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$3), {
|
|
27799
27799
|
key: 0,
|
|
27800
27800
|
icon: vue.unref(src_default).ui.icon,
|
|
27801
27801
|
"is-disabled": _ctx.isDisabled,
|
|
27802
27802
|
"is-focused": _ctx.isFocused,
|
|
27803
27803
|
name: `${vue.unref(src_default).name} component`,
|
|
27804
|
-
"active-icon": "mdi-arrow-
|
|
27805
|
-
"active-placeholder": "
|
|
27806
|
-
}, null, 8, ["icon", "is-disabled", "is-focused", "name"])) : vue.createCommentVNode("", true)
|
|
27807
|
-
|
|
27808
|
-
|
|
27809
|
-
|
|
27804
|
+
"active-icon": "mdi-arrow-up",
|
|
27805
|
+
"active-placeholder": "Use toolbar to create the first item"
|
|
27806
|
+
}, null, 8, ["icon", "is-disabled", "is-focused", "name"])) : vue.createCommentVNode("", true)
|
|
27807
|
+
]);
|
|
27808
|
+
};
|
|
27809
|
+
}
|
|
27810
|
+
});
|
|
27811
|
+
const Edit_vue_vue_type_style_index_0_scoped_28a6b1bd_lang = "";
|
|
27812
|
+
const Edit = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-28a6b1bd"]]);
|
|
27813
|
+
const _hoisted_1 = { class: "d-flex align-center justify-center" };
|
|
27814
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
27815
|
+
__name: "TopToolbar",
|
|
27816
|
+
setup(__props) {
|
|
27817
|
+
const elementBus = vue.inject("$elementBus");
|
|
27818
|
+
return (_ctx, _cache) => {
|
|
27819
|
+
const _component_VBtn = vue.resolveComponent("VBtn");
|
|
27820
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
27821
|
+
vue.createVNode(_component_VBtn, {
|
|
27810
27822
|
color: "primary-darken-4",
|
|
27811
27823
|
"prepend-icon": "mdi-plus",
|
|
27812
27824
|
variant: "text",
|
|
27813
|
-
onClick:
|
|
27825
|
+
onClick: _cache[0] || (_cache[0] = ($event) => vue.unref(elementBus).emit("add"))
|
|
27814
27826
|
}, {
|
|
27815
27827
|
default: vue.withCtx(() => [
|
|
27816
27828
|
vue.createTextVNode(" Add accordion item ")
|
|
27817
27829
|
]),
|
|
27818
27830
|
_: 1
|
|
27819
|
-
})
|
|
27831
|
+
})
|
|
27820
27832
|
]);
|
|
27821
27833
|
};
|
|
27822
27834
|
}
|
|
27823
27835
|
});
|
|
27824
|
-
const Edit_vue_vue_type_style_index_0_scoped_b6deefb4_lang = "";
|
|
27825
|
-
const Edit = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b6deefb4"]]);
|
|
27826
27836
|
const manifest = {
|
|
27827
27837
|
...src_default,
|
|
27828
|
-
Edit
|
|
27838
|
+
Edit,
|
|
27839
|
+
TopToolbar: _sfc_main
|
|
27829
27840
|
};
|
|
27830
27841
|
exports.Edit = Edit;
|
|
27842
|
+
exports.TopToolbar = _sfc_main;
|
|
27831
27843
|
exports.default = manifest;
|
package/dist/index.js
CHANGED
|
@@ -19599,7 +19599,7 @@ function uniqueId(prefix) {
|
|
|
19599
19599
|
}
|
|
19600
19600
|
var uniqueId_1 = uniqueId;
|
|
19601
19601
|
const uniqueId$1 = /* @__PURE__ */ getDefaultExportFromCjs(uniqueId_1);
|
|
19602
|
-
const _hoisted_1$
|
|
19602
|
+
const _hoisted_1$4 = ["id", "accept"];
|
|
19603
19603
|
/* @__PURE__ */ defineComponent({
|
|
19604
19604
|
__name: "UploadBtn",
|
|
19605
19605
|
props: {
|
|
@@ -19652,7 +19652,7 @@ const _hoisted_1$3 = ["id", "accept"];
|
|
|
19652
19652
|
class: "d-none",
|
|
19653
19653
|
type: "file",
|
|
19654
19654
|
onChange: _cache[1] || (_cache[1] = ($event) => validateAndUpload($event.target))
|
|
19655
|
-
}, null, 40, _hoisted_1$
|
|
19655
|
+
}, null, 40, _hoisted_1$4)),
|
|
19656
19656
|
fileInput.value ? (openBlock(), createBlock(_component_VBtn, {
|
|
19657
19657
|
key: 0,
|
|
19658
19658
|
loading: unref(uploading),
|
|
@@ -19673,11 +19673,11 @@ const _hoisted_1$3 = ["id", "accept"];
|
|
|
19673
19673
|
};
|
|
19674
19674
|
}
|
|
19675
19675
|
});
|
|
19676
|
-
const _hoisted_1$
|
|
19676
|
+
const _hoisted_1$3 = {
|
|
19677
19677
|
key: 0,
|
|
19678
19678
|
class: "text-grey-darken-2 text-subtitle-1"
|
|
19679
19679
|
};
|
|
19680
|
-
const _sfc_main$
|
|
19680
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
19681
19681
|
__name: "ElementPlaceholder",
|
|
19682
19682
|
props: {
|
|
19683
19683
|
icon: {},
|
|
@@ -19725,7 +19725,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
19725
19725
|
_ctx.dense ? "my-2 text-subtitle-2" : "my-4 text-h5"
|
|
19726
19726
|
])
|
|
19727
19727
|
}, toDisplayString(_ctx.name), 3),
|
|
19728
|
-
!_ctx.dense && !_ctx.isDisabled ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
19728
|
+
!_ctx.dense && !_ctx.isDisabled ? (openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
19729
19729
|
!_ctx.isFocused ? (openBlock(), createElementBlock(Fragment$1, { key: 0 }, [
|
|
19730
19730
|
createTextVNode(toDisplayString(_ctx.placeholder), 1)
|
|
19731
19731
|
], 64)) : (openBlock(), createElementBlock(Fragment$1, { key: 1 }, [
|
|
@@ -27488,7 +27488,7 @@ function isEmpty(value) {
|
|
|
27488
27488
|
}
|
|
27489
27489
|
var isEmpty_1 = isEmpty;
|
|
27490
27490
|
const isEmpty$1 = /* @__PURE__ */ getDefaultExportFromCjs(isEmpty_1);
|
|
27491
|
-
const _hoisted_1$
|
|
27491
|
+
const _hoisted_1$2 = {
|
|
27492
27492
|
key: 2,
|
|
27493
27493
|
class: "accordion-title ml-4"
|
|
27494
27494
|
};
|
|
@@ -27496,7 +27496,7 @@ const _hoisted_2 = {
|
|
|
27496
27496
|
key: 3,
|
|
27497
27497
|
class: "d-flex mx-2 ga-1"
|
|
27498
27498
|
};
|
|
27499
|
-
const _sfc_main$
|
|
27499
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
27500
27500
|
__name: "AccordionItem",
|
|
27501
27501
|
props: {
|
|
27502
27502
|
item: {},
|
|
@@ -27604,7 +27604,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
27604
27604
|
}, ["stop"])),
|
|
27605
27605
|
onKeyup: _cache[3] || (_cache[3] = withKeys(withModifiers(() => {
|
|
27606
27606
|
}, ["prevent"]), ["space"]))
|
|
27607
|
-
}, null, 8, ["modelValue", "rules"])) : (openBlock(), createElementBlock("div", _hoisted_1$
|
|
27607
|
+
}, null, 8, ["modelValue", "rules"])) : (openBlock(), createElementBlock("div", _hoisted_1$2, toDisplayString(_ctx.item.title), 1)),
|
|
27608
27608
|
createVNode(_component_VSpacer),
|
|
27609
27609
|
!_ctx.isDisabled ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
27610
27610
|
isEditing.value ? (openBlock(), createElementBlock(Fragment$1, { key: 0 }, [
|
|
@@ -27695,9 +27695,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
27695
27695
|
}
|
|
27696
27696
|
});
|
|
27697
27697
|
const AccordionItem_vue_vue_type_style_index_0_scoped_2e9fbd32_lang = "";
|
|
27698
|
-
const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
27699
|
-
const _hoisted_1 = { class: "tce-accordion d-flex flex-column align-center text-center" };
|
|
27700
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
27698
|
+
const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-2e9fbd32"]]);
|
|
27699
|
+
const _hoisted_1$1 = { class: "tce-accordion d-flex flex-column align-center text-center" };
|
|
27700
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
27701
27701
|
__name: "Edit",
|
|
27702
27702
|
props: {
|
|
27703
27703
|
element: {},
|
|
@@ -27708,6 +27708,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
27708
27708
|
emits: ["save", "link"],
|
|
27709
27709
|
setup(__props, { emit: emit2 }) {
|
|
27710
27710
|
const props2 = __props;
|
|
27711
|
+
const elementBus = inject("$elementBus");
|
|
27711
27712
|
const expanded = ref([]);
|
|
27712
27713
|
const elementData = reactive(cloneDeep$1(props2.element.data));
|
|
27713
27714
|
const panels = ref();
|
|
@@ -27718,12 +27719,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
27718
27719
|
return acc;
|
|
27719
27720
|
}, {})
|
|
27720
27721
|
);
|
|
27721
|
-
const add2 = () => {
|
|
27722
|
-
const id = createId_1();
|
|
27723
|
-
elementData.items.push({ id, title: "Title", elementIds: [] });
|
|
27724
|
-
expanded.value.push(id);
|
|
27725
|
-
emit2("save", elementData);
|
|
27726
|
-
};
|
|
27727
27722
|
const saveItem = ({ item, embeds = {} }, index2) => {
|
|
27728
27723
|
elementData.items[index2] = item;
|
|
27729
27724
|
Object.assign(elementData.embeds, embeds);
|
|
@@ -27751,14 +27746,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
27751
27746
|
}
|
|
27752
27747
|
});
|
|
27753
27748
|
});
|
|
27749
|
+
elementBus.on("add", () => {
|
|
27750
|
+
const id = createId_1();
|
|
27751
|
+
elementData.items.push({ id, title: "Title", elementIds: [] });
|
|
27752
|
+
expanded.value.push(id);
|
|
27753
|
+
emit2("save", elementData);
|
|
27754
|
+
});
|
|
27754
27755
|
onBeforeUnmount(() => {
|
|
27755
27756
|
sortable.value.destroy();
|
|
27756
27757
|
});
|
|
27757
27758
|
return (_ctx, _cache) => {
|
|
27758
27759
|
const _component_VExpandTransition = resolveComponent("VExpandTransition");
|
|
27759
27760
|
const _component_VExpansionPanels = resolveComponent("VExpansionPanels");
|
|
27760
|
-
|
|
27761
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
27761
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
27762
27762
|
createVNode(_component_VExpansionPanels, {
|
|
27763
27763
|
ref_key: "panels",
|
|
27764
27764
|
ref: panels,
|
|
@@ -27793,39 +27793,51 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
27793
27793
|
]),
|
|
27794
27794
|
_: 1
|
|
27795
27795
|
}, 8, ["modelValue"]),
|
|
27796
|
-
!elementData.items.length ? (openBlock(), createBlock(unref(_sfc_main$
|
|
27796
|
+
!elementData.items.length ? (openBlock(), createBlock(unref(_sfc_main$3), {
|
|
27797
27797
|
key: 0,
|
|
27798
27798
|
icon: unref(src_default).ui.icon,
|
|
27799
27799
|
"is-disabled": _ctx.isDisabled,
|
|
27800
27800
|
"is-focused": _ctx.isFocused,
|
|
27801
27801
|
name: `${unref(src_default).name} component`,
|
|
27802
|
-
"active-icon": "mdi-arrow-
|
|
27803
|
-
"active-placeholder": "
|
|
27804
|
-
}, null, 8, ["icon", "is-disabled", "is-focused", "name"])) : createCommentVNode("", true)
|
|
27805
|
-
|
|
27806
|
-
|
|
27807
|
-
|
|
27802
|
+
"active-icon": "mdi-arrow-up",
|
|
27803
|
+
"active-placeholder": "Use toolbar to create the first item"
|
|
27804
|
+
}, null, 8, ["icon", "is-disabled", "is-focused", "name"])) : createCommentVNode("", true)
|
|
27805
|
+
]);
|
|
27806
|
+
};
|
|
27807
|
+
}
|
|
27808
|
+
});
|
|
27809
|
+
const Edit_vue_vue_type_style_index_0_scoped_28a6b1bd_lang = "";
|
|
27810
|
+
const Edit = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-28a6b1bd"]]);
|
|
27811
|
+
const _hoisted_1 = { class: "d-flex align-center justify-center" };
|
|
27812
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
27813
|
+
__name: "TopToolbar",
|
|
27814
|
+
setup(__props) {
|
|
27815
|
+
const elementBus = inject("$elementBus");
|
|
27816
|
+
return (_ctx, _cache) => {
|
|
27817
|
+
const _component_VBtn = resolveComponent("VBtn");
|
|
27818
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
27819
|
+
createVNode(_component_VBtn, {
|
|
27808
27820
|
color: "primary-darken-4",
|
|
27809
27821
|
"prepend-icon": "mdi-plus",
|
|
27810
27822
|
variant: "text",
|
|
27811
|
-
onClick:
|
|
27823
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(elementBus).emit("add"))
|
|
27812
27824
|
}, {
|
|
27813
27825
|
default: withCtx(() => [
|
|
27814
27826
|
createTextVNode(" Add accordion item ")
|
|
27815
27827
|
]),
|
|
27816
27828
|
_: 1
|
|
27817
|
-
})
|
|
27829
|
+
})
|
|
27818
27830
|
]);
|
|
27819
27831
|
};
|
|
27820
27832
|
}
|
|
27821
27833
|
});
|
|
27822
|
-
const Edit_vue_vue_type_style_index_0_scoped_b6deefb4_lang = "";
|
|
27823
|
-
const Edit = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b6deefb4"]]);
|
|
27824
27834
|
const manifest = {
|
|
27825
27835
|
...src_default,
|
|
27826
|
-
Edit
|
|
27836
|
+
Edit,
|
|
27837
|
+
TopToolbar: _sfc_main
|
|
27827
27838
|
};
|
|
27828
27839
|
export {
|
|
27829
27840
|
Edit,
|
|
27841
|
+
_sfc_main as TopToolbar,
|
|
27830
27842
|
manifest as default
|
|
27831
27843
|
};
|
package/dist/style.css
CHANGED
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": "0.0.
|
|
6
|
+
"version": "0.0.6",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
9
9
|
"import": "./dist/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"typescript": "^5.1.6",
|
|
26
26
|
"vite": "^4.4.5",
|
|
27
27
|
"vue-tsc": "^1.8.5",
|
|
28
|
-
"@tailor-cms/ce-accordion-manifest": "0.0.
|
|
28
|
+
"@tailor-cms/ce-accordion-manifest": "0.0.6"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@paralleldrive/cuid2": "^2.2.2",
|