@ptcwebops/ptcw-design 0.4.6 → 0.4.8

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 (196) hide show
  1. package/LICENSE +21 -21
  2. package/dist/cjs/{icon-asset_4.cjs.entry.js → icon-asset_8.cjs.entry.js} +299 -220
  3. package/dist/cjs/{interfaces-0ecd8027.js → interfaces-574e6df7.js} +9 -9
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/lottie-player.cjs.entry.js +354 -354
  6. package/dist/cjs/my-component.cjs.entry.js +13 -13
  7. package/dist/cjs/ptc-breadcrumb.cjs.entry.js +12 -12
  8. package/dist/cjs/ptc-button.cjs.entry.js +65 -65
  9. package/dist/cjs/ptc-card-bottom.cjs.entry.js +31 -31
  10. package/dist/cjs/ptc-card-content.cjs.entry.js +31 -31
  11. package/dist/cjs/ptc-card-plm.cjs.entry.js +16 -16
  12. package/dist/cjs/ptc-card.cjs.entry.js +68 -68
  13. package/dist/cjs/ptc-countdown.cjs.entry.js +8 -8
  14. package/dist/cjs/ptc-date.cjs.entry.js +48 -48
  15. package/dist/cjs/ptc-footer.cjs.entry.js +8 -8
  16. package/dist/cjs/ptc-form.cjs.entry.js +104 -104
  17. package/dist/cjs/ptc-hero.cjs.entry.js +18 -18
  18. package/dist/cjs/ptc-img_2.cjs.entry.js +169 -169
  19. package/dist/cjs/ptc-input.cjs.entry.js +20 -20
  20. package/dist/cjs/ptc-link.cjs.entry.js +42 -42
  21. package/dist/cjs/ptc-list.cjs.entry.js +20 -20
  22. package/dist/cjs/ptc-lottie.cjs.entry.js +12 -12
  23. package/dist/cjs/ptc-modal.cjs.entry.js +103 -103
  24. package/dist/cjs/ptc-nav-item.cjs.entry.js +83 -83
  25. package/dist/cjs/ptc-nav.cjs.entry.js +8 -8
  26. package/dist/cjs/ptc-para.cjs.entry.js +39 -39
  27. package/dist/cjs/ptc-picture.cjs.entry.js +158 -158
  28. package/dist/cjs/ptc-responsive-wrapper.cjs.entry.js +54 -54
  29. package/dist/cjs/ptc-select.cjs.entry.js +24 -24
  30. package/dist/cjs/ptc-social-share.cjs.entry.js +64 -64
  31. package/dist/cjs/ptc-spacer.cjs.entry.js +35 -35
  32. package/dist/cjs/ptc-span.cjs.entry.js +23 -23
  33. package/dist/cjs/ptc-title.cjs.entry.js +44 -44
  34. package/dist/cjs/ptcw-design.cjs.js +1 -1
  35. package/dist/collection/collection-manifest.json +3 -0
  36. package/dist/collection/components/icon-asset/icon-asset.css +4 -4
  37. package/dist/collection/components/icon-asset/icon-asset.js +199 -178
  38. package/dist/collection/components/icon-asset/media/brands.svg +1381 -1381
  39. package/dist/collection/components/icon-asset/media/designer.svg +316 -316
  40. package/dist/collection/components/icon-asset/media/regular.svg +463 -463
  41. package/dist/collection/components/icon-asset/media/solid.svg +3013 -3013
  42. package/dist/collection/components/icon-asset/media/svg-with-js.min.css +4 -4
  43. package/dist/collection/components/list-item/list-item.css +31 -0
  44. package/dist/collection/components/list-item/list-item.js +103 -84
  45. package/dist/collection/components/my-component/my-component.css +3 -3
  46. package/dist/collection/components/my-component/my-component.js +73 -73
  47. package/dist/collection/components/ptc-announcement/ptc-announcement.js +170 -170
  48. package/dist/collection/components/ptc-breadcrumb/ptc-breadcrumb.js +21 -21
  49. package/dist/collection/components/ptc-button/ptc-button.js +293 -293
  50. package/dist/collection/components/ptc-card/ptc-card.js +282 -282
  51. package/dist/collection/components/ptc-card-bottom/ptc-card-bottom.js +105 -105
  52. package/dist/collection/components/ptc-card-content/ptc-card-content.js +105 -105
  53. package/dist/collection/components/ptc-card-plm/ptc-card-plm.js +97 -97
  54. package/dist/collection/components/ptc-countdown/ptc-countdown.js +15 -15
  55. package/dist/collection/components/ptc-date/ptc-date.js +201 -201
  56. package/dist/collection/components/ptc-footer/ptc-footer.js +25 -25
  57. package/dist/collection/components/ptc-form/ptc-form.js +118 -118
  58. package/dist/collection/components/ptc-form/validation/FormValidation.js +4234 -4234
  59. package/dist/collection/components/ptc-hero/ptc-hero.js +67 -67
  60. package/dist/collection/components/ptc-img/ptc-img.js +314 -314
  61. package/dist/collection/components/ptc-input/ptc-input.js +133 -133
  62. package/dist/collection/components/ptc-link/ptc-link.js +198 -198
  63. package/dist/collection/components/ptc-list/ptc-list.js +63 -63
  64. package/dist/collection/components/ptc-lottie/ptc-lottie.css +5 -5
  65. package/dist/collection/components/ptc-lottie/ptc-lottie.js +58 -58
  66. package/dist/collection/components/ptc-minimized-footer/ptc-minimized-footer.css +44 -0
  67. package/dist/collection/components/ptc-minimized-footer/ptc-minimized-footer.js +17 -0
  68. package/dist/collection/components/ptc-minimized-header/ptc-minimized-header.css +77 -0
  69. package/dist/collection/components/ptc-minimized-header/ptc-minimized-header.js +80 -0
  70. package/dist/collection/components/ptc-mobile-select/ptc-mobile-select.css +1 -0
  71. package/dist/collection/components/ptc-mobile-select/ptc-mobile-select.js +221 -220
  72. package/dist/collection/components/ptc-modal/ptc-modal.js +252 -252
  73. package/dist/collection/components/ptc-nav/ptc-nav.js +21 -21
  74. package/dist/collection/components/ptc-nav-item/ptc-nav-item.js +252 -252
  75. package/dist/collection/components/ptc-overlay/ptc-overlay.js +99 -99
  76. package/dist/collection/components/ptc-para/ptc-para.js +157 -157
  77. package/dist/collection/components/ptc-picture/ptc-picture.js +428 -428
  78. package/dist/collection/components/ptc-previous-url/ptc-previous-url.css +29 -0
  79. package/dist/collection/components/ptc-previous-url/ptc-previous-url.js +54 -0
  80. package/dist/collection/components/ptc-responsive-wrapper/ptc-responsive-wrapper.css +3 -3
  81. package/dist/collection/components/ptc-responsive-wrapper/ptc-responsive-wrapper.js +62 -62
  82. package/dist/collection/components/ptc-select/ptc-select.js +105 -105
  83. package/dist/collection/components/ptc-social-share/ptc-social-share.js +206 -206
  84. package/dist/collection/components/ptc-spacer/ptc-spacer.css +322 -322
  85. package/dist/collection/components/ptc-spacer/ptc-spacer.js +99 -99
  86. package/dist/collection/components/ptc-span/ptc-span.js +89 -89
  87. package/dist/collection/components/ptc-svg-btn/ptc-svg-btn.css +22 -0
  88. package/dist/collection/components/ptc-svg-btn/ptc-svg-btn.js +71 -69
  89. package/dist/collection/components/ptc-title/ptc-title.js +231 -231
  90. package/dist/collection/index.js +1 -1
  91. package/dist/collection/media/svg-imgs/Back-arrow.svg +11 -0
  92. package/dist/collection/media/svg-imgs/close.svg +10 -10
  93. package/dist/collection/media/svg-imgs/slider-arrow-left.svg +18 -18
  94. package/dist/collection/media/svg-imgs/slider-arrow-right.svg +18 -18
  95. package/dist/collection/utils/interfaces.js +11 -11
  96. package/dist/collection/utils/utils.js +3 -3
  97. package/dist/custom-elements/index.d.ts +18 -0
  98. package/dist/custom-elements/index.js +2058 -1993
  99. package/dist/esm/{icon-asset_4.entry.js → icon-asset_8.entry.js} +296 -221
  100. package/dist/esm/{interfaces-c1c73092.js → interfaces-7c0243be.js} +9 -9
  101. package/dist/esm/loader.js +1 -1
  102. package/dist/esm/lottie-player.entry.js +354 -354
  103. package/dist/esm/my-component.entry.js +13 -13
  104. package/dist/esm/polyfills/core-js.js +0 -0
  105. package/dist/esm/polyfills/dom.js +0 -0
  106. package/dist/esm/polyfills/es5-html-element.js +0 -0
  107. package/dist/esm/polyfills/index.js +0 -0
  108. package/dist/esm/polyfills/system.js +0 -0
  109. package/dist/esm/ptc-breadcrumb.entry.js +12 -12
  110. package/dist/esm/ptc-button.entry.js +65 -65
  111. package/dist/esm/ptc-card-bottom.entry.js +31 -31
  112. package/dist/esm/ptc-card-content.entry.js +31 -31
  113. package/dist/esm/ptc-card-plm.entry.js +16 -16
  114. package/dist/esm/ptc-card.entry.js +68 -68
  115. package/dist/esm/ptc-countdown.entry.js +8 -8
  116. package/dist/esm/ptc-date.entry.js +48 -48
  117. package/dist/esm/ptc-footer.entry.js +8 -8
  118. package/dist/esm/ptc-form.entry.js +104 -104
  119. package/dist/esm/ptc-hero.entry.js +18 -18
  120. package/dist/esm/ptc-img_2.entry.js +169 -169
  121. package/dist/esm/ptc-input.entry.js +20 -20
  122. package/dist/esm/ptc-link.entry.js +42 -42
  123. package/dist/esm/ptc-list.entry.js +20 -20
  124. package/dist/esm/ptc-lottie.entry.js +12 -12
  125. package/dist/esm/ptc-modal.entry.js +103 -103
  126. package/dist/esm/ptc-nav-item.entry.js +83 -83
  127. package/dist/esm/ptc-nav.entry.js +8 -8
  128. package/dist/esm/ptc-para.entry.js +39 -39
  129. package/dist/esm/ptc-picture.entry.js +158 -158
  130. package/dist/esm/ptc-responsive-wrapper.entry.js +54 -54
  131. package/dist/esm/ptc-select.entry.js +24 -24
  132. package/dist/esm/ptc-social-share.entry.js +64 -64
  133. package/dist/esm/ptc-spacer.entry.js +35 -35
  134. package/dist/esm/ptc-span.entry.js +23 -23
  135. package/dist/esm/ptc-title.entry.js +44 -44
  136. package/dist/esm/ptcw-design.js +1 -1
  137. package/dist/ptcw-design/media/brands.svg +1381 -1381
  138. package/dist/ptcw-design/media/designer.svg +316 -316
  139. package/dist/ptcw-design/media/regular.svg +463 -463
  140. package/dist/ptcw-design/media/solid.svg +3013 -3013
  141. package/dist/ptcw-design/media/svg-with-js.min.css +4 -4
  142. package/dist/ptcw-design/{p-1e39bc14.entry.js → p-894e8c85.entry.js} +1 -1
  143. package/dist/ptcw-design/p-c2f4cf52.entry.js +7 -0
  144. package/dist/ptcw-design/{p-27538cac.entry.js → p-f2f1c015.entry.js} +1 -1
  145. package/dist/ptcw-design/ptcw-design.css +1 -1
  146. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  147. package/dist/ptcw-design/validation/FormValidation.js +4234 -4234
  148. package/dist/types/components/icon-asset/icon-asset.d.ts +36 -32
  149. package/dist/types/components/list-item/list-item.d.ts +8 -7
  150. package/dist/types/components/my-component/my-component.d.ts +16 -16
  151. package/dist/types/components/ptc-announcement/ptc-announcement.d.ts +35 -35
  152. package/dist/types/components/ptc-breadcrumb/ptc-breadcrumb.d.ts +4 -4
  153. package/dist/types/components/ptc-button/ptc-button.d.ts +56 -56
  154. package/dist/types/components/ptc-card/ptc-card.d.ts +50 -50
  155. package/dist/types/components/ptc-card-bottom/ptc-card-bottom.d.ts +15 -15
  156. package/dist/types/components/ptc-card-content/ptc-card-content.d.ts +15 -15
  157. package/dist/types/components/ptc-card-plm/ptc-card-plm.d.ts +8 -8
  158. package/dist/types/components/ptc-countdown/ptc-countdown.d.ts +3 -3
  159. package/dist/types/components/ptc-date/ptc-date.d.ts +41 -41
  160. package/dist/types/components/ptc-footer/ptc-footer.d.ts +3 -3
  161. package/dist/types/components/ptc-form/ptc-form.d.ts +11 -11
  162. package/dist/types/components/ptc-hero/ptc-hero.d.ts +12 -12
  163. package/dist/types/components/ptc-img/ptc-img.d.ts +51 -51
  164. package/dist/types/components/ptc-input/ptc-input.d.ts +19 -19
  165. package/dist/types/components/ptc-link/ptc-link.d.ts +36 -36
  166. package/dist/types/components/ptc-list/ptc-list.d.ts +6 -6
  167. package/dist/types/components/ptc-lottie/ptc-lottie.d.ts +12 -12
  168. package/dist/types/components/ptc-minimized-footer/ptc-minimized-footer.d.ts +3 -0
  169. package/dist/types/components/ptc-minimized-header/ptc-minimized-header.d.ts +6 -0
  170. package/dist/types/components/ptc-mobile-select/ptc-mobile-select.d.ts +40 -40
  171. package/dist/types/components/ptc-modal/ptc-modal.d.ts +46 -46
  172. package/dist/types/components/ptc-nav/ptc-nav.d.ts +3 -3
  173. package/dist/types/components/ptc-nav-item/ptc-nav-item.d.ts +53 -53
  174. package/dist/types/components/ptc-overlay/ptc-overlay.d.ts +20 -20
  175. package/dist/types/components/ptc-para/ptc-para.d.ts +28 -28
  176. package/dist/types/components/ptc-picture/ptc-picture.d.ts +82 -82
  177. package/dist/types/components/ptc-previous-url/ptc-previous-url.d.ts +5 -0
  178. package/dist/types/components/ptc-responsive-wrapper/ptc-responsive-wrapper.d.ts +8 -8
  179. package/dist/types/components/ptc-select/ptc-select.d.ts +9 -9
  180. package/dist/types/components/ptc-social-share/ptc-social-share.d.ts +25 -25
  181. package/dist/types/components/ptc-spacer/ptc-spacer.d.ts +16 -16
  182. package/dist/types/components/ptc-span/ptc-span.d.ts +16 -16
  183. package/dist/types/components/ptc-svg-btn/ptc-svg-btn.d.ts +12 -12
  184. package/dist/types/components/ptc-title/ptc-title.d.ts +41 -41
  185. package/dist/types/components.d.ts +85 -26
  186. package/dist/types/global.d.ts +1072 -1072
  187. package/dist/types/index.d.ts +1 -1
  188. package/dist/types/utils/interfaces.d.ts +14 -14
  189. package/dist/types/utils/utils.d.ts +1 -1
  190. package/package.json +58 -58
  191. package/readme.md +11 -11
  192. package/dist/cjs/list-item.cjs.entry.js +0 -29
  193. package/dist/esm/list-item.entry.js +0 -25
  194. package/dist/ptcw-design/p-439c9e49.entry.js +0 -7
  195. package/dist/ptcw-design/p-80c03571.entry.js +0 -1
  196. /package/dist/ptcw-design/{p-50e52c88.js → p-ee1183b2.js} +0 -0
