@ptcwebops/ptcw-design 0.4.2 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/_commonjsHelpers-119ffc74.js +17 -0
- package/dist/cjs/icon-asset_5.cjs.entry.js +988 -0
- package/dist/cjs/{index-e39de343.js → index-3adcf9f4.js} +7 -0
- package/dist/cjs/interfaces-0ecd8027.js +15 -0
- package/dist/cjs/list-item.cjs.entry.js +29 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/lottie-player.cjs.entry.js +3 -16
- package/dist/cjs/my-component.cjs.entry.js +1 -1
- package/dist/cjs/ptc-breadcrumb.cjs.entry.js +23 -0
- package/dist/cjs/ptc-button.cjs.entry.js +76 -0
- package/dist/cjs/ptc-card-bottom.cjs.entry.js +42 -0
- package/dist/cjs/ptc-card-content.cjs.entry.js +42 -0
- package/dist/cjs/ptc-card-plm.cjs.entry.js +27 -0
- package/dist/cjs/ptc-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-countdown.cjs.entry.js +1 -1
- package/dist/cjs/ptc-date.cjs.entry.js +1 -1
- package/dist/cjs/ptc-footer.cjs.entry.js +1 -1
- package/dist/cjs/ptc-form.cjs.entry.js +1 -1
- package/dist/cjs/ptc-hero.cjs.entry.js +29 -0
- package/dist/cjs/ptc-img_2.cjs.entry.js +185 -0
- package/dist/cjs/ptc-input.cjs.entry.js +1 -1
- package/dist/cjs/ptc-link.cjs.entry.js +53 -0
- package/dist/cjs/ptc-list.cjs.entry.js +1 -1
- package/dist/cjs/ptc-lottie.cjs.entry.js +1 -1
- package/dist/cjs/ptc-modal.cjs.entry.js +1 -1
- package/dist/cjs/ptc-nav-item.cjs.entry.js +1 -1
- package/dist/cjs/ptc-nav.cjs.entry.js +1 -1
- package/dist/cjs/ptc-para.cjs.entry.js +50 -0
- package/dist/cjs/ptc-picture.cjs.entry.js +169 -0
- package/dist/cjs/ptc-select.cjs.entry.js +1 -1
- package/dist/cjs/ptc-social-share.cjs.entry.js +1 -1
- package/dist/cjs/ptc-spacer.cjs.entry.js +46 -0
- package/dist/cjs/ptc-span.cjs.entry.js +34 -0
- package/dist/cjs/ptc-title.cjs.entry.js +55 -0
- package/dist/cjs/ptcw-design.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/ptc-mobile-select/ptc-mobile-select.css +199 -0
- package/dist/collection/components/ptc-mobile-select/ptc-mobile-select.js +149 -0
- package/dist/collection/components/ptc-responsive-wrapper/ptc-responsive-wrapper.css +3 -0
- package/dist/collection/components/ptc-responsive-wrapper/ptc-responsive-wrapper.js +62 -0
- package/dist/collection/components/ptc-svg-btn/ptc-svg-btn.css +8 -0
- package/dist/custom-elements/index.d.ts +12 -0
- package/dist/custom-elements/index.js +818 -2
- package/dist/esm/_commonjsHelpers-8b28c6fa.js +15 -0
- package/dist/esm/icon-asset_5.entry.js +980 -0
- package/dist/esm/{index-9e77d90e.js → index-357497dc.js} +7 -0
- package/dist/esm/interfaces-c1c73092.js +12 -0
- package/dist/esm/list-item.entry.js +25 -0
- package/dist/esm/loader.js +2 -2
- package/dist/esm/lottie-player.entry.js +2 -15
- package/dist/esm/my-component.entry.js +1 -1
- package/dist/esm/ptc-breadcrumb.entry.js +19 -0
- package/dist/esm/ptc-button.entry.js +72 -0
- package/dist/esm/ptc-card-bottom.entry.js +38 -0
- package/dist/esm/ptc-card-content.entry.js +38 -0
- package/dist/esm/ptc-card-plm.entry.js +23 -0
- package/dist/esm/ptc-card.entry.js +1 -1
- package/dist/esm/ptc-countdown.entry.js +1 -1
- package/dist/esm/ptc-date.entry.js +1 -1
- package/dist/esm/ptc-footer.entry.js +1 -1
- package/dist/esm/ptc-form.entry.js +1 -1
- package/dist/esm/ptc-hero.entry.js +25 -0
- package/dist/esm/ptc-img_2.entry.js +180 -0
- package/dist/esm/ptc-input.entry.js +1 -1
- package/dist/esm/ptc-link.entry.js +49 -0
- package/dist/esm/ptc-list.entry.js +1 -1
- package/dist/esm/ptc-lottie.entry.js +1 -1
- package/dist/esm/ptc-modal.entry.js +1 -1
- package/dist/esm/ptc-nav-item.entry.js +1 -1
- package/dist/esm/ptc-nav.entry.js +1 -1
- package/dist/esm/ptc-para.entry.js +46 -0
- package/dist/esm/ptc-picture.entry.js +165 -0
- package/dist/esm/ptc-select.entry.js +1 -1
- package/dist/esm/ptc-social-share.entry.js +1 -1
- package/dist/esm/ptc-spacer.entry.js +42 -0
- package/dist/esm/ptc-span.entry.js +30 -0
- package/dist/esm/ptc-title.entry.js +51 -0
- package/dist/esm/ptcw-design.js +2 -2
- package/dist/ptcw-design/{p-19f001a4.js → p-0e571387.js} +1 -1
- package/dist/ptcw-design/p-1e39bc14.entry.js +1 -0
- package/dist/ptcw-design/p-27538cac.entry.js +1 -0
- package/dist/ptcw-design/{p-abb97d21.entry.js → p-2f78af32.entry.js} +1 -1
- package/dist/ptcw-design/{p-3050845e.entry.js → p-3a174881.entry.js} +1 -1
- package/dist/ptcw-design/{p-b542c708.entry.js → p-4ba0046d.entry.js} +1 -1
- package/dist/ptcw-design/p-4bacc49a.entry.js +7 -0
- package/dist/ptcw-design/p-50e52c88.js +1 -0
- package/dist/ptcw-design/{p-65b30c15.entry.js → p-525faf32.entry.js} +1 -1
- package/dist/ptcw-design/p-5672aca0.entry.js +1 -0
- package/dist/ptcw-design/p-59a5663a.entry.js +1 -0
- package/dist/ptcw-design/{p-b798ca9c.entry.js → p-6106d579.entry.js} +1 -1
- package/dist/ptcw-design/p-6402cb6d.entry.js +1 -0
- package/dist/ptcw-design/p-64c98ea6.entry.js +1 -0
- package/dist/ptcw-design/{p-b803e2da.entry.js → p-66912e75.entry.js} +1 -1
- package/dist/ptcw-design/p-68bcb24d.entry.js +1 -0
- package/dist/ptcw-design/p-74a72a40.entry.js +1 -0
- package/dist/ptcw-design/{p-8a6de852.entry.js → p-75cc322d.entry.js} +1 -1
- package/dist/ptcw-design/{p-c140717c.entry.js → p-7b60638a.entry.js} +1 -1
- package/dist/ptcw-design/{p-b3e145f3.entry.js → p-7cea01d0.entry.js} +1 -1
- package/dist/ptcw-design/p-80c03571.entry.js +1 -0
- package/dist/ptcw-design/{p-762a6628.entry.js → p-87bc2b6f.entry.js} +1 -1
- package/dist/ptcw-design/{p-feed36fa.entry.js → p-9367272c.entry.js} +1 -1
- package/dist/ptcw-design/{p-8f9df770.entry.js → p-9b5a3528.entry.js} +1 -1
- package/dist/ptcw-design/p-a4300906.entry.js +1 -0
- package/dist/ptcw-design/{p-fe25f590.entry.js → p-aa4f80c6.entry.js} +1 -1
- package/dist/ptcw-design/p-b26e2c72.entry.js +1 -0
- package/dist/ptcw-design/p-b6757552.entry.js +1 -0
- package/dist/ptcw-design/p-b68038b5.js +1 -0
- package/dist/ptcw-design/p-bb7e7943.entry.js +1 -0
- package/dist/ptcw-design/p-bfe3ac5b.entry.js +1 -0
- package/dist/ptcw-design/p-c47b4ebf.entry.js +1 -0
- package/dist/ptcw-design/p-ce2134e1.entry.js +1 -0
- package/dist/ptcw-design/ptcw-design.css +1 -1
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/ptc-mobile-select/ptc-mobile-select.d.ts +28 -0
- package/dist/types/components/ptc-responsive-wrapper/ptc-responsive-wrapper.d.ts +8 -0
- package/dist/types/components.d.ts +74 -0
- package/package.json +6 -2
- package/readme.md +1 -1
- package/dist/cjs/icon-asset_16.cjs.entry.js +0 -849
- package/dist/cjs/ptc-announcement.cjs.entry.js +0 -43
- package/dist/cjs/ptc-svg-btn.cjs.entry.js +0 -81
- package/dist/esm/icon-asset_16.entry.js +0 -830
- package/dist/esm/ptc-announcement.entry.js +0 -39
- package/dist/esm/ptc-svg-btn.entry.js +0 -77
- package/dist/ptcw-design/p-57fcfb62.entry.js +0 -1
- package/dist/ptcw-design/p-5afee3b6.entry.js +0 -1
- package/dist/ptcw-design/p-96e30287.entry.js +0 -1
- package/dist/ptcw-design/p-97152565.entry.js +0 -1
- package/dist/ptcw-design/p-f98b4bdd.entry.js +0 -1
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-3adcf9f4.js');
|
|
6
|
+
|
|
7
|
+
const ptcTitleCss = "div.center.sc-ptc-title{text-align:center}div.center.dotted.sc-ptc-title h1.sc-ptc-title::before,div.center.dotted.sc-ptc-title h2.sc-ptc-title::before,div.center.dotted.sc-ptc-title h3.sc-ptc-title::before{left:50%;transform:translateX(-50%)}div.left.sc-ptc-title{text-align:left}div.left.dotted.sc-ptc-title h1.sc-ptc-title::before,div.left.dotted.sc-ptc-title h2.sc-ptc-title::before,div.left.dotted.sc-ptc-title h3.sc-ptc-title::before{left:0%}div.right.sc-ptc-title{text-align:right}div.right.dotted.sc-ptc-title h1.sc-ptc-title::before,div.right.dotted.sc-ptc-title h2.sc-ptc-title::before,div.right.dotted.sc-ptc-title h3.sc-ptc-title::before{right:0%}div.inherit.sc-ptc-title{text-align:inherit}div.dotted.sc-ptc-title h1.sc-ptc-title::before,div.dotted.sc-ptc-title h2.sc-ptc-title::before,div.dotted.sc-ptc-title h3.sc-ptc-title::before{content:\"\";position:absolute;top:-6px;width:30%;display:block;border-top:3px dashed #5bb73b}div.solid.sc-ptc-title h1.sc-ptc-title::before,div.solid.sc-ptc-title h2.sc-ptc-title::before,div.solid.sc-ptc-title h3.sc-ptc-title::before{content:\"\";position:absolute;width:100%;height:0.7px;background-color:var(--color-secondary-grey);opacity:0.9;left:0px}div.solid.sc-ptc-title h1.sc-ptc-title::after,div.solid.sc-ptc-title h2.sc-ptc-title::after,div.solid.sc-ptc-title h3.sc-ptc-title::after{content:\"\";position:absolute;width:20%;height:2px;background-color:var(--color-primary-green);top:-2px;left:0px}div.is-standard.sc-ptc-title h1.sc-ptc-title,div.is-standard.sc-ptc-title h2.sc-ptc-title,div.is-standard.sc-ptc-title h3.sc-ptc-title{display:inline-block;position:relative}div.is-standard.sc-ptc-title h1.sc-ptc-title{font-size:46px;line-height:52px;font-weight:800;letter-spacing:0px;color:var(--color-primary-grey)}div.is-standard.sc-ptc-title h2.sc-ptc-title{font-size:28px;line-height:32px;font-weight:800;color:var(--color-primary-grey)}div.is-plm-hub.sc-ptc-title h1.sc-ptc-title,div.is-plm-hub.sc-ptc-title h2.sc-ptc-title,div.is-plm-hub.sc-ptc-title h3.sc-ptc-title{display:inline-block;position:relative;margin-block-start:0em;margin-block-end:0em;margin-inline-start:0px;margin-inline-end:0px;color:var(--color-white)}div.margin-flush.sc-ptc-title{margin-top:0;margin-bottom:0}div.margin-top-2.sc-ptc-title{margin-top:var(--ptc-element-spacing-02);margin-bottom:0}div.margin-top-3.sc-ptc-title{margin-top:var(--ptc-element-spacing-03);margin-bottom:0}div.margin-top-4.sc-ptc-title{margin-top:var(--ptc-element-spacing-04);margin-bottom:0}div.margin-top-5.sc-ptc-title{margin-top:var(--ptc-element-spacing-05);margin-bottom:0}div.margin-top-6.sc-ptc-title{margin-top:var(--ptc-element-spacing-06);margin-bottom:0}div.margin-bottom-2.sc-ptc-title{margin-bottom:var(--ptc-element-spacing-02);margin-top:0}div.margin-bottom-3.sc-ptc-title{margin-bottom:var(--ptc-element-spacing-03);margin-top:0}div.margin-bottom-4.sc-ptc-title{margin-bottom:var(--ptc-element-spacing-04);margin-top:0}div.margin-bottom-5.sc-ptc-title{margin-bottom:var(--ptc-element-spacing-05);margin-top:0}div.margin-bottom-6.sc-ptc-title{margin-bottom:var(--ptc-element-spacing-06);margin-top:0}div.margin-2.sc-ptc-title{margin-top:var(--ptc-element-spacing-02);margin-bottom:var(--ptc-element-spacing-02)}div.margin-3.sc-ptc-title{margin-top:var(--ptc-element-spacing-03);margin-bottom:var(--ptc-element-spacing-03)}div.margin-4.sc-ptc-title{margin-top:var(--ptc-element-spacing-04);margin-bottom:var(--ptc-element-spacing-04)}div.margin-5.sc-ptc-title{margin-top:var(--ptc-element-spacing-05);margin-bottom:var(--ptc-element-spacing-05)}div.margin-6.sc-ptc-title{margin-top:var(--ptc-element-spacing-06);margin-bottom:var(--ptc-element-spacing-06)}div.green.sc-ptc-title h1.sc-ptc-title,div.green.sc-ptc-title h2.sc-ptc-title,div.green.sc-ptc-title h3.sc-ptc-title{text-shadow:0px 0px 12px var(--color-green-07)}div.blue.sc-ptc-title h1.sc-ptc-title,div.blue.sc-ptc-title h2.sc-ptc-title,div.blue.sc-ptc-title h3.sc-ptc-title{text-shadow:0px 0px 12px var(--color-blue-07)}div.red.sc-ptc-title h1.sc-ptc-title,div.red.sc-ptc-title h2.sc-ptc-title,div.red.sc-ptc-title h3.sc-ptc-title{text-shadow:0px 0px 12px var(--color-red-07)}div.orange.sc-ptc-title h1.sc-ptc-title,div.orange.sc-ptc-title h2.sc-ptc-title,div.orange.sc-ptc-title h3.sc-ptc-title{text-shadow:0px 0px 12px var(--color-orange-07)}div.slate-grey.sc-ptc-title h1.sc-ptc-title,div.slate-grey.sc-ptc-title h2.sc-ptc-title,div.slate-grey.sc-ptc-title h3.sc-ptc-title{text-shadow:0px 0px 12px var(--color-grey-07)}div.w-3.sc-ptc-title h1.sc-ptc-title,div.w-3.sc-ptc-title h2.sc-ptc-title,div.w-3.sc-ptc-title h3.sc-ptc-title{font-weight:var(--ptc-font-weight-thin)}div.w-4.sc-ptc-title h1.sc-ptc-title,div.w-4.sc-ptc-title h2.sc-ptc-title,div.w-4.sc-ptc-title h3.sc-ptc-title{font-weight:var(--ptc-font-weight-regular)}div.w-5.sc-ptc-title h1.sc-ptc-title,div.w-5.sc-ptc-title h2.sc-ptc-title,div.w-5.sc-ptc-title h3.sc-ptc-title{font-weight:var(--ptc-font-weight-medium)}div.w-6.sc-ptc-title h1.sc-ptc-title,div.w-6.sc-ptc-title h2.sc-ptc-title,div.w-6.sc-ptc-title h3.sc-ptc-title{font-weight:var(--ptc-font-weight-semibold)}div.w-7.sc-ptc-title h1.sc-ptc-title,div.w-7.sc-ptc-title h2.sc-ptc-title,div.w-7.sc-ptc-title h3.sc-ptc-title{font-weight:var(--ptc-font-weight-bold)}div.w-8.sc-ptc-title h1.sc-ptc-title,div.w-8.sc-ptc-title h2.sc-ptc-title,div.w-8.sc-ptc-title h3.sc-ptc-title{font-weight:var(--ptc-font-weight-extrabold)}div.w-9.sc-ptc-title h1.sc-ptc-title,div.w-9.sc-ptc-title h2.sc-ptc-title,div.w-9.sc-ptc-title h3.sc-ptc-title{font-weight:var(--ptc-font-weight-black)}div.xx-small.sc-ptc-title h1.sc-ptc-title,div.xx-small.sc-ptc-title h2.sc-ptc-title,div.xx-small.sc-ptc-title h3.sc-ptc-title{font-size:var(--ptc-font-size-xx-small)}div.x-small.sc-ptc-title h1.sc-ptc-title,div.x-small.sc-ptc-title h2.sc-ptc-title,div.x-small.sc-ptc-title h3.sc-ptc-title{font-size:var(--ptc-font-size-x-small)}div.small.sc-ptc-title h1.sc-ptc-title,div.small.sc-ptc-title h2.sc-ptc-title,div.small.sc-ptc-title h3.sc-ptc-title{font-size:var(--ptc-font-size-small)}div.medium.sc-ptc-title h1.sc-ptc-title,div.medium.sc-ptc-title h2.sc-ptc-title,div.medium.sc-ptc-title h3.sc-ptc-title{font-size:var(--ptc-font-size-medium)}div.large.sc-ptc-title h1.sc-ptc-title,div.large.sc-ptc-title h2.sc-ptc-title,div.large.sc-ptc-title h3.sc-ptc-title{font-size:var(--ptc-font-size-large)}div.x-large.sc-ptc-title h1.sc-ptc-title,div.x-large.sc-ptc-title h2.sc-ptc-title,div.x-large.sc-ptc-title h3.sc-ptc-title{font-size:var(--ptc-font-size-x-large)}div.xx-large.sc-ptc-title h1.sc-ptc-title,div.xx-large.sc-ptc-title h2.sc-ptc-title,div.xx-large.sc-ptc-title h3.sc-ptc-title{font-size:var(--ptc-font-size-xx-large)}div.xxx-large.sc-ptc-title h1.sc-ptc-title,div.xxx-large.sc-ptc-title h2.sc-ptc-title,div.xxx-large.sc-ptc-title h3.sc-ptc-title{font-size:var(--ptc-font-size-xxx-large)}div.xxxx-large.sc-ptc-title h1.sc-ptc-title,div.xxxx-large.sc-ptc-title h2.sc-ptc-title,div.xxxx-large.sc-ptc-title h3.sc-ptc-title{font-size:var(--ptc-font-size-xxxx-large)}div.font-size-15.sc-ptc-title h1.sc-ptc-title,div.font-size-15.sc-ptc-title h2.sc-ptc-title,div.font-size-15.sc-ptc-title h3.sc-ptc-title{font-size:15px}div.font-size-50.sc-ptc-title h1.sc-ptc-title,div.font-size-50.sc-ptc-title h2.sc-ptc-title,div.font-size-50.sc-ptc-title h3.sc-ptc-title{font-size:50px}div.lh-23.sc-ptc-title{line-height:23px}div.lh-28.sc-ptc-title{line-height:28px}div.lh-59.sc-ptc-title{line-height:59px}";
|
|
8
|
+
|
|
9
|
+
let PtcTitle = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
/**
|
|
13
|
+
* Is this title using on the PLM Hub page
|
|
14
|
+
*/
|
|
15
|
+
this.isPlmHub = false;
|
|
16
|
+
/**
|
|
17
|
+
* Title Tag Type
|
|
18
|
+
*/
|
|
19
|
+
this.type = 'h2';
|
|
20
|
+
/**
|
|
21
|
+
* Upperline Style
|
|
22
|
+
*/
|
|
23
|
+
this.upperline = 'dotted';
|
|
24
|
+
}
|
|
25
|
+
render() {
|
|
26
|
+
const classMap = this.getCssClassMap();
|
|
27
|
+
let TagType;
|
|
28
|
+
switch (this.type) {
|
|
29
|
+
case 'h1':
|
|
30
|
+
TagType = 'h1';
|
|
31
|
+
break;
|
|
32
|
+
case 'h3':
|
|
33
|
+
TagType = 'h3';
|
|
34
|
+
break;
|
|
35
|
+
default:
|
|
36
|
+
TagType = 'h2';
|
|
37
|
+
}
|
|
38
|
+
return (index.h(index.Host, null, this.styles && index.h("style", null, this.styles), index.h("div", { class: classMap }, index.h(TagType, null, index.h("slot", null)))));
|
|
39
|
+
}
|
|
40
|
+
getCssClassMap() {
|
|
41
|
+
return {
|
|
42
|
+
[this.textAlign]: !!this.textAlign ? true : false,
|
|
43
|
+
[this.upperline]: true,
|
|
44
|
+
[this.isPlmHub ? 'is-plm-hub' : 'is-standard']: true,
|
|
45
|
+
[this.titleMargin]: !!this.titleMargin ? true : false,
|
|
46
|
+
[this.titleShadow]: !!this.titleShadow ? true : false,
|
|
47
|
+
[this.titleWeight]: !!this.titleWeight ? true : false,
|
|
48
|
+
[this.titleSize]: !!this.titleSize ? true : false,
|
|
49
|
+
[this.titleLHeight]: !!this.titleLHeight ? true : false
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
PtcTitle.style = ptcTitleCss;
|
|
54
|
+
|
|
55
|
+
exports.ptc_title = PtcTitle;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-3adcf9f4.js');
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
6
|
Stencil Client Patch Browser v2.13.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -15,5 +15,5 @@ const patchBrowser = () => {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(options => {
|
|
18
|
-
return index.bootstrapLazy([["ptc-
|
|
18
|
+
return index.bootstrapLazy([["ptc-breadcrumb.cjs",[[1,"ptc-breadcrumb"]]],["ptc-hero.cjs",[[1,"ptc-hero",{"heroType":[1,"hero-type"],"bgUrl":[1,"bg-url"]}]]],["ptc-card.cjs",[[1,"ptc-card",{"cardType":[1,"card-type"],"cardHref":[1,"card-href"],"target":[1],"rel":[1],"hasImage":[4,"has-image"],"hasVideo":[4,"has-video"],"hasLottie":[4,"has-lottie"],"heading":[1],"headingTransform":[1,"heading-transform"],"cardDate":[1,"card-date"],"styles":[1]}]]],["ptc-link.cjs",[[1,"ptc-link",{"disabled":[516],"external":[516],"href":[1],"target":[1],"linkTitle":[1,"link-title"],"theme":[1],"uppercase":[4],"fontSize":[1,"font-size"]}]]],["ptc-lottie.cjs",[[1,"ptc-lottie",{"jsonSrc":[1025,"json-src"],"speed":[1026]}]]],["ptc-social-share.cjs",[[1,"ptc-social-share",{"display":[1],"shareType":[1,"share-type"],"shareTitle":[1,"share-title"],"text":[1],"url":[1],"source":[1],"recipient":[1],"isHover":[32]}]]],["my-component.cjs",[[1,"my-component",{"first":[1],"middle":[1],"last":[1]}]]],["ptc-button.cjs",[[1,"ptc-button",{"disabled":[516],"type":[1],"color":[1],"iconAnimation":[1,"icon-animation"],"iconPosition":[1,"icon-position"],"linkHref":[1,"link-href"],"linkTitle":[1,"link-title"],"target":[1],"rel":[1],"tabNav":[2,"tab-nav"],"styles":[1]}]]],["ptc-card-bottom.cjs",[[1,"ptc-card-bottom",{"cardType":[1,"card-type"],"styles":[1]}]]],["ptc-card-content.cjs",[[1,"ptc-card-content",{"cardType":[1,"card-type"],"styles":[1]}]]],["ptc-card-plm.cjs",[[1,"ptc-card-plm",{"cardType":[1,"card-type"],"cardLink":[1,"card-link"],"linkTitle":[1,"link-title"],"linkTarget":[1,"link-target"]}]]],["ptc-countdown.cjs",[[1,"ptc-countdown"]]],["ptc-footer.cjs",[[1,"ptc-footer"]]],["ptc-form.cjs",[[6,"ptc-form",{"value":[32],"inputValue":[32],"selectValue":[32]}]]],["ptc-input.cjs",[[6,"ptc-input",{"type":[1],"dataEloquaName":[1,"data-eloqua-name"],"inputId":[1,"input-id"],"inputName":[1,"input-name"],"focused":[32]}]]],["ptc-list.cjs",[[2,"ptc-list",{"listType":[1,"list-type"],"listItems":[16]}]]],["ptc-modal.cjs",[[1,"ptc-modal",{"iframeUrl":[1025,"iframe-url"],"size":[1025],"show":[1028],"overlay":[1028],"closeOnBlur":[1028,"close-on-blur"],"overlayHeight":[32],"bodyOverflowSetting":[32]}]]],["ptc-nav.cjs",[[1,"ptc-nav"]]],["ptc-nav-item.cjs",[[1,"ptc-nav-item",{"url":[1025],"label":[1025],"ariaExpanded":[1028,"aria-expanded"],"depth":[1538],"hasChildren":[1028,"has-children"],"parentExpanded":[1540,"parent-expanded"],"navType":[1,"nav-type"]},[[0,"handleClick","handleClick"],[9,"resize","handleResize"]]]]],["ptc-para.cjs",[[1,"ptc-para",{"fontSize":[1,"font-size"],"fontWeight":[1,"font-weight"],"paraStyle":[1,"para-style"],"paraColor":[1,"para-color"],"paraLineH":[1,"para-line-h"],"paraMargin":[1,"para-margin"]}]]],["ptc-picture.cjs",[[1,"ptc-picture",{"src":[1],"alt":[1],"sizeXs":[1025,"size-xs"],"sizeSm":[1025,"size-sm"],"sizeMd":[1025,"size-md"],"sizeLg":[1025,"size-lg"],"imagePosition":[1,"image-position"],"borderRadius":[1,"border-radius"],"height":[1],"width":[1],"objectFit":[1,"object-fit"],"isFullHeight":[4,"is-full-height"],"isFullWidth":[4,"is-full-width"],"styles":[1],"oldSrc":[32]},[[9,"resize","WindowResize"]]]]],["ptc-select.cjs",[[6,"ptc-select",{"dataEloquaName":[1,"data-eloqua-name"],"selectId":[1,"select-id"],"name":[1],"valueOptions":[1040]}]]],["ptc-spacer.cjs",[[1,"ptc-spacer",{"breakpoint":[1],"size":[1],"direction":[1]}]]],["ptc-span.cjs",[[1,"ptc-span",{"spanStyle":[1,"span-style"],"display":[1],"styles":[1]}]]],["ptc-title.cjs",[[6,"ptc-title",{"isPlmHub":[4,"is-plm-hub"],"type":[1],"textAlign":[1,"text-align"],"upperline":[1],"titleShadow":[1,"title-shadow"],"titleMargin":[1,"title-margin"],"titleWeight":[1,"title-weight"],"titleSize":[1,"title-size"],"titleLHeight":[1,"title-l-height"],"styles":[1]}]]],["list-item.cjs",[[1,"list-item",{"listType":[1,"list-type"],"linkHref":[1,"link-href"],"flushBefore":[4,"flush-before"]}]]],["lottie-player.cjs",[[1,"lottie-player",{"mode":[1],"autoplay":[4],"background":[513],"controls":[4],"count":[2],"direction":[2],"hover":[4],"loop":[516],"renderer":[1],"speed":[2],"src":[1],"currentState":[1,"current-state"],"seeker":[8],"intermission":[2],"play":[64],"pause":[64],"stop":[64],"seek":[64],"getLottie":[64],"setSpeed":[64],"setDirection":[64],"setLooping":[64],"togglePlay":[64],"toggleLooping":[64]}]]],["ptc-date.cjs",[[1,"ptc-date",{"year":[2],"month":[2],"day":[2],"country":[1],"dateString":[1,"date-string"],"dateColor":[1,"date-color"],"dateStyles":[1,"date-styles"],"dataSize":[1,"data-size"]}]]],["ptc-img_2.cjs",[[4,"ptc-img",{"sizeXs":[1025,"size-xs"],"sizeSm":[1025,"size-sm"],"sizeMd":[1025,"size-md"],"sizeLg":[1025,"size-lg"],"imgUrl":[1,"img-url"],"imageType":[1,"image-type"],"borderRadius":[1,"border-radius"],"loadMode":[1,"load-mode"]},[[9,"resize","WindowResize"]]],[1,"ptc-overlay",{"filterColor":[1,"filter-color"],"borderRadius":[1,"border-radius"],"overlayZIndex":[1,"overlay-z-index"],"styles":[1]}]]],["icon-asset_5.cjs",[[0,"ptc-mobile-select",{"triggerName":[1,"trigger-name"],"linkText":[1,"link-text"],"ensureBtnText":[1,"ensure-btn-text"],"cancelBtnText":[1,"cancel-btn-text"],"listTitle":[1,"list-title"],"wheelData":[1040]}],[1,"ptc-announcement",{"barTitle":[1,"bar-title"],"Description":[1,"description"],"linkText":[513,"link-text"],"visible":[1540],"linkUrl":[513,"link-url"],"tempContainer":[4,"temp-container"]}],[1,"ptc-responsive-wrapper"],[1,"ptc-svg-btn",{"svgName":[1,"svg-name"],"display":[1]}],[2,"icon-asset",{"name":[1],"size":[1],"type":[1],"spin":[1],"pulse":[1],"color":[1]}]]]], options);
|
|
19
19
|
});
|
|
@@ -20,12 +20,14 @@
|
|
|
20
20
|
"./components/ptc-link/ptc-link.js",
|
|
21
21
|
"./components/ptc-list/ptc-list.js",
|
|
22
22
|
"./components/ptc-lottie/ptc-lottie.js",
|
|
23
|
+
"./components/ptc-mobile-select/ptc-mobile-select.js",
|
|
23
24
|
"./components/ptc-modal/ptc-modal.js",
|
|
24
25
|
"./components/ptc-nav/ptc-nav.js",
|
|
25
26
|
"./components/ptc-nav-item/ptc-nav-item.js",
|
|
26
27
|
"./components/ptc-overlay/ptc-overlay.js",
|
|
27
28
|
"./components/ptc-para/ptc-para.js",
|
|
28
29
|
"./components/ptc-picture/ptc-picture.js",
|
|
30
|
+
"./components/ptc-responsive-wrapper/ptc-responsive-wrapper.js",
|
|
29
31
|
"./components/ptc-select/ptc-select.js",
|
|
30
32
|
"./components/ptc-social-share/ptc-social-share.js",
|
|
31
33
|
"./components/ptc-spacer/ptc-spacer.js",
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
.mobileSelect {
|
|
2
|
+
position: relative;
|
|
3
|
+
z-index: 0;
|
|
4
|
+
opacity: 0;
|
|
5
|
+
visibility: hidden;
|
|
6
|
+
-webkit-transition: opacity 0.4s, z-index 0.4s;
|
|
7
|
+
transition: opacity 0.4s, z-index 0.4s;
|
|
8
|
+
}
|
|
9
|
+
.mobileSelect * {
|
|
10
|
+
margin: 0;
|
|
11
|
+
padding: 0;
|
|
12
|
+
-webkit-box-sizing: border-box;
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
}
|
|
15
|
+
.mobileSelect .grayLayer {
|
|
16
|
+
position: fixed;
|
|
17
|
+
top: 0;
|
|
18
|
+
left: 0;
|
|
19
|
+
bottom: 0;
|
|
20
|
+
right: 0;
|
|
21
|
+
background: #eee;
|
|
22
|
+
background: rgba(0, 0, 0, 0.7);
|
|
23
|
+
z-index: 888;
|
|
24
|
+
display: block;
|
|
25
|
+
}
|
|
26
|
+
.mobileSelect .content {
|
|
27
|
+
width: 100%;
|
|
28
|
+
display: block;
|
|
29
|
+
position: fixed;
|
|
30
|
+
z-index: 889;
|
|
31
|
+
color: black;
|
|
32
|
+
-webkit-transition: all 0.4s;
|
|
33
|
+
transition: all 0.4s;
|
|
34
|
+
bottom: -350px;
|
|
35
|
+
left: 0;
|
|
36
|
+
background: white;
|
|
37
|
+
}
|
|
38
|
+
.mobileSelect .content .fixWidth {
|
|
39
|
+
width: 90%;
|
|
40
|
+
margin: 0 auto;
|
|
41
|
+
position: relative;
|
|
42
|
+
}
|
|
43
|
+
.mobileSelect .content .fixWidth:after {
|
|
44
|
+
content: ".";
|
|
45
|
+
display: block;
|
|
46
|
+
height: 0;
|
|
47
|
+
clear: both;
|
|
48
|
+
visibility: hidden;
|
|
49
|
+
}
|
|
50
|
+
.mobileSelect .content .btnBar {
|
|
51
|
+
border-bottom: 1px solid #DCDCDC;
|
|
52
|
+
font-size: 15px;
|
|
53
|
+
height: 45px;
|
|
54
|
+
position: relative;
|
|
55
|
+
text-align: center;
|
|
56
|
+
line-height: 45px;
|
|
57
|
+
}
|
|
58
|
+
.mobileSelect .content .btnBar .cancel,
|
|
59
|
+
.mobileSelect .content .btnBar .ensure {
|
|
60
|
+
height: 45px;
|
|
61
|
+
width: 55px;
|
|
62
|
+
cursor: pointer;
|
|
63
|
+
position: absolute;
|
|
64
|
+
top: 0;
|
|
65
|
+
}
|
|
66
|
+
.mobileSelect .content .btnBar .cancel {
|
|
67
|
+
left: 0;
|
|
68
|
+
color: #666;
|
|
69
|
+
}
|
|
70
|
+
.mobileSelect .content .btnBar .ensure {
|
|
71
|
+
right: 0;
|
|
72
|
+
color: #1e83d3;
|
|
73
|
+
}
|
|
74
|
+
.mobileSelect .content .btnBar .title {
|
|
75
|
+
font-size: 15px;
|
|
76
|
+
padding: 0 15%;
|
|
77
|
+
overflow: hidden;
|
|
78
|
+
white-space: nowrap;
|
|
79
|
+
text-overflow: ellipsis;
|
|
80
|
+
}
|
|
81
|
+
.mobileSelect .content .panel:after {
|
|
82
|
+
content: ".";
|
|
83
|
+
display: block;
|
|
84
|
+
height: 0;
|
|
85
|
+
clear: both;
|
|
86
|
+
visibility: hidden;
|
|
87
|
+
}
|
|
88
|
+
.mobileSelect .content .panel .wheels {
|
|
89
|
+
width: 100%;
|
|
90
|
+
height: 200px;
|
|
91
|
+
overflow: hidden;
|
|
92
|
+
}
|
|
93
|
+
.mobileSelect .content .panel .wheel {
|
|
94
|
+
position: relative;
|
|
95
|
+
z-index: 0;
|
|
96
|
+
float: left;
|
|
97
|
+
width: 50%;
|
|
98
|
+
height: 200px;
|
|
99
|
+
overflow: hidden;
|
|
100
|
+
-webkit-transition: width 0.3s ease;
|
|
101
|
+
transition: width 0.3s ease;
|
|
102
|
+
}
|
|
103
|
+
.mobileSelect .content .panel .wheel .selectContainer {
|
|
104
|
+
display: block;
|
|
105
|
+
text-align: center;
|
|
106
|
+
-webkit-transition: -webkit-transform 0.18s ease-out;
|
|
107
|
+
transition: -webkit-transform 0.18s ease-out;
|
|
108
|
+
transition: transform 0.18s ease-out;
|
|
109
|
+
transition: transform 0.18s ease-out, -webkit-transform 0.18s ease-out;
|
|
110
|
+
}
|
|
111
|
+
.mobileSelect .content .panel .wheel .selectContainer li {
|
|
112
|
+
font-size: 15px;
|
|
113
|
+
display: block;
|
|
114
|
+
height: 40px;
|
|
115
|
+
line-height: 40px;
|
|
116
|
+
cursor: pointer;
|
|
117
|
+
overflow: hidden;
|
|
118
|
+
white-space: nowrap;
|
|
119
|
+
text-overflow: ellipsis;
|
|
120
|
+
}
|
|
121
|
+
.mobileSelect .content .panel .selectLine {
|
|
122
|
+
height: 40px;
|
|
123
|
+
width: 100%;
|
|
124
|
+
position: absolute;
|
|
125
|
+
top: 80px;
|
|
126
|
+
pointer-events: none;
|
|
127
|
+
-webkit-box-sizing: border-box;
|
|
128
|
+
box-sizing: border-box;
|
|
129
|
+
border-top: 1px solid #DCDCDC;
|
|
130
|
+
border-bottom: 1px solid #DCDCDC;
|
|
131
|
+
}
|
|
132
|
+
.mobileSelect .content .panel .shadowMask {
|
|
133
|
+
position: absolute;
|
|
134
|
+
top: 0;
|
|
135
|
+
width: 100%;
|
|
136
|
+
height: 200px;
|
|
137
|
+
background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), color-stop(rgba(255, 255, 255, 0)), to(#ffffff));
|
|
138
|
+
background: -webkit-linear-gradient(top, #ffffff, rgba(255, 255, 255, 0), #ffffff);
|
|
139
|
+
background: linear-gradient(to bottom, #ffffff, rgba(255, 255, 255, 0), #ffffff);
|
|
140
|
+
opacity: 0.9;
|
|
141
|
+
pointer-events: none;
|
|
142
|
+
}
|
|
143
|
+
.mobileSelect-show {
|
|
144
|
+
opacity: 1;
|
|
145
|
+
z-index: 10000;
|
|
146
|
+
visibility: visible;
|
|
147
|
+
}
|
|
148
|
+
.mobileSelect-show .content {
|
|
149
|
+
bottom: 0;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.mobile-select-wrapper {
|
|
153
|
+
display: block;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.mobile-select-wrapper div {
|
|
157
|
+
display: inline;
|
|
158
|
+
margin-right: 10px;
|
|
159
|
+
width: 100%;
|
|
160
|
+
font-family: var(--ptc-font-latin);
|
|
161
|
+
font-weight: var(--ptc-font-weight-regular);
|
|
162
|
+
font-size: var(--ptc-font-size-15);
|
|
163
|
+
line-height: var(--ptc-line-height-18);
|
|
164
|
+
color: var(--color-white);
|
|
165
|
+
height: var(--ptc-line-height-18);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.mobileSelect .content {
|
|
169
|
+
top: auto;
|
|
170
|
+
}
|
|
171
|
+
.mobileSelect .content .btnBar {
|
|
172
|
+
border-color: var(--color-gray-10);
|
|
173
|
+
}
|
|
174
|
+
.mobileSelect .content .btnBar .cancel,
|
|
175
|
+
.mobileSelect .content .btnBar .ensure,
|
|
176
|
+
.mobileSelect .content .btnBar .title {
|
|
177
|
+
font-family: var(--ptc-font-latin);
|
|
178
|
+
font-weight: var(--ptc-font-weight-semibold);
|
|
179
|
+
font-size: var(--ptc-font-size-medium);
|
|
180
|
+
line-height: var(--ptc-line-height-19);
|
|
181
|
+
}
|
|
182
|
+
.mobileSelect .content .btnBar .ensure, .mobileSelect .content .btnBar .cancel {
|
|
183
|
+
transform: translateY(12.5px);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.mobileSelect .content .panel .wheel .selectContainer li {
|
|
187
|
+
font-family: var(--ptc-font-latin);
|
|
188
|
+
font-weight: var(--ptc-font-weight-semibold);
|
|
189
|
+
font-size: var(--ptc-font-size-medium);
|
|
190
|
+
line-height: var(--ptc-line-height-19);
|
|
191
|
+
height: 45px;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
ptc-responsive-wrapper.xsmall .mobile-select-wrapper, ptc-responsive-wrapper.small .mobile-select-wrapper {
|
|
195
|
+
display: block;
|
|
196
|
+
}
|
|
197
|
+
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 {
|
|
198
|
+
display: none;
|
|
199
|
+
}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { Component, h, Prop } from '@stencil/core';
|
|
2
|
+
import MobileSelect from 'mobile-select';
|
|
3
|
+
export class PtcMobileSelect {
|
|
4
|
+
constructor() {
|
|
5
|
+
/**
|
|
6
|
+
* Confirm Text
|
|
7
|
+
*/
|
|
8
|
+
this.ensureBtnText = 'Confirm';
|
|
9
|
+
/**
|
|
10
|
+
* Cancel Text
|
|
11
|
+
*/
|
|
12
|
+
this.cancelBtnText = 'Cancel';
|
|
13
|
+
/**
|
|
14
|
+
* Mobile select list title (Optional)
|
|
15
|
+
*/
|
|
16
|
+
this.listTitle = undefined;
|
|
17
|
+
}
|
|
18
|
+
render() {
|
|
19
|
+
return (h("ptc-responsive-wrapper", null,
|
|
20
|
+
h("div", { class: "mobile-select-wrapper" },
|
|
21
|
+
h("div", { id: this.triggerName }, this.linkText),
|
|
22
|
+
h("icon-asset", { type: "ptc", size: "x-small", name: "chevron-down", color: "white" }))));
|
|
23
|
+
}
|
|
24
|
+
componentDidRender() {
|
|
25
|
+
new MobileSelect({
|
|
26
|
+
trigger: `#${this.triggerName}`,
|
|
27
|
+
title: `${this.listTitle ? this.listTitle : ''}`,
|
|
28
|
+
wheels: this.wheelData ? [{ data: this.wheelData }] : [{ data: ["test1", 'test2'] }],
|
|
29
|
+
position: [0],
|
|
30
|
+
ensureBtnText: this.ensureBtnText,
|
|
31
|
+
cancelBtnText: this.cancelBtnText,
|
|
32
|
+
ensureBtnColor: 'var(--color-gray-12)',
|
|
33
|
+
cancelBtnColor: 'var(--color-gray-12)',
|
|
34
|
+
titleColor: 'var(--color-gray-12)',
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
static get is() { return "ptc-mobile-select"; }
|
|
38
|
+
static get originalStyleUrls() { return {
|
|
39
|
+
"$": ["ptc-mobile-select.scss"]
|
|
40
|
+
}; }
|
|
41
|
+
static get styleUrls() { return {
|
|
42
|
+
"$": ["ptc-mobile-select.css"]
|
|
43
|
+
}; }
|
|
44
|
+
static get properties() { return {
|
|
45
|
+
"triggerName": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"mutable": false,
|
|
48
|
+
"complexType": {
|
|
49
|
+
"original": "string",
|
|
50
|
+
"resolved": "string",
|
|
51
|
+
"references": {}
|
|
52
|
+
},
|
|
53
|
+
"required": false,
|
|
54
|
+
"optional": false,
|
|
55
|
+
"docs": {
|
|
56
|
+
"tags": [],
|
|
57
|
+
"text": "Trigger Name (Mandatory)"
|
|
58
|
+
},
|
|
59
|
+
"attribute": "trigger-name",
|
|
60
|
+
"reflect": false
|
|
61
|
+
},
|
|
62
|
+
"linkText": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"mutable": false,
|
|
65
|
+
"complexType": {
|
|
66
|
+
"original": "string",
|
|
67
|
+
"resolved": "string",
|
|
68
|
+
"references": {}
|
|
69
|
+
},
|
|
70
|
+
"required": false,
|
|
71
|
+
"optional": false,
|
|
72
|
+
"docs": {
|
|
73
|
+
"tags": [],
|
|
74
|
+
"text": "Button/link Text (Mandatory)"
|
|
75
|
+
},
|
|
76
|
+
"attribute": "link-text",
|
|
77
|
+
"reflect": false
|
|
78
|
+
},
|
|
79
|
+
"ensureBtnText": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"mutable": false,
|
|
82
|
+
"complexType": {
|
|
83
|
+
"original": "string",
|
|
84
|
+
"resolved": "string",
|
|
85
|
+
"references": {}
|
|
86
|
+
},
|
|
87
|
+
"required": false,
|
|
88
|
+
"optional": false,
|
|
89
|
+
"docs": {
|
|
90
|
+
"tags": [],
|
|
91
|
+
"text": "Confirm Text"
|
|
92
|
+
},
|
|
93
|
+
"attribute": "ensure-btn-text",
|
|
94
|
+
"reflect": false,
|
|
95
|
+
"defaultValue": "'Confirm'"
|
|
96
|
+
},
|
|
97
|
+
"cancelBtnText": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"mutable": false,
|
|
100
|
+
"complexType": {
|
|
101
|
+
"original": "string",
|
|
102
|
+
"resolved": "string",
|
|
103
|
+
"references": {}
|
|
104
|
+
},
|
|
105
|
+
"required": false,
|
|
106
|
+
"optional": false,
|
|
107
|
+
"docs": {
|
|
108
|
+
"tags": [],
|
|
109
|
+
"text": "Cancel Text"
|
|
110
|
+
},
|
|
111
|
+
"attribute": "cancel-btn-text",
|
|
112
|
+
"reflect": false,
|
|
113
|
+
"defaultValue": "'Cancel'"
|
|
114
|
+
},
|
|
115
|
+
"listTitle": {
|
|
116
|
+
"type": "string",
|
|
117
|
+
"mutable": false,
|
|
118
|
+
"complexType": {
|
|
119
|
+
"original": "string",
|
|
120
|
+
"resolved": "string",
|
|
121
|
+
"references": {}
|
|
122
|
+
},
|
|
123
|
+
"required": false,
|
|
124
|
+
"optional": false,
|
|
125
|
+
"docs": {
|
|
126
|
+
"tags": [],
|
|
127
|
+
"text": "Mobile select list title (Optional)"
|
|
128
|
+
},
|
|
129
|
+
"attribute": "list-title",
|
|
130
|
+
"reflect": false,
|
|
131
|
+
"defaultValue": "undefined"
|
|
132
|
+
},
|
|
133
|
+
"wheelData": {
|
|
134
|
+
"type": "unknown",
|
|
135
|
+
"mutable": true,
|
|
136
|
+
"complexType": {
|
|
137
|
+
"original": "string[]",
|
|
138
|
+
"resolved": "string[]",
|
|
139
|
+
"references": {}
|
|
140
|
+
},
|
|
141
|
+
"required": false,
|
|
142
|
+
"optional": false,
|
|
143
|
+
"docs": {
|
|
144
|
+
"tags": [],
|
|
145
|
+
"text": "Wheel Data (Mandatory)"
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}; }
|
|
149
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Component, h, Element } from '@stencil/core';
|
|
2
|
+
//import ResizeObserver from "resize-observer-polyfill";
|
|
3
|
+
export class PtcResponsiveWrapper {
|
|
4
|
+
componentDidLoad() {
|
|
5
|
+
this.ro = new ResizeObserver(entries => {
|
|
6
|
+
for (const entry of entries) {
|
|
7
|
+
this.applySizeClasses(entry.contentRect.width);
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
this.ro.observe(this.element);
|
|
11
|
+
}
|
|
12
|
+
disconnectedCallback() {
|
|
13
|
+
this.ro.disconnect();
|
|
14
|
+
}
|
|
15
|
+
applySizeClasses(size) {
|
|
16
|
+
let xsmall = false;
|
|
17
|
+
let small = false;
|
|
18
|
+
let medium = false;
|
|
19
|
+
let large = false;
|
|
20
|
+
let xlarge = false;
|
|
21
|
+
let xxlarge = false;
|
|
22
|
+
let large2k = false;
|
|
23
|
+
let large4k = false;
|
|
24
|
+
if (size >= 2600)
|
|
25
|
+
large4k = true;
|
|
26
|
+
else if (size >= 1980)
|
|
27
|
+
large2k = true;
|
|
28
|
+
else if (size >= 1600)
|
|
29
|
+
xxlarge = true;
|
|
30
|
+
else if (size >= 1440)
|
|
31
|
+
xlarge = true;
|
|
32
|
+
else if (size >= 1200)
|
|
33
|
+
large = true;
|
|
34
|
+
else if (size >= 992)
|
|
35
|
+
medium = true;
|
|
36
|
+
else if (size >= 768)
|
|
37
|
+
small = true;
|
|
38
|
+
else
|
|
39
|
+
xsmall = true;
|
|
40
|
+
this.element.classList.toggle("xsmall", xsmall);
|
|
41
|
+
this.element.classList.toggle("small", small);
|
|
42
|
+
this.element.classList.toggle("medium", medium);
|
|
43
|
+
this.element.classList.toggle("large", large);
|
|
44
|
+
this.element.classList.toggle("xlarge", xlarge);
|
|
45
|
+
this.element.classList.toggle("xxlarge", xxlarge);
|
|
46
|
+
this.element.classList.toggle("large2k", large2k);
|
|
47
|
+
this.element.classList.toggle("large4k", large4k);
|
|
48
|
+
}
|
|
49
|
+
render() {
|
|
50
|
+
return (h("div", null,
|
|
51
|
+
h("slot", null)));
|
|
52
|
+
}
|
|
53
|
+
static get is() { return "ptc-responsive-wrapper"; }
|
|
54
|
+
static get encapsulation() { return "shadow"; }
|
|
55
|
+
static get originalStyleUrls() { return {
|
|
56
|
+
"$": ["ptc-responsive-wrapper.css"]
|
|
57
|
+
}; }
|
|
58
|
+
static get styleUrls() { return {
|
|
59
|
+
"$": ["ptc-responsive-wrapper.css"]
|
|
60
|
+
}; }
|
|
61
|
+
static get elementRef() { return "element"; }
|
|
62
|
+
}
|
|
@@ -122,6 +122,12 @@ export const PtcLottie: {
|
|
|
122
122
|
new (): PtcLottie;
|
|
123
123
|
};
|
|
124
124
|
|
|
125
|
+
interface PtcMobileSelect extends Components.PtcMobileSelect, HTMLElement {}
|
|
126
|
+
export const PtcMobileSelect: {
|
|
127
|
+
prototype: PtcMobileSelect;
|
|
128
|
+
new (): PtcMobileSelect;
|
|
129
|
+
};
|
|
130
|
+
|
|
125
131
|
interface PtcModal extends Components.PtcModal, HTMLElement {}
|
|
126
132
|
export const PtcModal: {
|
|
127
133
|
prototype: PtcModal;
|
|
@@ -158,6 +164,12 @@ export const PtcPicture: {
|
|
|
158
164
|
new (): PtcPicture;
|
|
159
165
|
};
|
|
160
166
|
|
|
167
|
+
interface PtcResponsiveWrapper extends Components.PtcResponsiveWrapper, HTMLElement {}
|
|
168
|
+
export const PtcResponsiveWrapper: {
|
|
169
|
+
prototype: PtcResponsiveWrapper;
|
|
170
|
+
new (): PtcResponsiveWrapper;
|
|
171
|
+
};
|
|
172
|
+
|
|
161
173
|
interface PtcSelect extends Components.PtcSelect, HTMLElement {}
|
|
162
174
|
export const PtcSelect: {
|
|
163
175
|
prototype: PtcSelect;
|