@myissue/vue-website-page-builder 3.4.2 → 3.4.5
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/style.css +1 -1
- package/dist/vue-website-page-builder.js +33 -40
- package/dist/vue-website-page-builder.umd.cjs +8 -8
- package/package.json +1 -1
- package/src/Components/PageBuilder/EditorMenu/Editables/BackgroundColorEditor.vue +1 -1
- package/src/Components/PageBuilder/EditorMenu/Editables/Borders.vue +0 -5
- package/src/Components/PageBuilder/EditorMenu/Editables/ComponentTopMenu.vue +2 -2
- package/src/Components/PageBuilder/EditorMenu/Editables/ManageBackgroundOpacity.vue +0 -5
- package/src/Components/PageBuilder/EditorMenu/Editables/ManageOpacity.vue +0 -5
- package/src/Components/PageBuilder/EditorMenu/Editables/TextColorEditor.vue +1 -1
- package/src/Components/PageBuilder/EditorMenu/EditorAccordion.vue +5 -1
- package/src/Components/PageBuilder/EditorMenu/RightSidebarEditor.vue +1 -1
- package/src/Components/TipTap/TipTapInput.vue +8 -8
- package/src/css/style.css +25 -14
- package/src/tests/TestComponents/DemoUnsplash.vue +5 -5
- package/src/tests/componentsArray.test.json +1 -1
package/package.json
CHANGED
|
@@ -46,7 +46,7 @@ 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 pbx-bg-white hover:pbx-text-black pbx-text-black pbx-font-sans pbx-font-medium"
|
|
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 pbx-border-0"
|
|
50
50
|
>
|
|
51
51
|
<div class="pbx-flex pbx-justify-start pbx-items-center pbx-gap-2">
|
|
52
52
|
<div
|
|
@@ -121,11 +121,6 @@ watch(
|
|
|
121
121
|
></div>
|
|
122
122
|
<span class="pbx-block pbx-truncate">{{ borderColor }}</span>
|
|
123
123
|
</span>
|
|
124
|
-
<span
|
|
125
|
-
class="pbx-pointer-events-none pbx-absolute pbx-inset-y-0 pbx-right-0 pbx-ml-3 pbx-flex pbx-items-center pbx-pr-2"
|
|
126
|
-
>
|
|
127
|
-
<span class="material-symbols-outlined"> keyboard_arrow_down </span>
|
|
128
|
-
</span>
|
|
129
124
|
</ListboxButton>
|
|
130
125
|
|
|
131
126
|
<transition
|
|
@@ -85,7 +85,7 @@ const handleDelete = function () {
|
|
|
85
85
|
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"
|
|
86
86
|
:class="[
|
|
87
87
|
canMoveUp
|
|
88
|
-
? 'hover:pbx-bg-myPrimaryLinkColor hover:pbx-text-white focus-visible:pbx-ring-0'
|
|
88
|
+
? 'hover:pbx-bg-myPrimaryLinkColor hover:pbx-text-white focus-visible:pbx-ring-0 pbx-cursor-pointer'
|
|
89
89
|
: 'pbx-cursor-not-allowed pbx-bg-opacity-20 hover:pbx-bg-gray-200',
|
|
90
90
|
]"
|
|
91
91
|
>
|
|
@@ -98,7 +98,7 @@ const handleDelete = function () {
|
|
|
98
98
|
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"
|
|
99
99
|
:class="[
|
|
100
100
|
canMoveDown
|
|
101
|
-
? 'hover:pbx-bg-myPrimaryLinkColor hover:pbx-text-white focus-visible:pbx-ring-0'
|
|
101
|
+
? 'hover:pbx-bg-myPrimaryLinkColor hover:pbx-text-white focus-visible:pbx-ring-0 pbx-cursor-pointer'
|
|
102
102
|
: 'pbx-cursor-not-allowed pbx-bg-opacity-20 hover:pbx-bg-gray-200',
|
|
103
103
|
]"
|
|
104
104
|
>
|
|
@@ -54,11 +54,6 @@ watch(
|
|
|
54
54
|
opacityVueModel === 'none' ? 'Transparent' : opacityVueModel
|
|
55
55
|
}}</span>
|
|
56
56
|
</span>
|
|
57
|
-
<span
|
|
58
|
-
class="pbx-pointer-events-none pbx-absolute pbx-inset-y-0 pbx-right-0 pbx-ml-3 pbx-flex pbx-items-center pbx-pr-2"
|
|
59
|
-
>
|
|
60
|
-
<span class="material-symbols-outlined"> keyboard_arrow_down </span>
|
|
61
|
-
</span>
|
|
62
57
|
</ListboxButton>
|
|
63
58
|
|
|
64
59
|
<transition
|
|
@@ -53,11 +53,6 @@ watch(
|
|
|
53
53
|
opacityVueModel === 'none' ? 'Transparent' : opacityVueModel
|
|
54
54
|
}}</span>
|
|
55
55
|
</span>
|
|
56
|
-
<span
|
|
57
|
-
class="pbx-pointer-events-none pbx-absolute pbx-inset-y-0 pbx-right-0 pbx-ml-3 pbx-flex pbx-items-center pbx-pr-2"
|
|
58
|
-
>
|
|
59
|
-
<span class="material-symbols-outlined"> keyboard_arrow_down </span>
|
|
60
|
-
</span>
|
|
61
56
|
</ListboxButton>
|
|
62
57
|
|
|
63
58
|
<transition
|
|
@@ -46,7 +46,7 @@ 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 pbx-bg-white hover:pbx-text-black pbx-text-black pbx-font-sans pbx-font-medium"
|
|
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 pbx-border-0"
|
|
50
50
|
>
|
|
51
51
|
<div class="pbx-flex pbx-justify-start pbx-items-center pbx-gap-2">
|
|
52
52
|
<div
|
|
@@ -19,7 +19,11 @@
|
|
|
19
19
|
</template>
|
|
20
20
|
</div>
|
|
21
21
|
<div
|
|
22
|
-
:class="[
|
|
22
|
+
:class="[
|
|
23
|
+
expanded
|
|
24
|
+
? 'pbx-block pbx-bg-indigo-50 pbx-border-0 pbx-border-solid pbx-border-t pbx-border-red-50'
|
|
25
|
+
: 'pbx-hidden',
|
|
26
|
+
]"
|
|
23
27
|
class="pbx-px-4 pbx-ease-linear pbx-duration-75 pbx-pb-8"
|
|
24
28
|
>
|
|
25
29
|
<slot name="content" />
|
|
@@ -308,7 +308,7 @@ const handleCloseGlobalPageStyles = async function () {
|
|
|
308
308
|
:title="translate('Global Page Styles')"
|
|
309
309
|
@closeMainModalBuilder="handleCloseGlobalPageStyles"
|
|
310
310
|
>
|
|
311
|
-
<div class="pbx-flex pbx-flex-col pbx-gap-2 pbx-pt-4 pbx-pb-2">
|
|
311
|
+
<div id="pagebuilder-right-menu" class="pbx-flex pbx-flex-col pbx-gap-2 pbx-pt-4 pbx-pb-2">
|
|
312
312
|
<div v-if="isLoadingPageStyles">
|
|
313
313
|
<div class="pbx-flex pbx-items-center pbx-my-2 pbx-py-4 pbx-px-2 pbx-justify-center">
|
|
314
314
|
<div
|
|
@@ -204,7 +204,7 @@ onMounted(() => {
|
|
|
204
204
|
><span>{{ translate('Enter URL') }}</span></label
|
|
205
205
|
><input
|
|
206
206
|
v-model="urlEnteret"
|
|
207
|
-
class="pbx-myPrimaryInput pbx-mt-1"
|
|
207
|
+
class="pbx-myPrimaryInput pbx-mt-1 pbx-w-full"
|
|
208
208
|
type="url"
|
|
209
209
|
placeholder="url"
|
|
210
210
|
/>
|
|
@@ -234,7 +234,7 @@ onMounted(() => {
|
|
|
234
234
|
<button
|
|
235
235
|
@click="pageBuilderService.toggleTipTapModal(false)"
|
|
236
236
|
type="button"
|
|
237
|
-
class="pbx-myPrimaryTag"
|
|
237
|
+
class="pbx-myPrimaryTag pbx-cursor-pointer"
|
|
238
238
|
>
|
|
239
239
|
<span class="material-symbols-outlined"> save </span>
|
|
240
240
|
<span>{{ translate('Save') }}</span>
|
|
@@ -249,7 +249,7 @@ onMounted(() => {
|
|
|
249
249
|
<button
|
|
250
250
|
@click="editor.chain().focus().setHardBreak().run()"
|
|
251
251
|
type="button"
|
|
252
|
-
class="pbx-myPrimaryTag"
|
|
252
|
+
class="pbx-myPrimaryTag pbx-cursor-pointer"
|
|
253
253
|
>
|
|
254
254
|
<span class="material-symbols-outlined"> keyboard_return </span>
|
|
255
255
|
<span>{{ translate('Line break') }}</span>
|
|
@@ -260,7 +260,7 @@ onMounted(() => {
|
|
|
260
260
|
<button
|
|
261
261
|
@click="editor.chain().focus().toggleBold().run()"
|
|
262
262
|
type="button"
|
|
263
|
-
class="pbx-myPrimaryTag"
|
|
263
|
+
class="pbx-myPrimaryTag pbx-cursor-pointer"
|
|
264
264
|
:class="{ 'pbx-bg-myPrimaryLinkColor pbx-text-white': editor.isActive('bold') }"
|
|
265
265
|
>
|
|
266
266
|
<span class="material-symbols-outlined"> format_bold </span>
|
|
@@ -272,7 +272,7 @@ onMounted(() => {
|
|
|
272
272
|
<button
|
|
273
273
|
@click="handleURL"
|
|
274
274
|
type="button"
|
|
275
|
-
class="pbx-myPrimaryTag"
|
|
275
|
+
class="pbx-myPrimaryTag pbx-cursor-pointer"
|
|
276
276
|
:class="{ 'pbx-bg-myPrimaryLinkColor pbx-text-white': editor.isActive('link') }"
|
|
277
277
|
>
|
|
278
278
|
<span class="material-symbols-outlined"> link </span>
|
|
@@ -284,7 +284,7 @@ onMounted(() => {
|
|
|
284
284
|
<button
|
|
285
285
|
@click="editor.chain().focus().toggleHeading({ level: 2 }).run()"
|
|
286
286
|
type="button"
|
|
287
|
-
class="pbx-myPrimaryTag"
|
|
287
|
+
class="pbx-myPrimaryTag pbx-cursor-pointer"
|
|
288
288
|
:class="{
|
|
289
289
|
'pbx-bg-myPrimaryLinkColor pbx-text-white': editor.isActive('heading', {
|
|
290
290
|
level: 2,
|
|
@@ -300,7 +300,7 @@ onMounted(() => {
|
|
|
300
300
|
<button
|
|
301
301
|
@click="editor.chain().focus().toggleHeading({ level: 3 }).run()"
|
|
302
302
|
type="button"
|
|
303
|
-
class="pbx-myPrimaryTag"
|
|
303
|
+
class="pbx-myPrimaryTag pbx-cursor-pointer"
|
|
304
304
|
:class="{
|
|
305
305
|
'pbx-bg-myPrimaryLinkColor pbx-text-white': editor.isActive('heading', {
|
|
306
306
|
level: 3,
|
|
@@ -316,7 +316,7 @@ onMounted(() => {
|
|
|
316
316
|
<button
|
|
317
317
|
@click="editor.chain().focus().toggleBulletList().run()"
|
|
318
318
|
type="button"
|
|
319
|
-
class="pbx-myPrimaryTag"
|
|
319
|
+
class="pbx-myPrimaryTag pbx-cursor-pointer"
|
|
320
320
|
:class="{
|
|
321
321
|
'pbx-bg-myPrimaryLinkColor pbx-text-white': editor.isActive('bulletList'),
|
|
322
322
|
}"
|
package/src/css/style.css
CHANGED
|
@@ -315,23 +315,13 @@
|
|
|
315
315
|
}
|
|
316
316
|
|
|
317
317
|
.pbx-myPrimaryInput {
|
|
318
|
-
@apply pbx-
|
|
319
|
-
}
|
|
320
|
-
.pbx-myPrimaryInputNoBorder {
|
|
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;
|
|
322
|
-
}
|
|
323
|
-
.pbx-myPrimaryInputReadonly {
|
|
324
|
-
@apply pbx-myPrimaryInput pbx-bg-gray-50 focus:pbx-ring-0 focus:pbx-bg-myPrimaryLightGrayColor focus:pbx-border-myPrimaryMediumGrayColor;
|
|
318
|
+
@apply pbx-w-full pbx-font-sans;
|
|
325
319
|
}
|
|
326
320
|
|
|
327
321
|
.pbx-myPrimaryInputError {
|
|
328
322
|
@apply pbx-mt-1 pbx-myPrimaryParagraph pbx-block pbx-font-normal pbx-text-myPrimaryErrorColor pbx-text-left pbx-text-sm;
|
|
329
323
|
}
|
|
330
324
|
|
|
331
|
-
.pbx-myPrimaryHiddenInputField {
|
|
332
|
-
@apply pbx-px-0;
|
|
333
|
-
}
|
|
334
|
-
|
|
335
325
|
.pbx-myPrimaryTextArea {
|
|
336
326
|
@apply pbx-block pbx-w-full sm:pbx-text-sm pbx-font-normal pbx-text-myPrimaryDarkGrayColor placeholder:pbx-font-normal placeholder:pbx-accent-gray-400 pbx-bg-gray-50 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 focus:pbx-ring-2 focus:pbx-ring-myPrimaryLinkColor focus:pbx-border-transparent;
|
|
337
327
|
}
|
|
@@ -341,7 +331,7 @@
|
|
|
341
331
|
}
|
|
342
332
|
|
|
343
333
|
.pbx-myPrimarySelect {
|
|
344
|
-
@apply pbx-
|
|
334
|
+
@apply pbx-myPrimaryInput;
|
|
345
335
|
}
|
|
346
336
|
.pbx-myPrimaryFakeSelect {
|
|
347
337
|
@apply hover:pbx-ring-myPrimaryLinkColor pbx-border pbx-border-gray-300 pbx-flex pbx-flex-row pbx-justify-between pbx-items-center pbx-myPrimaryGap pbx-py-2.5 pbx-pl-3 pbx-pr-1 pbx-cursor-pointer hover:pbx-border-transparent hover:pbx-ring-2 pbx-rounded-md;
|
|
@@ -478,9 +468,24 @@
|
|
|
478
468
|
|
|
479
469
|
.pbx-myPrimaryInput,
|
|
480
470
|
.pbx-myPrimarySelect {
|
|
471
|
+
border: 1px solid #e9e9e9;
|
|
472
|
+
padding: 0.40625rem 0.625rem;
|
|
473
|
+
padding-right: 1.75rem;
|
|
474
|
+
font-size: 0.875rem;
|
|
475
|
+
border-radius: 0.5rem;
|
|
476
|
+
cursor: pointer;
|
|
477
|
+
line-height: 1.5;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
.pbx-myPrimarySelect {
|
|
481
|
+
-webkit-appearance: none;
|
|
482
|
+
-moz-appearance: none;
|
|
483
|
+
appearance: none;
|
|
484
|
+
background-color: #fff;
|
|
485
|
+
background-image: url("data:image/svg+xml,%3Csvg width='8' height='6' viewBox='0 0 8 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.292893 0.792893C0.683417 0.402369 1.31658 0.402369 1.70711 0.792893L4 3.08579L6.29289 0.792893C6.68342 0.402369 7.31658 0.402369 7.70711 0.792893C8.09763 1.18342 8.09763 1.81658 7.70711 2.20711L4.70711 5.20711C4.31658 5.59763 3.68342 5.59763 3.29289 5.20711L0.292893 2.20711C-0.0976311 1.81658 -0.0976311 1.18342 0.292893 0.792893Z' fill='%2335261C' fill-opacity='0.3'/%3E%3C/svg%3E");
|
|
481
486
|
background-repeat: no-repeat;
|
|
482
|
-
background-
|
|
483
|
-
|
|
487
|
+
background-position: right 0.625rem center;
|
|
488
|
+
background-size: 0.5rem;
|
|
484
489
|
}
|
|
485
490
|
|
|
486
491
|
.pbx-myPrimaryInput:focus,
|
|
@@ -500,6 +505,12 @@
|
|
|
500
505
|
border: 1px #dee6f0 solid;
|
|
501
506
|
}
|
|
502
507
|
|
|
508
|
+
#pagebuilder-right-menu hr {
|
|
509
|
+
border: none;
|
|
510
|
+
height: 1px;
|
|
511
|
+
background: oklch(93.6% 0.032 17.717);
|
|
512
|
+
box-shadow: oklch(93.6% 0.032 17.717);
|
|
513
|
+
}
|
|
503
514
|
#page-builder-wrapper blockquote,
|
|
504
515
|
#page-builder-wrapper dl,
|
|
505
516
|
#page-builder-wrapper dd,
|
|
@@ -183,7 +183,7 @@ onMounted(async () => {
|
|
|
183
183
|
<button
|
|
184
184
|
@click="searchByOrientation('landscape')"
|
|
185
185
|
type="button"
|
|
186
|
-
class="pbx-myPrimaryTag"
|
|
186
|
+
class="pbx-myPrimaryTag pbx-cursor-pointer"
|
|
187
187
|
:class="{
|
|
188
188
|
'pbx-bg-myPrimaryBrandColor pbx-text-white': getOrientationValue === 'landscape',
|
|
189
189
|
'': getOrientationValue !== 'landscape',
|
|
@@ -194,7 +194,7 @@ onMounted(async () => {
|
|
|
194
194
|
<button
|
|
195
195
|
@click="searchByOrientation('portrait')"
|
|
196
196
|
type="button"
|
|
197
|
-
class="pbx-myPrimaryTag"
|
|
197
|
+
class="pbx-myPrimaryTag pbx-cursor-pointer"
|
|
198
198
|
:class="{
|
|
199
199
|
'pbx-bg-myPrimaryBrandColor pbx-text-white': getOrientationValue === 'portrait',
|
|
200
200
|
'': getOrientationValue !== 'portrait',
|
|
@@ -205,7 +205,7 @@ onMounted(async () => {
|
|
|
205
205
|
<button
|
|
206
206
|
@click="searchByOrientation('squarish')"
|
|
207
207
|
type="button"
|
|
208
|
-
class="pbx-myPrimaryTag"
|
|
208
|
+
class="pbx-myPrimaryTag pbx-cursor-pointer"
|
|
209
209
|
:class="{
|
|
210
210
|
'pbx-bg-myPrimaryBrandColor pbx-text-white': getOrientationValue === 'squarish',
|
|
211
211
|
'': getOrientationValue !== 'squarish',
|
|
@@ -251,7 +251,7 @@ onMounted(async () => {
|
|
|
251
251
|
<button
|
|
252
252
|
v-if="Number(getCurrentPageNumber) > 1"
|
|
253
253
|
:disabled="Number(getCurrentPageNumber) < 1"
|
|
254
|
-
class="pbx-myPrimaryTag"
|
|
254
|
+
class="pbx-myPrimaryTag pbx-cursor-pointer"
|
|
255
255
|
@click="previousPage(Number(getCurrentPageNumber--))"
|
|
256
256
|
>
|
|
257
257
|
{{
|
|
@@ -264,7 +264,7 @@ onMounted(async () => {
|
|
|
264
264
|
</span>
|
|
265
265
|
<button
|
|
266
266
|
:disabled="Number(getCurrentPageNumber) >= getUnsplashImages.total_pages"
|
|
267
|
-
class="pbx-myPrimaryTag"
|
|
267
|
+
class="pbx-myPrimaryTag pbx-cursor-pointer"
|
|
268
268
|
:class="{
|
|
269
269
|
'pbx-opacity-50': Number(getCurrentPageNumber) >= getUnsplashImages.total_pages,
|
|
270
270
|
}"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"title": "Text"
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
|
-
"html_code": "<section data-component-title=\"YouTube Video\">\n <div class=\"pbx-py-4\">\n <div class=\"pbx-mx-auto pbx-max-w-7xl pbx-pt-6 pbx-pb-6\">\n <div id=\"youtube-video\" class=\"pbx-
|
|
43
|
+
"html_code": "<section data-component-title=\"YouTube Video\">\n <div class=\"pbx-py-4\">\n <div class=\"pbx-mx-auto pbx-max-w-7xl pbx-pt-6 pbx-pb-6\">\n <div id=\"youtube-video\" class=\"pbx-aspect-video pbx-p-4\">\n\n <iframe frameborder=\"0\" allowfullscreen=\"\" class=\"pbx-w-full pbx-aspect-video\" src=\"https://www.youtube.com/embed/pJvwV1Fm0vU\" allow=\"accelerometer; autoplay; clipboard-write;\">\n </iframe>\n </div>\n </div>\n </div>\n </section>",
|
|
44
44
|
"id": "33a26684-eb95-43c9-adb4-d7bce0ca60f7",
|
|
45
45
|
"title": "YouTube Video"
|
|
46
46
|
},
|