@ptcwebops/ptcw-design 6.0.7 → 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.
Files changed (116) hide show
  1. package/dist/cjs/blog-detail-content_2.cjs.entry.js +1 -1
  2. package/dist/cjs/blog-detail-layout.cjs.entry.js +1 -1
  3. package/dist/cjs/blogs-search-section.cjs.entry.js +1 -1
  4. package/dist/cjs/homepage-jumbotron.cjs.entry.js +1 -1
  5. package/dist/cjs/homepage-toggled-content.cjs.entry.js +1 -1
  6. package/dist/cjs/icon-asset_13.cjs.entry.js +905 -0
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/cjs/most-popular-news.cjs.entry.js +2 -14
  9. package/dist/cjs/my-component.cjs.entry.js +1 -1
  10. package/dist/cjs/ptc-accordion-item.cjs.entry.js +14 -5
  11. package/dist/cjs/ptc-background-video.cjs.entry.js +9 -1
  12. package/dist/cjs/ptc-button.cjs.entry.js +1 -1
  13. package/dist/cjs/ptc-card_2.cjs.entry.js +44 -68
  14. package/dist/cjs/ptc-collapse-list.cjs.entry.js +1 -1
  15. package/dist/cjs/ptc-form-checkbox_2.cjs.entry.js +1 -1
  16. package/dist/cjs/ptc-homepage-image-feature.cjs.entry.js +1 -1
  17. package/dist/cjs/ptc-homepage-video-background.cjs.entry.js +1 -1
  18. package/dist/cjs/ptc-link.cjs.entry.js +4 -2
  19. package/dist/cjs/ptc-media-card.cjs.entry.js +2 -2
  20. package/dist/cjs/ptc-multi-select_2.cjs.entry.js +1 -1
  21. package/dist/cjs/ptc-nav-slider.cjs.entry.js +1 -1
  22. package/dist/cjs/ptc-para.cjs.entry.js +1 -1
  23. package/dist/cjs/ptc-pricing-packaging-table.cjs.entry.js +1 -1
  24. package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +1 -1
  25. package/dist/cjs/ptcw-design.cjs.js +1 -1
  26. package/dist/cjs/{utils-290a8f9a.js → utils-67780697.js} +46 -0
  27. package/dist/collection/components/organism-bundles/most-popular-news/most-popular-news.js +1 -13
  28. package/dist/collection/components/ptc-accordion/ptc-accordion-item/ptc-accordion-item.js +14 -5
  29. package/dist/collection/components/ptc-background-video/ptc-background-video.js +11 -2
  30. package/dist/collection/components/ptc-card/ptc-card.css +4 -4
  31. package/dist/collection/components/ptc-card/ptc-card.js +1 -0
  32. package/dist/collection/components/ptc-link/ptc-link.css +19 -2
  33. package/dist/collection/components/ptc-link/ptc-link.js +20 -0
  34. package/dist/collection/components/ptc-media-card/ptc-media-card.js +1 -1
  35. package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.css +142 -0
  36. package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.js +6 -0
  37. package/dist/collection/components/ptc-title/ptc-title.js +1 -1
  38. package/dist/collection/components/subnav/ptc-nav-slider/ptc-nav-slider.css +1 -0
  39. package/dist/collection/utils/utils.js +44 -0
  40. package/dist/custom-elements/index.js +83 -27
  41. package/dist/esm/blog-detail-content_2.entry.js +1 -1
  42. package/dist/esm/blog-detail-layout.entry.js +1 -1
  43. package/dist/esm/blogs-search-section.entry.js +1 -1
  44. package/dist/esm/homepage-jumbotron.entry.js +1 -1
  45. package/dist/esm/homepage-toggled-content.entry.js +1 -1
  46. package/dist/esm/icon-asset_13.entry.js +889 -0
  47. package/dist/esm/loader.js +1 -1
  48. package/dist/esm/most-popular-news.entry.js +2 -14
  49. package/dist/esm/my-component.entry.js +1 -1
  50. package/dist/esm/ptc-accordion-item.entry.js +14 -5
  51. package/dist/esm/ptc-background-video.entry.js +9 -1
  52. package/dist/esm/ptc-button.entry.js +1 -1
  53. package/dist/esm/ptc-card_2.entry.js +45 -69
  54. package/dist/esm/ptc-collapse-list.entry.js +1 -1
  55. package/dist/esm/ptc-form-checkbox_2.entry.js +1 -1
  56. package/dist/esm/ptc-homepage-image-feature.entry.js +1 -1
  57. package/dist/esm/ptc-homepage-video-background.entry.js +1 -1
  58. package/dist/esm/ptc-link.entry.js +4 -2
  59. package/dist/esm/ptc-media-card.entry.js +2 -2
  60. package/dist/esm/ptc-multi-select_2.entry.js +1 -1
  61. package/dist/esm/ptc-nav-slider.entry.js +1 -1
  62. package/dist/esm/ptc-para.entry.js +1 -1
  63. package/dist/esm/ptc-pricing-packaging-table.entry.js +1 -1
  64. package/dist/esm/ptc-pricing-tabs.entry.js +1 -1
  65. package/dist/esm/ptcw-design.js +1 -1
  66. package/dist/esm/{utils-05c5b1ac.js → utils-7b5c29b1.js} +45 -1
  67. package/dist/ptcw-design/{p-c2a171a7.entry.js → p-16f983c4.entry.js} +1 -1
  68. package/dist/ptcw-design/{p-595d3ad5.entry.js → p-18e02494.entry.js} +1 -1
  69. package/dist/ptcw-design/{p-71feca68.entry.js → p-190c704d.entry.js} +1 -1
  70. package/dist/ptcw-design/p-24e452a1.entry.js +1 -0
  71. package/dist/ptcw-design/{p-11315f18.entry.js → p-2aec612d.entry.js} +1 -1
  72. package/dist/ptcw-design/p-53c64e3f.entry.js +1 -0
  73. package/dist/ptcw-design/{p-53cd14ba.entry.js → p-54fa12be.entry.js} +1 -1
  74. package/dist/ptcw-design/{p-50605d7c.entry.js → p-5fd77623.entry.js} +1 -1
  75. package/dist/ptcw-design/{p-eddff1f7.entry.js → p-6b746f9d.entry.js} +1 -1
  76. package/dist/ptcw-design/p-6d684d90.entry.js +1 -0
  77. package/dist/ptcw-design/p-70104bf5.entry.js +1 -0
  78. package/dist/ptcw-design/{p-149d27a6.entry.js → p-71c6b528.entry.js} +1 -1
  79. package/dist/ptcw-design/{p-8039fa0d.entry.js → p-769aa1c3.entry.js} +1 -1
  80. package/dist/ptcw-design/{p-4ddea466.entry.js → p-7792cf79.entry.js} +1 -1
  81. package/dist/ptcw-design/{p-1e9f07cf.js → p-78a23ab3.js} +1 -1
  82. package/dist/ptcw-design/p-794928df.entry.js +1 -0
  83. package/dist/ptcw-design/p-7b0da78a.entry.js +1 -0
  84. package/dist/ptcw-design/{p-93e6395f.entry.js → p-91b73561.entry.js} +1 -1
  85. package/dist/ptcw-design/{p-4f6c9992.entry.js → p-9db0897a.entry.js} +1 -1
  86. package/dist/ptcw-design/{p-3f3713cd.entry.js → p-9fad6b65.entry.js} +1 -1
  87. package/dist/ptcw-design/p-b54baa2a.entry.js +1 -0
  88. package/dist/ptcw-design/{p-3b93096b.entry.js → p-c5d050dd.entry.js} +1 -1
  89. package/dist/ptcw-design/{p-7698c568.entry.js → p-c792e926.entry.js} +1 -1
  90. package/dist/ptcw-design/{p-3e90100b.entry.js → p-f8af6267.entry.js} +1 -1
  91. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  92. package/dist/types/components/ptc-accordion/ptc-accordion-item/ptc-accordion-item.d.ts +1 -0
  93. package/dist/types/components/ptc-background-video/ptc-background-video.d.ts +2 -0
  94. package/dist/types/components/ptc-link/ptc-link.d.ts +4 -0
  95. package/dist/types/components.d.ts +8 -0
  96. package/dist/types/utils/utils.d.ts +2 -0
  97. package/package.json +1 -1
  98. package/readme.md +1 -1
  99. package/dist/cjs/icon-asset_10.cjs.entry.js +0 -739
  100. package/dist/cjs/max-width-container.cjs.entry.js +0 -54
  101. package/dist/cjs/ptc-date.cjs.entry.js +0 -61
  102. package/dist/cjs/ptc-spacer.cjs.entry.js +0 -38
  103. package/dist/esm/icon-asset_10.entry.js +0 -726
  104. package/dist/esm/max-width-container.entry.js +0 -50
  105. package/dist/esm/ptc-date.entry.js +0 -57
  106. package/dist/esm/ptc-spacer.entry.js +0 -34
  107. package/dist/ptcw-design/p-072dd199.entry.js +0 -1
  108. package/dist/ptcw-design/p-2462aece.entry.js +0 -1
  109. package/dist/ptcw-design/p-397276af.entry.js +0 -1
  110. package/dist/ptcw-design/p-68091d57.entry.js +0 -1
  111. package/dist/ptcw-design/p-79883a07.entry.js +0 -1
  112. package/dist/ptcw-design/p-c0304917.entry.js +0 -1
  113. package/dist/ptcw-design/p-cb4d8811.entry.js +0 -1
  114. package/dist/ptcw-design/p-d9ec506c.entry.js +0 -1
  115. package/dist/ptcw-design/p-ec22d0b8.entry.js +0 -1
  116. 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;