@@ -6,109 +6,109 @@ const index = require('./index-3adcf9f4.js');
6
6
 
7
7
  const ptcModalCss = ":host{display:block}.wrapper{position:absolute;width:100vw;height:100%;top:0;left:0;z-index:3000;display:none}.wrapper .modal-popup{margin:7.5rem auto 1rem;background-color:var(--color-white);box-shadow:0px 8px 12px rgba(0, 0, 0, 0.36);max-width:22.5625rem;width:80%;display:flex;flex-direction:column;align-items:flex-end;align-content:flex-end;z-index:3020;transform:translateY(-100%)}@media screen and (min-width: 992px){.wrapper .modal-popup{max-width:29.125rem}}.wrapper .modal-popup.md{max-width:44.125rem}.wrapper .modal-popup.lg{max-width:56.25rem}.wrapper .modal-popup.xl{max-width:64.0625rem}.wrapper .modal-popup .modal-body{width:100%}.wrapper .modal-popup .modal-body iframe{opacity:0;overflow:hidden;width:100%;border:0;transition:opacity ease-out 250ms}.wrapper .modal-popup .modal-body iframe.ready{opacity:1}.wrapper .modal-popup .modal-body.frame{overflow:hidden}.wrapper .modal-popup .modal-body.html{overflow:hidden}.wrapper .modal-popup .close{margin-right:0.75rem;margin-top:0.75rem}.wrapper.show{display:flex;align-items:flex-start}.wrapper.show .modal-popup{transform:translateY(0)}.overlay{width:100vw;height:100vh;position:fixed;top:0;left:0;z-index:3010;display:block;background-color:rgba(0, 0, 0, 0.6)}";
