@ptcwebops/ptcw-design 6.0.8 → 6.0.9
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/icon-asset_13.cjs.entry.js +905 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/most-popular-news.cjs.entry.js +1 -13
- package/dist/cjs/ptc-card_2.cjs.entry.js +44 -68
- package/dist/cjs/ptc-link.cjs.entry.js +3 -1
- package/dist/cjs/ptc-media-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-nav-slider.cjs.entry.js +1 -1
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/collection/components/organism-bundles/most-popular-news/most-popular-news.js +1 -13
- package/dist/collection/components/ptc-card/ptc-card.css +4 -4
- package/dist/collection/components/ptc-card/ptc-card.js +1 -0
- package/dist/collection/components/ptc-link/ptc-link.css +19 -2
- package/dist/collection/components/ptc-link/ptc-link.js +20 -0
- package/dist/collection/components/ptc-media-card/ptc-media-card.js +1 -1
- package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.css +142 -0
- package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.js +6 -0
- package/dist/collection/components/subnav/ptc-nav-slider/ptc-nav-slider.css +1 -0
- package/dist/custom-elements/index.js +16 -19
- package/dist/esm/icon-asset_13.entry.js +889 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/most-popular-news.entry.js +1 -13
- package/dist/esm/ptc-card_2.entry.js +45 -69
- package/dist/esm/ptc-link.entry.js +3 -1
- package/dist/esm/ptc-media-card.entry.js +1 -1
- package/dist/esm/ptc-nav-slider.entry.js +1 -1
- package/dist/esm/ptcw-design.js +1 -1
- package/dist/ptcw-design/p-24e452a1.entry.js +1 -0
- package/dist/ptcw-design/p-53c64e3f.entry.js +1 -0
- package/dist/ptcw-design/p-70104bf5.entry.js +1 -0
- package/dist/ptcw-design/p-794928df.entry.js +1 -0
- package/dist/ptcw-design/{p-4f6c9992.entry.js → p-9db0897a.entry.js} +1 -1
- package/dist/ptcw-design/p-b54baa2a.entry.js +1 -0
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/ptc-link/ptc-link.d.ts +4 -0
- package/dist/types/components.d.ts +8 -0
- package/package.json +1 -1
- package/readme.md +1 -1
- package/dist/cjs/icon-asset_10.cjs.entry.js +0 -739
- package/dist/cjs/max-width-container.cjs.entry.js +0 -54
- package/dist/cjs/ptc-date.cjs.entry.js +0 -61
- package/dist/cjs/ptc-spacer.cjs.entry.js +0 -38
- package/dist/esm/icon-asset_10.entry.js +0 -726
- package/dist/esm/max-width-container.entry.js +0 -50
- package/dist/esm/ptc-date.entry.js +0 -57
- package/dist/esm/ptc-spacer.entry.js +0 -34
- package/dist/ptcw-design/p-5ed8a694.entry.js +0 -1
- package/dist/ptcw-design/p-68091d57.entry.js +0 -1
- package/dist/ptcw-design/p-68acba70.entry.js +0 -1
- package/dist/ptcw-design/p-c3c7b93b.entry.js +0 -1
- package/dist/ptcw-design/p-c3ce27b3.entry.js +0 -1
- package/dist/ptcw-design/p-d9ec506c.entry.js +0 -1
- package/dist/ptcw-design/p-ec22d0b8.entry.js +0 -1
- package/dist/ptcw-design/p-ef0079b0.entry.js +0 -1
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-63ddc79c.js');
|
|
6
|
-
|
|
7
|
-
const maxWidthContainerCss = ":host{display:block}:host(.left){margin:auto auto auto 0}:host(.right){margin:auto 0 auto auto}:host(.center){margin:0 auto}";
|
|
8
|
-
|
|
9
|
-
const MaxWidthContainer = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
this.maxWidthP = undefined;
|
|
13
|
-
this.maxWidth = undefined;
|
|
14
|
-
this.breakpoint = 768;
|
|
15
|
-
this.contentAlign = 'center';
|
|
16
|
-
this.styles = undefined;
|
|
17
|
-
}
|
|
18
|
-
componentDidLoad() {
|
|
19
|
-
this.handleResize();
|
|
20
|
-
window.addEventListener('resize', this.handleResize.bind(this));
|
|
21
|
-
}
|
|
22
|
-
disconnectedCallback() {
|
|
23
|
-
window.removeEventListener('resize', this.handleResize);
|
|
24
|
-
}
|
|
25
|
-
render() {
|
|
26
|
-
const classMap = this.getCssClassMap();
|
|
27
|
-
return (index.h(index.Host, { class: classMap }, this.styles && index.h("style", null, this.styles), index.h("slot", null)));
|
|
28
|
-
}
|
|
29
|
-
getCssClassMap() {
|
|
30
|
-
return {
|
|
31
|
-
[this.contentAlign]: true,
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
handleResize() {
|
|
35
|
-
// const selectedContainer = this.el.querySelector('.max-width-container');
|
|
36
|
-
if (this.el) {
|
|
37
|
-
if (window.innerWidth >= this.breakpoint) {
|
|
38
|
-
if (this.maxWidthP) {
|
|
39
|
-
this.el.style.maxWidth = `${this.maxWidthP}%`;
|
|
40
|
-
}
|
|
41
|
-
else {
|
|
42
|
-
this.el.style.maxWidth = `${this.maxWidth}px`;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
this.el.style.maxWidth = 'initial';
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
get el() { return index.getElement(this); }
|
|
51
|
-
};
|
|
52
|
-
MaxWidthContainer.style = maxWidthContainerCss;
|
|
53
|
-
|
|
54
|
-
exports.max_width_container = MaxWidthContainer;
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-63ddc79c.js');
|
|
6
|
-
|
|
7
|
-
const ptcDateCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{display:block}:host(.small) span{font-size:var(--ptc-font-size-xx-small)}:host(.medium) span{font-size:var(--ptc-font-size-x-small)}:host(.primary-grey){color:var(--color-primary-gray-new)}:host(.white) span{color:var(--color-white)}:host(.date-m-top){margin-top:var(--ptc-element-spacing-01)}";
|
|
8
|
-
|
|
9
|
-
const PtcDate = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
this.year = 1900;
|
|
13
|
-
this.month = 0;
|
|
14
|
-
this.day = 1;
|
|
15
|
-
this.country = 'en-US';
|
|
16
|
-
this.dateString = undefined;
|
|
17
|
-
this.dateColor = undefined;
|
|
18
|
-
this.dateStyles = undefined;
|
|
19
|
-
this.dataSize = 'small';
|
|
20
|
-
this.formatOptions = undefined;
|
|
21
|
-
}
|
|
22
|
-
render() {
|
|
23
|
-
// const newDate = new Date(this.year, this.month, this.day);
|
|
24
|
-
const classMap = this.getCssClassMap();
|
|
25
|
-
return (index.h(index.Host, { class: classMap }, this.dateStyles && index.h("style", null, this.dateStyles), index.h("span", { part: "part-ptc-date" }, this.getDate().toLocaleDateString(this.country, this.getOptions()))));
|
|
26
|
-
}
|
|
27
|
-
getCssClassMap() {
|
|
28
|
-
return {
|
|
29
|
-
[this.dateColor]: !!this.dateColor ? true : false,
|
|
30
|
-
[this.dataSize]: !!this.dataSize ? true : false,
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
getOptions() {
|
|
34
|
-
let result = { year: 'numeric', month: 'short', day: 'numeric' };
|
|
35
|
-
if (this.formatOptions) {
|
|
36
|
-
try {
|
|
37
|
-
var json = JSON.parse(this.formatOptions);
|
|
38
|
-
if (json) {
|
|
39
|
-
result = json;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
catch (e) {
|
|
43
|
-
//debugger
|
|
44
|
-
console.log(e);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
return result;
|
|
48
|
-
}
|
|
49
|
-
getDate() {
|
|
50
|
-
if (this.dateString) {
|
|
51
|
-
let newDate = new Date(this.dateString.replace(/-/g, '/'));
|
|
52
|
-
return newDate;
|
|
53
|
-
}
|
|
54
|
-
else {
|
|
55
|
-
return new Date(this.year, this.month - 1, this.day);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
PtcDate.style = ptcDateCss;
|
|
60
|
-
|
|
61
|
-
exports.ptc_date = PtcDate;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-63ddc79c.js');
|
|
6
|
-
|
|
7
|
-
const ptcSpacerCss = ":host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;display:block;width:12px;min-width:12px;height:12px}@media (min-width: 36em){:host{width:16px;min-width:16px;height:16px}}:host(.ptc-spacer-horizontal){display:inline-block;height:100% !important}:host(.ptc-spacer-horizontal.xx-small){width:4px;min-width:4px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.xx-small){width:4px;min-width:4px}}:host(.ptc-spacer-horizontal.x-small){width:4px;min-width:4px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.x-small){width:8px;min-width:8px}}:host(.ptc-spacer-horizontal.small){width:8px;min-width:8px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.small){width:12px;min-width:12px}}:host(.ptc-spacer-horizontal.medium){height:100%}:host(.ptc-spacer-horizontal.large){width:16px;min-width:16px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.large){width:20px;min-width:20px}}:host(.ptc-spacer-horizontal.x-large){width:20px;min-width:20px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.x-large){width:28px;min-width:28px}}:host(.ptc-spacer-horizontal.xx-large){width:28px;min-width:28px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.xx-large){width:36px;min-width:36px}}:host(.ptc-spacer-horizontal.xxx-large){width:36px;min-width:36px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.xxx-large){width:48px;min-width:48px}}:host(.ptc-spacer-horizontal.xxxx-large){width:48px;min-width:48px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.xxxx-large){width:72px;min-width:72px}}:host(.ptc-spacer-vertical.xx-small){width:100%;height:4px;min-height:4px}:host(.ptc-spacer-vertical.x-small){width:100%;height:4px;min-height:4px}@media (min-width: 36em){:host(.ptc-spacer-vertical.x-small){height:8px;min-height:8px}}:host(.ptc-spacer-vertical.small){width:100%;height:8px;min-height:8px}@media (min-width: 36em){:host(.ptc-spacer-vertical.small){height:12px;min-height:12px}}:host(.ptc-spacer-vertical.medium){width:100%}:host(.ptc-spacer-vertical.large){width:100%;height:16px;min-height:16px}@media (min-width: 36em){:host(.ptc-spacer-vertical.large){height:20px;min-height:20px}}:host(.ptc-spacer-vertical.x-large){width:100%;height:20px;min-height:20px}@media (min-width: 36em){:host(.ptc-spacer-vertical.x-large){height:28px;min-height:28px}}:host(.ptc-spacer-vertical.xx-large){width:100%;height:28px;min-height:28px}@media (min-width: 36em){:host(.ptc-spacer-vertical.xx-large){height:36px;min-height:36px}}:host(.ptc-spacer-vertical.xxx-large){width:100%;height:36px;min-height:36px}@media (min-width: 36em){:host(.ptc-spacer-vertical.xxx-large){height:48px;min-height:48px}}:host(.ptc-spacer-vertical.xxxx-large){width:100%;height:48px;min-height:48px}@media (min-width: 36em){:host(.ptc-spacer-vertical.xxxx-large){height:72px;min-height:72px}}:host(.ptc-spacer-vertical.space-144){width:100%;height:144px;min-height:144px}:host(.ptc-spacer-vertical.space-120){width:100%;height:120px;min-height:120px}:host(.ptc-spacer-vertical.space-128){width:100%;height:128px;min-height:128px}:host(.ptc-spacer-xx-small){display:none}@media (max-width: 22.5em){:host(.ptc-spacer-xx-small){display:block}}:host(.ptc-spacer-x-small){display:none}@media (max-width: 35.99em){:host(.ptc-spacer-x-small){display:block}}:host(.ptc-spacer-small){display:none}@media (min-width: 36em){:host(.ptc-spacer-small){display:block}}:host(.ptc-spacer-medium){display:none}@media (min-width: 48em){:host(.ptc-spacer-medium){display:block}}:host(.ptc-spacer-large){display:none}@media (min-width: 62em){:host(.ptc-spacer-large){display:block}}:host(.ptc-spacer-x-large){display:none}@media (min-width: 64.0625em){:host(.ptc-spacer-x-large){display:block}}:host(.ptc-spacer-xx-large){display:none}@media (min-width: 75em){:host(.ptc-spacer-xx-large){display:block}}:host(.ptc-spacer-xxx-large){display:none}@media (min-width: 90em){:host(.ptc-spacer-xxx-large){display:block}}";
|
|
8
|
-
|
|
9
|
-
const PtcSpacer = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
this.breakpoint = '';
|
|
13
|
-
this.size = 'medium';
|
|
14
|
-
this.direction = 'vertical';
|
|
15
|
-
}
|
|
16
|
-
render() {
|
|
17
|
-
const classMap = this.getCssClassMap();
|
|
18
|
-
return (index.h(index.Host, { class: classMap }));
|
|
19
|
-
}
|
|
20
|
-
getCssClassMap() {
|
|
21
|
-
return {
|
|
22
|
-
[this.size]: true,
|
|
23
|
-
['ptc-spacer-horizontal']: this.direction === 'horizontal',
|
|
24
|
-
['ptc-spacer-vertical']: this.direction === 'vertical',
|
|
25
|
-
['ptc-spacer-xx-small']: this.breakpoint === 'xx-small',
|
|
26
|
-
['ptc-spacer-x-small']: this.breakpoint === 'x-small',
|
|
27
|
-
['ptc-spacer-small']: this.breakpoint === 'small',
|
|
28
|
-
['ptc-spacer-medium']: this.breakpoint === 'medium',
|
|
29
|
-
['ptc-spacer-large']: this.breakpoint === 'large',
|
|
30
|
-
['ptc-spacer-x-large']: this.breakpoint === 'x-large',
|
|
31
|
-
['ptc-spacer-xx-large']: this.breakpoint === 'xx-large',
|
|
32
|
-
['ptc-spacer-xxx-large']: this.breakpoint === 'xxx-large',
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
PtcSpacer.style = ptcSpacerCss;
|
|
37
|
-
|
|
38
|
-
exports.ptc_spacer = PtcSpacer;
|