@ptcwebops/ptcw-design 0.2.2 → 0.2.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.
Files changed (129) hide show
  1. package/dist/cjs/icon-asset.cjs.entry.js +64 -0
  2. package/dist/cjs/{index-ac192914.js → index-0b899fc6.js} +158 -87
  3. package/dist/cjs/list-item.cjs.entry.js +2 -2
  4. package/dist/cjs/loader.cjs.js +3 -3
  5. package/dist/cjs/lottie-player.cjs.entry.js +2 -2
  6. package/dist/cjs/my-component.cjs.entry.js +3 -3
  7. package/dist/cjs/ptc-announcement.cjs.entry.js +35 -0
  8. package/dist/cjs/ptc-avatar.cjs.entry.js +2 -2
  9. package/dist/cjs/ptc-button_2.cjs.entry.js +97 -0
  10. package/dist/cjs/ptc-card.cjs.entry.js +2 -2
  11. package/dist/cjs/ptc-countdown.cjs.entry.js +2 -2
  12. package/dist/cjs/ptc-date.cjs.entry.js +2 -2
  13. package/dist/cjs/ptc-footer.cjs.entry.js +2 -2
  14. package/dist/cjs/ptc-form_3.cjs.entry.js +171 -0
  15. package/dist/cjs/ptc-img.cjs.entry.js +2 -2
  16. package/dist/cjs/ptc-link.cjs.entry.js +2 -2
  17. package/dist/cjs/ptc-list.cjs.entry.js +2 -2
  18. package/dist/cjs/ptc-lottie.cjs.entry.js +2 -2
  19. package/dist/cjs/ptc-nav-item.cjs.entry.js +2 -2
  20. package/dist/cjs/ptc-nav.cjs.entry.js +2 -2
  21. package/dist/cjs/ptc-overlay.cjs.entry.js +2 -2
  22. package/dist/cjs/ptc-para.cjs.entry.js +40 -0
  23. package/dist/cjs/ptc-picture.cjs.entry.js +2 -2
  24. package/dist/cjs/ptc-spacer.cjs.entry.js +2 -2
  25. package/dist/cjs/ptc-span.cjs.entry.js +2 -2
  26. package/dist/cjs/ptc-title.cjs.entry.js +3 -3
  27. package/dist/cjs/ptcw-design.cjs.js +3 -3
  28. package/dist/collection/collection-manifest.json +5 -2
  29. package/dist/collection/components/my-component/my-component.js +2 -3
  30. package/dist/collection/components/ptc-announcement/ptc-announcement.js +2 -2
  31. package/dist/collection/components/ptc-button/ptc-button.js +2 -2
  32. package/dist/collection/components/ptc-form/ptc-form.css +3 -0
  33. package/dist/collection/components/ptc-form/ptc-form.js +118 -0
  34. package/dist/collection/components/ptc-form/validation/FormValidation.full.min.js +1 -0
  35. package/dist/collection/components/ptc-form/validation/FormValidation.js +4234 -0
  36. package/dist/collection/components/ptc-input/ptc-input.css +47 -0
  37. package/dist/collection/components/ptc-input/ptc-input.js +133 -80
  38. package/dist/collection/components/ptc-select/ptc-select.css +22 -0
  39. package/dist/collection/components/ptc-select/ptc-select.js +105 -0
  40. package/dist/collection/components/ptc-title/ptc-title.js +1 -1
  41. package/dist/custom-elements/index.d.ts +19 -1
  42. package/dist/custom-elements/index.js +220 -50
  43. package/dist/esm/icon-asset.entry.js +60 -0
  44. package/dist/esm/{index-7a3883ee.js → index-eb8ce23d.js} +159 -88
  45. package/dist/esm/list-item.entry.js +2 -2
  46. package/dist/esm/loader.js +3 -3
  47. package/dist/esm/lottie-player.entry.js +2 -2
  48. package/dist/esm/my-component.entry.js +3 -3
  49. package/dist/esm/ptc-announcement.entry.js +31 -0
  50. package/dist/esm/ptc-avatar.entry.js +2 -2
  51. package/dist/esm/ptc-button_2.entry.js +92 -0
  52. package/dist/esm/ptc-card.entry.js +2 -2
  53. package/dist/esm/ptc-countdown.entry.js +2 -2
  54. package/dist/esm/ptc-date.entry.js +2 -2
  55. package/dist/esm/ptc-footer.entry.js +2 -2
  56. package/dist/esm/ptc-form_3.entry.js +165 -0
  57. package/dist/esm/ptc-img.entry.js +2 -2
  58. package/dist/esm/ptc-link.entry.js +2 -2
  59. package/dist/esm/ptc-list.entry.js +2 -2
  60. package/dist/esm/ptc-lottie.entry.js +2 -2
  61. package/dist/esm/ptc-nav-item.entry.js +2 -2
  62. package/dist/esm/ptc-nav.entry.js +2 -2
  63. package/dist/esm/ptc-overlay.entry.js +2 -2
  64. package/dist/esm/ptc-para.entry.js +36 -0
  65. package/dist/esm/ptc-picture.entry.js +2 -2
  66. package/dist/esm/ptc-spacer.entry.js +2 -2
  67. package/dist/esm/ptc-span.entry.js +2 -2
  68. package/dist/esm/ptc-title.entry.js +3 -3
  69. package/dist/esm/ptcw-design.js +3 -3
  70. package/dist/ptcw-design/p-01243ce4.entry.js +1 -0
  71. package/dist/ptcw-design/p-01f4bf71.entry.js +1 -0
  72. package/dist/ptcw-design/p-1b3b0193.entry.js +1 -0
  73. package/dist/ptcw-design/p-22fd400f.entry.js +1 -0
  74. package/dist/ptcw-design/p-23d07898.entry.js +1 -0
  75. package/dist/ptcw-design/p-2b59ce7a.entry.js +1 -0
  76. package/dist/ptcw-design/p-2ca3c085.js +1 -0
  77. package/dist/ptcw-design/p-389a5670.entry.js +1 -0
  78. package/dist/ptcw-design/p-3f42afb6.entry.js +1 -0
  79. package/dist/ptcw-design/p-51443fbb.entry.js +1 -0
  80. package/dist/ptcw-design/p-54794e45.entry.js +1 -0
  81. package/dist/ptcw-design/p-5ae43421.entry.js +1 -0
  82. package/dist/ptcw-design/p-63b55aba.entry.js +1 -0
  83. package/dist/ptcw-design/p-6b5c0d9d.entry.js +1 -0
  84. package/dist/ptcw-design/p-7076b32f.entry.js +1 -0
  85. package/dist/ptcw-design/{p-51a3e9e6.entry.js → p-75dc7328.entry.js} +1 -1
  86. package/dist/ptcw-design/p-945f5a15.entry.js +1 -0
  87. package/dist/ptcw-design/p-a86452af.entry.js +1 -0
  88. package/dist/ptcw-design/p-cf3d92e0.entry.js +1 -0
  89. package/dist/ptcw-design/p-d3f9852f.entry.js +1 -0
  90. package/dist/ptcw-design/p-d80b24c9.entry.js +1 -0
  91. package/dist/ptcw-design/p-e4b96b46.entry.js +1 -0
  92. package/dist/ptcw-design/p-eda0500f.entry.js +1 -0
  93. package/dist/ptcw-design/p-ef6acb81.entry.js +1 -0
  94. package/dist/ptcw-design/p-fd29d9dd.entry.js +1 -0
  95. package/dist/ptcw-design/ptcw-design.css +1 -1
  96. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  97. package/dist/ptcw-design/validation/FormValidation.full.min.js +1 -0
  98. package/dist/ptcw-design/validation/FormValidation.js +4234 -0
  99. package/dist/types/components/ptc-form/ptc-form.d.ts +11 -0
  100. package/dist/types/components/ptc-input/ptc-input.d.ts +19 -0
  101. package/dist/types/components/ptc-select/ptc-select.d.ts +9 -0
  102. package/dist/types/components.d.ts +63 -0
  103. package/dist/types/global.d.ts +1072 -0
  104. package/dist/types/stencil-public-runtime.d.ts +189 -186
  105. package/loader/index.d.ts +0 -1
  106. package/package.json +6 -2
  107. package/readme.md +1 -1
  108. package/dist/cjs/icon-asset_5.cjs.entry.js +0 -218
  109. package/dist/esm/icon-asset_5.entry.js +0 -210
  110. package/dist/ptcw-design/p-0c8df906.entry.js +0 -1
  111. package/dist/ptcw-design/p-186beb2c.entry.js +0 -1
  112. package/dist/ptcw-design/p-2d5f8cff.entry.js +0 -1
  113. package/dist/ptcw-design/p-50923c9a.js +0 -1
  114. package/dist/ptcw-design/p-62706e4e.entry.js +0 -1
  115. package/dist/ptcw-design/p-66ffa30c.entry.js +0 -1
  116. package/dist/ptcw-design/p-6b1a35e1.entry.js +0 -1
  117. package/dist/ptcw-design/p-73e2418e.entry.js +0 -1
  118. package/dist/ptcw-design/p-796b8287.entry.js +0 -1
  119. package/dist/ptcw-design/p-8edac972.entry.js +0 -1
  120. package/dist/ptcw-design/p-90402319.entry.js +0 -1
  121. package/dist/ptcw-design/p-919311d2.entry.js +0 -1
  122. package/dist/ptcw-design/p-ac449734.entry.js +0 -1
  123. package/dist/ptcw-design/p-d17b386a.entry.js +0 -1
  124. package/dist/ptcw-design/p-d44c44e6.entry.js +0 -1
  125. package/dist/ptcw-design/p-d6553853.entry.js +0 -1
  126. package/dist/ptcw-design/p-ef250898.entry.js +0 -1
  127. package/dist/ptcw-design/p-f694e46a.entry.js +0 -1
  128. package/dist/ptcw-design/p-f80152dc.entry.js +0 -1
  129. package/dist/ptcw-design/p-ff28ce2d.entry.js +0 -1
