@myissue/vue-website-page-builder 3.3.98 → 3.4.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/README.md +45 -1
- package/dist/style.css +1 -1
- package/dist/vue-website-page-builder.js +12839 -12811
- package/dist/vue-website-page-builder.umd.cjs +84 -45
- package/package.json +1 -1
- package/src/Components/PageBuilder/EditorMenu/Editables/BackgroundColorEditor.vue +4 -4
- package/src/Components/PageBuilder/EditorMenu/Editables/EditGetElement.vue +5 -5
- package/src/Components/PageBuilder/EditorMenu/Editables/TextColorEditor.vue +4 -4
- package/src/Components/PageBuilder/EditorMenu/RightSidebarEditor.vue +75 -6
- package/src/Components/PageBuilder/ToolbarOption/ToolbarOption.vue +1 -1
- package/src/Components/PageBuilder/UndoRedo/UndoRedo.vue +27 -24
- package/src/Components/TipTap/TipTapInput.vue +1 -1
- package/src/PageBuilder/PageBuilder.vue +4 -4
- package/src/css/style.css +72 -26
- package/src/tests/DefaultComponents/DefaultBuilderComponents.vue +1 -1
package/package.json
CHANGED
|
@@ -46,11 +46,11 @@ watch(
|
|
|
46
46
|
>
|
|
47
47
|
<ListboxButton
|
|
48
48
|
v-if="globalPageLayout"
|
|
49
|
-
class="pbx-flex pbx-flex-row pbx-justify-between pbx-items-center pbx-pl-3 pbx-pr-3 pbx-py-5 pbx-cursor-pointer pbx-duration-200 hover:pbx-bg-myPrimaryLightGrayColor"
|
|
49
|
+
class="pbx-flex pbx-flex-row pbx-justify-between pbx-items-center pbx-pl-3 pbx-pr-3 pbx-py-5 pbx-cursor-pointer pbx-duration-200 hover:pbx-bg-myPrimaryLightGrayColor pbx-bg-white hover:pbx-text-black pbx-text-black pbx-font-sans pbx-font-medium"
|
|
50
50
|
>
|
|
51
51
|
<div class="pbx-flex pbx-justify-start pbx-items-center pbx-gap-2">
|
|
52
52
|
<div
|
|
53
|
-
class="pbx-aspect-square pbx-w-6 pbx-h-6 pbx-border pbx-border-gray-
|
|
53
|
+
class="pbx-aspect-square pbx-w-6 pbx-h-6 pbx-border pbx-border-gray-600 pbx-rounded-sm pbx-bg-none pbx-border-solid"
|
|
54
54
|
:class="`pbx-bg-${backgroundColor?.replace('pbx-bg-', '')}`"
|
|
55
55
|
></div>
|
|
56
56
|
<div>{{ translate('Background Color') }}</div>
|
|
@@ -61,7 +61,7 @@ watch(
|
|
|
61
61
|
|
|
62
62
|
<ListboxButton
|
|
63
63
|
v-if="!globalPageLayout"
|
|
64
|
-
class="pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-200 pbx-aspect-square hover:pbx-bg-gray-100 hover:pbx-fill-white focus-visible:pbx-ring-0"
|
|
64
|
+
class="pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-200 pbx-aspect-square hover:pbx-bg-gray-100 hover:pbx-fill-white focus-visible:pbx-ring-0 pbx-text-myPrimaryDarkGrayColor"
|
|
65
65
|
>
|
|
66
66
|
<div class="pbx-flex pbx-flex-col">
|
|
67
67
|
<div class="pbx-flex pbx-gap-2 pbx-items-center">
|
|
@@ -83,7 +83,7 @@ watch(
|
|
|
83
83
|
leave-to-class="pbx-opacity-0"
|
|
84
84
|
>
|
|
85
85
|
<ListboxOptions
|
|
86
|
-
class="pbx-absolute pbx-min-w-[12rem] pbx-z-40 pbx-mt-1 pbx-max-h-56 pbx-w-full pbx-overflow-auto pbx-rounded-md pbx-bg-gray-50 pbx-py-1 pbx-text-base pbx-shadow-lg pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 focus:pbx-outline-none sm:pbx-text-sm"
|
|
86
|
+
class="pbx-headless-dropdown pbx-absolute pbx-min-w-[12rem] pbx-z-40 pbx-mt-1 pbx-max-h-56 pbx-w-full pbx-overflow-auto pbx-rounded-md pbx-bg-gray-50 pbx-py-1 pbx-text-base pbx-shadow-lg pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 focus:pbx-outline-none sm:pbx-text-sm"
|
|
87
87
|
>
|
|
88
88
|
<ListboxOption
|
|
89
89
|
as="template"
|
|
@@ -268,7 +268,7 @@ const handleModalIframeSrc = function () {
|
|
|
268
268
|
<button
|
|
269
269
|
@click="handleModalIframeSrc"
|
|
270
270
|
type="button"
|
|
271
|
-
class="pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-200 pbx-aspect-square hover:pbx-bg-gray-100 hover:pbx-fill-white focus-visible:pbx-ring-0"
|
|
271
|
+
class="pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-200 pbx-aspect-square hover:pbx-bg-gray-100 hover:pbx-fill-white focus-visible:pbx-ring-0 pbx-text-myPrimaryDarkGrayColor"
|
|
272
272
|
>
|
|
273
273
|
<span class="material-symbols-outlined"> play_circle </span>
|
|
274
274
|
</button>
|
|
@@ -285,7 +285,7 @@ const handleModalIframeSrc = function () {
|
|
|
285
285
|
<button
|
|
286
286
|
@click="handleModalPreviewTiptap"
|
|
287
287
|
type="button"
|
|
288
|
-
class="pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-200 pbx-aspect-square hover:pbx-bg-gray-100 hover:pbx-fill-white focus-visible:pbx-ring-0"
|
|
288
|
+
class="pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-200 pbx-aspect-square hover:pbx-bg-gray-100 hover:pbx-fill-white focus-visible:pbx-ring-0 pbx-text-myPrimaryDarkGrayColor"
|
|
289
289
|
>
|
|
290
290
|
<span class="material-symbols-outlined"> edit </span>
|
|
291
291
|
</button>
|
|
@@ -305,7 +305,7 @@ const handleModalIframeSrc = function () {
|
|
|
305
305
|
<button
|
|
306
306
|
@click="handleAddImage"
|
|
307
307
|
type="button"
|
|
308
|
-
class="pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-200 pbx-aspect-square hover:pbx-bg-gray-100 hover:pbx-fill-white focus-visible:pbx-ring-0"
|
|
308
|
+
class="pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-200 pbx-aspect-square hover:pbx-bg-gray-100 hover:pbx-fill-white focus-visible:pbx-ring-0 pbx-text-myPrimaryDarkGrayColor"
|
|
309
309
|
>
|
|
310
310
|
<span class="material-symbols-outlined"> add_photo_alternate </span>
|
|
311
311
|
</button>
|
|
@@ -327,7 +327,7 @@ const handleModalIframeSrc = function () {
|
|
|
327
327
|
<button
|
|
328
328
|
@click="pageBuilderService.deleteElementFromDOM"
|
|
329
329
|
type="button"
|
|
330
|
-
class="pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-200 pbx-aspect-square hover:pbx-bg-gray-100 hover:pbx-fill-white focus-visible:pbx-ring-0"
|
|
330
|
+
class="pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-200 pbx-aspect-square hover:pbx-bg-gray-100 hover:pbx-fill-white focus-visible:pbx-ring-0 pbx-text-myPrimaryDarkGrayColor"
|
|
331
331
|
>
|
|
332
332
|
<span class="material-symbols-outlined"> delete </span>
|
|
333
333
|
</button>
|
|
@@ -335,7 +335,7 @@ const handleModalIframeSrc = function () {
|
|
|
335
335
|
|
|
336
336
|
<div
|
|
337
337
|
v-if="getElement && getComponent"
|
|
338
|
-
class="pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-200 pbx-aspect-square hover:pbx-bg-gray-100 hover:pbx-fill-white focus-visible:pbx-ring-0"
|
|
338
|
+
class="pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-200 pbx-aspect-square hover:pbx-bg-gray-100 hover:pbx-fill-white focus-visible:pbx-ring-0 pbx-text-myPrimaryDarkGrayColor"
|
|
339
339
|
@click="pageBuilderService.clearHtmlSelection()"
|
|
340
340
|
>
|
|
341
341
|
<span class="material-symbols-outlined"> close</span>
|
|
@@ -46,11 +46,11 @@ watch(
|
|
|
46
46
|
>
|
|
47
47
|
<ListboxButton
|
|
48
48
|
v-if="globalPageLayout"
|
|
49
|
-
class="pbx-flex pbx-flex-row pbx-justify-between pbx-items-center pbx-pl-3 pbx-pr-3 pbx-py-5 pbx-cursor-pointer pbx-duration-200 hover:pbx-bg-myPrimaryLightGrayColor"
|
|
49
|
+
class="pbx-flex pbx-flex-row pbx-justify-between pbx-items-center pbx-pl-3 pbx-pr-3 pbx-py-5 pbx-cursor-pointer pbx-duration-200 hover:pbx-bg-myPrimaryLightGrayColor pbx-bg-white hover:pbx-text-black pbx-text-black pbx-font-sans pbx-font-medium"
|
|
50
50
|
>
|
|
51
51
|
<div class="pbx-flex pbx-justify-start pbx-items-center pbx-gap-2">
|
|
52
52
|
<div
|
|
53
|
-
class="pbx-aspect-square pbx-w-6 pbx-h-6 pbx-border pbx-border-gray-
|
|
53
|
+
class="pbx-aspect-square pbx-w-6 pbx-h-6 pbx-border pbx-border-gray-600 pbx-rounded-sm pbx-bg-none pbx-border-solid"
|
|
54
54
|
:class="`pbx-bg-${textColor?.replace('pbx-text-', '')}`"
|
|
55
55
|
></div>
|
|
56
56
|
<div>
|
|
@@ -63,7 +63,7 @@ watch(
|
|
|
63
63
|
|
|
64
64
|
<ListboxButton
|
|
65
65
|
v-if="!globalPageLayout"
|
|
66
|
-
class="pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-200 pbx-aspect-square hover:pbx-bg-gray-100 hover:pbx-fill-white focus-visible:pbx-ring-0"
|
|
66
|
+
class="pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-200 pbx-aspect-square hover:pbx-bg-gray-100 hover:pbx-fill-white focus-visible:pbx-ring-0 pbx-text-myPrimaryDarkGrayColor"
|
|
67
67
|
>
|
|
68
68
|
<div class="pbx-flex pbx-flex-col">
|
|
69
69
|
<div class="pbx-flex pbx-gap-2 pbx-items-center">
|
|
@@ -85,7 +85,7 @@ watch(
|
|
|
85
85
|
leave-to-class="pbx-opacity-0"
|
|
86
86
|
>
|
|
87
87
|
<ListboxOptions
|
|
88
|
-
class="pbx-absolute pbx-min-w-[12rem] pbx-z-40 pbx-mt-1 pbx-max-h-56 pbx-w-full pbx-overflow-auto pbx-rounded-md pbx-bg-gray-50 pbx-py-1 pbx-text-base pbx-shadow-lg pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 focus:pbx-outline-none sm:pbx-text-sm"
|
|
88
|
+
class="pbx-headless-dropdown pbx-absolute pbx-min-w-[12rem] pbx-z-40 pbx-mt-1 pbx-max-h-56 pbx-w-full pbx-overflow-auto pbx-rounded-md pbx-bg-gray-50 pbx-py-1 pbx-text-base pbx-shadow-lg pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 focus:pbx-outline-none sm:pbx-text-sm"
|
|
89
89
|
>
|
|
90
90
|
<ListboxOption
|
|
91
91
|
as="template"
|
|
@@ -73,13 +73,68 @@ function onScroll() {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
// generate HTML
|
|
77
76
|
const generateHTML = function (filename, HTML) {
|
|
77
|
+
// Extract existing styles from the page
|
|
78
|
+
const existingStyles = Array.from(document.querySelectorAll('style, link[rel="stylesheet"]'))
|
|
79
|
+
.map((style) => {
|
|
80
|
+
if (style.tagName === 'STYLE') {
|
|
81
|
+
return style.outerHTML // Inline styles
|
|
82
|
+
} else if (style.tagName === 'LINK') {
|
|
83
|
+
return `<link rel="stylesheet" href="${style.href}">` // External stylesheets
|
|
84
|
+
}
|
|
85
|
+
return ''
|
|
86
|
+
})
|
|
87
|
+
.join('\n')
|
|
88
|
+
|
|
89
|
+
// Add your custom CSS
|
|
90
|
+
const customCSS = `
|
|
91
|
+
<style>
|
|
92
|
+
#pagebuilder blockquote,
|
|
93
|
+
#pagebuilder dl,
|
|
94
|
+
#pagebuilder dd,
|
|
95
|
+
#pagebuilder pre,
|
|
96
|
+
#pagebuilder hr,
|
|
97
|
+
#pagebuilder figure,
|
|
98
|
+
#pagebuilder p,
|
|
99
|
+
#pagebuilder h1,
|
|
100
|
+
#pagebuilder h2,
|
|
101
|
+
#pagebuilder h3,
|
|
102
|
+
#pagebuilder h4,
|
|
103
|
+
#pagebuilder h5,
|
|
104
|
+
#pagebuilder h6,
|
|
105
|
+
#pagebuilder ul,
|
|
106
|
+
#pagebuilder ol,
|
|
107
|
+
#pagebuilder li {
|
|
108
|
+
margin: 0;
|
|
109
|
+
padding: 0; /* Often useful for ul/ol too */
|
|
110
|
+
}
|
|
111
|
+
</style>
|
|
112
|
+
`
|
|
113
|
+
|
|
114
|
+
// Combine existing styles and custom CSS
|
|
115
|
+
const css = `${existingStyles}\n${customCSS}`
|
|
116
|
+
|
|
117
|
+
// Generate the full HTML
|
|
118
|
+
const fullHTML = `
|
|
119
|
+
<!DOCTYPE html>
|
|
120
|
+
<html lang="en">
|
|
121
|
+
<head>
|
|
122
|
+
<meta charset="UTF-8">
|
|
123
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
124
|
+
<title>Downloaded HTML</title>
|
|
125
|
+
${css}
|
|
126
|
+
</head>
|
|
127
|
+
<body>
|
|
128
|
+
<div id="pagebuilder" class="pbx-font-sans pbx-text-black">
|
|
129
|
+
${HTML}
|
|
130
|
+
</div>
|
|
131
|
+
</body>
|
|
132
|
+
</html>
|
|
133
|
+
`
|
|
134
|
+
|
|
135
|
+
// Create and trigger the download
|
|
78
136
|
const element = document.createElement('a')
|
|
79
|
-
element.setAttribute(
|
|
80
|
-
'href',
|
|
81
|
-
'data:text/html;charset=utf-8,' + encodeURIComponent(fullHTMLContent(HTML)),
|
|
82
|
-
)
|
|
137
|
+
element.setAttribute('href', 'data:text/html;charset=utf-8,' + encodeURIComponent(fullHTML))
|
|
83
138
|
element.setAttribute('download', filename)
|
|
84
139
|
|
|
85
140
|
element.style.display = 'none'
|
|
@@ -96,7 +151,21 @@ const handleDownloadHTML = function () {
|
|
|
96
151
|
return
|
|
97
152
|
}
|
|
98
153
|
|
|
99
|
-
|
|
154
|
+
// Extract clean HTML
|
|
155
|
+
let html = extractCleanHTMLFromPageBuilder(pagebuilder)
|
|
156
|
+
|
|
157
|
+
// Create a temporary DOM element to manipulate the HTML
|
|
158
|
+
const tempDiv = document.createElement('div')
|
|
159
|
+
tempDiv.innerHTML = html
|
|
160
|
+
|
|
161
|
+
// Remove 'hovered' and 'selected' attributes
|
|
162
|
+
tempDiv.querySelectorAll('[hovered], [selected]').forEach((el) => {
|
|
163
|
+
el.removeAttribute('hovered')
|
|
164
|
+
el.removeAttribute('selected')
|
|
165
|
+
})
|
|
166
|
+
|
|
167
|
+
// Get the cleaned HTML back
|
|
168
|
+
html = tempDiv.innerHTML
|
|
100
169
|
|
|
101
170
|
generateHTML('downloaded_html.html', html)
|
|
102
171
|
}
|
|
@@ -97,7 +97,7 @@ const openHTMLSettings = function () {
|
|
|
97
97
|
<div class="pbx-mr-2">
|
|
98
98
|
<!-- User No image Start-->
|
|
99
99
|
<div
|
|
100
|
-
class="pbx-flex pbx-items-center pbx-myPrimaryTag pbx-whitespace-nowrap pbx-py-0"
|
|
100
|
+
class="pbx-flex pbx-items-center pbx-myPrimaryTag pbx-whitespace-nowrap pbx-py-0 pbx-gap-2"
|
|
101
101
|
v-if="
|
|
102
102
|
getPageBuilderConfig &&
|
|
103
103
|
getPageBuilderConfig.userForPageBuilder &&
|
|
@@ -51,18 +51,20 @@ const handleRedo = async function () {
|
|
|
51
51
|
class="pbx-flex-1 pbx-flex pbx-justify-center pbx-items-center pbx-py-2 pbx-w-full gap-1"
|
|
52
52
|
>
|
|
53
53
|
<!-- Undo Start -->
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
54
|
+
|
|
55
|
+
<div
|
|
56
|
+
@click="handleUndo"
|
|
57
|
+
type="button"
|
|
58
|
+
class="pbx-h-10 pbx-w-10 pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-50 pbx-aspect-square pbx-text-black hover:pbx-text-white"
|
|
59
|
+
:class="[
|
|
60
|
+
canUndo
|
|
61
|
+
? 'pbx-cursor-pointer hover:pbx-bg-myPrimaryLinkColor focus-visible:pbx-ring-0'
|
|
62
|
+
: 'pbx-cursor-not-allowed pbx-bg-opacity-20 hover:pbx-bg-gray-200',
|
|
63
|
+
]"
|
|
64
|
+
>
|
|
65
|
+
<span class="material-symbols-outlined"> undo </span>
|
|
66
|
+
</div>
|
|
67
|
+
|
|
66
68
|
<!-- Undo End -->
|
|
67
69
|
<div
|
|
68
70
|
class="pbx-text-xs pbx-text-gray-600 pbx-mx-2 pbx-py-3 pbx-px-2 pbx-border-solid pbx-border pbx-border-gray-200 pbx-rounded-full"
|
|
@@ -70,18 +72,19 @@ const handleRedo = async function () {
|
|
|
70
72
|
{{ historyIndex + 1 }}/{{ historyLength }}
|
|
71
73
|
</div>
|
|
72
74
|
<!-- Redo Start -->
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
</
|
|
84
|
-
</
|
|
75
|
+
|
|
76
|
+
<div
|
|
77
|
+
@click="handleRedo"
|
|
78
|
+
class="pbx-h-10 pbx-w-10 pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-50 pbx-aspect-square pbx-text-black hover:pbx-text-white"
|
|
79
|
+
:class="[
|
|
80
|
+
canRedo
|
|
81
|
+
? 'pbx-cursor-pointer hover:pbx-bg-myPrimaryLinkColor focus-visible:pbx-ring-0'
|
|
82
|
+
: 'pbx-cursor-not-allowed pbx-bg-opacity-20 hover:pbx-bg-gray-200',
|
|
83
|
+
]"
|
|
84
|
+
>
|
|
85
|
+
<span class="material-symbols-outlined"> redo </span>
|
|
86
|
+
</div>
|
|
87
|
+
|
|
85
88
|
<!-- Redo End -->
|
|
86
89
|
</div>
|
|
87
90
|
</template>
|
|
@@ -224,7 +224,7 @@ onMounted(() => {
|
|
|
224
224
|
<div v-if="pageBuilderService.isSelectedElementValidText() && editor">
|
|
225
225
|
<div class="pbx-relative pbx-rounded-lg">
|
|
226
226
|
<div
|
|
227
|
-
class="pbx-flex pbx-justify-between pbx-myPrimaryGap pbx-items-center pbx-
|
|
227
|
+
class="pbx-flex pbx-justify-between pbx-myPrimaryGap pbx-items-center pbx-pb-2 pbx-mb-2 pbx-px-4 pbx-overflow-x-auto pbx-border-0 pbx-border-b pbx-border-solid pbx-border-gray-200"
|
|
228
228
|
>
|
|
229
229
|
<div>
|
|
230
230
|
<div>
|
|
@@ -761,7 +761,7 @@ onMounted(async () => {
|
|
|
761
761
|
>
|
|
762
762
|
<select
|
|
763
763
|
id="pbx-lang"
|
|
764
|
-
class="pbx-myPrimarySelect pbx-min-w-
|
|
764
|
+
class="pbx-myPrimarySelect pbx-min-w-24"
|
|
765
765
|
v-model="languageSelction"
|
|
766
766
|
>
|
|
767
767
|
<template
|
|
@@ -879,11 +879,11 @@ onMounted(async () => {
|
|
|
879
879
|
|
|
880
880
|
<div id="pagebuilder" class="pbx-text-black pbx-font-sans">
|
|
881
881
|
<template v-for="component in getComponents" :key="component.id">
|
|
882
|
-
<
|
|
882
|
+
<div
|
|
883
883
|
v-if="component.html_code"
|
|
884
884
|
v-html="component.html_code"
|
|
885
885
|
@mouseup="handleSelectComponent(component)"
|
|
886
|
-
></
|
|
886
|
+
></div>
|
|
887
887
|
</template>
|
|
888
888
|
</div>
|
|
889
889
|
</main>
|
|
@@ -1003,7 +1003,7 @@ onMounted(async () => {
|
|
|
1003
1003
|
box-shadow: none !important;
|
|
1004
1004
|
background: #fff;
|
|
1005
1005
|
min-height: 25rem;
|
|
1006
|
-
border-bottom: 1px solid #
|
|
1006
|
+
border-bottom: 1px solid #f1f1f1;
|
|
1007
1007
|
padding: 0px 0px 10px 16px;
|
|
1008
1008
|
margin-bottom: 20px;
|
|
1009
1009
|
padding-bottom: 100px;
|
package/src/css/style.css
CHANGED
|
@@ -314,11 +314,8 @@
|
|
|
314
314
|
@apply pbx-my-0 pbx-block pbx-text-sm pbx-font-normal pbx-text-myPrimaryDarkGrayColor pbx-text-left pbx-mb-2;
|
|
315
315
|
}
|
|
316
316
|
|
|
317
|
-
.pbx-myPrimaryFormFocus {
|
|
318
|
-
@apply focus:pbx-ring-2 focus:pbx-ring-myPrimaryLinkColor focus:pbx-ring-offset-2 focus:pbx-border focus:pbx-border-gray-200;
|
|
319
|
-
}
|
|
320
317
|
.pbx-myPrimaryInput {
|
|
321
|
-
@apply pbx-block pbx-pr-8 pbx-text-left pbx-bg-white pbx-w-auto sm:pbx-text-sm pbx-font-normal pbx-text-myPrimaryDarkGrayColor placeholder:pbx-font-normal placeholder:pbx-accent-gray-300 focus:pbx-bg-white pbx-rounded-md pbx-py-3 pbx-px-3 pbx-border pbx-border-gray-300 pbx-shadow-sm focus:pbx-outline-none pbx-
|
|
318
|
+
@apply pbx-block pbx-pr-8 pbx-text-left pbx-bg-white pbx-w-auto sm:pbx-text-sm pbx-font-normal pbx-text-myPrimaryDarkGrayColor placeholder:pbx-font-normal placeholder:pbx-accent-gray-300 focus:pbx-bg-white pbx-rounded-md pbx-py-3 pbx-px-3 pbx-border pbx-border-gray-300 pbx-shadow-sm focus:pbx-outline-none pbx-h-full pbx-border-solid pbx-font-sans;
|
|
322
319
|
}
|
|
323
320
|
.pbx-myPrimaryInputNoBorder {
|
|
324
321
|
@apply pbx-myPrimaryInput placeholder:pbx-accent-gray-300 focus:pbx-bg-none pbx-rounded-md pbx-py-3 pbx-px-3 pbx-border-none focus:pbx-outline-none focus:pbx-ring-0 focus:pbx-ring-offset-0 focus:pbx-border-none pbx-shadow-none;
|
|
@@ -358,20 +355,6 @@
|
|
|
358
355
|
}
|
|
359
356
|
}
|
|
360
357
|
|
|
361
|
-
#page-builder-editor ol,
|
|
362
|
-
#page-builder-editor-editable-area ol,
|
|
363
|
-
#page-builder-editor ul,
|
|
364
|
-
#page-builder-editor-editable-area ul {
|
|
365
|
-
list-style: disc !important;
|
|
366
|
-
padding: 0 0 0 1rem;
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
#page-builder-editor li,
|
|
370
|
-
#page-builder-editor-editable-area li {
|
|
371
|
-
line-height: 1.2;
|
|
372
|
-
margin-left: 1em; /* Adjust this value as needed */
|
|
373
|
-
}
|
|
374
|
-
|
|
375
358
|
#pbxEditToolbar {
|
|
376
359
|
opacity: 0;
|
|
377
360
|
pointer-events: none;
|
|
@@ -471,14 +454,6 @@
|
|
|
471
454
|
font-weight: 500;
|
|
472
455
|
}
|
|
473
456
|
|
|
474
|
-
#page-builder-editor ol,
|
|
475
|
-
#pagebuilder ol,
|
|
476
|
-
#page-builder-editor ul,
|
|
477
|
-
#pagebuilder ul {
|
|
478
|
-
list-style: disc !important;
|
|
479
|
-
padding: 0rem;
|
|
480
|
-
}
|
|
481
|
-
|
|
482
457
|
.pbx-reorder-highlight {
|
|
483
458
|
animation: pbx-reorder-flash 0.4s ease-in-out;
|
|
484
459
|
}
|
|
@@ -500,3 +475,74 @@
|
|
|
500
475
|
|
|
501
476
|
.pbx-sibling-highlight {
|
|
502
477
|
}
|
|
478
|
+
|
|
479
|
+
.pbx-myPrimaryInput,
|
|
480
|
+
.pbx-myPrimarySelect {
|
|
481
|
+
appearance: none;
|
|
482
|
+
-webkit-appearance: none;
|
|
483
|
+
-moz-appearance: none;
|
|
484
|
+
|
|
485
|
+
background-repeat: no-repeat;
|
|
486
|
+
background-size: 1rem;
|
|
487
|
+
padding-right: 1rem;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
.pbx-myPrimaryInput:focus,
|
|
491
|
+
.pbx-myPrimarySelect:focus {
|
|
492
|
+
--tw-ring-inset: inset;
|
|
493
|
+
--tw-ring-opacity: 1;
|
|
494
|
+
/* Use the hex color with opacity variable */
|
|
495
|
+
--tw-ring-color: rgba(22, 163, 74, var(--tw-ring-opacity, 1));
|
|
496
|
+
|
|
497
|
+
--tw-ring-shadow: 0 0 0 4px var(--tw-ring-color);
|
|
498
|
+
|
|
499
|
+
--tw-ring-offset-width: 2px;
|
|
500
|
+
--tw-ring-offset-color: white;
|
|
501
|
+
--tw-ring-offset-shadow: 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
502
|
+
|
|
503
|
+
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow);
|
|
504
|
+
border: 1px #dee6f0 solid;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
#pagebuilder blockquote,
|
|
508
|
+
#pagebuilder dl,
|
|
509
|
+
#pagebuilder dd,
|
|
510
|
+
#pagebuilder pre,
|
|
511
|
+
#pagebuilder hr,
|
|
512
|
+
#pagebuilder figure,
|
|
513
|
+
#pagebuilder p,
|
|
514
|
+
#pagebuilder h1,
|
|
515
|
+
#pagebuilder h2,
|
|
516
|
+
#pagebuilder h3,
|
|
517
|
+
#pagebuilder h4,
|
|
518
|
+
#pagebuilder h5,
|
|
519
|
+
#pagebuilder h6,
|
|
520
|
+
#pagebuilder ul,
|
|
521
|
+
#pagebuilder ol,
|
|
522
|
+
#pagebuilder li {
|
|
523
|
+
margin: 0;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
#page-builder-editor ol,
|
|
527
|
+
#pagebuilder ol,
|
|
528
|
+
#page-builder-editor ul,
|
|
529
|
+
#pagebuilder ul {
|
|
530
|
+
list-style: disc !important;
|
|
531
|
+
padding: 1rem 0 0 1rem;
|
|
532
|
+
margin-left: 1em;
|
|
533
|
+
line-height: 1.2;
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
#page-builder-editor ol,
|
|
537
|
+
#page-builder-editor-editable-area ol,
|
|
538
|
+
#page-builder-editor ul,
|
|
539
|
+
#page-builder-editor-editable-area ul {
|
|
540
|
+
list-style: disc !important;
|
|
541
|
+
padding: 1rem 0 0 1rem;
|
|
542
|
+
line-height: 1.2;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
.pbx-headless-dropdown {
|
|
546
|
+
list-style: none;
|
|
547
|
+
padding: 0;
|
|
548
|
+
}
|
|
@@ -163,7 +163,7 @@ const getSvgPreview = (title: string) => {
|
|
|
163
163
|
@click="handleDropComponent(convertToComponentObject(comp))"
|
|
164
164
|
>
|
|
165
165
|
<div
|
|
166
|
-
class="pbx-overflow-hidden pbx-whitespace-pre-line pbx-flex-1 pbx-h-auto pbx-border-solid pbx-border-b pbx-border-gray-200 lg:pbx-py-10 pbx-py-8 pbx-px-2"
|
|
166
|
+
class="pbx-overflow-hidden pbx-whitespace-pre-line pbx-flex-1 pbx-h-auto pbx-border-0 pbx-border-solid pbx-border-b pbx-border-gray-200 lg:pbx-py-10 pbx-py-8 pbx-px-2"
|
|
167
167
|
>
|
|
168
168
|
<!-- Use SVG preview instead of external images -->
|
|
169
169
|
<div
|