@ptcwebops/ptcw-design 0.9.1 → 0.9.2
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/bundle-example.cjs.entry.js +26 -0
- package/dist/cjs/dropdown-item.cjs.entry.js +10 -10
- package/dist/cjs/icon-asset.cjs.entry.js +42 -42
- 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/max-width-container.cjs.entry.js +29 -29
- package/dist/cjs/my-component.cjs.entry.js +15 -15
- package/dist/cjs/ptc-accordion-item.cjs.entry.js +84 -84
- package/dist/cjs/ptc-accordion.cjs.entry.js +35 -35
- package/dist/cjs/ptc-announcement.cjs.entry.js +50 -50
- package/dist/cjs/ptc-background-video.cjs.entry.js +16 -16
- package/dist/cjs/ptc-breadcrumb.cjs.entry.js +12 -12
- package/dist/cjs/ptc-button.cjs.entry.js +35 -35
- package/dist/cjs/ptc-card-bottom_3.cjs.entry.js +151 -0
- package/dist/cjs/ptc-card-content.cjs.entry.js +50 -50
- package/dist/cjs/ptc-card_6.cjs.entry.js +442 -442
- package/dist/cjs/ptc-checkbox.cjs.entry.js +33 -33
- package/dist/cjs/ptc-collapse-list.cjs.entry.js +346 -346
- package/dist/cjs/ptc-container.cjs.entry.js +32 -32
- package/dist/cjs/ptc-dropdown.cjs.entry.js +64 -64
- package/dist/cjs/ptc-dynamic-card.cjs.entry.js +46 -46
- package/dist/cjs/ptc-ellipsis-dropdown.cjs.entry.js +38 -38
- package/dist/cjs/ptc-filter-tag.cjs.entry.js +57 -57
- package/dist/cjs/ptc-hero-footer-cta.cjs.entry.js +11 -11
- package/dist/cjs/ptc-hero.cjs.entry.js +18 -18
- package/dist/cjs/ptc-icon-list.cjs.entry.js +21 -21
- package/dist/cjs/ptc-icon-minimize.cjs.entry.js +36 -36
- package/dist/cjs/ptc-link.cjs.entry.js +28 -28
- package/dist/cjs/ptc-list.cjs.entry.js +49 -49
- package/dist/cjs/ptc-lottie.cjs.entry.js +10 -10
- package/dist/cjs/ptc-media-card.cjs.entry.js +24 -24
- 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 +53 -53
- package/dist/cjs/ptc-modal.cjs.entry.js +143 -143
- package/dist/cjs/ptc-overlay.cjs.entry.js +23 -23
- package/dist/cjs/ptc-pagenation.cjs.entry.js +105 -105
- package/dist/cjs/ptc-previous-url.cjs.entry.js +10 -10
- package/dist/cjs/ptc-pricing-block.cjs.entry.js +20 -20
- package/dist/cjs/ptc-pricing-options-component.cjs.entry.js +22 -22
- package/dist/cjs/ptc-quote.cjs.entry.js +23 -23
- package/dist/cjs/ptc-readmore_2.cjs.entry.js +109 -109
- package/dist/cjs/ptc-responsive-wrapper.cjs.entry.js +54 -54
- package/dist/cjs/ptc-search-field.cjs.entry.js +43 -36
- package/dist/cjs/ptc-shopping-cart.cjs.entry.js +50 -50
- package/dist/cjs/ptc-social-share.cjs.entry.js +59 -59
- package/dist/cjs/ptc-span.cjs.entry.js +18 -18
- package/dist/cjs/ptc-sticky-icons.cjs.entry.js +32 -32
- package/dist/cjs/ptc-svg-btn.cjs.entry.js +73 -73
- package/dist/cjs/ptc-tab-list.cjs.entry.js +125 -125
- package/dist/cjs/ptc-tab.cjs.entry.js +20 -20
- package/dist/cjs/ptc-tabs.cjs.entry.js +47 -47
- package/dist/cjs/ptc-text-copy-with-background.cjs.entry.js +27 -27
- package/dist/cjs/ptc-title.cjs.entry.js +67 -67
- package/dist/cjs/ptc-two-column-media.cjs.entry.js +15 -15
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/cjs/tab-content.cjs.entry.js +27 -27
- package/dist/cjs/tab-header.cjs.entry.js +45 -45
- package/dist/cjs/{utils-416c94fe.js → utils-9eb22041.js} +90 -90
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/bundle-example/bundle-example.css +6 -0
- package/dist/collection/components/bundle-example/bundle-example.js +32 -0
- package/dist/collection/components/dropdown-item/dropdown-item.js +61 -61
- 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 +387 -387
- 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 +107 -107
- package/dist/collection/components/max-width-container/max-width-container.css +7 -7
- package/dist/collection/components/max-width-container/max-width-container.js +80 -80
- package/dist/collection/components/my-component/my-component.css +3 -3
- package/dist/collection/components/my-component/my-component.js +82 -82
- package/dist/collection/components/ptc-accordion/ptc-accordion-item/ptc-accordion-item.css +2 -5
- package/dist/collection/components/ptc-accordion/ptc-accordion-item/ptc-accordion-item.js +287 -287
- package/dist/collection/components/ptc-accordion/ptc-accordion.js +78 -78
- package/dist/collection/components/ptc-announcement/ptc-announcement.js +238 -238
- package/dist/collection/components/ptc-background-video/ptc-background-video.js +102 -102
- package/dist/collection/components/ptc-breadcrumb/ptc-breadcrumb.js +22 -22
- package/dist/collection/components/ptc-button/ptc-button.js +283 -283
- package/dist/collection/components/ptc-card/ptc-card.css +20 -20
- package/dist/collection/components/ptc-card/ptc-card.js +344 -344
- package/dist/collection/components/ptc-card-bottom/ptc-card-bottom.js +116 -116
- package/dist/collection/components/ptc-card-content/ptc-card-content.js +187 -187
- package/dist/collection/components/ptc-card-wrapper/ptc-card-wrapper.js +197 -197
- package/dist/collection/components/ptc-checkbox/ptc-checkbox.js +118 -118
- package/dist/collection/components/ptc-collapse-list/ptc-collapse-list.js +586 -586
- package/dist/collection/components/ptc-container/ptc-container.js +120 -120
- package/dist/collection/components/ptc-date/ptc-date.js +190 -190
- package/dist/collection/components/ptc-dropdown/ptc-dropdown.js +162 -162
- package/dist/collection/components/ptc-dynamic-card/media/nav-active-dotslick.svg +15 -15
- package/dist/collection/components/ptc-dynamic-card/ptc-dynamic-card.js +182 -182
- package/dist/collection/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.js +122 -122
- package/dist/collection/components/ptc-filter-tag/ptc-filter-tag.js +113 -113
- package/dist/collection/components/ptc-hero/ptc-hero.js +86 -86
- package/dist/collection/components/ptc-hero-footer-cta/ptc-hero-footer-cta.js +78 -78
- package/dist/collection/components/ptc-icon-list/ptc-icon-list.js +127 -127
- package/dist/collection/components/ptc-icon-minimize/ptc-icon-minimize.js +87 -87
- package/dist/collection/components/ptc-img/ptc-img.js +293 -293
- package/dist/collection/components/ptc-link/ptc-link.js +203 -203
- package/dist/collection/components/ptc-list/ptc-list.js +99 -99
- package/dist/collection/components/ptc-lottie/ptc-lottie.css +5 -5
- package/dist/collection/components/ptc-lottie/ptc-lottie.js +62 -62
- package/dist/collection/components/ptc-media-card/ptc-media-card.js +216 -216
- package/dist/collection/components/ptc-minimized-footer/ptc-minimized-footer.js +18 -18
- package/dist/collection/components/ptc-minimized-header/ptc-minimized-header.js +81 -81
- package/dist/collection/components/ptc-mobile-select/ptc-mobile-select.js +190 -190
- package/dist/collection/components/ptc-modal/ptc-modal.js +347 -347
- package/dist/collection/components/ptc-overlay/ptc-overlay.js +131 -131
- package/dist/collection/components/ptc-pagenation/ptc-pagenation.js +322 -322
- package/dist/collection/components/ptc-para/ptc-para.js +224 -224
- package/dist/collection/components/ptc-picture/ptc-picture.js +450 -450
- package/dist/collection/components/ptc-previous-url/ptc-previous-url.js +60 -60
- package/dist/collection/components/ptc-pricing-block/ptc-pricing-block.js +70 -70
- package/dist/collection/components/ptc-pricing-options-component/ptc-pricing-options-component.js +39 -39
- package/dist/collection/components/ptc-quote/ptc-quote.js +144 -144
- package/dist/collection/components/ptc-readmore/ptc-readmore.js +277 -277
- package/dist/collection/components/ptc-responsive-wrapper/ptc-responsive-wrapper.css +3 -3
- package/dist/collection/components/ptc-responsive-wrapper/ptc-responsive-wrapper.js +65 -65
- package/dist/collection/components/ptc-search-field/ptc-search-field.css +17 -0
- package/dist/collection/components/ptc-search-field/ptc-search-field.js +140 -116
- package/dist/collection/components/ptc-shopping-cart/ptc-shopping-cart.js +97 -97
- package/dist/collection/components/ptc-skeleton/ptc-skeleton.css +34 -0
- package/dist/collection/components/ptc-skeleton/ptc-skeleton.js +146 -0
- package/dist/collection/components/ptc-social-share/ptc-social-share.js +239 -239
- package/dist/collection/components/ptc-spacer/ptc-spacer.css +332 -332
- package/dist/collection/components/ptc-spacer/ptc-spacer.js +97 -97
- package/dist/collection/components/ptc-span/ptc-span.js +87 -87
- package/dist/collection/components/ptc-sticky-icons/ptc-sticky-icons.js +51 -51
- package/dist/collection/components/ptc-svg-btn/ptc-svg-btn.js +72 -72
- package/dist/collection/components/ptc-tab-list/ptc-tab-list.js +177 -177
- package/dist/collection/components/ptc-tabs/ptc-tab.js +121 -121
- package/dist/collection/components/ptc-tabs/ptc-tabs.js +104 -104
- package/dist/collection/components/ptc-text-copy-with-background/ptc-text-copy-with-background.js +166 -166
- package/dist/collection/components/ptc-title/ptc-title.js +310 -310
- package/dist/collection/components/ptc-tooltip/ptc-tooltip.js +228 -228
- package/dist/collection/components/ptc-two-column-media/ptc-two-column-media.js +48 -48
- package/dist/collection/components/tab-content/tab-content.js +84 -84
- package/dist/collection/components/tab-header/tab-header.js +136 -136
- 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 +92 -92
- package/dist/custom-elements/index.d.ts +12 -0
- package/dist/custom-elements/index.js +3624 -3563
- package/dist/esm/bundle-example.entry.js +22 -0
- package/dist/esm/dropdown-item.entry.js +10 -10
- package/dist/esm/icon-asset.entry.js +42 -42
- package/dist/esm/list-item.entry.js +19 -19
- package/dist/esm/loader.js +1 -1
- package/dist/esm/lottie-player.entry.js +354 -354
- package/dist/esm/max-width-container.entry.js +29 -29
- package/dist/esm/my-component.entry.js +15 -15
- 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 +84 -84
- package/dist/esm/ptc-accordion.entry.js +35 -35
- package/dist/esm/ptc-announcement.entry.js +50 -50
- package/dist/esm/ptc-background-video.entry.js +16 -16
- package/dist/esm/ptc-breadcrumb.entry.js +12 -12
- package/dist/esm/ptc-button.entry.js +35 -35
- package/dist/esm/ptc-card-bottom_3.entry.js +145 -0
- package/dist/esm/ptc-card-content.entry.js +50 -50
- package/dist/esm/ptc-card_6.entry.js +442 -442
- package/dist/esm/ptc-checkbox.entry.js +33 -33
- package/dist/esm/ptc-collapse-list.entry.js +346 -346
- package/dist/esm/ptc-container.entry.js +32 -32
- package/dist/esm/ptc-dropdown.entry.js +64 -64
- package/dist/esm/ptc-dynamic-card.entry.js +46 -46
- package/dist/esm/ptc-ellipsis-dropdown.entry.js +38 -38
- package/dist/esm/ptc-filter-tag.entry.js +57 -57
- package/dist/esm/ptc-hero-footer-cta.entry.js +11 -11
- package/dist/esm/ptc-hero.entry.js +18 -18
- package/dist/esm/ptc-icon-list.entry.js +21 -21
- package/dist/esm/ptc-icon-minimize.entry.js +36 -36
- package/dist/esm/ptc-link.entry.js +28 -28
- package/dist/esm/ptc-list.entry.js +49 -49
- package/dist/esm/ptc-lottie.entry.js +10 -10
- package/dist/esm/ptc-media-card.entry.js +24 -24
- package/dist/esm/ptc-minimized-footer.entry.js +8 -8
- package/dist/esm/ptc-minimized-header.entry.js +11 -11
- package/dist/esm/ptc-mobile-select.entry.js +53 -53
- package/dist/esm/ptc-modal.entry.js +143 -143
- package/dist/esm/ptc-overlay.entry.js +23 -23
- package/dist/esm/ptc-pagenation.entry.js +105 -105
- package/dist/esm/ptc-previous-url.entry.js +10 -10
- package/dist/esm/ptc-pricing-block.entry.js +20 -20
- package/dist/esm/ptc-pricing-options-component.entry.js +22 -22
- package/dist/esm/ptc-quote.entry.js +23 -23
- package/dist/esm/ptc-readmore_2.entry.js +109 -109
- package/dist/esm/ptc-responsive-wrapper.entry.js +54 -54
- package/dist/esm/ptc-search-field.entry.js +44 -37
- package/dist/esm/ptc-shopping-cart.entry.js +50 -50
- package/dist/esm/ptc-social-share.entry.js +59 -59
- package/dist/esm/ptc-span.entry.js +18 -18
- package/dist/esm/ptc-sticky-icons.entry.js +32 -32
- package/dist/esm/ptc-svg-btn.entry.js +73 -73
- package/dist/esm/ptc-tab-list.entry.js +125 -125
- package/dist/esm/ptc-tab.entry.js +20 -20
- package/dist/esm/ptc-tabs.entry.js +47 -47
- package/dist/esm/ptc-text-copy-with-background.entry.js +27 -27
- package/dist/esm/ptc-title.entry.js +67 -67
- package/dist/esm/ptc-two-column-media.entry.js +15 -15
- package/dist/esm/ptcw-design.js +1 -1
- package/dist/esm/tab-content.entry.js +27 -27
- package/dist/esm/tab-header.entry.js +45 -45
- package/dist/esm/{utils-f937097d.js → utils-38decc43.js} +90 -90
- package/dist/ptcw-design/media/brands.svg +1381 -1381
- package/dist/ptcw-design/media/designer.svg +387 -387
- package/dist/ptcw-design/media/nav-active-dotslick.svg +15 -15
- 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-294df3ac.entry.js +1 -0
- package/dist/ptcw-design/{p-163fcfc1.entry.js → p-4882c5fc.entry.js} +1 -1
- package/dist/ptcw-design/p-631238df.entry.js +1 -0
- package/dist/ptcw-design/{p-32b81dde.entry.js → p-8bcb2fab.entry.js} +1 -1
- package/dist/ptcw-design/{p-45c0076d.entry.js → p-b48a3e6f.entry.js} +1 -1
- package/dist/ptcw-design/{p-049964f4.entry.js → p-bbeb95bd.entry.js} +1 -1
- package/dist/ptcw-design/p-c177667e.entry.js +1 -0
- package/dist/ptcw-design/{p-8d210676.entry.js → p-fa17a02e.entry.js} +1 -1
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/bundle-example/bundle-example.d.ts +5 -0
- package/dist/types/components/dropdown-item/dropdown-item.d.ts +5 -5
- package/dist/types/components/icon-asset/icon-asset.d.ts +40 -40
- package/dist/types/components/list-item/list-item.d.ts +8 -8
- package/dist/types/components/max-width-container/max-width-container.d.ts +9 -9
- 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 +51 -51
- package/dist/types/components/ptc-background-video/ptc-background-video.d.ts +26 -26
- package/dist/types/components/ptc-breadcrumb/ptc-breadcrumb.d.ts +4 -4
- package/dist/types/components/ptc-button/ptc-button.d.ts +60 -60
- package/dist/types/components/ptc-card/ptc-card.d.ts +67 -67
- 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 +18 -18
- package/dist/types/components/ptc-card-wrapper/ptc-card-wrapper.d.ts +23 -23
- package/dist/types/components/ptc-checkbox/ptc-checkbox.d.ts +11 -11
- package/dist/types/components/ptc-collapse-list/ptc-collapse-list.d.ts +56 -56
- 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 +19 -19
- package/dist/types/components/ptc-dynamic-card/ptc-dynamic-card.d.ts +24 -24
- package/dist/types/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.d.ts +12 -12
- package/dist/types/components/ptc-filter-tag/ptc-filter-tag.d.ts +17 -17
- package/dist/types/components/ptc-hero/ptc-hero.d.ts +16 -16
- 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 +40 -40
- package/dist/types/components/ptc-list/ptc-list.d.ts +8 -8
- package/dist/types/components/ptc-lottie/ptc-lottie.d.ts +12 -12
- package/dist/types/components/ptc-media-card/ptc-media-card.d.ts +45 -45
- 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 +36 -36
- package/dist/types/components/ptc-modal/ptc-modal.d.ts +59 -59
- package/dist/types/components/ptc-overlay/ptc-overlay.d.ts +21 -21
- package/dist/types/components/ptc-pagenation/ptc-pagenation.d.ts +27 -27
- package/dist/types/components/ptc-para/ptc-para.d.ts +43 -43
- 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 +7 -7
- package/dist/types/components/ptc-pricing-options-component/ptc-pricing-options-component.d.ts +6 -6
- package/dist/types/components/ptc-quote/ptc-quote.d.ts +29 -29
- package/dist/types/components/ptc-readmore/ptc-readmore.d.ts +56 -56
- package/dist/types/components/ptc-responsive-wrapper/ptc-responsive-wrapper.d.ts +8 -8
- package/dist/types/components/ptc-search-field/ptc-search-field.d.ts +14 -12
- package/dist/types/components/ptc-shopping-cart/ptc-shopping-cart.d.ts +6 -6
- package/dist/types/components/ptc-skeleton/ptc-skeleton.d.ts +10 -0
- package/dist/types/components/ptc-social-share/ptc-social-share.d.ts +33 -33
- 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-sticky-icons/ptc-sticky-icons.d.ts +7 -7
- 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 +19 -19
- package/dist/types/components/ptc-tabs/ptc-tab.d.ts +9 -9
- package/dist/types/components/ptc-tabs/ptc-tabs.d.ts +10 -10
- package/dist/types/components/ptc-text-copy-with-background/ptc-text-copy-with-background.d.ts +33 -33
- package/dist/types/components/ptc-title/ptc-title.d.ts +54 -54
- package/dist/types/components/ptc-tooltip/ptc-tooltip.d.ts +42 -42
- 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 +14 -14
- package/dist/types/components.d.ts +148 -108
- 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 +31 -31
- package/dist/types/utils/utils.d.ts +5 -5
- package/package.json +61 -61
- package/readme.md +18 -18
- package/dist/cjs/ptc-card-bottom.cjs.entry.js +0 -46
- package/dist/cjs/ptc-card-wrapper.cjs.entry.js +0 -83
- package/dist/esm/ptc-card-bottom.entry.js +0 -42
- package/dist/esm/ptc-card-wrapper.entry.js +0 -79
- package/dist/ptcw-design/p-20cc9c39.entry.js +0 -1
- package/dist/ptcw-design/p-5f20876d.entry.js +0 -1
- package/dist/ptcw-design/p-a5f20c41.entry.js +0 -1
- /package/dist/ptcw-design/{p-ea875d9e.js → p-36665caa.js} +0 -0
|
@@ -2,28 +2,28 @@ import { r as registerInstance, h, H as Host } from './index-40bc29fc.js';
|
|
|
2
2
|
|
|
3
3
|
const ptcPricingOptionsComponentCss = ":host{display:block;margin-top:var(--ptc-element-spacing-03)}:host #tabs p.active{background-color:var(--color-gray-12);color:var(--color-white)}:host .ptc-pricing-block{width:100%;background-color:var(--color-gray-02);border-radius:var(--ptc-border-radius-standard);font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-small);font-weight:var(--ptc-font-weight-medium);line-height:var(--ptc-line-height-dense);display:block;transition:background-color var(--ptc-ease-inout) var(--ptc-transition-medium)}:host .ptc-pricing-block.active{background-color:var(--color-gray-12);color:var(--color-white)}:host .ptc-pricing-block:hover:not(.active){background-color:var(--color-gray-03)}:host .right-text{font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-small);font-weight:var(--ptc-font-weight-extrabold);line-height:var(--ptc-line-height-dense);text-align:right;float:right;margin:15px 20px 15px 15px;display:block}:host .left-text{font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-small);font-weight:var(--ptc-font-weight-medium);line-height:var(--ptc-line-height-dense);text-align:left;margin:15px 15px 15px 20px;display:inline-block}:host div .panel-right{text-align:center;background:#FFFFFF;border:1px solid #E4E7E9;border-radius:4px;padding:32px 50px;min-height:267px;display:flex;align-content:center;align-items:center}";
|
|
4
4
|
|
|
5
|
-
const ptcPricingOptionsComponent = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.showOptions = undefined;
|
|
9
|
-
}
|
|
10
|
-
onContentChange(content) {
|
|
11
|
-
this.showOptions = content === 'Content 2';
|
|
12
|
-
}
|
|
13
|
-
render() {
|
|
14
|
-
const classMap = this.getCssClassMap();
|
|
15
|
-
let selectedOption = h("slot", null);
|
|
16
|
-
if (this.showOptions) {
|
|
17
|
-
selectedOption = (h("div", { class: "is-col-6-md is-col-12 panel-right" }, h("div", { class: "panel-content" }, h("ptc-para", { "font-size": "small", "font-weight": "w-5", "para-margin": "margin-flush", "para-style": "main" }, "1-500 Tags"), h("ptc-title", { type: 'h2', "text-align": 'center', upperline: "no-upperline", "title-size": "xxx-large", "title-weight": "w-8", styles: "H2 { margin-top:0 !important}" }, "$2,968/yr"), h("ptc-para", { "font-size": "xx-small", "font-weight": "w-6", "para-margin": "margin-2", "para-style": "main", "para-line-h": "line-height-denser" }, "Pay an annual fee to use the software. Support & Maintenance is included."), h("ptc-button", { type: "link", color: "ptc-quaternary", "link-href": "https://www.ptc.com", target: "_blank" }, "Add to Cart"))));
|
|
18
|
-
}
|
|
19
|
-
return (h(Host, null, h("div", { class: classMap }, h("div", null, selectedOption), h("section", { id: "tabs" }, h("ptc-pricing-block", { class: !this.showOptions ? 'active' : '', onClick: this.onContentChange.bind(this, 'Content 1') }, h("span", { slot: "left-text" }, "1-500 Tags"), h("span", { slot: "right-text" }, "$990/yr")), h("ptc-pricing-block", { class: !this.showOptions ? 'active' : '', onClick: this.onContentChange.bind(this, 'Content 2') }, h("span", { slot: "left-text" }, "501-5000 Tags"), h("span", { slot: "right-text" }, "$1,450/yr")), h("ptc-pricing-block", { class: !this.showOptions ? 'active' : '', onClick: this.onContentChange.bind(this, 'Content 3') }, h("span", { slot: "left-text" }, "5002+ Tags"), h("span", { slot: "right-text" }, "$2,968/yr"))))));
|
|
20
|
-
}
|
|
21
|
-
getCssClassMap() {
|
|
22
|
-
return {
|
|
23
|
-
['ptc-pricing-options-components']: true
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
};
|
|
5
|
+
const ptcPricingOptionsComponent = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.showOptions = undefined;
|
|
9
|
+
}
|
|
10
|
+
onContentChange(content) {
|
|
11
|
+
this.showOptions = content === 'Content 2';
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
const classMap = this.getCssClassMap();
|
|
15
|
+
let selectedOption = h("slot", null);
|
|
16
|
+
if (this.showOptions) {
|
|
17
|
+
selectedOption = (h("div", { class: "is-col-6-md is-col-12 panel-right" }, h("div", { class: "panel-content" }, h("ptc-para", { "font-size": "small", "font-weight": "w-5", "para-margin": "margin-flush", "para-style": "main" }, "1-500 Tags"), h("ptc-title", { type: 'h2', "text-align": 'center', upperline: "no-upperline", "title-size": "xxx-large", "title-weight": "w-8", styles: "H2 { margin-top:0 !important}" }, "$2,968/yr"), h("ptc-para", { "font-size": "xx-small", "font-weight": "w-6", "para-margin": "margin-2", "para-style": "main", "para-line-h": "line-height-denser" }, "Pay an annual fee to use the software. Support & Maintenance is included."), h("ptc-button", { type: "link", color: "ptc-quaternary", "link-href": "https://www.ptc.com", target: "_blank" }, "Add to Cart"))));
|
|
18
|
+
}
|
|
19
|
+
return (h(Host, null, h("div", { class: classMap }, h("div", null, selectedOption), h("section", { id: "tabs" }, h("ptc-pricing-block", { class: !this.showOptions ? 'active' : '', onClick: this.onContentChange.bind(this, 'Content 1') }, h("span", { slot: "left-text" }, "1-500 Tags"), h("span", { slot: "right-text" }, "$990/yr")), h("ptc-pricing-block", { class: !this.showOptions ? 'active' : '', onClick: this.onContentChange.bind(this, 'Content 2') }, h("span", { slot: "left-text" }, "501-5000 Tags"), h("span", { slot: "right-text" }, "$1,450/yr")), h("ptc-pricing-block", { class: !this.showOptions ? 'active' : '', onClick: this.onContentChange.bind(this, 'Content 3') }, h("span", { slot: "left-text" }, "5002+ Tags"), h("span", { slot: "right-text" }, "$2,968/yr"))))));
|
|
20
|
+
}
|
|
21
|
+
getCssClassMap() {
|
|
22
|
+
return {
|
|
23
|
+
['ptc-pricing-options-components']: true
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
27
|
ptcPricingOptionsComponent.style = ptcPricingOptionsComponentCss;
|
|
28
28
|
|
|
29
29
|
export { ptcPricingOptionsComponent as ptc_pricing_options_component };
|
|
@@ -4,29 +4,29 @@ const QuotationMark = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48.1
|
|
|
4
4
|
|
|
5
5
|
const ptcQuoteCss = ":host{display:flex;width:100%;position:relative;overflow:hidden;flex-direction:column;flex-wrap:nowrap;align-items:center;justify-content:flex-start}:host(.image-quote) .quote-media{position:relative;flex-basis:auto}:host(.image-quote) .quote-media img{width:100%}:host(.image-quote) .quote-media .our-leadership{width:89%;padding:var(--ptc-element-spacing-04) var(--ptc-element-spacing-04) var(--ptc-element-spacing-02) var(--ptc-element-spacing-04);top:0px;margin:0px auto;display:flex;position:relative;box-shadow:var(--ptc-shadow-large);background-color:var(--color-white);transform:translateY(-50%)}:host(.image-quote) .quote-media .our-leadership p{font-size:var(--ptc-font-size-x-small);font-weight:var(--ptc-font-weight-black);color:var(--color-gray-10);line-height:var(--ptc-line-height-p);letter-spacing:var(--ptc-letter-spacing-loose);margin-block-end:0;margin-block-start:0}:host(.image-quote) .quote-media .our-leadership .line{height:2px;width:82%;position:absolute;top:20%}:host(.image-quote) .quote-media .our-leadership .line .green-line{width:30%;height:2px;background-color:var(--color-green-05);display:inline-block;position:absolute}:host(.image-quote) .quote-media .our-leadership .line .grey-line{width:70%;height:1px;background-color:var(--color-gray-03);display:inline-block;position:absolute;left:30%}:host(.image-quote) .quote-content{flex-basis:auto;display:flex;flex-flow:column nowrap}:host(.image-quote) .quote-content .quotemarks{flex-basis:7%;width:15%;margin-bottom:var(--ptc-element-spacing-03);max-width:2.5rem}:host(.image-quote) .quote-content blockquote{flex-basis:93%;margin-block-start:calc(-1 * var(--ptc-element-spacing-04));margin-inline-start:0;margin-inline-end:0}:host(.image-quote) .quote-content blockquote p{font-weight:var(--ptc-font-weight-medium);font-size:var(--ptc-font-size-x-small);line-height:var(--ptc-line-height-p);font-style:var(--ptc-font-style-italic);color:var(--color-gray-10);letter-spacing:var(--ptc-letter-spacing-loose);margin:var(--ptc-element-spacing-04) 0}:host(.image-quote) .quote-content .quote-name{display:block;margin-bottom:var(--ptc-element-spacing-07);font-size:var(--ptc-font-size-x-small);font-weight:var(--ptc-font-weight-medium)}@media only screen and (min-width: 768px){:host(.image-quote) .quote-media .our-leadership{width:65%;padding:var(--ptc-element-spacing-06) var(--ptc-element-spacing-06) var(--ptc-element-spacing-03) var(--ptc-element-spacing-06);transform:translateY(-25%)}:host(.image-quote) .quote-media .our-leadership p{font-size:var(--ptc-font-size-large)}:host(.image-quote) .quote-content .quotemarks{width:10%}:host(.image-quote) .quote-content blockquote p{font-size:var(--ptc-font-size-medium);letter-spacing:var(--ptc-letter-spacing-normal)}:host(.image-quote) .quote-content .quote-name{font-size:var(--ptc-font-size-medium);letter-spacing:var(--ptc-letter-spacing-normal)}}@media only screen and (min-width: 992px){:host(.image-quote) .quote-content{margin-right:5%;margin-left:5%}:host(.image-quote) .quote-content blockquote p{font-size:var(--ptc-font-size-large)}:host(.image-quote) .quote-content .quote-name{font-size:var(--ptc-font-size-large)}}@media only screen and (min-width: 1200px){:host(.image-quote){flex-direction:row}:host(.image-quote) .quote-media{flex-basis:40%;padding:unset;margin:var(--ptc-layout-spacing-05) 0px 0px calc(var(--ptc-layout-spacing-06) * 2);padding-right:var(--ptc-element-spacing-08)}:host(.image-quote) .quote-media .our-leadership{width:78%;transform:translateY(-50%)}:host(.image-quote) .quote-media .our-leadership .line{top:18%}:host(.image-quote) .quote-content{flex-basis:58%;flex-flow:row nowrap;margin-left:unset;margin-right:unset}:host(.image-quote) .quote-content .quotemarks{flex-basis:8%;margin-right:var(--ptc-element-spacing-03)}}:host(.plain-quote) blockquote{margin:0 auto;padding:0 0 var(--ptc-element-spacing-04) var(--ptc-element-spacing-04);border-left:5px solid var(--color-green-05)}:host(.plain-quote) blockquote p{font-weight:var(--ptc-font-weight-regular);font-size:var(--ptc-font-size-medium);line-height:var(--ptc-line-height-p);font-style:var(--ptc-font-style-italic);color:var(--color-gray-10);margin:var(--ptc-element-spacing-04) 0}:host(.plain-quote) .quote-content{flex-basis:auto}:host(.plain-quote) .quote-content .quote-name{display:block;margin-bottom:var(--ptc-element-spacing-07);font-size:var(--ptc-font-size-x-small)}";
|
|
6
6
|
|
|
7
|
-
const PtcQuote = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
registerInstance(this, hostRef);
|
|
10
|
-
this.quoteType = "image-quote";
|
|
11
|
-
this.quoteName = 'John Smith';
|
|
12
|
-
this.ctaText = undefined;
|
|
13
|
-
this.ctaUrl = undefined;
|
|
14
|
-
this.imgSrc = undefined;
|
|
15
|
-
this.imgTitle = undefined;
|
|
16
|
-
}
|
|
17
|
-
getImageTitle() {
|
|
18
|
-
return (h("div", { class: "our-leadership" }, h("div", { class: "line" }, h("div", { class: "green-line" }), h("div", { class: "grey-line" })), h("p", null, this.imgTitle)));
|
|
19
|
-
}
|
|
20
|
-
render() {
|
|
21
|
-
const classMap = this.getCssClassMap();
|
|
22
|
-
return (h(Host, { class: classMap }, this.imgSrc ? (h("div", { class: "quote-media" }, this.imgSrc ? h("img", { src: this.imgSrc, alt: this.imgTitle ? this.imgTitle : 'quote Image' }) : null, this.imgTitle ? this.getImageTitle() : null)) : null, h("div", { class: "quote-content" }, this.quoteType == 'image-quote' ? h("div", { class: 'quotemarks', innerHTML: QuotationMark }) : null, h("blockquote", null, h("p", null, h("slot", null)), h("span", { class: "quote-name" }, this.quoteName ? this.quoteName : null), this.ctaText && this.ctaUrl ? (h("ptc-button", { type: "link", color: "ptc-secondary", "link-href": this.ctaUrl }, this.ctaText)) : null))));
|
|
23
|
-
}
|
|
24
|
-
getCssClassMap() {
|
|
25
|
-
return {
|
|
26
|
-
[this.quoteType]: true
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
};
|
|
7
|
+
const PtcQuote = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
registerInstance(this, hostRef);
|
|
10
|
+
this.quoteType = "image-quote";
|
|
11
|
+
this.quoteName = 'John Smith';
|
|
12
|
+
this.ctaText = undefined;
|
|
13
|
+
this.ctaUrl = undefined;
|
|
14
|
+
this.imgSrc = undefined;
|
|
15
|
+
this.imgTitle = undefined;
|
|
16
|
+
}
|
|
17
|
+
getImageTitle() {
|
|
18
|
+
return (h("div", { class: "our-leadership" }, h("div", { class: "line" }, h("div", { class: "green-line" }), h("div", { class: "grey-line" })), h("p", null, this.imgTitle)));
|
|
19
|
+
}
|
|
20
|
+
render() {
|
|
21
|
+
const classMap = this.getCssClassMap();
|
|
22
|
+
return (h(Host, { class: classMap }, this.imgSrc ? (h("div", { class: "quote-media" }, this.imgSrc ? h("img", { src: this.imgSrc, alt: this.imgTitle ? this.imgTitle : 'quote Image' }) : null, this.imgTitle ? this.getImageTitle() : null)) : null, h("div", { class: "quote-content" }, this.quoteType == 'image-quote' ? h("div", { class: 'quotemarks', innerHTML: QuotationMark }) : null, h("blockquote", null, h("p", null, h("slot", null)), h("span", { class: "quote-name" }, this.quoteName ? this.quoteName : null), this.ctaText && this.ctaUrl ? (h("ptc-button", { type: "link", color: "ptc-secondary", "link-href": this.ctaUrl }, this.ctaText)) : null))));
|
|
23
|
+
}
|
|
24
|
+
getCssClassMap() {
|
|
25
|
+
return {
|
|
26
|
+
[this.quoteType]: true
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
30
|
PtcQuote.style = ptcQuoteCss;
|
|
31
31
|
|
|
32
32
|
export { PtcQuote as ptc_quote };
|
|
@@ -2,119 +2,119 @@ import { r as registerInstance, h, H as Host, g as getElement } from './index-40
|
|
|
2
2
|
|
|
3
3
|
const ptcReadmoreCss = ":host{display:block}.box input{opacity:0;position:absolute;pointer-events:none}.box .read-more-text{display:-webkit-box;-webkit-box-orient:vertical;margin:0;overflow:hidden}.box .line1{-webkit-line-clamp:1}.box .line2{-webkit-line-clamp:2}.box .line3{-webkit-line-clamp:3}.box .line4{-webkit-line-clamp:4}.box .line5{-webkit-line-clamp:5}.box .line10{-webkit-line-clamp:10}.box input~label{display:block;position:relative;cursor:pointer;right:0;margin-top:var(--ptc-element-spacing-02);font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-x-small);line-height:var(--ptc-line-height-densest);text-decoration-line:underline;color:var(--color-blue-07);text-align:right;margin-right:var(--ptc-element-spacing-07)}.box .z-auto{z-index:auto}.box .z-1{z-index:1}.box .z-2{z-index:2}.box .z-3{z-index:3}.box .z-999{z-index:999}.box input:checked+.read-more-text{-webkit-line-clamp:unset !important}.box .read-more-text:not(.truncated)~label{display:none}.box .show-less-cta{display:block !important}:host .box.add-icon .read-more-cta-label span{display:inline-block;position:relative;padding-right:var(--ptc-element-spacing-03)}:host .box.add-icon .read-more-cta-label span::after{content:\"\";background-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 10 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2300890B' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E\");width:10px;height:7px;background-size:cover;position:absolute;right:-5px;bottom:7px}:host .box.add-icon .read-more-cta-label.show-less-cta span::after{transform:rotate(180deg)}:host .box.blue .read-more-cta-label{color:var(--color-blue-07)}:host .box.gray .read-more-cta-label{color:var(--color-gray-10)}:host .box.green .read-more-cta-label{color:var(--color-green-07)}:host .box.initial .read-more-cta-label{color:initial}:host .box.small .read-more-cta-label{font-size:var(--ptc-font-size-x-small);line-height:var(--ptc-line-height-densest)}:host .box.medium .read-more-cta-label{font-size:var(--ptc-font-size-small);line-height:var(--ptc-line-height-p)}:host .box.large .read-more-cta-label{font-size:var(--ptc-font-size-large);line-height:var(--ptc-line-height-p)}:host .box.large.add-icon .read-more-cta-label span{padding-right:var(--ptc-element-spacing-04)}:host .box.large.add-icon .read-more-cta-label span::after{width:15px;height:10px}";
|
|
4
4
|
|
|
5
|
-
const PtcReadmore = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.moreText = 'read more';
|
|
9
|
-
this.lessText = undefined;
|
|
10
|
-
this.readMorePosition = 'right';
|
|
11
|
-
this.display = 'inline';
|
|
12
|
-
this.visibleLines = 'line2';
|
|
13
|
-
this.visibleLinesCustom = undefined;
|
|
14
|
-
this.zIndex = 'z-auto';
|
|
15
|
-
this.checked = false;
|
|
16
|
-
this.size = 'small';
|
|
17
|
-
this.isIcon = false;
|
|
18
|
-
this.color = 'blue';
|
|
19
|
-
}
|
|
20
|
-
addBtnTruncated() {
|
|
21
|
-
const appRoot = this.el.shadowRoot;
|
|
22
|
-
const ps = appRoot.querySelectorAll('.read-more-text');
|
|
23
|
-
ps.forEach(p => {
|
|
24
|
-
p.classList[p.scrollHeight > p.clientHeight ? 'add' : 'remove']('truncated');
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
componentDidLoad() {
|
|
28
|
-
this.addBtnTruncated();
|
|
29
|
-
}
|
|
30
|
-
// click event handler
|
|
31
|
-
handleClick(event) {
|
|
32
|
-
this.addBtnTruncated();
|
|
33
|
-
// check if the input box is checked
|
|
34
|
-
this.checked = event.target.checked;
|
|
35
|
-
// Getting cta element
|
|
36
|
-
const cta = this.el.shadowRoot.querySelector('.read-more-cta-label');
|
|
37
|
-
// Updating the cta text
|
|
38
|
-
this.checked
|
|
39
|
-
? cta.innerHTML = `<span> ${this.lessText ? this.lessText : ''} </span>`
|
|
40
|
-
: cta.innerHTML = `<span> ${this.moreText ? this.moreText : ''}</span>`;
|
|
41
|
-
this.checked ? cta.classList.add('show-less-cta') : cta.classList.remove('show-less-cta');
|
|
42
|
-
}
|
|
43
|
-
render() {
|
|
44
|
-
const classMap = this.getCssClassMap();
|
|
45
|
-
return (h(Host, { class: this.display }, h("div", { class: classMap }, h("input", { type: "checkbox", id: "expanded", onClick: (e) => this.handleClick(e) }), h("p", { class: `read-more-text ${this.visibleLines}`, style: { WebkitLineClamp: `${this.visibleLinesCustom}` } }, h("slot", null)), h("label", { htmlFor: "expanded", role: "button", class: `${this.zIndex} read-more-cta-label`, style: { textAlign: `${this.readMorePosition}` } }, h("span", null, this.moreText)))));
|
|
46
|
-
}
|
|
47
|
-
getCssClassMap() {
|
|
48
|
-
return {
|
|
49
|
-
['box']: true,
|
|
50
|
-
[this.color]: true,
|
|
51
|
-
[this.size]: true,
|
|
52
|
-
['add-icon']: this.isIcon
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
get el() { return getElement(this); }
|
|
56
|
-
};
|
|
5
|
+
const PtcReadmore = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.moreText = 'read more';
|
|
9
|
+
this.lessText = undefined;
|
|
10
|
+
this.readMorePosition = 'right';
|
|
11
|
+
this.display = 'inline';
|
|
12
|
+
this.visibleLines = 'line2';
|
|
13
|
+
this.visibleLinesCustom = undefined;
|
|
14
|
+
this.zIndex = 'z-auto';
|
|
15
|
+
this.checked = false;
|
|
16
|
+
this.size = 'small';
|
|
17
|
+
this.isIcon = false;
|
|
18
|
+
this.color = 'blue';
|
|
19
|
+
}
|
|
20
|
+
addBtnTruncated() {
|
|
21
|
+
const appRoot = this.el.shadowRoot;
|
|
22
|
+
const ps = appRoot.querySelectorAll('.read-more-text');
|
|
23
|
+
ps.forEach(p => {
|
|
24
|
+
p.classList[p.scrollHeight > p.clientHeight ? 'add' : 'remove']('truncated');
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
componentDidLoad() {
|
|
28
|
+
this.addBtnTruncated();
|
|
29
|
+
}
|
|
30
|
+
// click event handler
|
|
31
|
+
handleClick(event) {
|
|
32
|
+
this.addBtnTruncated();
|
|
33
|
+
// check if the input box is checked
|
|
34
|
+
this.checked = event.target.checked;
|
|
35
|
+
// Getting cta element
|
|
36
|
+
const cta = this.el.shadowRoot.querySelector('.read-more-cta-label');
|
|
37
|
+
// Updating the cta text
|
|
38
|
+
this.checked
|
|
39
|
+
? cta.innerHTML = `<span> ${this.lessText ? this.lessText : ''} </span>`
|
|
40
|
+
: cta.innerHTML = `<span> ${this.moreText ? this.moreText : ''}</span>`;
|
|
41
|
+
this.checked ? cta.classList.add('show-less-cta') : cta.classList.remove('show-less-cta');
|
|
42
|
+
}
|
|
43
|
+
render() {
|
|
44
|
+
const classMap = this.getCssClassMap();
|
|
45
|
+
return (h(Host, { class: this.display }, h("div", { class: classMap }, h("input", { type: "checkbox", id: "expanded", onClick: (e) => this.handleClick(e) }), h("p", { class: `read-more-text ${this.visibleLines}`, style: { WebkitLineClamp: `${this.visibleLinesCustom}` } }, h("slot", null)), h("label", { htmlFor: "expanded", role: "button", class: `${this.zIndex} read-more-cta-label`, style: { textAlign: `${this.readMorePosition}` } }, h("span", null, this.moreText)))));
|
|
46
|
+
}
|
|
47
|
+
getCssClassMap() {
|
|
48
|
+
return {
|
|
49
|
+
['box']: true,
|
|
50
|
+
[this.color]: true,
|
|
51
|
+
[this.size]: true,
|
|
52
|
+
['add-icon']: this.isIcon
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
get el() { return getElement(this); }
|
|
56
|
+
};
|
|
57
57
|
PtcReadmore.style = ptcReadmoreCss;
|
|
58
58
|
|
|
59
59
|
const ptcTooltipCss = ":host{position:relative}:host(.inline){display:inline}:host(.block){display:block}.text-ellipsis{position:relative;display:inline}.text-ellipsis:not(.truncated){z-index:auto !important}.z-auto{z-index:auto}.z-1{z-index:1}.z-2{z-index:2}.z-3{z-index:3}.z-999{z-index:999}.tooltip{position:absolute;padding:8px;color:var(--color-white);font-size:var(--ptc-font-size-xxx-small);font-weight:var(--ptc-font-weight-semibold);background:var(--color-gray-09);box-shadow:0px 2px 4px rgba(0, 0, 0, 0.3);border:none;border-radius:2px;width:273px;height:auto;visibility:hidden;text-align:left;text-shadow:none}.tooltip.bottom{bottom:-12px;transform:translateY(100%)}.tooltip.bottom::after{top:1px;left:50%;transform:translate(-50%, -100%);border:8px solid transparent;border-bottom:8px solid var(--color-gray-09)}.tooltip.left{bottom:-12px;transform:translate(-80%, 100%)}.tooltip.left::after{top:1px;right:8px;transform:translateY(-100%);border:8px solid transparent;border-bottom:8px solid var(--color-gray-09)}.tooltip.right{bottom:-12px;transform:translateY(100%);right:0px}.tooltip.right::after{top:1px;left:8px;transform:translateY(-100%);border:8px solid transparent;border-bottom:8px solid var(--color-gray-09)}.tooltip.top{top:-8px;transform:translateY(-100%)}.tooltip.top::after{left:50%;bottom:1px;transform:translate(-50%, 100%);border:8px solid transparent;border-top:8px solid var(--color-gray-09)}.tooltip.bottom-right{bottom:-12px;transform:translate(-60%, 100%)}.tooltip.bottom-right::after{top:1px;left:75%;transform:translate(-50%, -100%);border:8px solid transparent;border-bottom:8px solid var(--color-gray-09)}.truncated{cursor:help}.truncated:hover+.tooltip{visibility:visible;z-index:9999}.wrapper-content{display:inline-block;position:relative}.wrapper-content .tooltip{width:auto;min-width:72px;max-width:273px}.wrapper-content slot:hover+.tooltip{visibility:visible;z-index:9999}.tooltip::after{content:\"\";position:absolute}.ellipsis-by-line-boxing{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;overflow-wrap:break-word;padding-bottom:0}";
|
|
60
60
|
|
|
61
|
-
const PtcTooltip = class {
|
|
62
|
-
constructor(hostRef) {
|
|
63
|
-
registerInstance(this, hostRef);
|
|
64
|
-
this.textDisplay = 'inline';
|
|
65
|
-
this.maxLength = 45;
|
|
66
|
-
this.textLines = undefined;
|
|
67
|
-
this.description = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. ';
|
|
68
|
-
this.zIndex = 'z-auto';
|
|
69
|
-
this.position = 'bottom';
|
|
70
|
-
this.styles = undefined;
|
|
71
|
-
this.mode = 'text-only';
|
|
72
|
-
}
|
|
73
|
-
addTruncatedClass() {
|
|
74
|
-
const appRoot = this.el.shadowRoot;
|
|
75
|
-
const text = appRoot.querySelectorAll('.ellipsis-by-line-boxing');
|
|
76
|
-
text.forEach(t => {
|
|
77
|
-
t.classList[t.scrollHeight > t.clientHeight ? 'add' : 'remove']('truncated');
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
componentDidLoad() {
|
|
81
|
-
this.addTruncatedClass();
|
|
82
|
-
}
|
|
83
|
-
render() {
|
|
84
|
-
if (this.mode == 'wrapper') {
|
|
85
|
-
return (h(Host, { class: this.textDisplay }, this.styles && h("style", null, this.styles), h("div", { class: "wrapper-content" }, h("slot", null), h("div", { class: `tooltip ${this.position}` }, this.description))));
|
|
86
|
-
}
|
|
87
|
-
else {
|
|
88
|
-
const classMap = this.getCssClassMap();
|
|
89
|
-
const cutOff = this.getLineCuttoff();
|
|
90
|
-
let truncatedText = this.description.substring(0, this.maxLength);
|
|
91
|
-
if (this.description.length > this.maxLength) {
|
|
92
|
-
const lastSpace = truncatedText.lastIndexOf(' ');
|
|
93
|
-
truncatedText = truncatedText.substring(0, lastSpace);
|
|
94
|
-
truncatedText += '... ';
|
|
95
|
-
}
|
|
96
|
-
return (h(Host, { class: this.textDisplay }, this.styles && h("style", null, this.styles), this.textLines > 0 && !!this.textLines ? h("div", { class: "ellipsis-by-line-boxing", style: cutOff }, this.description) : h("div", { class: classMap }, truncatedText), h("div", { class: `tooltip ${this.position}` }, this.description)));
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
getCssClassMap() {
|
|
100
|
-
return {
|
|
101
|
-
// ['ellipsis-by-line-boxing']: this.textLines && this.textLines > 0,
|
|
102
|
-
['text-ellipsis']: true,
|
|
103
|
-
[this.zIndex]: this.description.length > this.maxLength ? true : false,
|
|
104
|
-
['truncated']: this.description.length > this.maxLength && !this.textLines ? true : false,
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
getLineCuttoff() {
|
|
108
|
-
let result;
|
|
109
|
-
if (this.textLines && this.textLines > 0) {
|
|
110
|
-
result = {
|
|
111
|
-
['-webkit-line-clamp']: `${this.textLines}`,
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
return result;
|
|
115
|
-
}
|
|
116
|
-
get el() { return getElement(this); }
|
|
117
|
-
};
|
|
61
|
+
const PtcTooltip = class {
|
|
62
|
+
constructor(hostRef) {
|
|
63
|
+
registerInstance(this, hostRef);
|
|
64
|
+
this.textDisplay = 'inline';
|
|
65
|
+
this.maxLength = 45;
|
|
66
|
+
this.textLines = undefined;
|
|
67
|
+
this.description = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. ';
|
|
68
|
+
this.zIndex = 'z-auto';
|
|
69
|
+
this.position = 'bottom';
|
|
70
|
+
this.styles = undefined;
|
|
71
|
+
this.mode = 'text-only';
|
|
72
|
+
}
|
|
73
|
+
addTruncatedClass() {
|
|
74
|
+
const appRoot = this.el.shadowRoot;
|
|
75
|
+
const text = appRoot.querySelectorAll('.ellipsis-by-line-boxing');
|
|
76
|
+
text.forEach(t => {
|
|
77
|
+
t.classList[t.scrollHeight > t.clientHeight ? 'add' : 'remove']('truncated');
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
componentDidLoad() {
|
|
81
|
+
this.addTruncatedClass();
|
|
82
|
+
}
|
|
83
|
+
render() {
|
|
84
|
+
if (this.mode == 'wrapper') {
|
|
85
|
+
return (h(Host, { class: this.textDisplay }, this.styles && h("style", null, this.styles), h("div", { class: "wrapper-content" }, h("slot", null), h("div", { class: `tooltip ${this.position}` }, this.description))));
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
const classMap = this.getCssClassMap();
|
|
89
|
+
const cutOff = this.getLineCuttoff();
|
|
90
|
+
let truncatedText = this.description.substring(0, this.maxLength);
|
|
91
|
+
if (this.description.length > this.maxLength) {
|
|
92
|
+
const lastSpace = truncatedText.lastIndexOf(' ');
|
|
93
|
+
truncatedText = truncatedText.substring(0, lastSpace);
|
|
94
|
+
truncatedText += '... ';
|
|
95
|
+
}
|
|
96
|
+
return (h(Host, { class: this.textDisplay }, this.styles && h("style", null, this.styles), this.textLines > 0 && !!this.textLines ? h("div", { class: "ellipsis-by-line-boxing", style: cutOff }, this.description) : h("div", { class: classMap }, truncatedText), h("div", { class: `tooltip ${this.position}` }, this.description)));
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
getCssClassMap() {
|
|
100
|
+
return {
|
|
101
|
+
// ['ellipsis-by-line-boxing']: this.textLines && this.textLines > 0,
|
|
102
|
+
['text-ellipsis']: true,
|
|
103
|
+
[this.zIndex]: this.description.length > this.maxLength ? true : false,
|
|
104
|
+
['truncated']: this.description.length > this.maxLength && !this.textLines ? true : false,
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
getLineCuttoff() {
|
|
108
|
+
let result;
|
|
109
|
+
if (this.textLines && this.textLines > 0) {
|
|
110
|
+
result = {
|
|
111
|
+
['-webkit-line-clamp']: `${this.textLines}`,
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
return result;
|
|
115
|
+
}
|
|
116
|
+
get el() { return getElement(this); }
|
|
117
|
+
};
|
|
118
118
|
PtcTooltip.style = ptcTooltipCss;
|
|
119
119
|
|
|
120
120
|
export { PtcReadmore as ptc_readmore, PtcTooltip as ptc_tooltip };
|
|
@@ -2,60 +2,60 @@ import { r as registerInstance, h, g as getElement } from './index-40bc29fc.js';
|
|
|
2
2
|
|
|
3
3
|
const ptcResponsiveWrapperCss = ":host{display:block}";
|
|
4
4
|
|
|
5
|
-
const PtcResponsiveWrapper = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
}
|
|
9
|
-
componentDidLoad() {
|
|
10
|
-
this.ro = new ResizeObserver(entries => {
|
|
11
|
-
for (const entry of entries) {
|
|
12
|
-
this.applySizeClasses(entry.contentRect.width);
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
this.ro.observe(this.element);
|
|
16
|
-
}
|
|
17
|
-
disconnectedCallback() {
|
|
18
|
-
this.ro.disconnect();
|
|
19
|
-
}
|
|
20
|
-
applySizeClasses(size) {
|
|
21
|
-
let xsmall = false;
|
|
22
|
-
let small = false;
|
|
23
|
-
let medium = false;
|
|
24
|
-
let large = false;
|
|
25
|
-
let xlarge = false;
|
|
26
|
-
let xxlarge = false;
|
|
27
|
-
let large2k = false;
|
|
28
|
-
let large4k = false;
|
|
29
|
-
if (size >= 2600)
|
|
30
|
-
large4k = true;
|
|
31
|
-
else if (size >= 1980)
|
|
32
|
-
large2k = true;
|
|
33
|
-
else if (size >= 1600)
|
|
34
|
-
xxlarge = true;
|
|
35
|
-
else if (size >= 1440)
|
|
36
|
-
xlarge = true;
|
|
37
|
-
else if (size >= 1200)
|
|
38
|
-
large = true;
|
|
39
|
-
else if (size >= 992)
|
|
40
|
-
medium = true;
|
|
41
|
-
else if (size >= 768)
|
|
42
|
-
small = true;
|
|
43
|
-
else
|
|
44
|
-
xsmall = true;
|
|
45
|
-
this.element.classList.toggle("xsmall", xsmall);
|
|
46
|
-
this.element.classList.toggle("small", small);
|
|
47
|
-
this.element.classList.toggle("medium", medium);
|
|
48
|
-
this.element.classList.toggle("large", large);
|
|
49
|
-
this.element.classList.toggle("xlarge", xlarge);
|
|
50
|
-
this.element.classList.toggle("xxlarge", xxlarge);
|
|
51
|
-
this.element.classList.toggle("large2k", large2k);
|
|
52
|
-
this.element.classList.toggle("large4k", large4k);
|
|
53
|
-
}
|
|
54
|
-
render() {
|
|
55
|
-
return (h("div", null, h("slot", null)));
|
|
56
|
-
}
|
|
57
|
-
get element() { return getElement(this); }
|
|
58
|
-
};
|
|
5
|
+
const PtcResponsiveWrapper = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
}
|
|
9
|
+
componentDidLoad() {
|
|
10
|
+
this.ro = new ResizeObserver(entries => {
|
|
11
|
+
for (const entry of entries) {
|
|
12
|
+
this.applySizeClasses(entry.contentRect.width);
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
this.ro.observe(this.element);
|
|
16
|
+
}
|
|
17
|
+
disconnectedCallback() {
|
|
18
|
+
this.ro.disconnect();
|
|
19
|
+
}
|
|
20
|
+
applySizeClasses(size) {
|
|
21
|
+
let xsmall = false;
|
|
22
|
+
let small = false;
|
|
23
|
+
let medium = false;
|
|
24
|
+
let large = false;
|
|
25
|
+
let xlarge = false;
|
|
26
|
+
let xxlarge = false;
|
|
27
|
+
let large2k = false;
|
|
28
|
+
let large4k = false;
|
|
29
|
+
if (size >= 2600)
|
|
30
|
+
large4k = true;
|
|
31
|
+
else if (size >= 1980)
|
|
32
|
+
large2k = true;
|
|
33
|
+
else if (size >= 1600)
|
|
34
|
+
xxlarge = true;
|
|
35
|
+
else if (size >= 1440)
|
|
36
|
+
xlarge = true;
|
|
37
|
+
else if (size >= 1200)
|
|
38
|
+
large = true;
|
|
39
|
+
else if (size >= 992)
|
|
40
|
+
medium = true;
|
|
41
|
+
else if (size >= 768)
|
|
42
|
+
small = true;
|
|
43
|
+
else
|
|
44
|
+
xsmall = true;
|
|
45
|
+
this.element.classList.toggle("xsmall", xsmall);
|
|
46
|
+
this.element.classList.toggle("small", small);
|
|
47
|
+
this.element.classList.toggle("medium", medium);
|
|
48
|
+
this.element.classList.toggle("large", large);
|
|
49
|
+
this.element.classList.toggle("xlarge", xlarge);
|
|
50
|
+
this.element.classList.toggle("xxlarge", xxlarge);
|
|
51
|
+
this.element.classList.toggle("large2k", large2k);
|
|
52
|
+
this.element.classList.toggle("large4k", large4k);
|
|
53
|
+
}
|
|
54
|
+
render() {
|
|
55
|
+
return (h("div", null, h("slot", null)));
|
|
56
|
+
}
|
|
57
|
+
get element() { return getElement(this); }
|
|
58
|
+
};
|
|
59
59
|
PtcResponsiveWrapper.style = ptcResponsiveWrapperCss;
|
|
60
60
|
|
|
61
61
|
export { PtcResponsiveWrapper as ptc_responsive_wrapper };
|
|
@@ -1,42 +1,49 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-40bc29fc.js';
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-40bc29fc.js';
|
|
2
2
|
|
|
3
|
-
const ptcSearchFieldCss = ":host .search-div{display:flex;align-items:center;justify-content:space-between;height:51px;box-shadow:var(--ptc-shadow-small);border-radius:var(--ptc-border-radius-standard)}:host .search-div input{height:-webkit-fill-available;border:0px solid var(--color-gray-12);border-radius:var(--ptc-border-radius-standard) 0px 0px var(--ptc-border-radius-standard);flex-grow:2;padding-left:var(--ptc-element-spacing-04);line-height:var(--ptc-line-height-loose)}:host .search-div input:focus-visible{border-radius:var(--ptc-border-radius-standard) 0px 0px var(--ptc-border-radius-standard);outline:none}:host .search-div input::placeholder{font-family:var(--ptc-font-latin);font-style:var(--ptc-font-style-normal);font-weight:var(--ptc-font-weight-regular);font-size:var(--ptc-font-size-small);position:relative;top:1px;color:var(--color-gray-10)}:host .search-div .search-btn{cursor:pointer;height:51px;width:51px;border-radius:0px var(--ptc-border-radius-standard) var(--ptc-border-radius-standard) 0px;background-color:var(--color-gray-12);border:0px solid var(--color-gray-12);transition:background-color var(--ptc-ease-inout) var(--ptc-transition-medium)}:host .search-div .search-btn:active{background-color:var(--color-black)}:host .search-div .search-btn:hover{background-color:var(--color-gray-10)}:host .search-div .search-btn:focus{outline:3px solid var(--color-blue-07);outline-offset:2px}";
|
|
3
|
+
const ptcSearchFieldCss = ":host .search-div{display:flex;align-items:center;justify-content:space-between;height:51px;box-shadow:var(--ptc-shadow-small);border-radius:var(--ptc-border-radius-standard)}:host .search-div input{height:-webkit-fill-available;border:0px solid var(--color-gray-12);border-radius:var(--ptc-border-radius-standard) 0px 0px var(--ptc-border-radius-standard);flex-grow:2;padding-left:var(--ptc-element-spacing-04);line-height:var(--ptc-line-height-loose)}:host .search-div input:focus-visible{border-radius:var(--ptc-border-radius-standard) 0px 0px var(--ptc-border-radius-standard);outline:none}:host .search-div input::placeholder{font-family:var(--ptc-font-latin);font-style:var(--ptc-font-style-normal);font-weight:var(--ptc-font-weight-regular);font-size:var(--ptc-font-size-small);position:relative;top:1px;color:var(--color-gray-10)}:host .search-div .search-btn{cursor:pointer;height:51px;width:51px;border-radius:0px var(--ptc-border-radius-standard) var(--ptc-border-radius-standard) 0px;background-color:var(--color-gray-12);border:0px solid var(--color-gray-12);transition:background-color var(--ptc-ease-inout) var(--ptc-transition-medium)}:host .search-div .search-btn:active{background-color:var(--color-black)}:host .search-div .search-btn:hover{background-color:var(--color-gray-10)}:host .search-div .search-btn:focus{outline:3px solid var(--color-blue-07);outline-offset:2px}:host(.dark){z-index:999;position:relative;margin-top:20px}:host(.dark) .search-div{height:43px}:host(.dark) .search-div input{background-color:#4E5D66;color:var(--color-white)}:host(.dark) .search-div .search-btn{height:43px;width:43px}";
|
|
4
4
|
|
|
5
|
-
const PtcSearchField = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.valueChanged = createEvent(this, "valueChanged", 7);
|
|
9
|
-
this.clicked = createEvent(this, "clicked", 7);
|
|
10
|
-
this.textValue = undefined;
|
|
11
|
-
this.placeholderLabel = undefined;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
'
|
|
17
|
-
'
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
'
|
|
24
|
-
'
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
let
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
5
|
+
const PtcSearchField = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.valueChanged = createEvent(this, "valueChanged", 7);
|
|
9
|
+
this.clicked = createEvent(this, "clicked", 7);
|
|
10
|
+
this.textValue = undefined;
|
|
11
|
+
this.placeholderLabel = undefined;
|
|
12
|
+
this.darkTheme = undefined;
|
|
13
|
+
}
|
|
14
|
+
textChangedHandler(event) {
|
|
15
|
+
this.valueChanged.emit({
|
|
16
|
+
'sender': this,
|
|
17
|
+
'event': event,
|
|
18
|
+
'searchTerm': this.getSearchValue()
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
buttonClickHandler(event) {
|
|
22
|
+
this.clicked.emit({
|
|
23
|
+
'sender': this,
|
|
24
|
+
'event': event,
|
|
25
|
+
'searchTerm': this.getSearchValue()
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
getSearchValue() {
|
|
29
|
+
let result = '';
|
|
30
|
+
let input = this.el.shadowRoot.querySelector('input');
|
|
31
|
+
if (input) {
|
|
32
|
+
result = input.value;
|
|
33
|
+
}
|
|
34
|
+
return result;
|
|
35
|
+
}
|
|
36
|
+
render() {
|
|
37
|
+
const classMap = this.getCssClassMap();
|
|
38
|
+
return (h(Host, { class: classMap }, h("div", { class: "search-div" }, h("input", { type: "text", value: this.textValue, placeholder: this.placeholderLabel, onChange: (e) => { this.textChangedHandler(e); } }), h("button", { type: "button", color: "blackgrey", class: "search-btn", onClick: (e) => { this.buttonClickHandler(e); } }, h("icon-asset", { type: "ptc", size: "medium", name: "new-search", color: "white" })))));
|
|
39
|
+
}
|
|
40
|
+
getCssClassMap() {
|
|
41
|
+
return {
|
|
42
|
+
['dark']: this.darkTheme ? true : false,
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
get el() { return getElement(this); }
|
|
46
|
+
};
|
|
40
47
|
PtcSearchField.style = ptcSearchFieldCss;
|
|
41
48
|
|
|
42
49
|
export { PtcSearchField as ptc_search_field };
|