@@ -0,0 +1,60 @@
1
+ import { r as registerInstance, a as getAssetPath, h, H as Host } from './index-eb8ce23d.js';
2
+
3
+ const iconAssetCss = "/*!\n * Font Awesome Free 5.15.3 by @fontawesome - https://fontawesome.com\n * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)\n */.svg-inline--fa,svg:not(:root).svg-inline--fa{overflow:visible}.svg-inline--fa{display:inline-block;font-size:inherit;height:1em;vertical-align:-.125em}.svg-inline--fa.fa-lg{vertical-align:-.225em}.svg-inline--fa.fa-w-1{width:.0625em}.svg-inline--fa.fa-w-2{width:.125em}.svg-inline--fa.fa-w-3{width:.1875em}.svg-inline--fa.fa-w-4{width:.25em}.svg-inline--fa.fa-w-5{width:.3125em}.svg-inline--fa.fa-w-6{width:.375em}.svg-inline--fa.fa-w-7{width:.4375em}.svg-inline--fa.fa-w-8{width:.5em}.svg-inline--fa.fa-w-9{width:.5625em}.svg-inline--fa.fa-w-10{width:.625em}.svg-inline--fa.fa-w-11{width:.6875em}.svg-inline--fa.fa-w-12{width:.75em}.svg-inline--fa.fa-w-13{width:.8125em}.svg-inline--fa.fa-w-14{width:.875em}.svg-inline--fa.fa-w-15{width:.9375em}.svg-inline--fa.fa-w-16{width:1em}.svg-inline--fa.fa-w-17{width:1.0625em}.svg-inline--fa.fa-w-18{width:1.125em}.svg-inline--fa.fa-w-19{width:1.1875em}.svg-inline--fa.fa-w-20{width:1.25em}.svg-inline--fa.fa-pull-left{margin-right:.3em;width:auto}.svg-inline--fa.fa-pull-right{margin-left:.3em;width:auto}.svg-inline--fa.fa-border{height:1.5em}.svg-inline--fa.fa-li{width:2em}.svg-inline--fa.fa-fw{width:1.25em}.fa-layers svg.svg-inline--fa{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.fa-layers{display:inline-block;height:1em;position:relative;text-align:center;vertical-align:-.125em;width:1em}.fa-layers svg.svg-inline--fa{-webkit-transform-origin:center center;transform-origin:center center}.fa-layers-counter,.fa-layers-text{display:inline-block;position:absolute;text-align:center}.fa-layers-text{left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-transform-origin:center center;transform-origin:center center}.fa-layers-counter{background-color:#ff253a;border-radius:1em;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;height:1.5em;line-height:1;max-width:5em;min-width:1.5em;overflow:hidden;padding:.25em;right:0;text-overflow:ellipsis;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top right;transform-origin:top right}.fa-layers-bottom-right{bottom:0;right:0;top:auto;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:bottom right;transform-origin:bottom right}.fa-layers-bottom-left{bottom:0;left:0;right:auto;top:auto;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:bottom left;transform-origin:bottom left}.fa-layers-top-right{right:0;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top right;transform-origin:top right}.fa-layers-top-left{left:0;right:auto;top:0;-webkit-transform:scale(.25);transform:scale(.25);-webkit-transform-origin:top left;transform-origin:top left}.fa-lg{font-size:1.33333em;line-height:.75em;vertical-align:-.0667em}.fa-xs{font-size:.75em}.fa-sm{font-size:.875em}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-fw{text-align:center;width:1.25em}.fa-ul{list-style-type:none;margin-left:2.5em;padding-left:0}.fa-ul>li{position:relative}.fa-li{left:-2em;position:absolute;text-align:center;width:2em;line-height:inherit}.fa-border{border:.08em solid #eee;border-radius:.1em;padding:.2em .25em .15em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left,.fab.fa-pull-left,.fal.fa-pull-left,.far.fa-pull-left,.fas.fa-pull-left{margin-right:.3em}.fa.fa-pull-right,.fab.fa-pull-right,.fal.fa-pull-right,.far.fa-pull-right,.fas.fa-pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s linear infinite;animation:fa-spin 2s linear infinite}.fa-pulse{-webkit-animation:fa-spin 1s steps(8) infinite;animation:fa-spin 1s steps(8) infinite}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.fa-rotate-90{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)\";-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)\";-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)\";-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)\";-webkit-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical{-webkit-transform:scaleY(-1);transform:scaleY(-1)}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical,.fa-flip-vertical{-ms-filter:\"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)\"}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical{-webkit-transform:scale(-1);transform:scale(-1)}:root .fa-flip-both,:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270{-webkit-filter:none;filter:none}.fa-stack{display:inline-block;height:2em;position:relative;width:2.5em}.fa-stack-1x,.fa-stack-2x{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.svg-inline--fa.fa-stack-1x{height:1em;width:1.25em}.svg-inline--fa.fa-stack-2x{height:2em;width:2.5em}.fa-inverse{color:#fff}.sr-only{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.sr-only-focusable:active,.sr-only-focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}.svg-inline--fa .fa-primary{fill:var(--fa-primary-color,currentColor);opacity:1;opacity:var(--fa-primary-opacity,1)}.svg-inline--fa .fa-secondary{fill:var(--fa-secondary-color,currentColor)}.svg-inline--fa .fa-secondary,.svg-inline--fa.fa-swap-opacity .fa-primary{opacity:.4;opacity:var(--fa-secondary-opacity,.4)}.svg-inline--fa.fa-swap-opacity .fa-secondary{opacity:1;opacity:var(--fa-primary-opacity,1)}.svg-inline--fa mask .fa-primary,.svg-inline--fa mask .fa-secondary{fill:#000}.fad.fa-inverse{color:#fff}icon-asset{vertical-align:middle}svg.x-small{width:var(--ptc-font-size-x-small);height:var(--ptc-font-size-x-small)}svg.small{width:var(--ptc-font-size-small);height:var(--ptc-font-size-small)}svg.large{width:var(--ptc-font-size-large);height:var(--ptc-font-size-large)}svg.xx-large{width:var(--ptc-font-size-xx-large);height:var(--ptc-font-size-xx-large)}svg.white{fill:var(--color-white)}svg.black{fill:var(--color-black)}svg.ptc-green{fill:var(--color-primary-green)}svg.inherit{fill:inherit}";
4
+
5
+ let IconAsset = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ /**
9
+ * Icon Size
10
+ */
11
+ this.size = 'small';
12
+ /**
13
+ * Icon Type
14
+ */
15
+ this.type = 'regular';
16
+ /**
17
+ * Icon Spin Animation (not valid for ptc type)
18
+ */
19
+ this.spin = '';
20
+ /**
21
+ * Icon Pulse Animation (not valid for ptc type)
22
+ */
23
+ this.pulse = '';
24
+ /**
25
+ * Icon Color
26
+ */
27
+ this.color = 'default';
28
+ this.regularSprite = getAssetPath('./media/regular.svg');
29
+ this.solidSprite = getAssetPath('./media/solid.svg');
30
+ this.brandSprite = getAssetPath('./media/brands.svg');
31
+ this.ptcSprite = getAssetPath('./media/designer.svg');
32
+ }
33
+ render() {
34
+ const classMap = this.getCssClassMap();
35
+ if (this.type == 'brands') {
36
+ return (h(Host, null, h("svg", { class: classMap }, h("use", { href: `${this.brandSprite}#${this.name}` }))));
37
+ }
38
+ else if (this.type == 'solid') {
39
+ return (h(Host, null, h("svg", { class: classMap }, h("use", { href: `${this.solidSprite}#${this.name}` }))));
40
+ }
41
+ else if (this.type == 'ptc') {
42
+ return (h(Host, null, h("svg", { class: classMap }, h("use", { href: `${this.ptcSprite}#${this.name}` }))));
43
+ }
44
+ else {
45
+ return (h(Host, null, h("svg", { class: classMap }, h("use", { href: `${this.regularSprite}#${this.name}` }))));
46
+ }
47
+ }
48
+ getCssClassMap() {
49
+ return {
50
+ [this.size]: true,
51
+ [this.spin]: true,
52
+ [this.pulse]: true,
53
+ [this.color]: true,
54
+ };
55
+ }
56
+ static get assetsDirs() { return ["media"]; }
57
+ };
58
+ IconAsset.style = iconAssetCss;
59
+
60
+ export { IconAsset as icon_asset };
@@ -13,8 +13,8 @@ const doc = win.document || { head: {} };
13
13
  const plt = {
14
14
  $flags$: 0,
15
15
  $resourcesUrl$: '',
16
- jmp: h => h(),
17
- raf: h => requestAnimationFrame(h),
16
+ jmp: (h) => h(),
17
+ raf: (h) => requestAnimationFrame(h),
18
18
  ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
19
19
  rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
20
20
  ce: (eventName, opts) => new CustomEvent(eventName, opts),
@@ -23,7 +23,7 @@ const promiseResolve = (v) => Promise.resolve(v);
23
23
  const supportsConstructibleStylesheets = /*@__PURE__*/ (() => {
24
24
  try {
25
25
  new CSSStyleSheet();
26
- return typeof (new CSSStyleSheet()).replace === 'function';
26
+ return typeof new CSSStyleSheet().replace === 'function';
27
27
  }
28
28
  catch (e) { }
29
29
  return false;
@@ -140,6 +140,9 @@ const attachStyles = (hostRef) => {
140
140
  // DOM WRITE!!
141
141
  elm['s-sc'] = scopeId;
142
142
  elm.classList.add(scopeId + '-h');
143
+ if (flags & 2 /* scopedCssEncapsulation */) {
144
+ elm.classList.add(scopeId + '-s');
145
+ }
143
146
  }
144
147
  endAttachStyles();
145
148
  };
@@ -219,7 +222,7 @@ const h = (nodeName, vnodeData, ...children) => {
219
222
  typeof classData !== 'object'
220
223
  ? classData
221
224
  : Object.keys(classData)
222
- .filter(k => classData[k])
225
+ .filter((k) => classData[k])
223
226
  .join(' ');
224
227
  }
225
228
  }
@@ -308,8 +311,8 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
308
311
  const classList = elm.classList;
309
312
  const oldClasses = parseClassList(oldValue);
310
313
  const newClasses = parseClassList(newValue);
311
- classList.remove(...oldClasses.filter(c => c && !newClasses.includes(c)));
312
- classList.add(...newClasses.filter(c => c && !oldClasses.includes(c)));
314
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
315
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
313
316
  }
