@salla.sa/twilight-components 2.14.354 → 2.14.356
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/{filepond-CuKErtOy.js → filepond-Cp7YEyDQ.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-d-8BSuST.js → filepond-plugin-file-poster-CR4IT_jI.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-zgI_JcqY.js → filepond-plugin-file-validate-size-DINya0Zr.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-Cy8IgG2P.js → filepond-plugin-file-validate-type-Yo85drbo.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-9ZAUzCvh.js → filepond-plugin-image-edit-DZTSgDgr.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-DzNe_tY2.js → filepond-plugin-image-exif-orientation-Dtdd6Do2.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-Cfna6xTB.js → filepond-plugin-image-preview-kI1VoGOp.js} +1 -1
- package/dist/cjs/{index-Ce40E8tZ.js → index-B5Ws8rT7.js} +2 -2
- package/dist/cjs/{index-ff-xJfhj.js → index-BB2wN5Zu.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/salla-accordion-body_3.cjs.entry.js +1 -1
- package/dist/cjs/salla-accordion_6.cjs.entry.js +1 -1
- package/dist/cjs/salla-add-product-button_4.cjs.entry.js +3 -3
- package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
- package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-apps-icons.cjs.entry.js +2 -2
- package/dist/cjs/salla-booking-field_7.cjs.entry.js +11 -11
- package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-comment-form_8.cjs.entry.js +1 -1
- package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
- package/dist/cjs/salla-count-down_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters.cjs.entry.js +1 -1
- package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
- package/dist/cjs/salla-hook.cjs.entry.js +1 -1
- package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
- package/dist/cjs/salla-installment.cjs.entry.js +1 -1
- package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
- package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-program.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
- package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-menu.cjs.entry.js +1 -1
- package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
- package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
- package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-orders.cjs.entry.js +1 -1
- package/dist/cjs/salla-payments.cjs.entry.js +6 -18
- package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
- package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
- package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
- package/dist/cjs/salla-products-slider.cjs.entry.js +2 -2
- package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
- package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
- package/dist/cjs/salla-search.cjs.entry.js +1 -1
- package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/salla-slider.cjs.entry.js +68 -29
- package/dist/cjs/salla-social-share.cjs.entry.js +2 -2
- package/dist/cjs/salla-social.cjs.entry.js +2 -2
- package/dist/cjs/salla-tab-content_3.cjs.entry.js +4 -4
- package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-settings.cjs.entry.js +2 -2
- package/dist/cjs/salla-verify.cjs.entry.js +1 -1
- package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-zQsXQIff.js → vanilla-picker-C-AqEZ0S.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/salla-apps-icons/salla-apps-icons.js +1 -1
- package/dist/collection/components/salla-payments/salla-payments.js +5 -17
- package/dist/collection/components/salla-products-slider/salla-products-slider.js +32 -1
- package/dist/collection/components/salla-quick-buy/salla-quick-buy.js +24 -2
- package/dist/collection/components/salla-slider/salla-slider.js +89 -29
- package/dist/collection/components/salla-social/salla-social.js +1 -1
- package/dist/collection/components/salla-social-share/salla-social-share.js +1 -1
- package/dist/collection/components/salla-tabs/salla-tab-content.js +1 -1
- package/dist/collection/components/salla-tabs/salla-tab-header.js +1 -1
- package/dist/collection/components/salla-tabs/salla-tabs.js +1 -1
- package/dist/collection/components/salla-tel-input/salla-tel-input.js +1 -1
- package/dist/collection/components/salla-tooltip/salla-tooltip.js +1 -1
- package/dist/collection/components/salla-user-settings/salla-user-settings.js +1 -1
- package/dist/components/index.js +2 -2
- package/dist/components/salla-apps-icons.js +1 -1
- package/dist/components/salla-payments.js +5 -17
- package/dist/components/salla-products-slider2.js +2 -1
- package/dist/components/salla-quick-buy2.js +3 -2
- package/dist/components/salla-slider2.js +69 -28
- package/dist/components/salla-social-share.js +1 -1
- package/dist/components/salla-social.js +1 -1
- package/dist/components/salla-tab-content2.js +1 -1
- package/dist/components/salla-tab-header2.js +1 -1
- package/dist/components/salla-tabs2.js +1 -1
- package/dist/components/salla-tel-input2.js +1 -1
- package/dist/components/salla-tooltip2.js +1 -1
- package/dist/components/salla-user-settings.js +1 -1
- package/dist/esm/{filepond-DEzyRrdH.js → filepond-DK_xd-tp.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-DyLcCcHM.js → filepond-plugin-file-poster-J4J1RcGt.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-Cxp5Yzea.js → filepond-plugin-file-validate-size-BDSgcYn7.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-D2qNOQP4.js → filepond-plugin-file-validate-type-U8jHGr5v.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-DndTlA7m.js → filepond-plugin-image-edit-CFrud4h0.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-CiT1CQoK.js → filepond-plugin-image-exif-orientation-D5hBL036.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-DBG7keFZ.js → filepond-plugin-image-preview-CPKs1HAm.js} +1 -1
- package/dist/esm/{index-B74h9G6a.js → index-BkWJPw7x.js} +2 -2
- package/dist/esm/{index-BLw7mdtM.js → index-C2KyQGaa.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/salla-accordion-body_3.entry.js +1 -1
- package/dist/esm/salla-accordion_6.entry.js +1 -1
- package/dist/esm/salla-add-product-button_4.entry.js +3 -3
- package/dist/esm/salla-advertisement.entry.js +1 -1
- package/dist/esm/salla-alert_2.entry.js +1 -1
- package/dist/esm/salla-app-install-alert.entry.js +1 -1
- package/dist/esm/salla-apps-icons.entry.js +2 -2
- package/dist/esm/salla-booking-field_7.entry.js +11 -11
- package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
- package/dist/esm/salla-comment-form_8.entry.js +1 -1
- package/dist/esm/salla-conditional-offer.entry.js +1 -1
- package/dist/esm/salla-contacts.entry.js +1 -1
- package/dist/esm/salla-count-down_2.entry.js +1 -1
- package/dist/esm/salla-custom-fields.entry.js +1 -1
- package/dist/esm/salla-filters-widget.entry.js +1 -1
- package/dist/esm/salla-filters.entry.js +1 -1
- package/dist/esm/salla-gifting.entry.js +1 -1
- package/dist/esm/salla-hook.entry.js +1 -1
- package/dist/esm/salla-infinite-scroll.entry.js +1 -1
- package/dist/esm/salla-installment.entry.js +1 -1
- package/dist/esm/salla-list-tile.entry.js +1 -1
- package/dist/esm/salla-localization-modal.entry.js +1 -1
- package/dist/esm/salla-login-modal.entry.js +1 -1
- package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
- package/dist/esm/salla-loyalty-program.entry.js +1 -1
- package/dist/esm/salla-loyalty.entry.js +1 -1
- package/dist/esm/salla-maintenance-alert.entry.js +1 -1
- package/dist/esm/salla-menu.entry.js +1 -1
- package/dist/esm/salla-metadata.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
- package/dist/esm/salla-notification-item.entry.js +1 -1
- package/dist/esm/salla-notifications.entry.js +1 -1
- package/dist/esm/salla-offer-modal.entry.js +1 -1
- package/dist/esm/salla-offer.entry.js +1 -1
- package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
- package/dist/esm/salla-order-details-options.entry.js +1 -1
- package/dist/esm/salla-order-details.entry.js +1 -1
- package/dist/esm/salla-order-summary.entry.js +1 -1
- package/dist/esm/salla-order-totals-card.entry.js +1 -1
- package/dist/esm/salla-orders.entry.js +1 -1
- package/dist/esm/salla-payments.entry.js +6 -18
- package/dist/esm/salla-placeholder.entry.js +1 -1
- package/dist/esm/salla-price-range.entry.js +1 -1
- package/dist/esm/salla-product-size-guide.entry.js +1 -1
- package/dist/esm/salla-products-list.entry.js +1 -1
- package/dist/esm/salla-products-slider.entry.js +2 -2
- package/dist/esm/salla-progress-bar.entry.js +1 -1
- package/dist/esm/salla-quick-order.entry.js +1 -1
- package/dist/esm/salla-rating-modal.entry.js +1 -1
- package/dist/esm/salla-scopes.entry.js +1 -1
- package/dist/esm/salla-search.entry.js +1 -1
- package/dist/esm/salla-skeleton.entry.js +1 -1
- package/dist/esm/salla-slider.entry.js +68 -29
- package/dist/esm/salla-social-share.entry.js +2 -2
- package/dist/esm/salla-social.entry.js +2 -2
- package/dist/esm/salla-tab-content_3.entry.js +4 -4
- package/dist/esm/salla-tiered-offer.entry.js +1 -1
- package/dist/esm/salla-tooltip.entry.js +2 -2
- package/dist/esm/salla-trust-badges.entry.js +1 -1
- package/dist/esm/salla-user-menu.entry.js +1 -1
- package/dist/esm/salla-user-profile.entry.js +1 -1
- package/dist/esm/salla-user-settings.entry.js +2 -2
- package/dist/esm/salla-verify.entry.js +1 -1
- package/dist/esm/salla-wallet.entry.js +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-CtwkXTap.js → vanilla-picker-DOvdi39c.js} +1 -1
- package/dist/twilight/{p-fc65084f.entry.js → p-01fbef77.entry.js} +1 -1
- package/dist/twilight/{p-e6bb7362.entry.js → p-07f8cb47.entry.js} +1 -1
- package/dist/twilight/p-0caa1e0c.entry.js +4 -0
- package/dist/twilight/{p-b588ef46.entry.js → p-131f1a54.entry.js} +1 -1
- package/dist/twilight/{p-32ca34ec.entry.js → p-13cc3fb9.entry.js} +1 -1
- package/dist/twilight/{p-32732ca7.entry.js → p-13d7b8db.entry.js} +1 -1
- package/dist/twilight/{p-5c9281d3.entry.js → p-13f1e451.entry.js} +1 -1
- package/dist/twilight/{p-e7813c80.entry.js → p-1616852e.entry.js} +1 -1
- package/dist/twilight/{p-efc18ce6.entry.js → p-162806a6.entry.js} +1 -1
- package/dist/twilight/{p-4036d5dc.entry.js → p-1965c320.entry.js} +1 -1
- package/dist/twilight/{p-3d0bb451.entry.js → p-1b5fc61d.entry.js} +1 -1
- package/dist/twilight/{p-a100bd38.entry.js → p-215fa138.entry.js} +1 -1
- package/dist/twilight/{p-5d21334a.entry.js → p-26d123cb.entry.js} +1 -1
- package/dist/twilight/{p-ec2fd37e.entry.js → p-29bbbd8f.entry.js} +1 -1
- package/dist/twilight/{p-229275db.entry.js → p-2e2dce52.entry.js} +1 -1
- package/dist/twilight/{p-bf65b263.entry.js → p-2f3e8d60.entry.js} +1 -1
- package/dist/twilight/{p-f47b130c.entry.js → p-30907a97.entry.js} +1 -1
- package/dist/twilight/{p-33093880.entry.js → p-39f15e8c.entry.js} +1 -1
- package/dist/twilight/{p-d1203242.entry.js → p-3f71adc6.entry.js} +1 -1
- package/dist/twilight/{p-f4039c40.entry.js → p-3f911fed.entry.js} +1 -1
- package/dist/twilight/{p-ec77c523.entry.js → p-414d057a.entry.js} +1 -1
- package/dist/twilight/{p-6be7bbb0.entry.js → p-415ba86d.entry.js} +1 -1
- package/dist/twilight/{p-5d044466.entry.js → p-47d09695.entry.js} +1 -1
- package/dist/twilight/{p-47ac0ca5.entry.js → p-4af20310.entry.js} +1 -1
- package/dist/twilight/{p-c56a47b0.entry.js → p-560f8e69.entry.js} +1 -1
- package/dist/twilight/{p-0134b4fd.entry.js → p-59a1cc3e.entry.js} +1 -1
- package/dist/twilight/{p-f57ca123.entry.js → p-5a2072d5.entry.js} +1 -1
- package/dist/twilight/{p-01daaaa6.entry.js → p-5f58d298.entry.js} +1 -1
- package/dist/twilight/{p-e3e33238.entry.js → p-65b3442d.entry.js} +1 -1
- package/dist/twilight/{p-3cffa4c9.entry.js → p-67ed8f76.entry.js} +1 -1
- package/dist/twilight/{p-08badc32.entry.js → p-6a8f5002.entry.js} +1 -1
- package/dist/twilight/{p-8f1f052c.entry.js → p-74a880cc.entry.js} +1 -1
- package/dist/twilight/{p-fd81a311.entry.js → p-77e219f7.entry.js} +1 -1
- package/dist/twilight/{p-6b8453be.entry.js → p-7edda278.entry.js} +1 -1
- package/dist/twilight/{p-8c189d76.entry.js → p-7ee15c9e.entry.js} +1 -1
- package/dist/twilight/{p-b206a0a1.entry.js → p-7f28971d.entry.js} +1 -1
- package/dist/twilight/{p-40fe4b01.entry.js → p-7fa36512.entry.js} +1 -1
- package/dist/twilight/{p-afd61e47.entry.js → p-86e020f4.entry.js} +1 -1
- package/dist/twilight/{p-fe983809.entry.js → p-8ab1cb25.entry.js} +1 -1
- package/dist/twilight/{p-b71fc1b5.entry.js → p-8e12cdb4.entry.js} +1 -1
- package/dist/twilight/{p-9051a540.entry.js → p-8f8cbf30.entry.js} +1 -1
- package/dist/twilight/{p-aae761ff.entry.js → p-90440e96.entry.js} +1 -1
- package/dist/twilight/{p-212a0710.entry.js → p-924e13b5.entry.js} +1 -1
- package/dist/twilight/{p-6c8f5c94.entry.js → p-95862483.entry.js} +1 -1
- package/dist/twilight/{p-B69XOH6h.js → p-B7hfl1_L.js} +1 -1
- package/dist/twilight/{p-DpsbV3x1.js → p-BZ1obY9a.js} +1 -1
- package/dist/twilight/{p-B74h9G6a.js → p-BkWJPw7x.js} +1 -1
- package/dist/twilight/{p-CQq81yb5.js → p-C-TeNpQx.js} +1 -1
- package/dist/twilight/{p-bVqtOl1F.js → p-CXfpMFgS.js} +1 -1
- package/dist/twilight/{p-i5J7XGS6.js → p-D1-Giq37.js} +1 -1
- package/dist/twilight/{p-_-aXm0Wb.js → p-DDUfBWCl.js} +1 -1
- package/dist/twilight/{p-BPqZ249Z.js → p-DEfwTter.js} +1 -1
- package/dist/twilight/{p-shFpk0H3.js → p-DK6KzbCc.js} +1 -1
- package/dist/twilight/{p-BCxm-ISm.js → p-Dvq8cJys.js} +1 -1
- package/dist/twilight/{p-b1fc6dfc.entry.js → p-a32de0ab.entry.js} +1 -1
- package/dist/twilight/{p-c73189e3.entry.js → p-a42543cf.entry.js} +1 -1
- package/dist/twilight/{p-2d880232.entry.js → p-a528f44e.entry.js} +1 -1
- package/dist/twilight/{p-07da7390.entry.js → p-a7c0bc08.entry.js} +1 -1
- package/dist/twilight/{p-0aa5a12a.entry.js → p-b303d4aa.entry.js} +1 -1
- package/dist/twilight/{p-9f1c561f.entry.js → p-b6554543.entry.js} +1 -1
- package/dist/twilight/{p-d86ce978.entry.js → p-b693aefa.entry.js} +1 -1
- package/dist/twilight/{p-654429df.entry.js → p-bb9ae7be.entry.js} +1 -1
- package/dist/twilight/{p-d4edfed4.entry.js → p-bd9e6239.entry.js} +1 -1
- package/dist/twilight/{p-10dcd981.entry.js → p-bde045fa.entry.js} +1 -1
- package/dist/twilight/{p-7040ea33.entry.js → p-c14df66d.entry.js} +1 -1
- package/dist/twilight/{p-309a0ba4.entry.js → p-c288faca.entry.js} +1 -1
- package/dist/twilight/{p-232185ec.entry.js → p-c8a82f37.entry.js} +1 -1
- package/dist/twilight/p-cd20dfbd.entry.js +4 -0
- package/dist/twilight/{p-2de9df64.entry.js → p-db6b7e58.entry.js} +1 -1
- package/dist/twilight/p-e6c7e348.entry.js +4 -0
- package/dist/twilight/{p-6fa02770.entry.js → p-e7a1cda7.entry.js} +1 -1
- package/dist/twilight/{p-a2756650.entry.js → p-eeb474c4.entry.js} +1 -1
- package/dist/twilight/{p-f5ad6572.entry.js → p-f052464b.entry.js} +1 -1
- package/dist/twilight/{p-b2332516.entry.js → p-f184ab27.entry.js} +1 -1
- package/dist/twilight/{p-aab45a16.entry.js → p-f2292a2c.entry.js} +1 -1
- package/dist/twilight/{p-3e0d814c.entry.js → p-f6acc615.entry.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-payments/salla-payments.d.ts +0 -2
- package/dist/types/components/salla-products-slider/salla-products-slider.d.ts +8 -0
- package/dist/types/components/salla-quick-buy/salla-quick-buy.d.ts +7 -0
- package/dist/types/components/salla-slider/salla-slider.d.ts +20 -2
- package/dist/types/components.d.ts +32 -0
- package/package.json +5 -5
- package/dist/twilight/p-2a927eac.entry.js +0 -4
- package/dist/twilight/p-4cd9da44.entry.js +0 -4
- package/dist/twilight/p-d9e7973d.entry.js +0 -4
|
@@ -60,6 +60,11 @@ export class SallaSlider {
|
|
|
60
60
|
* Show/hide thumbs slider arrows
|
|
61
61
|
*/
|
|
62
62
|
this.showThumbsControls = true;
|
|
63
|
+
/**
|
|
64
|
+
* When enabled and there is exactly one slide in the `items` slot,
|
|
65
|
+
* render without initializing Swiper (single slide mode).
|
|
66
|
+
*/
|
|
67
|
+
this.enableSingleSlideMode = false;
|
|
63
68
|
/**
|
|
64
69
|
* Enable autoplay - working with `type="carousel" only`
|
|
65
70
|
*/
|
|
@@ -91,6 +96,9 @@ export class SallaSlider {
|
|
|
91
96
|
this.isBeginning = true;
|
|
92
97
|
/** Use matchMedia instead of window.innerWidth to avoid forced reflow (Lighthouse recommended) */
|
|
93
98
|
this.isDesktopViewport = typeof window !== 'undefined' ? window.matchMedia('(min-width: 768px)').matches : true;
|
|
99
|
+
/** When true, only one slide is present; we render without Swiper for performance. */
|
|
100
|
+
this.singleSlideMode = false;
|
|
101
|
+
this._rafId = null;
|
|
94
102
|
this.viewportMediaQuery = null;
|
|
95
103
|
this.hasThumbSlot = false;
|
|
96
104
|
this.pre_defined_config = {
|
|
@@ -146,7 +154,7 @@ export class SallaSlider {
|
|
|
146
154
|
* @returns The Swiper slider instance
|
|
147
155
|
*/
|
|
148
156
|
async sliderInstance() {
|
|
149
|
-
return this.slider;
|
|
157
|
+
return this.singleSlideMode ? undefined : this.slider;
|
|
150
158
|
}
|
|
151
159
|
/**
|
|
152
160
|
* Run transition to the slide with index number equal to 'index' parameter for the duration equal to 'speed' parameter.
|
|
@@ -156,6 +164,8 @@ export class SallaSlider {
|
|
|
156
164
|
* @param {boolean} runCallbacks - Set it to false (by default it is true) and transition will not produce transition events.
|
|
157
165
|
* **/
|
|
158
166
|
async slideTo(index, speed, runCallbacks) {
|
|
167
|
+
if (!this.slider)
|
|
168
|
+
return;
|
|
159
169
|
return this.slider.slideTo(index, speed, runCallbacks);
|
|
160
170
|
}
|
|
161
171
|
/**
|
|
@@ -183,7 +193,7 @@ export class SallaSlider {
|
|
|
183
193
|
* @param {boolean} runCallbacks - Set it to false (by default it is true) and transition will not produce transition events.
|
|
184
194
|
* **/
|
|
185
195
|
async slideToLoop(index, speed, runCallbacks) {
|
|
186
|
-
this.slider
|
|
196
|
+
this.slider?.slideToLoop(index, speed, runCallbacks);
|
|
187
197
|
}
|
|
188
198
|
/**
|
|
189
199
|
* Does the same as .slideNext but for the case when used with enabled loop. So this method will slide to next slide with realIndex matching to next index
|
|
@@ -192,7 +202,7 @@ export class SallaSlider {
|
|
|
192
202
|
* @param {boolean} runCallbacks - Set it to false (by default it is true) and transition will not produce transition events.
|
|
193
203
|
* **/
|
|
194
204
|
async slideNextLoop(speed, runCallbacks) {
|
|
195
|
-
this.slider
|
|
205
|
+
this.slider?.slideNextLoop(speed, runCallbacks);
|
|
196
206
|
}
|
|
197
207
|
/**
|
|
198
208
|
* Does the same as .slidePrev but for the case when used with enabled loop. So this method will slide to previous slide with realIndex matching to previous index
|
|
@@ -201,7 +211,7 @@ export class SallaSlider {
|
|
|
201
211
|
* @param {boolean} runCallbacks - Set it to false (by default it is true) and transition will not produce transition events.
|
|
202
212
|
* **/
|
|
203
213
|
async slidePrevLoop(speed, runCallbacks) {
|
|
204
|
-
this.slider
|
|
214
|
+
this.slider?.slidePrevLoop(speed, runCallbacks);
|
|
205
215
|
}
|
|
206
216
|
/**
|
|
207
217
|
* Reset slider position to currently active slide for the duration equal to 'speed' parameter.
|
|
@@ -210,7 +220,7 @@ export class SallaSlider {
|
|
|
210
220
|
* @param {boolean} runCallbacks - Set it to false (by default it is true) and transition will not produce transition events.
|
|
211
221
|
* **/
|
|
212
222
|
async slideReset(speed, runCallbacks) {
|
|
213
|
-
this.slider
|
|
223
|
+
this.slider?.slideReset(speed, runCallbacks);
|
|
214
224
|
}
|
|
215
225
|
/**
|
|
216
226
|
* Reset slider position to closest slide/snap point for the duration equal to 'speed' parameter.
|
|
@@ -218,56 +228,56 @@ export class SallaSlider {
|
|
|
218
228
|
* @param {boolean} runCallbacks - Set it to false (by default it is true) and transition will not produce transition events.
|
|
219
229
|
* **/
|
|
220
230
|
async slideToClosest(speed, runCallbacks) {
|
|
221
|
-
this.slider
|
|
231
|
+
this.slider?.slideToClosest(speed, runCallbacks);
|
|
222
232
|
}
|
|
223
233
|
/**
|
|
224
234
|
* You should call it after you add/remove slides manually, or after you hide/show it, or do any custom DOM modifications with Swiper This method also includes subcall of the following methods which you can use separately:
|
|
225
235
|
* **/
|
|
226
236
|
async update() {
|
|
227
|
-
this.slider
|
|
237
|
+
this.slider?.update();
|
|
228
238
|
}
|
|
229
239
|
/**
|
|
230
240
|
* Force slider to update its height (when autoHeight enabled) for the duration equal to 'speed' parameter
|
|
231
241
|
* @param {number} speed - Transition duration (in ms).
|
|
232
242
|
* **/
|
|
233
243
|
async updateAutoHeight(speed) {
|
|
234
|
-
this.slider
|
|
244
|
+
this.slider?.updateAutoHeight(speed);
|
|
235
245
|
}
|
|
236
246
|
/**
|
|
237
247
|
* recalculate number of slides and their offsets. Useful after you add/remove slides with JavaScript
|
|
238
248
|
* **/
|
|
239
249
|
async updateSlides() {
|
|
240
|
-
this.slider
|
|
250
|
+
this.slider?.updateSlides();
|
|
241
251
|
}
|
|
242
252
|
/**
|
|
243
253
|
* recalculate slider progress
|
|
244
254
|
* **/
|
|
245
255
|
async updateProgress() {
|
|
246
|
-
this.slider
|
|
256
|
+
this.slider?.updateProgress();
|
|
247
257
|
}
|
|
248
258
|
/**
|
|
249
259
|
* update active/prev/next classes on slides and bullets
|
|
250
260
|
* **/
|
|
251
261
|
async updateSlidesClasses() {
|
|
252
|
-
this.slider
|
|
262
|
+
this.slider?.updateSlidesClasses();
|
|
253
263
|
}
|
|
254
264
|
/**
|
|
255
265
|
* Get slider slides
|
|
256
266
|
* **/
|
|
257
267
|
async getSlides() {
|
|
258
|
-
return await this.slider?.slides;
|
|
268
|
+
return this.singleSlideMode ? undefined : await this.slider?.slides;
|
|
259
269
|
}
|
|
260
270
|
/**
|
|
261
271
|
* Get slider slides
|
|
262
272
|
* **/
|
|
263
273
|
async updateSize() {
|
|
264
|
-
return await this.slider
|
|
274
|
+
return await this.slider?.updateSize();
|
|
265
275
|
}
|
|
266
276
|
/**
|
|
267
277
|
* Get thumbs slider update
|
|
268
278
|
* **/
|
|
269
279
|
async sliderInit() {
|
|
270
|
-
return await this.slider
|
|
280
|
+
return await this.slider?.init();
|
|
271
281
|
}
|
|
272
282
|
/**
|
|
273
283
|
* Get thumbs slider slides
|
|
@@ -306,6 +316,8 @@ export class SallaSlider {
|
|
|
306
316
|
* @param {boolean} runCallbacks - Set it to false (by default it is true) and transition will not produce transition events.
|
|
307
317
|
* **/
|
|
308
318
|
async thumbsSlideTo(index, speed, runCallbacks) {
|
|
319
|
+
if (!this.thumbsSlider)
|
|
320
|
+
return;
|
|
309
321
|
return this.thumbsSlider.slideTo(index, speed, runCallbacks);
|
|
310
322
|
}
|
|
311
323
|
/**
|
|
@@ -493,7 +505,16 @@ export class SallaSlider {
|
|
|
493
505
|
classes += this.verticalThumbs ? ' s-slider-vertical ' : ' s-slider-horizontal ';
|
|
494
506
|
classes += this.arrowsCentered ? ' s-slider-v-centered ' : '';
|
|
495
507
|
classes += this.gridThumbs ? ' s-slider-with-grid-thumbs ' : '';
|
|
496
|
-
|
|
508
|
+
if (this.singleSlideMode) {
|
|
509
|
+
return (h(Host, { class: 's-slider-wrapper s-slider-single-mode ' + classes }, this.blockTitle || this.displayAllUrl ?
|
|
510
|
+
h("div", { class: "s-slider-block__title" }, this.blockTitle ?
|
|
511
|
+
h("div", { class: "s-slider-block__title-right" }, h("h2", null, this.blockTitle), this.blockSubtitle ? h("p", { innerHTML: this.blockSubtitle }) : '')
|
|
512
|
+
: '', this.displayAllUrl ?
|
|
513
|
+
h("div", { class: "s-slider-block__title-left" }, h("a", { href: this.displayAllUrl, class: "s-slider-block__display-all" }, this.displayAllTitle))
|
|
514
|
+
: '')
|
|
515
|
+
: '', h("div", { class: "swiper s-slider-container s-slider-single", dir: this.vertical ? "ltr" : this.direction }, h("slot", null), h("div", { class: "swiper-wrapper s-slider-swiper-wrapper" }, h("slot", { name: 'items' })))));
|
|
516
|
+
}
|
|
517
|
+
return (h(Host, { class: 's-slider-wrapper ' + classes }, this.blockTitle || this.showControls ?
|
|
497
518
|
h("div", { class: "s-slider-block__title" }, this.blockTitle ?
|
|
498
519
|
h("div", { class: "s-slider-block__title-right" }, h("h2", null, this.blockTitle), this.blockSubtitle ? h("p", { innerHTML: this.blockSubtitle }) : '')
|
|
499
520
|
: '', h("div", { class: "s-slider-block__title-left" }, this.displayAllUrl ?
|
|
@@ -501,7 +522,7 @@ export class SallaSlider {
|
|
|
501
522
|
: '', this.showControls ?
|
|
502
523
|
h("div", { class: "s-slider-block__title-nav", dir: "rtl" }, h("button", { "aria-label": "Previous Slide", class: "s-slider-prev s-slider-nav-arrow" }, h("span", { class: "s-slider-button-icon", innerHTML: this.direction == 'rtl' ? ArrowRightIcon : ArrowLeftIcon })), h("button", { "aria-label": "Next Slide", class: "s-slider-next s-slider-nav-arrow" }, h("span", { class: "s-slider-button-icon", innerHTML: this.direction == 'rtl' ? ArrowLeftIcon : ArrowRightIcon })))
|
|
503
524
|
: ''))
|
|
504
|
-
: '', h("div", {
|
|
525
|
+
: '', h("div", { class: "swiper s-slider-container", ref: el => this.sliderContainer = el, dir: this.vertical ? "ltr" : this.direction }, h("slot", null), h("div", { class: "swiper-wrapper s-slider-swiper-wrapper", ref: el => this.sliderWrapper = el }, h("slot", { name: 'items' })), this.pagination ? h("div", { class: "swiper-pagination" }) : ''), this.type == 'thumbs' && this.hasThumbSlot ? h("div", { class: "s-slider-thumbs" }, h("div", { class: "swiper s-slider-thumbs-container", dir: this.getThumbsDirection(), ref: el => this.thumbsSliderContainer = el }, h("div", { class: { "s-slider-swiper-wrapper swiper-wrapper": true, "s-slider-grid-thumbs": this.gridThumbs }, ref: el => this.thumbsSliderWrapper = el }, h("slot", { name: "thumbs" })), this.showThumbsControls ?
|
|
505
526
|
h("div", { class: "s-slider-thumbs-nav", dir: "rtl" }, h("button", { "aria-label": "Previous Slide", class: "s-slider-thumbs-prev s-slider-nav-arrow" }, h("span", { class: "s-slider-button-icon", innerHTML: this.direction == 'rtl' ? ArrowRightIcon : ArrowLeftIcon })), h("button", { "aria-label": "Next Slide", class: "s-slider-thumbs-next s-slider-nav-arrow" }, h("span", { class: "s-slider-button-icon", innerHTML: this.direction == 'rtl' ? ArrowLeftIcon : ArrowRightIcon })))
|
|
506
527
|
: null))
|
|
507
528
|
: null));
|
|
@@ -560,25 +581,43 @@ export class SallaSlider {
|
|
|
560
581
|
}
|
|
561
582
|
this.lazyObserver.observe(el);
|
|
562
583
|
}
|
|
563
|
-
/** Keep only element nodes so Swiper never sees text nodes (getAttribute would throw). */
|
|
564
|
-
flattenSlotToElements(container, slotSelector) {
|
|
565
|
-
const slotEl = container?.querySelector(slotSelector);
|
|
566
|
-
if (!slotEl)
|
|
567
|
-
return;
|
|
568
|
-
const elements = Array.from(slotEl.children).filter((node) => node.nodeType === Node.ELEMENT_NODE);
|
|
569
|
-
if (elements.length)
|
|
570
|
-
slotEl.replaceWith(...elements);
|
|
571
|
-
}
|
|
572
584
|
componentDidLoad() {
|
|
573
|
-
|
|
585
|
+
// 1. Batch Reads (Get all elements first without modifying DOM)
|
|
586
|
+
const tasks = [];
|
|
587
|
+
let _singleSlideMode = false;
|
|
588
|
+
const prepareFlatten = (container, slotSelector) => {
|
|
589
|
+
const slotEl = container?.querySelector(slotSelector);
|
|
590
|
+
if (!slotEl)
|
|
591
|
+
return;
|
|
592
|
+
const elements = Array.from(slotEl.children).filter((node) => node.nodeType === Node.ELEMENT_NODE);
|
|
593
|
+
if (elements.length) {
|
|
594
|
+
// Queue the Write operation
|
|
595
|
+
tasks.push(() => slotEl.replaceWith(...elements));
|
|
596
|
+
if (elements.length === 1 && this.enableSingleSlideMode) {
|
|
597
|
+
_singleSlideMode = true;
|
|
598
|
+
elements[0].classList.add('swiper-slide');
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
};
|
|
602
|
+
prepareFlatten(this.sliderWrapper, 'div[slot="items"]');
|
|
574
603
|
if (this.type == 'thumbs' && this.hasThumbSlot) {
|
|
575
|
-
|
|
604
|
+
prepareFlatten(this.thumbsSliderWrapper, 'div[slot="thumbs"]');
|
|
576
605
|
}
|
|
577
|
-
|
|
606
|
+
// 2. Batch Writes (Execute all DOM modifications together)
|
|
607
|
+
tasks.forEach(task => task());
|
|
608
|
+
// 3. Init Swiper inside rAF
|
|
609
|
+
this._rafId = requestAnimationFrame(() => {
|
|
610
|
+
this.singleSlideMode = _singleSlideMode;
|
|
611
|
+
if (!_singleSlideMode) {
|
|
612
|
+
this.initSlider();
|
|
613
|
+
}
|
|
614
|
+
});
|
|
578
615
|
this.viewportMediaQuery = window.matchMedia('(min-width: 768px)');
|
|
579
616
|
this.viewportMediaQuery.addEventListener('change', this.onViewportChange);
|
|
580
617
|
}
|
|
581
618
|
disconnectedCallback() {
|
|
619
|
+
if (this._rafId)
|
|
620
|
+
cancelAnimationFrame(this._rafId);
|
|
582
621
|
this.viewportMediaQuery?.removeEventListener('change', this.onViewportChange);
|
|
583
622
|
this.lazyObserver?.disconnect();
|
|
584
623
|
this.lazyImageObserver?.disconnect();
|
|
@@ -836,6 +875,26 @@ export class SallaSlider {
|
|
|
836
875
|
"reflect": false,
|
|
837
876
|
"defaultValue": "true"
|
|
838
877
|
},
|
|
878
|
+
"enableSingleSlideMode": {
|
|
879
|
+
"type": "boolean",
|
|
880
|
+
"attribute": "enable-single-slide-mode",
|
|
881
|
+
"mutable": false,
|
|
882
|
+
"complexType": {
|
|
883
|
+
"original": "boolean",
|
|
884
|
+
"resolved": "boolean",
|
|
885
|
+
"references": {}
|
|
886
|
+
},
|
|
887
|
+
"required": false,
|
|
888
|
+
"optional": false,
|
|
889
|
+
"docs": {
|
|
890
|
+
"tags": [],
|
|
891
|
+
"text": "When enabled and there is exactly one slide in the `items` slot,\nrender without initializing Swiper (single slide mode)."
|
|
892
|
+
},
|
|
893
|
+
"getter": false,
|
|
894
|
+
"setter": false,
|
|
895
|
+
"reflect": true,
|
|
896
|
+
"defaultValue": "false"
|
|
897
|
+
},
|
|
839
898
|
"autoPlay": {
|
|
840
899
|
"type": "boolean",
|
|
841
900
|
"attribute": "auto-play",
|
|
@@ -1027,7 +1086,8 @@ export class SallaSlider {
|
|
|
1027
1086
|
"isEnd": {},
|
|
1028
1087
|
"isBeginning": {},
|
|
1029
1088
|
"displayAllTitle": {},
|
|
1030
|
-
"isDesktopViewport": {}
|
|
1089
|
+
"isDesktopViewport": {},
|
|
1090
|
+
"singleSlideMode": {}
|
|
1031
1091
|
};
|
|
1032
1092
|
}
|
|
1033
1093
|
static get events() {
|
|
@@ -31,7 +31,7 @@ export class SallaSocial {
|
|
|
31
31
|
}
|
|
32
32
|
render() {
|
|
33
33
|
const linksArray = this.getLinksArray();
|
|
34
|
-
return (h(Host, { key: '
|
|
34
|
+
return (h(Host, { key: '20f01d2027bf9ac9fa635c2e814bf9778c5abf8c' }, h("ul", { key: '016fc5a496d6efd36cf15dc805dd83ee4d6a9845', class: "s-social-list" }, linksArray.map((link) => (h("li", { class: "s-social-link" }, h("div", { id: "social-slot", innerHTML: this.socialSlot
|
|
35
35
|
.replace(/\{icon\}/g, this.iconsList[link.type])
|
|
36
36
|
.replace(/\{type\}/g, link.type)
|
|
37
37
|
.replace(/\{link\}/g, link.value.toString()) })))))));
|
|
@@ -122,7 +122,7 @@ export class SallaSocialShare {
|
|
|
122
122
|
window.a2a?.init('page');
|
|
123
123
|
}
|
|
124
124
|
render() {
|
|
125
|
-
return (h("div", { key: '
|
|
125
|
+
return (h("div", { key: '05350f69911825a04716569eaac5769c67b07e24', class: "s-social-share-wrapper" }, h("slot", { key: 'c9bb03b5907e8d211d1a2bc7d36b0924dd2fa00b', name: 'widget' }, h("salla-button", { key: '3120d746deabb24bc2b3994a1088a42e355c2796', "aria-label": "Share", onClick: () => this.open(), class: "s-social-share-btn", shape: "icon", fill: "outline", color: "light" }, h("span", { key: '7874b8c8aceb1372d061d0142405a3f07e3c0ba3', innerHTML: this.opened ? Cancel : ShareAlt }))), h("ul", { key: 'deaa966a6ae4a91a350361f44316d749f8459cec', ref: el => this.shareMenu = el, class: "s-social-share-list a2a_kit share", "data-a2a-url": this.url ? this.url : window.location.href, "data-a2a-title": this.urlName ? this.urlName : document.title }, this.platforms.split(',').map(platform => {
|
|
126
126
|
return (h("li", null, h("a", { class: `a2a_button_${platform}`, "aria-label": `Share Via ${platform}` }, this.platformIcons.map((icon) => {
|
|
127
127
|
if (icon.name === platform) {
|
|
128
128
|
return h("span", { class: "s-social-share-icon", innerHTML: icon.icon });
|
|
@@ -30,7 +30,7 @@ export class SallaTabContent {
|
|
|
30
30
|
's-tabs-content': true,
|
|
31
31
|
's-tabs-content-selected': this.isSelected
|
|
32
32
|
};
|
|
33
|
-
return (h("div", { key: '
|
|
33
|
+
return (h("div", { key: 'dd7c68e402701af152ab5d3d5afb2565f9b4a5cb', class: classes }, h("slot", { key: 'f7599dd3d56d04dd06d9d8cce105d0c7b73b6195' })));
|
|
34
34
|
}
|
|
35
35
|
static get is() { return "salla-tab-content"; }
|
|
36
36
|
static get originalStyleUrls() {
|
|
@@ -52,7 +52,7 @@ export class SallaTabHeader {
|
|
|
52
52
|
's-tabs-active': this.isSelected,
|
|
53
53
|
};
|
|
54
54
|
return [
|
|
55
|
-
h("div", { key: '
|
|
55
|
+
h("div", { key: '70daa4821b240da5f44591c427999d34556a0fed', class: classes, onClick: this.onClick.bind(this) }, h("slot", { key: '002eb0a0e48f3a31f272a393bf4fce94bcd0c841' })),
|
|
56
56
|
];
|
|
57
57
|
}
|
|
58
58
|
static get is() { return "salla-tab-header"; }
|
|
@@ -50,7 +50,7 @@ export class SallaTabs {
|
|
|
50
50
|
}
|
|
51
51
|
render() {
|
|
52
52
|
return [
|
|
53
|
-
h("div", { key: '
|
|
53
|
+
h("div", { key: '485e1ff4ea6a556dfdd8a2e7f8166c9e3d721c7d', class: "s-tabs" }, h("div", { key: 'a2825df331fdfc01de63eea7800ad62e4814205b', class: "s-tabs-header" }, h("slot", { key: 'd9d3c9bdbce261daccd480c0245fd06930b03602', name: "header" })), h("div", { key: '9e02ff1a53ffd068f1b1da6cbe5fec7adbc38492', class: "s-tabs-content-wrapper" }, h("slot", { key: '222b612d9ef34d936b3ccb1a883a42c135f67661', name: "content" })))
|
|
54
54
|
];
|
|
55
55
|
}
|
|
56
56
|
static get is() { return "salla-tabs"; }
|
|
@@ -123,7 +123,7 @@ export class SallaTelInput {
|
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
render() {
|
|
126
|
-
return (h(Host, { key: '
|
|
126
|
+
return (h(Host, { key: '686fca532ab7d1e665aeef0f402c1112182ff198', class: "s-tel-input" }, h("input", { key: '5fc71e100bedb49cd0a37b75167e0b5eb654b7b2', type: "tel", disabled: this.disabled, name: this.name, value: this.phone, onChange: (event) => this.handleCountryInput(event), ref: el => this.phoneInput = el, enterkeyhint: "next", autocomplete: "tel", class: "s-tel-input-control tel-input s-ltr" }), h("span", { key: '1b28cb0c192b9999177859c4c35c77f64d48317d', class: "s-tel-input-error-msg", ref: el => this.errorMsg = el }), h("input", { key: '6d8d987f074dda360784d7121f8fed730f42772a', type: "hidden", name: "country_code", value: this.countryCode, ref: el => this.countryCodeInput = el, class: "country_code" })));
|
|
127
127
|
}
|
|
128
128
|
componentDidLoad() {
|
|
129
129
|
this.initTelInput();
|
|
@@ -22,7 +22,7 @@ export class SallaTooltip {
|
|
|
22
22
|
this.targetElement = document.getElementById(this.targetId);
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
|
-
return (h("div", { key: '
|
|
25
|
+
return (h("div", { key: 'fed457c496e7926ded53c47e1f6f7783eb9da5a0', class: "s-tooltip-container" }, h("slot", { key: 'd061264ee544bb9f4ca7ec3aa03f54b84c8af1fd' }), this.show && h("div", { key: '5d4a158dce0b562cb6e3c9bc732f47dcb96c182a', class: "s-tooltip-item" }, this.text)));
|
|
26
26
|
}
|
|
27
27
|
static get is() { return "salla-tooltip"; }
|
|
28
28
|
static get originalStyleUrls() {
|
|
@@ -56,7 +56,7 @@ export class SallaUserSettings {
|
|
|
56
56
|
await salla.profile.delete().finally(() => this.confirmationModal.close());
|
|
57
57
|
}
|
|
58
58
|
render() {
|
|
59
|
-
return (h(Host, { key: '
|
|
59
|
+
return (h(Host, { key: '1a6622794c68aa483d9a2526d7c9568619145168', class: "s-user-settings-wrapper" }, this.canHideName && h("div", { key: '4188aabfd44edb57365f5a2d1c0910f5ec3cd447', class: "s-user-settings-section" }, h("salla-list-tile", { key: '9f9ccbb08d666a13bf19895349a17f84fbdd3fc1' }, h("div", { key: '85426ad3140db951064c29c988badc23447a238d', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: 'd1a386387320cf907e4645240cace32ac27a1e5b', innerHTML: UserCancel })), h("div", { key: '1310d3547da0c2dd23e254eaf1b22f1b54956ef2', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.hideMyName)), h("div", { key: '639ef8121549e9c119def1c8012b42647249df2c', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.hideMyNameDesc)), h("div", { key: 'aa8d60ad8c61d682e2114471e6168609bb4e9cb0', slot: 'action', class: "s-user-settings-section-action" }, h("label", { key: '9d8d52ec4bdfb2032649ae37823070ea0902cb9d', class: "s-toggle" }, h("input", { key: 'f263da0f32ee2682bf442253980fe68da933cb06', class: "s-toggle-input", checked: this.isHiddenName, onChange: (e) => this.toggleSetting('is_hidden_name', e), type: "checkbox" }), h("div", { key: '058e908fcb2a61a239ff5ae67adaa290553feb0a', class: "s-toggle-switcher" }))))), h("div", { key: '2e314b366093f06ebc8e583c17d3f2f2125cd2e7', class: "s-user-settings-section" }, h("salla-list-tile", { key: '5e2fb8520042ccbd4301b20046369f65fb292a49' }, h("div", { key: '25918c6b5402504a0683f2f6931b58e3663ba4eb', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: '0d24d9ecb8f7d48d1dba9eaebaad8093210f0a57', innerHTML: Bullhorn })), h("div", { key: 'e212afc7b1ad19e0c4976e5686bc51a847e94d61', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.promotionalMsgs)), h("div", { key: '3f4f72fe869f7cd6f4b4df870e6af8bd1cc32088', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.promotionalMsgsDesc)), h("div", { key: '6929527d156f6da1f9ca61be60b756621b7fb321', slot: 'action', class: "s-user-settings-section-action" }, h("label", { key: '1f3f3c77b25f602f3a4f461da321df2bcee2a956', class: "s-toggle" }, h("input", { key: 'afd4616efa19cdf04e32fd785af72a6c96ef980c', class: "s-toggle-input", checked: this.isNotifiable, onChange: (e) => this.toggleSetting('is_notifiable', e), type: "checkbox" }), h("div", { key: 'ef55c0480c58c3a77b4c28980c34b89197e2c84c', class: "s-toggle-switcher" }))))), h("div", { key: '7fc42b2d9ee0c58fd210b6704f96de07cf58c703', class: "s-user-settings-section s-user-settings-section-deactivate-user" }, h("salla-list-tile", { key: '35bc4e485e78f57cce3fa9d324578997bf5b5346' }, h("div", { key: 'd2643402a5f414beb388622d96352600a58e7788', slot: "icon", class: "s-user-settings-section-icon" }, h("span", { key: '90a634d2ff464a26f7a09df39cf0cce6f7a1ce87', innerHTML: UserOff })), h("div", { key: '3376df9d4baee75e502df2b8265328910f692708', slot: "title", class: "s-user-settings-section-title" }, this.capitalizeText(this.deactivateAccount)), h("div", { key: '1452beb1f275f905b7a1ecb7e76a4223700f7d03', slot: "subtitle", class: "s-user-settings-section-subtitle" }, this.capitalizeText(this.deactivateDesc)), h("div", { key: '28bc808fbd51274f587abee141f67242100aea03', slot: 'action', class: "s-user-settings-section-action" }, h("salla-button", { key: 'c54e8db52d35e9ab62e2616a0dfb3a10417fcb80', fill: "outline", color: "danger", shape: "btn", size: "medium", width: "normal", onClick: () => this.openDeactivateModal() }, this.capitalizeText(this.deactivateAccount))))), h("salla-modal", { key: 'a1d52fd66ed991f8411ca17b16e37d21893a2f06', width: "sm", subTitle: this.capitalizeText(this.sorryForLeavingText), ref: modal => this.confirmationModal = modal }, h("span", { key: '9119095941bd2a579b27c18db025238ca652bd6b', slot: 'icon', class: "s-user-settings-confirmation-icon", innerHTML: UserOff }), h("div", { key: '3194c2236470a7da32bc065218162da80ea7713c', class: "s-user-settings-confirmation" }, h("div", { key: '718f43edf4e6a22ed23e0edaccee07fd3fa46e13', class: "s-user-settings-confirmation-warning" }, this.capitalizeText(this.warningText)), h("div", { key: 'a87fcd03f6d97afc26f8410faacfcbbbc81cd8bb', class: "s-user-settings-confirmation-actions" }, h("salla-button", { key: '366186ea98a351d1f0a1f6b3dc2eeddc18e46a33', width: "wide", onClick: () => this.confirmationModal.close() }, this.capitalizeText(this.keepAccount)), h("salla-button", { key: 'f42dc54f7903f3e48ab8c3ac8af0d57039753cf6', fill: 'outline', loading: this.buttonLoading, width: "wide", onClick: () => this.deleteAccount() }, this.capitalizeText(this.deactivateAccount)))))));
|
|
60
60
|
}
|
|
61
61
|
static get is() { return "salla-user-settings"; }
|
|
62
62
|
static get originalStyleUrls() {
|