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