314
317
  else if (memberName === 'style') {
315
318
  // update style attribute, css properties and values
@@ -344,7 +347,9 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
344
347
  newValue(elm);
345
348
  }
346
349
  }
347
- else if ((!isProp ) && memberName[0] === 'o' && memberName[1] === 'n') {
350
+ else if ((!isProp ) &&
351
+ memberName[0] === 'o' &&
352
+ memberName[1] === 'n') {
348
353
  // Event Handlers
349
354
  // so if the member name starts with "on" and the 3rd characters is
350
355
  // a capital letter, and it's not already a member on the element,
@@ -391,7 +396,6 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
391
396
  // Workaround for Safari, moving the <input> caret when re-assigning the same valued
392
397
  if (memberName === 'list') {
393
398
  isProp = false;
394
- // tslint:disable-next-line: triple-equals
395
399
  }
396
400
  else if (oldValue == null || elm[memberName] != n) {
397
401
  elm[memberName] = n;
@@ -445,7 +449,9 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
445
449
  // if the element passed in is a shadow root, which is a document fragment
446
450
  // then we want to be adding attrs/props to the shadow root's "host" element
447
451
  // if it's not a shadow root, then we add attrs/props to the same element
448
- const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
452
+ const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host
453
+ ? newVnode.$elm$.host
454
+ : newVnode.$elm$;
449
455
  const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
450
456
  const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
451
457
  {
@@ -489,14 +495,17 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
489
495
  }
490
496
  else if (newVNode.$flags$ & 1 /* isSlotReference */) {
491
497
  // create a slot reference node
492
- elm = newVNode.$elm$ = doc.createTextNode('');
498
+ elm = newVNode.$elm$ =
499
+ doc.createTextNode('');
493
500
  }
494
501
  else {
495
502
  if (!isSvgMode) {
496
503
  isSvgMode = newVNode.$tag$ === 'svg';
497
504
  }
498
505
  // create element
499
- elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* isSlotFallback */ ? 'slot-fb' : newVNode.$tag$)
506
+ elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* isSlotFallback */
507
+ ? 'slot-fb'
508
+ : newVNode.$tag$)
500
509
  );
501
510
  if (isSvgMode && newVNode.$tag$ === 'foreignObject') {
502
511
  isSvgMode = false;
@@ -863,7 +872,7 @@ const relocateSlotContent = (elm) => {
863
872
  // that is suppose to always represent the original content location
864
873
  if (isNodeLocatedInSlot(node, slotNameAttr)) {
865
874
  // it's possible we've already decided to relocate this node
866
- relocateNodeData = relocateNodes.find(r => r.$nodeToRelocate$ === node);
875
+ relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
867
876
  // made some changes to slots
868
877
  // let's make sure we also double check
869
878
  // fallbacks are correctly hidden or shown
@@ -882,9 +891,9 @@ const relocateSlotContent = (elm) => {
882
891
  });
883
892
  }
884
893
  if (node['s-sr']) {
885
- relocateNodes.map(relocateNode => {
894
+ relocateNodes.map((relocateNode) => {
886
895
  if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node['s-sn'])) {
887
- relocateNodeData = relocateNodes.find(r => r.$nodeToRelocate$ === node);
896
+ relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
888
897
  if (relocateNodeData && !relocateNode.$slotRefNode$) {
889
898
  relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
890
899
  }
@@ -892,7 +901,7 @@ const relocateSlotContent = (elm) => {
892
901
  });
893
902
  }
894
903
  }
895
- else if (!relocateNodes.some(r => r.$nodeToRelocate$ === node)) {
904
+ else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
896
905
  // so far this element does not have a slot home, not setting slotRefNode on purpose
897
906
  // if we never find a home for this element then we'll need to hide it
898
907
  relocateNodes.push({
@@ -972,7 +981,8 @@ const renderVdom = (hostRef, renderFnResults) => {
972
981
  if (!nodeToRelocate['s-ol']) {
973
982
  // add a reference node marking this node's original location
974
983
  // keep a reference to this node for later lookups
975
- orgLocationNode = doc.createTextNode('');
984
+ orgLocationNode =
985
+ doc.createTextNode('');
976
986
  orgLocationNode['s-nr'] = nodeToRelocate;
977
987
  nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate);
978
988
  }
@@ -996,7 +1006,8 @@ const renderVdom = (hostRef, renderFnResults) => {
996
1006
  }
997
1007
  }
998
1008
  }
999
- if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) || nodeToRelocate.nextSibling !== insertBeforeNode) {
1009
+ if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
1010
+ nodeToRelocate.nextSibling !== insertBeforeNode) {
1000
1011
  // we've checked that it's worth while to relocate
1001
1012
  // since that the node to relocate
1002
1013
  // has a different next sibling or parent relocated
@@ -1042,6 +1053,13 @@ const createEvent = (ref, name, flags) => {
1042
1053
  },
1043
1054
  };
1044
1055
  };
1056
+ /**
1057
+ * Helper function to create & dispatch a custom Event on a provided target
1058
+ * @param elm the target of the Event
1059
+ * @param name the name to give the custom Event
1060
+ * @param opts options for configuring a custom Event
1061
+ * @returns the custom Event
1062
+ */
1045
1063
  const emitEvent = (elm, name, opts) => {
1046
1064
  const ev = plt.ce(name, opts);
1047
1065
  elm.dispatchEvent(ev);
@@ -1049,7 +1067,7 @@ const emitEvent = (elm, name, opts) => {
1049
1067
  };
1050
1068
  const attachToAncestor = (hostRef, ancestorComponent) => {
1051
1069
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
1052
- ancestorComponent['s-p'].push(new Promise(r => (hostRef.$onRenderResolve$ = r)));
1070
+ ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
1053
1071
  }
1054
1072
  };
1055
1073
  const scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -1079,6 +1097,9 @@ const dispatchHooks = (hostRef, isInitialLoad) => {
1079
1097
  hostRef.$queuedListeners$ = null;
1080
1098
  }
1081
1099
  }
