@myissue/vue-website-page-builder 3.3.45 → 3.3.47

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myissue/vue-website-page-builder",
3
- "version": "3.3.45",
3
+ "version": "3.3.47",
4
4
  "description": "Vue 3 page builder component with drag & drop functionality.",
5
5
  "type": "module",
6
6
  "main": "./dist/vue-website-page-builder.umd.cjs",
@@ -50,7 +50,7 @@ const firstButtonBuilder = function () {
50
50
  </div>
51
51
  </div>
52
52
  <div
53
- class="pbx-py-4 pbx-flex sm:pbx-justify-end pbx-justify-center pbx-border-solid pbx-border-t pbx-border-gray-200 pbx-mt-4"
53
+ class="pbx-border-0 pbx-py-4 pbx-flex sm:pbx-justify-end pbx-justify-center pbx-border-solid pbx-border-t pbx-border-gray-200 pbx-mt-4"
54
54
  >
55
55
  <div class="sm:pbx-w-3/6 pbx-w-full pbx-px-2 pbx-my-2 pbx-flex pbx-gap-2 pbx-justify-end">
56
56
  <button
@@ -71,23 +71,38 @@ const getPageBuilderConfig = computed(() => {
71
71
  const getMenuRight = computed(() => {
72
72
  return pageBuilderStateStore.getMenuRight
73
73
  })
74
+ const openPageBuilderPreviewModal = ref(false)
75
+
74
76
  const previewCurrentDesign = function () {
75
77
  pageBuilderService.previewCurrentDesign()
76
78
  }
79
+ const handlePageBuilderPreview = function () {
80
+ previewCurrentDesign()
81
+ openPageBuilderPreviewModal.value = true
82
+ }
83
+
84
+ const openPageBuilderPreviewMobile = ref(false)
85
+
86
+ const previewCurrentDesignMobile = function () {
87
+ pageBuilderService.previewCurrentDesign()
88
+ }
89
+ const handlePageBuilderPreviewMobile = function () {
90
+ previewCurrentDesignMobile()
91
+ openPageBuilderPreviewMobile.value = true
92
+ }
93
+
77
94
  const openAppNotStartedModal = ref(false)
78
- const openPageBuilderPreviewModal = ref(false)
79
95
 
80
96
  const handlAppNotStartedModal = function () {
81
97
  openAppNotStartedModal.value = false
82
98
  }
83
- const handlePageBuilderPreview = function () {
84
- previewCurrentDesign()
85
- openPageBuilderPreviewModal.value = true
86
- }
87
99
 
88
100
  const firstPageBuilderPreviewModalButton = function () {
89
101
  openPageBuilderPreviewModal.value = false
90
102
  }
103
+ const firstPageBuilderPreviewModalButtonMobile = function () {
104
+ openPageBuilderPreviewMobile.value = false
105
+ }
91
106
 
92
107
  const showModalAddComponent = ref(false)
93
108
  const titleModalAddComponent = ref('')
@@ -388,6 +403,15 @@ onMounted(async () => {
388
403
  <Preview></Preview>
389
404
  </ModalBuilder>
390
405
 
406
+ <ModalBuilder
407
+ title="Mobile"
408
+ :showModalBuilder="openPageBuilderPreviewMobile"
409
+ @closeMainModalBuilder="firstPageBuilderPreviewModalButtonMobile"
410
+ maxWidth="lg"
411
+ >
412
+ <Preview />
413
+ </ModalBuilder>
414
+
391
415
  <DynamicModalBuilder
392
416
  :showDynamicModalBuilder="showModalResumeEditing"
393
417
  :isLoading="getIsLoadingResumeEditing"
@@ -577,7 +601,9 @@ onMounted(async () => {
577
601
  }
578
602
  "
579
603
  >
580
- <div class="pbx-flex pbx-items-center pbx-justify-center pbx-gap-2">
604
+ <div
605
+ class="pbx-flex pbx-items-center pbx-justify-center pbx-gap-2 pbx-border-0 pbx-border-solid pbx-border-r pbx-border-gray-200 pbx-pr-2"
606
+ >
581
607
  <span class="lg:pbx-block pbx-hidden">
582
608
  <div class="pbx-whitespace-nowrap pbx-cursor-pointer">Add new Components</div>
583
609
  </span>
@@ -588,7 +614,7 @@ onMounted(async () => {
588
614
  </span>
589
615
  </div>
590
616
  </div>
591
- <div class="pbx-flex pbx-items-center pbx-justify-center">
617
+ <div class="pbx-flex pbx-items-center pbx-justify-center pbx-mr-2">
592
618
  <div
593
619
  @click="
594
620
  async () => {
@@ -600,10 +626,6 @@ onMounted(async () => {
600
626
  "
601
627
  >
602
628
  <div class="pbx-flex pbx-items-center pbx-justify-center pbx-gap-2">
603
- <div class="pbx-whitespace-nowrap lg:pbx-block pbx-hidden pbx-cursor-pointer">
604
- Preview
605
- </div>
606
-
607
629
  <span
608
630
  class="pbx-h-10 pbx-w-10 pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-50 pbx-aspect-square hover:pbx-bg-myPrimaryLinkColor hover:pbx-text-white focus-visible:pbx-ring-0"
609
631
  >
@@ -612,6 +634,26 @@ onMounted(async () => {
612
634
  </div>
613
635
  </div>
614
636
  </div>
637
+ <div class="lg:pbx-flex pbx-hidden pbx-items-center pbx-justify-center">
638
+ <div
639
+ @click="
640
+ async () => {
641
+ pageBuilderStateStore.setMenuRight(false)
642
+ pageBuilderStateStore.setElement(null)
643
+ await pageBuilderService.clearHtmlSelection()
644
+ handlePageBuilderPreviewMobile()
645
+ }
646
+ "
647
+ >
648
+ <div class="pbx-flex pbx-items-center pbx-justify-center pbx-gap-2">
649
+ <span
650
+ class="pbx-h-10 pbx-w-10 pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-50 pbx-aspect-square hover:pbx-bg-myPrimaryLinkColor hover:pbx-text-white focus-visible:pbx-ring-0"
651
+ >
652
+ <span class="material-symbols-outlined"> phone_iphone </span>
653
+ </span>
654
+ </div>
655
+ </div>
656
+ </div>
615
657
  </div>
616
658
  </div>
617
659
  <!-- Options # Start -->
@@ -10,3 +10,7 @@ These styles affect all HTML elements (like input, button, h1, etc.) in the cons
10
10
  gap: 6px 0px;
11
11
  justify-content: center;
12
12
  }
13
+
14
+ .mobile-preview-frame {
15
+ container-type: inline-size;
16
+ }