@ptcwebops/ptcw-design 0.6.3 → 0.6.4
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 +11 -11
- package/dist/cjs/icon-asset_13.cjs.entry.js +767 -0
- package/dist/cjs/{index-3adcf9f4.js → index-b3fabe79.js} +2 -0
- package/dist/cjs/{interfaces-574e6df7.js → interfaces-0ecd8027.js} +9 -9
- package/dist/cjs/list-item.cjs.entry.js +21 -21
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/lottie-player.cjs.entry.js +355 -355
- package/dist/cjs/my-component.cjs.entry.js +13 -13
- package/dist/cjs/ptc-accordion-item.cjs.entry.js +98 -98
- package/dist/cjs/ptc-accordion.cjs.entry.js +39 -39
- package/dist/cjs/ptc-announcement.cjs.entry.js +38 -38
- package/dist/cjs/ptc-breadcrumb.cjs.entry.js +13 -13
- package/dist/cjs/ptc-card-bottom.cjs.entry.js +32 -32
- package/dist/cjs/ptc-card-content.cjs.entry.js +32 -32
- package/dist/cjs/ptc-card-plm.cjs.entry.js +17 -17
- package/dist/cjs/ptc-card.cjs.entry.js +79 -0
- package/dist/cjs/ptc-collapse-list.cjs.entry.js +192 -192
- package/dist/cjs/ptc-date.cjs.entry.js +59 -0
- package/dist/cjs/ptc-ellipsis-dropdown.cjs.entry.js +39 -25
- package/dist/cjs/ptc-hero-footer-cta.cjs.entry.js +9 -9
- package/dist/cjs/ptc-hero.cjs.entry.js +19 -19
- package/dist/cjs/ptc-icon-list.cjs.entry.js +33 -33
- package/dist/cjs/ptc-img_2.cjs.entry.js +185 -0
- package/dist/cjs/ptc-list.cjs.entry.js +51 -51
- package/dist/cjs/ptc-lottie.cjs.entry.js +13 -13
- package/dist/cjs/ptc-minimized-footer.cjs.entry.js +9 -9
- package/dist/cjs/ptc-minimized-header.cjs.entry.js +12 -12
- package/dist/cjs/ptc-mobile-select.cjs.entry.js +70 -70
- package/dist/cjs/ptc-nav-item.cjs.entry.js +84 -84
- package/dist/cjs/ptc-nav.cjs.entry.js +9 -9
- package/dist/cjs/ptc-pagenation.cjs.entry.js +115 -0
- package/dist/cjs/ptc-picture.cjs.entry.js +170 -170
- package/dist/cjs/ptc-previous-url.cjs.entry.js +9 -9
- package/dist/cjs/ptc-pricing-block.cjs.entry.js +15 -15
- package/dist/cjs/ptc-quote.cjs.entry.js +26 -26
- package/dist/cjs/ptc-responsive-wrapper.cjs.entry.js +55 -55
- package/dist/cjs/ptc-social-share.cjs.entry.js +65 -65
- package/dist/cjs/ptc-span.cjs.entry.js +24 -24
- package/dist/cjs/ptc-svg-btn.cjs.entry.js +76 -76
- package/dist/cjs/ptc-tab-list.cjs.entry.js +119 -117
- package/dist/cjs/ptc-two-column-media.cjs.entry.js +15 -15
- package/dist/cjs/ptcw-design.cjs.js +2 -2
- package/dist/cjs/tab-content.cjs.entry.js +27 -27
- package/dist/cjs/tab-header.cjs.entry.js +45 -45
- package/dist/cjs/{utils-1c17977e.js → utils-dc2c222f.js} +64 -64
- 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 +365 -365
- 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 +104 -104
- 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.css +2 -2
- package/dist/collection/components/ptc-checkbox/ptc-checkbox.js +114 -114
- package/dist/collection/components/ptc-collapse-list/ptc-collapse-list.js +288 -288
- 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.css +4 -0
- package/dist/collection/components/ptc-dropdown/ptc-dropdown.js +156 -144
- package/dist/collection/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.css +19 -1
- package/dist/collection/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.js +115 -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.js +145 -145
- package/dist/collection/components/ptc-icon-minimize/ptc-icon-minimize.css +6 -1
- 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.js +198 -198
- package/dist/collection/components/ptc-list/ptc-list.js +95 -95
- 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 -317
- package/dist/collection/components/ptc-para/ptc-para.js +167 -167
- 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 +145 -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.css +1 -0
- 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 +65 -65
- package/dist/custom-elements/index.js +3084 -3063
- package/dist/esm/dropdown-item.entry.js +11 -11
- package/dist/esm/icon-asset_13.entry.js +751 -0
- package/dist/esm/{index-f64012bd.js → index-a91c2367.js} +3 -1
- package/dist/esm/{interfaces-4caedd26.js → interfaces-c1c73092.js} +10 -10
- package/dist/esm/list-item.entry.js +21 -21
- package/dist/esm/loader.js +2 -2
- package/dist/esm/lottie-player.entry.js +355 -355
- package/dist/esm/my-component.entry.js +13 -13
- 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-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 +75 -0
- package/dist/esm/ptc-collapse-list.entry.js +192 -192
- package/dist/esm/ptc-date.entry.js +55 -0
- package/dist/esm/ptc-ellipsis-dropdown.entry.js +39 -25
- 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 +33 -33
- package/dist/esm/ptc-img_2.entry.js +180 -0
- package/dist/esm/ptc-list.entry.js +51 -51
- 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-nav-item.entry.js +84 -84
- package/dist/esm/ptc-nav.entry.js +9 -9
- package/dist/esm/ptc-pagenation.entry.js +111 -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-social-share.entry.js +65 -65
- 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 +119 -117
- 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 +45 -45
- package/dist/esm/{utils-4b79ffaf.js → utils-334d53bc.js} +64 -64
- package/dist/ptcw-design/media/brands.svg +1381 -1381
- package/dist/ptcw-design/media/designer.svg +365 -365
- 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-d64c3892.entry.js → p-0004abbb.entry.js} +1 -1
- package/dist/ptcw-design/{p-5069bb7d.entry.js → p-03648d85.entry.js} +1 -1
- package/dist/ptcw-design/{p-c5951736.entry.js → p-07e08a42.entry.js} +1 -1
- package/dist/ptcw-design/p-08b4804a.entry.js +1 -0
- package/dist/ptcw-design/{p-612f7224.entry.js → p-09abf994.entry.js} +1 -1
- package/dist/ptcw-design/{p-72e6a3f1.entry.js → p-2173493c.entry.js} +1 -1
- package/dist/ptcw-design/p-22a11703.js +1 -0
- package/dist/ptcw-design/{p-fe957cbf.entry.js → p-273ff521.entry.js} +1 -1
- package/dist/ptcw-design/{p-48695e72.entry.js → p-2bec91cd.entry.js} +1 -1
- package/dist/ptcw-design/{p-8ea08e1d.entry.js → p-2f0223da.entry.js} +1 -1
- package/dist/ptcw-design/{p-2a1808f8.entry.js → p-30f33198.entry.js} +1 -1
- package/dist/ptcw-design/{p-8c6b8bc9.entry.js → p-3f0d3485.entry.js} +1 -1
- package/dist/ptcw-design/{p-dbf3779e.entry.js → p-401e8ad1.entry.js} +1 -1
- package/dist/ptcw-design/p-43e3f76e.entry.js +1 -0
- package/dist/ptcw-design/p-4a653f7f.entry.js +1 -0
- package/dist/ptcw-design/{p-711bcdad.js → p-50e52c88.js} +1 -1
- package/dist/ptcw-design/p-57f553f0.entry.js +1 -0
- package/dist/ptcw-design/{p-76635841.entry.js → p-735fb369.entry.js} +1 -1
- package/dist/ptcw-design/{p-28174fbe.entry.js → p-77327ab7.entry.js} +1 -1
- package/dist/ptcw-design/p-7c112bdc.entry.js +1 -0
- package/dist/ptcw-design/{p-796b4a16.entry.js → p-80be8fe1.entry.js} +1 -1
- package/dist/ptcw-design/p-831f5c16.entry.js +1 -0
- package/dist/ptcw-design/{p-3f236e98.entry.js → p-870406ab.entry.js} +1 -1
- package/dist/ptcw-design/{p-b146377a.entry.js → p-90266709.entry.js} +1 -1
- package/dist/ptcw-design/{p-2b3a38c3.entry.js → p-a0ddea6e.entry.js} +1 -1
- package/dist/ptcw-design/{p-3a972520.entry.js → p-a3e99867.entry.js} +1 -1
- package/dist/ptcw-design/p-a53873e9.entry.js +1 -0
- package/dist/ptcw-design/{p-0c86ac1a.entry.js → p-a6a938d2.entry.js} +1 -1
- package/dist/ptcw-design/p-aab72f28.entry.js +1 -0
- package/dist/ptcw-design/{p-dc605137.entry.js → p-b1354b54.entry.js} +1 -1
- package/dist/ptcw-design/{p-18d0d10a.entry.js → p-b22d9c93.entry.js} +1 -1
- package/dist/ptcw-design/{p-cd3fbbb1.entry.js → p-b59e68b8.entry.js} +1 -1
- package/dist/ptcw-design/{p-204a78ce.entry.js → p-b614e18a.entry.js} +1 -1
- package/dist/ptcw-design/{p-dc18ae76.entry.js → p-b6a9d66f.entry.js} +1 -1
- package/dist/ptcw-design/{p-7448f767.entry.js → p-b8dff289.entry.js} +1 -1
- package/dist/ptcw-design/p-b985e510.entry.js +1 -0
- package/dist/ptcw-design/{p-3f136737.entry.js → p-ca54a4bc.entry.js} +1 -1
- package/dist/ptcw-design/p-dac5d058.entry.js +1 -0
- package/dist/ptcw-design/{p-781aacb7.entry.js → p-f4148769.entry.js} +1 -1
- package/dist/ptcw-design/{p-58a3c173.entry.js → p-f4bab4bf.entry.js} +1 -1
- package/dist/ptcw-design/p-f8c949be.entry.js +1 -0
- package/dist/ptcw-design/{p-02894b57.entry.js → p-fd6eaf5b.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-collapse-list/ptc-collapse-list.d.ts +39 -39
- 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 -18
- package/dist/types/components/ptc-ellipsis-dropdown/ptc-ellipsis-dropdown.d.ts +12 -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 +8 -8
- 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 -27
- package/dist/types/components/ptc-para/ptc-para.d.ts +29 -29
- 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 +15 -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 +26 -24
- 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 +3 -3
- package/package.json +59 -59
- package/readme.md +11 -11
- package/dist/cjs/icon-asset.cjs.entry.js +0 -64
- package/dist/cjs/ptc-button.cjs.entry.js +0 -76
- package/dist/cjs/ptc-card_6.cjs.entry.js +0 -488
- package/dist/cjs/ptc-checkbox.cjs.entry.js +0 -42
- package/dist/cjs/ptc-container.cjs.entry.js +0 -46
- package/dist/cjs/ptc-dropdown.cjs.entry.js +0 -69
- package/dist/cjs/ptc-filter-tag.cjs.entry.js +0 -39
- package/dist/cjs/ptc-icon-minimize.cjs.entry.js +0 -46
- package/dist/cjs/ptc-link.cjs.entry.js +0 -53
- package/dist/cjs/ptc-modal.cjs.entry.js +0 -162
- package/dist/cjs/ptc-overlay.cjs.entry.js +0 -31
- package/dist/cjs/ptc-shopping-cart.cjs.entry.js +0 -64
- package/dist/cjs/ptc-title.cjs.entry.js +0 -68
- package/dist/esm/icon-asset.entry.js +0 -60
- package/dist/esm/ptc-button.entry.js +0 -72
- package/dist/esm/ptc-card_6.entry.js +0 -479
- package/dist/esm/ptc-checkbox.entry.js +0 -38
- package/dist/esm/ptc-container.entry.js +0 -42
- package/dist/esm/ptc-dropdown.entry.js +0 -65
- package/dist/esm/ptc-filter-tag.entry.js +0 -35
- package/dist/esm/ptc-icon-minimize.entry.js +0 -42
- package/dist/esm/ptc-link.entry.js +0 -49
- package/dist/esm/ptc-modal.entry.js +0 -158
- package/dist/esm/ptc-overlay.entry.js +0 -27
- package/dist/esm/ptc-shopping-cart.entry.js +0 -60
- package/dist/esm/ptc-title.entry.js +0 -64
- package/dist/ptcw-design/p-021d2117.entry.js +0 -1
- package/dist/ptcw-design/p-07c07cf9.entry.js +0 -1
- package/dist/ptcw-design/p-0da15d87.entry.js +0 -1
- package/dist/ptcw-design/p-1726a0cb.entry.js +0 -1
- package/dist/ptcw-design/p-3918de53.entry.js +0 -1
- package/dist/ptcw-design/p-412ca190.entry.js +0 -1
- package/dist/ptcw-design/p-489715bf.entry.js +0 -1
- package/dist/ptcw-design/p-52b80149.entry.js +0 -1
- package/dist/ptcw-design/p-7133275c.entry.js +0 -1
- package/dist/ptcw-design/p-71cecd28.entry.js +0 -1
- package/dist/ptcw-design/p-818df883.entry.js +0 -1
- package/dist/ptcw-design/p-a28c7277.entry.js +0 -1
- package/dist/ptcw-design/p-c3e79e54.entry.js +0 -1
- package/dist/ptcw-design/p-d8b48946.entry.js +0 -1
- package/dist/ptcw-design/p-d93ae820.entry.js +0 -1
- package/dist/ptcw-design/p-e8a60227.js +0 -1
- package/dist/ptcw-design/p-ee61991d.entry.js +0 -1
- package/dist/ptcw-design/p-ef93bfcc.entry.js +0 -1
- package/dist/ptcw-design/p-f32f9817.entry.js +0 -1
- package/dist/ptcw-design/p-fa681f61.entry.js +0 -1
- /package/dist/ptcw-design/{p-62f4a655.js → p-2e496d31.js} +0 -0
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-a91c2367.js';
|
|
2
2
|
|
|
3
3
|
const ptcCardPlmCss = ":host{display:block}:host(.card-tall),:host(.card-wide),:host(.card-video),:host(.card-playlist),:host(.card-2up){position:relative}:host(.card-tall) a,:host(.card-wide) a,:host(.card-video) a,:host(.card-playlist) a,:host(.card-2up) a{text-decoration:none !important}:host(.card-tall) a:hover,:host(.card-wide) a:hover,:host(.card-video) a:hover,:host(.card-playlist) a:hover,:host(.card-2up) a:hover{text-decoration:none}:host(.card-tall) a:focus,:host(.card-wide) a:focus,:host(.card-video) a:focus,:host(.card-playlist) a:focus,:host(.card-2up) a:focus{outline:none;text-decoration:none}:host(.card-tall) a:focus-visible,:host(.card-wide) a:focus-visible,:host(.card-video) a:focus-visible,:host(.card-playlist) a:focus-visible,:host(.card-2up) a:focus-visible{outline:none;text-decoration:none}:host(.card-playlist) div,:host(.card-playlist) a{display:flex;text-decoration:none;outline:none}:host(.card-playlist) div:hover,:host(.card-playlist) a:hover{text-decoration:none;outline:none}:host(.card-video-intro){border-bottom-left-radius:var(--ptc-border-radius-large);border-bottom-right-radius:var(--ptc-border-radius-large)}:host(.card-video-intro) div{display:block}:host(.card-video-shadow){box-shadow:var(--ptc-shadow-x-small)}:host(.card-video-p){padding:var(--ptc-element-spacing-05);padding-bottom:var(--ptc-element-spacing-06)}:host(.card-m-right){margin-right:var(--ptc-element-spacing-02)}:host(.card-m-left){margin-left:var(--ptc-element-spacing-02)}@media only screen and (min-width: 768px){:host(.card-m-right){margin-right:var(--ptc-element-spacing-03)}:host(.card-m-left){margin-left:var(--ptc-element-spacing-03)}}@media only screen and (min-width: 992px){:host(.card-m-right){margin-right:var(--ptc-element-spacing-04)}:host(.card-m-left){margin-left:var(--ptc-element-spacing-04)}}@media only screen and (min-width: 1200px){:host(.card-video-intro) div{display:flex}}";
|
|
4
4
|
|
|
5
|
-
let PtcCardPlm = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.linkTarget = '_self';
|
|
9
|
-
}
|
|
10
|
-
render() {
|
|
11
|
-
const classMap = this.getCssClassMap();
|
|
12
|
-
const Tag = !!this.cardLink ? 'a' : 'div';
|
|
13
|
-
return (h(Host, { class: classMap }, h(Tag, Object.assign({}, (!!this.cardLink ? { href: this.cardLink } : {}), (!!this.linkTarget && !!this.cardLink ? { target: this.linkTarget } : {}), (!!this.cardLink ? { title: this.linkTitle ? this.linkTitle : this.cardLink } : {})), h("slot", null))));
|
|
14
|
-
}
|
|
15
|
-
getCssClassMap() {
|
|
16
|
-
return {
|
|
17
|
-
[this.cardType]: this.cardType ? true : false
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
};
|
|
5
|
+
let PtcCardPlm = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.linkTarget = '_self';
|
|
9
|
+
}
|
|
10
|
+
render() {
|
|
11
|
+
const classMap = this.getCssClassMap();
|
|
12
|
+
const Tag = !!this.cardLink ? 'a' : 'div';
|
|
13
|
+
return (h(Host, { class: classMap }, h(Tag, Object.assign({}, (!!this.cardLink ? { href: this.cardLink } : {}), (!!this.linkTarget && !!this.cardLink ? { target: this.linkTarget } : {}), (!!this.cardLink ? { title: this.linkTitle ? this.linkTitle : this.cardLink } : {})), h("slot", null))));
|
|
14
|
+
}
|
|
15
|
+
getCssClassMap() {
|
|
16
|
+
return {
|
|
17
|
+
[this.cardType]: this.cardType ? true : false
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
21
|
PtcCardPlm.style = ptcCardPlmCss;
|
|
22
22
|
|
|
23
23
|
export { PtcCardPlm as ptc_card_plm };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-a91c2367.js';
|
|
2
|
+
|
|
3
|
+
const ptcCardCss = ":host{display:block}:host(.lottie-card) .card-border{box-shadow:var(--ptc-shadow-small);border:1px solid var(--color-gray-03);border-radius:10px;position:relative;overflow:hidden}:host(.lottie-card) .card-border::after{content:\"\";height:40%;width:4px;position:absolute;top:30%;right:-2px;background-color:var(--color-green-06);z-index:2;display:block}:host(.lottie-card) .card-border:hover{box-shadow:var(--ptc-shadow-x-large)}:host(.lottie-card) .card-border:hover .card-body h3{border-bottom:2px solid var(--color-green-07)}:host(.lottie-card) .card-layout{display:block}@media only screen and (min-width: 768px){:host(.lottie-card) .card-layout{display:flex;flex-flow:nowrap row;justify-content:center}}:host(.lottie-card) .link-wrapper{outline:none;text-decoration:none}:host(.lottie-card) .link-wrapper:hover{outline:none;text-decoration:none}:host(.lottie-card) .card-media{flex-basis:40%;border-right:1px solid var(--color-gray-03);display:flex}:host(.lottie-card) .card-body{flex-basis:60%;align-self:center;padding:0 30px 10px}:host(.lottie-card) .card-body h3{display:inline-block;line-height:var(--ptc-line-height-densest);color:var(--color-gray-10);font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-x-small);border-bottom:2px solid transparent;margin-bottom:var(--ptc-element-spacing-02)}:host(.simple-card) .card-layout{display:block}:host(.simple-card) .link-wrapper{outline:none;text-decoration:none}:host(.simple-card) .link-wrapper:hover{outline:none;text-decoration:none}:host(.simple-card) .link-wrapper:hover .card-body h3::before{width:100%}:host(.simple-card) .link-wrapper:hover ::slotted([slot=slot-after-heading]){margin-left:var(--ptc-element-spacing-04)}:host(.simple-card) .card-body h3{color:var(--color-gray-10);font-size:var(--ptc-font-size-xx-small);font-weight:var(--ptc-font-weight-black);line-height:var(--ptc-line-height-dense);position:relative;margin-bottom:var(--ptc-element-spacing-02);display:inline-block}:host(.simple-card) .card-body h3::before{display:block;position:absolute;content:\"\";width:var(--ptc-element-spacing-07);border-bottom:2px solid var(--color-green-06);bottom:1px;transition:width var(--ptc-transition-medium) var(--ptc-ease-inout)}:host(.simple-card) ::slotted([slot=slot-after-heading]){margin-left:var(--ptc-element-spacing-01);transition:margin-left var(--ptc-transition-medium) var(--ptc-ease-inout)}:host(.clip-edge-card) .card-border{overflow:hidden;filter:drop-shadow(rgba(0, 0, 0, 0.32) 0px 3px 6px);width:100%}:host(.clip-edge-card) .card-border:hover{filter:drop-shadow(rgba(0, 0, 0, 0.32) 0px 6px 12px)}:host(.clip-edge-card) .card-layout{display:block}:host(.clip-edge-card) .link-wrapper{outline:none;text-decoration:none}:host(.clip-edge-card) .link-wrapper:hover{outline:none;text-decoration:none}:host(.clip-edge-card) .card-media{position:relative;width:100%;height:124px;overflow:hidden;border-radius:var(--ptc-border-radius-standard)}:host(.clip-edge-card) .card-body{transform:translateY(calc((-1) * var(--ptc-element-spacing-04)));overflow:hidden;width:calc(95% - var(--ptc-element-spacing-04) - var(--ptc-element-spacing-04));font-size:var(--ptc-font-size-xx-small);font-weight:var(--ptc-font-weight-medium);line-height:var(--ptc-line-height-dense);color:var(--color-gray-10);clip-path:var(--ptc-clip-path-bottom-right);background-color:var(--color-white);border-radius:var(--ptc-border-radius-standard);padding:var(--ptc-element-spacing-06) var(--ptc-element-spacing-04) var(--ptc-element-spacing-03) var(--ptc-element-spacing-04)}:host(.clip-edge-card) .card-body h3{display:inline-block;margin:0px;font-size:var(--ptc-font-size-x-small);font-weight:var(--ptc-font-weight-bold);line-height:var(--ptc-line-height-dense);color:var(--color-gray-10);text-decoration:none;border-bottom:2px solid transparent;transition:border-bottom var(--ptc-transition-medium) var(--ptc-ease-inout), margin var(--ptc-transition-medium) var(--ptc-ease-inout);margin:var(--ptc-element-spacing-03) 0 var(--ptc-element-spacing-03) 0}:host(.clip-edge-card) ::slotted([slot=slot-description]){height:0;opacity:0;transition:height var(--ptc-transition-medium) var(--ptc-ease-inout), opacity var(--ptc-transition-medium) var(--ptc-ease-inout)}:host(.clip-edge-card) ::slotted([slot=slot-image]){display:block;width:100%;height:100%;transform:scale(1);transition:transform var(--ptc-transition-medium) var(--ptc-ease-inout);transform-origin:top center}:host(.clip-edge-card) ::slotted([slot=slot-after-heading]){position:absolute;top:var(--ptc-element-spacing-03);left:var(--ptc-element-spacing-04);opacity:1;transform:scale(1);height:44px;transform-origin:bottom center;transition:opacity var(--ptc-transition-medium) var(--ptc-ease-inout)}:host(.clip-edge-card) ::slotted([slot=slot-before-heading]){display:block;opacity:0;height:24px;transition:all var(--ptc-transition-medium) var(--ptc-ease-inout)}:host(.clip-edge-card) .link-wrapper:hover .card-body h3{border-bottom:2px solid var(--color-green-06)}:host(.clip-edge-card) .link-wrapper:hover ::slotted([slot=slot-description]){height:60px;opacity:1}:host(.clip-edge-card) .link-wrapper:hover ::slotted([slot=slot-image]){transform:scale(1.1)}:host(.clip-edge-card) .link-wrapper:hover ::slotted([slot=slot-after-heading]){opacity:0;transform:scale(0);height:0}:host(.clip-edge-card) .link-wrapper:hover ::slotted([slot=slot-before-heading]){opacity:1}:host(.hightlight-card) .card-border{width:100%;border-radius:var(--ptc-border-radius-standard);overflow:hidden}:host(.hightlight-card) .card-border:hover .card-media{transform:scale(1.1)}:host(.hightlight-card) .card-layout{display:block;position:relative}:host(.hightlight-card) .link-wrapper{outline:none;text-decoration:none}:host(.hightlight-card) .link-wrapper:hover{outline:none;text-decoration:none}:host(.hightlight-card) .link-wrapper:hover ::slotted([slot=slot-description]){height:96px;opacity:1}@media only screen and (min-width: 768px){:host(.hightlight-card) .link-wrapper:hover ::slotted([slot=slot-description]){height:var(--ptc-layout-spacing-05)}}@media only screen and (min-width: 992px){:host(.hightlight-card) .link-wrapper:hover ::slotted([slot=slot-description]){height:var(--ptc-layout-spacing-06)}}@media only screen and (min-width: 1440px){:host(.hightlight-card) .link-wrapper:hover ::slotted([slot=slot-description]){height:var(--ptc-layout-spacing-05)}}:host(.hightlight-card) .card-media{width:100%;height:auto;min-height:450px;position:relative;transform:scale(1);transform-origin:center bottom;transition:transform var(--ptc-transition-medium) var(--ptc-ease-inout);transition-delay:var(--ptc-delay-5)}:host(.hightlight-card) .card-body{position:absolute;bottom:0;top:auto;left:0;right:auto;padding:var(--ptc-element-spacing-04) var(--ptc-element-spacing-07);background-color:var(--color-white);box-sizing:border-box}:host(.hightlight-card) .card-body h3{font-size:var(--ptc-font-size-x-large);line-height:var(--ptc-line-height-densest);font-weight:var(--ptc-font-weight-bold);color:var(--color-gray-10);margin:var(--ptc-element-spacing-04) 0}:host(.hightlight-card) ::slotted([slot=slot-description]){height:0;opacity:0;transition:height var(--ptc-transition-medium) var(--ptc-ease-inout), opacity var(--ptc-transition-fast) var(--ptc-ease-inout);transition-delay:var(--ptc-delay-5)}:host(.horizontal-card){margin-bottom:var(--ptc-layout-spacing-02)}:host(.horizontal-card) .card-layout{position:relative}@media only screen and (min-width: 768px){:host(.horizontal-card) .card-layout{display:grid;grid-template-columns:42% 58%;direction:ltr;grid-auto-rows:1fr}}:host(.horizontal-card) .link-wrapper{outline:none;text-decoration:none;transition:var(--ptc-transition-slow) linear}:host(.horizontal-card) .link-wrapper:hover{box-shadow:var(--ptc-shadow-large);transition:var(--ptc-transition-slow) linear;background-color:var(--color-white)}:host(.horizontal-card) .link-wrapper:hover h3{border-color:var(--color-green-06);transition:var(--ptc-transition-slow) linear}:host(.horizontal-card) .card-media{display:flex;align-self:center}:host(.horizontal-card) .card-body{padding:var(--ptc-element-spacing-05) var(--ptc-element-spacing-04)}@media only screen and (min-width: 768px){:host(.horizontal-card) .card-body{padding:var(--ptc-element-spacing-06) var(--ptc-element-spacing-07)}}:host(.horizontal-card) .card-body h3{margin-top:0;font-size:var(--ptc-font-size-x-small);color:var(--color-gray-10);border-bottom:1px solid transparent;padding-bottom:var(--ptc-element-spacing-01);margin-bottom:var(--ptc-element-spacing-02);transition:var(--ptc-transition-slow) linear}:host(.horizontal-card) ::slotted([slot=slot-image]){box-shadow:var(--ptc-shadow-medium);width:100%}:host(.listing-card) .card-border{width:320px;overflow:hidden;background:var(--color-white);box-shadow:var(--ptc-shadow-small);border-radius:3px;height:449px;display:flex;flex-direction:row}:host(.listing-card) .card-border:hover{background:var(--color-gray-02);box-shadow:var(--ptc-shadow-large)}:host(.listing-card) .card-layout{display:block;position:relative}:host(.listing-card) .card-layout .ribbon-text{position:absolute;top:0;left:0;margin-right:100px;margin-top:22px;background-color:var(--color-white);padding:4px 22px 5px 23px;font-family:var(--ptc-font-latin);font-style:var(--ptc-font-style-normal);font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-small);line-height:var(--ptc-line-height-loose);color:var(--color-gray-11)}:host(.listing-card) .link-wrapper{outline:none;text-decoration:none}:host(.listing-card) .link-wrapper:hover{outline:none;text-decoration:none}:host(.listing-card) .card-media{width:100%;height:200px;transform:scale(1);transform-origin:center bottom;transition:transform var(--ptc-transition-medium) var(--ptc-standard-ease);transition-delay:var(--ptc-delay-medium)}:host(.listing-card) .card-media .smart-img{height:200px}:host(.listing-card) .card-body{padding:20px 38px 20px 20px}:host(.listing-card) .card-body .small{font-size:var(--ptc-font-size-x-small)}:host(.listing-card) .card-body h3{font-family:var(--ptc-font-latin);font-style:var(--ptc-font-style-normal);font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-small);line-height:var(--ptc-line-height-loose);line-height:21px;color:var(--color-gray-11);margin-bottom:12px;margin-top:0rem}:host(.listing-card) ::slotted([slot=slot-description]){font-family:var(--ptc-font-latin);font-style:var(--ptc-font-style-normal);font-weight:400;font-size:1rem;line-height:19px;color:var(--color-gray-11);margin-bottom:39px}:host(.listing-card-horizontal) .card-border{width:890px;overflow:hidden;background:var(--color-white);box-shadow:var(--ptc-shadow-small);border-radius:3px;height:224px}:host(.listing-card-horizontal) .card-border:hover{background:var(--color-gray-02);box-shadow:var(--ptc-shadow-large)}:host(.listing-card-horizontal) .card-layout{display:flex;flex-direction:row;width:890px;height:224px}:host(.listing-card-horizontal) .link-wrapper{outline:none;text-decoration:none}:host(.listing-card-horizontal) .link-wrapper:hover{outline:none;text-decoration:none}:host(.listing-card-horizontal) .card-media{width:385px;height:224px;transform:scale(1);transform-origin:center bottom;transition:transform var(--ptc-transition-medium) var(--ptc-standard-ease);transition-delay:var(--ptc-delay-medium)}:host(.listing-card-horizontal) .card-media .smart-img{height:224px;width:385px}:host(.listing-card-horizontal) .card-body{padding:20px 38px 20px 20px;width:505px}:host(.listing-card-horizontal) .card-body .small{font-size:var(--ptc-font-size-x-small)}:host(.listing-card-horizontal) .card-body h3{font-family:var(--ptc-font-latin);font-style:var(--ptc-font-style-normal);font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-small);line-height:var(--ptc-line-height-loose);line-height:21px;color:var(--color-gray-11);margin-bottom:12px;margin-top:0rem}:host(.listing-card-horizontal) ::slotted([slot=slot-description]){font-family:var(--ptc-font-latin);font-style:var(--ptc-font-style-normal);font-weight:400;font-size:1rem;line-height:19px;color:var(--color-gray-11);margin-bottom:39px}.ptc-h3.uppercase{text-transform:uppercase}.ptc-h3.capitalize{text-transform:capitalize}.ptc-h3.lowercase{text-transform:lowercase}.ptc-h3.none{text-transform:none}";
|
|
4
|
+
|
|
5
|
+
let PtcCard = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
/**
|
|
9
|
+
* Card Type
|
|
10
|
+
* Specify Card Type, default to simple card
|
|
11
|
+
*/
|
|
12
|
+
this.cardType = 'custom-card';
|
|
13
|
+
/**
|
|
14
|
+
* Card Link URL (Optional)
|
|
15
|
+
*/
|
|
16
|
+
this.cardHref = undefined;
|
|
17
|
+
/**
|
|
18
|
+
* (optional) Link card target
|
|
19
|
+
* */
|
|
20
|
+
this.target = '_self';
|
|
21
|
+
/**
|
|
22
|
+
* (optional) Link card rel
|
|
23
|
+
* */
|
|
24
|
+
this.rel = undefined;
|
|
25
|
+
/**
|
|
26
|
+
* If this card has Image
|
|
27
|
+
*/
|
|
28
|
+
this.hasImage = false;
|
|
29
|
+
/**
|
|
30
|
+
* If this card has Video
|
|
31
|
+
*/
|
|
32
|
+
this.hasVideo = false;
|
|
33
|
+
/**
|
|
34
|
+
* If this card has Lottie Image
|
|
35
|
+
*/
|
|
36
|
+
this.hasLottie = false;
|
|
37
|
+
/**
|
|
38
|
+
* Card heading text transform
|
|
39
|
+
*/
|
|
40
|
+
this.headingTransform = 'none';
|
|
41
|
+
}
|
|
42
|
+
render() {
|
|
43
|
+
const Tag = !!this.cardHref ? 'a' : 'div';
|
|
44
|
+
const classMap = this.getCssClassMap();
|
|
45
|
+
return (h(Host, Object.assign({}, (!!this.cardType ? { class: this.cardType } : {})), this.styles && h("style", null, this.styles), h("div", { class: "card-border", part: "border-wrapper" }, h(Tag, Object.assign({ class: classMap, part: "card-layout" }, (!!this.cardHref ? { href: this.cardHref } : {}), (!!this.target && !!this.cardHref ? { target: this.target } : {}), (!!this.rel && !!this.cardHref ? { rel: this.rel } : {}), (!!this.ribbonText ? { rel: this.ribbonText } : {})), this.hasImage || this.hasLottie || this.hasVideo ? (h("div", { class: "card-media", part: "media-wrapper" }, this.getMediaSlot ? h("slot", { name: this.getMediaSlot() }) : null)) : null, !!this.ribbonText && this.cardType == 'listing-card' ? h("div", { class: "ribbon-text" }, `${this.ribbonText}`) : null, h("div", { class: "card-body", part: "body-wrapper" }, !!this.cardDate && (this.cardType === 'listing-card' || this.cardType === 'listing-card-horizontal') ? h("ptc-date", { "date-string": `${this.cardDate}`, "date-styles": "span{font-weight: 400;font-size: 16px;line-height: 19px;color: #282F35;margin-bottom:24px;display:inline-block;}" }) : null, h("slot", { name: "slot-before-heading" }), !!this.heading
|
|
46
|
+
? [
|
|
47
|
+
h("h3", { class: `ptc-h3 ${this.headingTransform}`, part: "card-heading" }, this.heading),
|
|
48
|
+
h("slot", { name: "slot-after-heading" }),
|
|
49
|
+
]
|
|
50
|
+
: null, h("slot", { name: "slot-description" }), !!this.cardDate && this.cardType !== 'listing-card' && this.cardType !== 'listing-card-horizontal' && this.cardType !== 'hightlight-card' ? h("ptc-date", { "date-string": `${this.cardDate}`, "date-styles": "span{color:#40434a;font-size:var(--ptc-font-size-x-small);margin-top:var(--ptc-element-spacing-06);display:inline-block;}" }) : null)))));
|
|
51
|
+
}
|
|
52
|
+
getCssClassMap() {
|
|
53
|
+
return {
|
|
54
|
+
['card-layout']: true,
|
|
55
|
+
['link-wrapper']: !!this.cardType ? true : false,
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
getMediaSlot() {
|
|
59
|
+
if (this.hasLottie) {
|
|
60
|
+
return 'slot-lottie';
|
|
61
|
+
}
|
|
62
|
+
else if (this.hasVideo) {
|
|
63
|
+
return 'slot-video';
|
|
64
|
+
}
|
|
65
|
+
else if (this.hasImage) {
|
|
66
|
+
return 'slot-image';
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
return null;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
PtcCard.style = ptcCardCss;
|
|
74
|
+
|
|
75
|
+
export { PtcCard as ptc_card };
|
|
@@ -1,198 +1,198 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host,
|
|
2
|
-
import { M as MapDOM, g as generateUUID } from './utils-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-a91c2367.js';
|
|
2
|
+
import { M as MapDOM, g as generateUUID } from './utils-334d53bc.js';
|
|
3
3
|
|
|
4
4
|
const ptcCollapseListCss = ":host{display:block}.container{border-right:1px solid rgba(112, 112, 112, 0.25);position:relative}a{transition:color ease-out 250ms}ul{transition:max-height ease-out 250ms, padding ease-out 250ms;overflow:hidden;list-style:none;padding:0;margin:0}.level-1>ul,.level-2>ul,.level-3>ul,.level-4>ul,.level-5>ul{max-height:0}.level-1{position:relative;padding:17px 20px 17px 0;border-bottom:1px solid rgba(112, 112, 112, 0.25)}.level-1>a{font-size:18px;letter-spacing:0.45px;font-weight:800;color:#40434a;text-decoration:none}.level-1>a:hover,.level-1>a:active,.level-1>a:focus{text-decoration:none}.level-1>icon-asset{transition:transform ease-out 250ms;position:absolute;right:32px}.level-1>ul{padding-top:0}.level-1.expanded>icon-asset{transform:rotate(-180deg)}.level-1.expanded>ul{padding-top:14px}.level-1:after{content:\"\";display:block;position:absolute;bottom:-2px;left:0;height:3px;width:40px;background-color:#74c34d}.level-2{margin:8px 0}.level-2>a{font-size:15px;font-weight:500;letter-spacing:0.4px;color:#3b4550;text-decoration:none}.level-2>a:hover,.level-2>a:active,.level-2>a:focus{font-weight:800;color:#74c34d;text-decoration:none}input[type=text]{padding:9px 45px 9px 18px;font-size:15px;font-weight:500;color:var(--color-gray-07);box-shadow:1px 1px 5px 0 rgba(0, 0, 0, 0.16);border:solid 1px var(--color-gray-07);background-color:#ffffff}input[type=text]::-ms-clear{display:none}input[type=text]:focus{outline:none}input[type=text]::-webkit-input-placeholder{color:var(--color-gray-02)}input[type=text]:-moz-placeholder{color:var(--color-gray-02);opacity:1}input[type=text]::-moz-placeholder{color:var(--color-gray-02);opacity:1}input[type=text]:-ms-input-placeholder{color:var(--color-gray-02)}input[type=text]::-ms-input-placeholder{color:var(--color-gray-02)}input[type=text] *::placeholder{color:var(--color-gray-02)}";
|
|
5
5
|
|
|
6
|
-
class CollapseListItem {
|
|
7
|
-
}
|
|
8
|
-
let PtcCollapseList = class {
|
|
9
|
-
constructor(hostRef) {
|
|
10
|
-
registerInstance(this, hostRef);
|
|
11
|
-
this.itemSelected = createEvent(this, "itemSelected", 7);
|
|
12
|
-
this.itemExpanded = createEvent(this, "itemExpanded", 7);
|
|
13
|
-
this.ready = createEvent(this, "ready", 7);
|
|
14
|
-
this.updated = createEvent(this, "updated", 7);
|
|
15
|
-
}
|
|
16
|
-
componentWillLoad() {
|
|
17
|
-
this.loadListItems();
|
|
18
|
-
}
|
|
19
|
-
componentDidLoad() {
|
|
20
|
-
this.ready.emit({
|
|
21
|
-
sender: this.el,
|
|
22
|
-
tree: this.data
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
componentDidUpdate() {
|
|
26
|
-
this.updated.emit({
|
|
27
|
-
sender: this.el,
|
|
28
|
-
tree: this.data
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
onItemSelectedHandler(event) {
|
|
32
|
-
this.itemSelected.emit({
|
|
33
|
-
event: event,
|
|
34
|
-
sender: event ? event.target : this.el,
|
|
35
|
-
selectedItems: this.selectedItems,
|
|
36
|
-
tree: this.data
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
onItemExpandeddHandler(event) {
|
|
40
|
-
this.itemExpanded.emit({
|
|
41
|
-
event: event,
|
|
42
|
-
sender: event ? event.target : this.el,
|
|
43
|
-
selectedItems: this.selectedItems,
|
|
44
|
-
tree: this.data
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
loadListItems() {
|
|
48
|
-
this.hashMap = {};
|
|
49
|
-
if (!this.data) {
|
|
50
|
-
let dom = MapDOM(this.el);
|
|
51
|
-
if (dom.collapseListItem) {
|
|
52
|
-
this.data = new Array();
|
|
53
|
-
let buildChildren = (arr, outArr) => {
|
|
54
|
-
arr.map((z) => {
|
|
55
|
-
var newItem = new CollapseListItem();
|
|
56
|
-
newItem.isExternalLink = z.linkHref ? true : false;
|
|
57
|
-
if (z.linkHref) {
|
|
58
|
-
newItem.href = z.linkHref;
|
|
59
|
-
newItem.target = z.linkTarget;
|
|
60
|
-
newItem.title = z.linkTitle;
|
|
61
|
-
}
|
|
62
|
-
else {
|
|
63
|
-
newItem.id = generateUUID();
|
|
64
|
-
newItem.text = z.facetDisplay;
|
|
65
|
-
newItem.name = z.facetName;
|
|
66
|
-
newItem.value = z.facetValue;
|
|
67
|
-
newItem.category = z.category;
|
|
68
|
-
newItem.allowMultiSelect = z.allowMultiSelect != 'false';
|
|
69
|
-
this.setUpCategory(newItem.category, newItem.allowMultiSelect);
|
|
70
|
-
}
|
|
71
|
-
if (z.collapseListItem) {
|
|
72
|
-
newItem.children = new Array();
|
|
73
|
-
buildChildren(z.collapseListItem, newItem.children);
|
|
74
|
-
}
|
|
75
|
-
this.hashMap[newItem.id] = newItem;
|
|
76
|
-
outArr.push(newItem);
|
|
77
|
-
});
|
|
78
|
-
};
|
|
79
|
-
this.setUpCategory('default', true);
|
|
80
|
-
buildChildren(dom.collapseListItem, this.data);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
setUpCategory(name, allowMultiSelect) {
|
|
85
|
-
if (!this.selectedItems) {
|
|
86
|
-
this.selectedItems = {};
|
|
87
|
-
}
|
|
88
|
-
if (name && !this.selectedItems[name]) {
|
|
89
|
-
this.selectedItems[name] = {
|
|
90
|
-
name: name,
|
|
91
|
-
items: new Array(),
|
|
92
|
-
allowMultiSelect: allowMultiSelect
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
collapseAllFirstLevelItems(exclude) {
|
|
97
|
-
let items = this.el.shadowRoot.querySelectorAll('.level-1');
|
|
98
|
-
items.forEach((z) => {
|
|
99
|
-
if (z.classList.contains('expanded') && z != exclude) {
|
|
100
|
-
z.classList.remove('expanded');
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
updateExpandedItems() {
|
|
105
|
-
let items = this.el.shadowRoot.querySelectorAll('li');
|
|
106
|
-
items.forEach((z) => {
|
|
107
|
-
let ul = z.querySelector(':scope > ul');
|
|
108
|
-
if (ul) {
|
|
109
|
-
if (!z.classList.contains('expanded')) {
|
|
110
|
-
ul.style.removeProperty('max-height');
|
|
111
|
-
}
|
|
112
|
-
else {
|
|
113
|
-
ul.style.maxHeight = ul.scrollHeight + "px";
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
updateSelectedItemStatus(uuid) {
|
|
119
|
-
var _a;
|
|
120
|
-
let selectedItem = this.hashMap[uuid];
|
|
121
|
-
if (selectedItem && selectedItem.value) {
|
|
122
|
-
let categoryName = (_a = selectedItem.category) !== null && _a !== void 0 ? _a : 'default';
|
|
123
|
-
if (!this.selectedItems[categoryName]) {
|
|
124
|
-
this.setUpCategory(categoryName, selectedItem.allowMultiSelect == true);
|
|
125
|
-
}
|
|
126
|
-
let items = this.selectedItems[categoryName].items;
|
|
127
|
-
if (items.indexOf(selectedItem.value) < 0) {
|
|
128
|
-
if (this.selectedItems[categoryName].allowMultiSelect) {
|
|
129
|
-
items.push(selectedItem.value);
|
|
130
|
-
}
|
|
131
|
-
else {
|
|
132
|
-
items = [selectedItem.value];
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
else {
|
|
136
|
-
items = items.filter((z) => { return z != selectedItem.value; });
|
|
137
|
-
}
|
|
138
|
-
this.selectedItems[categoryName].items = items;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
onItemLinkClick(event, uuid) {
|
|
142
|
-
if (event) {
|
|
143
|
-
event.preventDefault();
|
|
144
|
-
}
|
|
145
|
-
this.updateSelectedItemStatus(uuid);
|
|
146
|
-
this.onItemSelectedHandler(event);
|
|
147
|
-
}
|
|
148
|
-
onExpandClick(event, collapseParents) {
|
|
149
|
-
if (event) {
|
|
150
|
-
event.preventDefault();
|
|
151
|
-
let sender = event.target;
|
|
152
|
-
if (collapseParents) {
|
|
153
|
-
this.collapseAllFirstLevelItems(sender.parentNode);
|
|
154
|
-
}
|
|
155
|
-
if (sender && sender.parentNode) {
|
|
156
|
-
let parent = sender.parentNode;
|
|
157
|
-
parent.classList.toggle("expanded");
|
|
158
|
-
}
|
|
159
|
-
this.updateExpandedItems();
|
|
160
|
-
}
|
|
161
|
-
this.onItemExpandeddHandler(event);
|
|
162
|
-
}
|
|
163
|
-
render() {
|
|
164
|
-
let renderLevel = (arr, index) => {
|
|
165
|
-
let levelClass = `level-${index}`;
|
|
166
|
-
return (h("ul", null, arr.map((z) => {
|
|
167
|
-
let expandable = false;
|
|
168
|
-
let icon = '';
|
|
169
|
-
if (index == 1 && z.children) {
|
|
170
|
-
expandable = true;
|
|
171
|
-
icon = (h("icon-asset", { type: "ptc", name: "chevron-down", color: "ptc-green", size: "medium" }));
|
|
172
|
-
}
|
|
173
|
-
return (h("li", { class: levelClass }, icon, getLink(z, expandable), z.children ? renderLevel(z.children, index + 1) : ''));
|
|
174
|
-
})));
|
|
175
|
-
};
|
|
176
|
-
let getLink = (item, expandable) => {
|
|
177
|
-
let clickEvent = (e) => {
|
|
178
|
-
if (expandable) {
|
|
179
|
-
this.onExpandClick(e, true);
|
|
180
|
-
}
|
|
181
|
-
else {
|
|
182
|
-
this.onItemLinkClick(e, item.id);
|
|
183
|
-
}
|
|
184
|
-
};
|
|
185
|
-
if (item.isExternalLink) {
|
|
186
|
-
return (h("a", { href: item.href, target: item.target, title: item.title }, item.text));
|
|
187
|
-
}
|
|
188
|
-
else {
|
|
189
|
-
return (h("a", { href: "#", title: item.text, onClick: clickEvent }, item.text));
|
|
190
|
-
}
|
|
191
|
-
};
|
|
192
|
-
return (h(Host, null, h("div", { class: "container" }, h("ptc-title", { type: 'h4', "title-size": "medium", "title-weight": "w-6", "text-align": 'left', upperline: "no-upperline" }, "Filter Results :"), h("input", { type: "text", placeholder: 'Search' }), renderLevel(this.data, 1))));
|
|
193
|
-
}
|
|
194
|
-
get el() { return getElement(this); }
|
|
195
|
-
};
|
|
6
|
+
class CollapseListItem {
|
|
7
|
+
}
|
|
8
|
+
let PtcCollapseList = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
registerInstance(this, hostRef);
|
|
11
|
+
this.itemSelected = createEvent(this, "itemSelected", 7);
|
|
12
|
+
this.itemExpanded = createEvent(this, "itemExpanded", 7);
|
|
13
|
+
this.ready = createEvent(this, "ready", 7);
|
|
14
|
+
this.updated = createEvent(this, "updated", 7);
|
|
15
|
+
}
|
|
16
|
+
componentWillLoad() {
|
|
17
|
+
this.loadListItems();
|
|
18
|
+
}
|
|
19
|
+
componentDidLoad() {
|
|
20
|
+
this.ready.emit({
|
|
21
|
+
sender: this.el,
|
|
22
|
+
tree: this.data
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
componentDidUpdate() {
|
|
26
|
+
this.updated.emit({
|
|
27
|
+
sender: this.el,
|
|
28
|
+
tree: this.data
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
onItemSelectedHandler(event) {
|
|
32
|
+
this.itemSelected.emit({
|
|
33
|
+
event: event,
|
|
34
|
+
sender: event ? event.target : this.el,
|
|
35
|
+
selectedItems: this.selectedItems,
|
|
36
|
+
tree: this.data
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
onItemExpandeddHandler(event) {
|
|
40
|
+
this.itemExpanded.emit({
|
|
41
|
+
event: event,
|
|
42
|
+
sender: event ? event.target : this.el,
|
|
43
|
+
selectedItems: this.selectedItems,
|
|
44
|
+
tree: this.data
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
loadListItems() {
|
|
48
|
+
this.hashMap = {};
|
|
49
|
+
if (!this.data) {
|
|
50
|
+
let dom = MapDOM(this.el);
|
|
51
|
+
if (dom.collapseListItem) {
|
|
52
|
+
this.data = new Array();
|
|
53
|
+
let buildChildren = (arr, outArr) => {
|
|
54
|
+
arr.map((z) => {
|
|
55
|
+
var newItem = new CollapseListItem();
|
|
56
|
+
newItem.isExternalLink = z.linkHref ? true : false;
|
|
57
|
+
if (z.linkHref) {
|
|
58
|
+
newItem.href = z.linkHref;
|
|
59
|
+
newItem.target = z.linkTarget;
|
|
60
|
+
newItem.title = z.linkTitle;
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
newItem.id = generateUUID();
|
|
64
|
+
newItem.text = z.facetDisplay;
|
|
65
|
+
newItem.name = z.facetName;
|
|
66
|
+
newItem.value = z.facetValue;
|
|
67
|
+
newItem.category = z.category;
|
|
68
|
+
newItem.allowMultiSelect = z.allowMultiSelect != 'false';
|
|
69
|
+
this.setUpCategory(newItem.category, newItem.allowMultiSelect);
|
|
70
|
+
}
|
|
71
|
+
if (z.collapseListItem) {
|
|
72
|
+
newItem.children = new Array();
|
|
73
|
+
buildChildren(z.collapseListItem, newItem.children);
|
|
74
|
+
}
|
|
75
|
+
this.hashMap[newItem.id] = newItem;
|
|
76
|
+
outArr.push(newItem);
|
|
77
|
+
});
|
|
78
|
+
};
|
|
79
|
+
this.setUpCategory('default', true);
|
|
80
|
+
buildChildren(dom.collapseListItem, this.data);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
setUpCategory(name, allowMultiSelect) {
|
|
85
|
+
if (!this.selectedItems) {
|
|
86
|
+
this.selectedItems = {};
|
|
87
|
+
}
|
|
88
|
+
if (name && !this.selectedItems[name]) {
|
|
89
|
+
this.selectedItems[name] = {
|
|
90
|
+
name: name,
|
|
91
|
+
items: new Array(),
|
|
92
|
+
allowMultiSelect: allowMultiSelect
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
collapseAllFirstLevelItems(exclude) {
|
|
97
|
+
let items = this.el.shadowRoot.querySelectorAll('.level-1');
|
|
98
|
+
items.forEach((z) => {
|
|
99
|
+
if (z.classList.contains('expanded') && z != exclude) {
|
|
100
|
+
z.classList.remove('expanded');
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
updateExpandedItems() {
|
|
105
|
+
let items = this.el.shadowRoot.querySelectorAll('li');
|
|
106
|
+
items.forEach((z) => {
|
|
107
|
+
let ul = z.querySelector(':scope > ul');
|
|
108
|
+
if (ul) {
|
|
109
|
+
if (!z.classList.contains('expanded')) {
|
|
110
|
+
ul.style.removeProperty('max-height');
|
|
111
|
+
}
|
|
112
|
+
else {
|
|
113
|
+
ul.style.maxHeight = ul.scrollHeight + "px";
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
updateSelectedItemStatus(uuid) {
|
|
119
|
+
var _a;
|
|
120
|
+
let selectedItem = this.hashMap[uuid];
|
|
121
|
+
if (selectedItem && selectedItem.value) {
|
|
122
|
+
let categoryName = (_a = selectedItem.category) !== null && _a !== void 0 ? _a : 'default';
|
|
123
|
+
if (!this.selectedItems[categoryName]) {
|
|
124
|
+
this.setUpCategory(categoryName, selectedItem.allowMultiSelect == true);
|
|
125
|
+
}
|
|
126
|
+
let items = this.selectedItems[categoryName].items;
|
|
127
|
+
if (items.indexOf(selectedItem.value) < 0) {
|
|
128
|
+
if (this.selectedItems[categoryName].allowMultiSelect) {
|
|
129
|
+
items.push(selectedItem.value);
|
|
130
|
+
}
|
|
131
|
+
else {
|
|
132
|
+
items = [selectedItem.value];
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
else {
|
|
136
|
+
items = items.filter((z) => { return z != selectedItem.value; });
|
|
137
|
+
}
|
|
138
|
+
this.selectedItems[categoryName].items = items;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
onItemLinkClick(event, uuid) {
|
|
142
|
+
if (event) {
|
|
143
|
+
event.preventDefault();
|
|
144
|
+
}
|
|
145
|
+
this.updateSelectedItemStatus(uuid);
|
|
146
|
+
this.onItemSelectedHandler(event);
|
|
147
|
+
}
|
|
148
|
+
onExpandClick(event, collapseParents) {
|
|
149
|
+
if (event) {
|
|
150
|
+
event.preventDefault();
|
|
151
|
+
let sender = event.target;
|
|
152
|
+
if (collapseParents) {
|
|
153
|
+
this.collapseAllFirstLevelItems(sender.parentNode);
|
|
154
|
+
}
|
|
155
|
+
if (sender && sender.parentNode) {
|
|
156
|
+
let parent = sender.parentNode;
|
|
157
|
+
parent.classList.toggle("expanded");
|
|
158
|
+
}
|
|
159
|
+
this.updateExpandedItems();
|
|
160
|
+
}
|
|
161
|
+
this.onItemExpandeddHandler(event);
|
|
162
|
+
}
|
|
163
|
+
render() {
|
|
164
|
+
let renderLevel = (arr, index) => {
|
|
165
|
+
let levelClass = `level-${index}`;
|
|
166
|
+
return (h("ul", null, arr.map((z) => {
|
|
167
|
+
let expandable = false;
|
|
168
|
+
let icon = '';
|
|
169
|
+
if (index == 1 && z.children) {
|
|
170
|
+
expandable = true;
|
|
171
|
+
icon = (h("icon-asset", { type: "ptc", name: "chevron-down", color: "ptc-green", size: "medium" }));
|
|
172
|
+
}
|
|
173
|
+
return (h("li", { class: levelClass }, icon, getLink(z, expandable), z.children ? renderLevel(z.children, index + 1) : ''));
|
|
174
|
+
})));
|
|
175
|
+
};
|
|
176
|
+
let getLink = (item, expandable) => {
|
|
177
|
+
let clickEvent = (e) => {
|
|
178
|
+
if (expandable) {
|
|
179
|
+
this.onExpandClick(e, true);
|
|
180
|
+
}
|
|
181
|
+
else {
|
|
182
|
+
this.onItemLinkClick(e, item.id);
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
if (item.isExternalLink) {
|
|
186
|
+
return (h("a", { href: item.href, target: item.target, title: item.title }, item.text));
|
|
187
|
+
}
|
|
188
|
+
else {
|
|
189
|
+
return (h("a", { href: "#", title: item.text, onClick: clickEvent }, item.text));
|
|
190
|
+
}
|
|
191
|
+
};
|
|
192
|
+
return (h(Host, null, h("div", { class: "container" }, h("ptc-title", { type: 'h4', "title-size": "medium", "title-weight": "w-6", "text-align": 'left', upperline: "no-upperline" }, "Filter Results :"), h("input", { type: "text", placeholder: 'Search' }), renderLevel(this.data, 1))));
|
|
193
|
+
}
|
|
194
|
+
get el() { return getElement(this); }
|
|
195
|
+
};
|
|
196
196
|
PtcCollapseList.style = ptcCollapseListCss;
|
|
197
197
|
|
|
198
198
|
export { PtcCollapseList as ptc_collapse_list };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-a91c2367.js';
|
|
2
|
+
|
|
3
|
+
const ptcDateCss = ":host{display:block}:host(.small) span{font-size:var(--ptc-font-size-xx-small)}:host(.medium) span{font-size:var(--ptc-font-size-x-small)}:host(.primary-grey){color:var(--color-primary-gray-new)}:host(.white) span{color:var(--color-white)}:host(.date-m-top){margin-top:var(--ptc-element-spacing-01)}";
|
|
4
|
+
|
|
5
|
+
let PtcDate = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
/**
|
|
9
|
+
* Year
|
|
10
|
+
*/
|
|
11
|
+
this.year = 1900;
|
|
12
|
+
/**
|
|
13
|
+
* Month
|
|
14
|
+
* An integer between 1 (January) and 12 (December) representing the month.If omitted, defaults to 0.
|
|
15
|
+
*/
|
|
16
|
+
this.month = 0;
|
|
17
|
+
/**
|
|
18
|
+
* Day
|
|
19
|
+
* An integer between 1 and 31 representing the day of the month. If omitted, defaults to 1.
|
|
20
|
+
*/
|
|
21
|
+
this.day = 1;
|
|
22
|
+
/**
|
|
23
|
+
* Country
|
|
24
|
+
* examples: en-US, zh-CN, zh-TW, fr-FR, ja-JP, ru-RU, de-DE, ko-KR, it-IT, es-ES
|
|
25
|
+
*/
|
|
26
|
+
this.country = 'en-US';
|
|
27
|
+
/**
|
|
28
|
+
* Date Font Size
|
|
29
|
+
*/
|
|
30
|
+
this.dataSize = 'small';
|
|
31
|
+
}
|
|
32
|
+
render() {
|
|
33
|
+
// const newDate = new Date(this.year, this.month, this.day);
|
|
34
|
+
const classMap = this.getCssClassMap();
|
|
35
|
+
return (h(Host, { class: classMap }, this.dateStyles && h("style", null, this.dateStyles), h("span", { part: "part-ptc-date" }, this.getDate().toLocaleDateString(this.country, { year: 'numeric', month: 'short', day: 'numeric' }))));
|
|
36
|
+
}
|
|
37
|
+
getCssClassMap() {
|
|
38
|
+
return {
|
|
39
|
+
[this.dateColor]: !!this.dateColor ? true : false,
|
|
40
|
+
[this.dataSize]: !!this.dataSize ? true : false,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
getDate() {
|
|
44
|
+
if (this.dateString) {
|
|
45
|
+
let newDate = new Date(this.dateString.replace(/-/g, '/'));
|
|
46
|
+
return newDate;
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
return new Date(this.year, this.month - 1, this.day);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
PtcDate.style = ptcDateCss;
|
|
54
|
+
|
|
55
|
+
export { PtcDate as ptc_date };
|