@ptcwebops/ptcw-design 0.4.6 → 0.4.7
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_4.cjs.entry.js → icon-asset_8.cjs.entry.js} +298 -219
- package/dist/cjs/{interfaces-0ecd8027.js → interfaces-574e6df7.js} +9 -9
- 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-breadcrumb.cjs.entry.js +12 -12
- package/dist/cjs/ptc-button.cjs.entry.js +65 -65
- package/dist/cjs/ptc-card-bottom.cjs.entry.js +31 -31
- package/dist/cjs/ptc-card-content.cjs.entry.js +31 -31
- package/dist/cjs/ptc-card-plm.cjs.entry.js +16 -16
- package/dist/cjs/ptc-card.cjs.entry.js +68 -68
- package/dist/cjs/ptc-countdown.cjs.entry.js +8 -8
- package/dist/cjs/ptc-date.cjs.entry.js +48 -48
- package/dist/cjs/ptc-footer.cjs.entry.js +8 -8
- package/dist/cjs/ptc-form.cjs.entry.js +104 -104
- package/dist/cjs/ptc-hero.cjs.entry.js +18 -18
- package/dist/cjs/ptc-img_2.cjs.entry.js +169 -169
- package/dist/cjs/ptc-input.cjs.entry.js +20 -20
- package/dist/cjs/ptc-link.cjs.entry.js +42 -42
- package/dist/cjs/ptc-list.cjs.entry.js +20 -20
- package/dist/cjs/ptc-lottie.cjs.entry.js +12 -12
- package/dist/cjs/ptc-modal.cjs.entry.js +103 -103
- package/dist/cjs/ptc-nav-item.cjs.entry.js +83 -83
- package/dist/cjs/ptc-nav.cjs.entry.js +8 -8
- package/dist/cjs/ptc-para.cjs.entry.js +39 -39
- package/dist/cjs/ptc-picture.cjs.entry.js +158 -158
- package/dist/cjs/ptc-responsive-wrapper.cjs.entry.js +54 -54
- package/dist/cjs/ptc-select.cjs.entry.js +24 -24
- package/dist/cjs/ptc-social-share.cjs.entry.js +64 -64
- package/dist/cjs/ptc-spacer.cjs.entry.js +35 -35
- package/dist/cjs/ptc-span.cjs.entry.js +23 -23
- package/dist/cjs/ptc-title.cjs.entry.js +44 -44
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +3 -0
- package/dist/collection/components/icon-asset/icon-asset.css +4 -4
- package/dist/collection/components/icon-asset/icon-asset.js +178 -178
- package/dist/collection/components/icon-asset/media/brands.svg +1381 -1381
- package/dist/collection/components/icon-asset/media/designer.svg +316 -316
- 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 +31 -0
- package/dist/collection/components/list-item/list-item.js +103 -84
- 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.js +170 -170
- 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 +282 -282
- 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-countdown/ptc-countdown.js +15 -15
- package/dist/collection/components/ptc-date/ptc-date.js +201 -201
- package/dist/collection/components/ptc-footer/ptc-footer.js +25 -25
- package/dist/collection/components/ptc-form/ptc-form.js +118 -118
- package/dist/collection/components/ptc-form/validation/FormValidation.js +4234 -4234
- package/dist/collection/components/ptc-hero/ptc-hero.js +67 -67
- package/dist/collection/components/ptc-img/ptc-img.js +314 -314
- package/dist/collection/components/ptc-input/ptc-input.js +133 -133
- package/dist/collection/components/ptc-link/ptc-link.js +198 -198
- package/dist/collection/components/ptc-list/ptc-list.js +63 -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 +44 -0
- package/dist/collection/components/ptc-minimized-footer/ptc-minimized-footer.js +17 -0
- package/dist/collection/components/ptc-minimized-header/ptc-minimized-header.css +77 -0
- package/dist/collection/components/ptc-minimized-header/ptc-minimized-header.js +80 -0
- package/dist/collection/components/ptc-mobile-select/ptc-mobile-select.js +220 -220
- package/dist/collection/components/ptc-modal/ptc-modal.js +252 -252
- 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-para/ptc-para.js +157 -157
- package/dist/collection/components/ptc-picture/ptc-picture.js +428 -428
- package/dist/collection/components/ptc-previous-url/ptc-previous-url.css +24 -0
- package/dist/collection/components/ptc-previous-url/ptc-previous-url.js +54 -0
- 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-select/ptc-select.js +105 -105
- 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.css +16 -0
- package/dist/collection/components/ptc-svg-btn/ptc-svg-btn.js +71 -69
- package/dist/collection/components/ptc-title/ptc-title.js +231 -231
- package/dist/collection/index.js +1 -1
- package/dist/collection/media/svg-imgs/Back-arrow.svg +11 -0
- 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 +18 -0
- package/dist/custom-elements/index.js +2056 -1991
- package/dist/esm/{icon-asset_4.entry.js → icon-asset_8.entry.js} +295 -220
- package/dist/esm/{interfaces-c1c73092.js → interfaces-7c0243be.js} +9 -9
- 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-breadcrumb.entry.js +12 -12
- package/dist/esm/ptc-button.entry.js +65 -65
- package/dist/esm/ptc-card-bottom.entry.js +31 -31
- package/dist/esm/ptc-card-content.entry.js +31 -31
- package/dist/esm/ptc-card-plm.entry.js +16 -16
- package/dist/esm/ptc-card.entry.js +68 -68
- package/dist/esm/ptc-countdown.entry.js +8 -8
- package/dist/esm/ptc-date.entry.js +48 -48
- package/dist/esm/ptc-footer.entry.js +8 -8
- package/dist/esm/ptc-form.entry.js +104 -104
- package/dist/esm/ptc-hero.entry.js +18 -18
- package/dist/esm/ptc-img_2.entry.js +169 -169
- package/dist/esm/ptc-input.entry.js +20 -20
- package/dist/esm/ptc-link.entry.js +42 -42
- package/dist/esm/ptc-list.entry.js +20 -20
- package/dist/esm/ptc-lottie.entry.js +12 -12
- package/dist/esm/ptc-modal.entry.js +103 -103
- package/dist/esm/ptc-nav-item.entry.js +83 -83
- package/dist/esm/ptc-nav.entry.js +8 -8
- package/dist/esm/ptc-para.entry.js +39 -39
- package/dist/esm/ptc-picture.entry.js +158 -158
- package/dist/esm/ptc-responsive-wrapper.entry.js +54 -54
- package/dist/esm/ptc-select.entry.js +24 -24
- package/dist/esm/ptc-social-share.entry.js +64 -64
- package/dist/esm/ptc-spacer.entry.js +35 -35
- package/dist/esm/ptc-span.entry.js +23 -23
- package/dist/esm/ptc-title.entry.js +44 -44
- package/dist/esm/ptcw-design.js +1 -1
- package/dist/ptcw-design/media/brands.svg +1381 -1381
- package/dist/ptcw-design/media/designer.svg +316 -316
- 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-1e39bc14.entry.js → p-894e8c85.entry.js} +1 -1
- package/dist/ptcw-design/{p-439c9e49.entry.js → p-e87c04ae.entry.js} +2 -2
- package/dist/ptcw-design/{p-27538cac.entry.js → p-f2f1c015.entry.js} +1 -1
- package/dist/ptcw-design/ptcw-design.css +1 -1
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/ptcw-design/validation/FormValidation.js +4234 -4234
- package/dist/types/components/icon-asset/icon-asset.d.ts +32 -32
- package/dist/types/components/list-item/list-item.d.ts +8 -7
- package/dist/types/components/my-component/my-component.d.ts +16 -16
- package/dist/types/components/ptc-announcement/ptc-announcement.d.ts +35 -35
- 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-countdown/ptc-countdown.d.ts +3 -3
- package/dist/types/components/ptc-date/ptc-date.d.ts +41 -41
- package/dist/types/components/ptc-footer/ptc-footer.d.ts +3 -3
- package/dist/types/components/ptc-form/ptc-form.d.ts +11 -11
- package/dist/types/components/ptc-hero/ptc-hero.d.ts +12 -12
- package/dist/types/components/ptc-img/ptc-img.d.ts +51 -51
- package/dist/types/components/ptc-input/ptc-input.d.ts +19 -19
- 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 -0
- package/dist/types/components/ptc-minimized-header/ptc-minimized-header.d.ts +6 -0
- 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 +82 -82
- package/dist/types/components/ptc-previous-url/ptc-previous-url.d.ts +5 -0
- package/dist/types/components/ptc-responsive-wrapper/ptc-responsive-wrapper.d.ts +8 -8
- package/dist/types/components/ptc-select/ptc-select.d.ts +9 -9
- 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.d.ts +77 -26
- 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 +58 -58
- package/readme.md +11 -11
- package/dist/cjs/list-item.cjs.entry.js +0 -29
- package/dist/esm/list-item.entry.js +0 -25
- package/dist/ptcw-design/p-80c03571.entry.js +0 -1
- /package/dist/ptcw-design/{p-50e52c88.js → p-ee1183b2.js} +0 -0
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2018
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2018
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -7,97 +7,147 @@ const _commonjsHelpers = require('./_commonjsHelpers-119ffc74.js');
|
|
|
7
7
|
|
|
8
8
|
const iconAssetCss = ".svg-inline--fa.sc-icon-asset,svg.sc-icon-asset:not(:root).svg-inline--fa{overflow:visible}.svg-inline--fa.sc-icon-asset{display:inline-block;font-size:inherit;height:1em;vertical-align:-.125em}.svg-inline--fa.fa-lg.sc-icon-asset{vertical-align:-.225em}.svg-inline--fa.fa-w-1.sc-icon-asset{width:.0625em}.svg-inline--fa.fa-w-2.sc-icon-asset{width:.125em}.svg-inline--fa.fa-w-3.sc-icon-asset{width:.1875em}.svg-inline--fa.fa-w-4.sc-icon-asset{width:.25em}.svg-inline--fa.fa-w-5.sc-icon-asset{width:.3125em}.svg-inline--fa.fa-w-6.sc-icon-asset{width:.375em}.svg-inline--fa.fa-w-7.sc-icon-asset{width:.4375em}.svg-inline--fa.fa-w-8.sc-icon-asset{width:.5em}.svg-inline--fa.fa-w-9.sc-icon-asset{width:.5625em}.svg-inline--fa.fa-w-10.sc-icon-asset{width:.625em}.svg-inline--fa.fa-w-11.sc-icon-asset{width:.6875em}.svg-inline--fa.fa-w-12.sc-icon-asset{width:.75em}.svg-inline--fa.fa-w-13.sc-icon-asset{width:.8125em}.svg-inline--fa.fa-w-14.sc-icon-asset{width:.875em}.svg-inline--fa.fa-w-15.sc-icon-asset{width:.9375em}.svg-inline--fa.fa-w-16.sc-icon-asset{width:1em}.svg-inline--fa.fa-w-17.sc-icon-asset{width:1.0625em}.svg-inline--fa.fa-w-18.sc-icon-asset{width:1.125em}.svg-inline--fa.fa-w-19.sc-icon-asset{width:1.1875em}.svg-inline--fa.fa-w-20.sc-icon-asset{width:1.25em}.svg-inline--fa.fa-pull-left.sc-icon-asset{margin-right:.3em;width:auto}.svg-inline--fa.fa-pull-right.sc-icon-asset{margin-left:.3em;width:auto}.svg-inline--fa.fa-border.sc-icon-asset{height:1.5em}.svg-inline--fa.fa-li.sc-icon-asset{width:2em}.svg-inline--fa.fa-fw.sc-icon-asset{width:1.25em}.fa-layers.sc-icon-asset svg.svg-inline--fa.sc-icon-asset{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.fa-layers.sc-icon-asset{display:inline-block;height:1em;position:relative;text-align:center;vertical-align:-.125em;width:1em}.fa-layers.sc-icon-asset svg.svg-inline--fa.sc-icon-asset{-webkit-transform-origin:center center;transform-origin:center center}.fa-layers-counter.sc-icon-asset,.fa-layers-text.sc-icon-asset{display:inline-block;position:absolute;text-align:center}.fa-layers-text.sc-icon-asset{left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-transform-origin:center center;transform-origin:center center}.fa-layers-counter.sc-icon-asset{background-color:#ff253a;border-radius:1em;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;height:1.5em;line-height:1;max-width:5em;min-width:1.5em;overflow:hidden;padding:.25em;right:0;text-overflow:ellipsis;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top right;transform-origin:top right}.fa-layers-bottom-right.sc-icon-asset{bottom:0;right:0;top:auto;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:bottom right;transform-origin:bottom right}.fa-layers-bottom-left.sc-icon-asset{bottom:0;left:0;right:auto;top:auto;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:bottom left;transform-origin:bottom left}.fa-layers-top-right.sc-icon-asset{right:0;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top right;transform-origin:top right}.fa-layers-top-left.sc-icon-asset{left:0;right:auto;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top left;transform-origin:top left}.fa-lg.sc-icon-asset{font-size:1.33333em;line-height:.75em;vertical-align:-.0667em}.fa-xs.sc-icon-asset{font-size:.75em}.fa-sm.sc-icon-asset{font-size:.875em}.fa-1x.sc-icon-asset{font-size:1em}.fa-2x.sc-icon-asset{font-size:2em}.fa-3x.sc-icon-asset{font-size:3em}.fa-4x.sc-icon-asset{font-size:4em}.fa-5x.sc-icon-asset{font-size:5em}.fa-6x.sc-icon-asset{font-size:6em}.fa-7x.sc-icon-asset{font-size:7em}.fa-8x.sc-icon-asset{font-size:8em}.fa-9x.sc-icon-asset{font-size:9em}.fa-10x.sc-icon-asset{font-size:10em}.fa-fw.sc-icon-asset{text-align:center;width:1.25em}.fa-ul.sc-icon-asset{list-style-type:none;margin-left:2.5em;padding-left:0}.fa-ul.sc-icon-asset>li.sc-icon-asset{position:relative}.fa-li.sc-icon-asset{left:-2em;position:absolute;text-align:center;width:2em;line-height:inherit}.fa-border.sc-icon-asset{border:.08em solid #eee;border-radius:.1em;padding:.2em .25em .15em}.fa-pull-left.sc-icon-asset{float:left}.fa-pull-right.sc-icon-asset{float:right}.fa.fa-pull-left.sc-icon-asset,.fab.fa-pull-left.sc-icon-asset,.fal.fa-pull-left.sc-icon-asset,.far.fa-pull-left.sc-icon-asset,.fas.fa-pull-left.sc-icon-asset{margin-right:.3em}.fa.fa-pull-right.sc-icon-asset,.fab.fa-pull-right.sc-icon-asset,.fal.fa-pull-right.sc-icon-asset,.far.fa-pull-right.sc-icon-asset,.fas.fa-pull-right.sc-icon-asset{margin-left:.3em}.fa-spin.sc-icon-asset{-webkit-animation:fa-spin 2s linear infinite;animation:fa-spin 2s linear infinite}.fa-pulse.sc-icon-asset{-webkit-animation:fa-spin 1s steps(8) infinite;animation:fa-spin 1s steps(8) infinite}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.fa-rotate-90.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)\";-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)\";-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)\";-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)\";-webkit-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical.sc-icon-asset{-webkit-transform:scaleY(-1);transform:scaleY(-1)}.fa-flip-both.sc-icon-asset,.fa-flip-horizontal.fa-flip-vertical.sc-icon-asset,.fa-flip-vertical.sc-icon-asset{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)\"}.fa-flip-both.sc-icon-asset,.fa-flip-horizontal.fa-flip-vertical.sc-icon-asset{-webkit-transform:scale(-1);transform:scale(-1)}.sc-icon-asset:root .fa-flip-both.sc-icon-asset,.sc-icon-asset:root .fa-flip-horizontal.sc-icon-asset,.sc-icon-asset:root .fa-flip-vertical.sc-icon-asset,.sc-icon-asset:root .fa-rotate-90.sc-icon-asset,.sc-icon-asset:root .fa-rotate-180.sc-icon-asset,.sc-icon-asset:root .fa-rotate-270.sc-icon-asset{-webkit-filter:none;filter:none}.fa-stack.sc-icon-asset{display:inline-block;height:2em;position:relative;width:2.5em}.fa-stack-1x.sc-icon-asset,.fa-stack-2x.sc-icon-asset{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.svg-inline--fa.fa-stack-1x.sc-icon-asset{height:1em;width:1.25em}.svg-inline--fa.fa-stack-2x.sc-icon-asset{height:2em;width:2.5em}.fa-inverse.sc-icon-asset{color:#fff}.sr-only.sc-icon-asset{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.sr-only-focusable.sc-icon-asset:active,.sr-only-focusable.sc-icon-asset:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}.svg-inline--fa.sc-icon-asset .fa-primary.sc-icon-asset{fill:var(--fa-primary-color,currentColor);opacity:1;opacity:var(--fa-primary-opacity,1)}.svg-inline--fa.sc-icon-asset .fa-secondary.sc-icon-asset{fill:var(--fa-secondary-color,currentColor)}.svg-inline--fa.sc-icon-asset .fa-secondary.sc-icon-asset,.svg-inline--fa.fa-swap-opacity.sc-icon-asset .fa-primary.sc-icon-asset{opacity:.4;opacity:var(--fa-secondary-opacity,.4)}.svg-inline--fa.fa-swap-opacity.sc-icon-asset .fa-secondary.sc-icon-asset{opacity:1;opacity:var(--fa-primary-opacity,1)}.svg-inline--fa.sc-icon-asset mask.sc-icon-asset .fa-primary.sc-icon-asset,.svg-inline--fa.sc-icon-asset mask.sc-icon-asset .fa-secondary.sc-icon-asset{fill:#000}.fad.fa-inverse.sc-icon-asset{color:#fff}icon-asset.sc-icon-asset{vertical-align:middle}svg.sc-icon-asset{transition:all var(--ptc-transition-medium) var(--ptc-standard-ease)}svg.x-small.sc-icon-asset{width:var(--ptc-font-size-x-small);height:var(--ptc-font-size-x-small)}svg.small.sc-icon-asset{width:var(--ptc-font-size-small);height:var(--ptc-font-size-small)}svg.large.sc-icon-asset{width:var(--ptc-font-size-large);height:var(--ptc-font-size-large)}svg.x-large.sc-icon-asset{width:var(--ptc-font-size-x-large);height:var(--ptc-font-size-x-large)}svg.xx-large.sc-icon-asset{width:var(--ptc-font-size-xx-large);height:var(--ptc-font-size-xx-large)}svg.white.sc-icon-asset{fill:var(--color-white)}svg.black.sc-icon-asset{fill:var(--color-black)}svg.ptc-green.sc-icon-asset{fill:var(--color-primary-green)}svg.gray.sc-icon-asset{fill:var(--color-gray-06)}svg.inherit.sc-icon-asset{fill:inherit}";
|
|
9
9
|
|
|
10
|
-
let IconAsset = class {
|
|
11
|
-
constructor(hostRef) {
|
|
12
|
-
index.registerInstance(this, hostRef);
|
|
13
|
-
/**
|
|
14
|
-
* Icon Size
|
|
15
|
-
*/
|
|
16
|
-
this.size = 'small';
|
|
17
|
-
/**
|
|
18
|
-
* Icon Type
|
|
19
|
-
*/
|
|
20
|
-
this.type = 'regular';
|
|
21
|
-
/**
|
|
22
|
-
* Icon Spin Animation (not valid for ptc type)
|
|
23
|
-
*/
|
|
24
|
-
this.spin = '';
|
|
25
|
-
/**
|
|
26
|
-
* Icon Pulse Animation (not valid for ptc type)
|
|
27
|
-
*/
|
|
28
|
-
this.pulse = '';
|
|
29
|
-
/**
|
|
30
|
-
* Icon Color
|
|
31
|
-
*/
|
|
32
|
-
this.color = 'default';
|
|
33
|
-
this.regularSprite = index.getAssetPath('./media/regular.svg');
|
|
34
|
-
this.solidSprite = index.getAssetPath('./media/solid.svg');
|
|
35
|
-
this.brandSprite = index.getAssetPath('./media/brands.svg');
|
|
36
|
-
this.ptcSprite = index.getAssetPath('./media/designer.svg');
|
|
37
|
-
}
|
|
38
|
-
render() {
|
|
39
|
-
const classMap = this.getCssClassMap();
|
|
40
|
-
if (this.type == 'brands') {
|
|
41
|
-
return (index.h(index.Host, null, index.h("svg", { class: classMap }, index.h("use", { href: `${this.brandSprite}#${this.name}` }))));
|
|
42
|
-
}
|
|
43
|
-
else if (this.type == 'solid') {
|
|
44
|
-
return (index.h(index.Host, null, index.h("svg", { class: classMap }, index.h("use", { href: `${this.solidSprite}#${this.name}` }))));
|
|
45
|
-
}
|
|
46
|
-
else if (this.type == 'ptc') {
|
|
47
|
-
return (index.h(index.Host, null, index.h("svg", { class: classMap }, index.h("use", { href: `${this.ptcSprite}#${this.name}` }))));
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
return (index.h(index.Host, null, index.h("svg", { class: classMap }, index.h("use", { href: `${this.regularSprite}#${this.name}` }))));
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
getCssClassMap() {
|
|
54
|
-
return {
|
|
55
|
-
[this.size]: true,
|
|
56
|
-
[this.spin]: true,
|
|
57
|
-
[this.pulse]: true,
|
|
58
|
-
[this.color]: true,
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
static get assetsDirs() { return ["media"]; }
|
|
62
|
-
};
|
|
10
|
+
let IconAsset = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
/**
|
|
14
|
+
* Icon Size
|
|
15
|
+
*/
|
|
16
|
+
this.size = 'small';
|
|
17
|
+
/**
|
|
18
|
+
* Icon Type
|
|
19
|
+
*/
|
|
20
|
+
this.type = 'regular';
|
|
21
|
+
/**
|
|
22
|
+
* Icon Spin Animation (not valid for ptc type)
|
|
23
|
+
*/
|
|
24
|
+
this.spin = '';
|
|
25
|
+
/**
|
|
26
|
+
* Icon Pulse Animation (not valid for ptc type)
|
|
27
|
+
*/
|
|
28
|
+
this.pulse = '';
|
|
29
|
+
/**
|
|
30
|
+
* Icon Color
|
|
31
|
+
*/
|
|
32
|
+
this.color = 'default';
|
|
33
|
+
this.regularSprite = index.getAssetPath('./media/regular.svg');
|
|
34
|
+
this.solidSprite = index.getAssetPath('./media/solid.svg');
|
|
35
|
+
this.brandSprite = index.getAssetPath('./media/brands.svg');
|
|
36
|
+
this.ptcSprite = index.getAssetPath('./media/designer.svg');
|
|
37
|
+
}
|
|
38
|
+
render() {
|
|
39
|
+
const classMap = this.getCssClassMap();
|
|
40
|
+
if (this.type == 'brands') {
|
|
41
|
+
return (index.h(index.Host, null, index.h("svg", { class: classMap }, index.h("use", { href: `${this.brandSprite}#${this.name}` }))));
|
|
42
|
+
}
|
|
43
|
+
else if (this.type == 'solid') {
|
|
44
|
+
return (index.h(index.Host, null, index.h("svg", { class: classMap }, index.h("use", { href: `${this.solidSprite}#${this.name}` }))));
|
|
45
|
+
}
|
|
46
|
+
else if (this.type == 'ptc') {
|
|
47
|
+
return (index.h(index.Host, null, index.h("svg", { class: classMap }, index.h("use", { href: `${this.ptcSprite}#${this.name}` }))));
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
return (index.h(index.Host, null, index.h("svg", { class: classMap }, index.h("use", { href: `${this.regularSprite}#${this.name}` }))));
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
getCssClassMap() {
|
|
54
|
+
return {
|
|
55
|
+
[this.size]: true,
|
|
56
|
+
[this.spin]: true,
|
|
57
|
+
[this.pulse]: true,
|
|
58
|
+
[this.color]: true,
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
static get assetsDirs() { return ["media"]; }
|
|
62
|
+
};
|
|
63
63
|
IconAsset.style = iconAssetCss;
|
|
64
64
|
|
|
65
|
+
const listItemCss = ":host(.list-primary){display:block}:host(.flush-before) li::before{content:\"\" !important}:host(.breadcrumb){display:inline-block}:host(.breadcrumb) li{position:relative;display:inline-block;color:white;font-weight:700;font-size:12px;line-height:14px}:host(.breadcrumb) li::before{content:\"/\";top:0;left:0}:host(.breadcrumb) li a.item-link{color:white;font-weight:var(--ptc-font-weight-bold) !important;font-size:var(--ptc-font-size-x-small) !important;line-height:14px;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:2px;text-decoration-thickness:1px;outline:none;transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-acceletated-ease)}:host(.breadcrumb) li a.item-link:hover{text-decoration:underline;text-decoration-color:#3DAB49;outline:none}:host(:not(.flush-before)) li::before{margin-right:2px}:host(.list-footer) li{display:inline-block;font-size:13px;font-weight:var(--ptc-font-weight-normal);font-style:normal;font-stretch:normal;line-height:1.3;letter-spacing:normal;color:var(--color-white);margin:0 0.5rem}:host(.list-footer) li a{color:var(--color-white-grey);border-bottom:1px solid transparent;display:inline-block;text-decoration:none}:host(.list-footer) li a:hover,:host(.list-footer) li a:focus,:host(.list-footer) li a:active{text-decoration:none;border-bottom:1px solid var(--color-secondary-turtlegreen);color:var(--color-white-grey);transition:border ease-in-out 250ms}:host(.list-footer) li a:focus{outline:3px solid #0092D1;outline-offset:2px;border-radius:4px;text-decoration:none;border-color:transparent !important}";
|
|
66
|
+
|
|
67
|
+
let ListItem = class {
|
|
68
|
+
constructor(hostRef) {
|
|
69
|
+
index.registerInstance(this, hostRef);
|
|
70
|
+
this.listType = 'list-primary';
|
|
71
|
+
this.linkHref = undefined;
|
|
72
|
+
this.flushBefore = false;
|
|
73
|
+
this.linkTarget = '_self';
|
|
74
|
+
}
|
|
75
|
+
render() {
|
|
76
|
+
const classMap = this.getCssClassMap();
|
|
77
|
+
return (index.h(index.Host, { class: classMap }, index.h("li", null, this.linkHref ? (index.h("a", Object.assign({ class: "item-link", target: this.linkTarget }, (this.linkHref ? { href: this.linkHref } : {})), index.h("slot", null))) : (index.h("slot", null)))));
|
|
78
|
+
}
|
|
79
|
+
getCssClassMap() {
|
|
80
|
+
return {
|
|
81
|
+
[this.listType]: true,
|
|
82
|
+
['flush-before']: this.flushBefore ? true : false
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
ListItem.style = listItemCss;
|
|
87
|
+
|
|
65
88
|
const ptcAnnouncementCss = ":host{display:block}.announcement{width:100%;position:relative;background-color:#e4e7e9;z-index:860;background-size:cover;background-repeat:repeat-x;border:1px solid var(--color-secondary-turtlegreen);-webkit-box-shadow:1px 1px 9px 0 rgba(0, 0, 0, 0.56);box-shadow:1px 1px 9px 0 rgba(0, 0, 0, 0.56);z-index:999;display:none}.visible{display:block}.content-wrapper{display:flex;padding:5px 15px;margin:0 auto;align-items:center;justify-content:space-between}@media screen and (min-width: 768px){.content-wrapper{padding:10px 15px}}@media screen and (min-width: 768px){.temp-container{width:750px}}@media screen and (min-width: 992px){.temp-container{width:970px}}@media screen and (min-width: 1200px){.temp-container{width:1170px}}@media screen and (min-width: 1440px){.temp-container{width:1400px}}@media screen and (min-width: 1600px){.temp-container{width:1560px}}.left-content{display:flex;flex-basis:82%;flex-direction:column}@media screen and (min-width: 768px){.left-content{align-items:flex-start;justify-content:flex-start}}.title{flex-basis:18%;font-family:Raleway;font-size:13px;font-weight:800;font-stretch:normal;font-style:normal;line-height:2.6;letter-spacing:1px;text-align:left;color:#40434a;text-transform:uppercase}.ptc-svg-btn{flex-basis:18%}.bar-close{padding-right:15px}.description{flex-basis:82%;font-family:Raleway;font-size:13px;font-weight:500;font-stretch:normal;font-style:normal;line-height:1.4;letter-spacing:normal;text-align:left;color:#40434a;}a{color:var(--color-blue-07);-webkit-transition:color 0.3s ease;-o-transition:color 0.3s ease;transition:color 0.3s ease;font-weight:700;text-decoration:underline;margin-left:16px}a:hover{color:var(--color-blue-08)}a:focus{outline:3px solid var(--color-blue-07);outline-offset:0.25rem;border-radius:4px}a:visited{color:var(--color-blue-09)}@media (min-width: 768px){.bar-close{padding-right:0px}}@media (min-width: 992px){.left-content{flex-direction:row;align-items:center}.title{font-size:14px;font-weight:800;line-height:1.86;letter-spacing:1.4px}.description{font-size:16px;font-weight:500;line-height:1.6}}";
|
|
66
89
|
|
|
67
|
-
let PtcAnnouncement = class {
|
|
68
|
-
constructor(hostRef) {
|
|
69
|
-
index.registerInstance(this, hostRef);
|
|
70
|
-
this.close = index.createEvent(this, "close", 7);
|
|
71
|
-
/**
|
|
72
|
-
* bar title
|
|
73
|
-
*/
|
|
74
|
-
this.barTitle = "";
|
|
75
|
-
/**
|
|
76
|
-
* bar description
|
|
77
|
-
*/
|
|
78
|
-
this.Description = "";
|
|
79
|
-
/**
|
|
80
|
-
* Link Url
|
|
81
|
-
*/
|
|
82
|
-
this.linkUrl = '#';
|
|
83
|
-
this.closeClick = () => {
|
|
84
|
-
this.visible = false;
|
|
85
|
-
this.close.emit();
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
render() {
|
|
89
|
-
const classMap = this.getCssClassMap();
|
|
90
|
-
return (index.h(index.Host, null, index.h("div", { class: classMap, part: "part-announcement" }, index.h("div", { class: this.tempContainer ? 'content-wrapper temp-container' : 'content-wrapper' }, index.h("div", { class: "left-content", part: "part-left-content" }, !!this.barTitle ? index.h("div", { class: "title" }, this.barTitle) : null, index.h("div", { class: "description" }, !!this.Description ? index.h("span", null, this.Description) : null, !!this.linkText ? (index.h("a", { href: this.linkUrl, title: this.linkText }, this.linkText)) : null)), index.h("ptc-svg-btn", { class: "bar-close", "svg-name": "close", onClick: this.closeClick })))));
|
|
91
|
-
}
|
|
92
|
-
getCssClassMap() {
|
|
93
|
-
return {
|
|
94
|
-
['announcement']: true,
|
|
95
|
-
[this.visible ? 'visible' : '']: true,
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
};
|
|
90
|
+
let PtcAnnouncement = class {
|
|
91
|
+
constructor(hostRef) {
|
|
92
|
+
index.registerInstance(this, hostRef);
|
|
93
|
+
this.close = index.createEvent(this, "close", 7);
|
|
94
|
+
/**
|
|
95
|
+
* bar title
|
|
96
|
+
*/
|
|
97
|
+
this.barTitle = "";
|
|
98
|
+
/**
|
|
99
|
+
* bar description
|
|
100
|
+
*/
|
|
101
|
+
this.Description = "";
|
|
102
|
+
/**
|
|
103
|
+
* Link Url
|
|
104
|
+
*/
|
|
105
|
+
this.linkUrl = '#';
|
|
106
|
+
this.closeClick = () => {
|
|
107
|
+
this.visible = false;
|
|
108
|
+
this.close.emit();
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
render() {
|
|
112
|
+
const classMap = this.getCssClassMap();
|
|
113
|
+
return (index.h(index.Host, null, index.h("div", { class: classMap, part: "part-announcement" }, index.h("div", { class: this.tempContainer ? 'content-wrapper temp-container' : 'content-wrapper' }, index.h("div", { class: "left-content", part: "part-left-content" }, !!this.barTitle ? index.h("div", { class: "title" }, this.barTitle) : null, index.h("div", { class: "description" }, !!this.Description ? index.h("span", null, this.Description) : null, !!this.linkText ? (index.h("a", { href: this.linkUrl, title: this.linkText }, this.linkText)) : null)), index.h("ptc-svg-btn", { class: "bar-close", "svg-name": "close", onClick: this.closeClick })))));
|
|
114
|
+
}
|
|
115
|
+
getCssClassMap() {
|
|
116
|
+
return {
|
|
117
|
+
['announcement']: true,
|
|
118
|
+
[this.visible ? 'visible' : '']: true,
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
};
|
|
99
122
|
PtcAnnouncement.style = ptcAnnouncementCss;
|
|
100
123
|
|
|
124
|
+
const ptcMinimizedFooterCss = ":host{-webkit-box-shadow:1px 1px 9px 0 rgba(0, 0, 0, 0.56);box-shadow:1px 1px 9px 0 rgba(0, 0, 0, 0.56);color:var(--color-white);position:relative;overflow:hidden;position:relative;z-index:1000;padding:0;height:60px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;background-color:#3b4550}.min-footer-nav-list{margin:0;padding:0;list-style:none}.min-footer-copyright-wrapper{text-align:center;position:relative;z-index:20}.min-footer-copyright-wrapper .min-footer-copyright-list{padding:0.9rem 0;display:flex;flex-direction:row}@media screen-sm{.min-footer-copyright-wrapper .min-footer-copyright-list{padding:0.9rem 0}}";
|
|
125
|
+
|
|
126
|
+
let PtcMinimizedFooter = class {
|
|
127
|
+
constructor(hostRef) {
|
|
128
|
+
index.registerInstance(this, hostRef);
|
|
129
|
+
}
|
|
130
|
+
render() {
|
|
131
|
+
return (index.h(index.Host, { class: "ptc-min-footer mini-footer" }, index.h("div", { class: "min-footer-copyright-wrapper" }, index.h("ul", { class: "min-footer-nav-list min-footer-copyright-list" }, index.h("slot", null)))));
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
PtcMinimizedFooter.style = ptcMinimizedFooterCss;
|
|
135
|
+
|
|
136
|
+
const ptcMinimizedHeaderCss = ":host{display:block}.minimized-header .header{overflow:hidden;height:48px;background-color:var(--color-gray-10);display:flex;align-items:center;justify-content:center}.minimized-header .header a{float:left;color:var(--color-black);text-align:center;padding:0px 0;text-decoration:none;font-size:18px;line-height:25px;border-radius:4px}.minimized-header .header a.mini-navbar-logo{font-size:25px;font-weight:bold}.minimized-header .header a.mini-navbar-logo img{width:65px;vertical-align:middle;border:0;height:auto}.mini-navbar-logo{outline:3px solid transparent}.mini-navbar-logo:focus{outline:3px solid #0092D1;outline-offset:2px;border-radius:4px;text-decoration:none;border-color:transparent !important}@media screen and (min-width: 768px){.temp-container{width:750px}}@media screen and (min-width: 992px){.temp-container{width:970px}}@media screen and (min-width: 1200px){.temp-container{width:1170px}}@media screen and (min-width: 1440px){.temp-container{width:1400px}}@media screen and (min-width: 1600px){.temp-container{width:1560px}}@media screen-xs{.minimized-header .header a{float:none;display:block;text-align:left}}";
|
|
137
|
+
|
|
138
|
+
let PtcMinimizedHeader = class {
|
|
139
|
+
constructor(hostRef) {
|
|
140
|
+
index.registerInstance(this, hostRef);
|
|
141
|
+
this.linkUrl = '#';
|
|
142
|
+
this.imgSrc = '';
|
|
143
|
+
this.imgAlt = 'PTC';
|
|
144
|
+
}
|
|
145
|
+
render() {
|
|
146
|
+
return (index.h(index.Host, null, index.h("div", { class: "minimized-header" }, index.h("div", { class: "header" }, index.h("div", { class: "temp-container" }, index.h("a", { class: "mini-navbar-logo", href: this.linkUrl }, index.h("img", { src: this.imgSrc, alt: this.imgAlt })))))));
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
PtcMinimizedHeader.style = ptcMinimizedHeaderCss;
|
|
150
|
+
|
|
101
151
|
var mobileSelect = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
102
152
|
/*!
|
|
103
153
|
* mobileSelect.js
|
|
@@ -814,152 +864,181 @@ var mobileSelect = _commonjsHelpers.createCommonjsModule(function (module, expor
|
|
|
814
864
|
|
|
815
865
|
const ptcMobileSelectCss = ".mobileSelect{position:relative;z-index:0;opacity:0;visibility:hidden;-webkit-transition:opacity 0.4s, z-index 0.4s;transition:opacity 0.4s, z-index 0.4s}.mobileSelect *{margin:0;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box}.mobileSelect .grayLayer{position:fixed;top:0;left:0;bottom:0;right:0;background:#eee;background:rgba(0, 0, 0, 0.7);z-index:888;display:block}.mobileSelect .content{width:100%;display:block;position:fixed;z-index:889;color:black;-webkit-transition:all 0.4s;transition:all 0.4s;bottom:-350px;left:0;background:white}.mobileSelect .content .fixWidth{width:90%;margin:0 auto;position:relative}.mobileSelect .content .fixWidth:after{content:\".\";display:block;height:0;clear:both;visibility:hidden}.mobileSelect .content .btnBar{border-bottom:1px solid #DCDCDC;font-size:15px;height:45px;position:relative;text-align:center;line-height:45px}.mobileSelect .content .btnBar .cancel,.mobileSelect .content .btnBar .ensure{height:45px;width:55px;cursor:pointer;position:absolute;top:0}.mobileSelect .content .btnBar .cancel{left:0;color:#666}.mobileSelect .content .btnBar .ensure{right:0;color:#1e83d3}.mobileSelect .content .btnBar .title{font-size:15px;padding:0 15%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.mobileSelect .content .panel:after{content:\".\";display:block;height:0;clear:both;visibility:hidden}.mobileSelect .content .panel .wheels{width:100%;height:200px;overflow:hidden}.mobileSelect .content .panel .wheel{position:relative;z-index:0;float:left;width:50%;height:200px;overflow:hidden;-webkit-transition:width 0.3s ease;transition:width 0.3s ease}.mobileSelect .content .panel .wheel .selectContainer{display:block;text-align:center;-webkit-transition:-webkit-transform 0.18s ease-out;transition:-webkit-transform 0.18s ease-out;transition:transform 0.18s ease-out;transition:transform 0.18s ease-out, -webkit-transform 0.18s ease-out}.mobileSelect .content .panel .wheel .selectContainer li{font-size:15px;display:block;height:40px;line-height:40px;cursor:pointer;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.mobileSelect .content .panel .selectLine{height:40px;width:100%;position:absolute;top:80px;pointer-events:none;-webkit-box-sizing:border-box;box-sizing:border-box;border-top:1px solid #DCDCDC;border-bottom:1px solid #DCDCDC}.mobileSelect .content .panel .shadowMask{position:absolute;top:0;width:100%;height:200px;background:-webkit-gradient(linear, left top, left bottom, from(#ffffff), color-stop(rgba(255, 255, 255, 0)), to(#ffffff));background:-webkit-linear-gradient(top, #ffffff, rgba(255, 255, 255, 0), #ffffff);background:linear-gradient(to bottom, #ffffff, rgba(255, 255, 255, 0), #ffffff);opacity:0.9;pointer-events:none}.mobileSelect-show{opacity:1;z-index:10000;visibility:visible}.mobileSelect-show .content{bottom:0}.mobile-select-wrapper{display:block}.mobile-select-wrapper div{display:inline;margin-right:10px;width:100%;font-family:var(--ptc-font-latin);font-weight:var(--ptc-font-weight-regular);font-size:var(--ptc-font-size-15);line-height:var(--ptc-line-height-18);color:var(--color-white);height:var(--ptc-line-height-18)}.mobileSelect .content{top:auto}.mobileSelect .content .btnBar{border-color:var(--color-gray-10)}.mobileSelect .content .btnBar .cancel,.mobileSelect .content .btnBar .ensure,.mobileSelect .content .btnBar .title{font-family:var(--ptc-font-latin);font-weight:var(--ptc-font-weight-semibold);font-size:var(--ptc-font-size-medium);line-height:var(--ptc-line-height-19)}.mobileSelect .content .btnBar .ensure,.mobileSelect .content .btnBar .cancel{transform:translateY(12.5px)}.mobileSelect .content .panel .wheel .selectContainer li{font-family:var(--ptc-font-latin);font-weight:var(--ptc-font-weight-semibold);font-size:var(--ptc-font-size-medium);line-height:var(--ptc-line-height-19);height:45px}ptc-responsive-wrapper.xsmall .mobile-select-wrapper,ptc-responsive-wrapper.small .mobile-select-wrapper{display:block}ptc-responsive-wrapper.medium .mobile-select-wrapper,ptc-responsive-wrapper.large .mobile-select-wrapper,ptc-responsive-wrapper.xlarge .mobile-select-wrapper,ptc-responsive-wrapper.xxlarge .mobile-select-wrapper,ptc-responsive-wrapper.large2k .mobile-select-wrapper,ptc-responsive-wrapper.large4k .mobile-select-wrapper{display:none}";
|
|
816
866
|
|
|
817
|
-
let PtcMobileSelect = class {
|
|
818
|
-
constructor(hostRef) {
|
|
819
|
-
index.registerInstance(this, hostRef);
|
|
820
|
-
/**
|
|
821
|
-
* Selected Id
|
|
822
|
-
* - initialize the id(string) of default wheel
|
|
823
|
-
*/
|
|
824
|
-
this.selectedId = '';
|
|
825
|
-
/**
|
|
826
|
-
* Confirm Text
|
|
827
|
-
* - translation goes here
|
|
828
|
-
*/
|
|
829
|
-
this.ensureBtnText = 'Confirm';
|
|
830
|
-
/**
|
|
831
|
-
* Cancel Text
|
|
832
|
-
* - translation goes here
|
|
833
|
-
*/
|
|
834
|
-
this.cancelBtnText = 'Cancel';
|
|
835
|
-
/**
|
|
836
|
-
* Mobile select list title (Optional)
|
|
837
|
-
*/
|
|
838
|
-
this.listTitle = undefined;
|
|
839
|
-
/**
|
|
840
|
-
* link url
|
|
841
|
-
*/
|
|
842
|
-
this.linkUrl = undefined;
|
|
843
|
-
}
|
|
844
|
-
render() {
|
|
845
|
-
return (index.h("div", { class: "mobile-select-wrapper" }, index.h("div", { id: this.triggerName }, this.selectedText), index.h("icon-asset", { type: "ptc", size: "x-small", name: "chevron-down", color: "white" })));
|
|
846
|
-
}
|
|
847
|
-
componentDidRender() {
|
|
848
|
-
let currentId = this.selectedId; //input current lang
|
|
849
|
-
let storeIndex = 0;
|
|
850
|
-
new mobileSelect({
|
|
851
|
-
trigger: `#${this.triggerName}`,
|
|
852
|
-
title: `${this.listTitle ? this.listTitle : ''}`,
|
|
853
|
-
wheels: this.wheelData ? [{ data: this.wheelData }] : [{ data: ['test1', 'test2'] }],
|
|
854
|
-
position: [0],
|
|
855
|
-
ensureBtnText: this.ensureBtnText,
|
|
856
|
-
cancelBtnText: this.cancelBtnText,
|
|
857
|
-
ensureBtnColor: 'var(--color-gray-12)',
|
|
858
|
-
cancelBtnColor: 'var(--color-gray-12)',
|
|
859
|
-
titleColor: 'var(--color-gray-12)',
|
|
860
|
-
onShow: function (e) {
|
|
861
|
-
if (currentId) {
|
|
862
|
-
let liEle = document.querySelectorAll('.selectContainer li');
|
|
863
|
-
liEle.forEach((currentValue, currentIndex) => {
|
|
864
|
-
if (currentValue.getAttribute('data-id') == currentId) {
|
|
865
|
-
storeIndex = currentIndex;
|
|
866
|
-
return;
|
|
867
|
-
}
|
|
868
|
-
});
|
|
869
|
-
e.locatePosition(0, storeIndex);
|
|
870
|
-
}
|
|
871
|
-
else {
|
|
872
|
-
return;
|
|
873
|
-
}
|
|
874
|
-
},
|
|
875
|
-
callback: function (indexArr, data) {
|
|
876
|
-
if (this.linkUrl !== undefined) {
|
|
877
|
-
window.location.href = this.linkUrl + '/' + data[0].id;
|
|
878
|
-
}
|
|
879
|
-
else {
|
|
880
|
-
console.log('index: ' + indexArr + ', id: ' + data[0].id + '; No link url founded!');
|
|
881
|
-
}
|
|
882
|
-
}.bind(this),
|
|
883
|
-
});
|
|
884
|
-
}
|
|
885
|
-
};
|
|
867
|
+
let PtcMobileSelect = class {
|
|
868
|
+
constructor(hostRef) {
|
|
869
|
+
index.registerInstance(this, hostRef);
|
|
870
|
+
/**
|
|
871
|
+
* Selected Id
|
|
872
|
+
* - initialize the id(string) of default wheel
|
|
873
|
+
*/
|
|
874
|
+
this.selectedId = '';
|
|
875
|
+
/**
|
|
876
|
+
* Confirm Text
|
|
877
|
+
* - translation goes here
|
|
878
|
+
*/
|
|
879
|
+
this.ensureBtnText = 'Confirm';
|
|
880
|
+
/**
|
|
881
|
+
* Cancel Text
|
|
882
|
+
* - translation goes here
|
|
883
|
+
*/
|
|
884
|
+
this.cancelBtnText = 'Cancel';
|
|
885
|
+
/**
|
|
886
|
+
* Mobile select list title (Optional)
|
|
887
|
+
*/
|
|
888
|
+
this.listTitle = undefined;
|
|
889
|
+
/**
|
|
890
|
+
* link url
|
|
891
|
+
*/
|
|
892
|
+
this.linkUrl = undefined;
|
|
893
|
+
}
|
|
894
|
+
render() {
|
|
895
|
+
return (index.h("div", { class: "mobile-select-wrapper" }, index.h("div", { id: this.triggerName }, this.selectedText), index.h("icon-asset", { type: "ptc", size: "x-small", name: "chevron-down", color: "white" })));
|
|
896
|
+
}
|
|
897
|
+
componentDidRender() {
|
|
898
|
+
let currentId = this.selectedId; //input current lang
|
|
899
|
+
let storeIndex = 0;
|
|
900
|
+
new mobileSelect({
|
|
901
|
+
trigger: `#${this.triggerName}`,
|
|
902
|
+
title: `${this.listTitle ? this.listTitle : ''}`,
|
|
903
|
+
wheels: this.wheelData ? [{ data: this.wheelData }] : [{ data: ['test1', 'test2'] }],
|
|
904
|
+
position: [0],
|
|
905
|
+
ensureBtnText: this.ensureBtnText,
|
|
906
|
+
cancelBtnText: this.cancelBtnText,
|
|
907
|
+
ensureBtnColor: 'var(--color-gray-12)',
|
|
908
|
+
cancelBtnColor: 'var(--color-gray-12)',
|
|
909
|
+
titleColor: 'var(--color-gray-12)',
|
|
910
|
+
onShow: function (e) {
|
|
911
|
+
if (currentId) {
|
|
912
|
+
let liEle = document.querySelectorAll('.selectContainer li');
|
|
913
|
+
liEle.forEach((currentValue, currentIndex) => {
|
|
914
|
+
if (currentValue.getAttribute('data-id') == currentId) {
|
|
915
|
+
storeIndex = currentIndex;
|
|
916
|
+
return;
|
|
917
|
+
}
|
|
918
|
+
});
|
|
919
|
+
e.locatePosition(0, storeIndex);
|
|
920
|
+
}
|
|
921
|
+
else {
|
|
922
|
+
return;
|
|
923
|
+
}
|
|
924
|
+
},
|
|
925
|
+
callback: function (indexArr, data) {
|
|
926
|
+
if (this.linkUrl !== undefined) {
|
|
927
|
+
window.location.href = this.linkUrl + '/' + data[0].id;
|
|
928
|
+
}
|
|
929
|
+
else {
|
|
930
|
+
console.log('index: ' + indexArr + ', id: ' + data[0].id + '; No link url founded!');
|
|
931
|
+
}
|
|
932
|
+
}.bind(this),
|
|
933
|
+
});
|
|
934
|
+
}
|
|
935
|
+
};
|
|
886
936
|
PtcMobileSelect.style = ptcMobileSelectCss;
|
|
887
937
|
|
|
888
|
-
const
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
938
|
+
const ptcPreviousUrlCss = ":host{display:block;margin-top:11px;background-color:var(--color-gray-10)}.back-to-videos{display:inline-block;font-family:var(--ptc-font-latin);font-style:normal;font-weight:var(--ptc-font-weight-semibold);font-size:var(--ptc-font-size-small);line-height:var(--ptc-line-height-dense)}.back-to-videos:hover{text-decoration:underline;text-decoration-color:var(--color-underline-green);outline:none}::slotted(*){transform:translate(-2px, -2px)}";
|
|
939
|
+
|
|
940
|
+
let PtcPreviousUrl = class {
|
|
941
|
+
constructor(hostRef) {
|
|
942
|
+
index.registerInstance(this, hostRef);
|
|
943
|
+
}
|
|
944
|
+
render() {
|
|
945
|
+
return (index.h(index.Host, null, index.h("list-item", { listType: 'breadcrumb', flushBefore: true, "link-href": this.href }, index.h("ptc-svg-btn", { class: "backarrow", "svg-name": "back-arrow", display: "inline-block" }), index.h("a", { class: "back-to-videos" }, this.text)), index.h("slot", null)));
|
|
946
|
+
}
|
|
947
|
+
};
|
|
948
|
+
PtcPreviousUrl.style = ptcPreviousUrlCss;
|
|
949
|
+
|
|
950
|
+
const closeSvg = `<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 42 41.485">
|
|
951
|
+
<g id="Group_1042" data-name="Group 1042" transform="rotate(180 108.25 87.993)">
|
|
952
|
+
<path id="Line_446" d="M0 0v39.486" class="cls-1" data-name="Line 446"></path>
|
|
953
|
+
<path id="Line_447" d="M0 0h40" class="cls-1" data-name="Line 447"></path>
|
|
954
|
+
<path id="Line_448" d="M0 33.592V0" class="cls-1" data-name="Line 448"></path>
|
|
955
|
+
<path id="Line_449" d="M23.994 0H0" class="cls-1" data-name="Line 449"></path>
|
|
956
|
+
<path id="Line_450" d="M0 0l17.596 17.596" class="cls-2" data-name="Line 450" transform="translate(187.229 147.226)"></path>
|
|
957
|
+
<path id="Line_451" d="M0 7.198L7.199 0" class="cls-2" data-name="Line 451" transform="translate(197.55 147.312)"></path>
|
|
958
|
+
<path id="Path_114" d="M0 7.2L7.2 0" class="cls-2" data-name="Path 114" transform="translate(187.313 157.549)"></path>
|
|
959
|
+
</g>
|
|
898
960
|
</svg>`;
|
|
899
961
|
|
|
900
|
-
const arrowSvgLeft = `<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
901
|
-
<g filter="url(#filter0_d_494_37)">
|
|
902
|
-
<circle cx="24" cy="22" r="20" fill="white"/>
|
|
903
|
-
<path d="M23.1444 16L23.1444 20.5762L31 20.5762L31 23.4239L23.1444 23.4239L23.1444 28L17 21.9669L23.1444 16Z" class="arrow"/>
|
|
904
|
-
</g>
|
|
905
|
-
<defs>
|
|
906
|
-
<filter id="filter0_d_494_37" x="0" y="0" width="48" height="48" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
907
|
-
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
908
|
-
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
|
|
909
|
-
<feOffset dy="2"/>
|
|
910
|
-
<feGaussianBlur stdDeviation="2"/>
|
|
911
|
-
<feComposite in2="hardAlpha" operator="out"/>
|
|
912
|
-
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
|
|
913
|
-
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_494_37"/>
|
|
914
|
-
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_494_37" result="shape"/>
|
|
915
|
-
</filter>
|
|
916
|
-
</defs>
|
|
917
|
-
</svg>
|
|
962
|
+
const arrowSvgLeft = `<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
963
|
+
<g filter="url(#filter0_d_494_37)">
|
|
964
|
+
<circle cx="24" cy="22" r="20" fill="white"/>
|
|
965
|
+
<path d="M23.1444 16L23.1444 20.5762L31 20.5762L31 23.4239L23.1444 23.4239L23.1444 28L17 21.9669L23.1444 16Z" class="arrow"/>
|
|
966
|
+
</g>
|
|
967
|
+
<defs>
|
|
968
|
+
<filter id="filter0_d_494_37" x="0" y="0" width="48" height="48" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
969
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
970
|
+
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
|
|
971
|
+
<feOffset dy="2"/>
|
|
972
|
+
<feGaussianBlur stdDeviation="2"/>
|
|
973
|
+
<feComposite in2="hardAlpha" operator="out"/>
|
|
974
|
+
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
|
|
975
|
+
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_494_37"/>
|
|
976
|
+
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_494_37" result="shape"/>
|
|
977
|
+
</filter>
|
|
978
|
+
</defs>
|
|
979
|
+
</svg>
|
|
980
|
+
`;
|
|
981
|
+
|
|
982
|
+
const arrowSvgRight = `<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
983
|
+
<g filter="url(#filter0_d_494_34)">
|
|
984
|
+
<circle cx="24" cy="22" r="20" fill="white"/>
|
|
985
|
+
<path d="M24.8556 16L24.8556 20.5762L17 20.5762L17 23.4239L24.8556 23.4239L24.8556 28L31 21.9669L24.8556 16Z" class="arrow"/>
|
|
986
|
+
</g>
|
|
987
|
+
<defs>
|
|
988
|
+
<filter id="filter0_d_494_34" x="0" y="0" width="48" height="48" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
989
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
990
|
+
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
|
|
991
|
+
<feOffset dy="2"/>
|
|
992
|
+
<feGaussianBlur stdDeviation="2"/>
|
|
993
|
+
<feComposite in2="hardAlpha" operator="out"/>
|
|
994
|
+
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
|
|
995
|
+
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_494_34"/>
|
|
996
|
+
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_494_34" result="shape"/>
|
|
997
|
+
</filter>
|
|
998
|
+
</defs>
|
|
999
|
+
</svg>
|
|
918
1000
|
`;
|
|
919
1001
|
|
|
920
|
-
const
|
|
921
|
-
<
|
|
922
|
-
<
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
<
|
|
930
|
-
|
|
931
|
-
<feComposite in2="hardAlpha" operator="out"/>
|
|
932
|
-
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
|
|
933
|
-
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_494_34"/>
|
|
934
|
-
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_494_34" result="shape"/>
|
|
935
|
-
</filter>
|
|
936
|
-
</defs>
|
|
937
|
-
</svg>
|
|
1002
|
+
const backarrow = `<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 311 512">
|
|
1003
|
+
<defs>
|
|
1004
|
+
<style>
|
|
1005
|
+
.cls-1 {
|
|
1006
|
+
fill: #fff;
|
|
1007
|
+
fill-rule: evenodd;
|
|
1008
|
+
}
|
|
1009
|
+
</style>
|
|
1010
|
+
</defs>
|
|
1011
|
+
<path class="cls-1" d="M251.762,512L311,452.638,114.774,256,311,59.362,251.762,0,0,252.29Z"/>
|
|
1012
|
+
</svg>
|
|
938
1013
|
`;
|
|
939
1014
|
|
|
940
|
-
const ptcSvgBtnCss = ":host{cursor:pointer}:host(.block){display:block}:host(.inline){display:inline}:host(.inline-block){display:inline-block}:host(.flex){display:flex}:host(:focus-visible){outline:none}:focus-visible{outline:none}.svg-close svg .cls-1,.svg-close svg .cls-2{fill:none;stroke-width:2px}.svg-close svg .cls-1{stroke:#40434A;stroke-linecap:square}.svg-close svg .cls-2{stroke:#40434A}.svg-close svg path{-webkit-transition:all 0.25s ease-in-out;-o-transition:all ease-in-out 0.25s;transition:all 0.25s ease-in-out}.svg-close svg .cls-1:first-child{-webkit-transform:translate(175.5px, 135.5px);-ms-transform:translate(175.5px, 135.5px);transform:translate(175.5px, 135.5px)}.svg-close svg .cls-1:nth-child(2){-webkit-transform:translate(175.5px, 174.985px);-ms-transform:translate(175.5px, 174.985px);transform:translate(175.5px, 174.985px)}.svg-close svg .cls-1:nth-child(3){-webkit-transform:translate(215.5px, 141.393px);-ms-transform:translate(215.5px, 141.393px);transform:translate(215.5px, 141.393px)}.svg-close svg .cls-1:nth-child(4){-webkit-transform:translate(175.5px, 135.5px);-ms-transform:translate(175.5px, 135.5px);transform:translate(175.5px, 135.5px)}.svg-close:hover svg .cls-1:first-child{-webkit-transform:translate(175.5px, 162px);-ms-transform:translate(175.5px, 162px);transform:translate(175.5px, 162px)}.svg-close:hover svg .cls-1:nth-child(2){-webkit-transform:translate(149px, 174.985px);-ms-transform:translate(149px, 174.985px);transform:translate(149px, 174.985px)}.svg-close:hover svg .cls-1:nth-child(3){-webkit-transform:translate(215.5px, 174px);-ms-transform:translate(215.5px, 174px);transform:translate(215.5px, 174px)}.svg-close:hover svg .cls-1:nth-child(4){-webkit-transform:translate(152.5px, 135.5px);-ms-transform:translate(152.5px, 135.5px);transform:translate(152.5px, 135.5px)}.svg-close.svg-close-white .cls-1{stroke:#fff}.slider-left,.slider-right{transition:all var(--ptc-transition-medium) var(--ptc-standard-ease)}.slider-left svg .arrow,.slider-right svg .arrow{fill:var(--color-primary-grey)}.slider-left:hover svg .arrow,.slider-right:hover svg .arrow{fill:var(--color-green-06)}";
|
|
1015
|
+
const ptcSvgBtnCss = ":host{cursor:pointer}:host(.block){display:block}:host(.inline){display:inline}:host(.inline-block){display:inline-block}:host(.flex){display:flex}:host(:focus-visible){outline:none}:host(.backarrow){margin:16px 8px 12px -2px}:focus-visible{outline:none}.svg-close svg .cls-1,.svg-close svg .cls-2{fill:none;stroke-width:2px}.svg-close svg .cls-1{stroke:#40434A;stroke-linecap:square}.svg-close svg .cls-2{stroke:#40434A}.svg-close svg path{-webkit-transition:all 0.25s ease-in-out;-o-transition:all ease-in-out 0.25s;transition:all 0.25s ease-in-out}.svg-close svg .cls-1:first-child{-webkit-transform:translate(175.5px, 135.5px);-ms-transform:translate(175.5px, 135.5px);transform:translate(175.5px, 135.5px)}.svg-close svg .cls-1:nth-child(2){-webkit-transform:translate(175.5px, 174.985px);-ms-transform:translate(175.5px, 174.985px);transform:translate(175.5px, 174.985px)}.svg-close svg .cls-1:nth-child(3){-webkit-transform:translate(215.5px, 141.393px);-ms-transform:translate(215.5px, 141.393px);transform:translate(215.5px, 141.393px)}.svg-close svg .cls-1:nth-child(4){-webkit-transform:translate(175.5px, 135.5px);-ms-transform:translate(175.5px, 135.5px);transform:translate(175.5px, 135.5px)}.svg-close:hover svg .cls-1:first-child{-webkit-transform:translate(175.5px, 162px);-ms-transform:translate(175.5px, 162px);transform:translate(175.5px, 162px)}.svg-close:hover svg .cls-1:nth-child(2){-webkit-transform:translate(149px, 174.985px);-ms-transform:translate(149px, 174.985px);transform:translate(149px, 174.985px)}.svg-close:hover svg .cls-1:nth-child(3){-webkit-transform:translate(215.5px, 174px);-ms-transform:translate(215.5px, 174px);transform:translate(215.5px, 174px)}.svg-close:hover svg .cls-1:nth-child(4){-webkit-transform:translate(152.5px, 135.5px);-ms-transform:translate(152.5px, 135.5px);transform:translate(152.5px, 135.5px)}.svg-close.svg-close-white .cls-1{stroke:#fff}.slider-left,.slider-right{transition:all var(--ptc-transition-medium) var(--ptc-standard-ease)}.slider-left svg .arrow,.slider-right svg .arrow{fill:var(--color-primary-grey)}.slider-left:hover svg .arrow,.slider-right:hover svg .arrow{fill:var(--color-green-06)}.backarrow{display:inline-block;fill:none;stroke-width:30px;stroke:var(--color-gray-10);stroke-linecap:square;height:10px;width:20px;position:relative;top:1px}";
|
|
941
1016
|
|
|
942
|
-
let PtcSvgBtn = class {
|
|
943
|
-
constructor(hostRef) {
|
|
944
|
-
index.registerInstance(this, hostRef);
|
|
945
|
-
/**
|
|
946
|
-
* Display
|
|
947
|
-
*/
|
|
948
|
-
this.display = 'block';
|
|
949
|
-
}
|
|
950
|
-
render() {
|
|
951
|
-
const classMap = this.getCssClassMap();
|
|
952
|
-
return (index.h(index.Host, { class: classMap }, !!this.svgName && this.svgName === 'close' ? index.h("div", { class: 'svg-close', innerHTML: closeSvg }) : null, !!this.svgName && this.svgName === 'slider-left' ? index.h("div", { class: 'slider-left', innerHTML: arrowSvgLeft }) : null, !!this.svgName && this.svgName === 'slider-right' ? index.h("div", { class: 'slider-right', innerHTML: arrowSvgRight }) : null));
|
|
953
|
-
}
|
|
954
|
-
getCssClassMap() {
|
|
955
|
-
return {
|
|
956
|
-
[this.display]: true
|
|
957
|
-
};
|
|
958
|
-
}
|
|
959
|
-
};
|
|
1017
|
+
let PtcSvgBtn = class {
|
|
1018
|
+
constructor(hostRef) {
|
|
1019
|
+
index.registerInstance(this, hostRef);
|
|
1020
|
+
/**
|
|
1021
|
+
* Display
|
|
1022
|
+
*/
|
|
1023
|
+
this.display = 'block';
|
|
1024
|
+
}
|
|
1025
|
+
render() {
|
|
1026
|
+
const classMap = this.getCssClassMap();
|
|
1027
|
+
return (index.h(index.Host, { class: classMap }, !!this.svgName && this.svgName === 'close' ? index.h("div", { class: 'svg-close', innerHTML: closeSvg }) : null, !!this.svgName && this.svgName === 'slider-left' ? index.h("div", { class: 'slider-left', innerHTML: arrowSvgLeft }) : null, !!this.svgName && this.svgName === 'slider-right' ? index.h("div", { class: 'slider-right', innerHTML: arrowSvgRight }) : null, !!this.svgName && this.svgName === 'back-arrow' ? index.h("div", { class: 'back-arrow', innerHTML: backarrow }) : null));
|
|
1028
|
+
}
|
|
1029
|
+
getCssClassMap() {
|
|
1030
|
+
return {
|
|
1031
|
+
[this.display]: true
|
|
1032
|
+
};
|
|
1033
|
+
}
|
|
1034
|
+
};
|
|
960
1035
|
PtcSvgBtn.style = ptcSvgBtnCss;
|
|
961
1036
|
|
|
962
1037
|
exports.icon_asset = IconAsset;
|
|
1038
|
+
exports.list_item = ListItem;
|
|
963
1039
|
exports.ptc_announcement = PtcAnnouncement;
|
|
1040
|
+
exports.ptc_minimized_footer = PtcMinimizedFooter;
|
|
1041
|
+
exports.ptc_minimized_header = PtcMinimizedHeader;
|
|
964
1042
|
exports.ptc_mobile_select = PtcMobileSelect;
|
|
1043
|
+
exports.ptc_previous_url = PtcPreviousUrl;
|
|
965
1044
|
exports.ptc_svg_btn = PtcSvgBtn;
|