@dcodegroup-au/page-builder 0.5.5 → 0.5.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/page-builder.css +3283 -2
- package/dist/page-builder.es.js +28871 -19356
- package/dist/page-builder.umd.js +50240 -65
- package/package.json +1 -1
- package/src/components/LinkCardEdit.vue +2 -2
- package/src/components/builders/Header.vue +1 -1
- package/src/components/presenters/modules/LinkCard.vue +1 -1
- package/src/components/presenters/modules/Paragraph.vue +12 -4
- package/vite.config.js +1 -0
package/package.json
CHANGED
|
@@ -137,8 +137,8 @@ const close = () => {
|
|
|
137
137
|
|
|
138
138
|
const descriptionWordCount = computed(() => {
|
|
139
139
|
const plainText = form.value.description?.replace(/<[^>]*>/g, ' ').trim();
|
|
140
|
-
const words = plainText
|
|
141
|
-
return words
|
|
140
|
+
const words = plainText?.split(/\s+/).filter(word => word.length > 0);
|
|
141
|
+
return words?.length ?? 0;
|
|
142
142
|
});
|
|
143
143
|
|
|
144
144
|
</script>
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
:label-text="dataRef?.supporting_text_label ?? 'Supporting Text *'"
|
|
41
41
|
class="w-full mb-4"
|
|
42
42
|
:value="dataRef.supporting_text"
|
|
43
|
-
:limit="dataRef.supporting_text_max_length ?? 500"
|
|
43
|
+
:limit="dataRef?.is_editor ? null : (dataRef.supporting_text_max_length ?? 500)"
|
|
44
44
|
>
|
|
45
45
|
<QuillEditor v-if="dataRef?.is_editor" v-model="dataRef.supporting_text"/>
|
|
46
46
|
<textarea
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
<IconComponent :icon="data.icon" icon-classes="w-5 h-5" :key="index"></IconComponent>
|
|
21
21
|
</div>
|
|
22
22
|
<h1 class="text-[20px] font-semibold text-gray-900">{{ data.title }}</h1>
|
|
23
|
-
<div class="text-lg text-gray-600 mt-2 leading-[24px]" v-html="data.description"></div>
|
|
23
|
+
<div class="text-lg text-gray-600 mt-2 leading-[24px]" v-if="data?.description" v-html="data.description"></div>
|
|
24
24
|
<a
|
|
25
25
|
v-if="data?.primary_button.show && data.primary_button.url"
|
|
26
26
|
class="text-brand-700 inline-flex gap-1.5 items-center font-semibold text-base mt-4"
|
|
@@ -1,7 +1,7 @@
|
|
|
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">
|
|
4
|
-
<div class="max-w-[800px]" v-if="section.components[0]?.title">
|
|
3
|
+
<div class="max-w-[1640px] md:px-[120px] mx-auto w-full pt-4 mb-4 flex gap-16 items-center">
|
|
4
|
+
<div class="max-w-[800px] py-4" v-if="section.components[0]?.title" ref="leftColumn">
|
|
5
5
|
<h3 class="text-[36px] text-gray-900 font-semibold">
|
|
6
6
|
{{ section.components[0].title }}
|
|
7
7
|
</h3>
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<div v-html="section.components[0].paragraph"></div>
|
|
10
10
|
</div>
|
|
11
11
|
</div>
|
|
12
|
-
<div class="w-full rounded-[24px]" v-if="section.components[0]?.featured_image">
|
|
12
|
+
<div class="w-full rounded-[24px]" v-if="section.components[0]?.featured_image" ref="rightColumn">
|
|
13
13
|
<img :src="section.components[0]?.featured_image" alt="Feature Image" class="w-full h-full object-cover rounded-[24px]"/>
|
|
14
14
|
</div>
|
|
15
15
|
</div>
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
</template>
|
|
18
18
|
|
|
19
19
|
<script setup>
|
|
20
|
-
import {ref} from "vue";
|
|
20
|
+
import {ref, onMounted} from "vue";
|
|
21
21
|
|
|
22
22
|
const props = defineProps({
|
|
23
23
|
section: {
|
|
@@ -26,6 +26,14 @@ const props = defineProps({
|
|
|
26
26
|
},
|
|
27
27
|
});
|
|
28
28
|
|
|
29
|
+
const leftColumn = ref(null);
|
|
30
|
+
const rightColumn = ref(null);
|
|
31
|
+
|
|
29
32
|
const section = ref(props.section);
|
|
30
33
|
|
|
34
|
+
onMounted(() => {
|
|
35
|
+
if (leftColumn.value && rightColumn.value) {
|
|
36
|
+
rightColumn.value.style.height = `${leftColumn.value.offsetHeight}px`;
|
|
37
|
+
}
|
|
38
|
+
});
|
|
31
39
|
</script>
|