1100
+ {
1101
+ promise = safeCall(instance, 'componentWillLoad');
1102
+ }
1082
1103
  }
1083
1104
  else {
1084
1105
  {
@@ -1108,7 +1129,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
1108
1129
  // ok, so turns out there are some child host elements
1109
1130
  // waiting on this parent element to load
1110
1131
  // let's fire off all update callbacks waiting
1111
- rc.map(cb => cb());
1132
+ rc.map((cb) => cb());
1112
1133
  elm['s-rc'] = undefined;
1113
1134
  }
1114
1135
  endRender();
@@ -1218,7 +1239,8 @@ const safeCall = (instance, method, arg) => {
1218
1239
  const then = (promise, thenFn) => {
1219
1240
  return promise && promise.then ? promise.then(thenFn) : thenFn();
1220
1241
  };
1221
- const addHydratedFlag = (elm) => (elm.classList.add('hydrated') );
1242
+ const addHydratedFlag = (elm) => elm.classList.add('hydrated')
1243
+ ;
1222
1244
  const parsePropertyValue = (propValue, propType) => {
1223
1245
  // ensure this value is of the correct prop type
1224
1246
  if (propValue != null && !isComplexType(propValue)) {
@@ -1262,7 +1284,7 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
1262
1284
  const watchMethods = cmpMeta.$watchers$[propName];
1263
1285
  if (watchMethods) {
1264
1286
  // this instance is watching for when this property changed
1265
- watchMethods.map(watchMethodName => {
1287
+ watchMethods.map((watchMethodName) => {
1266
1288
  try {
1267
1289
  // fire off each of the watch methods that are watching this property
1268
1290
  instance[watchMethodName](newVal, oldVal, propName);
@@ -1292,7 +1314,8 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1292
1314
  const members = Object.entries(cmpMeta.$members$);
1293
1315
  const prototype = Cstr.prototype;
1294
1316
  members.map(([memberName, [memberFlags]]) => {
1295
- if ((memberFlags & 31 /* Prop */ || ((flags & 2 /* proxyState */) && memberFlags & 32 /* State */))) {
1317
+ if ((memberFlags & 31 /* Prop */ ||
1318
+ ((flags & 2 /* proxyState */) && memberFlags & 32 /* State */))) {
1296
1319
  // proxyComponent - prop
1297
1320
  Object.defineProperty(prototype, memberName, {
1298
1321
  get() {
@@ -1307,7 +1330,8 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1307
1330
  enumerable: true,
1308
1331
  });
1309
1332
  }
1310
- else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
1333
+ else if (flags & 1 /* isElementConstructor */ &&
1334
+ memberFlags & 64 /* Method */) {
1311
1335
  // proxyComponent - method
1312
1336
  Object.defineProperty(prototype, memberName, {
1313
1337
  value(...args) {
@@ -1322,6 +1346,51 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1322
1346
  prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
1323
1347
  plt.jmp(() => {
1324
1348
  const propName = attrNameToPropName.get(attrName);
1349
+ // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
1350
+ // in the case where an attribute was set inline.
1351
+ // ```html
1352
+ // <my-component some-attribute="some-value"></my-component>
1353
+ // ```
1354
+ //
1355
+ // There is an edge case where a developer sets the attribute inline on a custom element and then
1356
+ // programmatically changes it before it has been upgraded as shown below:
1357
+ //
1358
+ // ```html
1359
+ // <!-- this component has _not_ been upgraded yet -->
1360
+ // <my-component id="test" some-attribute="some-value"></my-component>
1361
+ // <script>
1362
+ // // grab non-upgraded component
1363
+ // el = document.querySelector("#test");
1364
+ // el.someAttribute = "another-value";
1365
+ // // upgrade component
1366
+ // customElements.define('my-component', MyComponent);
1367
+ // </script>
1368
+ // ```
1369
+ // In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
1370
+ // will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
1371
+ // to the value that was set inline i.e. "some-value" from above example. When
1372
+ // the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
1373
+ //
1374
+ // The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
1375
+ // by connectedCallback as this attributeChangedCallback will not fire.
1376
+ //
1377
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1378
+ //
1379
+ // TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
1380
+ // properties here given that this goes against best practices outlined here
1381
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
1382
+ if (this.hasOwnProperty(propName)) {
1383
+ newValue = this[propName];
1384
+ delete this[propName];
1385
+ }
1386
+ else if (prototype.hasOwnProperty(propName) &&
1387
+ typeof this[propName] === 'number' &&
1388
+ this[propName] == newValue) {
1389
+ // if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
1390
+ // APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
1391
+ // `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
1392
+ return;
1393
+ }
1325
1394
  this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
1326
1395
  });
1327
1396
  };
@@ -1358,7 +1427,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1358
1427
  endLoad();
1359
1428
  }
1360
1429
  if (!Cstr.isProxied) {
1361
- // we'eve never proxied this Constructor before
1430
+ // we've never proxied this Constructor before
1362
1431
  // let's add the getters/setters to its prototype before
1363
1432
  // the first time we create an instance of the implementation
1364
1433
  {
@@ -1407,7 +1476,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1407
1476
  const ancestorComponent = hostRef.$ancestorComponent$;
1408
1477
  const schedule = () => scheduleUpdate(hostRef, true);
1409
1478
  if (ancestorComponent && ancestorComponent['s-rc']) {
1410
- // this is the intial load and this component it has an ancestor component
1479
+ // this is the initial load and this component it has an ancestor component
1411
1480
  // but the ancestor component has NOT fired its will update lifecycle yet
1412
1481
  // so let's just cool our jets and wait for the ancestor to continue first
1413
1482
  // this will get fired off when the ancestor component
@@ -1491,7 +1560,7 @@ const disconnectedCallback = (elm) => {
1491
1560
  const hostRef = getHostRef(elm);
1492
1561
  {
1493
1562
  if (hostRef.$rmListeners$) {
1494
- hostRef.$rmListeners$.map(rmListener => rmListener());
1563
+ hostRef.$rmListeners$.map((rmListener) => rmListener());
1495
1564
  hostRef.$rmListeners$ = undefined;
1496
1565
  }
1497
1566
  }
@@ -1510,71 +1579,73 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1510
1579
  let isBootstrapping = true;
1511
1580
  Object.assign(plt, options);
1512
1581
  plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
1513
- lazyBundles.map(lazyBundle => lazyBundle[1].map(compactMeta => {
1514
- const cmpMeta = {
1515
- $flags$: compactMeta[0],
1516
- $tagName$: compactMeta[1],
1517
- $members$: compactMeta[2],
1518
- $listeners$: compactMeta[3],
1519
- };
1520
- {
1521
- cmpMeta.$members$ = compactMeta[2];
1522
- }
1523
- {
1524
- cmpMeta.$listeners$ = compactMeta[3];
1525
- }
1526
- {
1527
- cmpMeta.$attrsToReflect$ = [];
1528
- }
1529
- {
1530
- cmpMeta.$watchers$ = {};
1531
- }
1532
- const tagName = cmpMeta.$tagName$;
1533
- const HostElement = class extends HTMLElement {
1534
- // StencilLazyHost
1535
- constructor(self) {
1536
- // @ts-ignore
1537
- super(self);
1538
- self = this;
1539
- registerHost(self, cmpMeta);
1540
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1541
- // this component is using shadow dom
1542
- // and this browser supports shadow dom
1543
- // add the read-only property "shadowRoot" to the host element
1544
- // adding the shadow root build conditionals to minimize runtime
1545
- {
1582
+ lazyBundles.map((lazyBundle) => {
1583
+ lazyBundle[1].map((compactMeta) => {
1584
+ const cmpMeta = {
1585
+ $flags$: compactMeta[0],
1586
+ $tagName$: compactMeta[1],
1587
+ $members$: compactMeta[2],
1588
+ $listeners$: compactMeta[3],
1589
+ };
1590
+ {
1591
+ cmpMeta.$members$ = compactMeta[2];
1592
+ }
1593
+ {
1594
+ cmpMeta.$listeners$ = compactMeta[3];
1595
+ }
1596
+ {
1597
+ cmpMeta.$attrsToReflect$ = [];
1598
+ }
1599
+ {
1600
+ cmpMeta.$watchers$ = {};
1601
+ }
1602
+ const tagName = cmpMeta.$tagName$;
1603
+ const HostElement = class extends HTMLElement {
1604
+ // StencilLazyHost
1605
+ constructor(self) {
1606
+ // @ts-ignore
1607
+ super(self);
1608
+ self = this;
1609
+ registerHost(self, cmpMeta);
1610
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1611
+ // this component is using shadow dom
1612
+ // and this browser supports shadow dom
1613
+ // add the read-only property "shadowRoot" to the host element
1614
+ // adding the shadow root build conditionals to minimize runtime
1546
1615
  {
1547
- self.attachShadow({ mode: 'open' });
1616
+ {
1617
+ self.attachShadow({ mode: 'open' });
1618
+ }
1548
1619
  }
1549
1620
  }
1550
1621
  }
1551
- }
1552
- connectedCallback() {
1553
- if (appLoadFallback) {
1554
- clearTimeout(appLoadFallback);
1555
- appLoadFallback = null;
1622
+ connectedCallback() {
1623
+ if (appLoadFallback) {
1624
+ clearTimeout(appLoadFallback);
1625
+ appLoadFallback = null;
1626
+ }
1627
+ if (isBootstrapping) {
1628
+ // connectedCallback will be processed once all components have been registered
1629
+ deferredConnectedCallbacks.push(this);
1630
+ }
1631
+ else {
1632
+ plt.jmp(() => connectedCallback(this));
1633
+ }
1556
1634
  }
1557
- if (isBootstrapping) {
1558
- // connectedCallback will be processed once all components have been registered
1559
- deferredConnectedCallbacks.push(this);
1635
+ disconnectedCallback() {
1636
+ plt.jmp(() => disconnectedCallback(this));
1560
1637
  }
1561
- else {
1562
- plt.jmp(() => connectedCallback(this));
1638
+ componentOnReady() {
1639
+ return getHostRef(this).$onReadyPromise$;
1563
1640
  }
1641
+ };
1642
+ cmpMeta.$lazyBundleId$ = lazyBundle[0];
1643
+ if (!exclude.includes(tagName) && !customElements.get(tagName)) {
1644
+ cmpTags.push(tagName);
1645
+ customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
1564
1646
  }
1565
- disconnectedCallback() {
1566
- plt.jmp(() => disconnectedCallback(this));
1567
- }
1568
- componentOnReady() {
1569
- return getHostRef(this).$onReadyPromise$;
1570
- }
1571
- };
1572
- cmpMeta.$lazyBundleId$ = lazyBundle[0];
1573
- if (!exclude.includes(tagName) && !customElements.get(tagName)) {
1574
- cmpTags.push(tagName);
1575
- customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
1576
- }
1577
- }));
1647
+ });
1648
+ });
1578
1649
  {
1579
1650
  visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
1580
1651
  visibilityStyle.setAttribute('data-styles', '');
@@ -1583,7 +1654,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1583
1654
  // Process deferred connectedCallbacks now all components have been registered
1584
1655
  isBootstrapping = false;
1585
1656
  if (deferredConnectedCallbacks.length) {
1586
- deferredConnectedCallbacks.map(host => host.connectedCallback());
1657
+ deferredConnectedCallbacks.map((host) => host.connectedCallback());
1587
1658
  }
1588
1659
  else {
1589
1660
  {
@@ -1608,10 +1679,10 @@ const registerHost = (elm, cmpMeta) => {
1608
1679
  $instanceValues$: new Map(),
1609
1680
  };
1610
1681
  {
1611
- hostRef.$onInstancePromise$ = new Promise(r => (hostRef.$onInstanceResolve$ = r));
1682
+ hostRef.$onInstancePromise$ = new Promise((r) => (hostRef.$onInstanceResolve$ = r));
1612
1683
  }
1613
1684
  {
1614
- hostRef.$onReadyPromise$ = new Promise(r => (hostRef.$onReadyResolve$ = r));
1685
+ hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
1615
1686
  elm['s-p'] = [];
1616
1687
  elm['s-rc'] = [];
1617
1688
  }
@@ -1633,7 +1704,7 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1633
1704
  /* webpackInclude: /\.entry\.js$/ */
1634
1705
  /* webpackExclude: /\.system\.entry\.js$/ */
1635
1706
  /* webpackMode: "lazy" */
1636
- `./${bundleId}.entry.js${''}`).then(importedModule => {
1707
+ `./${bundleId}.entry.js${''}`).then((importedModule) => {
1637
1708
  {
1638
1709
  cmpModules.set(bundleId, importedModule);
1639
1710
  }
@@ -1684,4 +1755,4 @@ const flush = () => {
1684
1755
  const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
1685
1756
  const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1686
1757
 
1687
- export { Host as H, getElement as a, bootstrapLazy as b, createEvent as c, getAssetPath as g, h, promiseResolve as p, registerInstance as r };
1758
+ export { Host as H, getAssetPath as a, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r };
@@ -1,8 +1,8 @@
1
- import { r as registerInstance, h, H as Host } from './index-7a3883ee.js';
1
+ import { r as registerInstance, h, H as Host } from './index-eb8ce23d.js';
2
2
 
3
3
  const listItemCss = ":host{display:block}";
4
4
 
5
- const ListItem = class {
5
+ let ListItem = class {
6
6
  constructor(hostRef) {
7
7
  registerInstance(this, hostRef);
8
8
  this.listType = 'para-list';
@@ -1,7 +1,7 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-7a3883ee.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-eb8ce23d.js';
2
2
 
3
3
  /*
4
- Stencil Client Patch Esm v2.6.0 | MIT Licensed | https://stenciljs.com
4
+ Stencil Client Patch Esm v2.13.0 | MIT Licensed | https://stenciljs.com
5
5
  */
6
6
  const patchEsm = () => {
7
7
  return promiseResolve();
@@ -10,7 +10,7 @@ const patchEsm = () => {
10
10
  const defineCustomElements = (win, options) => {
11
11
  if (typeof window === 'undefined') return Promise.resolve();
12
12
  return patchEsm().then(() => {
13
- return bootstrapLazy([["ptc-card",[[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],"cardDate":[1,"card-date"],"styles":[1]}]]],["ptc-link",[[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",[[1,"ptc-lottie",{"jsonSrc":[1025,"json-src"],"speed":[1026]}]]],["list-item",[[4,"list-item",{"listType":[1,"list-type"],"linkHref":[1,"link-href"]}]]],["my-component",[[1,"my-component",{"first":[1],"middle":[1],"last":[1]}]]],["ptc-avatar",[[1,"ptc-avatar"]]],["ptc-countdown",[[1,"ptc-countdown"]]],["ptc-footer",[[1,"ptc-footer"]]],["ptc-img",[[0,"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"]]]]],["ptc-list",[[0,"ptc-list",{"listType":[1,"list-type"],"listItems":[16]}]]],["ptc-nav",[[1,"ptc-nav"]]],["ptc-nav-item",[[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-overlay",[[4,"ptc-overlay"]]],["ptc-picture",[[1,"ptc-picture",{"src":[1],"alt":[1],"sizeXs":[1025,"size-xs"],"sizeSm":[1025,"size-sm"],"sizeMd":[1025,"size-md"],"sizeLg":[1025,"size-lg"],"borderRadius":[1,"border-radius"],"height":[1],"width":[1],"objectFit":[1,"object-fit"],"styles":[1],"oldSrc":[32]},[[9,"resize","WindowResize"]]]]],["ptc-spacer",[[1,"ptc-spacer",{"breakpoint":[1],"size":[1],"direction":[1]}]]],["ptc-span",[[1,"ptc-span",{"spanStyle":[1,"span-style"],"display":[1],"styles":[1]}]]],["ptc-title",[[1,"ptc-title",{"type":[1],"textAlign":[1,"text-align"],"upperline":[1]}]]],["lottie-player",[[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",[[1,"ptc-date",{"year":[2],"month":[2],"day":[2],"country":[1],"dateString":[1,"date-string"],"dateStyles":[1,"date-styles"]}]]],["icon-asset_5",[[1,"ptc-announcement",{"btnText":[513,"btn-text"],"visible":[1540],"btnLink":[513,"btn-link"],"tempContainer":[4,"temp-container"]}],[1,"ptc-para",{"fontSize":[1,"font-size"],"fontWeight":[1,"font-weight"],"paraStyle":[1,"para-style"],"paraMargin":[1,"para-margin"]}],[1,"ptc-button",{"disabled":[516],"type":[1],"color":[1],"iconAnimation":[1,"icon-animation"],"iconPosition":[1,"icon-position"],"linkHref":[1,"link-href"],"target":[1],"rel":[1],"tabNav":[2,"tab-nav"],"styles":[1]}],[1,"ptc-svg-btn",{"svgName":[1,"svg-name"]}],[0,"icon-asset",{"name":[1],"size":[1],"type":[1],"spin":[1],"pulse":[1],"color":[1]}]]]], options);
13
+ return bootstrapLazy([["ptc-announcement",[[1,"ptc-announcement",{"btnText":[513,"btn-text"],"visible":[1540],"btnLink":[513,"btn-link"],"tempContainer":[4,"temp-container"]}]]],["ptc-card",[[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],"cardDate":[1,"card-date"],"styles":[1]}]]],["ptc-link",[[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",[[1,"ptc-lottie",{"jsonSrc":[1025,"json-src"],"speed":[1026]}]]],["ptc-form_3",[[6,"ptc-form",{"value":[32],"inputValue":[32],"selectValue":[32]}],[6,"ptc-input",{"type":[1],"dataEloquaName":[1,"data-eloqua-name"],"inputId":[1,"input-id"],"inputName":[1,"input-name"],"focused":[32]}],[6,"ptc-select",{"dataEloquaName":[1,"data-eloqua-name"],"selectId":[1,"select-id"],"name":[1],"valueOptions":[1040]}]]],["list-item",[[4,"list-item",{"listType":[1,"list-type"],"linkHref":[1,"link-href"]}]]],["my-component",[[1,"my-component",{"first":[1],"middle":[1],"last":[1]}]]],["ptc-avatar",[[1,"ptc-avatar"]]],["ptc-countdown",[[1,"ptc-countdown"]]],["ptc-footer",[[1,"ptc-footer"]]],["ptc-img",[[0,"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"]]]]],["ptc-list",[[0,"ptc-list",{"listType":[1,"list-type"],"listItems":[16]}]]],["ptc-nav",[[1,"ptc-nav"]]],["ptc-nav-item",[[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-overlay",[[4,"ptc-overlay"]]],["ptc-para",[[1,"ptc-para",{"fontSize":[1,"font-size"],"fontWeight":[1,"font-weight"],"paraStyle":[1,"para-style"],"paraMargin":[1,"para-margin"]}]]],["ptc-picture",[[1,"ptc-picture",{"src":[1],"alt":[1],"sizeXs":[1025,"size-xs"],"sizeSm":[1025,"size-sm"],"sizeMd":[1025,"size-md"],"sizeLg":[1025,"size-lg"],"borderRadius":[1,"border-radius"],"height":[1],"width":[1],"objectFit":[1,"object-fit"],"styles":[1],"oldSrc":[32]},[[9,"resize","WindowResize"]]]]],["ptc-spacer",[[1,"ptc-spacer",{"breakpoint":[1],"size":[1],"direction":[1]}]]],["ptc-span",[[1,"ptc-span",{"spanStyle":[1,"span-style"],"display":[1],"styles":[1]}]]],["ptc-title",[[6,"ptc-title",{"type":[1],"textAlign":[1,"text-align"],"upperline":[1]}]]],["lottie-player",[[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",[[1,"ptc-date",{"year":[2],"month":[2],"day":[2],"country":[1],"dateString":[1,"date-string"],"dateStyles":[1,"date-styles"]}]]],["ptc-button_2",[[1,"ptc-button",{"disabled":[516],"type":[1],"color":[1],"iconAnimation":[1,"icon-animation"],"iconPosition":[1,"icon-position"],"linkHref":[1,"link-href"],"target":[1],"rel":[1],"tabNav":[2,"tab-nav"],"styles":[1]}],[1,"ptc-svg-btn",{"svgName":[1,"svg-name"]}]]],["icon-asset",[[0,"icon-asset",{"name":[1],"size":[1],"type":[1],"spin":[1],"pulse":[1],"color":[1]}]]]], options);
14
14
  });
15
15
  };
16
16
 
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-7a3883ee.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-eb8ce23d.js';
2
2
 
3
3
  function createCommonjsModule(fn, basedir, module) {
4
4
  return module = {
@@ -13113,7 +13113,7 @@ var PlayMode;
13113
13113
 
13114
13114
  const lottiePlayerCss = ":host{--lottie-player-toolbar-height:35px;--lottie-player-toolbar-background-color:transparent;--lottie-player-toolbar-icon-color:#999;--lottie-player-toolbar-icon-hover-color:#222;--lottie-player-toolbar-icon-active-color:#555;--lottie-player-seeker-track-color:#CCC;--lottie-player-seeker-thumb-color:rgba(0, 107, 120, 0.8);display:block;width:100%;height:100%}.main{box-sizing:border-box;display:inline-grid;grid-auto-columns:auto;grid-template-rows:auto;position:relative;height:inherit;width:inherit}.main.controls{grid-template-rows:1fr var(--lottie-player-toolbar-height)}.animation{overflow:hidden;height:calc(1fr - var(--lottie-player-toolbar-height))}.toolbar{display:grid;grid-template-columns:32px 32px 1fr 32px 32px;align-items:center;justify-items:center;background-color:var(--lottie-player-toolbar-background-color)}.toolbar button{cursor:pointer;fill:var(--lottie-player-toolbar-icon-color);display:flex;background:none;border:0;padding:0;outline:none;height:100%}.toolbar button:hover{fill:var(--lottie-player-toolbar-icon-hover-color)}.toolbar button.active{fill:var(--lottie-player-toolbar-icon-active-color)}.toolbar button.disabled svg{display:none}.toolbar a{filter:grayscale(100%);display:flex;transition:filter .5s, opacity 0.5s;opacity:0.4;height:100%;align-items:center}.toolbar a:hover{filter:none;display:flex;opacity:1}.seeker{-webkit-appearance:none;width:95%;outline:none}.seeker::-webkit-slider-runnable-track{width:100%;height:5px;cursor:pointer;background:var(--lottie-player-seeker-track-color);border-radius:3px}.seeker::-webkit-slider-thumb{height:15px;width:15px;border-radius:50%;background:var(--lottie-player-seeker-thumb-color);cursor:pointer;-webkit-appearance:none;margin-top:-5px}.seeker:focus::-webkit-slider-runnable-track{background:#999}.seeker::-moz-range-track{width:100%;height:5px;cursor:pointer;background:var(--lottie-player-seeker-track-color);border-radius:3px}.seeker::-moz-range-thumb{height:15px;width:15px;border-radius:50%;background:var(--lottie-player-seeker-thumb-color);cursor:pointer}.seeker::-ms-track{width:100%;height:5px;cursor:pointer;background:transparent;border-color:transparent;color:transparent}.seeker::-ms-fill-lower{background:var(--lottie-player-seeker-track-color);border-radius:3px}.seeker::-ms-fill-upper{background:var(--lottie-player-seeker-track-color);border-radius:3px}.seeker::-ms-thumb{border:0;height:15px;width:15px;border-radius:50%;background:var(--lottie-player-seeker-thumb-color);cursor:pointer}.seeker:focus::-ms-fill-lower{background:var(--lottie-player-seeker-track-color)}.seeker:focus::-ms-fill-upper{background:var(--lottie-player-seeker-track-color)}.error{display:flex;justify-content:center;height:100%;align-items:center}";
13115
13115
 
13116
- const LottiePlayer = class {
13116
+ let LottiePlayer = class {
13117
13117
  constructor(hostRef) {
13118
13118
  registerInstance(this, hostRef);
13119
13119
  this.error = createEvent(this, "error", 7);
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-7a3883ee.js';
1
+ import { r as registerInstance, h } from './index-eb8ce23d.js';
2
2
 
3
3
  function format(first, middle, last) {
4
4
  return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');
@@ -6,7 +6,7 @@ function format(first, middle, last) {
6
6
 
7
7
  const myComponentCss = ":host{display:block}";
8
8
 
9
- const MyComponent = class {
9
+ let MyComponent = class {
10
10
  constructor(hostRef) {
11
11
  registerInstance(this, hostRef);
12
12
  }
@@ -14,7 +14,7 @@ const MyComponent = class {
14
14
  return format(this.first, this.middle, this.last);
15
15
  }
16
16
  render() {
17
- return h("div", null, h("h4", null, "Hello, World! I'm ", this.getText()));
17
+ return h("div", null, "Hello, World! I'm ", this.getText());
18
18
  }
19
19
  };
20
20
  MyComponent.style = myComponentCss;