8
8
 
9
- let PtcModal = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- this.closed = index.createEvent(this, "closed", 7);
13
- this.opened = index.createEvent(this, "opened", 7);
14
- /**
15
- * Sets if popup should close if click on outside
16
- */
17
- this.size = 'sm';
18
- /**
19
- * Set whether or not to display modal
20
- */
21
- this.show = false;
22
- /**
23
- * Sets if popup should overlay
24
- */
25
- this.overlay = true;
26
- /**
27
- * Sets if popup should close if click on outside
28
- */
29
- this.closeOnBlur = false;
30
- }
31
- fireOnClosed(modal) {
32
- this.closed.emit(modal);
33
- }
34
- fireOnOpened(modal) {
35
- this.opened.emit(modal);
36
- }
37
- componentWillLoad() {
38
- let body = document.querySelector('body');
39
- this.bodyOverflowSetting = {
40
- //overflow: body.style['overflow'],
41
- overflowY: body.style['overflowY'],
42
- overflowX: body.style['overflowX'],
43
- };
44
- }
45
- componentWillRender() {
46
- let body = document.querySelector('body');
47
- if (body) {
48
- if (this.show) {
49
- //body.style['overflow'] = 'hidden';
50
- body.style['overflowY'] = 'scroll';
51
- body.style['overflowX'] = 'hidden';
52
- }
53
- else {
54
- //body.style['overflow'] = this.bodyOverflowSetting.overflow;
55
- body.style['overflowY'] = this.bodyOverflowSetting.overflowY;
56
- body.style['overflowX'] = this.bodyOverflowSetting.overflowX;
57
- }
58
- }
59
- }
60
- componentDidLoad() {
61
- if (this.show) {
62
- this.fireOnOpened(this);
63
- }
64
- }
65
- componentDidUpdate() {
66
- if (this.show) {
67
- this.fireOnOpened(this);
68
- }
69
- else {
70
- this.fireOnClosed(this);
71
- }
72
- }
73
- resizeIframe(e) {
74
- let iFrame = e.target;
75
- setTimeout(() => {
76
- try {
77
- iFrame.height = `${iFrame.contentDocument.body.scrollHeight}px`;
78
- }
79
- catch (error) {
80
- console.log(error);
81
- iFrame.height = '616px'; //default
82
- iFrame.removeAttribute('scrolling');
83
- }
84
- iFrame.classList.add('ready');
85
- }, 50);
86
- }
87
- close() {
88
- this.show = false;
89
- }
90
- render() {
91
- let content;
92
- let overlay;
93
- let type = this.iframeUrl ? 'frame' : 'html';
94
- if (this.iframeUrl) {
95
- content = (index.h("iframe", { src: this.iframeUrl, frameBorder: 0, allowFullScreen: false, height: "100%", width: "100%", scrolling: "no", onLoad: this.resizeIframe }));
96
- }
97
- else {
98
- content = (index.h("slot", null));
99
- }
100
- if (this.overlay) {
101
- if (this.closeOnBlur) {
102
- overlay = index.h("div", { class: "overlay", onClick: (_) => this.close() });
103
- }
104
- else {
105
- overlay = index.h("div", { class: "overlay" });
106
- }
107
- }
108
- return (index.h(index.Host, null, index.h("div", { class: `wrapper ${this.show ? "show" : "hide"}` }, overlay, index.h("div", { class: `modal-popup ${this.size} ${type}` }, index.h("div", { class: "close" }, index.h("a", { href: "#", onClick: (_) => this.close() }, index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 14 14", fill: "none" }, index.h("path", { d: "M1 1L13 13", stroke: "black" }), index.h("path", { d: "M13 1L1 13", stroke: "black" })))), index.h("div", { class: "modal-body" }, content)))));
109
- }
110
- get el() { return index.getElement(this); }
111
- };
9
+ let PtcModal = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ this.closed = index.createEvent(this, "closed", 7);
13
+ this.opened = index.createEvent(this, "opened", 7);
14
+ /**
15
+ * Sets if popup should close if click on outside
16
+ */
17
+ this.size = 'sm';
18
+ /**
19
+ * Set whether or not to display modal
20
+ */
21
+ this.show = false;
22
+ /**
23
+ * Sets if popup should overlay
24
+ */
25
+ this.overlay = true;
26
+ /**
27
+ * Sets if popup should close if click on outside
28
+ */
29
+ this.closeOnBlur = false;
30
+ }
31
+ fireOnClosed(modal) {
32
+ this.closed.emit(modal);
33
+ }
34
+ fireOnOpened(modal) {
35
+ this.opened.emit(modal);
36
+ }
37
+ componentWillLoad() {
38
+ let body = document.querySelector('body');
39
+ this.bodyOverflowSetting = {
40
+ //overflow: body.style['overflow'],
41
+ overflowY: body.style['overflowY'],
42
+ overflowX: body.style['overflowX'],
43
+ };
44
+ }
45
+ componentWillRender() {
46
+ let body = document.querySelector('body');
47
+ if (body) {
48
+ if (this.show) {
49
+ //body.style['overflow'] = 'hidden';
50
+ body.style['overflowY'] = 'scroll';
51
+ body.style['overflowX'] = 'hidden';
52
+ }
53
+ else {
54
+ //body.style['overflow'] = this.bodyOverflowSetting.overflow;
55
+ body.style['overflowY'] = this.bodyOverflowSetting.overflowY;
56
+ body.style['overflowX'] = this.bodyOverflowSetting.overflowX;
57
+ }
58
+ }
59
+ }
60
+ componentDidLoad() {
61
+ if (this.show) {
62
+ this.fireOnOpened(this);
63
+ }
64
+ }
65
+ componentDidUpdate() {
66
+ if (this.show) {
67
+ this.fireOnOpened(this);
68
+ }
69
+ else {
70
+ this.fireOnClosed(this);
71
+ }
72
+ }
73
+ resizeIframe(e) {
74
+ let iFrame = e.target;
75
+ setTimeout(() => {
76
+ try {
77
+ iFrame.height = `${iFrame.contentDocument.body.scrollHeight}px`;
78
+ }
79
+ catch (error) {
80
+ console.log(error);
81
+ iFrame.height = '616px'; //default
82
+ iFrame.removeAttribute('scrolling');
83
+ }
84
+ iFrame.classList.add('ready');
85
+ }, 50);
86
+ }
87
+ close() {
88
+ this.show = false;
89
+ }
90
+ render() {
91
+ let content;
92
+ let overlay;
93
+ let type = this.iframeUrl ? 'frame' : 'html';
94
+ if (this.iframeUrl) {
95
+ content = (index.h("iframe", { src: this.iframeUrl, frameBorder: 0, allowFullScreen: false, height: "100%", width: "100%", scrolling: "no", onLoad: this.resizeIframe }));
96
+ }
97
+ else {
98
+ content = (index.h("slot", null));
99
+ }
100
+ if (this.overlay) {
101
+ if (this.closeOnBlur) {
102
+ overlay = index.h("div", { class: "overlay", onClick: (_) => this.close() });
103
+ }
104
+ else {
105
+ overlay = index.h("div", { class: "overlay" });
106
+ }
107
+ }
108
+ return (index.h(index.Host, null, index.h("div", { class: `wrapper ${this.show ? "show" : "hide"}` }, overlay, index.h("div", { class: `modal-popup ${this.size} ${type}` }, index.h("div", { class: "close" }, index.h("a", { href: "#", onClick: (_) => this.close() }, index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 14 14", fill: "none" }, index.h("path", { d: "M1 1L13 13", stroke: "black" }), index.h("path", { d: "M13 1L1 13", stroke: "black" })))), index.h("div", { class: "modal-body" }, content)))));
109
+ }
110
+ get el() { return index.getElement(this); }
111
+ };
112
112
  PtcModal.style = ptcModalCss;
113
113
 
114
114
  exports.ptc_modal = PtcModal;
@@ -6,89 +6,89 @@ const index = require('./index-3adcf9f4.js');
6
6
 
7
7
  const ptcNavItemCss = ":host{display:block;width:100%}@media screen and (min-width: 992px){:host{width:auto}}:host([depth=\"2\"]) a{font-family:var(--ptc-font-secondary-latin);font-size:var(--ptc-font-size-medium);font-weight:var(--ptc-font-weight-bold);line-height:var(--ptc-line-height-dense);letter-spacing:var(--ptc-letter-spacing-dense);margin-bottom:var(--ptc-element-spacing-03);padding-left:50px}@media screen and (min-width: 992px){:host([depth=\"2\"]) a{padding-left:0px}}:host([depth=\"1\"]) a{font-weight:var(--ptc-font-weight-bold);line-height:var(--ptc-line-height-dense);letter-spacing:var(--ptc-letter-spacing-dense);padding:20px 25px}:host([nav-type=secondary-nav]) a{font-size:var(--ptc-font-size-x-small);font-weight:var(--ptc-font-weight-thin)}:host([nav-type=language-nav]) a{font-size:var(--ptc-font-size-x-small);font-weight:var(--ptc-font-weight-thin)}@media only screen and (min-width: 992px){.primary-nav~.ptc-nav-children{position:absolute;left:0}.primary-nav~.ptc-nav-children ::slotted(.nav-tab){background-color:#1c2126;display:flex;width:100vw}.language-nav~.ptc-nav-children{position:absolute;background-color:#1c2126}}a[aria-expanded=true]~.ptc-nav-children{padding-top:var(--ptc-element-spacing-04);max-height:2000px}@media screen and (min-width: 992px){a[aria-expanded=true]~.ptc-nav-children{padding-top:0}}.ptc-nav-children{overflow:hidden;max-height:0;transition:max-height 0.25s ease-in-out, padding-top 0.25s ease-in-out}a{color:var(--color-white);text-transform:uppercase;display:block;outline:none;text-decoration:none}";
8
8
 
9
- let PtcNavItem = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- this.menuItemToggled = index.createEvent(this, "menuItemToggled", 7);
13
- /**
14
- * Link URL
15
- */
16
- this.url = undefined;
17
- /**
18
- * Nav Description
19
- */
20
- this.label = '';
21
- /**
22
- * If the current nav item is expanded
23
- */
24
- this.ariaExpanded = false;
25
- /**
26
- * Depth of the current nav item
27
- */
28
- this.depth = 0;
29
- /**
30
- * If the current nav item has children nav items
31
- */
32
- this.hasChildren = false;
33
- /**
34
- * If the parent nav item of the current one is expanded
35
- */
36
- this.parentExpanded = false;
37
- /**
38
- * Nav Item Type
39
- */
40
- this.navType = undefined;
41
- }
42
- /**
43
- * Watch
44
- */
45
- expandedHandler(newValue) {
46
- const children = Array.prototype.slice.call(this.el.children);
47
- children.forEach(child => {
48
- child.parentExpanded = newValue;
49
- });
50
- this.menuItemToggled.emit({ expanded: this.ariaExpanded });
51
- }
52
- /**
53
- * Event Listener
54
- */
55
- handleClick(e) {
56
- if (this.hasChildren) {
57
- e.preventDefault();
58
- this.ariaExpanded = !this.ariaExpanded;
59
- }
60
- }
61
- handleResize(ev) {
62
- console.log('the body was scrolled', ev);
63
- }
64
- /**
65
- * Lifecycle method
66
- */
67
- componentWillRender() {
68
- this.hasChildren = !!this.el.hasChildNodes();
69
- let parentMenu = this.el.closest('ptc-nav-item');
70
- let nextParentMenu;
71
- this.depth = 0;
72
- while (parentMenu) {
73
- nextParentMenu = parentMenu.parentElement.closest('ptc-nav-item');
74
- if (nextParentMenu === parentMenu) {
75
- break;
76
- }
77
- else {
78
- parentMenu = nextParentMenu;
79
- this.depth = this.depth + 1;
80
- }
81
- }
82
- }
83
- render() {
84
- //const leftIndent = this.depth > 1 ? 25 * this.depth + 'px' : '25px';
85
- return (index.h(index.Host, { role: "none" }, index.h("a", { role: "menuitem", href: this.url, tabIndex: this.parentExpanded || this.depth === 1 ? 0 : -1, "aria-depth": this.depth, "aria-haspopup": this.hasChildren.toString(), "aria-expanded": this.hasChildren ? this.ariaExpanded.toString() : this.ariaExpanded, onClick: e => this.handleClick(e), class: this.navType }, index.h("span", null, this.label)), this.hasChildren && (index.h("div", { class: "ptc-nav-children", role: "menu", part: this.navType, "aria-label": this.label }, index.h("slot", null)))));
86
- }
87
- get el() { return index.getElement(this); }
88
- static get watchers() { return {
89
- "ariaExpanded": ["expandedHandler"]
90
- }; }
91
- };
9
+ let PtcNavItem = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ this.menuItemToggled = index.createEvent(this, "menuItemToggled", 7);
13
+ /**
14
+ * Link URL
15
+ */
16
+ this.url = undefined;
17
+ /**
18
+ * Nav Description
19
+ */
20
+ this.label = '';
21
+ /**
22
+ * If the current nav item is expanded
23
+ */
24
+ this.ariaExpanded = false;
25
+ /**
26
+ * Depth of the current nav item
27
+ */
28
+ this.depth = 0;
29
+ /**
30
+ * If the current nav item has children nav items
31
+ */
32
+ this.hasChildren = false;
33
+ /**
34
+ * If the parent nav item of the current one is expanded
35
+ */
36
+ this.parentExpanded = false;
37
+ /**
38
+ * Nav Item Type
39
+ */
40
+ this.navType = undefined;
41
+ }
42
+ /**
43
+ * Watch
44
+ */
45
+ expandedHandler(newValue) {
46
+ const children = Array.prototype.slice.call(this.el.children);
47
+ children.forEach(child => {
48
+ child.parentExpanded = newValue;
49
+ });
50
+ this.menuItemToggled.emit({ expanded: this.ariaExpanded });
51
+ }
52
+ /**
53
+ * Event Listener
54
+ */
55
+ handleClick(e) {
56
+ if (this.hasChildren) {
57
+ e.preventDefault();
58
+ this.ariaExpanded = !this.ariaExpanded;
59
+ }
60
+ }
61
+ handleResize(ev) {
62
+ console.log('the body was scrolled', ev);
63
+ }
64
+ /**
65
+ * Lifecycle method
66
+ */
67
+ componentWillRender() {
68
+ this.hasChildren = !!this.el.hasChildNodes();
69
+ let parentMenu = this.el.closest('ptc-nav-item');
70
+ let nextParentMenu;
71
+ this.depth = 0;
72
+ while (parentMenu) {
73
+ nextParentMenu = parentMenu.parentElement.closest('ptc-nav-item');
74
+ if (nextParentMenu === parentMenu) {
75
+ break;
76
+ }
77
+ else {
78
+ parentMenu = nextParentMenu;
79
+ this.depth = this.depth + 1;
80
+ }
81
+ }
82
+ }
83
+ render() {
84
+ //const leftIndent = this.depth > 1 ? 25 * this.depth + 'px' : '25px';
85
+ return (index.h(index.Host, { role: "none" }, index.h("a", { role: "menuitem", href: this.url, tabIndex: this.parentExpanded || this.depth === 1 ? 0 : -1, "aria-depth": this.depth, "aria-haspopup": this.hasChildren.toString(), "aria-expanded": this.hasChildren ? this.ariaExpanded.toString() : this.ariaExpanded, onClick: e => this.handleClick(e), class: this.navType }, index.h("span", null, this.label)), this.hasChildren && (index.h("div", { class: "ptc-nav-children", role: "menu", part: this.navType, "aria-label": this.label }, index.h("slot", null)))));
86
+ }
87
+ get el() { return index.getElement(this); }
88
+ static get watchers() { return {
89
+ "ariaExpanded": ["expandedHandler"]
90
+ }; }
91
+ };
92
92
  PtcNavItem.style = ptcNavItemCss;
93
93
 
94
94
  exports.ptc_nav_item = PtcNavItem;
@@ -6,14 +6,14 @@ const index = require('./index-3adcf9f4.js');
6
6
 
7
7
  const ptcNavCss = ":host{display:block}.nav-style{background-color:#1c2126;display:block}@media only screen and (min-width: 992px){.nav-style{display:grid;grid-template-columns:auto fit-content(76px);grid-template-rows:fit-content(22px) 1fr;grid-template-areas:\"secondary secondary\" \"primary language\"}.primary-nav{grid-area:primary}.secondary-nav{grid-area:secondary}.language-nav{grid-area:language}}";
8
8
 
9
- let PtcNav = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- }
13
- render() {
14
- return (index.h(index.Host, null, index.h("nav", { class: "nav-style" }, index.h("div", { class: "primary-nav", part: "primary-nav-part" }, index.h("slot", { name: "primary-nav-content" })), index.h("div", { class: "secondary-nav", part: "secondary-nav-part" }, index.h("slot", { name: "secondary-nav-content" })), index.h("div", { class: "language-nav", part: "language-nav-part" }, index.h("slot", { name: "language-nav-content" })))));
15
- }
16
- };
9
+ let PtcNav = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ }
13
+ render() {
14
+ return (index.h(index.Host, null, index.h("nav", { class: "nav-style" }, index.h("div", { class: "primary-nav", part: "primary-nav-part" }, index.h("slot", { name: "primary-nav-content" })), index.h("div", { class: "secondary-nav", part: "secondary-nav-part" }, index.h("slot", { name: "secondary-nav-content" })), index.h("div", { class: "language-nav", part: "language-nav-part" }, index.h("slot", { name: "language-nav-content" })))));
15
+ }
16
+ };
17
17
  PtcNav.style = ptcNavCss;
18
18
 
19
19
  exports.ptc_nav = PtcNav;
@@ -6,45 +6,45 @@ const index = require('./index-3adcf9f4.js');
6
6
 
7
7
  const ptcParaCss = ":host{z-index:1}p.default{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;}p.main{text-shadow:0 3px 6px var(--color-white);line-height:var(--ptc-line-height-dense);color:var(--color-primary-grey)}p.primary-grey{color:var(--color-primary-grey)}p.white{color:var(--color-white)}p.xx-small{font-size:var(--ptc-font-size-xx-small)}p.x-small{font-size:var(--ptc-font-size-x-small)}p.small{font-size:var(--ptc-font-size-small)}p.medium{font-size:var(--ptc-font-size-medium)}p.large{font-size:var(--ptc-font-size-large)}p.x-large{font-size:var(--ptc-font-size-x-large)}p.xx-large{font-size:var(--ptc-font-size-xx-large)}p.xxx-large{font-size:var(--ptc-font-size-xxx-large)}p.xxxx-large{font-size:var(--ptc-font-size-xxxx-large)}p.font-size-15{font-size:var(--ptc-font-size-15)}p.w-3{font-weight:var(--ptc-font-weight-thin)}p.w-4{font-weight:var(--ptc-font-weight-regular)}p.w-5{font-weight:var(--ptc-font-weight-medium)}p.w-6{font-weight:var(--ptc-font-weight-semibold)}p.w-7{font-weight:var(--ptc-font-weight-bold)}p.w-8{font-weight:var(--ptc-font-weight-extrabold)}p.w-9{font-weight:var(--ptc-font-weight-black)}p.margin-flush{margin-top:0;margin-bottom:0}p.margin-top-1{margin-top:var(--ptc-element-spacing-01);margin-bottom:0}p.margin-top-2{margin-top:var(--ptc-element-spacing-02);margin-bottom:0}p.margin-top-3{margin-top:var(--ptc-element-spacing-03);margin-bottom:0}p.margin-top-4{margin-top:var(--ptc-element-spacing-04);margin-bottom:0}p.margin-top-5{margin-top:var(--ptc-element-spacing-05);margin-bottom:0}p.margin-top-6{margin-top:var(--ptc-element-spacing-06);margin-bottom:0}p.margin-bottom-1{margin-bottom:var(--ptc-element-spacing-01);margin-top:0}p.margin-bottom-2{margin-bottom:var(--ptc-element-spacing-02);margin-top:0}p.margin-bottom-3{margin-bottom:var(--ptc-element-spacing-03);margin-top:0}p.margin-bottom-4{margin-bottom:var(--ptc-element-spacing-04);margin-top:0}p.margin-bottom-5{margin-bottom:var(--ptc-element-spacing-05);margin-top:0}p.margin-bottom-6{margin-bottom:var(--ptc-element-spacing-06);margin-top:0}p.margin-1{margin-top:var(--ptc-element-spacing-01);margin-bottom:var(--ptc-element-spacing-01)}p.margin-2{margin-top:var(--ptc-element-spacing-02);margin-bottom:var(--ptc-element-spacing-02)}p.margin-3{margin-top:var(--ptc-element-spacing-03);margin-bottom:var(--ptc-element-spacing-03)}p.margin-4{margin-top:var(--ptc-element-spacing-04);margin-bottom:var(--ptc-element-spacing-04)}p.margin-5{margin-top:var(--ptc-element-spacing-05);margin-bottom:var(--ptc-element-spacing-05)}p.margin-6{margin-top:var(--ptc-element-spacing-06);margin-bottom:var(--ptc-element-spacing-06)}p.line-height-17{line-height:var(--ptc-line-height-17)}p.line-height-18{line-height:var(--ptc-line-height-18)}p.line-height-19{line-height:var(--ptc-line-height-19)}p.line-height-23{line-height:23px}p.line-height-denser{line-height:var(--ptc-line-height-denser)}p.line-height-dense{line-height:var(--ptc-line-height-dense)}p.line-height-normal{line-height:var(--ptc-line-height-normal)}p.line-height-loose{line-height:var(--ptc-line-height-loose)}p.line-height-looser{line-height:var(--ptc-line-height-looser)}p.announcement{text-transform:uppercase;font-size:var(--ptc-font-size-small);color:var(--color-secondary-grey);line-height:var(--ptc-line-height-looser);letter-spacing:1px}@media screen and (min-width: 992px){p.font-size-15{font-size:var(--ptc-font-size-medium)}}";
8
8
 
9
- let PtcPara = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- /**
13
- * Paragraph font size
14
- **/
15
- this.fontSize = "medium";
16
- /**
17
- * Paragraph font weight
18
- **/
19
- this.fontWeight = 'w-4';
20
- /**
21
- * Paragraph Style
22
- **/
23
- this.paraStyle = 'default';
24
- /**
25
- * Paragraph Color
26
- */
27
- this.paraColor = 'primary-grey';
28
- /**
29
- * line height
30
- */
31
- this.paraLineH = 'line-height-normal';
32
- }
33
- render() {
34
- const classMap = this.getCssClassMap();
35
- return (index.h("p", { class: classMap, part: "part-para" }, index.h("slot", null)));
36
- }
37
- getCssClassMap() {
38
- return {
39
- [this.fontSize]: true,
40
- [this.fontWeight]: true,
41
- [this.paraStyle]: true,
42
- [this.paraMargin]: !!this.paraMargin ? true : false,
43
- [this.paraColor]: true,
44
- [this.paraLineH]: true
45
- };
46
- }
47
- };
9
+ let PtcPara = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ /**
13
+ * Paragraph font size
14
+ **/
15
+ this.fontSize = "medium";
16
+ /**
17
+ * Paragraph font weight
18
+ **/
19
+ this.fontWeight = 'w-4';
20
+ /**
21
+ * Paragraph Style
22
+ **/
23
+ this.paraStyle = 'default';
24
+ /**
25
+ * Paragraph Color
26
+ */
27
+ this.paraColor = 'primary-grey';
28
+ /**
29
+ * line height
30
+ */
31
+ this.paraLineH = 'line-height-normal';
32
+ }
33
+ render() {
34
+ const classMap = this.getCssClassMap();
35
+ return (index.h("p", { class: classMap, part: "part-para" }, index.h("slot", null)));
36
+ }
37
+ getCssClassMap() {
38
+ return {
39
+ [this.fontSize]: true,
40
+ [this.fontWeight]: true,
41
+ [this.paraStyle]: true,
42
+ [this.paraMargin]: !!this.paraMargin ? true : false,
43
+ [this.paraColor]: true,
44
+ [this.paraLineH]: true
45
+ };
46
+ }
47
+ };
48
48
  PtcPara.style = ptcParaCss;
49
49
 
50
50
  exports.ptc_para = PtcPara;