@covet-pics/covet-pics-widget 0.134.7 → 0.134.8
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/cjs/covet-pics-gallery-grid_3.cjs.entry.js +37 -61
- package/dist/cjs/covet-pics-gallery-grid_3.cjs.entry.js.map +1 -1
- package/dist/cjs/covet-pics-widget.cjs.entry.js +30 -2
- package/dist/cjs/covet-pics-widget.cjs.entry.js.map +1 -1
- package/dist/cjs/covet-pics-widget.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/covet-pics-gallery-grid/covet-pics-gallery-grid.js +37 -579
- package/dist/collection/components/covet-pics-gallery-grid/covet-pics-gallery-grid.js.map +1 -1
- package/dist/collection/components/covet-pics-widget/covet-pics-widget.js +1 -1
- package/dist/collection/components/covet-pics-widget/covet-pics-widget.js.map +1 -1
- package/dist/collection/store/settings.js +29 -1
- package/dist/collection/store/settings.js.map +1 -1
- package/dist/collection/utils/types.js.map +1 -1
- package/dist/covet-pics-widget/covet-pics-widget.esm.js +1 -1
- package/dist/covet-pics-widget/covet-pics-widget.esm.js.map +1 -1
- package/dist/covet-pics-widget/p-2258b8cb.system.entry.js +5 -0
- package/dist/covet-pics-widget/p-2258b8cb.system.entry.js.map +1 -0
- package/dist/covet-pics-widget/p-27e5c022.system.entry.js +41 -0
- package/dist/covet-pics-widget/p-27e5c022.system.entry.js.map +1 -0
- package/dist/covet-pics-widget/p-8e2f5a57.system.js +1 -1
- package/dist/covet-pics-widget/p-8e2f5a57.system.js.map +1 -1
- package/dist/covet-pics-widget/p-aec5771a.entry.js +5 -0
- package/dist/covet-pics-widget/p-aec5771a.entry.js.map +1 -0
- package/dist/covet-pics-widget/{p-762bf31f.entry.js → p-e7092b2f.entry.js} +2 -2
- package/dist/covet-pics-widget/p-e7092b2f.entry.js.map +1 -0
- package/dist/esm/covet-pics-gallery-grid_3.entry.js +37 -61
- package/dist/esm/covet-pics-gallery-grid_3.entry.js.map +1 -1
- package/dist/esm/covet-pics-widget.entry.js +30 -2
- package/dist/esm/covet-pics-widget.entry.js.map +1 -1
- package/dist/esm/covet-pics-widget.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm-es5/covet-pics-gallery-grid_3.entry.js +1 -1
- package/dist/esm-es5/covet-pics-gallery-grid_3.entry.js.map +1 -1
- package/dist/esm-es5/covet-pics-widget.entry.js +2 -2
- package/dist/esm-es5/covet-pics-widget.entry.js.map +1 -1
- package/dist/esm-es5/covet-pics-widget.js +1 -1
- package/dist/esm-es5/covet-pics-widget.js.map +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/types/components/covet-pics-gallery-grid/covet-pics-gallery-grid.d.ts +2 -97
- package/dist/types/components.d.ts +0 -190
- package/dist/types/utils/types.d.ts +28 -0
- package/package.json +1 -1
- package/dist/covet-pics-widget/p-664d172e.system.entry.js +0 -41
- package/dist/covet-pics-widget/p-664d172e.system.entry.js.map +0 -1
- package/dist/covet-pics-widget/p-762bf31f.entry.js.map +0 -1
- package/dist/covet-pics-widget/p-adedb038.system.entry.js +0 -5
- package/dist/covet-pics-widget/p-adedb038.system.entry.js.map +0 -1
- package/dist/covet-pics-widget/p-f74e9091.entry.js +0 -5
- package/dist/covet-pics-widget/p-f74e9091.entry.js.map +0 -1
|
@@ -3340,7 +3340,7 @@ const CovetPicsGalleryGrid = class {
|
|
|
3340
3340
|
event.preventDefault();
|
|
3341
3341
|
event.stopPropagation();
|
|
3342
3342
|
const filter = event.target.dataset.filter;
|
|
3343
|
-
if (!this.
|
|
3343
|
+
if (!this.settings.multiple_filter_enabled) {
|
|
3344
3344
|
this.resetFilters();
|
|
3345
3345
|
}
|
|
3346
3346
|
this.filters[filter] = !this.filters[filter];
|
|
@@ -3364,48 +3364,18 @@ const CovetPicsGalleryGrid = class {
|
|
|
3364
3364
|
this.nextPage.emit(event);
|
|
3365
3365
|
}
|
|
3366
3366
|
};
|
|
3367
|
-
this.desktopPhotosPerRow = 4;
|
|
3368
|
-
this.desktopItemPadding = 1;
|
|
3369
|
-
this.mobilePhotosPerRow = 2;
|
|
3370
|
-
this.mobileItemPadding = 0;
|
|
3371
3367
|
this.imagesToShow = 9;
|
|
3372
|
-
this.layout = "grid";
|
|
3373
|
-
this.highlightEnabled = false;
|
|
3374
|
-
this.highlightEvery = 0;
|
|
3375
|
-
this.highlightStartsFrom = 0;
|
|
3376
3368
|
this.items = [];
|
|
3377
3369
|
this.breakdown = [];
|
|
3378
3370
|
this.productTitle = "";
|
|
3379
3371
|
this.rating = 0;
|
|
3380
|
-
this.ratingCount = 0;
|
|
3381
|
-
this.loadMoreBorder = 4;
|
|
3382
|
-
this.loadMoreColor = "#000000";
|
|
3383
|
-
this.loadMoreFontSize = 14;
|
|
3384
|
-
this.loadMoreFontStyle = "bold";
|
|
3385
|
-
this.loadMoreLabel = "MORE";
|
|
3386
|
-
this.loadMorePadding = 6;
|
|
3387
|
-
this.loadMoreStyle = "btn_style_1";
|
|
3388
|
-
this.loadMoreMode = "button";
|
|
3389
|
-
this.showHeader = false;
|
|
3390
|
-
this.headerType = "header-1";
|
|
3391
|
-
this.headerShowAverageRating = true;
|
|
3392
|
-
this.headerShowBreakdown = true;
|
|
3393
|
-
this.headerShowSort = true;
|
|
3394
3372
|
this.filtersEnabled = false;
|
|
3395
|
-
this.filtersMultiselect = false;
|
|
3396
3373
|
this.filters = {};
|
|
3397
|
-
this.filtersResetLabel = undefined;
|
|
3398
|
-
this.filtersPadding = undefined;
|
|
3399
|
-
this.filtersColor = undefined;
|
|
3400
|
-
this.filtersFontSize = undefined;
|
|
3401
|
-
this.filtersFontWeight = undefined;
|
|
3402
|
-
this.itemStyle = "standard";
|
|
3403
3374
|
this.loader = undefined;
|
|
3404
3375
|
this.appStore = undefined;
|
|
3405
3376
|
this.sharedItemId = undefined;
|
|
3406
3377
|
this.isLoading = false;
|
|
3407
3378
|
this.showSort = false;
|
|
3408
|
-
this.showBreakdown = false;
|
|
3409
3379
|
this.isGridDisabled = false;
|
|
3410
3380
|
this.isDesktopScreen = undefined;
|
|
3411
3381
|
}
|
|
@@ -3464,7 +3434,7 @@ const CovetPicsGalleryGrid = class {
|
|
|
3464
3434
|
this.emitGalleryReadyEvent();
|
|
3465
3435
|
this.bindCustomUploadWidgetButtons();
|
|
3466
3436
|
this.checkAndOpenPopup();
|
|
3467
|
-
if (this.
|
|
3437
|
+
if (this.settings.pagination === "infinite_scroll") {
|
|
3468
3438
|
window.addEventListener("scroll", this.scrollHandler, { passive: true });
|
|
3469
3439
|
}
|
|
3470
3440
|
}
|
|
@@ -3479,9 +3449,13 @@ const CovetPicsGalleryGrid = class {
|
|
|
3479
3449
|
}
|
|
3480
3450
|
initStore() {
|
|
3481
3451
|
this.appState = this.appStore.getState();
|
|
3452
|
+
this.settings = this.appState.settings;
|
|
3453
|
+
this.layout = this.appState.settings.display_type;
|
|
3482
3454
|
this.isDesktopScreen = this.appState.size.isDesktopScreen;
|
|
3483
3455
|
this.unsubscribe = this.appStore.subscribe(() => {
|
|
3484
3456
|
this.appState = this.appStore.getState();
|
|
3457
|
+
this.settings = this.appState.settings;
|
|
3458
|
+
this.layout = this.appState.settings.display_type;
|
|
3485
3459
|
this.isDesktopScreen = this.appState.size.isDesktopScreen;
|
|
3486
3460
|
this.isGridDisabled = getters.isWidgetDisabled(this.appState);
|
|
3487
3461
|
});
|
|
@@ -3492,15 +3466,15 @@ const CovetPicsGalleryGrid = class {
|
|
|
3492
3466
|
isHighlighted(index) {
|
|
3493
3467
|
if (this.layout === "collage")
|
|
3494
3468
|
return false;
|
|
3495
|
-
if (!this.
|
|
3469
|
+
if (!this.settings.gallery_highlight)
|
|
3496
3470
|
return false;
|
|
3497
|
-
if (this.
|
|
3471
|
+
if (this.settings.gallery_highlight_every === 0)
|
|
3498
3472
|
return false;
|
|
3499
3473
|
let position = (index + 1) % this.imagesToShow;
|
|
3500
3474
|
if (position === 0)
|
|
3501
3475
|
position = this.imagesToShow;
|
|
3502
|
-
const start = this.
|
|
3503
|
-
const every = this.
|
|
3476
|
+
const start = this.settings.gallery_highlight_every_start + 1;
|
|
3477
|
+
const every = this.settings.gallery_highlight_every;
|
|
3504
3478
|
if (every < 0)
|
|
3505
3479
|
return false;
|
|
3506
3480
|
if (position < start)
|
|
@@ -3509,7 +3483,7 @@ const CovetPicsGalleryGrid = class {
|
|
|
3509
3483
|
return (highlightOffset % every) === 0;
|
|
3510
3484
|
}
|
|
3511
3485
|
bindCustomUploadWidgetButtons() {
|
|
3512
|
-
const selector = this.
|
|
3486
|
+
const selector = this.settings.customer_photo_upload_button_selector;
|
|
3513
3487
|
if (selector !== "") {
|
|
3514
3488
|
const nodes = document.querySelectorAll(selector);
|
|
3515
3489
|
nodes.forEach(node => {
|
|
@@ -3530,14 +3504,14 @@ const CovetPicsGalleryGrid = class {
|
|
|
3530
3504
|
if (this.appState.preview.mode) {
|
|
3531
3505
|
document.querySelectorAll("covet-pics-upload").forEach(uploadWidget => uploadWidget.remove());
|
|
3532
3506
|
}
|
|
3533
|
-
if (this.
|
|
3507
|
+
if (this.settings.customer_photo_item_position !== null || this.settings.customer_photo_upload_button_selector !== "" || this.settings.show_header) {
|
|
3534
3508
|
this.upload = document.createElement("covet-pics-upload");
|
|
3535
3509
|
this.upload.appStore = this.appStore;
|
|
3536
3510
|
document.body.appendChild(this.upload);
|
|
3537
3511
|
}
|
|
3538
3512
|
}
|
|
3539
3513
|
preloadNextPage(event) {
|
|
3540
|
-
if (this.lastItemIndex === this.selectedItemIndex && this.
|
|
3514
|
+
if (this.lastItemIndex === this.selectedItemIndex && this.settings.pagination !== "none") {
|
|
3541
3515
|
this.nextPage.emit(event);
|
|
3542
3516
|
}
|
|
3543
3517
|
}
|
|
@@ -3570,15 +3544,15 @@ const CovetPicsGalleryGrid = class {
|
|
|
3570
3544
|
}
|
|
3571
3545
|
setLoadMoreButtonVariables() {
|
|
3572
3546
|
return {
|
|
3573
|
-
"--covet-pics-load-more-border": this.
|
|
3574
|
-
"--covet-pics-load-more-color": this.
|
|
3575
|
-
"--covet-pics-load-more-font-size": this.
|
|
3576
|
-
"--covet-pics-load-more-font-style": this.
|
|
3577
|
-
"--covet-pics-load-more-padding": this.
|
|
3547
|
+
"--covet-pics-load-more-border": this.settings.load_more_border_width.toString() + "px",
|
|
3548
|
+
"--covet-pics-load-more-color": this.settings.load_more_button_color,
|
|
3549
|
+
"--covet-pics-load-more-font-size": this.settings.load_more_font_size.toString() + "px",
|
|
3550
|
+
"--covet-pics-load-more-font-style": this.settings.load_more_font_style,
|
|
3551
|
+
"--covet-pics-load-more-padding": this.settings.load_more_padding.toString() + "px"
|
|
3578
3552
|
};
|
|
3579
3553
|
}
|
|
3580
3554
|
renderLoadMoreIcon() {
|
|
3581
|
-
switch (this.
|
|
3555
|
+
switch (this.settings.load_more_button_style) {
|
|
3582
3556
|
case "btn_style_3":
|
|
3583
3557
|
return (index.h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 14 14" }, index.h("g", { fill: "none", "fill-rule": "evenodd" }, index.h("path", { d: "M-3-3h20v20H-3z" }), index.h("path", { class: "dynamic-stroke", stroke: "#919EAB", d: "M11.125 5.542L7 9.666 2.875 5.542" }))));
|
|
3584
3558
|
case "btn_style_4":
|
|
@@ -3588,11 +3562,11 @@ const CovetPicsGalleryGrid = class {
|
|
|
3588
3562
|
}
|
|
3589
3563
|
}
|
|
3590
3564
|
rederLoadMoreButton() {
|
|
3591
|
-
if (this.
|
|
3565
|
+
if (this.settings.pagination === "button" &&
|
|
3592
3566
|
!this.isLoading &&
|
|
3593
3567
|
this.loader.totalPages > this.loader.page &&
|
|
3594
3568
|
this.items.length > 0) {
|
|
3595
|
-
return (index.h("div", { class: 'load-more', style: this.setLoadMoreButtonVariables(), onClick: this.loadMoreClickedHandler }, index.h("button", { class: "btn-load-more " + this.
|
|
3569
|
+
return (index.h("div", { class: 'load-more', style: this.setLoadMoreButtonVariables(), onClick: this.loadMoreClickedHandler }, index.h("button", { class: "btn-load-more " + this.settings.load_more_button_style, "aria-label": "load more items", disabled: this.isGridDisabled, "aria-hidden": `${this.isGridDisabled}`, type: "button" }, index.h("span", { class: "text" }, this.settings.load_more_text), index.h("span", { class: "icon", "aria-hidden": "true" }, this.renderLoadMoreIcon()))));
|
|
3596
3570
|
}
|
|
3597
3571
|
}
|
|
3598
3572
|
renderLoadingAnimation() {
|
|
@@ -3625,14 +3599,14 @@ const CovetPicsGalleryGrid = class {
|
|
|
3625
3599
|
}
|
|
3626
3600
|
getFilterCSSVariables() {
|
|
3627
3601
|
return {
|
|
3628
|
-
"--covet-pics-filter-font-weight": this.
|
|
3629
|
-
"--covet-pics-filter-font-size": `${this.
|
|
3630
|
-
"--covet-pics-filter-font-color": this.
|
|
3631
|
-
"--covet-pics-filter-padding": `${this.
|
|
3602
|
+
"--covet-pics-filter-font-weight": this.settings.tags_font_weight.toLowerCase(),
|
|
3603
|
+
"--covet-pics-filter-font-size": `${this.settings.tags_font_size}px`,
|
|
3604
|
+
"--covet-pics-filter-font-color": this.settings.tags_color,
|
|
3605
|
+
"--covet-pics-filter-padding": `${this.settings.tags_padding}%`,
|
|
3632
3606
|
};
|
|
3633
3607
|
}
|
|
3634
3608
|
renderFilters() {
|
|
3635
|
-
return (index.h("div", { class: "filters", style: this.getFilterCSSVariables(), "aria-hidden": `${this.isGridDisabled}` }, index.h("button", { tabindex: "0", class: "btn-filter", "data-reset-filters": "true", onClick: this.filterResetHandler, "aria-label": "reset filters", disabled: this.isGridDisabled, type: "reset" }, this.
|
|
3609
|
+
return (index.h("div", { class: "filters", style: this.getFilterCSSVariables(), "aria-hidden": `${this.isGridDisabled}` }, index.h("button", { tabindex: "0", class: "btn-filter", "data-reset-filters": "true", onClick: this.filterResetHandler, "aria-label": "reset filters", disabled: this.isGridDisabled, type: "reset" }, this.settings.tags_reset_button_text), Object.keys(this.filters).map((filter) => index.h("button", { tabindex: "0", "data-filter": filter, class: `btn-filter ${this.filters[filter] ? "selected" : ""}`, onClick: this.filterChangedHandler, "aria-label": `filter ${filter}`, disabled: this.isGridDisabled, type: "button" }, filter))));
|
|
3636
3610
|
}
|
|
3637
3611
|
itemImgAltTag(caption, idx, itemsLength, createdTime, layout) {
|
|
3638
3612
|
return caption && caption.length > 0
|
|
@@ -3641,9 +3615,9 @@ const CovetPicsGalleryGrid = class {
|
|
|
3641
3615
|
}
|
|
3642
3616
|
renderStandardItem(item, idx, itemsLength) {
|
|
3643
3617
|
const itemWidth = this.isDesktopScreen
|
|
3644
|
-
? (100 - (this.
|
|
3645
|
-
: (100 - (this.
|
|
3646
|
-
return (index.h("covet-pics-gallery-item", { class: { "grid-item": this.layout === "grid", "collage-item": this.layout === "collage" }, highlighted: this.isHighlighted(idx), "image-url": utils$1.getCoverImage(item.cover_images.medium_resolution, item.images.medium_resolution), "image-high-resolution-url": utils$1.getCoverImage(item.cover_images.high_resolution, item.images.high_resolution), "image-responsive-sizes": utils$1.getSizesForResponsiveImage(this.
|
|
3618
|
+
? (100 - (this.settings.item_padding * (this.settings.gallery_photos_per_row - 1))) / this.settings.gallery_photos_per_row
|
|
3619
|
+
: (100 - (this.settings.item_mobile_padding * (this.settings.gallery_mobile_photos_per_row - 1))) / this.settings.gallery_mobile_photos_per_row;
|
|
3620
|
+
return (index.h("covet-pics-gallery-item", { class: { "grid-item": this.layout === "grid", "collage-item": this.layout === "collage" }, highlighted: this.isHighlighted(idx), "image-url": utils$1.getCoverImage(item.cover_images.medium_resolution, item.images.medium_resolution), "image-high-resolution-url": utils$1.getCoverImage(item.cover_images.high_resolution, item.images.high_resolution), "image-responsive-sizes": utils$1.getSizesForResponsiveImage(this.settings.gallery_photos_per_row, this.settings.gallery_mobile_photos_per_row, this.isHighlighted(idx)), "item-id": item.id, "item-source": item.source, "item-index": idx, caption: item.caption, "item-type": item.data_type, links: item.links, layout: this.layout, url: item.url, rating: item.rating !== null ? item.rating : 0, "user-name": item.username, "item-width": itemWidth, "created-time": item.created_time, role: "listitem", "aria-label": `${this.layout}-item ${idx + 1}/${itemsLength}, post created ${utils$1.getDateFromTimestamp(item.created_time)}`, "alt-tag": this.itemImgAltTag(item.caption, idx, itemsLength, item.created_time, this.layout), appStore: this.appStore }));
|
|
3647
3621
|
}
|
|
3648
3622
|
renderStandardUploadItem(item, idx, itemsLength) {
|
|
3649
3623
|
return index.h("covet-pics-gallery-item", { class: { "grid-item": this.layout === "grid", "collage-item": this.layout === "collage" }, "image-url": item.imageUrl, "item-source": item.source, "item-index": idx, appStore: this.appStore, "aria-label": `click on for upload image in gallery, ${this.layout}-item ${idx + 1}/${itemsLength},`, role: "listitem" });
|
|
@@ -3653,18 +3627,20 @@ const CovetPicsGalleryGrid = class {
|
|
|
3653
3627
|
}
|
|
3654
3628
|
renderDetailItem(item, idx, itemsLength) {
|
|
3655
3629
|
const itemWidth = this.isDesktopScreen
|
|
3656
|
-
? (100 - (this.
|
|
3657
|
-
: (100 - (this.
|
|
3658
|
-
return index.h("covet-pics-gallery-item-detail", { class: { "grid-item": this.layout === "grid", "collage-item": this.layout === "collage", "highlighted": this.isHighlighted(idx) }, highlighted: this.isHighlighted(idx), "image-url": utils$1.getCoverImage(item.cover_images.medium_resolution, item.images.medium_resolution), "image-high-resolution-url": utils$1.getCoverImage(item.cover_images.high_resolution, item.images.high_resolution), "image-responsive-sizes": utils$1.getSizesForResponsiveImage(this.
|
|
3630
|
+
? (100 - (this.settings.item_padding * (this.settings.gallery_photos_per_row - 1))) / this.settings.gallery_photos_per_row
|
|
3631
|
+
: (100 - (this.settings.item_mobile_padding * (this.settings.gallery_mobile_photos_per_row - 1))) / this.settings.gallery_mobile_photos_per_row;
|
|
3632
|
+
return index.h("covet-pics-gallery-item-detail", { class: { "grid-item": this.layout === "grid", "collage-item": this.layout === "collage", "highlighted": this.isHighlighted(idx) }, highlighted: this.isHighlighted(idx), "image-url": utils$1.getCoverImage(item.cover_images.medium_resolution, item.images.medium_resolution), "image-high-resolution-url": utils$1.getCoverImage(item.cover_images.high_resolution, item.images.high_resolution), "image-responsive-sizes": utils$1.getSizesForResponsiveImage(this.settings.gallery_photos_per_row, this.settings.gallery_mobile_photos_per_row), "item-id": item.id, "item-index": idx, "item-source": item.source, "item-type": item.data_type, "item-width": itemWidth, links: item.links, url: item.url, layout: this.layout, "user-name": item.username, caption: item.caption, "created-time": item.created_time, verified: item.verified, rating: item.rating !== null ? item.rating : 0, role: "listitem", "aria-label": `${this.layout}-item ${idx + 1}/${itemsLength}, post created ${utils$1.getDateFromTimestamp(item.created_time)}`, "alt-tag": this.itemImgAltTag(item.caption, idx, itemsLength, item.created_time, this.layout), appStore: this.appStore });
|
|
3659
3633
|
}
|
|
3660
3634
|
renderHeader() {
|
|
3661
|
-
return (index.h("covet-pics-gallery-header", { "product-title": this.productTitle, rating: this.rating, "rating-count": this.
|
|
3635
|
+
return (index.h("covet-pics-gallery-header", { "product-title": this.productTitle, rating: this.rating, "rating-count": this.settings.gallery_photos_count, breakdown: this.breakdown, "header-type": this.settings.header_type, "show-sort": this.settings.header_show_sort, "show-average-star-rating": this.settings.header_show_average_rating, "show-breakdown": this.settings.header_show_breakdown,
|
|
3636
|
+
// TODO remove props drilling END
|
|
3637
|
+
appStore: this.appStore, "aria-hidden": `${this.isGridDisabled}` }));
|
|
3662
3638
|
}
|
|
3663
3639
|
render() {
|
|
3664
3640
|
if (typeof this.items !== "undefined" && typeof this.loader !== "undefined") {
|
|
3665
|
-
return (index.h(index.Host, { role: "region" }, this.
|
|
3641
|
+
return (index.h(index.Host, { role: "region" }, this.settings.show_header && this.renderHeader(), this.filtersEnabled && this.renderFilters(), index.h("div", { class: `gallery ${this.layout}`, style: utils$1.setCovetItemSizeVariables(this.settings.gallery_photos_per_row, this.settings.item_padding, this.settings.gallery_mobile_photos_per_row, this.settings.item_mobile_padding), role: "list", "aria-label": `gallery of ${this.items.length} items` }, this.layout === "collage" && index.h("div", { class: "grid-sizer" }), this.layout === "collage" && index.h("div", { class: "gutter-sizer" }), this.settings.item_style === "standard" && this.items.map((item, idx) => item.source === "upload_widget"
|
|
3666
3642
|
? this.renderStandardUploadItem(item, idx, this.items.length)
|
|
3667
|
-
: this.renderStandardItem(item, idx, this.items.length)), this.
|
|
3643
|
+
: this.renderStandardItem(item, idx, this.items.length)), this.settings.item_style !== "standard" && this.items.map((item, idx) => item.source === "upload_widget"
|
|
3668
3644
|
? this.renderDetailUploadItem(item, idx, this.items.length)
|
|
3669
3645
|
: this.renderDetailItem(item, idx, this.items.length))), this.renderLoadingAnimation(), this.rederLoadMoreButton()));
|
|
3670
3646
|
}
|