@dcodegroup-au/page-builder 0.6.0 → 0.6.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/page-builder.es.js
CHANGED
|
@@ -48902,8 +48902,11 @@ const _sfc_main$f = {
|
|
|
48902
48902
|
}
|
|
48903
48903
|
};
|
|
48904
48904
|
const _hoisted_1$r = { class: "overflow-hidden mt-4" };
|
|
48905
|
-
const _hoisted_2$d = {
|
|
48906
|
-
|
|
48905
|
+
const _hoisted_2$d = {
|
|
48906
|
+
key: 0,
|
|
48907
|
+
class: "text-[36px] text-gray-900 font-semibold"
|
|
48908
|
+
};
|
|
48909
|
+
const _hoisted_3$d = { class: "all-unset ql-editor" };
|
|
48907
48910
|
const _hoisted_4$d = ["innerHTML"];
|
|
48908
48911
|
const _hoisted_5$d = { key: 0 };
|
|
48909
48912
|
const _hoisted_6$d = ["href"];
|
|
@@ -48954,23 +48957,23 @@ const _sfc_main$e = {
|
|
|
48954
48957
|
}
|
|
48955
48958
|
};
|
|
48956
48959
|
return (_ctx, _cache) => {
|
|
48957
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
48960
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
48958
48961
|
return openBlock(), createElementBlock("div", _hoisted_1$r, [
|
|
48959
48962
|
createElementVNode("div", {
|
|
48960
|
-
class: normalizeClass(["max-w-[1640px] md:px-[120px] mx-auto w-full pt-4 mb-4 flex gap-16 items-center", { "flex-row-reverse mt-6 !mb-10": (_a = section.value) == null ? void 0 : _a.revert }])
|
|
48963
|
+
class: normalizeClass(["max-w-[1640px] md:px-[120px] mx-auto w-full pt-4 mb-4 flex gap-16 items-center", { "flex-row-reverse mt-6 !mb-10": (_a = section.value) == null ? void 0 : _a.revert, "justify-center": (_b = section.value) == null ? void 0 : _b.center }])
|
|
48961
48964
|
}, [
|
|
48962
|
-
((
|
|
48965
|
+
((_c = component.value) == null ? void 0 : _c.title) || ((_d = component.value) == null ? void 0 : _d.paragraph) ? (openBlock(), createElementBlock("div", {
|
|
48963
48966
|
key: 0,
|
|
48964
|
-
class: normalizeClass(["max-w-[800px] py-4", { "!max-w-full w-full": (
|
|
48967
|
+
class: normalizeClass(["max-w-[800px] py-4", { "!max-w-full w-full": (_e = section.value) == null ? void 0 : _e.is_full_width }]),
|
|
48965
48968
|
ref_key: "leftColumn",
|
|
48966
48969
|
ref: leftColumn
|
|
48967
48970
|
}, [
|
|
48968
|
-
|
|
48971
|
+
((_f = component.value) == null ? void 0 : _f.title) ? (openBlock(), createElementBlock("h3", _hoisted_2$d, toDisplayString(component.value.title), 1)) : createCommentVNode("", true),
|
|
48969
48972
|
createElementVNode("div", _hoisted_3$d, [
|
|
48970
48973
|
createElementVNode("div", {
|
|
48971
48974
|
innerHTML: component.value.paragraph
|
|
48972
48975
|
}, null, 8, _hoisted_4$d),
|
|
48973
|
-
((
|
|
48976
|
+
((_g = component.value) == null ? void 0 : _g.hasOwnProperty("button")) && button.value.show ? (openBlock(), createElementBlock("div", _hoisted_5$d, [
|
|
48974
48977
|
createElementVNode("a", {
|
|
48975
48978
|
href: button.value.url,
|
|
48976
48979
|
class: "inline-flex items-center gap-2 !no-underline px-3 py-2.5 rounded-full shadow-xs text-md font-semibold !text-white bg-brand-600 hover:bg-brand-700 border border-brand-600 text-center cursor-pointer"
|
|
@@ -48981,13 +48984,13 @@ const _sfc_main$e = {
|
|
|
48981
48984
|
])) : createCommentVNode("", true)
|
|
48982
48985
|
])
|
|
48983
48986
|
], 2)) : createCommentVNode("", true),
|
|
48984
|
-
((
|
|
48987
|
+
((_h = component.value) == null ? void 0 : _h.featured_image) ? (openBlock(), createElementBlock("div", {
|
|
48985
48988
|
key: 1,
|
|
48986
48989
|
class: "w-full max-w-[536px] rounded-[24px] overflow-hidden",
|
|
48987
48990
|
ref_key: "rightColumn",
|
|
48988
48991
|
ref: rightColumn
|
|
48989
48992
|
}, [
|
|
48990
|
-
((
|
|
48993
|
+
((_i = component.value) == null ? void 0 : _i.source_type) === "video" ? (openBlock(), createElementBlock("div", _hoisted_7$d, [
|
|
48991
48994
|
createElementVNode("video", {
|
|
48992
48995
|
onClick: togglePlayPause,
|
|
48993
48996
|
preload: "metadata",
|
|
@@ -48996,7 +48999,7 @@ const _sfc_main$e = {
|
|
|
48996
48999
|
class: "h-full w-full object-cover"
|
|
48997
49000
|
}, [
|
|
48998
49001
|
createElementVNode("source", {
|
|
48999
|
-
src: `${(
|
|
49002
|
+
src: `${(_j = component.value) == null ? void 0 : _j.featured_image}#t=2`
|
|
49000
49003
|
}, null, 8, _hoisted_8$c)
|
|
49001
49004
|
], 512),
|
|
49002
49005
|
!isPlaying.value ? (openBlock(), createBlock(unref(PlayButton), {
|
|
@@ -49006,7 +49009,7 @@ const _sfc_main$e = {
|
|
|
49006
49009
|
})) : createCommentVNode("", true)
|
|
49007
49010
|
])) : (openBlock(), createElementBlock("img", {
|
|
49008
49011
|
key: 1,
|
|
49009
|
-
src: (
|
|
49012
|
+
src: (_k = component.value) == null ? void 0 : _k.featured_image,
|
|
49010
49013
|
alt: "Feature Image",
|
|
49011
49014
|
class: "w-full h-full object-cover rounded-[24px]"
|
|
49012
49015
|
}, null, 8, _hoisted_9$c))
|
package/dist/page-builder.umd.js
CHANGED
|
@@ -48905,8 +48905,11 @@ ${escapeText(this.code(index, length))}
|
|
|
48905
48905
|
}
|
|
48906
48906
|
};
|
|
48907
48907
|
const _hoisted_1$r = { class: "overflow-hidden mt-4" };
|
|
48908
|
-
const _hoisted_2$d = {
|
|
48909
|
-
|
|
48908
|
+
const _hoisted_2$d = {
|
|
48909
|
+
key: 0,
|
|
48910
|
+
class: "text-[36px] text-gray-900 font-semibold"
|
|
48911
|
+
};
|
|
48912
|
+
const _hoisted_3$d = { class: "all-unset ql-editor" };
|
|
48910
48913
|
const _hoisted_4$d = ["innerHTML"];
|
|
48911
48914
|
const _hoisted_5$d = { key: 0 };
|
|
48912
48915
|
const _hoisted_6$d = ["href"];
|
|
@@ -48957,23 +48960,23 @@ ${escapeText(this.code(index, length))}
|
|
|
48957
48960
|
}
|
|
48958
48961
|
};
|
|
48959
48962
|
return (_ctx, _cache) => {
|
|
48960
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
48963
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
48961
48964
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$r, [
|
|
48962
48965
|
vue.createElementVNode("div", {
|
|
48963
|
-
class: vue.normalizeClass(["max-w-[1640px] md:px-[120px] mx-auto w-full pt-4 mb-4 flex gap-16 items-center", { "flex-row-reverse mt-6 !mb-10": (_a = section.value) == null ? void 0 : _a.revert }])
|
|
48966
|
+
class: vue.normalizeClass(["max-w-[1640px] md:px-[120px] mx-auto w-full pt-4 mb-4 flex gap-16 items-center", { "flex-row-reverse mt-6 !mb-10": (_a = section.value) == null ? void 0 : _a.revert, "justify-center": (_b = section.value) == null ? void 0 : _b.center }])
|
|
48964
48967
|
}, [
|
|
48965
|
-
((
|
|
48968
|
+
((_c = component.value) == null ? void 0 : _c.title) || ((_d = component.value) == null ? void 0 : _d.paragraph) ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
48966
48969
|
key: 0,
|
|
48967
|
-
class: vue.normalizeClass(["max-w-[800px] py-4", { "!max-w-full w-full": (
|
|
48970
|
+
class: vue.normalizeClass(["max-w-[800px] py-4", { "!max-w-full w-full": (_e = section.value) == null ? void 0 : _e.is_full_width }]),
|
|
48968
48971
|
ref_key: "leftColumn",
|
|
48969
48972
|
ref: leftColumn
|
|
48970
48973
|
}, [
|
|
48971
|
-
vue.
|
|
48974
|
+
((_f = component.value) == null ? void 0 : _f.title) ? (vue.openBlock(), vue.createElementBlock("h3", _hoisted_2$d, vue.toDisplayString(component.value.title), 1)) : vue.createCommentVNode("", true),
|
|
48972
48975
|
vue.createElementVNode("div", _hoisted_3$d, [
|
|
48973
48976
|
vue.createElementVNode("div", {
|
|
48974
48977
|
innerHTML: component.value.paragraph
|
|
48975
48978
|
}, null, 8, _hoisted_4$d),
|
|
48976
|
-
((
|
|
48979
|
+
((_g = component.value) == null ? void 0 : _g.hasOwnProperty("button")) && button.value.show ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$d, [
|
|
48977
48980
|
vue.createElementVNode("a", {
|
|
48978
48981
|
href: button.value.url,
|
|
48979
48982
|
class: "inline-flex items-center gap-2 !no-underline px-3 py-2.5 rounded-full shadow-xs text-md font-semibold !text-white bg-brand-600 hover:bg-brand-700 border border-brand-600 text-center cursor-pointer"
|
|
@@ -48984,13 +48987,13 @@ ${escapeText(this.code(index, length))}
|
|
|
48984
48987
|
])) : vue.createCommentVNode("", true)
|
|
48985
48988
|
])
|
|
48986
48989
|
], 2)) : vue.createCommentVNode("", true),
|
|
48987
|
-
((
|
|
48990
|
+
((_h = component.value) == null ? void 0 : _h.featured_image) ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
48988
48991
|
key: 1,
|
|
48989
48992
|
class: "w-full max-w-[536px] rounded-[24px] overflow-hidden",
|
|
48990
48993
|
ref_key: "rightColumn",
|
|
48991
48994
|
ref: rightColumn
|
|
48992
48995
|
}, [
|
|
48993
|
-
((
|
|
48996
|
+
((_i = component.value) == null ? void 0 : _i.source_type) === "video" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$d, [
|
|
48994
48997
|
vue.createElementVNode("video", {
|
|
48995
48998
|
onClick: togglePlayPause,
|
|
48996
48999
|
preload: "metadata",
|
|
@@ -48999,7 +49002,7 @@ ${escapeText(this.code(index, length))}
|
|
|
48999
49002
|
class: "h-full w-full object-cover"
|
|
49000
49003
|
}, [
|
|
49001
49004
|
vue.createElementVNode("source", {
|
|
49002
|
-
src: `${(
|
|
49005
|
+
src: `${(_j = component.value) == null ? void 0 : _j.featured_image}#t=2`
|
|
49003
49006
|
}, null, 8, _hoisted_8$c)
|
|
49004
49007
|
], 512),
|
|
49005
49008
|
!isPlaying.value ? (vue.openBlock(), vue.createBlock(vue.unref(PlayButton), {
|
|
@@ -49009,7 +49012,7 @@ ${escapeText(this.code(index, length))}
|
|
|
49009
49012
|
})) : vue.createCommentVNode("", true)
|
|
49010
49013
|
])) : (vue.openBlock(), vue.createElementBlock("img", {
|
|
49011
49014
|
key: 1,
|
|
49012
|
-
src: (
|
|
49015
|
+
src: (_k = component.value) == null ? void 0 : _k.featured_image,
|
|
49013
49016
|
alt: "Feature Image",
|
|
49014
49017
|
class: "w-full h-full object-cover rounded-[24px]"
|
|
49015
49018
|
}, null, 8, _hoisted_9$c))
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="overflow-hidden mt-4">
|
|
3
|
-
<div class="max-w-[1640px] md:px-[120px] mx-auto w-full pt-4 mb-4 flex gap-16 items-center" :class="{'flex-row-reverse mt-6 !mb-10': section?.revert}">
|
|
4
|
-
<div class="max-w-[800px] py-4" :class="{'!max-w-full w-full': section?.is_full_width }" v-if="component?.title" ref="leftColumn">
|
|
5
|
-
<h3 class="text-[36px] text-gray-900 font-semibold">
|
|
3
|
+
<div class="max-w-[1640px] md:px-[120px] mx-auto w-full pt-4 mb-4 flex gap-16 items-center" :class="{'flex-row-reverse mt-6 !mb-10': section?.revert, 'justify-center': section?.center }">
|
|
4
|
+
<div class="max-w-[800px] py-4" :class="{'!max-w-full w-full': section?.is_full_width }" v-if="component?.title || component?.paragraph" ref="leftColumn">
|
|
5
|
+
<h3 class="text-[36px] text-gray-900 font-semibold" v-if="component?.title">
|
|
6
6
|
{{ component.title }}
|
|
7
7
|
</h3>
|
|
8
|
-
<div class="all-unset">
|
|
8
|
+
<div class="all-unset ql-editor">
|
|
9
9
|
<div v-html="component.paragraph"></div>
|
|
10
10
|
<div v-if="component?.hasOwnProperty('button') && button.show">
|
|
11
11
|
<a :href="button.url"
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
import {ref, onMounted, computed} from "vue";
|
|
41
41
|
import PlayButton from "@/assets/svg/play.svg";
|
|
42
42
|
import ArrowUpRight from "@/assets/img/icons/arrow-up-right.svg";
|
|
43
|
+
import "quill/dist/quill.snow.css";
|
|
43
44
|
|
|
44
45
|
const props = defineProps({
|
|
45
46
|
section: {
|