@myissue/vue-website-page-builder 3.3.86 → 3.3.88
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 +501 -502
- package/dist/vue-website-page-builder.umd.cjs +7 -7
- package/package.json +1 -1
- package/src/Components/Modals/BuilderComponents.vue +1 -1
- package/src/Components/Modals/ModalBuilder.vue +1 -1
- package/src/tests/DefaultComponents/DefaultBuilderComponents.vue +75 -67
- package/src/tests/TestComponents/DemoUnsplash.vue +232 -243
|
@@ -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,281 +121,269 @@ onMounted(async () => {
|
|
|
120
121
|
</script>
|
|
121
122
|
|
|
122
123
|
<template>
|
|
123
|
-
<div
|
|
124
|
-
<div class="pbx-
|
|
125
|
-
<div
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
<span
|
|
129
|
-
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)]"
|
|
130
|
-
>{{ translate('Loading...') }}</span
|
|
124
|
+
<div>
|
|
125
|
+
<div v-if="getIsLoading || isLoading" class="pbx-min-h-[98vh] pbx-h-[98vh]">
|
|
126
|
+
<div class="pbx-flex pbx-items-center pbx-justify-center">
|
|
127
|
+
<div
|
|
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]"
|
|
131
129
|
>
|
|
130
|
+
<span
|
|
131
|
+
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)]"
|
|
132
|
+
>{{ translate('Loading...') }}</span
|
|
133
|
+
>
|
|
134
|
+
</div>
|
|
132
135
|
</div>
|
|
133
136
|
</div>
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
"
|
|
143
|
-
>
|
|
144
|
-
<label
|
|
145
|
-
for="default-search"
|
|
146
|
-
class="pbx-mb-2 pbx-text-sm pbx-font-normal pbx-text-gray-900 pbx-sr-only dark:pbx-text-gray-300"
|
|
147
|
-
>{{ translate('Search') }}</label
|
|
137
|
+
<div v-if="!isLoading && !getIsLoading">
|
|
138
|
+
<form
|
|
139
|
+
@submit.prevent="
|
|
140
|
+
() => {
|
|
141
|
+
getCurrentPageNumber = 1
|
|
142
|
+
fetchUnsplash()
|
|
143
|
+
}
|
|
144
|
+
"
|
|
148
145
|
>
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
146
|
+
<div class="pbx-mysearchBarWithOptions">
|
|
147
|
+
<div class="pbx-relative pbx-w-full">
|
|
148
|
+
<div
|
|
149
|
+
class="pbx-flex pbx-absolute pbx-inset-y-0 pbx-left-0 pbx-items-center pbx-pl-3 pbx-pointer-events-none"
|
|
150
|
+
>
|
|
151
|
+
<span class="material-symbols-outlined"> search </span>
|
|
152
|
+
</div>
|
|
153
|
+
<input
|
|
154
|
+
type="search"
|
|
155
|
+
id="search_query"
|
|
156
|
+
v-model="getSearchTerm"
|
|
157
|
+
class="pbx-myPrimarySearchInput pbx-w-full"
|
|
158
|
+
autocomplete="off"
|
|
159
|
+
:placeholder="translate('Search...')"
|
|
160
|
+
/>
|
|
156
161
|
</div>
|
|
157
|
-
<input
|
|
158
|
-
type="search"
|
|
159
|
-
id="search_query"
|
|
160
|
-
v-model="getSearchTerm"
|
|
161
|
-
class="pbx-myPrimarySearchInput"
|
|
162
|
-
autocomplete="off"
|
|
163
|
-
:placeholder="translate('Search...')"
|
|
164
|
-
/>
|
|
165
|
-
</div>
|
|
166
162
|
|
|
167
|
-
<button
|
|
168
|
-
@click="
|
|
169
|
-
() => {
|
|
170
|
-
getCurrentPageNumber = 1
|
|
171
|
-
fetchUnsplash()
|
|
172
|
-
}
|
|
173
|
-
"
|
|
174
|
-
type="submit"
|
|
175
|
-
class="pbx-myPrimaryTag pbx-break-keep pbx-mr-4"
|
|
176
|
-
>
|
|
177
|
-
{{ translate('Search') }}
|
|
178
|
-
</button>
|
|
179
|
-
</div>
|
|
180
|
-
</form>
|
|
181
|
-
<div class="pbx-mt-2">
|
|
182
|
-
<div
|
|
183
|
-
v-if="getUnsplashImages && getUnsplashImages.results"
|
|
184
|
-
class="pbx-flex lg:pbx-justify-between pbx-justify-end pbx-items-center pbx-gap-2 pbx-py-2 pbx-px-2 pbx-mb-1 pbx-rounded-full pbx-border-solid pbx-border pbx-border-gray-200 pbx-shadow-sm"
|
|
185
|
-
>
|
|
186
|
-
<div class="lg:pbx-flex pbx-hidden pbx-justify-left pbx-items-center pbx-gap-2">
|
|
187
163
|
<button
|
|
188
|
-
@click="
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
{{ translate('Landscape') }}
|
|
197
|
-
</button>
|
|
198
|
-
<button
|
|
199
|
-
@click="searchByOrientation('portrait')"
|
|
200
|
-
type="button"
|
|
201
|
-
class="pbx-myPrimaryTag"
|
|
202
|
-
:class="{
|
|
203
|
-
'pbx-bg-myPrimaryBrandColor pbx-text-white': getOrientationValue === 'portrait',
|
|
204
|
-
'': getOrientationValue !== 'portrait',
|
|
205
|
-
}"
|
|
206
|
-
>
|
|
207
|
-
{{ translate('Portrait') }}
|
|
208
|
-
</button>
|
|
209
|
-
<button
|
|
210
|
-
@click="searchByOrientation('squarish')"
|
|
211
|
-
type="button"
|
|
212
|
-
class="pbx-myPrimaryTag"
|
|
213
|
-
:class="{
|
|
214
|
-
'pbx-bg-myPrimaryBrandColor pbx-text-white': getOrientationValue === 'squarish',
|
|
215
|
-
'': getOrientationValue !== 'squarish',
|
|
216
|
-
}"
|
|
164
|
+
@click="
|
|
165
|
+
() => {
|
|
166
|
+
getCurrentPageNumber = 1
|
|
167
|
+
fetchUnsplash()
|
|
168
|
+
}
|
|
169
|
+
"
|
|
170
|
+
type="submit"
|
|
171
|
+
class="pbx-myPrimaryTag pbx-break-keep pbx-mr-4"
|
|
217
172
|
>
|
|
218
|
-
{{ translate('
|
|
173
|
+
{{ translate('Search') }}
|
|
219
174
|
</button>
|
|
220
|
-
|
|
221
|
-
<svg
|
|
222
|
-
@click="searchByOrientation(null)"
|
|
223
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
224
|
-
fill="none"
|
|
225
|
-
viewBox="0 0 24 24"
|
|
226
|
-
stroke-width="2"
|
|
227
|
-
stroke="currentColor"
|
|
228
|
-
class="pbx-w-4 pbx-h-4 pbx-cursor-pointer"
|
|
229
|
-
>
|
|
230
|
-
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" />
|
|
231
|
-
</svg>
|
|
232
175
|
</div>
|
|
176
|
+
</form>
|
|
177
|
+
<div class="pbx-mt-2">
|
|
178
|
+
<div
|
|
179
|
+
v-if="getUnsplashImages && getUnsplashImages.results"
|
|
180
|
+
class="pbx-flex lg:pbx-justify-between pbx-justify-end pbx-items-center pbx-gap-2 pbx-py-2 pbx-px-2 pbx-mb-1 pbx-rounded-full pbx-border-solid pbx-border pbx-border-gray-200 pbx-shadow-sm"
|
|
181
|
+
>
|
|
182
|
+
<div class="lg:pbx-flex pbx-hidden pbx-justify-left pbx-items-center pbx-gap-2">
|
|
183
|
+
<button
|
|
184
|
+
@click="searchByOrientation('landscape')"
|
|
185
|
+
type="button"
|
|
186
|
+
class="pbx-myPrimaryTag"
|
|
187
|
+
:class="{
|
|
188
|
+
'pbx-bg-myPrimaryBrandColor pbx-text-white': getOrientationValue === 'landscape',
|
|
189
|
+
'': getOrientationValue !== 'landscape',
|
|
190
|
+
}"
|
|
191
|
+
>
|
|
192
|
+
{{ translate('Landscape') }}
|
|
193
|
+
</button>
|
|
194
|
+
<button
|
|
195
|
+
@click="searchByOrientation('portrait')"
|
|
196
|
+
type="button"
|
|
197
|
+
class="pbx-myPrimaryTag"
|
|
198
|
+
:class="{
|
|
199
|
+
'pbx-bg-myPrimaryBrandColor pbx-text-white': getOrientationValue === 'portrait',
|
|
200
|
+
'': getOrientationValue !== 'portrait',
|
|
201
|
+
}"
|
|
202
|
+
>
|
|
203
|
+
{{ translate('Portrait') }}
|
|
204
|
+
</button>
|
|
205
|
+
<button
|
|
206
|
+
@click="searchByOrientation('squarish')"
|
|
207
|
+
type="button"
|
|
208
|
+
class="pbx-myPrimaryTag"
|
|
209
|
+
:class="{
|
|
210
|
+
'pbx-bg-myPrimaryBrandColor pbx-text-white': getOrientationValue === 'squarish',
|
|
211
|
+
'': getOrientationValue !== 'squarish',
|
|
212
|
+
}"
|
|
213
|
+
>
|
|
214
|
+
{{ translate('Squarish') }}
|
|
215
|
+
</button>
|
|
233
216
|
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
class="pbx-flex pbx-flex-1 pbx-justify-between sm:pbx-justify-end pbx-items-center pbx-gap-2"
|
|
243
|
-
>
|
|
244
|
-
<span
|
|
245
|
-
v-if="Number(getCurrentPageNumber) !== 1"
|
|
246
|
-
class="pbx-myPrimaryParagraph pbx-text-xs pbx-italic pbx-pr-2 pbx-pl-1 pbx-cursor-pointer pbx-underline"
|
|
247
|
-
@click="nextPage(Number((getCurrentPageNumber = 1)))"
|
|
217
|
+
<svg
|
|
218
|
+
@click="searchByOrientation(null)"
|
|
219
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
220
|
+
fill="none"
|
|
221
|
+
viewBox="0 0 24 24"
|
|
222
|
+
stroke-width="2"
|
|
223
|
+
stroke="currentColor"
|
|
224
|
+
class="pbx-w-4 pbx-h-4 pbx-cursor-pointer"
|
|
248
225
|
>
|
|
249
|
-
|
|
250
|
-
</
|
|
226
|
+
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" />
|
|
227
|
+
</svg>
|
|
251
228
|
</div>
|
|
252
|
-
<button
|
|
253
|
-
v-if="Number(getCurrentPageNumber) > 1"
|
|
254
|
-
:disabled="Number(getCurrentPageNumber) < 1"
|
|
255
|
-
class="pbx-myPrimaryTag"
|
|
256
|
-
@click="previousPage(Number(getCurrentPageNumber--))"
|
|
257
|
-
>
|
|
258
|
-
{{
|
|
259
|
-
`${translate('Prev')} ${Number(getCurrentPageNumber) > 0 ? Number(getCurrentPageNumber) - 1 : Number(getCurrentPageNumber) - 1}`
|
|
260
|
-
}}
|
|
261
|
-
</button>
|
|
262
229
|
|
|
263
|
-
<
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
<button
|
|
267
|
-
:disabled="Number(getCurrentPageNumber) >= getUnsplashImages.total_pages"
|
|
268
|
-
class="pbx-myPrimaryTag"
|
|
269
|
-
:class="{
|
|
270
|
-
'pbx-opacity-50': Number(getCurrentPageNumber) >= getUnsplashImages.total_pages,
|
|
271
|
-
}"
|
|
272
|
-
@click="nextPage(Number(getCurrentPageNumber++))"
|
|
230
|
+
<nav
|
|
231
|
+
class="pbx-flex pbx-items-center pbx-gap-2 pbx-justify-start"
|
|
232
|
+
aria-label="Pagination"
|
|
273
233
|
>
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
<div class="pbx-min-h-[33rem] pbx-max-h-[33rem] pbx-flex pbx-gap-6">
|
|
282
|
-
<div class="pbx-w-9/12 pbx-pr-1 pbx-rounded-lg pbx-overflow-y-auto">
|
|
283
|
-
<div v-if="getUnsplashImages && getUnsplashImages.results">
|
|
234
|
+
<p class="pbx-myPrimaryParagraph pbx-text-xs pbx-italic">
|
|
235
|
+
{{ translate('Total pages') }} {{ getUnsplashImages.total_pages }}
|
|
236
|
+
</p>
|
|
237
|
+
<p class="pbx-myPrimaryParagraph pbx-text-xs pbx-italic">
|
|
238
|
+
{{ translate('Images') }} {{ getUnsplashImages.total }}
|
|
239
|
+
</p>
|
|
284
240
|
<div
|
|
285
|
-
|
|
286
|
-
class="pbx-grid md:pbx-grid-cols-4 sm:pbx-grid-cols-4 pbx-grid-cols-2 pbx-gap-2"
|
|
241
|
+
class="pbx-flex pbx-flex-1 pbx-justify-between sm:pbx-justify-end pbx-items-center pbx-gap-2"
|
|
287
242
|
>
|
|
288
|
-
<
|
|
289
|
-
v-
|
|
290
|
-
|
|
291
|
-
@click="
|
|
292
|
-
class="pbx-border-solid pbx-border pbx-border-gray-200 pbx-my-2 pbx-px-2 pbx-p-2 pbx-cursor-pointer"
|
|
243
|
+
<span
|
|
244
|
+
v-if="Number(getCurrentPageNumber) !== 1"
|
|
245
|
+
class="pbx-myPrimaryParagraph pbx-text-xs pbx-italic pbx-pr-2 pbx-pl-1 pbx-cursor-pointer pbx-underline"
|
|
246
|
+
@click="nextPage(Number((getCurrentPageNumber = 1)))"
|
|
293
247
|
>
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
class="pbx-group pbx-block pbx-w-full pbx-overflow-hidden pbx-cursor-pointer"
|
|
297
|
-
:src="image.urls.thumb"
|
|
298
|
-
/>
|
|
299
|
-
<p class="pbx-myPrimaryParagraph pbx-text-xs pbx-font-normal pbx-mt-2">
|
|
300
|
-
{{ translate('By:') }} {{ image.user.name }}
|
|
301
|
-
</p>
|
|
302
|
-
</div>
|
|
248
|
+
{{ translate('First page') }}
|
|
249
|
+
</span>
|
|
303
250
|
</div>
|
|
304
|
-
|
|
251
|
+
<button
|
|
252
|
+
v-if="Number(getCurrentPageNumber) > 1"
|
|
253
|
+
:disabled="Number(getCurrentPageNumber) < 1"
|
|
254
|
+
class="pbx-myPrimaryTag"
|
|
255
|
+
@click="previousPage(Number(getCurrentPageNumber--))"
|
|
256
|
+
>
|
|
257
|
+
{{
|
|
258
|
+
`${translate('Prev')} ${Number(getCurrentPageNumber) > 0 ? Number(getCurrentPageNumber) - 1 : Number(getCurrentPageNumber) - 1}`
|
|
259
|
+
}}
|
|
260
|
+
</button>
|
|
305
261
|
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
262
|
+
<span class="pbx-myPrimaryTag pbx-py-2.5 pbx-px-4">
|
|
263
|
+
{{ Number(getCurrentPageNumber) }}
|
|
264
|
+
</span>
|
|
265
|
+
<button
|
|
266
|
+
:disabled="Number(getCurrentPageNumber) >= getUnsplashImages.total_pages"
|
|
267
|
+
class="pbx-myPrimaryTag"
|
|
268
|
+
:class="{
|
|
269
|
+
'pbx-opacity-50': Number(getCurrentPageNumber) >= getUnsplashImages.total_pages,
|
|
270
|
+
}"
|
|
271
|
+
@click="nextPage(Number(getCurrentPageNumber++))"
|
|
272
|
+
>
|
|
273
|
+
{{
|
|
274
|
+
`${translate('Next')} ${Number(getCurrentPageNumber) > 0 ? Number(getCurrentPageNumber) + 1 : Number(getCurrentPageNumber) + 1}`
|
|
275
|
+
}}
|
|
276
|
+
</button>
|
|
277
|
+
</nav>
|
|
320
278
|
</div>
|
|
321
|
-
|
|
322
|
-
<
|
|
323
|
-
<
|
|
324
|
-
<div
|
|
279
|
+
|
|
280
|
+
<div class="pbx-min-h-full pbx-max-h-full pbx-flex pbx-gap-6">
|
|
281
|
+
<div class="pbx-w-9/12 pbx-pr-1 pbx-rounded-lg pbx-overflow-y-auto">
|
|
282
|
+
<div v-if="getUnsplashImages && getUnsplashImages.results">
|
|
325
283
|
<div
|
|
326
|
-
|
|
284
|
+
v-if="!getIsLoading"
|
|
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"
|
|
327
286
|
>
|
|
328
|
-
<
|
|
329
|
-
|
|
330
|
-
|
|
287
|
+
<div
|
|
288
|
+
v-for="image in getUnsplashImages.results"
|
|
289
|
+
:key="image.id"
|
|
290
|
+
@click="handleImageClick({ url: image.urls.regular, user: image.user.name })"
|
|
291
|
+
class="pbx-border-solid pbx-border pbx-border-gray-200 pbx-my-2 pbx-px-2 pbx-p-2 pbx-cursor-pointer"
|
|
331
292
|
>
|
|
293
|
+
<img
|
|
294
|
+
:alt="image.user.name"
|
|
295
|
+
class="pbx-group pbx-block pbx-w-full pbx-overflow-hidden pbx-cursor-pointer"
|
|
296
|
+
:src="image.urls.thumb"
|
|
297
|
+
/>
|
|
298
|
+
<p class="pbx-myPrimaryParagraph pbx-text-xs pbx-font-normal pbx-mt-2">
|
|
299
|
+
{{ translate('By:') }} {{ image.user.name }}
|
|
300
|
+
</p>
|
|
301
|
+
</div>
|
|
332
302
|
</div>
|
|
333
303
|
</div>
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
<
|
|
343
|
-
<
|
|
344
|
-
{{ translate('
|
|
345
|
-
</
|
|
346
|
-
<
|
|
347
|
-
|
|
304
|
+
|
|
305
|
+
<div
|
|
306
|
+
v-if="
|
|
307
|
+
getUnsplashImages &&
|
|
308
|
+
getUnsplashImages.results &&
|
|
309
|
+
getUnsplashImages.results.length < 1
|
|
310
|
+
"
|
|
311
|
+
>
|
|
312
|
+
<p class="pbx-myPrimaryParagraph pbx-py-4 pbx-px-4">
|
|
313
|
+
<span v-if="getCurrentPageNumber === 1">
|
|
314
|
+
{{ translate('We did not find any images. Make a new search.') }}
|
|
315
|
+
</span>
|
|
316
|
+
<span
|
|
317
|
+
v-if="getCurrentPageNumber > 1"
|
|
318
|
+
@click="nextPage(1)"
|
|
319
|
+
class="pbx-myPrimaryLink"
|
|
348
320
|
>
|
|
349
|
-
|
|
350
|
-
|
|
321
|
+
{{ translate('No results on current page. Navigate to First Page.') }}
|
|
322
|
+
</span>
|
|
323
|
+
</p>
|
|
324
|
+
</div>
|
|
325
|
+
</div>
|
|
326
|
+
<!-- Sidebar # start -->
|
|
327
|
+
<aside class="pbx-w-3/12 pbx-overflow-y-auto">
|
|
328
|
+
<template v-if="getIsLoadingImage">
|
|
329
|
+
<div class="pbx-flex pbx-items-center pbx-justify-center pbx-mt-4">
|
|
330
|
+
<div
|
|
331
|
+
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]"
|
|
332
|
+
>
|
|
333
|
+
<span
|
|
334
|
+
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)]"
|
|
335
|
+
>{{ translate('Loading...') }}</span
|
|
351
336
|
>
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
337
|
+
</div>
|
|
338
|
+
</div>
|
|
339
|
+
</template>
|
|
340
|
+
<template v-if="getApplyImageToSelection && !getIsLoadingImage">
|
|
341
|
+
<img
|
|
342
|
+
class="pbx-mx-auto pbx-block pbx-w-full pbx-object-cover pbx-object-center pbx-cursor-pointer"
|
|
343
|
+
:src="`${getApplyImageToSelection}`"
|
|
344
|
+
alt="file"
|
|
345
|
+
/>
|
|
346
|
+
<div class="md:pbx-px-3 pbx-px-2">
|
|
347
|
+
<div>
|
|
348
|
+
<p class="pbx-myPrimaryParagraph pbx-font-normal pbx-text-gray-900 pbx-pt-4">
|
|
349
|
+
{{ translate('Information') }}
|
|
350
|
+
</p>
|
|
351
|
+
<dl
|
|
352
|
+
class="pbx-mt-2 pbx-border-t pbx-border-b pbx-border-gray-200 pbx-divide-y pbx-divide-gray-200"
|
|
357
353
|
>
|
|
358
|
-
<
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
354
|
+
<div
|
|
355
|
+
class="pbx-py-3 pbx-flex pbx-justify-between pbx-text-sm pbx-font-normal pbx-items-center"
|
|
356
|
+
>
|
|
357
|
+
<dt class="pbx-text-gray-500">{{ translate('From:') }}</dt>
|
|
358
|
+
<dd class="pbx-text-gray-900">Unsplash</dd>
|
|
359
|
+
</div>
|
|
360
|
+
<div
|
|
361
|
+
class="pbx-py-3 pbx-flex pbx-justify-between pbx-text-sm pbx-font-normal pbx-items-center"
|
|
362
|
+
>
|
|
363
|
+
<dt class="pbx-text-gray-500">{{ translate('By:') }}</dt>
|
|
364
|
+
<dd class="pbx-text-gray-900">{{ getCurrentUser }}</dd>
|
|
365
|
+
</div>
|
|
366
|
+
</dl>
|
|
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>
|
|
362
378
|
</div>
|
|
363
|
-
</
|
|
364
|
-
</
|
|
365
|
-
</
|
|
379
|
+
</template>
|
|
380
|
+
</aside>
|
|
381
|
+
</div>
|
|
382
|
+
<!-- Sidebar # end -->
|
|
366
383
|
</div>
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
<!-- Actions footer # start -->
|
|
370
|
-
<div
|
|
371
|
-
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"
|
|
372
|
-
>
|
|
373
|
-
<button
|
|
374
|
-
@click="
|
|
375
|
-
() => {
|
|
376
|
-
closeMediaLibraryModal()
|
|
377
|
-
localStorage.setItem('unsplash-page', getCurrentPageNumber)
|
|
378
|
-
}
|
|
379
|
-
"
|
|
380
|
-
class="pbx-mySecondaryButton"
|
|
381
|
-
type="button"
|
|
382
|
-
>
|
|
383
|
-
{{ translate('Close') }}
|
|
384
|
-
</button>
|
|
385
|
-
<button
|
|
386
|
-
v-if="getApplyImageToSelection && typeof getApplyImageToSelection === 'string'"
|
|
387
|
-
@click="applySelectedImage(getApplyImageToSelection)"
|
|
388
|
-
class="pbx-myPrimaryButton"
|
|
389
|
-
type="button"
|
|
390
|
-
>
|
|
391
|
-
{{ translate(' Select image') }}
|
|
392
|
-
</button>
|
|
384
|
+
<div>
|
|
385
|
+
<button class="pbx-sr-only">Focusable fallback</button>
|
|
393
386
|
</div>
|
|
394
|
-
<!-- Actions footer # end -->
|
|
395
|
-
</div>
|
|
396
|
-
<div>
|
|
397
|
-
<button class="pbx-sr-only">Focusable fallback</button>
|
|
398
387
|
</div>
|
|
399
388
|
</div>
|
|
400
389
|
</template>
|