@designcrowd/library.brand-page 5.17.21-kp-1 → 5.17.21
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/lib/src/{CreatedOnBrandCrowd-de-de-tDfigFsQ.js → CreatedOnBrandCrowd-de-de-Brtp2yWB.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-CdzRfLTq.js → CreatedOnBrandCrowd-en-us-BIJ5VoX4.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-DpBKI4Qi.js → CreatedOnBrandCrowd-es-es-JrKK9K0u.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-8BjTrEak.js → CreatedOnBrandCrowd-fr-ca-D_HvOZe-.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-8BjTrEak.js → CreatedOnBrandCrowd-fr-fr-D_HvOZe-.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-kxnznjPB.js → CreatedOnBrandCrowd-pt-br-SSLb0vlp.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-kxnznjPB.js → CreatedOnBrandCrowd-pt-pt-SSLb0vlp.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-YLebq5nt.js → CreatedOnDcom-de-de-BG39ozFo.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-BCkkX4NC.js → CreatedOnDcom-en-us-D2NzqECZ.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-BlIwjtBb.js → CreatedOnDcom-es-es-C55r2Lb4.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-Cax8GNl7.js → CreatedOnDcom-fr-ca-Bj-sAaJI.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-CKYbDU0-.js → CreatedOnDcom-fr-fr-D8l0r-Tc.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-D_3XGCdM.js → CreatedOnDcom-pt-br-CXHC6E1h.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-D0o7kehp.js → CreatedOnDcom-pt-pt-2dMvgnyi.js} +1 -1
- package/lib/src/brand-page/components/image-gallery/ImageGalleryModal.mixin.d.ts +1 -4
- package/lib/src/brand-page/components/image-gallery/ImageGalleryModal.mixin.js +4 -48
- package/lib/src/css/library.brand-page-brandCrowd.min.css +6 -10
- package/lib/src/css/library.brand-page-brandPage.min.css +6 -10
- package/lib/src/css/library.brand-page-designCom.min.css +6 -10
- package/lib/src/css/library.brand-page-preview.min.css +6 -10
- package/lib/src/index.mjs +1 -1
- package/lib/src/{lib--fXSGh_Q.js → lib-CrBvj1a5.js} +3515 -3538
- package/package.json +1 -1
- package/src/brand-page/components/image-gallery/ImageGalleryModal.mixin.ts +6 -61
- package/src/brand-page/components/image-gallery/ImageGalleryModal.vue +4 -17
|
@@ -30,14 +30,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
30
30
|
isImageModalLoading: boolean;
|
|
31
31
|
carouselImages: any[][] | undefined;
|
|
32
32
|
showControl: boolean;
|
|
33
|
-
carouselComponentRef: string;
|
|
34
33
|
}, {
|
|
35
34
|
isImageModalVisible(): boolean;
|
|
36
35
|
altText(): string;
|
|
37
36
|
showCarouselControls(): boolean;
|
|
38
37
|
navigationUniqueIndexer(): string;
|
|
39
38
|
swiperOptions(): {
|
|
40
|
-
initialSlide:
|
|
39
|
+
initialSlide: number;
|
|
41
40
|
loop: boolean;
|
|
42
41
|
slidesPerGroup: number;
|
|
43
42
|
slidesPerView: number;
|
|
@@ -59,8 +58,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
59
58
|
imageLoading(): void;
|
|
60
59
|
checkImageLoading(isLoading: any): void;
|
|
61
60
|
onImageModalClose(): void;
|
|
62
|
-
isSlideInRenderWindow(index: number): boolean;
|
|
63
|
-
onCarouselLoaded(): void;
|
|
64
61
|
}, import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
65
62
|
isPreview: {
|
|
66
63
|
type: BooleanConstructor;
|
|
@@ -2,15 +2,6 @@ import { defineComponent } from 'vue';
|
|
|
2
2
|
import ComponentCommonMixin from '../mixins/component-common.mixin';
|
|
3
3
|
import ImageModalMixin from '../mixins/image-modal.mixin';
|
|
4
4
|
import cloneDeep from 'lodash.clonedeep';
|
|
5
|
-
// Number of slides on each side of the current slide to keep mounted with a
|
|
6
|
-
// real <img>. Slides outside this window render an empty placeholder so the
|
|
7
|
-
// browser does not request full-resolution images for the entire gallery on
|
|
8
|
-
// modal open — required to prevent mobile tab crashes on large galleries.
|
|
9
|
-
const IMAGE_RENDER_WINDOW = 2;
|
|
10
|
-
// Swiper `loop: true` duplicates slide DOM nodes at both ends. For large
|
|
11
|
-
// galleries this doubles the DOM cost without user benefit, so we disable
|
|
12
|
-
// loop above this threshold.
|
|
13
|
-
const LOOP_DISABLED_ABOVE = 20;
|
|
14
5
|
export default defineComponent({
|
|
15
6
|
mixins: [ComponentCommonMixin, ImageModalMixin],
|
|
16
7
|
props: {
|
|
@@ -46,7 +37,6 @@ export default defineComponent({
|
|
|
46
37
|
isImageModalLoading: false,
|
|
47
38
|
carouselImages: [],
|
|
48
39
|
showControl: true,
|
|
49
|
-
carouselComponentRef: 'image-gallery-carousel',
|
|
50
40
|
};
|
|
51
41
|
},
|
|
52
42
|
computed: {
|
|
@@ -69,8 +59,8 @@ export default defineComponent({
|
|
|
69
59
|
},
|
|
70
60
|
swiperOptions() {
|
|
71
61
|
return {
|
|
72
|
-
initialSlide:
|
|
73
|
-
loop: this.images.length > 1
|
|
62
|
+
initialSlide: 0,
|
|
63
|
+
loop: this.images.length > 1,
|
|
74
64
|
slidesPerGroup: 1,
|
|
75
65
|
slidesPerView: 1,
|
|
76
66
|
spaceBetween: 10,
|
|
@@ -99,6 +89,8 @@ export default defineComponent({
|
|
|
99
89
|
return;
|
|
100
90
|
}
|
|
101
91
|
this.isImageModalLoading = true;
|
|
92
|
+
this.swiperOptions.initialSlide = newIndex;
|
|
93
|
+
// this.$nextTick(() => this.checkImageModalImageComplete());
|
|
102
94
|
},
|
|
103
95
|
images: {
|
|
104
96
|
deep: true,
|
|
@@ -139,41 +131,5 @@ export default defineComponent({
|
|
|
139
131
|
onImageModalClose() {
|
|
140
132
|
this.$emit('close');
|
|
141
133
|
},
|
|
142
|
-
isSlideInRenderWindow(index) {
|
|
143
|
-
if (this.currentImageIndex === undefined) {
|
|
144
|
-
return false;
|
|
145
|
-
}
|
|
146
|
-
const total = this.images.length;
|
|
147
|
-
if (total === 0) {
|
|
148
|
-
return false;
|
|
149
|
-
}
|
|
150
|
-
const direct = Math.abs(index - this.currentImageIndex);
|
|
151
|
-
// For looped galleries, the shortest path between two slides may wrap
|
|
152
|
-
// around the end. Use whichever distance is smaller.
|
|
153
|
-
const wrapped = total - direct;
|
|
154
|
-
const distance = Math.min(direct, wrapped);
|
|
155
|
-
return distance <= IMAGE_RENDER_WINDOW;
|
|
156
|
-
},
|
|
157
|
-
onCarouselLoaded() {
|
|
158
|
-
// The shared Carousel doesn't emit slide-change events, so we reach
|
|
159
|
-
// through its ref to bind directly to the underlying Swiper instance.
|
|
160
|
-
// Keeps `currentImageIndex` in sync with user navigation (arrows,
|
|
161
|
-
// swipes, keyboard) so the render window slides with the user.
|
|
162
|
-
const carousel = this.$refs[this.carouselComponentRef];
|
|
163
|
-
const swiper = carousel?.swiper;
|
|
164
|
-
if (!swiper || typeof swiper.on !== 'function') {
|
|
165
|
-
return;
|
|
166
|
-
}
|
|
167
|
-
swiper.on('slideChange', () => {
|
|
168
|
-
// `realIndex` reflects the underlying slide index when loop mode
|
|
169
|
-
// duplicates slides; `activeIndex` would include those duplicates.
|
|
170
|
-
const next = typeof swiper.realIndex === 'number'
|
|
171
|
-
? swiper.realIndex
|
|
172
|
-
: swiper.activeIndex;
|
|
173
|
-
if (typeof next === 'number') {
|
|
174
|
-
this.currentImageIndex = next;
|
|
175
|
-
}
|
|
176
|
-
});
|
|
177
|
-
},
|
|
178
134
|
},
|
|
179
135
|
});
|
|
@@ -5990,27 +5990,23 @@ input[data-v-4cd691db]::-webkit-inner-spin-button {
|
|
|
5990
5990
|
min-height: 0 !important; /* fix masonry bottom gap */
|
|
5991
5991
|
}
|
|
5992
5992
|
|
|
5993
|
-
.c-image-gallery-modal[data-v-
|
|
5993
|
+
.c-image-gallery-modal[data-v-edfdf97d] .modal {
|
|
5994
5994
|
padding-top: 0px
|
|
5995
5995
|
}
|
|
5996
|
-
.c-image-gallery-modal[data-v-
|
|
5996
|
+
.c-image-gallery-modal[data-v-edfdf97d] .swiper {
|
|
5997
5997
|
padding-top: 4rem
|
|
5998
5998
|
}
|
|
5999
|
-
.c-image-gallery-modal[data-v-
|
|
5999
|
+
.c-image-gallery-modal[data-v-edfdf97d] .swiper-slide {
|
|
6000
6000
|
width: 100%
|
|
6001
6001
|
}
|
|
6002
|
-
.c-image-gallery-modal[data-v-
|
|
6003
|
-
.c-image-gallery-modal[data-v-
|
|
6002
|
+
.c-image-gallery-modal[data-v-edfdf97d] .carousel > div:first-child,
|
|
6003
|
+
.c-image-gallery-modal[data-v-edfdf97d] .swiper-container {
|
|
6004
6004
|
height: 100%
|
|
6005
6005
|
}
|
|
6006
|
-
.c-modal-image[data-v-
|
|
6006
|
+
.c-modal-image[data-v-edfdf97d] {
|
|
6007
6007
|
max-width: 100%;
|
|
6008
6008
|
max-height: 90vh
|
|
6009
6009
|
}
|
|
6010
|
-
.c-modal-image-placeholder[data-v-d308e332] {
|
|
6011
|
-
width: 100%;
|
|
6012
|
-
height: 90vh
|
|
6013
|
-
}
|
|
6014
6010
|
|
|
6015
6011
|
.c-image-gallery[data-v-5ed761de] {
|
|
6016
6012
|
--image-size: 8rem;
|
|
@@ -6308,27 +6308,23 @@ input[data-v-4cd691db]::-webkit-inner-spin-button {
|
|
|
6308
6308
|
min-height: 0 !important; /* fix masonry bottom gap */
|
|
6309
6309
|
}
|
|
6310
6310
|
|
|
6311
|
-
.c-image-gallery-modal[data-v-
|
|
6311
|
+
.c-image-gallery-modal[data-v-edfdf97d] .modal {
|
|
6312
6312
|
padding-top: 0px
|
|
6313
6313
|
}
|
|
6314
|
-
.c-image-gallery-modal[data-v-
|
|
6314
|
+
.c-image-gallery-modal[data-v-edfdf97d] .swiper {
|
|
6315
6315
|
padding-top: 4rem
|
|
6316
6316
|
}
|
|
6317
|
-
.c-image-gallery-modal[data-v-
|
|
6317
|
+
.c-image-gallery-modal[data-v-edfdf97d] .swiper-slide {
|
|
6318
6318
|
width: 100%
|
|
6319
6319
|
}
|
|
6320
|
-
.c-image-gallery-modal[data-v-
|
|
6321
|
-
.c-image-gallery-modal[data-v-
|
|
6320
|
+
.c-image-gallery-modal[data-v-edfdf97d] .carousel > div:first-child,
|
|
6321
|
+
.c-image-gallery-modal[data-v-edfdf97d] .swiper-container {
|
|
6322
6322
|
height: 100%
|
|
6323
6323
|
}
|
|
6324
|
-
.c-modal-image[data-v-
|
|
6324
|
+
.c-modal-image[data-v-edfdf97d] {
|
|
6325
6325
|
max-width: 100%;
|
|
6326
6326
|
max-height: 90vh
|
|
6327
6327
|
}
|
|
6328
|
-
.c-modal-image-placeholder[data-v-d308e332] {
|
|
6329
|
-
width: 100%;
|
|
6330
|
-
height: 90vh
|
|
6331
|
-
}
|
|
6332
6328
|
|
|
6333
6329
|
.c-image-gallery[data-v-5ed761de] {
|
|
6334
6330
|
--image-size: 8rem;
|
|
@@ -6020,27 +6020,23 @@ input[data-v-4cd691db]::-webkit-inner-spin-button {
|
|
|
6020
6020
|
min-height: 0 !important; /* fix masonry bottom gap */
|
|
6021
6021
|
}
|
|
6022
6022
|
|
|
6023
|
-
.c-image-gallery-modal[data-v-
|
|
6023
|
+
.c-image-gallery-modal[data-v-edfdf97d] .modal {
|
|
6024
6024
|
padding-top: 0px
|
|
6025
6025
|
}
|
|
6026
|
-
.c-image-gallery-modal[data-v-
|
|
6026
|
+
.c-image-gallery-modal[data-v-edfdf97d] .swiper {
|
|
6027
6027
|
padding-top: 4rem
|
|
6028
6028
|
}
|
|
6029
|
-
.c-image-gallery-modal[data-v-
|
|
6029
|
+
.c-image-gallery-modal[data-v-edfdf97d] .swiper-slide {
|
|
6030
6030
|
width: 100%
|
|
6031
6031
|
}
|
|
6032
|
-
.c-image-gallery-modal[data-v-
|
|
6033
|
-
.c-image-gallery-modal[data-v-
|
|
6032
|
+
.c-image-gallery-modal[data-v-edfdf97d] .carousel > div:first-child,
|
|
6033
|
+
.c-image-gallery-modal[data-v-edfdf97d] .swiper-container {
|
|
6034
6034
|
height: 100%
|
|
6035
6035
|
}
|
|
6036
|
-
.c-modal-image[data-v-
|
|
6036
|
+
.c-modal-image[data-v-edfdf97d] {
|
|
6037
6037
|
max-width: 100%;
|
|
6038
6038
|
max-height: 90vh
|
|
6039
6039
|
}
|
|
6040
|
-
.c-modal-image-placeholder[data-v-d308e332] {
|
|
6041
|
-
width: 100%;
|
|
6042
|
-
height: 90vh
|
|
6043
|
-
}
|
|
6044
6040
|
|
|
6045
6041
|
.c-image-gallery[data-v-5ed761de] {
|
|
6046
6042
|
--image-size: 8rem;
|
|
@@ -5718,27 +5718,23 @@ input[data-v-4cd691db]::-webkit-inner-spin-button {
|
|
|
5718
5718
|
min-height: 0 !important; /* fix masonry bottom gap */
|
|
5719
5719
|
}
|
|
5720
5720
|
|
|
5721
|
-
.bp .c-image-gallery-modal[data-v-
|
|
5721
|
+
.bp .c-image-gallery-modal[data-v-edfdf97d] .modal {
|
|
5722
5722
|
padding-top: 0px
|
|
5723
5723
|
}
|
|
5724
|
-
.bp .c-image-gallery-modal[data-v-
|
|
5724
|
+
.bp .c-image-gallery-modal[data-v-edfdf97d] .swiper {
|
|
5725
5725
|
padding-top: 4rem
|
|
5726
5726
|
}
|
|
5727
|
-
.bp .c-image-gallery-modal[data-v-
|
|
5727
|
+
.bp .c-image-gallery-modal[data-v-edfdf97d] .swiper-slide {
|
|
5728
5728
|
width: 100%
|
|
5729
5729
|
}
|
|
5730
|
-
.bp .c-image-gallery-modal[data-v-
|
|
5731
|
-
.bp .c-image-gallery-modal[data-v-
|
|
5730
|
+
.bp .c-image-gallery-modal[data-v-edfdf97d] .carousel > div:first-child,
|
|
5731
|
+
.bp .c-image-gallery-modal[data-v-edfdf97d] .swiper-container {
|
|
5732
5732
|
height: 100%
|
|
5733
5733
|
}
|
|
5734
|
-
.bp .c-modal-image[data-v-
|
|
5734
|
+
.bp .c-modal-image[data-v-edfdf97d] {
|
|
5735
5735
|
max-width: 100%;
|
|
5736
5736
|
max-height: 90vh
|
|
5737
5737
|
}
|
|
5738
|
-
.bp .c-modal-image-placeholder[data-v-d308e332] {
|
|
5739
|
-
width: 100%;
|
|
5740
|
-
height: 90vh
|
|
5741
|
-
}
|
|
5742
5738
|
|
|
5743
5739
|
.bp .c-image-gallery[data-v-5ed761de] {
|
|
5744
5740
|
--image-size: 8rem;
|
package/lib/src/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as E, a as T, b as s, c as I, d as S, e as N, f as e, B as A, g as O, h as C, i as G, j as D, k as P, l as t, m as R, n as L, o as M, p as o, q as r, r as b, s as n, t as F, u as i, v as l, w as g, x as B, y as c, z as Y, C as U, D as d, E as u, F as H, G as p, H as y, I as K, J as k, K as m, L as V, M as X, N as h, O as v, P as W, Q as f, R as x, S as z, T as w, U as Z, V as j, W as Q, X as q, Y as J, Z as $, $ as aa, a0 as _a, a1 as Ea, a2 as Ta, a3 as sa, a4 as Ia, a5 as Sa, a6 as Na, a7 as ea, a8 as Aa, a9 as Oa, aa as Ca, ab as Ga, ac as Da, ad as Pa, ae as ta, af as Ra, ag as La, ah as Ma, ai as oa, aj as ra, ak as ba, al as na, am as Fa, an as ia, ao as la, ap as ga, aq as Ba, ar as ca, as as Ya, at as Ua, au as da, av as ua, aw as Ha, ax as pa, ay as ya, az as Ka, aA as ka, aB as ma, aC as Va, aD as Xa, aE as ha, aF as va, aG as Wa, aH as fa, aI as xa, aJ as za, aK as wa, aL as Za, aM as ja, aN as Qa, aO as qa, aP as Ja, aQ as $a, aR as a_, aS as __, aT as E_, aU as T_, aV as s_, aW as I_, aX as S_, aY as N_, aZ as e_, a_ as A_, a$ as O_, b0 as C_, b1 as G_, b2 as D_, b3 as P_, b4 as t_, b5 as R_, b6 as L_, b7 as M_, b8 as o_, b9 as r_, ba as b_, bb as n_, bc as F_, bd as i_, be as l_, bf as g_, bg as B_, bh as c_, bi as Y_, bj as U_, bk as d_, bl as u_, bm as H_, bn as p_, bo as y_, bp as K_, bq as k_, br as m_, bs as V_, bt as X_, bu as h_, bv as v_, bw as W_, bx as f_, by as x_, bz as z_, bA as w_, bB as Z_, bC as j_, bD as Q_, bE as q_, bF as J_, bG as $_, bH as aE, bI as _E, bJ as EE, bK as TE, bL as sE, bM as IE, bN as SE, bO as NE, bP as eE, bQ as AE, bR as OE, bS as CE, bT as GE, bU as DE, bV as PE, bW as tE, bX as RE, bY as LE, bZ as ME, b_ as oE, b$ as rE, c0 as bE, c1 as nE, c2 as FE, c3 as iE, c4 as lE, c5 as gE, c6 as BE, c7 as cE, c8 as YE, c9 as UE, ca as dE, cb as uE, cc as HE, cd as pE, ce as yE, cf as KE, cg as kE, ch as mE, ci as VE, cj as XE, ck as hE, cl as vE, cm as WE, cn as fE, co as xE } from "./lib
|
|
1
|
+
import { A as E, a as T, b as s, c as I, d as S, e as N, f as e, B as A, g as O, h as C, i as G, j as D, k as P, l as t, m as R, n as L, o as M, p as o, q as r, r as b, s as n, t as F, u as i, v as l, w as g, x as B, y as c, z as Y, C as U, D as d, E as u, F as H, G as p, H as y, I as K, J as k, K as m, L as V, M as X, N as h, O as v, P as W, Q as f, R as x, S as z, T as w, U as Z, V as j, W as Q, X as q, Y as J, Z as $, $ as aa, a0 as _a, a1 as Ea, a2 as Ta, a3 as sa, a4 as Ia, a5 as Sa, a6 as Na, a7 as ea, a8 as Aa, a9 as Oa, aa as Ca, ab as Ga, ac as Da, ad as Pa, ae as ta, af as Ra, ag as La, ah as Ma, ai as oa, aj as ra, ak as ba, al as na, am as Fa, an as ia, ao as la, ap as ga, aq as Ba, ar as ca, as as Ya, at as Ua, au as da, av as ua, aw as Ha, ax as pa, ay as ya, az as Ka, aA as ka, aB as ma, aC as Va, aD as Xa, aE as ha, aF as va, aG as Wa, aH as fa, aI as xa, aJ as za, aK as wa, aL as Za, aM as ja, aN as Qa, aO as qa, aP as Ja, aQ as $a, aR as a_, aS as __, aT as E_, aU as T_, aV as s_, aW as I_, aX as S_, aY as N_, aZ as e_, a_ as A_, a$ as O_, b0 as C_, b1 as G_, b2 as D_, b3 as P_, b4 as t_, b5 as R_, b6 as L_, b7 as M_, b8 as o_, b9 as r_, ba as b_, bb as n_, bc as F_, bd as i_, be as l_, bf as g_, bg as B_, bh as c_, bi as Y_, bj as U_, bk as d_, bl as u_, bm as H_, bn as p_, bo as y_, bp as K_, bq as k_, br as m_, bs as V_, bt as X_, bu as h_, bv as v_, bw as W_, bx as f_, by as x_, bz as z_, bA as w_, bB as Z_, bC as j_, bD as Q_, bE as q_, bF as J_, bG as $_, bH as aE, bI as _E, bJ as EE, bK as TE, bL as sE, bM as IE, bN as SE, bO as NE, bP as eE, bQ as AE, bR as OE, bS as CE, bT as GE, bU as DE, bV as PE, bW as tE, bX as RE, bY as LE, bZ as ME, b_ as oE, b$ as rE, c0 as bE, c1 as nE, c2 as FE, c3 as iE, c4 as lE, c5 as gE, c6 as BE, c7 as cE, c8 as YE, c9 as UE, ca as dE, cb as uE, cc as HE, cd as pE, ce as yE, cf as KE, cg as kE, ch as mE, ci as VE, cj as XE, ck as hE, cl as vE, cm as WE, cn as fE, co as xE } from "./lib-CrBvj1a5.js";
|
|
2
2
|
import { createPinia as wE, setActivePinia as ZE } from "pinia";
|
|
3
3
|
export {
|
|
4
4
|
E as ABOUT_SECTION_SETTINGS_CONFIG,
|