@myissue/vue-website-page-builder 3.2.90 → 3.2.92
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 +122 -84
- package/dist/vue-website-page-builder.css +1 -1
- package/dist/vue-website-page-builder.js +5191 -5273
- package/dist/vue-website-page-builder.umd.cjs +52 -52
- package/package.json +1 -1
- package/src/Components/Loaders/GlobalLoader.vue +11 -0
- package/src/Components/Modals/DynamicModalBuilder.vue +41 -245
- package/src/Components/Modals/ModalBuilder.vue +29 -4
- package/src/Components/PageBuilder/DefaultComponents/DefaultBuilderComponents.vue +3 -8
- package/src/Components/PageBuilder/EditorMenu/Editables/BackgroundColorEditor.vue +5 -4
- package/src/Components/PageBuilder/EditorMenu/Editables/BorderRadius.vue +12 -13
- package/src/Components/PageBuilder/EditorMenu/Editables/Borders.vue +8 -8
- package/src/Components/PageBuilder/EditorMenu/Editables/ClassEditor.vue +7 -6
- package/src/Components/PageBuilder/EditorMenu/Editables/ComponentTopMenu.vue +6 -10
- package/src/Components/PageBuilder/EditorMenu/Editables/DeleteElement.vue +4 -4
- package/src/Components/PageBuilder/EditorMenu/Editables/EditGetElement.vue +10 -11
- package/src/Components/PageBuilder/EditorMenu/Editables/ElementEditor.vue +4 -5
- package/src/Components/PageBuilder/EditorMenu/Editables/ImageEditor.vue +0 -9
- package/src/Components/PageBuilder/EditorMenu/Editables/LinkEditor.vue +5 -5
- package/src/Components/PageBuilder/EditorMenu/Editables/ManageBackgroundOpacity.vue +4 -4
- package/src/Components/PageBuilder/EditorMenu/Editables/ManageOpacity.vue +4 -4
- package/src/Components/PageBuilder/EditorMenu/Editables/Margin.vue +8 -8
- package/src/Components/PageBuilder/EditorMenu/Editables/Padding.vue +8 -8
- package/src/Components/PageBuilder/EditorMenu/Editables/TextColorEditor.vue +4 -4
- package/src/Components/PageBuilder/EditorMenu/Editables/Typography.vue +16 -16
- package/src/Components/PageBuilder/EditorMenu/RightSidebarEditor.vue +3 -7
- package/src/Components/PageBuilder/Settings/PageBuilderSettings.vue +55 -58
- package/src/Components/PageBuilder/ToolbarOption/ToolbarOption.vue +33 -40
- package/src/Components/TipTap/TipTap.vue +4 -9
- package/src/Components/TipTap/TipTapInput.vue +8 -8
- package/src/DemoComponents/DemoUnsplash.vue +4 -5
- package/src/DemoComponents/HomeSection.vue +9 -30
- package/src/DemoComponents/html.json +4 -4
- package/src/PageBuilder/PageBuilder.vue +194 -96
- package/src/composables/{PageBuilderClass.ts → PageBuilderService.ts} +258 -97
- package/src/composables/builderInstance.ts +25 -0
- package/src/css/app.css +15 -0
- package/src/css/dev-global.css +7 -0
- package/src/index.ts +4 -2
- package/src/main.ts +3 -0
- package/src/stores/page-builder-state.ts +32 -2
- package/src/types/index.ts +99 -9
- package/src/helpers/passedPageBuilderConfig.ts +0 -71
package/package.json
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
class="pbx-bg-white pbx-flex pbx-justify-center pbx-items-center pbx-h-screen pbx-w-screen pbx-fixed pbx-inset-0 pbx-z-[10000]"
|
|
4
|
+
>
|
|
5
|
+
<div class="pbx-absolute pbx-top-1/3">
|
|
6
|
+
<div
|
|
7
|
+
class="pbx-inline-block pbx-h-10 pbx-w-10 pbx-animate-spin pbx-rounded-full pbx-border-4 pbx-border-solid pbx-border-current pbx-border-r-transparent"
|
|
8
|
+
></div>
|
|
9
|
+
</div>
|
|
10
|
+
</div>
|
|
11
|
+
</template>
|
|
@@ -83,15 +83,16 @@ const thirdButtonBuilder = function () {
|
|
|
83
83
|
<ModalBuilder
|
|
84
84
|
:title="title"
|
|
85
85
|
:showModalBuilder="showDynamicModalBuilder"
|
|
86
|
+
:type="type"
|
|
86
87
|
@closeMainModalBuilder="firstButtonBuilder"
|
|
87
88
|
:maxWidth="maxWidth"
|
|
88
89
|
>
|
|
89
90
|
<slot name="content" />
|
|
90
91
|
|
|
91
92
|
<div
|
|
92
|
-
class="pbx-font-sans pbx-w-full pbx-relative pbx-inline-block pbx-align-bottom pbx-text-left pbx-overflow-hidden pbx-transform pbx-transition-all sm:pbx-align-middle"
|
|
93
|
+
class="pbx-min-h-32 pbx-h-max pbx-font-sans pbx-w-full pbx-relative pbx-inline-block pbx-align-bottom pbx-text-left pbx-overflow-hidden pbx-transform pbx-transition-all sm:pbx-align-middle"
|
|
93
94
|
>
|
|
94
|
-
<div :class="{ 'pbx-pr-4 pbx-pb-4': simpleModal
|
|
95
|
+
<div :class="{ 'pbx-pr-4 pbx-pb-4': !simpleModal }">
|
|
95
96
|
<template v-if="simpleModal !== true">
|
|
96
97
|
<div v-html="description" class="pbx-myPrimaryParagraph pbx-mb-6"></div>
|
|
97
98
|
</template>
|
|
@@ -102,9 +103,12 @@ const thirdButtonBuilder = function () {
|
|
|
102
103
|
</div>
|
|
103
104
|
</div>
|
|
104
105
|
|
|
105
|
-
<
|
|
106
|
+
<div
|
|
107
|
+
class="pbx-border-t pbx-border-gray-200 pbx-mt-4 pbx-flex pbx-items-center pbx-justify-end"
|
|
108
|
+
>
|
|
106
109
|
<div
|
|
107
|
-
|
|
110
|
+
v-if="simpleModal !== true && !isLoading"
|
|
111
|
+
class="pbx-py-4 pbx-flex sm:pbx-justify-end pbx-justify-center"
|
|
108
112
|
>
|
|
109
113
|
<slot name="footer" />
|
|
110
114
|
<div
|
|
@@ -125,252 +129,44 @@ const thirdButtonBuilder = function () {
|
|
|
125
129
|
{{ firstButtonText }}
|
|
126
130
|
</button>
|
|
127
131
|
|
|
128
|
-
<
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
>
|
|
137
|
-
<div>
|
|
138
|
-
<Transition name="bounce">
|
|
139
|
-
<div role="status" class="pbx-flex pbx-items-center">
|
|
140
|
-
<svg
|
|
141
|
-
aria-hidden="true"
|
|
142
|
-
class="pbx-w-4 pbx-h-4 pbx-animate-spin pbx-text-white-600 pbx-fill-gray-800 pbx-flex pbx-items-center"
|
|
143
|
-
stroke-width="1.5"
|
|
144
|
-
viewBox="0 0 100 101"
|
|
145
|
-
fill="none"
|
|
146
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
147
|
-
>
|
|
148
|
-
<path
|
|
149
|
-
d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z"
|
|
150
|
-
fill="currentColor"
|
|
151
|
-
/>
|
|
152
|
-
<path
|
|
153
|
-
d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z"
|
|
154
|
-
fill="currentFill"
|
|
155
|
-
/>
|
|
156
|
-
</svg>
|
|
157
|
-
</div>
|
|
158
|
-
</Transition>
|
|
159
|
-
</div>
|
|
160
|
-
<div>Loading..</div>
|
|
161
|
-
</button>
|
|
162
|
-
</div>
|
|
163
|
-
|
|
164
|
-
<div v-if="!disabled || disabledWhichButton !== 'secondButtonBuilder'">
|
|
165
|
-
<button
|
|
166
|
-
class="pbx-myPrimaryButton pbx-bg-yellow-300 hover:pbx-bg-yellow-400 pbx-text-myPrimaryDarkGrayColor hover:pbx-text-myPrimaryDarkGrayColor focus:pbx-ring-yellow-400 pbx-w-full"
|
|
167
|
-
type="button"
|
|
168
|
-
@click="secondButtonBuilder"
|
|
169
|
-
>
|
|
170
|
-
{{ secondButtonText }}
|
|
171
|
-
</button>
|
|
172
|
-
</div>
|
|
173
|
-
</div>
|
|
174
|
-
|
|
175
|
-
<div v-if="thirdButtonText">
|
|
176
|
-
<div v-if="type === 'default'">
|
|
177
|
-
<div v-if="disabled && disabledWhichButton === 'thirdButtonBuilder'">
|
|
178
|
-
<button
|
|
179
|
-
class="pbx-flex pbx-items-center pbx-gap-2 pbx-myPrimaryButton pbx-bg-myPrimaryLinkColor focus-visible:pbx-ring-myPrimaryLinkColor focus:pbx-ring-myPrimaryLinkColor hover:pbx-bg-myPrimaryLinkColor pbx-w-full"
|
|
180
|
-
:class="{ 'pbx-opacity-25 pbx-cursor-default': disabled }"
|
|
181
|
-
:disabled="disabled"
|
|
182
|
-
type="button"
|
|
183
|
-
>
|
|
184
|
-
<div>
|
|
185
|
-
<Transition name="bounce">
|
|
186
|
-
<div role="status" class="pbx-flex pbx-items-center">
|
|
187
|
-
<svg
|
|
188
|
-
aria-hidden="true"
|
|
189
|
-
class="pbx-w-4 pbx-h-4 pbx-animate-spin pbx-text-white-600 pbx-fill-gray-800 pbx-flex pbx-items-center"
|
|
190
|
-
stroke-width="1.5"
|
|
191
|
-
viewBox="0 0 100 101"
|
|
192
|
-
fill="none"
|
|
193
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
194
|
-
>
|
|
195
|
-
<path
|
|
196
|
-
d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z"
|
|
197
|
-
fill="currentColor"
|
|
198
|
-
/>
|
|
199
|
-
<path
|
|
200
|
-
d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z"
|
|
201
|
-
fill="currentFill"
|
|
202
|
-
/>
|
|
203
|
-
</svg>
|
|
204
|
-
</div>
|
|
205
|
-
</Transition>
|
|
206
|
-
</div>
|
|
207
|
-
<div>Loading..</div>
|
|
208
|
-
</button>
|
|
209
|
-
</div>
|
|
210
|
-
|
|
211
|
-
<div v-if="!disabled || disabledWhichButton !== 'thirdButtonBuilder'">
|
|
212
|
-
<button
|
|
213
|
-
class="pbx-myPrimaryButton pbx-bg-myPrimaryLinkColor focus-visible:pbx-ring-myPrimaryLinkColor focus:pbx-ring-myPrimaryLinkColor hover:pbx-bg-myPrimaryLinkColor pbx-w-full"
|
|
214
|
-
type="button"
|
|
215
|
-
@click="thirdButtonBuilder"
|
|
216
|
-
>
|
|
217
|
-
{{ thirdButtonText }}
|
|
218
|
-
</button>
|
|
219
|
-
</div>
|
|
220
|
-
</div>
|
|
221
|
-
<div v-if="type === 'success'">
|
|
222
|
-
<div v-if="disabled && disabledWhichButton === 'thirdButtonBuilder'">
|
|
223
|
-
<button
|
|
224
|
-
class="pbx-flex pbx-items-center pbx-gap-2 pbx-myPrimaryButton pbx-bg-myPrimaryLinkColor focus-visible:pbx-ring-myPrimaryLinkColor focus:pbx-ring-myPrimaryLinkColor hover:pbx-bg-myPrimaryLinkColor pbx-w-full"
|
|
225
|
-
:class="{ 'pbx-opacity-25 pbx-cursor-default': disabled }"
|
|
226
|
-
:disabled="disabled"
|
|
227
|
-
type="button"
|
|
228
|
-
>
|
|
229
|
-
<div>
|
|
230
|
-
<Transition name="bounce">
|
|
231
|
-
<div role="status" class="pbx-flex pbx-items-center">
|
|
232
|
-
<svg
|
|
233
|
-
aria-hidden="true"
|
|
234
|
-
class="pbx-w-4 pbx-h-4 pbx-animate-spin pbx-text-white-600 pbx-fill-gray-800 pbx-flex pbx-items-center"
|
|
235
|
-
stroke-width="1.5"
|
|
236
|
-
viewBox="0 0 100 101"
|
|
237
|
-
fill="none"
|
|
238
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
239
|
-
>
|
|
240
|
-
<path
|
|
241
|
-
d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z"
|
|
242
|
-
fill="currentColor"
|
|
243
|
-
/>
|
|
244
|
-
<path
|
|
245
|
-
d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z"
|
|
246
|
-
fill="currentFill"
|
|
247
|
-
/>
|
|
248
|
-
</svg>
|
|
249
|
-
</div>
|
|
250
|
-
</Transition>
|
|
251
|
-
</div>
|
|
252
|
-
<div>Loading..</div>
|
|
253
|
-
</button>
|
|
254
|
-
</div>
|
|
255
|
-
|
|
256
|
-
<div v-if="!disabled || disabledWhichButton !== 'thirdButtonBuilder'">
|
|
257
|
-
<button
|
|
258
|
-
class="pbx-myPrimaryButton pbx-bg-myPrimaryLinkColor focus-visible:pbx-ring-myPrimaryLinkColor focus:pbx-ring-myPrimaryLinkColor hover:pbx-bg-myPrimaryLinkColor pbx-w-full"
|
|
259
|
-
type="button"
|
|
260
|
-
@click="thirdButtonBuilder"
|
|
261
|
-
>
|
|
262
|
-
{{ thirdButtonText }}
|
|
263
|
-
</button>
|
|
264
|
-
</div>
|
|
265
|
-
</div>
|
|
266
|
-
|
|
267
|
-
<div v-if="type === 'warning'">
|
|
268
|
-
<div v-if="disabled && disabledWhichButton === 'thirdButtonBuilder'">
|
|
269
|
-
<button
|
|
270
|
-
class="pbx-flex pbx-items-center pbx-gap-2 pbx-myPrimaryButton pbx-bg-myPrimaryLinkColor focus-visible:pbx-ring-myPrimaryLinkColor focus:pbx-ring-myPrimaryLinkColor hover:pbx-bg-myPrimaryLinkColor pbx-w-full"
|
|
271
|
-
:class="{ 'pbx-opacity-25 pbx-cursor-default': disabled }"
|
|
272
|
-
:disabled="disabled"
|
|
273
|
-
type="button"
|
|
274
|
-
>
|
|
275
|
-
<div>
|
|
276
|
-
<Transition name="bounce">
|
|
277
|
-
<div role="status" class="pbx-flex pbx-items-center">
|
|
278
|
-
<svg
|
|
279
|
-
aria-hidden="true"
|
|
280
|
-
class="pbx-w-4 pbx-h-4 pbx-animate-spin pbx-text-white-600 pbx-fill-gray-800 pbx-flex pbx-items-center"
|
|
281
|
-
stroke-width="1.5"
|
|
282
|
-
viewBox="0 0 100 101"
|
|
283
|
-
fill="none"
|
|
284
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
285
|
-
>
|
|
286
|
-
<path
|
|
287
|
-
d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z"
|
|
288
|
-
fill="currentColor"
|
|
289
|
-
/>
|
|
290
|
-
<path
|
|
291
|
-
d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z"
|
|
292
|
-
fill="currentFill"
|
|
293
|
-
/>
|
|
294
|
-
</svg>
|
|
295
|
-
</div>
|
|
296
|
-
</Transition>
|
|
297
|
-
</div>
|
|
298
|
-
<div>Loading..</div>
|
|
299
|
-
</button>
|
|
300
|
-
</div>
|
|
301
|
-
|
|
302
|
-
<div v-if="!disabled || disabledWhichButton !== 'thirdButtonBuilder'">
|
|
303
|
-
<button
|
|
304
|
-
class="pbx-flex pbx-items-center pbx-gap-2 pbx-myPrimaryButton pbx-bg-myPrimaryErrorColor hover:pbx-bg-red-600 pbx-text-white focus:pbx-ring-myPrimaryErrorColor pbx-w-full"
|
|
305
|
-
type="button"
|
|
306
|
-
@click="thirdButtonBuilder"
|
|
307
|
-
>
|
|
308
|
-
{{ thirdButtonText }}
|
|
309
|
-
</button>
|
|
310
|
-
</div>
|
|
311
|
-
</div>
|
|
312
|
-
|
|
313
|
-
<div v-if="type === 'danger' || type === 'delete'">
|
|
314
|
-
<div v-if="disabled && disabledWhichButton === 'thirdButtonBuilder'">
|
|
315
|
-
<button
|
|
316
|
-
class="pbx-flex pbx-items-center pbx-gap-2 pbx-myPrimaryButton pbx-bg-myPrimaryErrorColor hover:pbx-bg-red-600 pbx-text-white focus:pbx-ring-myPrimaryErrorColor pbx-w-full"
|
|
317
|
-
:class="{ 'pbx-opacity-25 pbx-cursor-default': disabled }"
|
|
318
|
-
:disabled="disabled"
|
|
319
|
-
type="button"
|
|
320
|
-
>
|
|
321
|
-
<div>
|
|
322
|
-
<Transition name="bounce">
|
|
323
|
-
<div role="status" class="pbx-flex pbx-items-center">
|
|
324
|
-
<svg
|
|
325
|
-
aria-hidden="true"
|
|
326
|
-
class="pbx-w-4 pbx-h-4 pbx-animate-spin pbx-text-white-600 pbx-fill-gray-800 pbx-flex pbx-items-center"
|
|
327
|
-
stroke-width="1.5"
|
|
328
|
-
viewBox="0 0 100 101"
|
|
329
|
-
fill="none"
|
|
330
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
331
|
-
>
|
|
332
|
-
<path
|
|
333
|
-
d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z"
|
|
334
|
-
fill="currentColor"
|
|
335
|
-
/>
|
|
336
|
-
<path
|
|
337
|
-
d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z"
|
|
338
|
-
fill="currentFill"
|
|
339
|
-
/>
|
|
340
|
-
</svg>
|
|
341
|
-
</div>
|
|
342
|
-
</Transition>
|
|
343
|
-
</div>
|
|
344
|
-
<div>Loading..</div>
|
|
345
|
-
</button>
|
|
346
|
-
</div>
|
|
132
|
+
<button
|
|
133
|
+
v-if="secondButtonText"
|
|
134
|
+
class="pbx-myPrimaryButton pbx-bg-yellow-300 hover:pbx-bg-yellow-400 pbx-text-myPrimaryDarkGrayColor hover:pbx-text-myPrimaryDarkGrayColor focus:pbx-ring-yellow-400 pbx-w-full"
|
|
135
|
+
type="button"
|
|
136
|
+
@click="secondButtonBuilder"
|
|
137
|
+
>
|
|
138
|
+
{{ secondButtonText }}
|
|
139
|
+
</button>
|
|
347
140
|
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
141
|
+
<button
|
|
142
|
+
v-if="thirdButtonText"
|
|
143
|
+
class="pbx-myPrimaryButton pbx-bg-myPrimaryLinkColor focus-visible:pbx-ring-myPrimaryLinkColor focus:pbx-ring-myPrimaryLinkColor hover:pbx-bg-myPrimaryLinkColor pbx-w-full"
|
|
144
|
+
:class="[
|
|
145
|
+
type === 'danger' || type === 'delete'
|
|
146
|
+
? 'pbx-bg-red-600 focus-visible:pbx-ring-red-600 focus:pbx-ring-red-600 hover:pbx-bg-red-600'
|
|
147
|
+
: 'pbx-bg-myPrimaryLinkColor focus-visible:pbx-ring-myPrimaryLinkColor focus:pbx-ring-myPrimaryLinkColor hover:pbx-bg-myPrimaryLinkColor',
|
|
148
|
+
]"
|
|
149
|
+
type="button"
|
|
150
|
+
@click="thirdButtonBuilder"
|
|
151
|
+
>
|
|
152
|
+
{{ thirdButtonText }}
|
|
153
|
+
</button>
|
|
359
154
|
</div>
|
|
360
155
|
</div>
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
>
|
|
367
|
-
<span
|
|
368
|
-
class="!pbx-absolute !pbx-m-px !pbx-h-px !pbx-w-px !pbx-overflow-hidden !pbx-whitespace-nowrap !pbx-border-0 !pbx-p-0 !pbx-[clip:rect(0,0,0,0)]"
|
|
369
|
-
>Loading...</span
|
|
156
|
+
|
|
157
|
+
<template v-if="isLoading">
|
|
158
|
+
<div class="pbx-flex pbx-items-center pbx-my-2 pbx-py-4 pbx-px-2 pbx-justify-end">
|
|
159
|
+
<div
|
|
160
|
+
class="pbx-inline-block pbx-h-8 pbx-w-8 pbx-animate-spin pbx-rounded-full pbx-border-4 pbx-border-solid pbx-border-current pbx-border-r-transparent pbx-align-[-0.125em] motion-reduce:pbx-animate-[spin_1.5s_linear_infinite]"
|
|
370
161
|
>
|
|
162
|
+
<span
|
|
163
|
+
class="!pbx-absolute !pbx-m-px !pbx-h-px !pbx-w-px !pbx-overflow-hidden !pbx-whitespace-nowrap !pbx-border-0 !pbx-p-0 !pbx-[clip:rect(0,0,0,0)]"
|
|
164
|
+
>Loading...</span
|
|
165
|
+
>
|
|
166
|
+
</div>
|
|
371
167
|
</div>
|
|
372
|
-
</
|
|
373
|
-
</
|
|
168
|
+
</template>
|
|
169
|
+
</div>
|
|
374
170
|
</ModalBuilder>
|
|
375
171
|
</template>
|
|
376
172
|
|
|
@@ -10,6 +10,10 @@ const props = defineProps({
|
|
|
10
10
|
type: Boolean,
|
|
11
11
|
default: false,
|
|
12
12
|
},
|
|
13
|
+
type: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: 'success',
|
|
16
|
+
},
|
|
13
17
|
maxWidth: {
|
|
14
18
|
type: String,
|
|
15
19
|
default: '2xl',
|
|
@@ -20,6 +24,9 @@ const props = defineProps({
|
|
|
20
24
|
maxHeight: {
|
|
21
25
|
type: String,
|
|
22
26
|
},
|
|
27
|
+
backgroundOpacity: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
},
|
|
23
30
|
})
|
|
24
31
|
|
|
25
32
|
const emit = defineEmits(['closeMainModalBuilder'])
|
|
@@ -60,11 +67,12 @@ const maxWidthClass = computed(() => {
|
|
|
60
67
|
<!-- Backdrop -->
|
|
61
68
|
<div
|
|
62
69
|
class="pbx-fixed pbx-inset-0 pbx-bg-black/50 pbx-transition-opacity"
|
|
70
|
+
:class="[backgroundOpacity ? 'pbx-bg-black/90' : '']"
|
|
63
71
|
@click="handleClose"
|
|
64
72
|
></div>
|
|
65
73
|
|
|
66
74
|
<div
|
|
67
|
-
class="pbx-relative pbx-inline-block pbx-bg-white pbx-rounded-xl pbx-text-left pbx-overflow-hidden pbx-shadow-xl pbx-transform pbx-transition-all pbx-max-w-[96vh] pbx-max-h-[98vh] pbx-overflow-y-auto pbx-w-full
|
|
75
|
+
class="pbx-relative pbx-inline-block pbx-bg-white pbx-rounded-xl pbx-text-left pbx-overflow-hidden pbx-shadow-xl pbx-transform pbx-transition-all pbx-max-w-[96vh] pbx-max-h-[98vh] pbx-overflow-y-auto pbx-w-full"
|
|
68
76
|
:class="[
|
|
69
77
|
maxWidthClass ? maxWidthClass : '',
|
|
70
78
|
minHeight ? minHeight : '',
|
|
@@ -72,9 +80,24 @@ const maxWidthClass = computed(() => {
|
|
|
72
80
|
]"
|
|
73
81
|
>
|
|
74
82
|
<div
|
|
75
|
-
class="pbx-h-16 pbx-
|
|
83
|
+
class="pbx-h-16 pbx-px-4 pbx-border-b pbx-border-gray-200 pbx-mb-2 pbx-flex pbx-items-center pbx-justify-between"
|
|
84
|
+
:class="[
|
|
85
|
+
type === 'success' ? 'pbx-bg-white' : '',
|
|
86
|
+
type === 'warning' ? 'pbx-bg-white' : '',
|
|
87
|
+
type === 'danger' ? 'pbx-bg-white' : '',
|
|
88
|
+
type === 'delete' ? 'pbx-bg-white' : '',
|
|
89
|
+
]"
|
|
76
90
|
>
|
|
77
|
-
<h3
|
|
91
|
+
<h3
|
|
92
|
+
as="h3"
|
|
93
|
+
class="pbx-myQuaternaryHeader pbx-my-0 pbx-py-0"
|
|
94
|
+
:class="[
|
|
95
|
+
type === 'success' ? 'pbx-text-black' : '',
|
|
96
|
+
type === 'warning' ? 'pbx-text-black' : '',
|
|
97
|
+
type === 'danger' ? 'pbx-text-black' : '',
|
|
98
|
+
type === 'delete' ? 'pbx-text-black' : '',
|
|
99
|
+
]"
|
|
100
|
+
>
|
|
78
101
|
{{ title }}
|
|
79
102
|
</h3>
|
|
80
103
|
<div
|
|
@@ -84,7 +107,9 @@ const maxWidthClass = computed(() => {
|
|
|
84
107
|
<span class="material-symbols-outlined"> close </span>
|
|
85
108
|
</div>
|
|
86
109
|
</div>
|
|
87
|
-
<
|
|
110
|
+
<div class="pbx-px-4 pbx-min-h-32">
|
|
111
|
+
<slot></slot>
|
|
112
|
+
</div>
|
|
88
113
|
</div>
|
|
89
114
|
</div>
|
|
90
115
|
</div>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import componentHelpers from '../../../utils/html-elements/componentHelpers'
|
|
3
3
|
import components from '../../../utils/html-elements/component'
|
|
4
|
-
import PageBuilderClass from '../../../composables/PageBuilderClass'
|
|
5
4
|
import { usePageBuilderModal } from '../../../composables/usePageBuilderModal'
|
|
6
5
|
import { generateComponentPreview } from '../../../utils/componentPreviews'
|
|
7
6
|
import type { ComponentObject } from '../../../types'
|
|
8
|
-
import {
|
|
7
|
+
import { getPageBuilder } from '../../../composables/builderInstance'
|
|
8
|
+
const pageBuilderService = getPageBuilder()
|
|
9
9
|
|
|
10
10
|
defineProps({
|
|
11
11
|
customMediaComponent: {
|
|
@@ -17,13 +17,9 @@ defineProps({
|
|
|
17
17
|
// Get modal close function
|
|
18
18
|
const { closeAddComponentModal } = usePageBuilderModal()
|
|
19
19
|
|
|
20
|
-
const pageBuilderStateStore = sharedPageBuilderStore
|
|
21
|
-
|
|
22
|
-
const pageBuilderClass = new PageBuilderClass(pageBuilderStateStore)
|
|
23
|
-
|
|
24
20
|
// Super simple component addition with professional modal closing!
|
|
25
21
|
const handleDropComponent = async function (componentObject: ComponentObject) {
|
|
26
|
-
await
|
|
22
|
+
await pageBuilderService.addComponent(componentObject)
|
|
27
23
|
closeAddComponentModal()
|
|
28
24
|
}
|
|
29
25
|
|
|
@@ -54,7 +50,6 @@ const getSvgPreview = (title: string) => {
|
|
|
54
50
|
<div
|
|
55
51
|
class="pbx-grid pbx-grid-cols-1 sm:pbx-grid-cols-2 md:pbx-grid-cols-3 lg:pbx-grid-cols-4 pbx-gap-4"
|
|
56
52
|
>
|
|
57
|
-
NOW: Did user include custom media component: {{ customMediaComponent ? 'true' : 'false' }}
|
|
58
53
|
<div
|
|
59
54
|
v-for="helper in componentHelpers"
|
|
60
55
|
:key="helper.title"
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { ref, computed, watch } from 'vue'
|
|
3
3
|
import { Listbox, ListboxButton, ListboxOption, ListboxOptions } from '@headlessui/vue'
|
|
4
|
-
import PageBuilderClass from '../../../../composables/PageBuilderClass.ts'
|
|
5
4
|
import tailwindColors from '../../../../utils/builder/tailwaind-colors'
|
|
6
5
|
import { sharedPageBuilderStore } from '../../../../stores/shared-store'
|
|
6
|
+
import { getPageBuilder } from '../../../../composables/builderInstance'
|
|
7
|
+
const pageBuilderService = getPageBuilder()
|
|
7
8
|
|
|
8
9
|
// Use shared store instance
|
|
9
10
|
const pageBuilderStateStore = sharedPageBuilderStore
|
|
10
|
-
|
|
11
|
+
|
|
11
12
|
const backgroundColor = ref(null)
|
|
12
13
|
const getBackgroundColor = computed(() => {
|
|
13
14
|
return pageBuilderStateStore.getBackgroundColor
|
|
@@ -17,7 +18,7 @@ watch(
|
|
|
17
18
|
getBackgroundColor,
|
|
18
19
|
async (newValue) => {
|
|
19
20
|
backgroundColor.value = newValue
|
|
20
|
-
await
|
|
21
|
+
await pageBuilderService.initializeElementStyles()
|
|
21
22
|
},
|
|
22
23
|
{ immediate: true },
|
|
23
24
|
)
|
|
@@ -51,7 +52,7 @@ watch(
|
|
|
51
52
|
<ListboxOption
|
|
52
53
|
as="template"
|
|
53
54
|
v-for="color in tailwindColors.backgroundColorVariables"
|
|
54
|
-
@click="
|
|
55
|
+
@click="pageBuilderService.handleBackgroundColor(backgroundColor)"
|
|
55
56
|
:key="color"
|
|
56
57
|
:value="color"
|
|
57
58
|
v-slot="{ active, backgroundColor }"
|
|
@@ -2,13 +2,12 @@
|
|
|
2
2
|
import { ref, computed, watch } from 'vue'
|
|
3
3
|
import { sharedPageBuilderStore } from '../../../../stores/shared-store'
|
|
4
4
|
import EditorAccordion from '../EditorAccordion.vue'
|
|
5
|
-
import PageBuilderClass from '../../../../composables/PageBuilderClass.ts'
|
|
6
5
|
import tailwindBorderRadius from '../../../../utils/builder/tailwind-border-radius'
|
|
6
|
+
import { getPageBuilder } from '../../../../composables/builderInstance'
|
|
7
|
+
const pageBuilderService = getPageBuilder()
|
|
7
8
|
|
|
8
|
-
// Use shared store instance
|
|
9
9
|
const pageBuilderStateStore = sharedPageBuilderStore
|
|
10
10
|
|
|
11
|
-
const pageBuilderClass = new PageBuilderClass(pageBuilderStateStore)
|
|
12
11
|
const borderRadiusGlobal = ref(null)
|
|
13
12
|
const borderRadiusTopLeft = ref(null)
|
|
14
13
|
const borderRadiusTopRight = ref(null)
|
|
@@ -34,7 +33,7 @@ watch(
|
|
|
34
33
|
getBorderRadiusGlobal,
|
|
35
34
|
async (newValue) => {
|
|
36
35
|
borderRadiusGlobal.value = newValue
|
|
37
|
-
await
|
|
36
|
+
await pageBuilderService.initializeElementStyles()
|
|
38
37
|
},
|
|
39
38
|
{ immediate: true },
|
|
40
39
|
)
|
|
@@ -42,7 +41,7 @@ watch(
|
|
|
42
41
|
getBorderRadiusTopLeft,
|
|
43
42
|
async (newValue) => {
|
|
44
43
|
borderRadiusTopLeft.value = newValue
|
|
45
|
-
await
|
|
44
|
+
await pageBuilderService.initializeElementStyles()
|
|
46
45
|
},
|
|
47
46
|
{ immediate: true },
|
|
48
47
|
)
|
|
@@ -50,7 +49,7 @@ watch(
|
|
|
50
49
|
getBorderRadiusTopRight,
|
|
51
50
|
async (newValue) => {
|
|
52
51
|
borderRadiusTopRight.value = newValue
|
|
53
|
-
await
|
|
52
|
+
await pageBuilderService.initializeElementStyles()
|
|
54
53
|
},
|
|
55
54
|
{ immediate: true },
|
|
56
55
|
)
|
|
@@ -58,7 +57,7 @@ watch(
|
|
|
58
57
|
getBorderRadiusBottomleft,
|
|
59
58
|
async (newValue) => {
|
|
60
59
|
borderRadiusBottomleft.value = newValue
|
|
61
|
-
await
|
|
60
|
+
await pageBuilderService.initializeElementStyles()
|
|
62
61
|
},
|
|
63
62
|
{ immediate: true },
|
|
64
63
|
)
|
|
@@ -66,7 +65,7 @@ watch(
|
|
|
66
65
|
getBorderRadiusBottomRight,
|
|
67
66
|
async (newValue) => {
|
|
68
67
|
borderRadiusBottomRight.value = newValue
|
|
69
|
-
await
|
|
68
|
+
await pageBuilderService.initializeElementStyles()
|
|
70
69
|
},
|
|
71
70
|
{ immediate: true },
|
|
72
71
|
)
|
|
@@ -82,7 +81,7 @@ watch(
|
|
|
82
81
|
<select
|
|
83
82
|
v-model="borderRadiusGlobal"
|
|
84
83
|
class="pbx-myPrimarySelect"
|
|
85
|
-
@change="
|
|
84
|
+
@change="pageBuilderService.handleBorderRadiusGlobal(borderRadiusGlobal)"
|
|
86
85
|
>
|
|
87
86
|
<option disabled value="">Select</option>
|
|
88
87
|
<option
|
|
@@ -99,7 +98,7 @@ watch(
|
|
|
99
98
|
<select
|
|
100
99
|
v-model="borderRadiusTopLeft"
|
|
101
100
|
class="pbx-myPrimarySelect"
|
|
102
|
-
@change="
|
|
101
|
+
@change="pageBuilderService.handleBorderRadiusTopLeft(borderRadiusTopLeft)"
|
|
103
102
|
>
|
|
104
103
|
<option disabled value="">Select</option>
|
|
105
104
|
<option
|
|
@@ -115,7 +114,7 @@ watch(
|
|
|
115
114
|
<select
|
|
116
115
|
v-model="borderRadiusTopRight"
|
|
117
116
|
class="pbx-myPrimarySelect"
|
|
118
|
-
@change="
|
|
117
|
+
@change="pageBuilderService.handleBorderRadiusTopRight(borderRadiusTopRight)"
|
|
119
118
|
>
|
|
120
119
|
<option disabled value="">Select</option>
|
|
121
120
|
<option
|
|
@@ -131,7 +130,7 @@ watch(
|
|
|
131
130
|
<select
|
|
132
131
|
v-model="borderRadiusBottomleft"
|
|
133
132
|
class="pbx-myPrimarySelect"
|
|
134
|
-
@change="
|
|
133
|
+
@change="pageBuilderService.handleBorderRadiusBottomleft(borderRadiusBottomleft)"
|
|
135
134
|
>
|
|
136
135
|
<option disabled value="">Select</option>
|
|
137
136
|
<option
|
|
@@ -147,7 +146,7 @@ watch(
|
|
|
147
146
|
<select
|
|
148
147
|
v-model="borderRadiusBottomRight"
|
|
149
148
|
class="pbx-myPrimarySelect"
|
|
150
|
-
@change="
|
|
149
|
+
@change="pageBuilderService.handleBorderRadiusBottomRight(borderRadiusBottomRight)"
|
|
151
150
|
>
|
|
152
151
|
<option disabled value="">Select</option>
|
|
153
152
|
<option
|