@ptcwebops/ptcw-design 6.5.1-upgrade → 6.5.2-upgrade
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/fef-stencil-v4.cjs.js +1 -1
- package/dist/cjs/fl-tab-content_3.cjs.entry.js +4 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/max-width-container.cjs.entry.js +1 -1
- package/dist/cjs/ptc-breadcrumb.cjs.entry.js +12 -2
- package/dist/cjs/ptc-breadcrumb.entry.cjs.js.map +1 -1
- package/dist/cjs/ptc-brightcov-video.cjs.entry.js +1 -1
- package/dist/cjs/ptc-button.cjs.entry.js +1 -1
- package/dist/cjs/ptc-button.entry.cjs.js.map +1 -1
- package/dist/cjs/ptc-card-bottom.cjs.entry.js +1 -1
- package/dist/cjs/ptc-card-content.cjs.entry.js +2 -2
- package/dist/cjs/ptc-card-wrapper.cjs.entry.js +3 -3
- package/dist/cjs/ptc-card.cjs.entry.js +7 -7
- package/dist/cjs/ptc-checkbox-group.cjs.entry.js +1 -1
- package/dist/cjs/ptc-close-icon_2.cjs.entry.js +1 -1
- package/dist/cjs/ptc-container.cjs.entry.js +1 -1
- package/dist/cjs/ptc-countdown.cjs.entry.js +1 -1
- package/dist/cjs/ptc-data-lookup.cjs.entry.js +1 -1
- package/dist/cjs/ptc-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/ptc-dynamic-card.cjs.entry.js +2 -2
- package/dist/cjs/ptc-ellipsis-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/ptc-enhanced-product-listing-card.cjs.entry.js +2 -2
- package/dist/cjs/ptc-featured-list.cjs.entry.js +1 -1
- package/dist/cjs/ptc-filter-dropdown_4.cjs.entry.js +8 -8
- package/dist/cjs/ptc-filter-level-theater.cjs.entry.js +14 -14
- package/dist/cjs/ptc-filter-tag.cjs.entry.js +3 -3
- package/dist/cjs/ptc-footer.cjs.entry.js +2 -2
- package/dist/cjs/ptc-form-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/ptc-hero-footer-cta.cjs.entry.js +1 -1
- package/dist/cjs/ptc-hero.cjs.entry.js +1 -1
- package/dist/cjs/ptc-homepage-image-feature.cjs.entry.js +2 -2
- package/dist/cjs/ptc-homepage-image-feature.entry.cjs.js.map +1 -1
- package/dist/cjs/ptc-homepage-video-background.cjs.entry.js +1 -1
- package/dist/cjs/ptc-icon-card.cjs.entry.js +2 -2
- package/dist/cjs/ptc-icon-component.cjs.entry.js +1 -1
- package/dist/cjs/ptc-icon-list.cjs.entry.js +1 -1
- package/dist/cjs/ptc-icon-minimize.cjs.entry.js +1 -1
- package/dist/cjs/ptc-image-download-strip.cjs.entry.js +2 -2
- package/dist/cjs/ptc-info-tile.cjs.entry.js +2 -2
- package/dist/cjs/ptc-jumbotron.cjs.entry.js +14 -14
- package/dist/cjs/ptc-media-card.cjs.entry.js +2 -2
- package/dist/cjs/ptc-minimized-nav.cjs.entry.js +1 -1
- package/dist/cjs/ptc-mobile-select.cjs.entry.js +439 -439
- package/dist/cjs/ptc-mobile-select.entry.cjs.js.map +1 -1
- package/dist/cjs/ptc-multi-select.cjs.entry.js +4 -4
- package/dist/cjs/ptc-nav-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-nav-link.cjs.entry.js +2 -2
- package/dist/cjs/ptc-nav-pills.cjs.entry.js +1 -1
- package/dist/cjs/ptc-nav-skip-to-content.cjs.entry.js +1 -1
- package/dist/cjs/ptc-nav-slider.cjs.entry.js +1 -1
- package/dist/cjs/ptc-nav-submenu.cjs.entry.js +1 -1
- package/dist/cjs/ptc-nav-tile.cjs.entry.js +1 -1
- package/dist/cjs/ptc-news.cjs.entry.js +1 -1
- package/dist/cjs/ptc-office-location-card.cjs.entry.js +2 -2
- package/dist/cjs/ptc-office-locations.cjs.entry.js +8 -8
- package/dist/cjs/ptc-podcast-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-preferance-center-form.cjs.entry.js +3 -3
- package/dist/cjs/ptc-preloader-section.cjs.entry.js +1 -1
- package/dist/cjs/ptc-preloader.cjs.entry.js +1 -1
- package/dist/cjs/ptc-previous-url.cjs.entry.js +1 -1
- package/dist/cjs/ptc-pricing-add-on-card.cjs.entry.js +2 -2
- package/dist/cjs/ptc-pricing-add-on-section.cjs.entry.js +1 -1
- package/dist/cjs/ptc-pricing-block.cjs.entry.js +1 -1
- package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +2 -2
- package/dist/cjs/ptc-product-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-product-category.cjs.entry.js +1 -1
- package/dist/cjs/ptc-product-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/ptc-product-highlight-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-product-list.cjs.entry.js +2 -2
- package/dist/cjs/ptc-product-sidebar.cjs.entry.js +2 -2
- package/dist/cjs/ptc-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/ptc-quantity-counter.cjs.entry.js +1 -1
- package/dist/cjs/ptc-quote.cjs.entry.js +3 -3
- package/dist/cjs/ptc-responsive-wrapper.cjs.entry.js +1 -1
- package/dist/cjs/ptc-scroll-button.cjs.entry.js +1 -1
- package/dist/cjs/ptc-search-field.cjs.entry.js +4 -4
- package/dist/cjs/ptc-seo-title.cjs.entry.js +1 -1
- package/dist/cjs/ptc-shopping-cart.cjs.entry.js +1 -1
- package/dist/cjs/ptc-showcase-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/ptc-slit-card.cjs.entry.js +2 -2
- package/dist/cjs/ptc-social-icons-footer.cjs.entry.js +5 -5
- package/dist/cjs/ptc-social-icons.cjs.entry.js +1 -1
- package/dist/cjs/ptc-spacer.cjs.entry.js +1 -1
- package/dist/cjs/ptc-square-card.cjs.entry.js +2 -2
- package/dist/cjs/ptc-sticky-icons.cjs.entry.js +1 -1
- package/dist/cjs/ptc-sticky-section.cjs.entry.js +1 -1
- package/dist/cjs/ptc-sticky-title.cjs.entry.js +1 -1
- package/dist/cjs/ptc-subnav-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-subnav.cjs.entry.js +2 -2
- package/dist/cjs/ptc-tab-list.cjs.entry.js +2 -2
- package/dist/cjs/ptc-tab.cjs.entry.js +1 -1
- package/dist/cjs/ptc-tabs.cjs.entry.js +1 -1
- package/dist/cjs/ptc-text-copy-with-background.cjs.entry.js +1 -1
- package/dist/cjs/ptc-theater-video-modal.cjs.entry.js +1 -1
- package/dist/cjs/ptc-two-column-media.cjs.entry.js +1 -1
- package/dist/cjs/ptc-value-led-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-value-led-content-highlight.cjs.entry.js +1 -1
- package/dist/cjs/ptc-value-led-content.cjs.entry.js +1 -1
- package/dist/cjs/ptc-value-led-intro.cjs.entry.js +1 -1
- package/dist/cjs/ptc-value-led-layout.cjs.entry.js +4 -4
- package/dist/cjs/ptc-value-led-speed-bump.cjs.entry.js +1 -1
- package/dist/cjs/ptc-value-prop-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-white-paper.cjs.entry.js +2 -2
- package/dist/cjs/tab-content.cjs.entry.js +2 -2
- package/dist/cjs/tab-header.cjs.entry.js +1 -1
- package/dist/collection/components/atoms/ptc-button/ptc-button.css +45 -0
- package/dist/collection/components/molecules/ptc-breadcrumb/ptc-breadcrumb.js +31 -2
- package/dist/collection/components/molecules/ptc-breadcrumb/ptc-breadcrumb.js.map +1 -1
- package/dist/collection/components/molecules/ptc-brightcov-video/ptc-brightcov-video.js +1 -1
- package/dist/collection/components/molecules/ptc-card/ptc-card.js +7 -7
- package/dist/collection/components/molecules/ptc-card-bottom/ptc-card-bottom.js +1 -1
- package/dist/collection/components/molecules/ptc-card-content/ptc-card-content.js +2 -2
- package/dist/collection/components/molecules/ptc-card-wrapper/ptc-card-wrapper.js +3 -3
- package/dist/collection/components/molecules/ptc-checkbox-group/ptc-checkbox-group.js +1 -1
- package/dist/collection/components/molecules/ptc-close-icon/ptc-close-icon.js +1 -1
- package/dist/collection/components/molecules/ptc-container/ptc-container.js +1 -1
- package/dist/collection/components/molecules/ptc-countdown/ptc-countdown.js +1 -1
- package/dist/collection/components/molecules/ptc-data-lookup/ptc-data-lookup.js +1 -1
- package/dist/collection/components/molecules/ptc-dropdown/ptc-dropdown.js +2 -2
- package/dist/collection/components/molecules/ptc-dynamic-card/ptc-dynamic-card.js +2 -2
- package/dist/collection/components/molecules/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.js +2 -2
- package/dist/collection/components/molecules/ptc-enhanced-product-listing-card/ptc-enhanced-product-listing-card.js +2 -2
- package/dist/collection/components/molecules/ptc-featured-list/fl-tab-content/fl-tab-content.js +2 -2
- package/dist/collection/components/molecules/ptc-featured-list/fl-tab-header/fl-tab-header.js +1 -1
- package/dist/collection/components/molecules/ptc-featured-list/fl-tab-image/fl-tab-image.js +1 -1
- package/dist/collection/components/molecules/ptc-featured-list/ptc-featured-list.js +1 -1
- package/dist/collection/components/molecules/ptc-filter-dropdown/ptc-filter-dropdown.js +4 -4
- package/dist/collection/components/molecules/ptc-filter-level-theater/ptc-filter-level-theater.js +14 -14
- package/dist/collection/components/molecules/ptc-filter-tag/ptc-filter-tag.js +3 -3
- package/dist/collection/components/molecules/ptc-footer/ptc-footer.js +2 -2
- package/dist/collection/components/molecules/ptc-form-radio-group/ptc-form-radio-group.js +1 -1
- package/dist/collection/components/molecules/ptc-hero/ptc-hero.js +1 -1
- package/dist/collection/components/molecules/ptc-hero-footer-cta/ptc-hero-footer-cta.js +1 -1
- package/dist/collection/components/molecules/ptc-homepage-image-feature/ptc-homepage-image-feature.css +1 -0
- package/dist/collection/components/molecules/ptc-homepage-image-feature/ptc-homepage-image-feature.js +1 -1
- package/dist/collection/components/molecules/ptc-homepage-video-background/ptc-homepage-video-background.js +1 -1
- package/dist/collection/components/molecules/ptc-icon-card/ptc-icon-card.js +2 -2
- package/dist/collection/components/molecules/ptc-icon-component/ptc-icon-component.js +1 -1
- package/dist/collection/components/molecules/ptc-icon-list/ptc-icon-list.js +1 -1
- package/dist/collection/components/molecules/ptc-icon-minimize/ptc-icon-minimize.js +1 -1
- package/dist/collection/components/molecules/ptc-image-download-strip/ptc-image-download-strip.js +2 -2
- package/dist/collection/components/molecules/ptc-info-tile/ptc-info-tile.js +2 -2
- package/dist/collection/components/molecules/ptc-jumbotron/ptc-jumbotron.js +14 -14
- package/dist/collection/components/molecules/ptc-media-card/ptc-media-card.js +2 -2
- package/dist/collection/components/molecules/ptc-minimized-nav/ptc-minimized-nav.js +1 -1
- package/dist/collection/components/molecules/ptc-mobile-select/ptc-mobile-select.css +164 -164
- package/dist/collection/components/molecules/ptc-mobile-select/ptc-mobile-select.js +4 -4
- package/dist/collection/components/molecules/ptc-mobile-select/ptc-mobile-select.js.map +1 -1
- package/dist/collection/components/molecules/ptc-multi-select/ptc-multi-select.js +4 -4
- package/dist/collection/components/molecules/ptc-nav-card/ptc-nav-card.js +1 -1
- package/dist/collection/components/molecules/ptc-nav-pills/ptc-nav-pills.js +1 -1
- package/dist/collection/components/molecules/ptc-nav-skip-to-content/ptc-nav-skip-to-content.js +1 -1
- package/dist/collection/components/molecules/ptc-nav-tile/ptc-nav-tile.js +1 -1
- package/dist/collection/components/molecules/ptc-news/ptc-news.js +1 -1
- package/dist/collection/components/molecules/ptc-office-location-card/ptc-office-location-card.js +2 -2
- package/dist/collection/components/molecules/ptc-office-locations/ptc-office-locations.js +8 -8
- package/dist/collection/components/molecules/ptc-podcast-card/ptc-podcast-card.js +1 -1
- package/dist/collection/components/molecules/ptc-preferance-center-form/ptc-preferance-center-form.js +3 -3
- package/dist/collection/components/molecules/ptc-preloader/ptc-preloader.js +1 -1
- package/dist/collection/components/molecules/ptc-preloader-section/ptc-preloader-section.js +1 -1
- package/dist/collection/components/molecules/ptc-previous-url/ptc-previous-url.js +1 -1
- package/dist/collection/components/molecules/ptc-pricing-add-on-card/ptc-pricing-add-on-card.js +2 -2
- package/dist/collection/components/molecules/ptc-pricing-add-on-section/ptc-pricing-add-on-section.js +1 -1
- package/dist/collection/components/molecules/ptc-pricing-block/ptc-pricing-block.js +1 -1
- package/dist/collection/components/molecules/ptc-pricing-tabs/ptc-pricing-tabs.js +2 -2
- package/dist/collection/components/molecules/ptc-product-card/ptc-product-card.js +1 -1
- package/dist/collection/components/molecules/ptc-product-category/ptc-product-category.js +1 -1
- package/dist/collection/components/molecules/ptc-product-dropdown/ptc-product-dropdown.js +2 -2
- package/dist/collection/components/molecules/ptc-product-highlight-card/ptc-product-highlight-card.js +1 -1
- package/dist/collection/components/molecules/ptc-product-list/ptc-product-list.js +2 -2
- package/dist/collection/components/molecules/ptc-product-sidebar/ptc-product-sidebar.js +2 -2
- package/dist/collection/components/molecules/ptc-progress-bar/ptc-progress-bar.js +1 -1
- package/dist/collection/components/molecules/ptc-quantity-counter/ptc-quantity-counter.js +1 -1
- package/dist/collection/components/molecules/ptc-quote/ptc-quote.js +3 -3
- package/dist/collection/components/molecules/ptc-scroll-button/ptc-scroll-button.js +1 -1
- package/dist/collection/components/molecules/ptc-search-field/ptc-search-field.js +4 -4
- package/dist/collection/components/molecules/ptc-seo-title/ptc-seo-title.js +1 -1
- package/dist/collection/components/molecules/ptc-shopping-cart/ptc-shopping-cart.js +1 -1
- package/dist/collection/components/molecules/ptc-showcase-card/ptc-showcase-card.js +1 -1
- package/dist/collection/components/molecules/ptc-skeleton/ptc-skeleton.js +1 -1
- package/dist/collection/components/molecules/ptc-slit-card/ptc-slit-card.js +2 -2
- package/dist/collection/components/molecules/ptc-social-icons/ptc-social-icons.js +1 -1
- package/dist/collection/components/molecules/ptc-social-icons-footer/ptc-social-icons-footer.js +5 -5
- package/dist/collection/components/molecules/ptc-social-share/ptc-social-share.js +2 -2
- package/dist/collection/components/molecules/ptc-square-card/ptc-square-card.js +2 -2
- package/dist/collection/components/molecules/ptc-sticky-icons/ptc-sticky-icons.js +1 -1
- package/dist/collection/components/molecules/ptc-sticky-section/ptc-sticky-section.js +1 -1
- package/dist/collection/components/molecules/ptc-sticky-title/ptc-sticky-title.js +1 -1
- package/dist/collection/components/molecules/ptc-tab-list/ptc-tab-list.js +2 -2
- package/dist/collection/components/molecules/ptc-tabs/ptc-tab.js +1 -1
- package/dist/collection/components/molecules/ptc-tabs/ptc-tabs.js +1 -1
- package/dist/collection/components/molecules/ptc-text-copy-with-background/ptc-text-copy-with-background.js +1 -1
- package/dist/collection/components/molecules/ptc-theater-video/ptc-theater-video.js +1 -1
- package/dist/collection/components/molecules/ptc-theater-video-modal/ptc-theater-video-modal.js +1 -1
- package/dist/collection/components/molecules/ptc-theater-video-playlist/ptc-theater-video-playlist.js +1 -1
- package/dist/collection/components/molecules/ptc-two-column-media/ptc-two-column-media.js +1 -1
- package/dist/collection/components/molecules/ptc-value-led-card/ptc-value-led-card.js +1 -1
- package/dist/collection/components/molecules/ptc-value-led-content/ptc-value-led-content.js +1 -1
- package/dist/collection/components/molecules/ptc-value-led-content-highlight/ptc-value-led-content-highlight.js +1 -1
- package/dist/collection/components/molecules/ptc-value-led-intro/ptc-value-led-intro.js +1 -1
- package/dist/collection/components/molecules/ptc-value-led-layout/ptc-value-led-layout.js +4 -4
- package/dist/collection/components/molecules/ptc-value-led-speed-bump/ptc-value-led-speed-bump.js +1 -1
- package/dist/collection/components/molecules/ptc-value-prop-card/ptc-value-prop-card.js +1 -1
- package/dist/collection/components/molecules/ptc-white-paper/ptc-white-paper.js +2 -2
- package/dist/collection/components/molecules/subnav/ptc-nav-link/ptc-nav-link.js +2 -2
- package/dist/collection/components/molecules/subnav/ptc-nav-slider/ptc-nav-slider.js +1 -1
- package/dist/collection/components/molecules/subnav/ptc-nav-submenu/ptc-nav-submenu.js +1 -1
- package/dist/collection/components/molecules/subnav/ptc-subnav/ptc-subnav.js +2 -2
- package/dist/collection/components/molecules/subnav/ptc-subnav-card/ptc-subnav-card.js +1 -1
- package/dist/collection/components/molecules/tab-content/tab-content.js +2 -2
- package/dist/collection/components/molecules/tab-header/tab-header.js +1 -1
- package/dist/collection/components/utilities/max-width-container/max-width-container.js +1 -1
- package/dist/collection/components/utilities/ptc-responsive-wrapper/ptc-responsive-wrapper.js +1 -1
- package/dist/collection/components/utilities/ptc-spacer/ptc-spacer.js +1 -1
- package/dist/components/fl-tab-content.js +1 -1
- package/dist/components/fl-tab-header.js +1 -1
- package/dist/components/fl-tab-image.js +1 -1
- package/dist/components/innovator-toggle-container.js +1 -1
- package/dist/components/max-width-container.js +1 -1
- package/dist/components/{p-2yYpUo-W.js → p-B2AE8Ljn.js} +4 -4
- package/dist/components/{p-2yYpUo-W.js.map → p-B2AE8Ljn.js.map} +1 -1
- package/dist/components/{p-CmFIhmcp.js → p-BKV5qCgg.js} +3 -3
- package/dist/components/{p-CmFIhmcp.js.map → p-BKV5qCgg.js.map} +1 -1
- package/dist/components/{p-Di1dN-rS.js → p-BTIxGOkl.js} +3 -3
- package/dist/components/p-BTIxGOkl.js.map +1 -0
- package/dist/components/{p-CZGOCgqz.js → p-BjR4RKel.js} +4 -4
- package/dist/components/{p-CZGOCgqz.js.map → p-BjR4RKel.js.map} +1 -1
- package/dist/components/{p-DCcWvMRZ.js → p-BqFAAjyb.js} +3 -3
- package/dist/components/{p-DCcWvMRZ.js.map → p-BqFAAjyb.js.map} +1 -1
- package/dist/components/{p-cpeiYXQW.js → p-BtcjaYJo.js} +3 -3
- package/dist/components/{p-cpeiYXQW.js.map → p-BtcjaYJo.js.map} +1 -1
- package/dist/components/{p-Dg2Q7cdQ.js → p-C4o67Qfa.js} +3 -3
- package/dist/components/{p-Dg2Q7cdQ.js.map → p-C4o67Qfa.js.map} +1 -1
- package/dist/components/{p-CTCdRu0i.js → p-CQ4L2QxH.js} +3 -3
- package/dist/components/{p-CTCdRu0i.js.map → p-CQ4L2QxH.js.map} +1 -1
- package/dist/components/{p-BWwsrtMD.js → p-CWqtJzrU.js} +6 -6
- package/dist/components/{p-BWwsrtMD.js.map → p-CWqtJzrU.js.map} +1 -1
- package/dist/components/{p-B4kHIgfu.js → p-CZD05Upq.js} +6 -6
- package/dist/components/{p-B4kHIgfu.js.map → p-CZD05Upq.js.map} +1 -1
- package/dist/components/{p-BGnpRAdi.js → p-DG0vgjEu.js} +3 -3
- package/dist/components/{p-BGnpRAdi.js.map → p-DG0vgjEu.js.map} +1 -1
- package/dist/components/{p-B8lVUOOn.js → p-DXTY710Z.js} +3 -3
- package/dist/components/{p-B8lVUOOn.js.map → p-DXTY710Z.js.map} +1 -1
- package/dist/components/{p-Dx7NxZ8D.js → p-DXyFE3iB.js} +3 -3
- package/dist/components/{p-Dx7NxZ8D.js.map → p-DXyFE3iB.js.map} +1 -1
- package/dist/components/{p-C85pzCpS.js → p-DpjVh3vr.js} +4 -4
- package/dist/components/{p-C85pzCpS.js.map → p-DpjVh3vr.js.map} +1 -1
- package/dist/components/{p-BcoRJPo9.js → p-Dsin3633.js} +3 -3
- package/dist/components/{p-BcoRJPo9.js.map → p-Dsin3633.js.map} +1 -1
- package/dist/components/{p-CwKxlyDJ.js → p-QjJ7IpBW.js} +3 -3
- package/dist/components/{p-CwKxlyDJ.js.map → p-QjJ7IpBW.js.map} +1 -1
- package/dist/components/{p-B8QgxuN5.js → p-QrrFuybt.js} +6 -6
- package/dist/components/{p-B8QgxuN5.js.map → p-QrrFuybt.js.map} +1 -1
- package/dist/components/{p-CRF_ZCHA.js → p-RXxAc6JR.js} +3 -3
- package/dist/components/{p-CRF_ZCHA.js.map → p-RXxAc6JR.js.map} +1 -1
- package/dist/components/{p-DVOYwZ9s.js → p-qutINJcY.js} +7 -7
- package/dist/components/{p-DVOYwZ9s.js.map → p-qutINJcY.js.map} +1 -1
- package/dist/components/{p-0VYz-_6v.js → p-ycKYs79U.js} +4 -4
- package/dist/components/{p-0VYz-_6v.js.map → p-ycKYs79U.js.map} +1 -1
- package/dist/components/ptc-bio-card.js +2 -2
- package/dist/components/ptc-breadcrumb.js +14 -3
- package/dist/components/ptc-breadcrumb.js.map +1 -1
- package/dist/components/ptc-brightcov-video.js +1 -1
- package/dist/components/ptc-button.js +1 -1
- package/dist/components/ptc-card-bottom.js +1 -1
- package/dist/components/ptc-card-content.js +1 -1
- package/dist/components/ptc-card-wrapper.js +3 -3
- package/dist/components/ptc-card.js +7 -7
- package/dist/components/ptc-checkbox-group.js +1 -1
- package/dist/components/ptc-close-icon.js +1 -1
- package/dist/components/ptc-container.js +1 -1
- package/dist/components/ptc-countdown.js +1 -1
- package/dist/components/ptc-data-lookup.js +1 -1
- package/dist/components/ptc-dropdown.js +2 -2
- package/dist/components/ptc-dynamic-card.js +3 -3
- package/dist/components/ptc-ellipsis-dropdown.js +1 -1
- package/dist/components/ptc-embedded-quiz.js +2 -2
- package/dist/components/ptc-enhanced-product-listing-card.js +4 -4
- package/dist/components/ptc-featured-list.js +4 -4
- package/dist/components/ptc-filter-dropdown.js +1 -1
- package/dist/components/ptc-filter-level-theater.js +22 -22
- package/dist/components/ptc-filter-tag.js +3 -3
- package/dist/components/ptc-footer.js +2 -2
- package/dist/components/ptc-form-radio-group.js +1 -1
- package/dist/components/ptc-hero-footer-cta.js +1 -1
- package/dist/components/ptc-hero.js +1 -1
- package/dist/components/ptc-homepage-image-feature.js +2 -2
- package/dist/components/ptc-homepage-image-feature.js.map +1 -1
- package/dist/components/ptc-homepage-video-background.js +1 -1
- package/dist/components/ptc-icon-card.js +2 -2
- package/dist/components/ptc-icon-component.js +1 -1
- package/dist/components/ptc-icon-list.js +1 -1
- package/dist/components/ptc-icon-minimize.js +1 -1
- package/dist/components/ptc-image-download-strip.js +1 -1
- package/dist/components/ptc-info-tile.js +2 -2
- package/dist/components/ptc-inline-cta.js +2 -2
- package/dist/components/ptc-jumbotron.js +16 -16
- package/dist/components/ptc-media-card.js +2 -2
- package/dist/components/ptc-minimized-nav.js +1 -1
- package/dist/components/ptc-mobile-select.js +439 -439
- package/dist/components/ptc-mobile-select.js.map +1 -1
- package/dist/components/ptc-modal-quiz.js +2 -2
- package/dist/components/ptc-modal.js +1 -1
- package/dist/components/ptc-multi-select.js +4 -4
- package/dist/components/ptc-nav-card.js +1 -1
- package/dist/components/ptc-nav-link.js +2 -2
- package/dist/components/ptc-nav-pills.js +1 -1
- package/dist/components/ptc-nav-skip-to-content.js +1 -1
- package/dist/components/ptc-nav-slider.js +1 -1
- package/dist/components/ptc-nav-submenu.js +1 -1
- package/dist/components/ptc-nav-tile.js +1 -1
- package/dist/components/ptc-news.js +4 -4
- package/dist/components/ptc-office-location-card.js +4 -4
- package/dist/components/ptc-office-locations.js +11 -11
- package/dist/components/ptc-podcast-card.js +1 -1
- package/dist/components/ptc-preferance-center-form.js +3 -3
- package/dist/components/ptc-preloader-section.js +3 -3
- package/dist/components/ptc-preloader.js +1 -1
- package/dist/components/ptc-previous-url.js +1 -1
- package/dist/components/ptc-pricing-add-on-card.js +1 -1
- package/dist/components/ptc-pricing-add-on-section.js +4 -4
- package/dist/components/ptc-pricing-block.js +1 -1
- package/dist/components/ptc-pricing-packaging-table.js +2 -2
- package/dist/components/ptc-pricing-tabs.js +3 -3
- package/dist/components/ptc-product-card.js +2 -2
- package/dist/components/ptc-product-category.js +2 -2
- package/dist/components/ptc-product-dropdown.js +1 -1
- package/dist/components/ptc-product-highlight-card.js +1 -1
- package/dist/components/ptc-product-list.js +3 -3
- package/dist/components/ptc-product-sidebar.js +4 -4
- package/dist/components/ptc-progress-bar.js +1 -1
- package/dist/components/ptc-quantity-counter.js +2 -2
- package/dist/components/ptc-quote.js +4 -4
- package/dist/components/ptc-responsive-wrapper.js +1 -1
- package/dist/components/ptc-scroll-button.js +1 -1
- package/dist/components/ptc-search-field.js +4 -4
- package/dist/components/ptc-seo-title.js +1 -1
- package/dist/components/ptc-shopping-cart.js +1 -1
- package/dist/components/ptc-showcase-card.js +1 -1
- package/dist/components/ptc-skeleton.js +1 -1
- package/dist/components/ptc-slit-card.js +2 -2
- package/dist/components/ptc-social-icons-footer.js +7 -7
- package/dist/components/ptc-social-icons.js +1 -1
- package/dist/components/ptc-social-share.js +1 -1
- package/dist/components/ptc-spacer.js +1 -1
- package/dist/components/ptc-square-card.js +3 -3
- package/dist/components/ptc-sticky-icons.js +1 -1
- package/dist/components/ptc-sticky-section.js +1 -1
- package/dist/components/ptc-sticky-title.js +2 -2
- package/dist/components/ptc-subnav-card.js +1 -1
- package/dist/components/ptc-subnav.js +2 -2
- package/dist/components/ptc-tab-list.js +3 -3
- package/dist/components/ptc-tab.js +1 -1
- package/dist/components/ptc-tabs.js +1 -1
- package/dist/components/ptc-text-copy-with-background.js +1 -1
- package/dist/components/ptc-theater-video-modal.js +1 -1
- package/dist/components/ptc-theater-video-playlist.js +1 -1
- package/dist/components/ptc-theater-video.js +1 -1
- package/dist/components/ptc-two-column-media.js +1 -1
- package/dist/components/ptc-value-led-card.js +2 -2
- package/dist/components/ptc-value-led-content-highlight.js +1 -1
- package/dist/components/ptc-value-led-content.js +1 -1
- package/dist/components/ptc-value-led-intro.js +1 -1
- package/dist/components/ptc-value-led-layout.js +4 -4
- package/dist/components/ptc-value-led-speed-bump.js +1 -1
- package/dist/components/ptc-value-prop-card.js +1 -1
- package/dist/components/ptc-white-paper.js +3 -3
- package/dist/components/tab-content.js +2 -2
- package/dist/components/tab-header.js +1 -1
- package/dist/esm/fef-stencil-v4.js +1 -1
- package/dist/esm/fl-tab-content_3.entry.js +4 -4
- package/dist/esm/loader.js +1 -1
- package/dist/esm/max-width-container.entry.js +1 -1
- package/dist/esm/ptc-breadcrumb.entry.js +12 -2
- package/dist/esm/ptc-breadcrumb.entry.js.map +1 -1
- package/dist/esm/ptc-brightcov-video.entry.js +1 -1
- package/dist/esm/ptc-button.entry.js +1 -1
- package/dist/esm/ptc-button.entry.js.map +1 -1
- package/dist/esm/ptc-card-bottom.entry.js +1 -1
- package/dist/esm/ptc-card-content.entry.js +2 -2
- package/dist/esm/ptc-card-wrapper.entry.js +3 -3
- package/dist/esm/ptc-card.entry.js +7 -7
- package/dist/esm/ptc-checkbox-group.entry.js +1 -1
- package/dist/esm/ptc-close-icon_2.entry.js +1 -1
- package/dist/esm/ptc-container.entry.js +1 -1
- package/dist/esm/ptc-countdown.entry.js +1 -1
- package/dist/esm/ptc-data-lookup.entry.js +1 -1
- package/dist/esm/ptc-dropdown.entry.js +2 -2
- package/dist/esm/ptc-dynamic-card.entry.js +2 -2
- package/dist/esm/ptc-ellipsis-dropdown.entry.js +2 -2
- package/dist/esm/ptc-enhanced-product-listing-card.entry.js +2 -2
- package/dist/esm/ptc-featured-list.entry.js +1 -1
- package/dist/esm/ptc-filter-dropdown_4.entry.js +8 -8
- package/dist/esm/ptc-filter-level-theater.entry.js +14 -14
- package/dist/esm/ptc-filter-tag.entry.js +3 -3
- package/dist/esm/ptc-footer.entry.js +2 -2
- package/dist/esm/ptc-form-radio-group.entry.js +1 -1
- package/dist/esm/ptc-hero-footer-cta.entry.js +1 -1
- package/dist/esm/ptc-hero.entry.js +1 -1
- package/dist/esm/ptc-homepage-image-feature.entry.js +2 -2
- package/dist/esm/ptc-homepage-image-feature.entry.js.map +1 -1
- package/dist/esm/ptc-homepage-video-background.entry.js +1 -1
- package/dist/esm/ptc-icon-card.entry.js +2 -2
- package/dist/esm/ptc-icon-component.entry.js +1 -1
- package/dist/esm/ptc-icon-list.entry.js +1 -1
- package/dist/esm/ptc-icon-minimize.entry.js +1 -1
- package/dist/esm/ptc-image-download-strip.entry.js +2 -2
- package/dist/esm/ptc-info-tile.entry.js +2 -2
- package/dist/esm/ptc-jumbotron.entry.js +14 -14
- package/dist/esm/ptc-media-card.entry.js +2 -2
- package/dist/esm/ptc-minimized-nav.entry.js +1 -1
- package/dist/esm/ptc-mobile-select.entry.js +439 -439
- package/dist/esm/ptc-mobile-select.entry.js.map +1 -1
- package/dist/esm/ptc-multi-select.entry.js +4 -4
- package/dist/esm/ptc-nav-card.entry.js +1 -1
- package/dist/esm/ptc-nav-link.entry.js +2 -2
- package/dist/esm/ptc-nav-pills.entry.js +1 -1
- package/dist/esm/ptc-nav-skip-to-content.entry.js +1 -1
- package/dist/esm/ptc-nav-slider.entry.js +1 -1
- package/dist/esm/ptc-nav-submenu.entry.js +1 -1
- package/dist/esm/ptc-nav-tile.entry.js +1 -1
- package/dist/esm/ptc-news.entry.js +1 -1
- package/dist/esm/ptc-office-location-card.entry.js +2 -2
- package/dist/esm/ptc-office-locations.entry.js +8 -8
- package/dist/esm/ptc-podcast-card.entry.js +1 -1
- package/dist/esm/ptc-preferance-center-form.entry.js +3 -3
- package/dist/esm/ptc-preloader-section.entry.js +1 -1
- package/dist/esm/ptc-preloader.entry.js +1 -1
- package/dist/esm/ptc-previous-url.entry.js +1 -1
- package/dist/esm/ptc-pricing-add-on-card.entry.js +2 -2
- package/dist/esm/ptc-pricing-add-on-section.entry.js +1 -1
- package/dist/esm/ptc-pricing-block.entry.js +1 -1
- package/dist/esm/ptc-pricing-tabs.entry.js +2 -2
- package/dist/esm/ptc-product-card.entry.js +1 -1
- package/dist/esm/ptc-product-category.entry.js +1 -1
- package/dist/esm/ptc-product-dropdown.entry.js +2 -2
- package/dist/esm/ptc-product-highlight-card.entry.js +1 -1
- package/dist/esm/ptc-product-list.entry.js +2 -2
- package/dist/esm/ptc-product-sidebar.entry.js +2 -2
- package/dist/esm/ptc-progress-bar.entry.js +1 -1
- package/dist/esm/ptc-quantity-counter.entry.js +1 -1
- package/dist/esm/ptc-quote.entry.js +3 -3
- package/dist/esm/ptc-responsive-wrapper.entry.js +1 -1
- package/dist/esm/ptc-scroll-button.entry.js +1 -1
- package/dist/esm/ptc-search-field.entry.js +4 -4
- package/dist/esm/ptc-seo-title.entry.js +1 -1
- package/dist/esm/ptc-shopping-cart.entry.js +1 -1
- package/dist/esm/ptc-showcase-card.entry.js +1 -1
- package/dist/esm/ptc-skeleton.entry.js +1 -1
- package/dist/esm/ptc-slit-card.entry.js +2 -2
- package/dist/esm/ptc-social-icons-footer.entry.js +5 -5
- package/dist/esm/ptc-social-icons.entry.js +1 -1
- package/dist/esm/ptc-spacer.entry.js +1 -1
- package/dist/esm/ptc-square-card.entry.js +2 -2
- package/dist/esm/ptc-sticky-icons.entry.js +1 -1
- package/dist/esm/ptc-sticky-section.entry.js +1 -1
- package/dist/esm/ptc-sticky-title.entry.js +1 -1
- package/dist/esm/ptc-subnav-card.entry.js +1 -1
- package/dist/esm/ptc-subnav.entry.js +2 -2
- package/dist/esm/ptc-tab-list.entry.js +2 -2
- package/dist/esm/ptc-tab.entry.js +1 -1
- package/dist/esm/ptc-tabs.entry.js +1 -1
- package/dist/esm/ptc-text-copy-with-background.entry.js +1 -1
- package/dist/esm/ptc-theater-video-modal.entry.js +1 -1
- package/dist/esm/ptc-two-column-media.entry.js +1 -1
- package/dist/esm/ptc-value-led-card.entry.js +1 -1
- package/dist/esm/ptc-value-led-content-highlight.entry.js +1 -1
- package/dist/esm/ptc-value-led-content.entry.js +1 -1
- package/dist/esm/ptc-value-led-intro.entry.js +1 -1
- package/dist/esm/ptc-value-led-layout.entry.js +4 -4
- package/dist/esm/ptc-value-led-speed-bump.entry.js +1 -1
- package/dist/esm/ptc-value-prop-card.entry.js +1 -1
- package/dist/esm/ptc-white-paper.entry.js +2 -2
- package/dist/esm/tab-content.entry.js +2 -2
- package/dist/esm/tab-header.entry.js +1 -1
- package/dist/fef-stencil-v4/fef-stencil-v4.esm.js +1 -1
- package/dist/fef-stencil-v4/{p-79b02036.entry.js → p-01360922.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-63e5294b.entry.js → p-02bb01aa.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-890ae081.entry.js → p-0547adf1.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-358db246.entry.js → p-059a0105.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-4a5f4a6b.entry.js → p-0e5ebcbc.entry.js} +2 -2
- package/dist/fef-stencil-v4/p-13214f24.entry.js +2 -0
- package/dist/fef-stencil-v4/{p-2a0d4129.entry.js.map → p-13214f24.entry.js.map} +1 -1
- package/dist/fef-stencil-v4/{p-fe2062bd.entry.js → p-140f8527.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-be2cae29.entry.js → p-14930fd9.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-90d354d1.entry.js → p-18107375.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-01a667bd.entry.js → p-215bbdf4.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-691b8451.entry.js → p-235c68f3.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-6ab9947b.entry.js → p-253e8df4.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-ded46f16.entry.js → p-25c6da94.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-a7765299.entry.js → p-26ac19b2.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-e1b8b9b4.entry.js → p-297e669b.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-aa18b42b.entry.js → p-29c63c4e.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-96f15fac.entry.js → p-29e6977f.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-525b888d.entry.js → p-2a005762.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-70c54c74.entry.js → p-2b22a285.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-c81182ad.entry.js → p-2d557d47.entry.js} +2 -2
- package/dist/fef-stencil-v4/p-30a3676a.entry.js +2 -0
- package/dist/fef-stencil-v4/{p-eb6c3e2a.entry.js → p-347888e0.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-f82e717e.entry.js → p-39bddd78.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-34d9218d.entry.js → p-3b22b11d.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-f111414f.entry.js → p-3c30c8bf.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-ccc5d1fe.entry.js → p-3d46c940.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-4eaca4df.entry.js → p-3d8cf358.entry.js} +2 -2
- package/dist/fef-stencil-v4/p-3fc55cf7.entry.js +2 -0
- package/dist/fef-stencil-v4/{p-dc64bdd1.entry.js → p-455e7454.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-2adc545c.entry.js → p-4a446921.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-81ec4a98.entry.js → p-4cba6621.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-2c2644c7.entry.js → p-4e1dea9d.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-a3c199f0.entry.js → p-4ed685d4.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-94d0c7c9.entry.js → p-50b5f8e6.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-c0c56e3c.entry.js → p-57b0f8cc.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-3bcd47da.entry.js → p-5865794c.entry.js} +2 -2
- package/dist/fef-stencil-v4/p-5b937ad5.entry.js +2 -0
- package/dist/fef-stencil-v4/{p-da8710a9.entry.js → p-5c0d9329.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-0a0184ec.entry.js → p-5e2af93e.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-8f149517.entry.js → p-65033a41.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-4181ba70.entry.js → p-675389bd.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-80f071ad.entry.js → p-695a0d30.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-d8180383.entry.js → p-69c402a1.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-f19407b5.entry.js → p-6be10423.entry.js} +2 -2
- package/dist/fef-stencil-v4/p-73ff15f6.entry.js +2 -0
- package/dist/fef-stencil-v4/{p-b210b52d.entry.js.map → p-73ff15f6.entry.js.map} +1 -1
- package/dist/fef-stencil-v4/{p-3dbdd44a.entry.js → p-79fe874b.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-ea834206.entry.js → p-7a3b5656.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-364ccc8c.entry.js → p-7add7c66.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-a298e7c3.entry.js → p-7ca0c32f.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-e33ae550.entry.js → p-7e3a884c.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-7b5afdf1.entry.js → p-828f7881.entry.js} +2 -2
- package/dist/fef-stencil-v4/p-832cb436.entry.js +2 -0
- package/dist/fef-stencil-v4/{p-507a2ba6.entry.js.map → p-832cb436.entry.js.map} +1 -1
- package/dist/fef-stencil-v4/{p-69af5d03.entry.js → p-85eacf3a.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-834032e2.entry.js → p-8762a1ed.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-865e0b06.entry.js → p-8a318878.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-3d3a85b6.entry.js → p-8c54ca53.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-73e1a4d2.entry.js → p-8f678b21.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-9ad6c202.entry.js → p-9033c70d.entry.js} +2 -2
- package/dist/fef-stencil-v4/p-9033c70d.entry.js.map +1 -0
- package/dist/fef-stencil-v4/{p-1be87b85.entry.js → p-9476f1af.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-61d38728.entry.js → p-95008a48.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-fcf38133.entry.js → p-974c4869.entry.js} +2 -2
- package/dist/fef-stencil-v4/p-986e3a73.entry.js +2 -0
- package/dist/fef-stencil-v4/{p-2c68ea19.entry.js.map → p-986e3a73.entry.js.map} +1 -1
- package/dist/fef-stencil-v4/{p-9b0fc905.entry.js → p-9ac82300.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-1e32b9d4.entry.js → p-9ce65a4c.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-7a3b5bb2.entry.js → p-9fabb80c.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-12fce437.entry.js → p-a0b12511.entry.js} +2 -2
- package/dist/fef-stencil-v4/p-a194e82f.entry.js +2 -0
- package/dist/fef-stencil-v4/{p-fed4dcd9.entry.js.map → p-a194e82f.entry.js.map} +1 -1
- package/dist/fef-stencil-v4/{p-975f9534.entry.js → p-a294887a.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-9b90c239.entry.js → p-a2d90648.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-64e22b7e.entry.js → p-a75d1428.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-ed12fbf9.entry.js → p-ad552167.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-6c095af8.entry.js → p-aedadc8b.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-10afd49e.entry.js → p-b230a8f3.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-3f70e2a4.entry.js → p-b261c2cf.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-63fa6e91.entry.js → p-b4bb05a3.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-2f2f6c56.entry.js → p-b67cebb7.entry.js} +2 -2
- package/dist/fef-stencil-v4/p-b6e3886b.entry.js +2 -0
- package/dist/fef-stencil-v4/p-bb4c4aee.entry.js +2 -0
- package/dist/fef-stencil-v4/{p-2c933985.entry.js → p-bbbcb135.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-338902c7.entry.js → p-bc388f5b.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-9d95162a.entry.js → p-be142d89.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-bca33fee.entry.js → p-bed7293a.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-9e283bd2.entry.js → p-c12be510.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-f42042ea.entry.js → p-c21fffb6.entry.js} +2 -2
- package/dist/fef-stencil-v4/p-c36780d5.entry.js +2 -0
- package/dist/fef-stencil-v4/{p-d88d11fa.entry.js → p-c4765cf5.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-8c464fd4.entry.js → p-c8422ee1.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-f939c9d6.entry.js → p-c9122a81.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-11e6caf4.entry.js → p-cda5a30d.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-38e31de6.entry.js → p-d5b07a75.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-13123885.entry.js → p-d6251556.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-48659e3c.entry.js → p-db7d2be7.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-15ed1ebd.entry.js → p-e98eff76.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-aff0da1d.entry.js → p-ee53ce86.entry.js} +2 -2
- package/dist/fef-stencil-v4/p-f529f050.entry.js +2 -0
- package/dist/fef-stencil-v4/{p-8fa3e85f.entry.js → p-f6f69e8a.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-91ca4059.entry.js → p-f8291842.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-4585a597.entry.js → p-f8fea645.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-72922346.entry.js → p-fd5799c1.entry.js} +2 -2
- package/dist/fef-stencil-v4/{p-a93f6fc9.entry.js → p-fe686e31.entry.js} +2 -2
- package/dist/fef-stencil-v4/ptc-breadcrumb.entry.esm.js.map +1 -1
- package/dist/fef-stencil-v4/ptc-button.entry.esm.js.map +1 -1
- package/dist/fef-stencil-v4/ptc-homepage-image-feature.entry.esm.js.map +1 -1
- package/dist/fef-stencil-v4/ptc-mobile-select.entry.esm.js.map +1 -1
- package/dist/types/components/molecules/ptc-breadcrumb/ptc-breadcrumb.d.ts +1 -0
- package/dist/types/components/molecules/ptc-mobile-select/ptc-mobile-select.d.ts +1 -1
- package/dist/types/components.d.ts +2 -0
- package/package.json +2 -1
- package/dist/components/p-Di1dN-rS.js.map +0 -1
- package/dist/fef-stencil-v4/p-2a0d4129.entry.js +0 -2
- package/dist/fef-stencil-v4/p-2c68ea19.entry.js +0 -2
- package/dist/fef-stencil-v4/p-4442a311.entry.js +0 -2
- package/dist/fef-stencil-v4/p-507a2ba6.entry.js +0 -2
- package/dist/fef-stencil-v4/p-7852f71f.entry.js +0 -2
- package/dist/fef-stencil-v4/p-84b379e9.entry.js +0 -2
- package/dist/fef-stencil-v4/p-9ad6c202.entry.js.map +0 -1
- package/dist/fef-stencil-v4/p-a1d74738.entry.js +0 -2
- package/dist/fef-stencil-v4/p-a7a6f05e.entry.js +0 -2
- package/dist/fef-stencil-v4/p-b210b52d.entry.js +0 -2
- package/dist/fef-stencil-v4/p-c7d73a3c.entry.js +0 -2
- package/dist/fef-stencil-v4/p-fdce81a1.entry.js +0 -2
- package/dist/fef-stencil-v4/p-fed4dcd9.entry.js +0 -2
- /package/dist/fef-stencil-v4/{p-79b02036.entry.js.map → p-01360922.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-63e5294b.entry.js.map → p-02bb01aa.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-890ae081.entry.js.map → p-0547adf1.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-358db246.entry.js.map → p-059a0105.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-4a5f4a6b.entry.js.map → p-0e5ebcbc.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-fe2062bd.entry.js.map → p-140f8527.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-be2cae29.entry.js.map → p-14930fd9.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-90d354d1.entry.js.map → p-18107375.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-01a667bd.entry.js.map → p-215bbdf4.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-691b8451.entry.js.map → p-235c68f3.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-6ab9947b.entry.js.map → p-253e8df4.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-ded46f16.entry.js.map → p-25c6da94.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-a7765299.entry.js.map → p-26ac19b2.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-e1b8b9b4.entry.js.map → p-297e669b.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-aa18b42b.entry.js.map → p-29c63c4e.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-96f15fac.entry.js.map → p-29e6977f.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-525b888d.entry.js.map → p-2a005762.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-70c54c74.entry.js.map → p-2b22a285.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-c81182ad.entry.js.map → p-2d557d47.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-7852f71f.entry.js.map → p-30a3676a.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-eb6c3e2a.entry.js.map → p-347888e0.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-f82e717e.entry.js.map → p-39bddd78.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-34d9218d.entry.js.map → p-3b22b11d.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-f111414f.entry.js.map → p-3c30c8bf.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-ccc5d1fe.entry.js.map → p-3d46c940.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-4eaca4df.entry.js.map → p-3d8cf358.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-fdce81a1.entry.js.map → p-3fc55cf7.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-dc64bdd1.entry.js.map → p-455e7454.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-2adc545c.entry.js.map → p-4a446921.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-81ec4a98.entry.js.map → p-4cba6621.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-2c2644c7.entry.js.map → p-4e1dea9d.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-a3c199f0.entry.js.map → p-4ed685d4.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-94d0c7c9.entry.js.map → p-50b5f8e6.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-c0c56e3c.entry.js.map → p-57b0f8cc.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-3bcd47da.entry.js.map → p-5865794c.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-4442a311.entry.js.map → p-5b937ad5.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-da8710a9.entry.js.map → p-5c0d9329.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-0a0184ec.entry.js.map → p-5e2af93e.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-8f149517.entry.js.map → p-65033a41.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-4181ba70.entry.js.map → p-675389bd.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-80f071ad.entry.js.map → p-695a0d30.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-d8180383.entry.js.map → p-69c402a1.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-f19407b5.entry.js.map → p-6be10423.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-3dbdd44a.entry.js.map → p-79fe874b.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-ea834206.entry.js.map → p-7a3b5656.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-364ccc8c.entry.js.map → p-7add7c66.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-a298e7c3.entry.js.map → p-7ca0c32f.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-e33ae550.entry.js.map → p-7e3a884c.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-7b5afdf1.entry.js.map → p-828f7881.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-69af5d03.entry.js.map → p-85eacf3a.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-834032e2.entry.js.map → p-8762a1ed.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-865e0b06.entry.js.map → p-8a318878.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-3d3a85b6.entry.js.map → p-8c54ca53.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-73e1a4d2.entry.js.map → p-8f678b21.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-1be87b85.entry.js.map → p-9476f1af.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-61d38728.entry.js.map → p-95008a48.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-fcf38133.entry.js.map → p-974c4869.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-9b0fc905.entry.js.map → p-9ac82300.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-1e32b9d4.entry.js.map → p-9ce65a4c.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-7a3b5bb2.entry.js.map → p-9fabb80c.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-12fce437.entry.js.map → p-a0b12511.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-975f9534.entry.js.map → p-a294887a.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-9b90c239.entry.js.map → p-a2d90648.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-64e22b7e.entry.js.map → p-a75d1428.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-ed12fbf9.entry.js.map → p-ad552167.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-6c095af8.entry.js.map → p-aedadc8b.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-10afd49e.entry.js.map → p-b230a8f3.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-3f70e2a4.entry.js.map → p-b261c2cf.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-63fa6e91.entry.js.map → p-b4bb05a3.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-2f2f6c56.entry.js.map → p-b67cebb7.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-a1d74738.entry.js.map → p-b6e3886b.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-a7a6f05e.entry.js.map → p-bb4c4aee.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-2c933985.entry.js.map → p-bbbcb135.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-338902c7.entry.js.map → p-bc388f5b.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-9d95162a.entry.js.map → p-be142d89.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-bca33fee.entry.js.map → p-bed7293a.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-9e283bd2.entry.js.map → p-c12be510.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-f42042ea.entry.js.map → p-c21fffb6.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-84b379e9.entry.js.map → p-c36780d5.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-d88d11fa.entry.js.map → p-c4765cf5.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-8c464fd4.entry.js.map → p-c8422ee1.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-f939c9d6.entry.js.map → p-c9122a81.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-11e6caf4.entry.js.map → p-cda5a30d.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-38e31de6.entry.js.map → p-d5b07a75.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-13123885.entry.js.map → p-d6251556.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-48659e3c.entry.js.map → p-db7d2be7.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-15ed1ebd.entry.js.map → p-e98eff76.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-aff0da1d.entry.js.map → p-ee53ce86.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-c7d73a3c.entry.js.map → p-f529f050.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-8fa3e85f.entry.js.map → p-f6f69e8a.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-91ca4059.entry.js.map → p-f8291842.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-4585a597.entry.js.map → p-f8fea645.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-72922346.entry.js.map → p-fd5799c1.entry.js.map} +0 -0
- /package/dist/fef-stencil-v4/{p-a93f6fc9.entry.js.map → p-fe686e31.entry.js.map} +0 -0
|
@@ -2,442 +2,442 @@
|
|
|
2
2
|
|
|
3
3
|
var index = require('./index-DTPmF4gE.js');
|
|
4
4
|
|
|
5
|
-
/*
|
|
6
|
-
* mobile-select v1.4.0
|
|
7
|
-
* Homepage: https://github.com/onlyhom/mobile-select
|
|
8
|
-
* Released under the MIT License.
|
|
9
|
-
* (c) 2017-present
|
|
10
|
-
*/
|
|
11
|
-
var S = Object.defineProperty;
|
|
12
|
-
var D = (g, t, e) => t in g ? S(g, t, { enumerable: true, configurable: true, writable: true, value: e }) : g[t] = e;
|
|
13
|
-
var h = (g, t, e) => (D(g, typeof t != "symbol" ? t + "" : t, e), e);
|
|
14
|
-
function w() {
|
|
15
|
-
return !navigator.userAgent.toLowerCase().match(/ipad|iphone os|midp|rv:1.2.3.4|ucweb|android|windows ce|windows mobile/);
|
|
16
|
-
}
|
|
17
|
-
const l = class {
|
|
18
|
-
constructor(t) {
|
|
19
|
-
h(this, "mobileSelect");
|
|
20
|
-
h(this, "trigger");
|
|
21
|
-
h(this, "wheelList");
|
|
22
|
-
h(this, "sliderList");
|
|
23
|
-
h(this, "wheelsContain");
|
|
24
|
-
h(this, "panel");
|
|
25
|
-
h(this, "ensureBtn");
|
|
26
|
-
h(this, "cancelBtn");
|
|
27
|
-
h(this, "grayLayer");
|
|
28
|
-
h(this, "popUp");
|
|
29
|
-
h(this, "initPosition");
|
|
30
|
-
h(this, "initColWidth");
|
|
31
|
-
h(this, "wheelsData");
|
|
32
|
-
h(this, "displayJson");
|
|
33
|
-
h(this, "curValue");
|
|
34
|
-
h(this, "curIndexArr");
|
|
35
|
-
h(this, "isCascade");
|
|
36
|
-
h(this, "isJsonType");
|
|
37
|
-
h(this, "startY");
|
|
38
|
-
h(this, "moveEndY");
|
|
39
|
-
h(this, "moveY");
|
|
40
|
-
h(this, "preMoveY");
|
|
41
|
-
h(this, "offsetY");
|
|
42
|
-
h(this, "offsetSum");
|
|
43
|
-
h(this, "oversizeBorder");
|
|
44
|
-
h(this, "enableClickStatus");
|
|
45
|
-
h(this, "optionHeight");
|
|
46
|
-
h(this, "curDistance");
|
|
47
|
-
h(this, "cascadeJsonData");
|
|
48
|
-
h(this, "eventHandleMap");
|
|
49
|
-
h(this, "initDeepCount");
|
|
50
|
-
h(this, "config");
|
|
51
|
-
!l.checkRequiredConfig(t) || (this.config = Object.assign({}, l.defaultConfig, t), this.wheelsData = t.wheels, this.isJsonType = false, this.cascadeJsonData = [], this.displayJson = [], this.curValue = [], this.curIndexArr = [], this.isCascade = false, this.offsetY = 0, this.offsetSum = 0, this.curDistance = [], this.enableClickStatus = false, this.optionHeight = 0, this.initPosition = t.position || [], this.initColWidth = t.colWidth || [], this.init());
|
|
52
|
-
}
|
|
53
|
-
init() {
|
|
54
|
-
if (!this.checkTriggerAvailable())
|
|
55
|
-
return;
|
|
56
|
-
const { config: t } = this;
|
|
57
|
-
if (this.isJsonType = l.checkDataType(this.wheelsData), this.renderComponent(this.wheelsData), this.wheelList = this.mobileSelect.getElementsByClassName("ms-wheel"), this.sliderList = this.mobileSelect.getElementsByClassName("ms-select-container"), this.panel = this.mobileSelect.querySelector(".ms-panel"), this.wheelsContain = this.mobileSelect.querySelector(".ms-wheels"), this.ensureBtn = this.mobileSelect.querySelector(".ms-ensure"), this.cancelBtn = this.mobileSelect.querySelector(".ms-cancel"), this.grayLayer = this.mobileSelect.querySelector(".ms-gray-layer"), this.popUp = this.mobileSelect.querySelector(".ms-content"), this.optionHeight = this.mobileSelect.querySelector("li").offsetHeight, t.initValue && this.setTriggerInnerText(t.initValue), this.setStyle(t), this.isCascade = this.checkCascade(), this.isCascade && this.initCascade(), t.initValue && (this.initPosition = this.getPositionByInitValue()), this.initPosition.length < this.sliderList.length) {
|
|
58
|
-
const e = this.sliderList.length - this.initPosition.length;
|
|
59
|
-
for (let i = 0; i < e; i++)
|
|
60
|
-
this.initPosition.push(0);
|
|
61
|
-
}
|
|
62
|
-
this.isCascade ? this.initPosition.forEach((e, i) => {
|
|
63
|
-
this.checkRange(i, this.initPosition);
|
|
64
|
-
}) : this.setCurDistance(this.initPosition), this.eventHandleMap = {
|
|
65
|
-
cancelBtn: {
|
|
66
|
-
event: "click",
|
|
67
|
-
fn: () => {
|
|
68
|
-
var e, i, s, n;
|
|
69
|
-
this.hide(), (i = (e = this.config).cancel) == null || i.call(e, this.curIndexArr, this.curValue, this), (n = (s = this.config).onCancel) == null || n.call(s, this.curValue, this.curIndexArr, this);
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
ensureBtn: {
|
|
73
|
-
event: "click",
|
|
74
|
-
fn: () => {
|
|
75
|
-
var e, i, s, n;
|
|
76
|
-
this.hide(), this.optionHeight || (this.optionHeight = this.mobileSelect.querySelector("li").offsetHeight), this.setTriggerInnerText(this.getConnectedString()), this.curIndexArr = this.getIndexArr(), this.curValue = this.getCurValue(), (i = (e = this.config).callback) == null || i.call(e, this.curIndexArr, this.curValue, this), (n = (s = this.config).onChange) == null || n.call(s, this.curValue, this.curIndexArr, this);
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
trigger: {
|
|
80
|
-
event: "click",
|
|
81
|
-
fn: () => {
|
|
82
|
-
this.show();
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
grayLayer: {
|
|
86
|
-
event: "click",
|
|
87
|
-
fn: () => this.hide()
|
|
88
|
-
},
|
|
89
|
-
popUp: {
|
|
90
|
-
event: "click",
|
|
91
|
-
fn: (e) => e.stopPropagation()
|
|
92
|
-
},
|
|
93
|
-
panel: {
|
|
94
|
-
event: ["touchstart", "touchend", "touchmove"],
|
|
95
|
-
fn: (e) => this.touch(e)
|
|
96
|
-
}
|
|
97
|
-
}, w() && (this.eventHandleMap.panel.event = ["mousedown", "mousemove", "mouseup"]), this.registerEvents("add"), this.fixRowStyle(), t.autoFocus && this.show();
|
|
98
|
-
}
|
|
99
|
-
static checkDataType(t) {
|
|
100
|
-
var e, i;
|
|
101
|
-
return typeof ((i = (e = t[0]) == null ? void 0 : e.data) == null ? void 0 : i[0]) == "object";
|
|
102
|
-
}
|
|
103
|
-
static checkRequiredConfig(t) {
|
|
104
|
-
const e = l.REQUIRED_PARAMS;
|
|
105
|
-
if (!t) {
|
|
106
|
-
const i = e.map((s) => `'${s}'`);
|
|
107
|
-
return l.log("error", `missing required param ${i.join(" and ")}.`), false;
|
|
108
|
-
}
|
|
109
|
-
for (let i = 0; i < e.length; i++) {
|
|
110
|
-
const s = e[i];
|
|
111
|
-
if (!t[s])
|
|
112
|
-
return l.log("error", `missing required param '${s}'.`), false;
|
|
113
|
-
}
|
|
114
|
-
return true;
|
|
115
|
-
}
|
|
116
|
-
static log(t, e) {
|
|
117
|
-
var i;
|
|
118
|
-
(i = console[t]) == null || i.call(console, `[mobile-select]: ${e}`);
|
|
119
|
-
}
|
|
120
|
-
checkTriggerAvailable() {
|
|
121
|
-
const { config: t } = this;
|
|
122
|
-
return this.trigger = t.trigger instanceof HTMLElement ? t.trigger : document.querySelector(t.trigger), this.trigger ? true : (l.log("error", "trigger HTMLElement does not found on your document."), false);
|
|
123
|
-
}
|
|
124
|
-
getPositionByInitValue() {
|
|
125
|
-
var n;
|
|
126
|
-
const { keyMap: t, connector: e, initValue: i } = this.config, s = (i == null ? void 0 : i.split(e)) || [];
|
|
127
|
-
if (this.isJsonType) {
|
|
128
|
-
let o = (n = this.wheelsData[0]) == null ? void 0 : n.data;
|
|
129
|
-
return s.reduce((r, c) => {
|
|
130
|
-
var u;
|
|
131
|
-
const a = o == null ? void 0 : o.findIndex((d) => d[t.value] == c);
|
|
132
|
-
return r.push(a < 0 ? 0 : a), o = (u = o[a]) == null ? void 0 : u[t.childs], r;
|
|
133
|
-
}, []);
|
|
134
|
-
}
|
|
135
|
-
return s.reduce((o, r, c) => {
|
|
136
|
-
var u, d;
|
|
137
|
-
const a = (d = (u = this.wheelsData[c]) == null ? void 0 : u.data) == null ? void 0 : d.findIndex((f) => f == r);
|
|
138
|
-
return o.push(a < 0 ? 0 : a), o;
|
|
139
|
-
}, []);
|
|
140
|
-
}
|
|
141
|
-
getConnectedString() {
|
|
142
|
-
let t = "";
|
|
143
|
-
for (let e = 0; e < this.wheelList.length; e++)
|
|
144
|
-
e == this.wheelList.length - 1 ? t += this.getInnerText(e) : t += this.getInnerText(e) + this.config.connector;
|
|
145
|
-
return t;
|
|
146
|
-
}
|
|
147
|
-
setTriggerInnerText(t) {
|
|
148
|
-
this.config.triggerDisplayValue && (this.trigger.textContent = t);
|
|
149
|
-
}
|
|
150
|
-
setValue(t) {
|
|
151
|
-
if (!t || !t.length)
|
|
152
|
-
return;
|
|
153
|
-
if (this.isJsonType && typeof t[0] != "object" || !this.isJsonType && typeof t[0] == "object") {
|
|
154
|
-
l.log("error", `The setValue() input format should be same with getValue(), like: ${JSON.stringify(this.getValue())}`);
|
|
155
|
-
return;
|
|
156
|
-
}
|
|
157
|
-
const { keyMap: e } = this.config;
|
|
158
|
-
t.forEach((i, s) => {
|
|
159
|
-
var r;
|
|
160
|
-
const n = this.isCascade ? this.displayJson[s] : (r = this.wheelsData[s]) == null ? void 0 : r.data, o = n == null ? void 0 : n.findIndex((c) => this.isJsonType ? i[e.id] == c[e.id] || i[e.value] == c[e.value] : i == c);
|
|
161
|
-
this.locatePosition(s, o);
|
|
162
|
-
}), this.setTriggerInnerText(this.getConnectedString());
|
|
163
|
-
}
|
|
164
|
-
setTitle(t) {
|
|
165
|
-
this.mobileSelect.querySelector(".ms-title").innerHTML = t;
|
|
166
|
-
}
|
|
167
|
-
setStyle(t) {
|
|
168
|
-
if (t.ensureBtnColor && (this.ensureBtn.style.color = t.ensureBtnColor), t.cancelBtnColor && (this.cancelBtn.style.color = t.cancelBtnColor), t.titleColor) {
|
|
169
|
-
const e = this.mobileSelect.querySelector(".ms-title");
|
|
170
|
-
e.style.color = t.titleColor;
|
|
171
|
-
}
|
|
172
|
-
if (t.textColor && (this.panel = this.mobileSelect.querySelector(".ms-panel"), this.panel.style.color = t.textColor), t.titleBgColor) {
|
|
173
|
-
const e = this.mobileSelect.querySelector(".ms-btn-bar");
|
|
174
|
-
e.style.backgroundColor = t.titleBgColor;
|
|
175
|
-
}
|
|
176
|
-
if (t.bgColor) {
|
|
177
|
-
this.panel = this.mobileSelect.querySelector(".ms-panel");
|
|
178
|
-
const e = this.mobileSelect.querySelector(".ms-shadow-mask");
|
|
179
|
-
this.panel.style.backgroundColor = t.bgColor, e.style.background = "linear-gradient(to bottom, " + t.bgColor + ", rgba(255, 255, 255, 0), " + t.bgColor + ")";
|
|
180
|
-
}
|
|
181
|
-
if (typeof t.maskOpacity == "number") {
|
|
182
|
-
const e = this.mobileSelect.querySelector(".ms-gray-layer");
|
|
183
|
-
e.style.background = "rgba(0, 0, 0, " + t.maskOpacity + ")";
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
show() {
|
|
187
|
-
var t, e, i;
|
|
188
|
-
this.mobileSelect.classList.add("ms-show"), (t = document.querySelector("body")) == null || t.classList.add("ms-show"), typeof this.config.onShow == "function" && ((i = (e = this.config).onShow) == null || i.call(e, this.curValue, this.curIndexArr, this));
|
|
189
|
-
}
|
|
190
|
-
hide() {
|
|
191
|
-
var t, e, i;
|
|
192
|
-
this.mobileSelect.classList.remove("ms-show"), (t = document.querySelector("body")) == null || t.classList.remove("ms-show"), typeof this.config.onHide == "function" && ((i = (e = this.config).onHide) == null || i.call(e, this.curValue, this.curIndexArr, this));
|
|
193
|
-
}
|
|
194
|
-
registerEvents(t) {
|
|
195
|
-
for (const [e, i] of Object.entries(this.eventHandleMap))
|
|
196
|
-
typeof i.event == "string" ? this[e][`${t}EventListener`](i.event, i.fn, { passive: false }) : i.event.forEach((s) => {
|
|
197
|
-
this[e][`${t}EventListener`](s, i.fn, { passive: false });
|
|
198
|
-
});
|
|
199
|
-
}
|
|
200
|
-
destroy() {
|
|
201
|
-
var t, e;
|
|
202
|
-
this.registerEvents("remove"), (e = (t = this.mobileSelect) == null ? void 0 : t.parentNode) == null || e.removeChild(this.mobileSelect);
|
|
203
|
-
}
|
|
204
|
-
getOptionsHtmlStr(t) {
|
|
205
|
-
const { keyMap: e } = this.config;
|
|
206
|
-
let i = "";
|
|
207
|
-
if (this.isJsonType)
|
|
208
|
-
for (let s = 0; s < t.length; s++) {
|
|
209
|
-
const n = t[s][e.id], o = t[s][e.value];
|
|
210
|
-
i += `<li data-id="${n}">${o}</li>`;
|
|
211
|
-
}
|
|
212
|
-
else
|
|
213
|
-
for (let s = 0; s < t.length; s++)
|
|
214
|
-
i += "<li>" + t[s] + "</li>";
|
|
215
|
-
return i;
|
|
216
|
-
}
|
|
217
|
-
renderComponent(t) {
|
|
218
|
-
this.mobileSelect = document.createElement("div"), this.mobileSelect.className = "ms-mobile-select", this.mobileSelect.innerHTML = `<div class="ms-gray-layer"></div>
|
|
219
|
-
<div class="ms-content">
|
|
220
|
-
<div class="ms-btn-bar">
|
|
221
|
-
<div class="ms-fix-width">
|
|
222
|
-
<div class="ms-cancel">${this.config.cancelBtnText}</div>
|
|
223
|
-
<div class="ms-title">${this.config.title || ""}</div>
|
|
224
|
-
<div class="ms-ensure">${this.config.ensureBtnText}</div>
|
|
225
|
-
</div>
|
|
226
|
-
</div>
|
|
227
|
-
<div class="ms-panel">
|
|
228
|
-
<div class="ms-fix-width">
|
|
229
|
-
<div class="ms-wheels"></div>
|
|
230
|
-
<div class="ms-select-line"></div>
|
|
231
|
-
<div class="ms-shadow-mask"></div>
|
|
232
|
-
</div>
|
|
233
|
-
</div>`, document.body.appendChild(this.mobileSelect);
|
|
234
|
-
let e = "";
|
|
235
|
-
for (let i = 0; i < t.length; i++)
|
|
236
|
-
e += `<div class="ms-wheel" data-index="${i}"><ul class="ms-select-container">`, e += this.getOptionsHtmlStr(t[i].data), e += "</ul></div>";
|
|
237
|
-
this.mobileSelect.querySelector(".ms-wheels").innerHTML = e;
|
|
238
|
-
}
|
|
239
|
-
reRenderWheels() {
|
|
240
|
-
const t = this.wheelList.length - this.displayJson.length;
|
|
241
|
-
if (t > 0)
|
|
242
|
-
for (let e = 0; e < t; e++)
|
|
243
|
-
this.wheelsContain.removeChild(this.wheelList[this.wheelList.length - 1]);
|
|
244
|
-
for (let e = 0; e < this.displayJson.length; e++)
|
|
245
|
-
if (this.wheelList[e])
|
|
246
|
-
this.sliderList[e].innerHTML = this.getOptionsHtmlStr(this.displayJson[e]);
|
|
247
|
-
else {
|
|
248
|
-
const i = document.createElement("div");
|
|
249
|
-
i.className = "ms-wheel", i.innerHTML = `<ul class="ms-select-container">${this.getOptionsHtmlStr(this.displayJson[e])}</ul>`, i.setAttribute("data-index", e.toString()), this.wheelsContain.appendChild(i);
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
checkCascade() {
|
|
253
|
-
var e;
|
|
254
|
-
const { keyMap: t } = this.config;
|
|
255
|
-
if (this.isJsonType) {
|
|
256
|
-
const i = this.wheelsData[0].data;
|
|
257
|
-
for (let s = 0; s < i.length; s++)
|
|
258
|
-
if (t.childs in i[s] && ((e = i[s][t.childs]) == null ? void 0 : e.length) > 0)
|
|
259
|
-
return this.cascadeJsonData = this.wheelsData[0].data, true;
|
|
260
|
-
}
|
|
261
|
-
return false;
|
|
262
|
-
}
|
|
263
|
-
initCascade() {
|
|
264
|
-
this.displayJson.push(this.cascadeJsonData), this.initPosition.length > 0 ? (this.initDeepCount = 0, this.initCheckArrDeep(this.cascadeJsonData[this.initPosition[0]])) : this.checkArrDeep(this.cascadeJsonData[0]), this.reRenderWheels();
|
|
265
|
-
}
|
|
266
|
-
initCheckArrDeep(t) {
|
|
267
|
-
if (t) {
|
|
268
|
-
const { keyMap: e } = this.config;
|
|
269
|
-
if (e.childs in t && t[e.childs].length > 0) {
|
|
270
|
-
this.displayJson.push(t[e.childs]), this.initDeepCount++;
|
|
271
|
-
const i = t[e.childs][this.initPosition[this.initDeepCount]];
|
|
272
|
-
i ? this.initCheckArrDeep(i) : this.checkArrDeep(t[e.childs][0]);
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
checkArrDeep(t) {
|
|
277
|
-
if (!t)
|
|
278
|
-
return;
|
|
279
|
-
const { keyMap: e } = this.config;
|
|
280
|
-
e.childs in t && t[e.childs].length > 0 && (this.displayJson.push(t[e.childs]), this.checkArrDeep(t[e.childs][0]));
|
|
281
|
-
}
|
|
282
|
-
checkRange(t, e) {
|
|
283
|
-
var o;
|
|
284
|
-
const i = this.displayJson.length - 1 - t, { keyMap: s } = this.config;
|
|
285
|
-
for (let r = 0; r < i; r++)
|
|
286
|
-
this.displayJson.pop();
|
|
287
|
-
let n;
|
|
288
|
-
for (let r = 0; r <= t; r++)
|
|
289
|
-
n = r == 0 ? this.cascadeJsonData[e[0]] : (o = n == null ? void 0 : n[s.childs]) == null ? void 0 : o[e[r]];
|
|
290
|
-
this.checkArrDeep(n), this.reRenderWheels(), this.fixRowStyle(), this.setCurDistance(this.resetPosition(t, e));
|
|
291
|
-
}
|
|
292
|
-
resetPosition(t, e) {
|
|
293
|
-
const i = [...e];
|
|
294
|
-
let s;
|
|
295
|
-
if (this.sliderList.length > e.length) {
|
|
296
|
-
s = this.sliderList.length - e.length;
|
|
297
|
-
for (let n = 0; n < s; n++)
|
|
298
|
-
i.push(0);
|
|
299
|
-
} else if (this.sliderList.length < e.length) {
|
|
300
|
-
s = e.length - this.sliderList.length;
|
|
301
|
-
for (let n = 0; n < s; n++)
|
|
302
|
-
i.pop();
|
|
303
|
-
}
|
|
304
|
-
for (let n = t + 1; n < i.length; n++)
|
|
305
|
-
i[n] = 0;
|
|
306
|
-
return i;
|
|
307
|
-
}
|
|
308
|
-
updateWheels(t) {
|
|
309
|
-
if (this.isCascade) {
|
|
310
|
-
if (this.cascadeJsonData = t, this.displayJson = [], this.initCascade(), this.initPosition.length < this.sliderList.length) {
|
|
311
|
-
const e = this.sliderList.length - this.initPosition.length;
|
|
312
|
-
for (let i = 0; i < e; i++)
|
|
313
|
-
this.initPosition.push(0);
|
|
314
|
-
}
|
|
315
|
-
this.setCurDistance(this.initPosition), this.fixRowStyle();
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
updateWheel(t, e) {
|
|
319
|
-
if (this.isCascade) {
|
|
320
|
-
l.log("error", "'updateWheel()' not support cascade json data, please use 'updateWheels()' instead to update the whole data source");
|
|
321
|
-
return;
|
|
322
|
-
}
|
|
323
|
-
let i = "";
|
|
324
|
-
i += this.getOptionsHtmlStr(e), this.wheelsData[t] = this.isJsonType ? { data: e } : e, this.sliderList[t].innerHTML = i;
|
|
325
|
-
}
|
|
326
|
-
fixRowStyle() {
|
|
327
|
-
if (this.initColWidth.length && this.initColWidth.length === this.wheelList.length) {
|
|
328
|
-
const e = this.initColWidth.reduce((i, s) => i + s, 0);
|
|
329
|
-
this.initColWidth.forEach((i, s) => {
|
|
330
|
-
this.wheelList[s].style.width = (i / e * 100).toFixed(2) + "%";
|
|
331
|
-
});
|
|
332
|
-
return;
|
|
333
|
-
}
|
|
334
|
-
const t = (100 / this.wheelList.length).toFixed(2);
|
|
335
|
-
for (let e = 0; e < this.wheelList.length; e++)
|
|
336
|
-
this.wheelList[e].style.width = t + "%";
|
|
337
|
-
}
|
|
338
|
-
getIndex(t) {
|
|
339
|
-
return Math.round((2 * this.optionHeight - t) / this.optionHeight);
|
|
340
|
-
}
|
|
341
|
-
getIndexArr() {
|
|
342
|
-
const t = [];
|
|
343
|
-
for (let e = 0; e < this.curDistance.length; e++)
|
|
344
|
-
t.push(this.getIndex(this.curDistance[e]));
|
|
345
|
-
return t;
|
|
346
|
-
}
|
|
347
|
-
getCurValue() {
|
|
348
|
-
const t = [], e = this.getIndexArr(), { keyMap: i } = this.config;
|
|
349
|
-
if (this.isCascade)
|
|
350
|
-
for (let s = 0; s < this.wheelList.length; s++) {
|
|
351
|
-
const n = this.displayJson[s][e[s]];
|
|
352
|
-
n && t.push({
|
|
353
|
-
[i.id]: n[i.id],
|
|
354
|
-
[i.value]: n[i.value]
|
|
355
|
-
});
|
|
356
|
-
}
|
|
357
|
-
else if (this.isJsonType)
|
|
358
|
-
for (let s = 0; s < this.curDistance.length; s++)
|
|
359
|
-
t.push(this.wheelsData[s].data[this.getIndex(this.curDistance[s])]);
|
|
360
|
-
else
|
|
361
|
-
for (let s = 0; s < this.curDistance.length; s++)
|
|
362
|
-
t.push(this.getInnerText(s));
|
|
363
|
-
return t;
|
|
364
|
-
}
|
|
365
|
-
getValue() {
|
|
366
|
-
return this.getCurValue();
|
|
367
|
-
}
|
|
368
|
-
calcDistance(t) {
|
|
369
|
-
return 2 * this.optionHeight - t * this.optionHeight;
|
|
370
|
-
}
|
|
371
|
-
setCurDistance(t) {
|
|
372
|
-
const e = [];
|
|
373
|
-
for (let i = 0; i < this.sliderList.length; i++)
|
|
374
|
-
e.push(this.calcDistance(t[i])), this.movePosition(this.sliderList[i], e[i]);
|
|
375
|
-
this.curDistance = e;
|
|
376
|
-
}
|
|
377
|
-
fixPosition(t) {
|
|
378
|
-
return -(this.getIndex(t) - 2) * this.optionHeight;
|
|
379
|
-
}
|
|
380
|
-
movePosition(t, e) {
|
|
381
|
-
t.style.transform = "translate3d(0," + e + "px, 0)";
|
|
382
|
-
}
|
|
383
|
-
locatePosition(t, e) {
|
|
384
|
-
t === void 0 || e === void 0 || e < 0 || (this.curDistance[t] = this.calcDistance(e), this.movePosition(this.sliderList[t], this.curDistance[t]), this.isCascade && this.checkRange(t, this.getIndexArr()));
|
|
385
|
-
}
|
|
386
|
-
updateCurDistance(t, e) {
|
|
387
|
-
this.curDistance[e] = parseInt(t.style.transform.split(",")[1]);
|
|
388
|
-
}
|
|
389
|
-
getInnerText(t) {
|
|
390
|
-
var s;
|
|
391
|
-
const e = this.sliderList[t].getElementsByTagName("li").length;
|
|
392
|
-
let i = this.getIndex(this.curDistance[t]);
|
|
393
|
-
return i >= e ? i = e - 1 : i < 0 && (i = 0), ((s = this.sliderList[t].getElementsByTagName("li")[i]) == null ? void 0 : s.textContent) || "";
|
|
394
|
-
}
|
|
395
|
-
touch(t) {
|
|
396
|
-
var o, r, c, a, u, d, f, v;
|
|
397
|
-
const i = (t.composedPath && t.composedPath()).find((m) => {
|
|
398
|
-
var p;
|
|
399
|
-
return (p = m.classList) == null ? void 0 : p.contains("ms-wheel");
|
|
400
|
-
});
|
|
401
|
-
if (!i)
|
|
402
|
-
return;
|
|
403
|
-
const s = i.firstChild, n = parseInt(i.getAttribute("data-index") || "0");
|
|
404
|
-
switch (t.type) {
|
|
405
|
-
case "touchstart":
|
|
406
|
-
case "mousedown":
|
|
407
|
-
s.style.transition = "none 0s ease-out", this.startY = Math.floor(t instanceof TouchEvent ? t.touches[0].clientY : t.clientY), this.preMoveY = this.startY, t.type === "mousedown" && (this.enableClickStatus = true);
|
|
408
|
-
break;
|
|
409
|
-
case "touchmove":
|
|
410
|
-
case "mousemove":
|
|
411
|
-
if (t.preventDefault(), t.type === "mousemove" && !this.enableClickStatus)
|
|
412
|
-
break;
|
|
413
|
-
this.moveY = Math.floor(t instanceof TouchEvent ? t.touches[0].clientY : t.clientY), this.offsetY = (this.moveY - this.preMoveY) * this.config.scrollSpeed, this.updateCurDistance(s, n), this.curDistance[n] = this.curDistance[n] + this.offsetY, this.movePosition(s, this.curDistance[n]), this.preMoveY = this.moveY;
|
|
414
|
-
break;
|
|
415
|
-
case "touchend":
|
|
416
|
-
case "mouseup":
|
|
417
|
-
if (s.style.transition = "transform 0.18s ease-out", this.moveEndY = Math.floor(t instanceof TouchEvent ? t.changedTouches[0].clientY : t.clientY), this.offsetSum = this.moveEndY - this.startY, this.oversizeBorder = -(s.getElementsByTagName("li").length - 3) * this.optionHeight, this.offsetSum == 0) {
|
|
418
|
-
const m = Math.floor((window.innerHeight - this.moveEndY) / 40);
|
|
419
|
-
if (m != 2) {
|
|
420
|
-
const p = m - 2, C = this.curDistance[n] + p * this.optionHeight;
|
|
421
|
-
C <= 2 * this.optionHeight && C >= this.oversizeBorder && (this.curDistance[n] = C, this.movePosition(s, this.curDistance[n]), (r = (o = this.config).transitionEnd) == null || r.call(o, this.getIndexArr(), this.getCurValue(), this), (a = (c = this.config).onTransitionEnd) == null || a.call(c, this.getCurValue(), this.getIndexArr(), this));
|
|
422
|
-
}
|
|
423
|
-
} else
|
|
424
|
-
this.updateCurDistance(s, n), this.curDistance[n] = this.fixPosition(this.curDistance[n]), this.curDistance[n] > 2 * this.optionHeight ? this.curDistance[n] = 2 * this.optionHeight : this.curDistance[n] < this.oversizeBorder && (this.curDistance[n] = this.oversizeBorder), this.movePosition(s, this.curDistance[n]), (d = (u = this.config).transitionEnd) == null || d.call(u, this.getIndexArr(), this.getCurValue(), this), (v = (f = this.config).onTransitionEnd) == null || v.call(f, this.getCurValue(), this.getIndexArr(), this);
|
|
425
|
-
t.type === "mouseup" && (this.enableClickStatus = false), this.isCascade && this.checkRange(n, this.getIndexArr());
|
|
426
|
-
break;
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
};
|
|
430
|
-
let y = l;
|
|
431
|
-
h(y, "defaultConfig", {
|
|
432
|
-
keyMap: { id: "id", value: "value", childs: "childs" },
|
|
433
|
-
position: [],
|
|
434
|
-
colWidth: [],
|
|
435
|
-
title: "",
|
|
436
|
-
connector: " ",
|
|
437
|
-
ensureBtnText: "\u786E\u8BA4",
|
|
438
|
-
cancelBtnText: "\u53D6\u6D88",
|
|
439
|
-
triggerDisplayValue: true,
|
|
440
|
-
scrollSpeed: 1
|
|
5
|
+
/*
|
|
6
|
+
* mobile-select v1.4.0
|
|
7
|
+
* Homepage: https://github.com/onlyhom/mobile-select
|
|
8
|
+
* Released under the MIT License.
|
|
9
|
+
* (c) 2017-present
|
|
10
|
+
*/
|
|
11
|
+
var S = Object.defineProperty;
|
|
12
|
+
var D = (g, t, e) => t in g ? S(g, t, { enumerable: true, configurable: true, writable: true, value: e }) : g[t] = e;
|
|
13
|
+
var h = (g, t, e) => (D(g, typeof t != "symbol" ? t + "" : t, e), e);
|
|
14
|
+
function w() {
|
|
15
|
+
return !navigator.userAgent.toLowerCase().match(/ipad|iphone os|midp|rv:1.2.3.4|ucweb|android|windows ce|windows mobile/);
|
|
16
|
+
}
|
|
17
|
+
const l = class {
|
|
18
|
+
constructor(t) {
|
|
19
|
+
h(this, "mobileSelect");
|
|
20
|
+
h(this, "trigger");
|
|
21
|
+
h(this, "wheelList");
|
|
22
|
+
h(this, "sliderList");
|
|
23
|
+
h(this, "wheelsContain");
|
|
24
|
+
h(this, "panel");
|
|
25
|
+
h(this, "ensureBtn");
|
|
26
|
+
h(this, "cancelBtn");
|
|
27
|
+
h(this, "grayLayer");
|
|
28
|
+
h(this, "popUp");
|
|
29
|
+
h(this, "initPosition");
|
|
30
|
+
h(this, "initColWidth");
|
|
31
|
+
h(this, "wheelsData");
|
|
32
|
+
h(this, "displayJson");
|
|
33
|
+
h(this, "curValue");
|
|
34
|
+
h(this, "curIndexArr");
|
|
35
|
+
h(this, "isCascade");
|
|
36
|
+
h(this, "isJsonType");
|
|
37
|
+
h(this, "startY");
|
|
38
|
+
h(this, "moveEndY");
|
|
39
|
+
h(this, "moveY");
|
|
40
|
+
h(this, "preMoveY");
|
|
41
|
+
h(this, "offsetY");
|
|
42
|
+
h(this, "offsetSum");
|
|
43
|
+
h(this, "oversizeBorder");
|
|
44
|
+
h(this, "enableClickStatus");
|
|
45
|
+
h(this, "optionHeight");
|
|
46
|
+
h(this, "curDistance");
|
|
47
|
+
h(this, "cascadeJsonData");
|
|
48
|
+
h(this, "eventHandleMap");
|
|
49
|
+
h(this, "initDeepCount");
|
|
50
|
+
h(this, "config");
|
|
51
|
+
!l.checkRequiredConfig(t) || (this.config = Object.assign({}, l.defaultConfig, t), this.wheelsData = t.wheels, this.isJsonType = false, this.cascadeJsonData = [], this.displayJson = [], this.curValue = [], this.curIndexArr = [], this.isCascade = false, this.offsetY = 0, this.offsetSum = 0, this.curDistance = [], this.enableClickStatus = false, this.optionHeight = 0, this.initPosition = t.position || [], this.initColWidth = t.colWidth || [], this.init());
|
|
52
|
+
}
|
|
53
|
+
init() {
|
|
54
|
+
if (!this.checkTriggerAvailable())
|
|
55
|
+
return;
|
|
56
|
+
const { config: t } = this;
|
|
57
|
+
if (this.isJsonType = l.checkDataType(this.wheelsData), this.renderComponent(this.wheelsData), this.wheelList = this.mobileSelect.getElementsByClassName("ms-wheel"), this.sliderList = this.mobileSelect.getElementsByClassName("ms-select-container"), this.panel = this.mobileSelect.querySelector(".ms-panel"), this.wheelsContain = this.mobileSelect.querySelector(".ms-wheels"), this.ensureBtn = this.mobileSelect.querySelector(".ms-ensure"), this.cancelBtn = this.mobileSelect.querySelector(".ms-cancel"), this.grayLayer = this.mobileSelect.querySelector(".ms-gray-layer"), this.popUp = this.mobileSelect.querySelector(".ms-content"), this.optionHeight = this.mobileSelect.querySelector("li").offsetHeight, t.initValue && this.setTriggerInnerText(t.initValue), this.setStyle(t), this.isCascade = this.checkCascade(), this.isCascade && this.initCascade(), t.initValue && (this.initPosition = this.getPositionByInitValue()), this.initPosition.length < this.sliderList.length) {
|
|
58
|
+
const e = this.sliderList.length - this.initPosition.length;
|
|
59
|
+
for (let i = 0; i < e; i++)
|
|
60
|
+
this.initPosition.push(0);
|
|
61
|
+
}
|
|
62
|
+
this.isCascade ? this.initPosition.forEach((e, i) => {
|
|
63
|
+
this.checkRange(i, this.initPosition);
|
|
64
|
+
}) : this.setCurDistance(this.initPosition), this.eventHandleMap = {
|
|
65
|
+
cancelBtn: {
|
|
66
|
+
event: "click",
|
|
67
|
+
fn: () => {
|
|
68
|
+
var e, i, s, n;
|
|
69
|
+
this.hide(), (i = (e = this.config).cancel) == null || i.call(e, this.curIndexArr, this.curValue, this), (n = (s = this.config).onCancel) == null || n.call(s, this.curValue, this.curIndexArr, this);
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
ensureBtn: {
|
|
73
|
+
event: "click",
|
|
74
|
+
fn: () => {
|
|
75
|
+
var e, i, s, n;
|
|
76
|
+
this.hide(), this.optionHeight || (this.optionHeight = this.mobileSelect.querySelector("li").offsetHeight), this.setTriggerInnerText(this.getConnectedString()), this.curIndexArr = this.getIndexArr(), this.curValue = this.getCurValue(), (i = (e = this.config).callback) == null || i.call(e, this.curIndexArr, this.curValue, this), (n = (s = this.config).onChange) == null || n.call(s, this.curValue, this.curIndexArr, this);
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
trigger: {
|
|
80
|
+
event: "click",
|
|
81
|
+
fn: () => {
|
|
82
|
+
this.show();
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
grayLayer: {
|
|
86
|
+
event: "click",
|
|
87
|
+
fn: () => this.hide()
|
|
88
|
+
},
|
|
89
|
+
popUp: {
|
|
90
|
+
event: "click",
|
|
91
|
+
fn: (e) => e.stopPropagation()
|
|
92
|
+
},
|
|
93
|
+
panel: {
|
|
94
|
+
event: ["touchstart", "touchend", "touchmove"],
|
|
95
|
+
fn: (e) => this.touch(e)
|
|
96
|
+
}
|
|
97
|
+
}, w() && (this.eventHandleMap.panel.event = ["mousedown", "mousemove", "mouseup"]), this.registerEvents("add"), this.fixRowStyle(), t.autoFocus && this.show();
|
|
98
|
+
}
|
|
99
|
+
static checkDataType(t) {
|
|
100
|
+
var e, i;
|
|
101
|
+
return typeof ((i = (e = t[0]) == null ? void 0 : e.data) == null ? void 0 : i[0]) == "object";
|
|
102
|
+
}
|
|
103
|
+
static checkRequiredConfig(t) {
|
|
104
|
+
const e = l.REQUIRED_PARAMS;
|
|
105
|
+
if (!t) {
|
|
106
|
+
const i = e.map((s) => `'${s}'`);
|
|
107
|
+
return l.log("error", `missing required param ${i.join(" and ")}.`), false;
|
|
108
|
+
}
|
|
109
|
+
for (let i = 0; i < e.length; i++) {
|
|
110
|
+
const s = e[i];
|
|
111
|
+
if (!t[s])
|
|
112
|
+
return l.log("error", `missing required param '${s}'.`), false;
|
|
113
|
+
}
|
|
114
|
+
return true;
|
|
115
|
+
}
|
|
116
|
+
static log(t, e) {
|
|
117
|
+
var i;
|
|
118
|
+
(i = console[t]) == null || i.call(console, `[mobile-select]: ${e}`);
|
|
119
|
+
}
|
|
120
|
+
checkTriggerAvailable() {
|
|
121
|
+
const { config: t } = this;
|
|
122
|
+
return this.trigger = t.trigger instanceof HTMLElement ? t.trigger : document.querySelector(t.trigger), this.trigger ? true : (l.log("error", "trigger HTMLElement does not found on your document."), false);
|
|
123
|
+
}
|
|
124
|
+
getPositionByInitValue() {
|
|
125
|
+
var n;
|
|
126
|
+
const { keyMap: t, connector: e, initValue: i } = this.config, s = (i == null ? void 0 : i.split(e)) || [];
|
|
127
|
+
if (this.isJsonType) {
|
|
128
|
+
let o = (n = this.wheelsData[0]) == null ? void 0 : n.data;
|
|
129
|
+
return s.reduce((r, c) => {
|
|
130
|
+
var u;
|
|
131
|
+
const a = o == null ? void 0 : o.findIndex((d) => d[t.value] == c);
|
|
132
|
+
return r.push(a < 0 ? 0 : a), o = (u = o[a]) == null ? void 0 : u[t.childs], r;
|
|
133
|
+
}, []);
|
|
134
|
+
}
|
|
135
|
+
return s.reduce((o, r, c) => {
|
|
136
|
+
var u, d;
|
|
137
|
+
const a = (d = (u = this.wheelsData[c]) == null ? void 0 : u.data) == null ? void 0 : d.findIndex((f) => f == r);
|
|
138
|
+
return o.push(a < 0 ? 0 : a), o;
|
|
139
|
+
}, []);
|
|
140
|
+
}
|
|
141
|
+
getConnectedString() {
|
|
142
|
+
let t = "";
|
|
143
|
+
for (let e = 0; e < this.wheelList.length; e++)
|
|
144
|
+
e == this.wheelList.length - 1 ? t += this.getInnerText(e) : t += this.getInnerText(e) + this.config.connector;
|
|
145
|
+
return t;
|
|
146
|
+
}
|
|
147
|
+
setTriggerInnerText(t) {
|
|
148
|
+
this.config.triggerDisplayValue && (this.trigger.textContent = t);
|
|
149
|
+
}
|
|
150
|
+
setValue(t) {
|
|
151
|
+
if (!t || !t.length)
|
|
152
|
+
return;
|
|
153
|
+
if (this.isJsonType && typeof t[0] != "object" || !this.isJsonType && typeof t[0] == "object") {
|
|
154
|
+
l.log("error", `The setValue() input format should be same with getValue(), like: ${JSON.stringify(this.getValue())}`);
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
157
|
+
const { keyMap: e } = this.config;
|
|
158
|
+
t.forEach((i, s) => {
|
|
159
|
+
var r;
|
|
160
|
+
const n = this.isCascade ? this.displayJson[s] : (r = this.wheelsData[s]) == null ? void 0 : r.data, o = n == null ? void 0 : n.findIndex((c) => this.isJsonType ? i[e.id] == c[e.id] || i[e.value] == c[e.value] : i == c);
|
|
161
|
+
this.locatePosition(s, o);
|
|
162
|
+
}), this.setTriggerInnerText(this.getConnectedString());
|
|
163
|
+
}
|
|
164
|
+
setTitle(t) {
|
|
165
|
+
this.mobileSelect.querySelector(".ms-title").innerHTML = t;
|
|
166
|
+
}
|
|
167
|
+
setStyle(t) {
|
|
168
|
+
if (t.ensureBtnColor && (this.ensureBtn.style.color = t.ensureBtnColor), t.cancelBtnColor && (this.cancelBtn.style.color = t.cancelBtnColor), t.titleColor) {
|
|
169
|
+
const e = this.mobileSelect.querySelector(".ms-title");
|
|
170
|
+
e.style.color = t.titleColor;
|
|
171
|
+
}
|
|
172
|
+
if (t.textColor && (this.panel = this.mobileSelect.querySelector(".ms-panel"), this.panel.style.color = t.textColor), t.titleBgColor) {
|
|
173
|
+
const e = this.mobileSelect.querySelector(".ms-btn-bar");
|
|
174
|
+
e.style.backgroundColor = t.titleBgColor;
|
|
175
|
+
}
|
|
176
|
+
if (t.bgColor) {
|
|
177
|
+
this.panel = this.mobileSelect.querySelector(".ms-panel");
|
|
178
|
+
const e = this.mobileSelect.querySelector(".ms-shadow-mask");
|
|
179
|
+
this.panel.style.backgroundColor = t.bgColor, e.style.background = "linear-gradient(to bottom, " + t.bgColor + ", rgba(255, 255, 255, 0), " + t.bgColor + ")";
|
|
180
|
+
}
|
|
181
|
+
if (typeof t.maskOpacity == "number") {
|
|
182
|
+
const e = this.mobileSelect.querySelector(".ms-gray-layer");
|
|
183
|
+
e.style.background = "rgba(0, 0, 0, " + t.maskOpacity + ")";
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
show() {
|
|
187
|
+
var t, e, i;
|
|
188
|
+
this.mobileSelect.classList.add("ms-show"), (t = document.querySelector("body")) == null || t.classList.add("ms-show"), typeof this.config.onShow == "function" && ((i = (e = this.config).onShow) == null || i.call(e, this.curValue, this.curIndexArr, this));
|
|
189
|
+
}
|
|
190
|
+
hide() {
|
|
191
|
+
var t, e, i;
|
|
192
|
+
this.mobileSelect.classList.remove("ms-show"), (t = document.querySelector("body")) == null || t.classList.remove("ms-show"), typeof this.config.onHide == "function" && ((i = (e = this.config).onHide) == null || i.call(e, this.curValue, this.curIndexArr, this));
|
|
193
|
+
}
|
|
194
|
+
registerEvents(t) {
|
|
195
|
+
for (const [e, i] of Object.entries(this.eventHandleMap))
|
|
196
|
+
typeof i.event == "string" ? this[e][`${t}EventListener`](i.event, i.fn, { passive: false }) : i.event.forEach((s) => {
|
|
197
|
+
this[e][`${t}EventListener`](s, i.fn, { passive: false });
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
destroy() {
|
|
201
|
+
var t, e;
|
|
202
|
+
this.registerEvents("remove"), (e = (t = this.mobileSelect) == null ? void 0 : t.parentNode) == null || e.removeChild(this.mobileSelect);
|
|
203
|
+
}
|
|
204
|
+
getOptionsHtmlStr(t) {
|
|
205
|
+
const { keyMap: e } = this.config;
|
|
206
|
+
let i = "";
|
|
207
|
+
if (this.isJsonType)
|
|
208
|
+
for (let s = 0; s < t.length; s++) {
|
|
209
|
+
const n = t[s][e.id], o = t[s][e.value];
|
|
210
|
+
i += `<li data-id="${n}">${o}</li>`;
|
|
211
|
+
}
|
|
212
|
+
else
|
|
213
|
+
for (let s = 0; s < t.length; s++)
|
|
214
|
+
i += "<li>" + t[s] + "</li>";
|
|
215
|
+
return i;
|
|
216
|
+
}
|
|
217
|
+
renderComponent(t) {
|
|
218
|
+
this.mobileSelect = document.createElement("div"), this.mobileSelect.className = "ms-mobile-select", this.mobileSelect.innerHTML = `<div class="ms-gray-layer"></div>
|
|
219
|
+
<div class="ms-content">
|
|
220
|
+
<div class="ms-btn-bar">
|
|
221
|
+
<div class="ms-fix-width">
|
|
222
|
+
<div class="ms-cancel">${this.config.cancelBtnText}</div>
|
|
223
|
+
<div class="ms-title">${this.config.title || ""}</div>
|
|
224
|
+
<div class="ms-ensure">${this.config.ensureBtnText}</div>
|
|
225
|
+
</div>
|
|
226
|
+
</div>
|
|
227
|
+
<div class="ms-panel">
|
|
228
|
+
<div class="ms-fix-width">
|
|
229
|
+
<div class="ms-wheels"></div>
|
|
230
|
+
<div class="ms-select-line"></div>
|
|
231
|
+
<div class="ms-shadow-mask"></div>
|
|
232
|
+
</div>
|
|
233
|
+
</div>`, document.body.appendChild(this.mobileSelect);
|
|
234
|
+
let e = "";
|
|
235
|
+
for (let i = 0; i < t.length; i++)
|
|
236
|
+
e += `<div class="ms-wheel" data-index="${i}"><ul class="ms-select-container">`, e += this.getOptionsHtmlStr(t[i].data), e += "</ul></div>";
|
|
237
|
+
this.mobileSelect.querySelector(".ms-wheels").innerHTML = e;
|
|
238
|
+
}
|
|
239
|
+
reRenderWheels() {
|
|
240
|
+
const t = this.wheelList.length - this.displayJson.length;
|
|
241
|
+
if (t > 0)
|
|
242
|
+
for (let e = 0; e < t; e++)
|
|
243
|
+
this.wheelsContain.removeChild(this.wheelList[this.wheelList.length - 1]);
|
|
244
|
+
for (let e = 0; e < this.displayJson.length; e++)
|
|
245
|
+
if (this.wheelList[e])
|
|
246
|
+
this.sliderList[e].innerHTML = this.getOptionsHtmlStr(this.displayJson[e]);
|
|
247
|
+
else {
|
|
248
|
+
const i = document.createElement("div");
|
|
249
|
+
i.className = "ms-wheel", i.innerHTML = `<ul class="ms-select-container">${this.getOptionsHtmlStr(this.displayJson[e])}</ul>`, i.setAttribute("data-index", e.toString()), this.wheelsContain.appendChild(i);
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
checkCascade() {
|
|
253
|
+
var e;
|
|
254
|
+
const { keyMap: t } = this.config;
|
|
255
|
+
if (this.isJsonType) {
|
|
256
|
+
const i = this.wheelsData[0].data;
|
|
257
|
+
for (let s = 0; s < i.length; s++)
|
|
258
|
+
if (t.childs in i[s] && ((e = i[s][t.childs]) == null ? void 0 : e.length) > 0)
|
|
259
|
+
return this.cascadeJsonData = this.wheelsData[0].data, true;
|
|
260
|
+
}
|
|
261
|
+
return false;
|
|
262
|
+
}
|
|
263
|
+
initCascade() {
|
|
264
|
+
this.displayJson.push(this.cascadeJsonData), this.initPosition.length > 0 ? (this.initDeepCount = 0, this.initCheckArrDeep(this.cascadeJsonData[this.initPosition[0]])) : this.checkArrDeep(this.cascadeJsonData[0]), this.reRenderWheels();
|
|
265
|
+
}
|
|
266
|
+
initCheckArrDeep(t) {
|
|
267
|
+
if (t) {
|
|
268
|
+
const { keyMap: e } = this.config;
|
|
269
|
+
if (e.childs in t && t[e.childs].length > 0) {
|
|
270
|
+
this.displayJson.push(t[e.childs]), this.initDeepCount++;
|
|
271
|
+
const i = t[e.childs][this.initPosition[this.initDeepCount]];
|
|
272
|
+
i ? this.initCheckArrDeep(i) : this.checkArrDeep(t[e.childs][0]);
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
checkArrDeep(t) {
|
|
277
|
+
if (!t)
|
|
278
|
+
return;
|
|
279
|
+
const { keyMap: e } = this.config;
|
|
280
|
+
e.childs in t && t[e.childs].length > 0 && (this.displayJson.push(t[e.childs]), this.checkArrDeep(t[e.childs][0]));
|
|
281
|
+
}
|
|
282
|
+
checkRange(t, e) {
|
|
283
|
+
var o;
|
|
284
|
+
const i = this.displayJson.length - 1 - t, { keyMap: s } = this.config;
|
|
285
|
+
for (let r = 0; r < i; r++)
|
|
286
|
+
this.displayJson.pop();
|
|
287
|
+
let n;
|
|
288
|
+
for (let r = 0; r <= t; r++)
|
|
289
|
+
n = r == 0 ? this.cascadeJsonData[e[0]] : (o = n == null ? void 0 : n[s.childs]) == null ? void 0 : o[e[r]];
|
|
290
|
+
this.checkArrDeep(n), this.reRenderWheels(), this.fixRowStyle(), this.setCurDistance(this.resetPosition(t, e));
|
|
291
|
+
}
|
|
292
|
+
resetPosition(t, e) {
|
|
293
|
+
const i = [...e];
|
|
294
|
+
let s;
|
|
295
|
+
if (this.sliderList.length > e.length) {
|
|
296
|
+
s = this.sliderList.length - e.length;
|
|
297
|
+
for (let n = 0; n < s; n++)
|
|
298
|
+
i.push(0);
|
|
299
|
+
} else if (this.sliderList.length < e.length) {
|
|
300
|
+
s = e.length - this.sliderList.length;
|
|
301
|
+
for (let n = 0; n < s; n++)
|
|
302
|
+
i.pop();
|
|
303
|
+
}
|
|
304
|
+
for (let n = t + 1; n < i.length; n++)
|
|
305
|
+
i[n] = 0;
|
|
306
|
+
return i;
|
|
307
|
+
}
|
|
308
|
+
updateWheels(t) {
|
|
309
|
+
if (this.isCascade) {
|
|
310
|
+
if (this.cascadeJsonData = t, this.displayJson = [], this.initCascade(), this.initPosition.length < this.sliderList.length) {
|
|
311
|
+
const e = this.sliderList.length - this.initPosition.length;
|
|
312
|
+
for (let i = 0; i < e; i++)
|
|
313
|
+
this.initPosition.push(0);
|
|
314
|
+
}
|
|
315
|
+
this.setCurDistance(this.initPosition), this.fixRowStyle();
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
updateWheel(t, e) {
|
|
319
|
+
if (this.isCascade) {
|
|
320
|
+
l.log("error", "'updateWheel()' not support cascade json data, please use 'updateWheels()' instead to update the whole data source");
|
|
321
|
+
return;
|
|
322
|
+
}
|
|
323
|
+
let i = "";
|
|
324
|
+
i += this.getOptionsHtmlStr(e), this.wheelsData[t] = this.isJsonType ? { data: e } : e, this.sliderList[t].innerHTML = i;
|
|
325
|
+
}
|
|
326
|
+
fixRowStyle() {
|
|
327
|
+
if (this.initColWidth.length && this.initColWidth.length === this.wheelList.length) {
|
|
328
|
+
const e = this.initColWidth.reduce((i, s) => i + s, 0);
|
|
329
|
+
this.initColWidth.forEach((i, s) => {
|
|
330
|
+
this.wheelList[s].style.width = (i / e * 100).toFixed(2) + "%";
|
|
331
|
+
});
|
|
332
|
+
return;
|
|
333
|
+
}
|
|
334
|
+
const t = (100 / this.wheelList.length).toFixed(2);
|
|
335
|
+
for (let e = 0; e < this.wheelList.length; e++)
|
|
336
|
+
this.wheelList[e].style.width = t + "%";
|
|
337
|
+
}
|
|
338
|
+
getIndex(t) {
|
|
339
|
+
return Math.round((2 * this.optionHeight - t) / this.optionHeight);
|
|
340
|
+
}
|
|
341
|
+
getIndexArr() {
|
|
342
|
+
const t = [];
|
|
343
|
+
for (let e = 0; e < this.curDistance.length; e++)
|
|
344
|
+
t.push(this.getIndex(this.curDistance[e]));
|
|
345
|
+
return t;
|
|
346
|
+
}
|
|
347
|
+
getCurValue() {
|
|
348
|
+
const t = [], e = this.getIndexArr(), { keyMap: i } = this.config;
|
|
349
|
+
if (this.isCascade)
|
|
350
|
+
for (let s = 0; s < this.wheelList.length; s++) {
|
|
351
|
+
const n = this.displayJson[s][e[s]];
|
|
352
|
+
n && t.push({
|
|
353
|
+
[i.id]: n[i.id],
|
|
354
|
+
[i.value]: n[i.value]
|
|
355
|
+
});
|
|
356
|
+
}
|
|
357
|
+
else if (this.isJsonType)
|
|
358
|
+
for (let s = 0; s < this.curDistance.length; s++)
|
|
359
|
+
t.push(this.wheelsData[s].data[this.getIndex(this.curDistance[s])]);
|
|
360
|
+
else
|
|
361
|
+
for (let s = 0; s < this.curDistance.length; s++)
|
|
362
|
+
t.push(this.getInnerText(s));
|
|
363
|
+
return t;
|
|
364
|
+
}
|
|
365
|
+
getValue() {
|
|
366
|
+
return this.getCurValue();
|
|
367
|
+
}
|
|
368
|
+
calcDistance(t) {
|
|
369
|
+
return 2 * this.optionHeight - t * this.optionHeight;
|
|
370
|
+
}
|
|
371
|
+
setCurDistance(t) {
|
|
372
|
+
const e = [];
|
|
373
|
+
for (let i = 0; i < this.sliderList.length; i++)
|
|
374
|
+
e.push(this.calcDistance(t[i])), this.movePosition(this.sliderList[i], e[i]);
|
|
375
|
+
this.curDistance = e;
|
|
376
|
+
}
|
|
377
|
+
fixPosition(t) {
|
|
378
|
+
return -(this.getIndex(t) - 2) * this.optionHeight;
|
|
379
|
+
}
|
|
380
|
+
movePosition(t, e) {
|
|
381
|
+
t.style.transform = "translate3d(0," + e + "px, 0)";
|
|
382
|
+
}
|
|
383
|
+
locatePosition(t, e) {
|
|
384
|
+
t === void 0 || e === void 0 || e < 0 || (this.curDistance[t] = this.calcDistance(e), this.movePosition(this.sliderList[t], this.curDistance[t]), this.isCascade && this.checkRange(t, this.getIndexArr()));
|
|
385
|
+
}
|
|
386
|
+
updateCurDistance(t, e) {
|
|
387
|
+
this.curDistance[e] = parseInt(t.style.transform.split(",")[1]);
|
|
388
|
+
}
|
|
389
|
+
getInnerText(t) {
|
|
390
|
+
var s;
|
|
391
|
+
const e = this.sliderList[t].getElementsByTagName("li").length;
|
|
392
|
+
let i = this.getIndex(this.curDistance[t]);
|
|
393
|
+
return i >= e ? i = e - 1 : i < 0 && (i = 0), ((s = this.sliderList[t].getElementsByTagName("li")[i]) == null ? void 0 : s.textContent) || "";
|
|
394
|
+
}
|
|
395
|
+
touch(t) {
|
|
396
|
+
var o, r, c, a, u, d, f, v;
|
|
397
|
+
const i = (t.composedPath && t.composedPath()).find((m) => {
|
|
398
|
+
var p;
|
|
399
|
+
return (p = m.classList) == null ? void 0 : p.contains("ms-wheel");
|
|
400
|
+
});
|
|
401
|
+
if (!i)
|
|
402
|
+
return;
|
|
403
|
+
const s = i.firstChild, n = parseInt(i.getAttribute("data-index") || "0");
|
|
404
|
+
switch (t.type) {
|
|
405
|
+
case "touchstart":
|
|
406
|
+
case "mousedown":
|
|
407
|
+
s.style.transition = "none 0s ease-out", this.startY = Math.floor(t instanceof TouchEvent ? t.touches[0].clientY : t.clientY), this.preMoveY = this.startY, t.type === "mousedown" && (this.enableClickStatus = true);
|
|
408
|
+
break;
|
|
409
|
+
case "touchmove":
|
|
410
|
+
case "mousemove":
|
|
411
|
+
if (t.preventDefault(), t.type === "mousemove" && !this.enableClickStatus)
|
|
412
|
+
break;
|
|
413
|
+
this.moveY = Math.floor(t instanceof TouchEvent ? t.touches[0].clientY : t.clientY), this.offsetY = (this.moveY - this.preMoveY) * this.config.scrollSpeed, this.updateCurDistance(s, n), this.curDistance[n] = this.curDistance[n] + this.offsetY, this.movePosition(s, this.curDistance[n]), this.preMoveY = this.moveY;
|
|
414
|
+
break;
|
|
415
|
+
case "touchend":
|
|
416
|
+
case "mouseup":
|
|
417
|
+
if (s.style.transition = "transform 0.18s ease-out", this.moveEndY = Math.floor(t instanceof TouchEvent ? t.changedTouches[0].clientY : t.clientY), this.offsetSum = this.moveEndY - this.startY, this.oversizeBorder = -(s.getElementsByTagName("li").length - 3) * this.optionHeight, this.offsetSum == 0) {
|
|
418
|
+
const m = Math.floor((window.innerHeight - this.moveEndY) / 40);
|
|
419
|
+
if (m != 2) {
|
|
420
|
+
const p = m - 2, C = this.curDistance[n] + p * this.optionHeight;
|
|
421
|
+
C <= 2 * this.optionHeight && C >= this.oversizeBorder && (this.curDistance[n] = C, this.movePosition(s, this.curDistance[n]), (r = (o = this.config).transitionEnd) == null || r.call(o, this.getIndexArr(), this.getCurValue(), this), (a = (c = this.config).onTransitionEnd) == null || a.call(c, this.getCurValue(), this.getIndexArr(), this));
|
|
422
|
+
}
|
|
423
|
+
} else
|
|
424
|
+
this.updateCurDistance(s, n), this.curDistance[n] = this.fixPosition(this.curDistance[n]), this.curDistance[n] > 2 * this.optionHeight ? this.curDistance[n] = 2 * this.optionHeight : this.curDistance[n] < this.oversizeBorder && (this.curDistance[n] = this.oversizeBorder), this.movePosition(s, this.curDistance[n]), (d = (u = this.config).transitionEnd) == null || d.call(u, this.getIndexArr(), this.getCurValue(), this), (v = (f = this.config).onTransitionEnd) == null || v.call(f, this.getCurValue(), this.getIndexArr(), this);
|
|
425
|
+
t.type === "mouseup" && (this.enableClickStatus = false), this.isCascade && this.checkRange(n, this.getIndexArr());
|
|
426
|
+
break;
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
};
|
|
430
|
+
let y = l;
|
|
431
|
+
h(y, "defaultConfig", {
|
|
432
|
+
keyMap: { id: "id", value: "value", childs: "childs" },
|
|
433
|
+
position: [],
|
|
434
|
+
colWidth: [],
|
|
435
|
+
title: "",
|
|
436
|
+
connector: " ",
|
|
437
|
+
ensureBtnText: "\u786E\u8BA4",
|
|
438
|
+
cancelBtnText: "\u53D6\u6D88",
|
|
439
|
+
triggerDisplayValue: true,
|
|
440
|
+
scrollSpeed: 1
|
|
441
441
|
}), h(y, "REQUIRED_PARAMS", ["trigger", "wheels"]);
|
|
442
442
|
|
|
443
443
|
const ptcMobileSelectCss = ".ms-mobile-select{position:absolute;top:0;right:0;bottom:0;left:0;z-index:0;opacity:0;visibility:hidden;-webkit-transition:opacity 0.4s, z-index 0.4s;transition:opacity 0.4s, z-index 0.4s;transform:translate(0, 0)}.ms-mobile-select *{margin:0;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box}.ms-mobile-select .ms-gray-layer{position:fixed;top:0;left:0;bottom:0;right:0;background:rgba(0, 0, 0, 0.7);z-index:888;display:block}.ms-mobile-select .ms-content{width:100%;display:block;position:fixed;z-index:889;color:black;-webkit-transition:all 0.4s;transition:all 0.4s;bottom:-350px;left:0;background:white}.ms-mobile-select .ms-fix-width{width:90%;margin:0 auto;position:relative}.ms-mobile-select .ms-fix-width:after{content:\".\";display:block;height:0;clear:both;visibility:hidden}.ms-mobile-select .ms-btn-bar{border-bottom:1px solid #dcdcdc;font-size:15px;height:45px;position:relative;text-align:center;line-height:45px}.ms-mobile-select .ms-cancel,.ms-mobile-select .ms-ensure{height:45px;width:55px;cursor:pointer;position:absolute;top:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}.ms-mobile-select .ms-cancel{left:0;color:#666}.ms-mobile-select .ms-ensure{right:0;color:#1e83d3}.ms-mobile-select .ms-title{font-size:15px;padding:0 15%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ms-mobile-select .ms-panel:after{content:\".\";display:block;height:0;clear:both;visibility:hidden}.ms-mobile-select .ms-wheels{width:100%;height:200px;overflow:hidden}.ms-mobile-select .ms-wheel{position:relative;z-index:0;float:left;width:50%;height:200px;overflow:hidden;-webkit-transition:width 0.3s ease;transition:width 0.3s ease}.ms-mobile-select .ms-select-container{display:block;text-align:center}.ms-mobile-select .ms-select-container li{font-size:15px;display:block;height:40px;line-height:40px;cursor:pointer;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}.ms-mobile-select .ms-select-line{height:40px;width:100%;position:absolute;top:80px;pointer-events:none;-webkit-box-sizing:border-box;box-sizing:border-box;border-top:1px solid #dcdcdc;border-bottom:1px solid #dcdcdc}.ms-mobile-select .ms-shadow-mask{position:absolute;top:0;width:100%;height:200px;background:linear-gradient(to bottom, #fffffff5, #ffffffcc 25%, #ffffff00 49%, #ffffff00 51%, #ffffffcc 75%, #fffffff5);opacity:0.9;pointer-events:none}.ms-mobile-select.ms-show{opacity:1;z-index:10000;visibility:visible}.ms-mobile-select.ms-show .ms-content{bottom:0}.ms-default-trigger{min-height:1em;color:#888}body.ms-show{overflow-y:hidden}.mobile-select-wrapper{display:block;cursor:pointer}.mobile-select-wrapper div{display:inline;margin-right:var(--ptc-element-spacing-03);width:100%;font-family:var(--ptc-font-latin);font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-x-small);line-height:var(--ptc-line-height-densest);color:var(--color-white);height:18px}.mobile-select-wrapper:focus-visible{padding:2px;border-radius:var(--ptc-border-radius-standard);border:2px solid rgb(255, 255, 255);outline:5px solid var(--keyboard-nav-outline)}.mobileSelect .content{top:auto}.mobileSelect .content .btnBar{border-color:var(--color-gray-10)}.mobileSelect .content .btnBar .cancel,.mobileSelect .content .btnBar .ensure,.mobileSelect .content .btnBar .title{font-family:var(--ptc-font-latin);font-weight:var(--ptc-font-weight-semibold);font-size:var(--ptc-font-size-x-small);line-height:var(--ptc-line-height-densest)}.mobileSelect .content .btnBar .ensure,.mobileSelect .content .btnBar .cancel{transform:translateY(12.5px);width:125px}.mobileSelect .content .panel .wheel .selectContainer li{font-family:var(--ptc-font-latin);font-weight:var(--ptc-font-weight-semibold);font-size:var(--ptc-font-size-x-small);line-height:var(--ptc-line-height-densest);height:45px}ptc-responsive-wrapper.xsmall .mobile-select-wrapper,ptc-responsive-wrapper.small .mobile-select-wrapper{display:block}ptc-responsive-wrapper.medium .mobile-select-wrapper,ptc-responsive-wrapper.large .mobile-select-wrapper,ptc-responsive-wrapper.xlarge .mobile-select-wrapper,ptc-responsive-wrapper.xxlarge .mobile-select-wrapper,ptc-responsive-wrapper.large2k .mobile-select-wrapper,ptc-responsive-wrapper.large4k .mobile-select-wrapper{display:none}.ms-mobile-select.ms-show .ms-cancel,.ms-mobile-select.ms-show .ms-ensure{width:auto}";
|
|
@@ -515,11 +515,11 @@ const PtcMobileSelect = class {
|
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
517
|
render() {
|
|
518
|
-
return (index.h("div", { key: '
|
|
518
|
+
return (index.h("div", { key: '3e529cd952836b6d5eb909fc1c4c4dd68e673e73', class: "mobile-select-wrapper", "aria-selectlanguage": "Select Language", tabindex: "0", onKeyPress: (e) => {
|
|
519
519
|
this.wrapperClick(e);
|
|
520
|
-
} }, index.h("div", { key: '
|
|
520
|
+
} }, index.h("div", { key: '99861d4d7fbe8a9fe32f1b27b3222568c4961912', onClick: (e) => {
|
|
521
521
|
this.wrapperClick(e);
|
|
522
|
-
} }, index.h("span", { key: '
|
|
522
|
+
} }, index.h("span", { key: 'cba1d84fb394e20e2db73ebf7559ddb187d0c56c', id: this.triggerName }, this.selectedText), index.h("icon-asset", { key: '600ab357558ee185d816bb5590bc51505c8bdb8d', type: "ptc", size: "x-small", name: "lang-drop-arrow", color: "white", "is-mobile-select": "true", "injected-style": "svg.ismobileselect{transform:translateX(10px); width: 13px !important;height: 10px !important;}" }))));
|
|
523
523
|
}
|
|
524
524
|
componentDidRender() {
|
|
525
525
|
let that = this; //input current lang
|