@ptcwebops/ptcw-design 0.5.0 → 0.5.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/icon-asset.cjs.entry.js +54 -54
- package/dist/cjs/{interfaces-0ecd8027.js → interfaces-574e6df7.js} +9 -9
- package/dist/cjs/list-item.cjs.entry.js +20 -20
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/lottie-player.cjs.entry.js +354 -354
- package/dist/cjs/my-component.cjs.entry.js +13 -13
- package/dist/cjs/ptc-announcement_2.cjs.entry.js +114 -114
- package/dist/cjs/ptc-breadcrumb.cjs.entry.js +13 -13
- package/dist/cjs/ptc-button.cjs.entry.js +66 -66
- 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 +69 -69
- package/dist/cjs/ptc-date.cjs.entry.js +49 -49
- 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 +171 -171
- package/dist/cjs/ptc-link.cjs.entry.js +43 -43
- package/dist/cjs/ptc-list.cjs.entry.js +24 -21
- package/dist/cjs/ptc-lottie.cjs.entry.js +12 -12
- 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-modal.cjs.entry.js +107 -104
- 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-para.cjs.entry.js +40 -40
- 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-quote.cjs.entry.js +26 -26
- package/dist/cjs/ptc-responsive-wrapper.cjs.entry.js +54 -54
- package/dist/cjs/ptc-social-share.cjs.entry.js +65 -65
- package/dist/cjs/ptc-spacer.cjs.entry.js +35 -35
- package/dist/cjs/ptc-span.cjs.entry.js +24 -24
- package/dist/cjs/ptc-title.cjs.entry.js +49 -45
- package/dist/cjs/ptc-two-column-media.cjs.entry.js +15 -15
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +0 -5
- package/dist/collection/components/icon-asset/icon-asset.css +26 -1399
- 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 +327 -327
- 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.css +16 -1409
- package/dist/collection/components/list-item/list-item.js +103 -103
- package/dist/collection/components/my-component/my-component.css +3 -3
- package/dist/collection/components/my-component/my-component.js +73 -73
- package/dist/collection/components/ptc-announcement/ptc-announcement.css +38 -1433
- package/dist/collection/components/ptc-announcement/ptc-announcement.js +210 -210
- package/dist/collection/components/ptc-breadcrumb/ptc-breadcrumb.css +1 -1394
- package/dist/collection/components/ptc-breadcrumb/ptc-breadcrumb.js +21 -21
- package/dist/collection/components/ptc-button/ptc-button.css +59 -1452
- package/dist/collection/components/ptc-button/ptc-button.js +293 -293
- package/dist/collection/components/ptc-card/ptc-card.css +43 -1436
- package/dist/collection/components/ptc-card/ptc-card.js +282 -282
- package/dist/collection/components/ptc-card-bottom/ptc-card-bottom.css +5 -1398
- package/dist/collection/components/ptc-card-bottom/ptc-card-bottom.js +105 -105
- package/dist/collection/components/ptc-card-content/ptc-card-content.css +25 -1418
- package/dist/collection/components/ptc-card-content/ptc-card-content.js +105 -105
- package/dist/collection/components/ptc-card-plm/ptc-card-plm.css +12 -1404
- package/dist/collection/components/ptc-card-plm/ptc-card-plm.js +97 -97
- package/dist/collection/components/ptc-date/ptc-date.css +3 -1396
- package/dist/collection/components/ptc-date/ptc-date.js +201 -201
- package/dist/collection/components/ptc-hero/ptc-hero.css +0 -1393
- package/dist/collection/components/ptc-hero/ptc-hero.js +67 -67
- package/dist/collection/components/ptc-hero-footer-cta/ptc-hero-footer-cta.css +17 -1412
- package/dist/collection/components/ptc-hero-footer-cta/ptc-hero-footer-cta.js +77 -77
- package/dist/collection/components/ptc-icon-list/ptc-icon-list.css +16 -1407
- package/dist/collection/components/ptc-icon-list/ptc-icon-list.js +145 -145
- package/dist/collection/components/ptc-img/ptc-img.css +7 -1404
- package/dist/collection/components/ptc-img/ptc-img.js +314 -314
- package/dist/collection/components/ptc-link/ptc-link.css +47 -1440
- package/dist/collection/components/ptc-link/ptc-link.js +198 -198
- package/dist/collection/components/ptc-list/ptc-list.css +3 -1396
- package/dist/collection/components/ptc-list/ptc-list.js +68 -63
- 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.css +4 -1398
- package/dist/collection/components/ptc-minimized-footer/ptc-minimized-footer.js +17 -17
- package/dist/collection/components/ptc-minimized-header/ptc-minimized-header.css +12 -1405
- package/dist/collection/components/ptc-minimized-header/ptc-minimized-header.js +80 -80
- package/dist/collection/components/ptc-mobile-select/ptc-mobile-select.css +8 -1401
- package/dist/collection/components/ptc-mobile-select/ptc-mobile-select.js +221 -221
- package/dist/collection/components/ptc-modal/ptc-modal.css +6 -1399
- package/dist/collection/components/ptc-modal/ptc-modal.js +255 -252
- package/dist/collection/components/ptc-nav/ptc-nav.css +1 -1394
- package/dist/collection/components/ptc-nav/ptc-nav.js +21 -21
- package/dist/collection/components/ptc-nav-item/ptc-nav-item.css +9 -1402
- package/dist/collection/components/ptc-nav-item/ptc-nav-item.js +252 -252
- package/dist/collection/components/ptc-overlay/ptc-overlay.css +14 -1415
- package/dist/collection/components/ptc-overlay/ptc-overlay.js +99 -99
- package/dist/collection/components/ptc-para/ptc-para.css +9 -1417
- package/dist/collection/components/ptc-para/ptc-para.js +157 -157
- package/dist/collection/components/ptc-picture/ptc-picture.css +3 -1404
- package/dist/collection/components/ptc-picture/ptc-picture.js +474 -474
- package/dist/collection/components/ptc-previous-url/ptc-previous-url.css +4 -1397
- package/dist/collection/components/ptc-previous-url/ptc-previous-url.js +54 -54
- package/dist/collection/components/ptc-quote/ptc-quote.css +18 -1409
- 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-social-share/ptc-social-share.css +2 -1395
- 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.css +9 -1402
- package/dist/collection/components/ptc-span/ptc-span.js +89 -89
- package/dist/collection/components/ptc-svg-btn/ptc-svg-btn.css +9 -1403
- package/dist/collection/components/ptc-svg-btn/ptc-svg-btn.js +71 -71
- package/dist/collection/components/ptc-title/ptc-title.css +32 -1419
- package/dist/collection/components/ptc-title/ptc-title.js +236 -231
- package/dist/collection/components/ptc-two-column-media/ptc-two-column-media.css +1 -1394
- package/dist/collection/components/ptc-two-column-media/ptc-two-column-media.js +40 -40
- 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/slider-arrow-left.svg +18 -18
- package/dist/collection/media/svg-imgs/slider-arrow-right.svg +18 -18
- package/dist/collection/utils/interfaces.js +11 -11
- package/dist/collection/utils/utils.js +3 -3
- package/dist/custom-elements/index.d.ts +0 -30
- package/dist/custom-elements/index.js +2003 -2196
- package/dist/esm/icon-asset.entry.js +54 -54
- package/dist/esm/{interfaces-c1c73092.js → interfaces-7c0243be.js} +9 -9
- package/dist/esm/list-item.entry.js +20 -20
- package/dist/esm/loader.js +1 -1
- package/dist/esm/lottie-player.entry.js +354 -354
- 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-announcement_2.entry.js +114 -114
- package/dist/esm/ptc-breadcrumb.entry.js +13 -13
- package/dist/esm/ptc-button.entry.js +66 -66
- package/dist/esm/ptc-card-bottom.entry.js +32 -32
- package/dist/esm/ptc-card-content.entry.js +32 -32
- package/dist/esm/ptc-card-plm.entry.js +17 -17
- package/dist/esm/ptc-card.entry.js +69 -69
- package/dist/esm/ptc-date.entry.js +49 -49
- 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 +171 -171
- package/dist/esm/ptc-link.entry.js +43 -43
- package/dist/esm/ptc-list.entry.js +24 -21
- package/dist/esm/ptc-lottie.entry.js +12 -12
- package/dist/esm/ptc-minimized-footer.entry.js +9 -9
- package/dist/esm/ptc-minimized-header.entry.js +12 -12
- package/dist/esm/ptc-mobile-select.entry.js +70 -70
- package/dist/esm/ptc-modal.entry.js +107 -104
- package/dist/esm/ptc-nav-item.entry.js +84 -84
- package/dist/esm/ptc-nav.entry.js +9 -9
- package/dist/esm/ptc-para.entry.js +40 -40
- package/dist/esm/ptc-picture.entry.js +170 -170
- package/dist/esm/ptc-previous-url.entry.js +9 -9
- package/dist/esm/ptc-quote.entry.js +26 -26
- package/dist/esm/ptc-responsive-wrapper.entry.js +54 -54
- package/dist/esm/ptc-social-share.entry.js +65 -65
- package/dist/esm/ptc-spacer.entry.js +35 -35
- package/dist/esm/ptc-span.entry.js +24 -24
- package/dist/esm/ptc-title.entry.js +49 -45
- package/dist/esm/ptc-two-column-media.entry.js +15 -15
- package/dist/esm/ptcw-design.js +1 -1
- package/dist/ptcw-design/media/brands.svg +1381 -1381
- package/dist/ptcw-design/media/designer.svg +327 -327
- 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-009537ea.entry.js +1 -0
- package/dist/ptcw-design/p-18d0d10a.entry.js +7 -0
- package/dist/ptcw-design/p-204a78ce.entry.js +1 -0
- package/dist/ptcw-design/p-28174fbe.entry.js +1 -0
- package/dist/ptcw-design/p-2a1808f8.entry.js +1 -0
- package/dist/ptcw-design/p-2b3a38c3.entry.js +1 -0
- package/dist/ptcw-design/p-37ffbdf2.entry.js +1 -0
- package/dist/ptcw-design/p-612f7224.entry.js +1 -0
- package/dist/ptcw-design/p-64d01929.entry.js +1 -0
- package/dist/ptcw-design/p-6c2a6e55.entry.js +1 -0
- package/dist/ptcw-design/p-7133275c.entry.js +1 -0
- package/dist/ptcw-design/p-781aacb7.entry.js +1 -0
- package/dist/ptcw-design/p-796b4a16.entry.js +1 -0
- package/dist/ptcw-design/p-7bcc42e1.entry.js +1 -0
- package/dist/ptcw-design/p-8c6b8bc9.entry.js +1 -0
- package/dist/ptcw-design/p-90423b6f.entry.js +1 -0
- package/dist/ptcw-design/p-a9e7cd3e.entry.js +1 -0
- package/dist/ptcw-design/p-c13f31f6.entry.js +1 -0
- package/dist/ptcw-design/p-c5951736.entry.js +1 -0
- package/dist/ptcw-design/p-cd7119b8.entry.js +1 -0
- package/dist/ptcw-design/p-cec492a8.entry.js +1 -0
- package/dist/ptcw-design/p-d2ef4221.entry.js +1 -0
- package/dist/ptcw-design/p-d64c3892.entry.js +1 -0
- package/dist/ptcw-design/p-dbf3779e.entry.js +1 -0
- package/dist/ptcw-design/p-dc18ae76.entry.js +1 -0
- package/dist/ptcw-design/p-df80470b.entry.js +1 -0
- package/dist/ptcw-design/p-ec10f846.entry.js +1 -0
- package/dist/ptcw-design/p-f32f9817.entry.js +1 -0
- package/dist/ptcw-design/p-fa53e5e5.entry.js +1 -0
- package/dist/ptcw-design/p-fe957cbf.entry.js +1 -0
- package/dist/ptcw-design/ptcw-design.css +2 -3
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- 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-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 +50 -50
- 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-date/ptc-date.d.ts +41 -41
- 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-img/ptc-img.d.ts +51 -51
- package/dist/types/components/ptc-link/ptc-link.d.ts +36 -36
- package/dist/types/components/ptc-list/ptc-list.d.ts +6 -6
- package/dist/types/components/ptc-lottie/ptc-lottie.d.ts +12 -12
- package/dist/types/components/ptc-minimized-footer/ptc-minimized-footer.d.ts +3 -3
- package/dist/types/components/ptc-minimized-header/ptc-minimized-header.d.ts +6 -6
- package/dist/types/components/ptc-mobile-select/ptc-mobile-select.d.ts +40 -40
- package/dist/types/components/ptc-modal/ptc-modal.d.ts +46 -46
- 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-para/ptc-para.d.ts +28 -28
- package/dist/types/components/ptc-picture/ptc-picture.d.ts +93 -93
- package/dist/types/components/ptc-previous-url/ptc-previous-url.d.ts +5 -5
- package/dist/types/components/ptc-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-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-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.d.ts +42 -131
- package/dist/types/global.d.ts +1072 -1072
- package/dist/types/index.d.ts +1 -1
- package/dist/types/utils/interfaces.d.ts +14 -14
- package/dist/types/utils/utils.d.ts +1 -1
- package/package.json +59 -59
- package/readme.md +11 -11
- package/dist/cjs/ptc-countdown.cjs.entry.js +0 -19
- package/dist/cjs/ptc-footer.cjs.entry.js +0 -19
- package/dist/cjs/ptc-form.cjs.entry.js +0 -117
- package/dist/cjs/ptc-input.cjs.entry.js +0 -31
- package/dist/cjs/ptc-select.cjs.entry.js +0 -35
- package/dist/collection/components/ptc-countdown/ptc-countdown.css +0 -1396
- package/dist/collection/components/ptc-countdown/ptc-countdown.js +0 -15
- package/dist/collection/components/ptc-footer/ptc-footer.css +0 -1433
- package/dist/collection/components/ptc-footer/ptc-footer.js +0 -25
- package/dist/collection/components/ptc-form/ptc-form.css +0 -1396
- package/dist/collection/components/ptc-form/ptc-form.js +0 -118
- package/dist/collection/components/ptc-form/validation/FormValidation.full.min.js +0 -1
- package/dist/collection/components/ptc-form/validation/FormValidation.js +0 -4234
- package/dist/collection/components/ptc-input/ptc-input.css +0 -1440
- package/dist/collection/components/ptc-input/ptc-input.js +0 -133
- package/dist/collection/components/ptc-select/ptc-select.css +0 -1415
- package/dist/collection/components/ptc-select/ptc-select.js +0 -105
- package/dist/esm/ptc-countdown.entry.js +0 -15
- package/dist/esm/ptc-footer.entry.js +0 -15
- package/dist/esm/ptc-form.entry.js +0 -113
- package/dist/esm/ptc-input.entry.js +0 -27
- package/dist/esm/ptc-select.entry.js +0 -31
- package/dist/ptcw-design/p-0494a6ee.entry.js +0 -1
- package/dist/ptcw-design/p-0a146d61.entry.js +0 -1
- package/dist/ptcw-design/p-0e7be5b7.entry.js +0 -1
- package/dist/ptcw-design/p-1cd1d3d8.entry.js +0 -1
- package/dist/ptcw-design/p-24b1823f.entry.js +0 -1
- package/dist/ptcw-design/p-2d392931.entry.js +0 -1
- package/dist/ptcw-design/p-3a8b4686.entry.js +0 -1
- package/dist/ptcw-design/p-56460bb4.entry.js +0 -1
- package/dist/ptcw-design/p-614dcc3f.entry.js +0 -1
- package/dist/ptcw-design/p-67d35eea.entry.js +0 -1
- package/dist/ptcw-design/p-69e30829.entry.js +0 -1
- package/dist/ptcw-design/p-6c70abcd.entry.js +0 -1
- package/dist/ptcw-design/p-714999f9.entry.js +0 -1
- package/dist/ptcw-design/p-7281746f.entry.js +0 -7
- package/dist/ptcw-design/p-751e1cb4.entry.js +0 -1
- package/dist/ptcw-design/p-8850288e.entry.js +0 -1
- package/dist/ptcw-design/p-8f989bd5.entry.js +0 -1
- package/dist/ptcw-design/p-902942fe.entry.js +0 -1
- package/dist/ptcw-design/p-95f95730.entry.js +0 -1
- package/dist/ptcw-design/p-97e626e9.entry.js +0 -1
- package/dist/ptcw-design/p-97edf10d.entry.js +0 -1
- package/dist/ptcw-design/p-99db01b4.entry.js +0 -1
- package/dist/ptcw-design/p-9b7119b1.entry.js +0 -1
- package/dist/ptcw-design/p-9c88bc75.entry.js +0 -1
- package/dist/ptcw-design/p-a4d9b28c.entry.js +0 -1
- package/dist/ptcw-design/p-c5063e59.entry.js +0 -1
- package/dist/ptcw-design/p-c738f20a.entry.js +0 -1
- package/dist/ptcw-design/p-cf43befa.entry.js +0 -1
- package/dist/ptcw-design/p-cf92c175.entry.js +0 -1
- package/dist/ptcw-design/p-d04d0530.entry.js +0 -1
- package/dist/ptcw-design/p-d625b127.entry.js +0 -1
- package/dist/ptcw-design/p-d97f4152.entry.js +0 -1
- package/dist/ptcw-design/p-e4ac4e8e.entry.js +0 -1
- package/dist/ptcw-design/p-f389d773.entry.js +0 -1
- package/dist/ptcw-design/p-f3f455bc.entry.js +0 -1
- package/dist/ptcw-design/validation/FormValidation.full.min.js +0 -1
- package/dist/ptcw-design/validation/FormValidation.js +0 -4234
- package/dist/types/components/ptc-countdown/ptc-countdown.d.ts +0 -3
- package/dist/types/components/ptc-footer/ptc-footer.d.ts +0 -3
- package/dist/types/components/ptc-form/ptc-form.d.ts +0 -11
- package/dist/types/components/ptc-input/ptc-input.d.ts +0 -19
- package/dist/types/components/ptc-select/ptc-select.d.ts +0 -9
- /package/dist/ptcw-design/{p-50e52c88.js → p-ee1183b2.js} +0 -0
|
@@ -1,103 +1,103 @@
|
|
|
1
|
-
import { Component, Host, h, Prop } from '@stencil/core';
|
|
2
|
-
export class ListItem {
|
|
3
|
-
constructor() {
|
|
4
|
-
this.listType = 'list-primary';
|
|
5
|
-
this.linkHref = undefined;
|
|
6
|
-
this.flushBefore = false;
|
|
7
|
-
this.linkTarget = '_self';
|
|
8
|
-
}
|
|
9
|
-
render() {
|
|
10
|
-
const classMap = this.getCssClassMap();
|
|
11
|
-
return (h(Host, { class: classMap },
|
|
12
|
-
h("li", null, this.linkHref ? (h("a", Object.assign({ class: "item-link", target: this.linkTarget }, (this.linkHref ? { href: this.linkHref } : {})),
|
|
13
|
-
h("slot", null))) : (h("slot", null)))));
|
|
14
|
-
}
|
|
15
|
-
getCssClassMap() {
|
|
16
|
-
return {
|
|
17
|
-
[this.listType]: true,
|
|
18
|
-
['flush-before']: this.flushBefore ? true : false
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
static get is() { return "list-item"; }
|
|
22
|
-
static get encapsulation() { return "shadow"; }
|
|
23
|
-
static get originalStyleUrls() { return {
|
|
24
|
-
"$": ["list-item.scss"]
|
|
25
|
-
}; }
|
|
26
|
-
static get styleUrls() { return {
|
|
27
|
-
"$": ["list-item.css"]
|
|
28
|
-
}; }
|
|
29
|
-
static get properties() { return {
|
|
30
|
-
"listType": {
|
|
31
|
-
"type": "string",
|
|
32
|
-
"mutable": false,
|
|
33
|
-
"complexType": {
|
|
34
|
-
"original": "'list-primary' | 'list-footer' | 'breadcrumb'",
|
|
35
|
-
"resolved": "\"breadcrumb\" | \"list-footer\" | \"list-primary\"",
|
|
36
|
-
"references": {}
|
|
37
|
-
},
|
|
38
|
-
"required": false,
|
|
39
|
-
"optional": false,
|
|
40
|
-
"docs": {
|
|
41
|
-
"tags": [],
|
|
42
|
-
"text": ""
|
|
43
|
-
},
|
|
44
|
-
"attribute": "list-type",
|
|
45
|
-
"reflect": false,
|
|
46
|
-
"defaultValue": "'list-primary'"
|
|
47
|
-
},
|
|
48
|
-
"linkHref": {
|
|
49
|
-
"type": "string",
|
|
50
|
-
"mutable": false,
|
|
51
|
-
"complexType": {
|
|
52
|
-
"original": "string",
|
|
53
|
-
"resolved": "string",
|
|
54
|
-
"references": {}
|
|
55
|
-
},
|
|
56
|
-
"required": false,
|
|
57
|
-
"optional": true,
|
|
58
|
-
"docs": {
|
|
59
|
-
"tags": [],
|
|
60
|
-
"text": ""
|
|
61
|
-
},
|
|
62
|
-
"attribute": "link-href",
|
|
63
|
-
"reflect": false,
|
|
64
|
-
"defaultValue": "undefined"
|
|
65
|
-
},
|
|
66
|
-
"flushBefore": {
|
|
67
|
-
"type": "boolean",
|
|
68
|
-
"mutable": false,
|
|
69
|
-
"complexType": {
|
|
70
|
-
"original": "boolean",
|
|
71
|
-
"resolved": "boolean",
|
|
72
|
-
"references": {}
|
|
73
|
-
},
|
|
74
|
-
"required": false,
|
|
75
|
-
"optional": false,
|
|
76
|
-
"docs": {
|
|
77
|
-
"tags": [],
|
|
78
|
-
"text": ""
|
|
79
|
-
},
|
|
80
|
-
"attribute": "flush-before",
|
|
81
|
-
"reflect": false,
|
|
82
|
-
"defaultValue": "false"
|
|
83
|
-
},
|
|
84
|
-
"linkTarget": {
|
|
85
|
-
"type": "string",
|
|
86
|
-
"mutable": false,
|
|
87
|
-
"complexType": {
|
|
88
|
-
"original": "string | undefined",
|
|
89
|
-
"resolved": "string",
|
|
90
|
-
"references": {}
|
|
91
|
-
},
|
|
92
|
-
"required": false,
|
|
93
|
-
"optional": false,
|
|
94
|
-
"docs": {
|
|
95
|
-
"tags": [],
|
|
96
|
-
"text": ""
|
|
97
|
-
},
|
|
98
|
-
"attribute": "link-target",
|
|
99
|
-
"reflect": false,
|
|
100
|
-
"defaultValue": "'_self'"
|
|
101
|
-
}
|
|
102
|
-
}; }
|
|
103
|
-
}
|
|
1
|
+
import { Component, Host, h, Prop } from '@stencil/core';
|
|
2
|
+
export class ListItem {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.listType = 'list-primary';
|
|
5
|
+
this.linkHref = undefined;
|
|
6
|
+
this.flushBefore = false;
|
|
7
|
+
this.linkTarget = '_self';
|
|
8
|
+
}
|
|
9
|
+
render() {
|
|
10
|
+
const classMap = this.getCssClassMap();
|
|
11
|
+
return (h(Host, { class: classMap },
|
|
12
|
+
h("li", null, this.linkHref ? (h("a", Object.assign({ class: "item-link", target: this.linkTarget }, (this.linkHref ? { href: this.linkHref } : {})),
|
|
13
|
+
h("slot", null))) : (h("slot", null)))));
|
|
14
|
+
}
|
|
15
|
+
getCssClassMap() {
|
|
16
|
+
return {
|
|
17
|
+
[this.listType]: true,
|
|
18
|
+
['flush-before']: this.flushBefore ? true : false
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
static get is() { return "list-item"; }
|
|
22
|
+
static get encapsulation() { return "shadow"; }
|
|
23
|
+
static get originalStyleUrls() { return {
|
|
24
|
+
"$": ["list-item.scss"]
|
|
25
|
+
}; }
|
|
26
|
+
static get styleUrls() { return {
|
|
27
|
+
"$": ["list-item.css"]
|
|
28
|
+
}; }
|
|
29
|
+
static get properties() { return {
|
|
30
|
+
"listType": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"mutable": false,
|
|
33
|
+
"complexType": {
|
|
34
|
+
"original": "'list-primary' | 'list-footer' | 'breadcrumb'",
|
|
35
|
+
"resolved": "\"breadcrumb\" | \"list-footer\" | \"list-primary\"",
|
|
36
|
+
"references": {}
|
|
37
|
+
},
|
|
38
|
+
"required": false,
|
|
39
|
+
"optional": false,
|
|
40
|
+
"docs": {
|
|
41
|
+
"tags": [],
|
|
42
|
+
"text": ""
|
|
43
|
+
},
|
|
44
|
+
"attribute": "list-type",
|
|
45
|
+
"reflect": false,
|
|
46
|
+
"defaultValue": "'list-primary'"
|
|
47
|
+
},
|
|
48
|
+
"linkHref": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"mutable": false,
|
|
51
|
+
"complexType": {
|
|
52
|
+
"original": "string",
|
|
53
|
+
"resolved": "string",
|
|
54
|
+
"references": {}
|
|
55
|
+
},
|
|
56
|
+
"required": false,
|
|
57
|
+
"optional": true,
|
|
58
|
+
"docs": {
|
|
59
|
+
"tags": [],
|
|
60
|
+
"text": ""
|
|
61
|
+
},
|
|
62
|
+
"attribute": "link-href",
|
|
63
|
+
"reflect": false,
|
|
64
|
+
"defaultValue": "undefined"
|
|
65
|
+
},
|
|
66
|
+
"flushBefore": {
|
|
67
|
+
"type": "boolean",
|
|
68
|
+
"mutable": false,
|
|
69
|
+
"complexType": {
|
|
70
|
+
"original": "boolean",
|
|
71
|
+
"resolved": "boolean",
|
|
72
|
+
"references": {}
|
|
73
|
+
},
|
|
74
|
+
"required": false,
|
|
75
|
+
"optional": false,
|
|
76
|
+
"docs": {
|
|
77
|
+
"tags": [],
|
|
78
|
+
"text": ""
|
|
79
|
+
},
|
|
80
|
+
"attribute": "flush-before",
|
|
81
|
+
"reflect": false,
|
|
82
|
+
"defaultValue": "false"
|
|
83
|
+
},
|
|
84
|
+
"linkTarget": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"mutable": false,
|
|
87
|
+
"complexType": {
|
|
88
|
+
"original": "string | undefined",
|
|
89
|
+
"resolved": "string",
|
|
90
|
+
"references": {}
|
|
91
|
+
},
|
|
92
|
+
"required": false,
|
|
93
|
+
"optional": false,
|
|
94
|
+
"docs": {
|
|
95
|
+
"tags": [],
|
|
96
|
+
"text": ""
|
|
97
|
+
},
|
|
98
|
+
"attribute": "link-target",
|
|
99
|
+
"reflect": false,
|
|
100
|
+
"defaultValue": "'_self'"
|
|
101
|
+
}
|
|
102
|
+
}; }
|
|
103
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: block;
|
|
3
|
-
}
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
}
|
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
import { Component, Prop, h } from '@stencil/core';
|
|
2
|
-
import { format } from '../../utils/utils';
|
|
3
|
-
export class MyComponent {
|
|
4
|
-
getText() {
|
|
5
|
-
return format(this.first, this.middle, this.last);
|
|
6
|
-
}
|
|
7
|
-
render() {
|
|
8
|
-
return h("div", null,
|
|
9
|
-
"Hello, World! I'm ",
|
|
10
|
-
this.getText());
|
|
11
|
-
}
|
|
12
|
-
static get is() { return "my-component"; }
|
|
13
|
-
static get encapsulation() { return "shadow"; }
|
|
14
|
-
static get originalStyleUrls() { return {
|
|
15
|
-
"$": ["my-component.css"]
|
|
16
|
-
}; }
|
|
17
|
-
static get styleUrls() { return {
|
|
18
|
-
"$": ["my-component.css"]
|
|
19
|
-
}; }
|
|
20
|
-
static get properties() { return {
|
|
21
|
-
"first": {
|
|
22
|
-
"type": "string",
|
|
23
|
-
"mutable": false,
|
|
24
|
-
"complexType": {
|
|
25
|
-
"original": "string",
|
|
26
|
-
"resolved": "string",
|
|
27
|
-
"references": {}
|
|
28
|
-
},
|
|
29
|
-
"required": false,
|
|
30
|
-
"optional": false,
|
|
31
|
-
"docs": {
|
|
32
|
-
"tags": [],
|
|
33
|
-
"text": "The first name"
|
|
34
|
-
},
|
|
35
|
-
"attribute": "first",
|
|
36
|
-
"reflect": false
|
|
37
|
-
},
|
|
38
|
-
"middle": {
|
|
39
|
-
"type": "string",
|
|
40
|
-
"mutable": false,
|
|
41
|
-
"complexType": {
|
|
42
|
-
"original": "string",
|
|
43
|
-
"resolved": "string",
|
|
44
|
-
"references": {}
|
|
45
|
-
},
|
|
46
|
-
"required": false,
|
|
47
|
-
"optional": false,
|
|
48
|
-
"docs": {
|
|
49
|
-
"tags": [],
|
|
50
|
-
"text": "The middle name"
|
|
51
|
-
},
|
|
52
|
-
"attribute": "middle",
|
|
53
|
-
"reflect": false
|
|
54
|
-
},
|
|
55
|
-
"last": {
|
|
56
|
-
"type": "string",
|
|
57
|
-
"mutable": false,
|
|
58
|
-
"complexType": {
|
|
59
|
-
"original": "string",
|
|
60
|
-
"resolved": "string",
|
|
61
|
-
"references": {}
|
|
62
|
-
},
|
|
63
|
-
"required": false,
|
|
64
|
-
"optional": false,
|
|
65
|
-
"docs": {
|
|
66
|
-
"tags": [],
|
|
67
|
-
"text": "The last name"
|
|
68
|
-
},
|
|
69
|
-
"attribute": "last",
|
|
70
|
-
"reflect": false
|
|
71
|
-
}
|
|
72
|
-
}; }
|
|
73
|
-
}
|
|
1
|
+
import { Component, Prop, h } from '@stencil/core';
|
|
2
|
+
import { format } from '../../utils/utils';
|
|
3
|
+
export class MyComponent {
|
|
4
|
+
getText() {
|
|
5
|
+
return format(this.first, this.middle, this.last);
|
|
6
|
+
}
|
|
7
|
+
render() {
|
|
8
|
+
return h("div", null,
|
|
9
|
+
"Hello, World! I'm ",
|
|
10
|
+
this.getText());
|
|
11
|
+
}
|
|
12
|
+
static get is() { return "my-component"; }
|
|
13
|
+
static get encapsulation() { return "shadow"; }
|
|
14
|
+
static get originalStyleUrls() { return {
|
|
15
|
+
"$": ["my-component.css"]
|
|
16
|
+
}; }
|
|
17
|
+
static get styleUrls() { return {
|
|
18
|
+
"$": ["my-component.css"]
|
|
19
|
+
}; }
|
|
20
|
+
static get properties() { return {
|
|
21
|
+
"first": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"mutable": false,
|
|
24
|
+
"complexType": {
|
|
25
|
+
"original": "string",
|
|
26
|
+
"resolved": "string",
|
|
27
|
+
"references": {}
|
|
28
|
+
},
|
|
29
|
+
"required": false,
|
|
30
|
+
"optional": false,
|
|
31
|
+
"docs": {
|
|
32
|
+
"tags": [],
|
|
33
|
+
"text": "The first name"
|
|
34
|
+
},
|
|
35
|
+
"attribute": "first",
|
|
36
|
+
"reflect": false
|
|
37
|
+
},
|
|
38
|
+
"middle": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"mutable": false,
|
|
41
|
+
"complexType": {
|
|
42
|
+
"original": "string",
|
|
43
|
+
"resolved": "string",
|
|
44
|
+
"references": {}
|
|
45
|
+
},
|
|
46
|
+
"required": false,
|
|
47
|
+
"optional": false,
|
|
48
|
+
"docs": {
|
|
49
|
+
"tags": [],
|
|
50
|
+
"text": "The middle name"
|
|
51
|
+
},
|
|
52
|
+
"attribute": "middle",
|
|
53
|
+
"reflect": false
|
|
54
|
+
},
|
|
55
|
+
"last": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"mutable": false,
|
|
58
|
+
"complexType": {
|
|
59
|
+
"original": "string",
|
|
60
|
+
"resolved": "string",
|
|
61
|
+
"references": {}
|
|
62
|
+
},
|
|
63
|
+
"required": false,
|
|
64
|
+
"optional": false,
|
|
65
|
+
"docs": {
|
|
66
|
+
"tags": [],
|
|
67
|
+
"text": "The last name"
|
|
68
|
+
},
|
|
69
|
+
"attribute": "last",
|
|
70
|
+
"reflect": false
|
|
71
|
+
}
|
|
72
|
+
}; }
|
|
73
|
+
}
|