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