@ptcwebops/ptcw-design 0.5.9 → 0.6.0
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/LICENSE +21 -21
- package/dist/cjs/dropdown-item.cjs.entry.js +10 -10
- package/dist/cjs/icon-asset.cjs.entry.js +64 -0
- package/dist/cjs/{interfaces-574e6df7.js → interfaces-0ecd8027.js} +9 -9
- package/dist/cjs/list-item.cjs.entry.js +19 -19
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/lottie-player.cjs.entry.js +354 -354
- package/dist/cjs/my-component.cjs.entry.js +13 -13
- package/dist/cjs/ptc-accordion-item.cjs.entry.js +97 -97
- package/dist/cjs/ptc-accordion.cjs.entry.js +38 -38
- package/dist/cjs/ptc-announcement.cjs.entry.js +37 -37
- package/dist/cjs/ptc-breadcrumb.cjs.entry.js +12 -12
- package/dist/cjs/ptc-button.cjs.entry.js +76 -0
- package/dist/cjs/ptc-card-bottom.cjs.entry.js +31 -31
- package/dist/cjs/ptc-card-content.cjs.entry.js +31 -31
- package/dist/cjs/ptc-card-plm.cjs.entry.js +16 -16
- package/dist/cjs/ptc-card.cjs.entry.js +68 -68
- package/dist/cjs/ptc-checkbox.cjs.entry.js +42 -0
- package/dist/cjs/ptc-container.cjs.entry.js +46 -0
- package/dist/cjs/ptc-date.cjs.entry.js +48 -48
- package/dist/cjs/ptc-dropdown.cjs.entry.js +69 -0
- package/dist/cjs/ptc-ellipsis-dropdown.cjs.entry.js +24 -24
- package/dist/cjs/ptc-filter-tag.cjs.entry.js +39 -0
- package/dist/cjs/ptc-hero-footer-cta.cjs.entry.js +8 -8
- package/dist/cjs/ptc-hero.cjs.entry.js +18 -18
- package/dist/cjs/ptc-icon-list.cjs.entry.js +33 -33
- package/dist/cjs/ptc-icon-minimize.cjs.entry.js +46 -0
- package/dist/cjs/ptc-img_2.cjs.entry.js +169 -169
- package/dist/cjs/ptc-link.cjs.entry.js +53 -0
- package/dist/cjs/ptc-list.cjs.entry.js +23 -23
- package/dist/cjs/ptc-lottie.cjs.entry.js +12 -12
- package/dist/cjs/ptc-minimized-footer.cjs.entry.js +8 -8
- package/dist/cjs/ptc-minimized-header.cjs.entry.js +11 -11
- package/dist/cjs/ptc-mobile-select.cjs.entry.js +69 -69
- package/dist/cjs/ptc-modal.cjs.entry.js +162 -0
- package/dist/cjs/ptc-nav-item.cjs.entry.js +83 -83
- package/dist/cjs/ptc-nav.cjs.entry.js +8 -8
- package/dist/cjs/ptc-pagenation.cjs.entry.js +104 -100
- package/dist/cjs/ptc-para.cjs.entry.js +50 -0
- package/dist/cjs/ptc-picture.cjs.entry.js +169 -169
- package/dist/cjs/ptc-previous-url.cjs.entry.js +8 -8
- package/dist/cjs/ptc-pricing-block.cjs.entry.js +14 -14
- package/dist/cjs/ptc-quote.cjs.entry.js +25 -25
- package/dist/cjs/ptc-responsive-wrapper.cjs.entry.js +54 -54
- package/dist/cjs/ptc-shopping-cart.cjs.entry.js +64 -0
- package/dist/cjs/ptc-social-share.cjs.entry.js +64 -64
- package/dist/cjs/ptc-spacer.cjs.entry.js +46 -0
- package/dist/cjs/ptc-span.cjs.entry.js +23 -23
- package/dist/cjs/ptc-svg-btn.cjs.entry.js +75 -75
- package/dist/cjs/ptc-tab-list.cjs.entry.js +116 -116
- package/dist/cjs/ptc-title.cjs.entry.js +68 -0
- package/dist/cjs/ptc-two-column-media.cjs.entry.js +14 -14
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/cjs/tab-content.cjs.entry.js +26 -26
- package/dist/cjs/tab-header.cjs.entry.js +43 -43
- package/dist/collection/components/dropdown-item/dropdown-item.js +56 -56
- package/dist/collection/components/icon-asset/icon-asset.css +4 -4
- package/dist/collection/components/icon-asset/icon-asset.js +199 -199
- package/dist/collection/components/icon-asset/media/brands.svg +1381 -1381
- package/dist/collection/components/icon-asset/media/designer.svg +355 -338
- package/dist/collection/components/icon-asset/media/regular.svg +463 -463
- package/dist/collection/components/icon-asset/media/solid.svg +3013 -3013
- package/dist/collection/components/icon-asset/media/svg-with-js.min.css +4 -4
- package/dist/collection/components/list-item/list-item.js +103 -103
- package/dist/collection/components/my-component/my-component.css +3 -3
- package/dist/collection/components/my-component/my-component.js +73 -73
- package/dist/collection/components/ptc-accordion/ptc-accordion-item/ptc-accordion-item.js +296 -296
- package/dist/collection/components/ptc-accordion/ptc-accordion.js +74 -74
- package/dist/collection/components/ptc-announcement/ptc-announcement.js +210 -210
- package/dist/collection/components/ptc-breadcrumb/ptc-breadcrumb.js +21 -21
- package/dist/collection/components/ptc-button/ptc-button.js +293 -293
- package/dist/collection/components/ptc-card/ptc-card.js +301 -301
- package/dist/collection/components/ptc-card-bottom/ptc-card-bottom.js +105 -105
- package/dist/collection/components/ptc-card-content/ptc-card-content.js +105 -105
- package/dist/collection/components/ptc-card-plm/ptc-card-plm.js +97 -97
- package/dist/collection/components/ptc-checkbox/ptc-checkbox.js +114 -114
- package/dist/collection/components/ptc-container/ptc-container.js +119 -119
- package/dist/collection/components/ptc-date/ptc-date.js +201 -201
- package/dist/collection/components/ptc-dropdown/ptc-dropdown.js +144 -144
- package/dist/collection/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.css +1 -0
- package/dist/collection/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.js +77 -77
- package/dist/collection/components/ptc-filter-tag/ptc-filter-tag.js +70 -70
- package/dist/collection/components/ptc-hero/ptc-hero.js +67 -67
- package/dist/collection/components/ptc-hero-footer-cta/ptc-hero-footer-cta.js +77 -77
- package/dist/collection/components/ptc-icon-list/ptc-icon-list.css +6 -0
- package/dist/collection/components/ptc-icon-list/ptc-icon-list.js +145 -145
- package/dist/collection/components/ptc-icon-minimize/ptc-icon-minimize.js +86 -86
- package/dist/collection/components/ptc-img/ptc-img.js +314 -314
- package/dist/collection/components/ptc-link/ptc-link.css +5 -1
- package/dist/collection/components/ptc-link/ptc-link.js +198 -198
- package/dist/collection/components/ptc-list/ptc-list.js +68 -68
- package/dist/collection/components/ptc-lottie/ptc-lottie.css +5 -5
- package/dist/collection/components/ptc-lottie/ptc-lottie.js +58 -58
- package/dist/collection/components/ptc-minimized-footer/ptc-minimized-footer.js +17 -17
- package/dist/collection/components/ptc-minimized-header/ptc-minimized-header.js +80 -80
- package/dist/collection/components/ptc-mobile-select/ptc-mobile-select.js +221 -221
- package/dist/collection/components/ptc-modal/ptc-modal.js +337 -337
- package/dist/collection/components/ptc-nav/ptc-nav.js +21 -21
- package/dist/collection/components/ptc-nav-item/ptc-nav-item.js +252 -252
- package/dist/collection/components/ptc-overlay/ptc-overlay.js +99 -99
- package/dist/collection/components/ptc-pagenation/ptc-pagenation.js +317 -277
- package/dist/collection/components/ptc-para/ptc-para.js +157 -157
- package/dist/collection/components/ptc-picture/ptc-picture.js +474 -474
- package/dist/collection/components/ptc-previous-url/ptc-previous-url.js +54 -54
- package/dist/collection/components/ptc-pricing-block/ptc-pricing-block.js +25 -25
- package/dist/collection/components/ptc-quote/ptc-quote.js +154 -154
- package/dist/collection/components/ptc-responsive-wrapper/ptc-responsive-wrapper.css +3 -3
- package/dist/collection/components/ptc-responsive-wrapper/ptc-responsive-wrapper.js +62 -62
- package/dist/collection/components/ptc-shopping-cart/ptc-shopping-cart.js +91 -91
- package/dist/collection/components/ptc-social-share/ptc-social-share.js +206 -206
- package/dist/collection/components/ptc-spacer/ptc-spacer.css +322 -322
- package/dist/collection/components/ptc-spacer/ptc-spacer.js +99 -99
- package/dist/collection/components/ptc-span/ptc-span.js +89 -89
- package/dist/collection/components/ptc-svg-btn/ptc-svg-btn.js +71 -71
- package/dist/collection/components/ptc-tab-list/ptc-tab-list.js +140 -140
- package/dist/collection/components/ptc-title/ptc-title.js +245 -245
- package/dist/collection/components/ptc-two-column-media/ptc-two-column-media.js +40 -40
- package/dist/collection/components/tab-content/tab-content.js +74 -74
- package/dist/collection/components/tab-header/tab-header.js +107 -107
- package/dist/collection/index.js +1 -1
- package/dist/collection/media/svg-imgs/Back-arrow.svg +11 -11
- package/dist/collection/media/svg-imgs/close.svg +10 -10
- package/dist/collection/media/svg-imgs/ptc-shopping-cart-black.svg +3 -3
- package/dist/collection/media/svg-imgs/ptc-shopping-cart-white.svg +3 -3
- package/dist/collection/media/svg-imgs/slider-arrow-left.svg +18 -18
- package/dist/collection/media/svg-imgs/slider-arrow-right.svg +18 -18
- package/dist/collection/media/svg-imgs/union.svg +3 -3
- package/dist/collection/utils/component.js +3 -3
- package/dist/collection/utils/interfaces.js +11 -11
- package/dist/collection/utils/utils.js +3 -3
- package/dist/custom-elements/index.js +2768 -2769
- package/dist/esm/dropdown-item.entry.js +11 -11
- package/dist/esm/icon-asset.entry.js +60 -0
- package/dist/esm/{index-357497dc.js → index-f64012bd.js} +1 -1
- package/dist/esm/{interfaces-7c0243be.js → interfaces-c1c73092.js} +9 -9
- package/dist/esm/list-item.entry.js +20 -20
- package/dist/esm/loader.js +2 -2
- package/dist/esm/lottie-player.entry.js +355 -355
- package/dist/esm/my-component.entry.js +14 -14
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/ptc-accordion-item.entry.js +98 -98
- package/dist/esm/ptc-accordion.entry.js +39 -39
- package/dist/esm/ptc-announcement.entry.js +38 -38
- package/dist/esm/ptc-breadcrumb.entry.js +13 -13
- package/dist/esm/ptc-button.entry.js +72 -0
- package/dist/esm/ptc-card-bottom.entry.js +32 -32
- package/dist/esm/ptc-card-content.entry.js +32 -32
- package/dist/esm/ptc-card-plm.entry.js +17 -17
- package/dist/esm/ptc-card.entry.js +69 -69
- package/dist/esm/ptc-checkbox.entry.js +38 -0
- package/dist/esm/ptc-container.entry.js +42 -0
- package/dist/esm/ptc-date.entry.js +49 -49
- package/dist/esm/ptc-dropdown.entry.js +65 -0
- package/dist/esm/ptc-ellipsis-dropdown.entry.js +25 -25
- package/dist/esm/ptc-filter-tag.entry.js +35 -0
- package/dist/esm/ptc-hero-footer-cta.entry.js +9 -9
- package/dist/esm/ptc-hero.entry.js +19 -19
- package/dist/esm/ptc-icon-list.entry.js +34 -34
- package/dist/esm/ptc-icon-minimize.entry.js +42 -0
- package/dist/esm/ptc-img_2.entry.js +170 -170
- package/dist/esm/ptc-link.entry.js +49 -0
- package/dist/esm/ptc-list.entry.js +24 -24
- package/dist/esm/ptc-lottie.entry.js +13 -13
- package/dist/esm/ptc-minimized-footer.entry.js +9 -9
- package/dist/esm/ptc-minimized-header.entry.js +12 -12
- package/dist/esm/ptc-mobile-select.entry.js +70 -70
- package/dist/esm/ptc-modal.entry.js +158 -0
- package/dist/esm/ptc-nav-item.entry.js +84 -84
- package/dist/esm/ptc-nav.entry.js +9 -9
- package/dist/esm/ptc-pagenation.entry.js +105 -101
- package/dist/esm/ptc-para.entry.js +46 -0
- package/dist/esm/ptc-picture.entry.js +170 -170
- package/dist/esm/ptc-previous-url.entry.js +9 -9
- package/dist/esm/ptc-pricing-block.entry.js +15 -15
- package/dist/esm/ptc-quote.entry.js +26 -26
- package/dist/esm/ptc-responsive-wrapper.entry.js +55 -55
- package/dist/esm/ptc-shopping-cart.entry.js +60 -0
- package/dist/esm/ptc-social-share.entry.js +65 -65
- package/dist/esm/ptc-spacer.entry.js +42 -0
- package/dist/esm/ptc-span.entry.js +24 -24
- package/dist/esm/ptc-svg-btn.entry.js +76 -76
- package/dist/esm/ptc-tab-list.entry.js +117 -117
- package/dist/esm/ptc-title.entry.js +64 -0
- package/dist/esm/ptc-two-column-media.entry.js +15 -15
- package/dist/esm/ptcw-design.js +2 -2
- package/dist/esm/tab-content.entry.js +27 -27
- package/dist/esm/tab-header.entry.js +44 -44
- package/dist/ptcw-design/media/brands.svg +1381 -1381
- package/dist/ptcw-design/media/designer.svg +355 -338
- package/dist/ptcw-design/media/regular.svg +463 -463
- package/dist/ptcw-design/media/solid.svg +3013 -3013
- package/dist/ptcw-design/media/svg-with-js.min.css +4 -4
- package/dist/ptcw-design/p-021d2117.entry.js +1 -0
- package/dist/ptcw-design/{p-aa4f80c6.entry.js → p-0c86ac1a.entry.js} +1 -1
- package/dist/ptcw-design/p-1726a0cb.entry.js +1 -0
- package/dist/ptcw-design/{p-66740e2e.entry.js → p-18d0d10a.entry.js} +1 -1
- package/dist/ptcw-design/{p-b61d821b.entry.js → p-1cfc77eb.entry.js} +1 -1
- package/dist/ptcw-design/{p-737796bc.entry.js → p-204a78ce.entry.js} +1 -1
- package/dist/ptcw-design/{p-689d91a7.entry.js → p-28174fbe.entry.js} +1 -1
- package/dist/ptcw-design/{p-d0709a7c.entry.js → p-2a1808f8.entry.js} +1 -1
- package/dist/ptcw-design/{p-68bcb24d.entry.js → p-2b3a38c3.entry.js} +1 -1
- package/dist/ptcw-design/p-3918de53.entry.js +1 -0
- package/dist/ptcw-design/{p-4a80df00.entry.js → p-3a41081a.entry.js} +1 -1
- package/dist/ptcw-design/{p-7541c3e8.entry.js → p-3f136737.entry.js} +1 -1
- package/dist/ptcw-design/{p-1b5090d8.entry.js → p-3f236e98.entry.js} +1 -1
- package/dist/ptcw-design/p-412ca190.entry.js +1 -0
- package/dist/ptcw-design/{p-1884f74a.entry.js → p-42df89de.entry.js} +1 -1
- package/dist/ptcw-design/p-489715bf.entry.js +1 -0
- package/dist/ptcw-design/{p-74a72a40.entry.js → p-5069bb7d.entry.js} +1 -1
- package/dist/ptcw-design/p-51c39418.entry.js +1 -0
- package/dist/ptcw-design/p-52b80149.entry.js +1 -0
- package/dist/ptcw-design/{p-246057c5.entry.js → p-58a3c173.entry.js} +1 -1
- package/dist/ptcw-design/{p-adcbd7e1.entry.js → p-612f7224.entry.js} +1 -1
- package/dist/ptcw-design/{p-6106d579.entry.js → p-679b99ad.entry.js} +1 -1
- package/dist/ptcw-design/p-7133275c.entry.js +1 -0
- package/dist/ptcw-design/{p-7966413a.entry.js → p-72e6a3f1.entry.js} +1 -1
- package/dist/ptcw-design/{p-00c1c3ec.entry.js → p-7448f767.entry.js} +1 -1
- package/dist/ptcw-design/{p-95f7e520.entry.js → p-76635841.entry.js} +1 -1
- package/dist/ptcw-design/{p-9fe3e385.entry.js → p-781aacb7.entry.js} +1 -1
- package/dist/ptcw-design/{p-69581273.entry.js → p-796b4a16.entry.js} +1 -1
- package/dist/ptcw-design/{p-cbf56b5e.entry.js → p-7bcc42e1.entry.js} +1 -1
- package/dist/ptcw-design/{p-59fd3cd2.entry.js → p-8c6b8bc9.entry.js} +1 -1
- package/dist/ptcw-design/p-8e27bb6d.entry.js +1 -0
- package/dist/ptcw-design/{p-f72ef3fc.entry.js → p-8ea08e1d.entry.js} +1 -1
- package/dist/ptcw-design/p-969c178b.entry.js +1 -0
- package/dist/ptcw-design/p-9b442487.entry.js +1 -0
- package/dist/ptcw-design/p-a28c7277.entry.js +1 -0
- package/dist/ptcw-design/{p-316d8eae.entry.js → p-c3e79e54.entry.js} +1 -1
- package/dist/ptcw-design/{p-9ed142ce.entry.js → p-c5951736.entry.js} +1 -1
- package/dist/ptcw-design/{p-ea8fa57b.entry.js → p-cd3fbbb1.entry.js} +1 -1
- package/dist/ptcw-design/{p-ef64b508.entry.js → p-d64c3892.entry.js} +1 -1
- package/dist/ptcw-design/p-d93ae820.entry.js +1 -0
- package/dist/ptcw-design/{p-e4359c5a.entry.js → p-dbf3779e.entry.js} +1 -1
- package/dist/ptcw-design/{p-ff08fa6c.entry.js → p-dc18ae76.entry.js} +1 -1
- package/dist/ptcw-design/{p-cc18f13a.entry.js → p-dc605137.entry.js} +1 -1
- package/dist/ptcw-design/p-df80470b.entry.js +1 -0
- package/dist/ptcw-design/{p-0e571387.js → p-e8a60227.js} +1 -1
- package/dist/ptcw-design/{p-c23a6ee1.entry.js → p-ec10f846.entry.js} +1 -1
- package/dist/ptcw-design/{p-91456c49.entry.js → p-ee61991d.entry.js} +1 -1
- package/dist/ptcw-design/p-ef93bfcc.entry.js +1 -0
- package/dist/ptcw-design/p-f32f9817.entry.js +1 -0
- package/dist/ptcw-design/{p-beb569e6.entry.js → p-fa53e5e5.entry.js} +1 -1
- package/dist/ptcw-design/p-fa681f61.entry.js +1 -0
- package/dist/ptcw-design/{p-9e693f5e.entry.js → p-fe957cbf.entry.js} +1 -1
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/dropdown-item/dropdown-item.d.ts +5 -5
- package/dist/types/components/icon-asset/icon-asset.d.ts +36 -36
- package/dist/types/components/list-item/list-item.d.ts +8 -8
- package/dist/types/components/my-component/my-component.d.ts +16 -16
- package/dist/types/components/ptc-accordion/ptc-accordion-item/ptc-accordion-item.d.ts +59 -59
- package/dist/types/components/ptc-accordion/ptc-accordion.d.ts +13 -13
- package/dist/types/components/ptc-announcement/ptc-announcement.d.ts +43 -43
- package/dist/types/components/ptc-breadcrumb/ptc-breadcrumb.d.ts +4 -4
- package/dist/types/components/ptc-button/ptc-button.d.ts +56 -56
- package/dist/types/components/ptc-card/ptc-card.d.ts +54 -54
- package/dist/types/components/ptc-card-bottom/ptc-card-bottom.d.ts +15 -15
- package/dist/types/components/ptc-card-content/ptc-card-content.d.ts +15 -15
- package/dist/types/components/ptc-card-plm/ptc-card-plm.d.ts +8 -8
- package/dist/types/components/ptc-checkbox/ptc-checkbox.d.ts +11 -11
- package/dist/types/components/ptc-container/ptc-container.d.ts +12 -12
- package/dist/types/components/ptc-date/ptc-date.d.ts +41 -41
- package/dist/types/components/ptc-dropdown/ptc-dropdown.d.ts +18 -18
- package/dist/types/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.d.ts +10 -10
- package/dist/types/components/ptc-filter-tag/ptc-filter-tag.d.ts +11 -11
- package/dist/types/components/ptc-hero/ptc-hero.d.ts +12 -12
- package/dist/types/components/ptc-hero-footer-cta/ptc-hero-footer-cta.d.ts +6 -6
- package/dist/types/components/ptc-icon-list/ptc-icon-list.d.ts +21 -21
- package/dist/types/components/ptc-icon-minimize/ptc-icon-minimize.d.ts +9 -9
- package/dist/types/components/ptc-img/ptc-img.d.ts +51 -51
- package/dist/types/components/ptc-link/ptc-link.d.ts +36 -36
- package/dist/types/components/ptc-list/ptc-list.d.ts +6 -6
- package/dist/types/components/ptc-lottie/ptc-lottie.d.ts +12 -12
- package/dist/types/components/ptc-minimized-footer/ptc-minimized-footer.d.ts +3 -3
- package/dist/types/components/ptc-minimized-header/ptc-minimized-header.d.ts +6 -6
- package/dist/types/components/ptc-mobile-select/ptc-mobile-select.d.ts +40 -40
- package/dist/types/components/ptc-modal/ptc-modal.d.ts +55 -55
- package/dist/types/components/ptc-nav/ptc-nav.d.ts +3 -3
- package/dist/types/components/ptc-nav-item/ptc-nav-item.d.ts +53 -53
- package/dist/types/components/ptc-overlay/ptc-overlay.d.ts +20 -20
- package/dist/types/components/ptc-pagenation/ptc-pagenation.d.ts +27 -25
- package/dist/types/components/ptc-para/ptc-para.d.ts +28 -28
- package/dist/types/components/ptc-picture/ptc-picture.d.ts +93 -93
- package/dist/types/components/ptc-previous-url/ptc-previous-url.d.ts +5 -5
- package/dist/types/components/ptc-pricing-block/ptc-pricing-block.d.ts +4 -4
- package/dist/types/components/ptc-quote/ptc-quote.d.ts +29 -29
- package/dist/types/components/ptc-responsive-wrapper/ptc-responsive-wrapper.d.ts +8 -8
- package/dist/types/components/ptc-shopping-cart/ptc-shopping-cart.d.ts +6 -6
- package/dist/types/components/ptc-social-share/ptc-social-share.d.ts +25 -25
- package/dist/types/components/ptc-spacer/ptc-spacer.d.ts +16 -16
- package/dist/types/components/ptc-span/ptc-span.d.ts +16 -16
- package/dist/types/components/ptc-svg-btn/ptc-svg-btn.d.ts +12 -12
- package/dist/types/components/ptc-tab-list/ptc-tab-list.d.ts +14 -14
- package/dist/types/components/ptc-title/ptc-title.d.ts +41 -41
- package/dist/types/components/ptc-two-column-media/ptc-two-column-media.d.ts +9 -9
- package/dist/types/components/tab-content/tab-content.d.ts +12 -12
- package/dist/types/components/tab-header/tab-header.d.ts +13 -13
- package/dist/types/components.d.ts +32 -28
- package/dist/types/global.d.ts +1072 -1072
- package/dist/types/index.d.ts +1 -1
- package/dist/types/utils/component.d.ts +1 -1
- package/dist/types/utils/interfaces.d.ts +28 -28
- package/dist/types/utils/utils.d.ts +1 -1
- package/package.json +59 -59
- package/readme.md +11 -11
- package/dist/cjs/icon-asset_13.cjs.entry.js +0 -758
- package/dist/collection/media/svg-imgs/check-mark.svg +0 -3
- package/dist/esm/icon-asset_13.entry.js +0 -742
- package/dist/ptcw-design/p-0f17a4f0.entry.js +0 -1
- package/dist/ptcw-design/p-26c9bc7b.entry.js +0 -1
- package/dist/ptcw-design/p-45528270.entry.js +0 -1
- package/dist/ptcw-design/p-870d7171.entry.js +0 -1
- package/dist/ptcw-design/p-e5b8fc3d.entry.js +0 -1
- /package/dist/ptcw-design/{p-ee1183b2.js → p-50e52c88.js} +0 -0
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-f64012bd.js';
|
|
2
2
|
|
|
3
3
|
const ptcListCss = ":host{display:block}:host(.list-primary) li{font-size:var(--ptc-font-size-x-small);line-height:var(--ptc-line-height-normal);letter-spacing:var(--ptc-letter-spacing-normal);list-style:none}:host(.list-primary) li:not(:last-child){margin-bottom:0.625rem}:host(.list-primary) li a{color:var(--color-white);outline:none;text-decoration:none;font-family:Rajdhani;font-size:var(--ptc-font-size-x-small);font-weight:var(--ptc-font-weight-bold);line-height:var(--ptc-line-height-normal);text-transform:uppercase;letter-spacing:var(--ptc-letter-spacing-normal)}:host(.list-primary) li a:hover{color:var(--color-white);border-bottom:1.5px solid var(--color-green-07)}";
|
|
4
4
|
|
|
5
|
-
let PtcList = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.listType = 'list-primary';
|
|
9
|
-
this.listItems = [];
|
|
10
|
-
}
|
|
11
|
-
render() {
|
|
12
|
-
const classMap = this.getCssClassMap();
|
|
13
|
-
const listItems = this.listItems;
|
|
14
|
-
//console.log(this.listItems.length);
|
|
15
|
-
if (!listItems || listItems.length === 0) {
|
|
16
|
-
return null;
|
|
17
|
-
}
|
|
18
|
-
return (h(Host, { class: classMap }, h("ul", null, listItems.map(listItem => {
|
|
19
|
-
h("li", null, listItem);
|
|
20
|
-
}))));
|
|
21
|
-
}
|
|
22
|
-
getCssClassMap() {
|
|
23
|
-
return {
|
|
24
|
-
[this.listType]: this.listItems ? true : false,
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
};
|
|
5
|
+
let PtcList = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.listType = 'list-primary';
|
|
9
|
+
this.listItems = [];
|
|
10
|
+
}
|
|
11
|
+
render() {
|
|
12
|
+
const classMap = this.getCssClassMap();
|
|
13
|
+
const listItems = this.listItems;
|
|
14
|
+
//console.log(this.listItems.length);
|
|
15
|
+
if (!listItems || listItems.length === 0) {
|
|
16
|
+
return null;
|
|
17
|
+
}
|
|
18
|
+
return (h(Host, { class: classMap }, h("ul", null, listItems.map(listItem => {
|
|
19
|
+
h("li", null, listItem);
|
|
20
|
+
}))));
|
|
21
|
+
}
|
|
22
|
+
getCssClassMap() {
|
|
23
|
+
return {
|
|
24
|
+
[this.listType]: this.listItems ? true : false,
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
28
|
PtcList.style = ptcListCss;
|
|
29
29
|
|
|
30
30
|
export { PtcList as ptc_list };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-f64012bd.js';
|
|
2
2
|
|
|
3
3
|
const ptcLottieCss = ":host{display:block;width:100%;height:auto}";
|
|
4
4
|
|
|
5
|
-
let PtcLottie = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
/**
|
|
9
|
-
* Animation speed
|
|
10
|
-
*/
|
|
11
|
-
this.speed = 1;
|
|
12
|
-
}
|
|
13
|
-
render() {
|
|
14
|
-
return (h("lottie-player", { autoplay: true, loop: true, src: this.jsonSrc, speed: this.speed }));
|
|
15
|
-
}
|
|
16
|
-
};
|
|
5
|
+
let PtcLottie = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
/**
|
|
9
|
+
* Animation speed
|
|
10
|
+
*/
|
|
11
|
+
this.speed = 1;
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
return (h("lottie-player", { autoplay: true, loop: true, src: this.jsonSrc, speed: this.speed }));
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
17
|
PtcLottie.style = ptcLottieCss;
|
|
18
18
|
|
|
19
19
|
export { PtcLottie as ptc_lottie };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-f64012bd.js';
|
|
2
2
|
|
|
3
3
|
const ptcMinimizedFooterCss = ":host{box-shadow:var(--ptc-shadow-medium);color:var(--color-white);position:relative;overflow:hidden;position:relative;z-index:1000;padding:0;height:60px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;background-color:var(--color-gray-10)}.min-footer-nav-list{margin:0;padding:0;list-style:none}.min-footer-copyright-wrapper{text-align:center;position:relative;z-index:20}.min-footer-copyright-wrapper .min-footer-copyright-list{padding:var(--ptc-element-spacing-04) 0;display:flex;flex-direction:row}@media screen-sm{.min-footer-copyright-wrapper .min-footer-copyright-list{padding:var(--ptc-element-spacing-04) 0}}";
|
|
4
4
|
|
|
5
|
-
let PtcMinimizedFooter = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
}
|
|
9
|
-
render() {
|
|
10
|
-
return (h(Host, { class: "ptc-min-footer mini-footer" }, h("div", { class: "min-footer-copyright-wrapper" }, h("ul", { class: "min-footer-nav-list min-footer-copyright-list" }, h("slot", null)))));
|
|
11
|
-
}
|
|
12
|
-
};
|
|
5
|
+
let PtcMinimizedFooter = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
}
|
|
9
|
+
render() {
|
|
10
|
+
return (h(Host, { class: "ptc-min-footer mini-footer" }, h("div", { class: "min-footer-copyright-wrapper" }, h("ul", { class: "min-footer-nav-list min-footer-copyright-list" }, h("slot", null)))));
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
13
|
PtcMinimizedFooter.style = ptcMinimizedFooterCss;
|
|
14
14
|
|
|
15
15
|
export { PtcMinimizedFooter as ptc_minimized_footer };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-f64012bd.js';
|
|
2
2
|
|
|
3
3
|
const ptcMinimizedHeaderCss = ":host{display:block}.minimized-header .header{overflow:hidden;height:48px;background-color:var(--color-gray-10);display:flex;align-items:center;justify-content:center}.minimized-header .header a{float:left;color:var(--color-black);text-align:center;padding:0px 0;text-decoration:none;font-size:var(--ptc-font-size-small);line-height:var(--ptc-line-height-p);border-radius:var(--ptc-border-radius-standard)}.minimized-header .header a.mini-navbar-logo{font-size:var(--ptc-font-size-large);font-weight:var(--ptc-font-weight-bold)}.minimized-header .header a.mini-navbar-logo img{width:65px;vertical-align:middle;border:0;height:auto}.mini-navbar-logo{outline:3px solid transparent}.mini-navbar-logo:focus{outline:3px solid var(--color-blue-07);outline-offset:2px;border-radius:var(--ptc-border-radius-standard);text-decoration:none;border-color:transparent !important}@media only screen and (min-width: 768px){.temp-container{width:750px}}@media only screen and (min-width: 992px){.temp-container{width:970px}}@media only screen and (min-width: 1200px){.temp-container{width:1170px}}@media only screen and (min-width: 1440px){.temp-container{width:1400px}}@media only screen and (min-width: 1600px){.temp-container{width:1560px}}@media screen-xs{.minimized-header .header a{float:none;display:block;text-align:left}}";
|
|
4
4
|
|
|
5
|
-
let PtcMinimizedHeader = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.linkUrl = '#';
|
|
9
|
-
this.imgSrc = '';
|
|
10
|
-
this.imgAlt = 'PTC';
|
|
11
|
-
}
|
|
12
|
-
render() {
|
|
13
|
-
return (h(Host, null, h("div", { class: "minimized-header" }, h("div", { class: "header" }, h("div", { class: "temp-container" }, h("a", { class: "mini-navbar-logo", href: this.linkUrl }, h("img", { src: this.imgSrc, alt: this.imgAlt })))))));
|
|
14
|
-
}
|
|
15
|
-
};
|
|
5
|
+
let PtcMinimizedHeader = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.linkUrl = '#';
|
|
9
|
+
this.imgSrc = '';
|
|
10
|
+
this.imgAlt = 'PTC';
|
|
11
|
+
}
|
|
12
|
+
render() {
|
|
13
|
+
return (h(Host, null, h("div", { class: "minimized-header" }, h("div", { class: "header" }, h("div", { class: "temp-container" }, h("a", { class: "mini-navbar-logo", href: this.linkUrl }, h("img", { src: this.imgSrc, alt: this.imgAlt })))))));
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
16
|
PtcMinimizedHeader.style = ptcMinimizedHeaderCss;
|
|
17
17
|
|
|
18
18
|
export { PtcMinimizedHeader as ptc_minimized_header };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-f64012bd.js';
|
|
2
2
|
import { c as createCommonjsModule } from './_commonjsHelpers-8b28c6fa.js';
|
|
3
3
|
|
|
4
4
|
var mobileSelect = createCommonjsModule(function (module, exports) {
|
|
@@ -717,75 +717,75 @@ var mobileSelect = createCommonjsModule(function (module, exports) {
|
|
|
717
717
|
|
|
718
718
|
const ptcMobileSelectCss = ".mobileSelect{position:relative;z-index:0;opacity:0;visibility:hidden;-webkit-transition:opacity 0.4s, z-index 0.4s;transition:opacity 0.4s, z-index 0.4s}.mobileSelect *{margin:0;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box}.mobileSelect .grayLayer{position:fixed;top:0;left:0;bottom:0;right:0;background:#eee;background:rgba(0, 0, 0, 0.7);z-index:888;display:block}.mobileSelect .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}.mobileSelect .content .fixWidth{width:90%;margin:0 auto;position:relative}.mobileSelect .content .fixWidth:after{content:\".\";display:block;height:0;clear:both;visibility:hidden}.mobileSelect .content .btnBar{border-bottom:1px solid #DCDCDC;font-size:15px;height:45px;position:relative;text-align:center;line-height:45px}.mobileSelect .content .btnBar .cancel,.mobileSelect .content .btnBar .ensure{height:45px;width:55px;cursor:pointer;position:absolute;top:0}.mobileSelect .content .btnBar .cancel{left:0;color:#666}.mobileSelect .content .btnBar .ensure{right:0;color:#1e83d3}.mobileSelect .content .btnBar .title{font-size:15px;padding:0 15%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.mobileSelect .content .panel:after{content:\".\";display:block;height:0;clear:both;visibility:hidden}.mobileSelect .content .panel .wheels{width:100%;height:200px;overflow:hidden}.mobileSelect .content .panel .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}.mobileSelect .content .panel .wheel .selectContainer{display:block;text-align:center;-webkit-transition:-webkit-transform 0.18s ease-out;transition:-webkit-transform 0.18s ease-out;transition:transform 0.18s ease-out;transition:transform 0.18s ease-out, -webkit-transform 0.18s ease-out}.mobileSelect .content .panel .wheel .selectContainer li{font-size:15px;display:block;height:40px;line-height:40px;cursor:pointer;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.mobileSelect .content .panel .selectLine{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}.mobileSelect .content .panel .shadowMask{position:absolute;top:0;width:100%;height:200px;background:-webkit-gradient(linear, left top, left bottom, from(#ffffff), color-stop(rgba(255, 255, 255, 0)), to(#ffffff));background:-webkit-linear-gradient(top, #ffffff, rgba(255, 255, 255, 0), #ffffff);background:linear-gradient(to bottom, #ffffff, rgba(255, 255, 255, 0), #ffffff);opacity:0.9;pointer-events:none}.mobileSelect-show{opacity:1;z-index:10000;visibility:visible}.mobileSelect-show .content{bottom:0}.mobile-select-wrapper{display:block}.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-regular);font-size:var(--ptc-font-size-x-small);line-height:var(--ptc-line-height-densest);color:var(--color-white);height:18px}.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}";
|
|
719
719
|
|
|
720
|
-
let PtcMobileSelect = class {
|
|
721
|
-
constructor(hostRef) {
|
|
722
|
-
registerInstance(this, hostRef);
|
|
723
|
-
/**
|
|
724
|
-
* Selected Id
|
|
725
|
-
* - initialize the id(string) of default wheel
|
|
726
|
-
*/
|
|
727
|
-
this.selectedId = '';
|
|
728
|
-
/**
|
|
729
|
-
* Confirm Text
|
|
730
|
-
* - translation goes here
|
|
731
|
-
*/
|
|
732
|
-
this.ensureBtnText = 'Confirm';
|
|
733
|
-
/**
|
|
734
|
-
* Cancel Text
|
|
735
|
-
* - translation goes here
|
|
736
|
-
*/
|
|
737
|
-
this.cancelBtnText = 'Cancel';
|
|
738
|
-
/**
|
|
739
|
-
* Mobile select list title (Optional)
|
|
740
|
-
*/
|
|
741
|
-
this.listTitle = undefined;
|
|
742
|
-
/**
|
|
743
|
-
* link url
|
|
744
|
-
*/
|
|
745
|
-
this.linkUrl = undefined;
|
|
746
|
-
}
|
|
747
|
-
render() {
|
|
748
|
-
return (h("div", { class: "mobile-select-wrapper" }, h("div", { id: this.triggerName }, this.selectedText, h("icon-asset", { "injected-style": "svg.sc-icon-asset{transform:translateX(10px);}", type: "ptc", size: "x-small", name: "chevron-down", color: "white" }))));
|
|
749
|
-
}
|
|
750
|
-
componentDidRender() {
|
|
751
|
-
let currentId = this.selectedId; //input current lang
|
|
752
|
-
let storeIndex = 0;
|
|
753
|
-
new mobileSelect({
|
|
754
|
-
trigger: `#${this.triggerName}`,
|
|
755
|
-
title: `${this.listTitle ? this.listTitle : ''}`,
|
|
756
|
-
wheels: this.wheelData ? [{ data: this.wheelData }] : [{ data: ['test1', 'test2'] }],
|
|
757
|
-
position: [0],
|
|
758
|
-
ensureBtnText: this.ensureBtnText,
|
|
759
|
-
cancelBtnText: this.cancelBtnText,
|
|
760
|
-
ensureBtnColor: 'var(--color-gray-12)',
|
|
761
|
-
cancelBtnColor: 'var(--color-gray-12)',
|
|
762
|
-
titleColor: 'var(--color-gray-12)',
|
|
763
|
-
onShow: function (e) {
|
|
764
|
-
if (currentId) {
|
|
765
|
-
let liEle = document.querySelectorAll('.selectContainer li');
|
|
766
|
-
liEle.forEach((currentValue, currentIndex) => {
|
|
767
|
-
if (currentValue.getAttribute('data-id') == currentId) {
|
|
768
|
-
storeIndex = currentIndex;
|
|
769
|
-
return;
|
|
770
|
-
}
|
|
771
|
-
});
|
|
772
|
-
e.locatePosition(0, storeIndex);
|
|
773
|
-
}
|
|
774
|
-
else {
|
|
775
|
-
return;
|
|
776
|
-
}
|
|
777
|
-
},
|
|
778
|
-
callback: function (indexArr, data) {
|
|
779
|
-
if (this.linkUrl !== undefined) {
|
|
780
|
-
window.location.href = this.linkUrl + '/' + data[0].id;
|
|
781
|
-
}
|
|
782
|
-
else {
|
|
783
|
-
console.log('index: ' + indexArr + ', id: ' + data[0].id + '; No link url founded!');
|
|
784
|
-
}
|
|
785
|
-
}.bind(this),
|
|
786
|
-
});
|
|
787
|
-
}
|
|
788
|
-
};
|
|
720
|
+
let PtcMobileSelect = class {
|
|
721
|
+
constructor(hostRef) {
|
|
722
|
+
registerInstance(this, hostRef);
|
|
723
|
+
/**
|
|
724
|
+
* Selected Id
|
|
725
|
+
* - initialize the id(string) of default wheel
|
|
726
|
+
*/
|
|
727
|
+
this.selectedId = '';
|
|
728
|
+
/**
|
|
729
|
+
* Confirm Text
|
|
730
|
+
* - translation goes here
|
|
731
|
+
*/
|
|
732
|
+
this.ensureBtnText = 'Confirm';
|
|
733
|
+
/**
|
|
734
|
+
* Cancel Text
|
|
735
|
+
* - translation goes here
|
|
736
|
+
*/
|
|
737
|
+
this.cancelBtnText = 'Cancel';
|
|
738
|
+
/**
|
|
739
|
+
* Mobile select list title (Optional)
|
|
740
|
+
*/
|
|
741
|
+
this.listTitle = undefined;
|
|
742
|
+
/**
|
|
743
|
+
* link url
|
|
744
|
+
*/
|
|
745
|
+
this.linkUrl = undefined;
|
|
746
|
+
}
|
|
747
|
+
render() {
|
|
748
|
+
return (h("div", { class: "mobile-select-wrapper" }, h("div", { id: this.triggerName }, this.selectedText, h("icon-asset", { "injected-style": "svg.sc-icon-asset{transform:translateX(10px);}", type: "ptc", size: "x-small", name: "chevron-down", color: "white" }))));
|
|
749
|
+
}
|
|
750
|
+
componentDidRender() {
|
|
751
|
+
let currentId = this.selectedId; //input current lang
|
|
752
|
+
let storeIndex = 0;
|
|
753
|
+
new mobileSelect({
|
|
754
|
+
trigger: `#${this.triggerName}`,
|
|
755
|
+
title: `${this.listTitle ? this.listTitle : ''}`,
|
|
756
|
+
wheels: this.wheelData ? [{ data: this.wheelData }] : [{ data: ['test1', 'test2'] }],
|
|
757
|
+
position: [0],
|
|
758
|
+
ensureBtnText: this.ensureBtnText,
|
|
759
|
+
cancelBtnText: this.cancelBtnText,
|
|
760
|
+
ensureBtnColor: 'var(--color-gray-12)',
|
|
761
|
+
cancelBtnColor: 'var(--color-gray-12)',
|
|
762
|
+
titleColor: 'var(--color-gray-12)',
|
|
763
|
+
onShow: function (e) {
|
|
764
|
+
if (currentId) {
|
|
765
|
+
let liEle = document.querySelectorAll('.selectContainer li');
|
|
766
|
+
liEle.forEach((currentValue, currentIndex) => {
|
|
767
|
+
if (currentValue.getAttribute('data-id') == currentId) {
|
|
768
|
+
storeIndex = currentIndex;
|
|
769
|
+
return;
|
|
770
|
+
}
|
|
771
|
+
});
|
|
772
|
+
e.locatePosition(0, storeIndex);
|
|
773
|
+
}
|
|
774
|
+
else {
|
|
775
|
+
return;
|
|
776
|
+
}
|
|
777
|
+
},
|
|
778
|
+
callback: function (indexArr, data) {
|
|
779
|
+
if (this.linkUrl !== undefined) {
|
|
780
|
+
window.location.href = this.linkUrl + '/' + data[0].id;
|
|
781
|
+
}
|
|
782
|
+
else {
|
|
783
|
+
console.log('index: ' + indexArr + ', id: ' + data[0].id + '; No link url founded!');
|
|
784
|
+
}
|
|
785
|
+
}.bind(this),
|
|
786
|
+
});
|
|
787
|
+
}
|
|
788
|
+
};
|
|
789
789
|
PtcMobileSelect.style = ptcMobileSelectCss;
|
|
790
790
|
|
|
791
791
|
export { PtcMobileSelect as ptc_mobile_select };
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-f64012bd.js';
|
|
2
|
+
|
|
3
|
+
const ptcModalCss = ":host{display:block}.wrapper{position:fixed;width:100vw;height:100%;top:0;left:0;z-index:3000;display:none}.wrapper .modal-popup{margin:7.5rem auto 1rem;background-color:var(--color-white);box-shadow:var(--ptc-shadow-large);max-width:22.5625rem;width:80%;display:flex;flex-direction:column;align-items:flex-end;align-content:flex-end;z-index:3020;transform:translateY(-100%)}@media only screen and (min-width: 992px){.wrapper .modal-popup{max-width:29.125rem}}.wrapper .modal-popup.md{max-width:44.125rem}.wrapper .modal-popup.lg{max-width:56.25rem}.wrapper .modal-popup.xl{max-width:64.0625rem}.wrapper .modal-popup .modal-body{width:100%}.wrapper .modal-popup .modal-body iframe{opacity:0;overflow:hidden;width:100%;border:0;transition:opacity var(--ptc-ease-inout) var(--ptc-transition-medium)}.wrapper .modal-popup .modal-body iframe.ready{opacity:1}.wrapper .modal-popup .modal-body.frame{overflow:hidden}.wrapper .modal-popup .modal-body.html{overflow:hidden}.wrapper .modal-popup .close{margin-right:var(--ptc-element-spacing-03);margin-top:var(--ptc-element-spacing-03)}.wrapper .modal-popup.shadow-scroller{max-height:756px}.wrapper .modal-popup.shadow-scroller .modal-header{transition:box-shadow ease-in-out 250ms;position:relative;min-height:57px;border-bottom:1px solid var(--color-gray-02);width:100%}.wrapper .modal-popup.shadow-scroller .modal-header .close{position:absolute;top:var(--spacing-md);right:var(--spacing-md);margin:0}.wrapper .modal-popup.shadow-scroller .modal-body{min-height:200px;overflow-x:hidden;overflow-y:auto}.wrapper .modal-popup.shadow-scroller .modal-footer{transition:box-shadow ease-in-out 250ms;width:100%;min-height:72px;border-top:1px solid var(--color-gray-02);padding-top:1rem}.wrapper .modal-popup.shadow-scroller.scroll-top .modal-header{box-shadow:0px 4px 12px rgba(0, 0, 0, 0.12)}.wrapper .modal-popup.shadow-scroller.scroll-bottom .modal-footer{box-shadow:0px -8px 12px rgba(0, 0, 0, 0.12)}.wrapper.show{display:flex;align-items:flex-start}.wrapper.show .modal-popup{transform:translateY(0)}.wrapper.show .modal-popup.rounded{border-radius:var(--ptc-border-radius-standard)}.overlay{width:100vw;height:100vh;position:fixed;top:0;left:0;z-index:3010;display:block;background-color:rgba(0, 0, 0, 0.6)}";
|
|
4
|
+
|
|
5
|
+
let PtcModal = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.closed = createEvent(this, "closed", 7);
|
|
9
|
+
this.opened = createEvent(this, "opened", 7);
|
|
10
|
+
/**
|
|
11
|
+
* Sets if popup should close if click on outside
|
|
12
|
+
*/
|
|
13
|
+
this.size = 'sm';
|
|
14
|
+
/**
|
|
15
|
+
* Set whether or not to display modal
|
|
16
|
+
*/
|
|
17
|
+
this.show = false;
|
|
18
|
+
/**
|
|
19
|
+
* Sets if popup should overlay
|
|
20
|
+
*/
|
|
21
|
+
this.overlay = true;
|
|
22
|
+
/**
|
|
23
|
+
* Sets if popup should close if click on outside
|
|
24
|
+
*/
|
|
25
|
+
this.closeOnBlur = false;
|
|
26
|
+
/**
|
|
27
|
+
* Sets if popup should have rounded corners
|
|
28
|
+
*/
|
|
29
|
+
this.rounded = false;
|
|
30
|
+
/**
|
|
31
|
+
* Sets if popup should have header footer sections
|
|
32
|
+
*/
|
|
33
|
+
this.showHeaderFooter = false;
|
|
34
|
+
}
|
|
35
|
+
fireOnClosed(modal) {
|
|
36
|
+
this.closed.emit(modal);
|
|
37
|
+
}
|
|
38
|
+
fireOnOpened(modal) {
|
|
39
|
+
this.opened.emit(modal);
|
|
40
|
+
}
|
|
41
|
+
componentWillLoad() {
|
|
42
|
+
let body = document.querySelector('body');
|
|
43
|
+
this.bodyOverflowSetting = {
|
|
44
|
+
//overflow: body.style['overflow'],
|
|
45
|
+
overflowY: body.style['overflowY'],
|
|
46
|
+
overflowX: body.style['overflowX'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
componentWillRender() {
|
|
50
|
+
let body = document.querySelector('body');
|
|
51
|
+
if (body) {
|
|
52
|
+
if (this.show) {
|
|
53
|
+
//body.style['overflow'] = 'hidden';
|
|
54
|
+
body.style['overflowY'] = 'scroll';
|
|
55
|
+
body.style['overflowX'] = 'hidden';
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
//body.style['overflow'] = this.bodyOverflowSetting.overflow;
|
|
59
|
+
body.style['overflowY'] = this.bodyOverflowSetting.overflowY;
|
|
60
|
+
body.style['overflowX'] = this.bodyOverflowSetting.overflowX;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
componentDidLoad() {
|
|
65
|
+
if (this.show) {
|
|
66
|
+
this.fireOnOpened(this);
|
|
67
|
+
}
|
|
68
|
+
if (this.showHeaderFooter) {
|
|
69
|
+
this.handleScroll();
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
componentDidUpdate() {
|
|
73
|
+
if (this.show) {
|
|
74
|
+
this.fireOnOpened(this);
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
this.fireOnClosed(this);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
resizeIframe(e) {
|
|
81
|
+
let iFrame = e.target;
|
|
82
|
+
setTimeout(() => {
|
|
83
|
+
try {
|
|
84
|
+
iFrame.height = `${iFrame.contentDocument.body.scrollHeight}px`;
|
|
85
|
+
}
|
|
86
|
+
catch (error) {
|
|
87
|
+
console.log(error);
|
|
88
|
+
iFrame.height = '616px'; //default
|
|
89
|
+
iFrame.removeAttribute('scrolling');
|
|
90
|
+
}
|
|
91
|
+
iFrame.classList.add('ready');
|
|
92
|
+
}, 50);
|
|
93
|
+
}
|
|
94
|
+
handleScroll() {
|
|
95
|
+
let modal = this.el.shadowRoot.querySelector('.shadow-scroller');
|
|
96
|
+
if (modal) {
|
|
97
|
+
let body = modal.querySelector('.modal-body');
|
|
98
|
+
var height = body.clientHeight;
|
|
99
|
+
var scrollHeight = body.scrollHeight;
|
|
100
|
+
var scrollTop = body.scrollTop;
|
|
101
|
+
var offset = body.offsetHeight;
|
|
102
|
+
if (height < scrollHeight) { //has scrollbar
|
|
103
|
+
if (scrollTop > 0) { //can scroll up
|
|
104
|
+
modal.classList.add('scroll-top');
|
|
105
|
+
}
|
|
106
|
+
else {
|
|
107
|
+
modal.classList.remove('scroll-top');
|
|
108
|
+
}
|
|
109
|
+
if (offset + scrollTop < scrollHeight) { //can scroll down
|
|
110
|
+
modal.classList.add('scroll-bottom');
|
|
111
|
+
}
|
|
112
|
+
else {
|
|
113
|
+
modal.classList.remove('scroll-bottom');
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
close() {
|
|
119
|
+
this.show = false;
|
|
120
|
+
}
|
|
121
|
+
render() {
|
|
122
|
+
let content;
|
|
123
|
+
let overlay;
|
|
124
|
+
let type = this.iframeUrl ? 'frame' : 'html';
|
|
125
|
+
let closebtn = (h("div", { class: "close" }, h("a", { href: "#", onClick: (e) => { e.preventDefault(); this.close(); } }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 14 14", fill: "none" }, h("path", { d: "M1 1L13 13", stroke: "black" }), h("path", { d: "M13 1L1 13", stroke: "black" })))));
|
|
126
|
+
if (this.iframeUrl) {
|
|
127
|
+
content = (h("iframe", { src: this.iframeUrl, frameBorder: 0, allowFullScreen: false, height: "100%", width: "100%", scrolling: "no", onLoad: this.resizeIframe }));
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
if (this.showHeaderFooter) {
|
|
131
|
+
content = (h("slot", { name: "body" }));
|
|
132
|
+
}
|
|
133
|
+
else {
|
|
134
|
+
content = (h("slot", null));
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
if (this.overlay) {
|
|
138
|
+
if (this.closeOnBlur) {
|
|
139
|
+
overlay = h("div", { class: "overlay", onClick: (_) => this.close() });
|
|
140
|
+
}
|
|
141
|
+
else {
|
|
142
|
+
overlay = h("div", { class: "overlay" });
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
return (h(Host, null, h("div", { class: `wrapper ${this.show ? "show" : "hide"}` }, overlay, h("div", { class: `modal-popup ${this.size} ${type} ${this.rounded ? 'rounded' : ''} ${this.showHeaderFooter ? 'shadow-scroller' : ''} ` }, this.showHeaderFooter ? [
|
|
146
|
+
h("div", { class: "modal-header" }, h("slot", { name: "header" }), closebtn),
|
|
147
|
+
h("div", { class: "modal-body", onScroll: () => this.handleScroll() }, content),
|
|
148
|
+
h("div", { class: "modal-footer" }, h("slot", { name: "footer" }))
|
|
149
|
+
] : [
|
|
150
|
+
closebtn,
|
|
151
|
+
h("div", { class: "modal-body" }, content)
|
|
152
|
+
]))));
|
|
153
|
+
}
|
|
154
|
+
get el() { return getElement(this); }
|
|
155
|
+
};
|
|
156
|
+
PtcModal.style = ptcModalCss;
|
|
157
|
+
|
|
158
|
+
export { PtcModal as ptc_modal };
|
|
@@ -1,90 +1,90 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host,
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-f64012bd.js';
|
|
2
2
|
|
|
3
3
|
const ptcNavItemCss = ":host{display:block;width:100%}@media only screen and (min-width: 992px){:host{width:auto}}:host([depth=\"2\"]) a{font-family:var(--ptc-font-secondary-latin);font-size:var(--ptc-font-size-x-small);font-weight:var(--ptc-font-weight-bold);line-height:var(--ptc-line-height-dense);letter-spacing:var(--ptc-letter-spacing-dense);margin-bottom:var(--ptc-element-spacing-03);padding-left:50px}@media only screen and (min-width: 992px){:host([depth=\"2\"]) a{padding-left:0px}}:host([depth=\"1\"]) a{font-weight:var(--ptc-font-weight-bold);line-height:var(--ptc-line-height-dense);letter-spacing:var(--ptc-letter-spacing-dense);padding:20px 25px}:host([nav-type=secondary-nav]) a{font-size:var(--ptc-font-size-xxx-small);font-weight:var(--ptc-font-weight-thin)}:host([nav-type=language-nav]) a{font-size:var(--ptc-font-size-xxx-small);font-weight:var(--ptc-font-weight-thin)}@media only screen and (min-width: 992px){.primary-nav~.ptc-nav-children{position:absolute;left:0}.primary-nav~.ptc-nav-children ::slotted(.nav-tab){background-color:var(--color-gray-11);display:flex;width:100vw}.language-nav~.ptc-nav-children{position:absolute;background-color:var(--color-gray-11)}}a[aria-expanded=true]~.ptc-nav-children{padding-top:var(--ptc-element-spacing-04);max-height:2000px}@media only screen and (min-width: 992px){a[aria-expanded=true]~.ptc-nav-children{padding-top:0}}.ptc-nav-children{overflow:hidden;max-height:0;transition:max-height var(--ptc-transition-medium) var(--ptc-ease-inout), padding-top var(--ptc-transition-medium) var(--ptc-ease-inout)}a{color:var(--color-white);text-transform:uppercase;display:block;outline:none;text-decoration:none}";
|
|
4
4
|
|
|
5
|
-
let PtcNavItem = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.menuItemToggled = createEvent(this, "menuItemToggled", 7);
|
|
9
|
-
/**
|
|
10
|
-
* Link URL
|
|
11
|
-
*/
|
|
12
|
-
this.url = undefined;
|
|
13
|
-
/**
|
|
14
|
-
* Nav Description
|
|
15
|
-
*/
|
|
16
|
-
this.label = '';
|
|
17
|
-
/**
|
|
18
|
-
* If the current nav item is expanded
|
|
19
|
-
*/
|
|
20
|
-
this.ariaExpanded = false;
|
|
21
|
-
/**
|
|
22
|
-
* Depth of the current nav item
|
|
23
|
-
*/
|
|
24
|
-
this.depth = 0;
|
|
25
|
-
/**
|
|
26
|
-
* If the current nav item has children nav items
|
|
27
|
-
*/
|
|
28
|
-
this.hasChildren = false;
|
|
29
|
-
/**
|
|
30
|
-
* If the parent nav item of the current one is expanded
|
|
31
|
-
*/
|
|
32
|
-
this.parentExpanded = false;
|
|
33
|
-
/**
|
|
34
|
-
* Nav Item Type
|
|
35
|
-
*/
|
|
36
|
-
this.navType = undefined;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Watch
|
|
40
|
-
*/
|
|
41
|
-
expandedHandler(newValue) {
|
|
42
|
-
const children = Array.prototype.slice.call(this.el.children);
|
|
43
|
-
children.forEach(child => {
|
|
44
|
-
child.parentExpanded = newValue;
|
|
45
|
-
});
|
|
46
|
-
this.menuItemToggled.emit({ expanded: this.ariaExpanded });
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Event Listener
|
|
50
|
-
*/
|
|
51
|
-
handleClick(e) {
|
|
52
|
-
if (this.hasChildren) {
|
|
53
|
-
e.preventDefault();
|
|
54
|
-
this.ariaExpanded = !this.ariaExpanded;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
handleResize(ev) {
|
|
58
|
-
console.log('the body was scrolled', ev);
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Lifecycle method
|
|
62
|
-
*/
|
|
63
|
-
componentWillRender() {
|
|
64
|
-
this.hasChildren = !!this.el.hasChildNodes();
|
|
65
|
-
let parentMenu = this.el.closest('ptc-nav-item');
|
|
66
|
-
let nextParentMenu;
|
|
67
|
-
this.depth = 0;
|
|
68
|
-
while (parentMenu) {
|
|
69
|
-
nextParentMenu = parentMenu.parentElement.closest('ptc-nav-item');
|
|
70
|
-
if (nextParentMenu === parentMenu) {
|
|
71
|
-
break;
|
|
72
|
-
}
|
|
73
|
-
else {
|
|
74
|
-
parentMenu = nextParentMenu;
|
|
75
|
-
this.depth = this.depth + 1;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
render() {
|
|
80
|
-
//const leftIndent = this.depth > 1 ? 25 * this.depth + 'px' : '25px';
|
|
81
|
-
return (h(Host, { role: "none" }, h("a", { role: "menuitem", href: this.url, tabIndex: this.parentExpanded || this.depth === 1 ? 0 : -1, "aria-depth": this.depth, "aria-haspopup": this.hasChildren.toString(), "aria-expanded": this.hasChildren ? this.ariaExpanded.toString() : this.ariaExpanded, onClick: e => this.handleClick(e), class: this.navType }, h("span", null, this.label)), this.hasChildren && (h("div", { class: "ptc-nav-children", role: "menu", part: this.navType, "aria-label": this.label }, h("slot", null)))));
|
|
82
|
-
}
|
|
83
|
-
get el() { return getElement(this); }
|
|
84
|
-
static get watchers() { return {
|
|
85
|
-
"ariaExpanded": ["expandedHandler"]
|
|
86
|
-
}; }
|
|
87
|
-
};
|
|
5
|
+
let PtcNavItem = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.menuItemToggled = createEvent(this, "menuItemToggled", 7);
|
|
9
|
+
/**
|
|
10
|
+
* Link URL
|
|
11
|
+
*/
|
|
12
|
+
this.url = undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Nav Description
|
|
15
|
+
*/
|
|
16
|
+
this.label = '';
|
|
17
|
+
/**
|
|
18
|
+
* If the current nav item is expanded
|
|
19
|
+
*/
|
|
20
|
+
this.ariaExpanded = false;
|
|
21
|
+
/**
|
|
22
|
+
* Depth of the current nav item
|
|
23
|
+
*/
|
|
24
|
+
this.depth = 0;
|
|
25
|
+
/**
|
|
26
|
+
* If the current nav item has children nav items
|
|
27
|
+
*/
|
|
28
|
+
this.hasChildren = false;
|
|
29
|
+
/**
|
|
30
|
+
* If the parent nav item of the current one is expanded
|
|
31
|
+
*/
|
|
32
|
+
this.parentExpanded = false;
|
|
33
|
+
/**
|
|
34
|
+
* Nav Item Type
|
|
35
|
+
*/
|
|
36
|
+
this.navType = undefined;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Watch
|
|
40
|
+
*/
|
|
41
|
+
expandedHandler(newValue) {
|
|
42
|
+
const children = Array.prototype.slice.call(this.el.children);
|
|
43
|
+
children.forEach(child => {
|
|
44
|
+
child.parentExpanded = newValue;
|
|
45
|
+
});
|
|
46
|
+
this.menuItemToggled.emit({ expanded: this.ariaExpanded });
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Event Listener
|
|
50
|
+
*/
|
|
51
|
+
handleClick(e) {
|
|
52
|
+
if (this.hasChildren) {
|
|
53
|
+
e.preventDefault();
|
|
54
|
+
this.ariaExpanded = !this.ariaExpanded;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
handleResize(ev) {
|
|
58
|
+
console.log('the body was scrolled', ev);
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Lifecycle method
|
|
62
|
+
*/
|
|
63
|
+
componentWillRender() {
|
|
64
|
+
this.hasChildren = !!this.el.hasChildNodes();
|
|
65
|
+
let parentMenu = this.el.closest('ptc-nav-item');
|
|
66
|
+
let nextParentMenu;
|
|
67
|
+
this.depth = 0;
|
|
68
|
+
while (parentMenu) {
|
|
69
|
+
nextParentMenu = parentMenu.parentElement.closest('ptc-nav-item');
|
|
70
|
+
if (nextParentMenu === parentMenu) {
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
parentMenu = nextParentMenu;
|
|
75
|
+
this.depth = this.depth + 1;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
render() {
|
|
80
|
+
//const leftIndent = this.depth > 1 ? 25 * this.depth + 'px' : '25px';
|
|
81
|
+
return (h(Host, { role: "none" }, h("a", { role: "menuitem", href: this.url, tabIndex: this.parentExpanded || this.depth === 1 ? 0 : -1, "aria-depth": this.depth, "aria-haspopup": this.hasChildren.toString(), "aria-expanded": this.hasChildren ? this.ariaExpanded.toString() : this.ariaExpanded, onClick: e => this.handleClick(e), class: this.navType }, h("span", null, this.label)), this.hasChildren && (h("div", { class: "ptc-nav-children", role: "menu", part: this.navType, "aria-label": this.label }, h("slot", null)))));
|
|
82
|
+
}
|
|
83
|
+
get el() { return getElement(this); }
|
|
84
|
+
static get watchers() { return {
|
|
85
|
+
"ariaExpanded": ["expandedHandler"]
|
|
86
|
+
}; }
|
|
87
|
+
};
|
|
88
88
|
PtcNavItem.style = ptcNavItemCss;
|
|
89
89
|
|
|
90
90
|
export { PtcNavItem as ptc_nav_item };
|