@myissue/vue-website-page-builder 3.3.87 → 3.3.89
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
|
@@ -97,7 +97,7 @@ const getSvgPreview = (title: string) => {
|
|
|
97
97
|
<template>
|
|
98
98
|
<div>
|
|
99
99
|
<template v-if="isLoading">
|
|
100
|
-
<div class="pbx-min-h-[
|
|
100
|
+
<div class="pbx-min-h-[90vh] pbx-h-[90vh]">
|
|
101
101
|
<div class="pbx-flex pbx-items-center pbx-justify-center">
|
|
102
102
|
<div
|
|
103
103
|
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]"
|
|
@@ -24,6 +24,7 @@ const getUnsplashImages = ref([])
|
|
|
24
24
|
|
|
25
25
|
const fetchUnsplash = async function () {
|
|
26
26
|
getIsLoading.value = true
|
|
27
|
+
await delay(300)
|
|
27
28
|
localStorage.setItem('unsplash-query', getSearchTerm.value)
|
|
28
29
|
localStorage.setItem('unsplash-page', getCurrentPageNumber.value)
|
|
29
30
|
|
|
@@ -120,8 +121,8 @@ onMounted(async () => {
|
|
|
120
121
|
</script>
|
|
121
122
|
|
|
122
123
|
<template>
|
|
123
|
-
<div
|
|
124
|
-
<div v-if="getIsLoading || isLoading">
|
|
124
|
+
<div>
|
|
125
|
+
<div v-if="getIsLoading || isLoading" class="pbx-min-h-[98vh] pbx-h-[98vh]">
|
|
125
126
|
<div class="pbx-flex pbx-items-center pbx-justify-center">
|
|
126
127
|
<div
|
|
127
128
|
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]"
|
|
@@ -142,12 +143,6 @@ onMounted(async () => {
|
|
|
142
143
|
}
|
|
143
144
|
"
|
|
144
145
|
>
|
|
145
|
-
<label
|
|
146
|
-
for="default-search"
|
|
147
|
-
class="pbx-mb-2 pbx-text-sm pbx-font-normal pbx-text-gray-900 pbx-sr-only dark:pbx-text-gray-300"
|
|
148
|
-
>{{ translate('Search') }}</label
|
|
149
|
-
>
|
|
150
|
-
|
|
151
146
|
<div class="pbx-mysearchBarWithOptions">
|
|
152
147
|
<div class="pbx-relative pbx-w-full">
|
|
153
148
|
<div
|
|
@@ -159,7 +154,7 @@ onMounted(async () => {
|
|
|
159
154
|
type="search"
|
|
160
155
|
id="search_query"
|
|
161
156
|
v-model="getSearchTerm"
|
|
162
|
-
class="pbx-myPrimarySearchInput"
|
|
157
|
+
class="pbx-myPrimarySearchInput pbx-w-full"
|
|
163
158
|
autocomplete="off"
|
|
164
159
|
:placeholder="translate('Search...')"
|
|
165
160
|
/>
|
|
@@ -282,12 +277,12 @@ onMounted(async () => {
|
|
|
282
277
|
</nav>
|
|
283
278
|
</div>
|
|
284
279
|
|
|
285
|
-
<div class="pbx-min-h-
|
|
280
|
+
<div class="pbx-min-h-full pbx-max-h-full pbx-flex pbx-gap-6">
|
|
286
281
|
<div class="pbx-w-9/12 pbx-pr-1 pbx-rounded-lg pbx-overflow-y-auto">
|
|
287
282
|
<div v-if="getUnsplashImages && getUnsplashImages.results">
|
|
288
283
|
<div
|
|
289
284
|
v-if="!getIsLoading"
|
|
290
|
-
class="pbx-grid md:pbx-grid-cols-4 sm:pbx-grid-cols-4 pbx-grid-cols-
|
|
285
|
+
class="pbx-grid lg:pbx-grid-cols-6 md:pbx-grid-cols-4 sm:pbx-grid-cols-4 pbx-grid-cols-3 pbx-gap-2"
|
|
291
286
|
>
|
|
292
287
|
<div
|
|
293
288
|
v-for="image in getUnsplashImages.results"
|
|
@@ -370,38 +365,21 @@ onMounted(async () => {
|
|
|
370
365
|
</div>
|
|
371
366
|
</dl>
|
|
372
367
|
</div>
|
|
368
|
+
<div class="pbx-flex pbx-justify-end pbx-mt-4 pbx-w-full">
|
|
369
|
+
<button
|
|
370
|
+
v-if="getApplyImageToSelection && typeof getApplyImageToSelection === 'string'"
|
|
371
|
+
@click="applySelectedImage(getApplyImageToSelection)"
|
|
372
|
+
class="pbx-myPrimaryButton"
|
|
373
|
+
type="button"
|
|
374
|
+
>
|
|
375
|
+
{{ translate(' Select image') }}
|
|
376
|
+
</button>
|
|
377
|
+
</div>
|
|
373
378
|
</div>
|
|
374
379
|
</template>
|
|
375
380
|
</aside>
|
|
376
381
|
</div>
|
|
377
382
|
<!-- Sidebar # end -->
|
|
378
|
-
|
|
379
|
-
<!-- Actions footer # start -->
|
|
380
|
-
<div
|
|
381
|
-
class="pbx-px-4 pbx-py-3 pbx-flex pbx-gap-2 pbx-border-solid pbx-border-t pbx-border-gray-200 pbx-mt-4 pbx-justify-end"
|
|
382
|
-
>
|
|
383
|
-
<button
|
|
384
|
-
@click="
|
|
385
|
-
() => {
|
|
386
|
-
closeMediaLibraryModal()
|
|
387
|
-
localStorage.setItem('unsplash-page', getCurrentPageNumber)
|
|
388
|
-
}
|
|
389
|
-
"
|
|
390
|
-
class="pbx-mySecondaryButton"
|
|
391
|
-
type="button"
|
|
392
|
-
>
|
|
393
|
-
{{ translate('Close') }}
|
|
394
|
-
</button>
|
|
395
|
-
<button
|
|
396
|
-
v-if="getApplyImageToSelection && typeof getApplyImageToSelection === 'string'"
|
|
397
|
-
@click="applySelectedImage(getApplyImageToSelection)"
|
|
398
|
-
class="pbx-myPrimaryButton"
|
|
399
|
-
type="button"
|
|
400
|
-
>
|
|
401
|
-
{{ translate(' Select image') }}
|
|
402
|
-
</button>
|
|
403
|
-
</div>
|
|
404
|
-
<!-- Actions footer # end -->
|
|
405
383
|
</div>
|
|
406
384
|
<div>
|
|
407
385
|
<button class="pbx-sr-only">Focusable fallback</button>
|