@ptcwebops/ptcw-design 0.2.5 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/icon-asset.cjs.entry.js +2 -2
- package/dist/cjs/{index-425f1f02.js → index-0b899fc6.js} +152 -87
- package/dist/cjs/list-item.cjs.entry.js +2 -2
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/lottie-player.cjs.entry.js +2 -2
- package/dist/cjs/my-component.cjs.entry.js +2 -2
- package/dist/cjs/ptc-announcement_2.cjs.entry.js +68 -0
- package/dist/cjs/ptc-avatar.cjs.entry.js +2 -2
- package/dist/cjs/{ptc-button_2.cjs.entry.js → ptc-button.cjs.entry.js} +2 -27
- package/dist/cjs/ptc-card.cjs.entry.js +8 -4
- package/dist/cjs/ptc-countdown.cjs.entry.js +2 -2
- package/dist/cjs/ptc-date.cjs.entry.js +2 -2
- package/dist/cjs/ptc-footer.cjs.entry.js +2 -2
- package/dist/cjs/{ptc-form_3.cjs.entry.js → ptc-form.cjs.entry.js} +2 -56
- package/dist/cjs/ptc-img.cjs.entry.js +2 -2
- package/dist/cjs/ptc-input.cjs.entry.js +31 -0
- package/dist/cjs/ptc-link.cjs.entry.js +2 -2
- package/dist/cjs/ptc-list.cjs.entry.js +2 -2
- package/dist/cjs/ptc-lottie.cjs.entry.js +2 -2
- package/dist/cjs/ptc-nav-item.cjs.entry.js +2 -2
- package/dist/cjs/ptc-nav.cjs.entry.js +2 -2
- package/dist/cjs/ptc-overlay.cjs.entry.js +2 -2
- package/dist/cjs/ptc-para.cjs.entry.js +2 -2
- package/dist/cjs/ptc-picture.cjs.entry.js +2 -2
- package/dist/cjs/ptc-select.cjs.entry.js +35 -0
- package/dist/cjs/ptc-spacer.cjs.entry.js +2 -2
- package/dist/cjs/ptc-span.cjs.entry.js +2 -2
- package/dist/cjs/ptc-title.cjs.entry.js +2 -2
- package/dist/cjs/ptcw-design.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/ptc-announcement/ptc-announcement.css +71 -9
- package/dist/collection/components/ptc-announcement/ptc-announcement.js +58 -15
- package/dist/collection/components/ptc-card/ptc-card.css +13 -2
- package/dist/collection/components/ptc-card/ptc-card.js +23 -1
- package/dist/collection/components/ptc-svg-btn/ptc-svg-btn.css +2 -2
- package/dist/custom-elements/index.js +67 -55
- package/dist/esm/icon-asset.entry.js +2 -2
- package/dist/esm/{index-e3922662.js → index-eb8ce23d.js} +152 -87
- package/dist/esm/list-item.entry.js +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/lottie-player.entry.js +2 -2
- package/dist/esm/my-component.entry.js +2 -2
- package/dist/esm/ptc-announcement_2.entry.js +63 -0
- package/dist/esm/ptc-avatar.entry.js +2 -2
- package/dist/esm/{ptc-button_2.entry.js → ptc-button.entry.js} +3 -27
- package/dist/esm/ptc-card.entry.js +8 -4
- package/dist/esm/ptc-countdown.entry.js +2 -2
- package/dist/esm/ptc-date.entry.js +2 -2
- package/dist/esm/ptc-footer.entry.js +2 -2
- package/dist/esm/{ptc-form_3.entry.js → ptc-form.entry.js} +3 -55
- package/dist/esm/ptc-img.entry.js +2 -2
- package/dist/esm/ptc-input.entry.js +27 -0
- package/dist/esm/ptc-link.entry.js +2 -2
- package/dist/esm/ptc-list.entry.js +2 -2
- package/dist/esm/ptc-lottie.entry.js +2 -2
- package/dist/esm/ptc-nav-item.entry.js +2 -2
- package/dist/esm/ptc-nav.entry.js +2 -2
- package/dist/esm/ptc-overlay.entry.js +2 -2
- package/dist/esm/ptc-para.entry.js +2 -2
- package/dist/esm/ptc-picture.entry.js +2 -2
- package/dist/esm/ptc-select.entry.js +31 -0
- package/dist/esm/ptc-spacer.entry.js +2 -2
- package/dist/esm/ptc-span.entry.js +2 -2
- package/dist/esm/ptc-title.entry.js +2 -2
- package/dist/esm/ptcw-design.js +3 -3
- package/dist/ptcw-design/p-01f4bf71.entry.js +1 -0
- package/dist/ptcw-design/p-1b3b0193.entry.js +1 -0
- package/dist/ptcw-design/p-1bf9750d.entry.js +1 -0
- package/dist/ptcw-design/p-22fd400f.entry.js +1 -0
- package/dist/ptcw-design/p-23d07898.entry.js +1 -0
- package/dist/ptcw-design/p-29c54eb0.entry.js +1 -0
- package/dist/ptcw-design/p-2b59ce7a.entry.js +1 -0
- package/dist/ptcw-design/{p-270b1d80.js → p-2ca3c085.js} +1 -1
- package/dist/ptcw-design/p-32ef3a79.entry.js +1 -0
- package/dist/ptcw-design/p-389a5670.entry.js +1 -0
- package/dist/ptcw-design/p-3f42afb6.entry.js +1 -0
- package/dist/ptcw-design/p-51443fbb.entry.js +1 -0
- package/dist/ptcw-design/p-54794e45.entry.js +1 -0
- package/dist/ptcw-design/p-5ae43421.entry.js +1 -0
- package/dist/ptcw-design/p-63b55aba.entry.js +1 -0
- package/dist/ptcw-design/p-6b5c0d9d.entry.js +1 -0
- package/dist/ptcw-design/p-7076b32f.entry.js +1 -0
- package/dist/ptcw-design/{p-97f58338.entry.js → p-75dc7328.entry.js} +1 -1
- package/dist/ptcw-design/p-7b379559.entry.js +1 -0
- package/dist/ptcw-design/p-a86452af.entry.js +1 -0
- package/dist/ptcw-design/p-d3f9852f.entry.js +1 -0
- package/dist/ptcw-design/p-d80b24c9.entry.js +1 -0
- package/dist/ptcw-design/p-e4b96b46.entry.js +1 -0
- package/dist/ptcw-design/p-e8650244.entry.js +1 -0
- package/dist/ptcw-design/p-ef6acb81.entry.js +1 -0
- package/dist/ptcw-design/p-f94c4594.entry.js +1 -0
- package/dist/ptcw-design/p-fd29d9dd.entry.js +1 -0
- package/dist/ptcw-design/ptcw-design.css +1 -1
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/ptc-announcement/ptc-announcement.d.ts +12 -4
- package/dist/types/components/ptc-card/ptc-card.d.ts +4 -0
- package/dist/types/components.d.ts +34 -10
- package/dist/types/stencil-public-runtime.d.ts +189 -186
- package/loader/index.d.ts +0 -1
- package/package.json +1 -1
- package/readme.md +1 -1
- package/dist/cjs/ptc-announcement.cjs.entry.js +0 -35
- package/dist/esm/ptc-announcement.entry.js +0 -31
- package/dist/ptcw-design/p-0227c172.entry.js +0 -1
- package/dist/ptcw-design/p-111b1b90.entry.js +0 -1
- package/dist/ptcw-design/p-15dc1842.entry.js +0 -1
- package/dist/ptcw-design/p-175698af.entry.js +0 -1
- package/dist/ptcw-design/p-1f09a61f.entry.js +0 -1
- package/dist/ptcw-design/p-46dda8d6.entry.js +0 -1
- package/dist/ptcw-design/p-53a11d94.entry.js +0 -1
- package/dist/ptcw-design/p-56cd3d67.entry.js +0 -1
- package/dist/ptcw-design/p-5a3f2869.entry.js +0 -1
- package/dist/ptcw-design/p-62a09486.entry.js +0 -1
- package/dist/ptcw-design/p-773375df.entry.js +0 -1
- package/dist/ptcw-design/p-7e01a6f6.entry.js +0 -1
- package/dist/ptcw-design/p-ade7469e.entry.js +0 -1
- package/dist/ptcw-design/p-c1c2eff4.entry.js +0 -1
- package/dist/ptcw-design/p-d378a52b.entry.js +0 -1
- package/dist/ptcw-design/p-d5fcf7cd.entry.js +0 -1
- package/dist/ptcw-design/p-e4409a82.entry.js +0 -1
- package/dist/ptcw-design/p-e686d4b7.entry.js +0 -1
- package/dist/ptcw-design/p-e7e248c2.entry.js +0 -1
- package/dist/ptcw-design/p-e93374d9.entry.js +0 -1
- package/dist/ptcw-design/p-ea705937.entry.js +0 -1
- package/dist/ptcw-design/p-f1eb2b51.entry.js +0 -1
- package/dist/ptcw-design/p-f2d4dff4.entry.js +0 -1
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-0b899fc6.js');
|
|
6
6
|
|
|
7
7
|
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}";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
let IconAsset = class {
|
|
10
10
|
constructor(hostRef) {
|
|
11
11
|
index.registerInstance(this, hostRef);
|
|
12
12
|
/**
|
|
@@ -35,8 +35,8 @@ const doc = win.document || { head: {} };
|
|
|
35
35
|
const plt = {
|
|
36
36
|
$flags$: 0,
|
|
37
37
|
$resourcesUrl$: '',
|
|
38
|
-
jmp: h => h(),
|
|
39
|
-
raf: h => requestAnimationFrame(h),
|
|
38
|
+
jmp: (h) => h(),
|
|
39
|
+
raf: (h) => requestAnimationFrame(h),
|
|
40
40
|
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
41
41
|
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
42
42
|
ce: (eventName, opts) => new CustomEvent(eventName, opts),
|
|
@@ -45,7 +45,7 @@ const promiseResolve = (v) => Promise.resolve(v);
|
|
|
45
45
|
const supportsConstructibleStylesheets = /*@__PURE__*/ (() => {
|
|
46
46
|
try {
|
|
47
47
|
new CSSStyleSheet();
|
|
48
|
-
return typeof
|
|
48
|
+
return typeof new CSSStyleSheet().replace === 'function';
|
|
49
49
|
}
|
|
50
50
|
catch (e) { }
|
|
51
51
|
return false;
|
|
@@ -244,7 +244,7 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
244
244
|
typeof classData !== 'object'
|
|
245
245
|
? classData
|
|
246
246
|
: Object.keys(classData)
|
|
247
|
-
.filter(k => classData[k])
|
|
247
|
+
.filter((k) => classData[k])
|
|
248
248
|
.join(' ');
|
|
249
249
|
}
|
|
250
250
|
}
|
|
@@ -333,8 +333,8 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
333
333
|
const classList = elm.classList;
|
|
334
334
|
const oldClasses = parseClassList(oldValue);
|
|
335
335
|
const newClasses = parseClassList(newValue);
|
|
336
|
-
classList.remove(...oldClasses.filter(c => c && !newClasses.includes(c)));
|
|
337
|
-
classList.add(...newClasses.filter(c => c && !oldClasses.includes(c)));
|
|
336
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
337
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
338
338
|
}
|
|
339
339
|
else if (memberName === 'style') {
|
|
340
340
|
// update style attribute, css properties and values
|
|
@@ -369,7 +369,9 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
369
369
|
newValue(elm);
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
|
-
else if ((!isProp ) &&
|
|
372
|
+
else if ((!isProp ) &&
|
|
373
|
+
memberName[0] === 'o' &&
|
|
374
|
+
memberName[1] === 'n') {
|
|
373
375
|
// Event Handlers
|
|
374
376
|
// so if the member name starts with "on" and the 3rd characters is
|
|
375
377
|
// a capital letter, and it's not already a member on the element,
|
|
@@ -416,7 +418,6 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
416
418
|
// Workaround for Safari, moving the <input> caret when re-assigning the same valued
|
|
417
419
|
if (memberName === 'list') {
|
|
418
420
|
isProp = false;
|
|
419
|
-
// tslint:disable-next-line: triple-equals
|
|
420
421
|
}
|
|
421
422
|
else if (oldValue == null || elm[memberName] != n) {
|
|
422
423
|
elm[memberName] = n;
|
|
@@ -470,7 +471,9 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
|
|
|
470
471
|
// if the element passed in is a shadow root, which is a document fragment
|
|
471
472
|
// then we want to be adding attrs/props to the shadow root's "host" element
|
|
472
473
|
// if it's not a shadow root, then we add attrs/props to the same element
|
|
473
|
-
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host
|
|
474
|
+
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host
|
|
475
|
+
? newVnode.$elm$.host
|
|
476
|
+
: newVnode.$elm$;
|
|
474
477
|
const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
|
|
475
478
|
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
476
479
|
{
|
|
@@ -514,14 +517,17 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
514
517
|
}
|
|
515
518
|
else if (newVNode.$flags$ & 1 /* isSlotReference */) {
|
|
516
519
|
// create a slot reference node
|
|
517
|
-
elm = newVNode.$elm$ =
|
|
520
|
+
elm = newVNode.$elm$ =
|
|
521
|
+
doc.createTextNode('');
|
|
518
522
|
}
|
|
519
523
|
else {
|
|
520
524
|
if (!isSvgMode) {
|
|
521
525
|
isSvgMode = newVNode.$tag$ === 'svg';
|
|
522
526
|
}
|
|
523
527
|
// create element
|
|
524
|
-
elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* isSlotFallback */
|
|
528
|
+
elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* isSlotFallback */
|
|
529
|
+
? 'slot-fb'
|
|
530
|
+
: newVNode.$tag$)
|
|
525
531
|
);
|
|
526
532
|
if (isSvgMode && newVNode.$tag$ === 'foreignObject') {
|
|
527
533
|
isSvgMode = false;
|
|
@@ -888,7 +894,7 @@ const relocateSlotContent = (elm) => {
|
|
|
888
894
|
// that is suppose to always represent the original content location
|
|
889
895
|
if (isNodeLocatedInSlot(node, slotNameAttr)) {
|
|
890
896
|
// it's possible we've already decided to relocate this node
|
|
891
|
-
relocateNodeData = relocateNodes.find(r => r.$nodeToRelocate$ === node);
|
|
897
|
+
relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
892
898
|
// made some changes to slots
|
|
893
899
|
// let's make sure we also double check
|
|
894
900
|
// fallbacks are correctly hidden or shown
|
|
@@ -907,9 +913,9 @@ const relocateSlotContent = (elm) => {
|
|
|
907
913
|
});
|
|
908
914
|
}
|
|
909
915
|
if (node['s-sr']) {
|
|
910
|
-
relocateNodes.map(relocateNode => {
|
|
916
|
+
relocateNodes.map((relocateNode) => {
|
|
911
917
|
if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node['s-sn'])) {
|
|
912
|
-
relocateNodeData = relocateNodes.find(r => r.$nodeToRelocate$ === node);
|
|
918
|
+
relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
913
919
|
if (relocateNodeData && !relocateNode.$slotRefNode$) {
|
|
914
920
|
relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
|
|
915
921
|
}
|
|
@@ -917,7 +923,7 @@ const relocateSlotContent = (elm) => {
|
|
|
917
923
|
});
|
|
918
924
|
}
|
|
919
925
|
}
|
|
920
|
-
else if (!relocateNodes.some(r => r.$nodeToRelocate$ === node)) {
|
|
926
|
+
else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
|
|
921
927
|
// so far this element does not have a slot home, not setting slotRefNode on purpose
|
|
922
928
|
// if we never find a home for this element then we'll need to hide it
|
|
923
929
|
relocateNodes.push({
|
|
@@ -997,7 +1003,8 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
997
1003
|
if (!nodeToRelocate['s-ol']) {
|
|
998
1004
|
// add a reference node marking this node's original location
|
|
999
1005
|
// keep a reference to this node for later lookups
|
|
1000
|
-
orgLocationNode =
|
|
1006
|
+
orgLocationNode =
|
|
1007
|
+
doc.createTextNode('');
|
|
1001
1008
|
orgLocationNode['s-nr'] = nodeToRelocate;
|
|
1002
1009
|
nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate);
|
|
1003
1010
|
}
|
|
@@ -1021,7 +1028,8 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
1021
1028
|
}
|
|
1022
1029
|
}
|
|
1023
1030
|
}
|
|
1024
|
-
if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
|
|
1031
|
+
if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
|
|
1032
|
+
nodeToRelocate.nextSibling !== insertBeforeNode) {
|
|
1025
1033
|
// we've checked that it's worth while to relocate
|
|
1026
1034
|
// since that the node to relocate
|
|
1027
1035
|
// has a different next sibling or parent relocated
|
|
@@ -1067,6 +1075,13 @@ const createEvent = (ref, name, flags) => {
|
|
|
1067
1075
|
},
|
|
1068
1076
|
};
|
|
1069
1077
|
};
|
|
1078
|
+
/**
|
|
1079
|
+
* Helper function to create & dispatch a custom Event on a provided target
|
|
1080
|
+
* @param elm the target of the Event
|
|
1081
|
+
* @param name the name to give the custom Event
|
|
1082
|
+
* @param opts options for configuring a custom Event
|
|
1083
|
+
* @returns the custom Event
|
|
1084
|
+
*/
|
|
1070
1085
|
const emitEvent = (elm, name, opts) => {
|
|
1071
1086
|
const ev = plt.ce(name, opts);
|
|
1072
1087
|
elm.dispatchEvent(ev);
|
|
@@ -1074,7 +1089,7 @@ const emitEvent = (elm, name, opts) => {
|
|
|
1074
1089
|
};
|
|
1075
1090
|
const attachToAncestor = (hostRef, ancestorComponent) => {
|
|
1076
1091
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
|
|
1077
|
-
ancestorComponent['s-p'].push(new Promise(r => (hostRef.$onRenderResolve$ = r)));
|
|
1092
|
+
ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
|
|
1078
1093
|
}
|
|
1079
1094
|
};
|
|
1080
1095
|
const scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -1136,7 +1151,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
1136
1151
|
// ok, so turns out there are some child host elements
|
|
1137
1152
|
// waiting on this parent element to load
|
|
1138
1153
|
// let's fire off all update callbacks waiting
|
|
1139
|
-
rc.map(cb => cb());
|
|
1154
|
+
rc.map((cb) => cb());
|
|
1140
1155
|
elm['s-rc'] = undefined;
|
|
1141
1156
|
}
|
|
1142
1157
|
endRender();
|
|
@@ -1246,7 +1261,8 @@ const safeCall = (instance, method, arg) => {
|
|
|
1246
1261
|
const then = (promise, thenFn) => {
|
|
1247
1262
|
return promise && promise.then ? promise.then(thenFn) : thenFn();
|
|
1248
1263
|
};
|
|
1249
|
-
const addHydratedFlag = (elm) =>
|
|
1264
|
+
const addHydratedFlag = (elm) => elm.classList.add('hydrated')
|
|
1265
|
+
;
|
|
1250
1266
|
const parsePropertyValue = (propValue, propType) => {
|
|
1251
1267
|
// ensure this value is of the correct prop type
|
|
1252
1268
|
if (propValue != null && !isComplexType(propValue)) {
|
|
@@ -1290,7 +1306,7 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1290
1306
|
const watchMethods = cmpMeta.$watchers$[propName];
|
|
1291
1307
|
if (watchMethods) {
|
|
1292
1308
|
// this instance is watching for when this property changed
|
|
1293
|
-
watchMethods.map(watchMethodName => {
|
|
1309
|
+
watchMethods.map((watchMethodName) => {
|
|
1294
1310
|
try {
|
|
1295
1311
|
// fire off each of the watch methods that are watching this property
|
|
1296
1312
|
instance[watchMethodName](newVal, oldVal, propName);
|
|
@@ -1320,7 +1336,8 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1320
1336
|
const members = Object.entries(cmpMeta.$members$);
|
|
1321
1337
|
const prototype = Cstr.prototype;
|
|
1322
1338
|
members.map(([memberName, [memberFlags]]) => {
|
|
1323
|
-
if ((memberFlags & 31 /* Prop */ ||
|
|
1339
|
+
if ((memberFlags & 31 /* Prop */ ||
|
|
1340
|
+
((flags & 2 /* proxyState */) && memberFlags & 32 /* State */))) {
|
|
1324
1341
|
// proxyComponent - prop
|
|
1325
1342
|
Object.defineProperty(prototype, memberName, {
|
|
1326
1343
|
get() {
|
|
@@ -1335,7 +1352,8 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1335
1352
|
enumerable: true,
|
|
1336
1353
|
});
|
|
1337
1354
|
}
|
|
1338
|
-
else if (flags & 1 /* isElementConstructor */ &&
|
|
1355
|
+
else if (flags & 1 /* isElementConstructor */ &&
|
|
1356
|
+
memberFlags & 64 /* Method */) {
|
|
1339
1357
|
// proxyComponent - method
|
|
1340
1358
|
Object.defineProperty(prototype, memberName, {
|
|
1341
1359
|
value(...args) {
|
|
@@ -1350,6 +1368,51 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1350
1368
|
prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
|
|
1351
1369
|
plt.jmp(() => {
|
|
1352
1370
|
const propName = attrNameToPropName.get(attrName);
|
|
1371
|
+
// In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
|
|
1372
|
+
// in the case where an attribute was set inline.
|
|
1373
|
+
// ```html
|
|
1374
|
+
// <my-component some-attribute="some-value"></my-component>
|
|
1375
|
+
// ```
|
|
1376
|
+
//
|
|
1377
|
+
// There is an edge case where a developer sets the attribute inline on a custom element and then
|
|
1378
|
+
// programmatically changes it before it has been upgraded as shown below:
|
|
1379
|
+
//
|
|
1380
|
+
// ```html
|
|
1381
|
+
// <!-- this component has _not_ been upgraded yet -->
|
|
1382
|
+
// <my-component id="test" some-attribute="some-value"></my-component>
|
|
1383
|
+
// <script>
|
|
1384
|
+
// // grab non-upgraded component
|
|
1385
|
+
// el = document.querySelector("#test");
|
|
1386
|
+
// el.someAttribute = "another-value";
|
|
1387
|
+
// // upgrade component
|
|
1388
|
+
// customElements.define('my-component', MyComponent);
|
|
1389
|
+
// </script>
|
|
1390
|
+
// ```
|
|
1391
|
+
// In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
|
|
1392
|
+
// will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
|
|
1393
|
+
// to the value that was set inline i.e. "some-value" from above example. When
|
|
1394
|
+
// the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
|
|
1395
|
+
//
|
|
1396
|
+
// The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
|
|
1397
|
+
// by connectedCallback as this attributeChangedCallback will not fire.
|
|
1398
|
+
//
|
|
1399
|
+
// https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
|
|
1400
|
+
//
|
|
1401
|
+
// TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
|
|
1402
|
+
// properties here given that this goes against best practices outlined here
|
|
1403
|
+
// https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
|
|
1404
|
+
if (this.hasOwnProperty(propName)) {
|
|
1405
|
+
newValue = this[propName];
|
|
1406
|
+
delete this[propName];
|
|
1407
|
+
}
|
|
1408
|
+
else if (prototype.hasOwnProperty(propName) &&
|
|
1409
|
+
typeof this[propName] === 'number' &&
|
|
1410
|
+
this[propName] == newValue) {
|
|
1411
|
+
// if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
|
|
1412
|
+
// APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
|
|
1413
|
+
// `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
|
|
1414
|
+
return;
|
|
1415
|
+
}
|
|
1353
1416
|
this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
|
|
1354
1417
|
});
|
|
1355
1418
|
};
|
|
@@ -1386,7 +1449,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1386
1449
|
endLoad();
|
|
1387
1450
|
}
|
|
1388
1451
|
if (!Cstr.isProxied) {
|
|
1389
|
-
// we'
|
|
1452
|
+
// we've never proxied this Constructor before
|
|
1390
1453
|
// let's add the getters/setters to its prototype before
|
|
1391
1454
|
// the first time we create an instance of the implementation
|
|
1392
1455
|
{
|
|
@@ -1435,7 +1498,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1435
1498
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1436
1499
|
const schedule = () => scheduleUpdate(hostRef, true);
|
|
1437
1500
|
if (ancestorComponent && ancestorComponent['s-rc']) {
|
|
1438
|
-
// this is the
|
|
1501
|
+
// this is the initial load and this component it has an ancestor component
|
|
1439
1502
|
// but the ancestor component has NOT fired its will update lifecycle yet
|
|
1440
1503
|
// so let's just cool our jets and wait for the ancestor to continue first
|
|
1441
1504
|
// this will get fired off when the ancestor component
|
|
@@ -1519,7 +1582,7 @@ const disconnectedCallback = (elm) => {
|
|
|
1519
1582
|
const hostRef = getHostRef(elm);
|
|
1520
1583
|
{
|
|
1521
1584
|
if (hostRef.$rmListeners$) {
|
|
1522
|
-
hostRef.$rmListeners$.map(rmListener => rmListener());
|
|
1585
|
+
hostRef.$rmListeners$.map((rmListener) => rmListener());
|
|
1523
1586
|
hostRef.$rmListeners$ = undefined;
|
|
1524
1587
|
}
|
|
1525
1588
|
}
|
|
@@ -1538,71 +1601,73 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1538
1601
|
let isBootstrapping = true;
|
|
1539
1602
|
Object.assign(plt, options);
|
|
1540
1603
|
plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
|
|
1541
|
-
lazyBundles.map(lazyBundle =>
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1604
|
+
lazyBundles.map((lazyBundle) => {
|
|
1605
|
+
lazyBundle[1].map((compactMeta) => {
|
|
1606
|
+
const cmpMeta = {
|
|
1607
|
+
$flags$: compactMeta[0],
|
|
1608
|
+
$tagName$: compactMeta[1],
|
|
1609
|
+
$members$: compactMeta[2],
|
|
1610
|
+
$listeners$: compactMeta[3],
|
|
1611
|
+
};
|
|
1612
|
+
{
|
|
1613
|
+
cmpMeta.$members$ = compactMeta[2];
|
|
1614
|
+
}
|
|
1615
|
+
{
|
|
1616
|
+
cmpMeta.$listeners$ = compactMeta[3];
|
|
1617
|
+
}
|
|
1618
|
+
{
|
|
1619
|
+
cmpMeta.$attrsToReflect$ = [];
|
|
1620
|
+
}
|
|
1621
|
+
{
|
|
1622
|
+
cmpMeta.$watchers$ = {};
|
|
1623
|
+
}
|
|
1624
|
+
const tagName = cmpMeta.$tagName$;
|
|
1625
|
+
const HostElement = class extends HTMLElement {
|
|
1626
|
+
// StencilLazyHost
|
|
1627
|
+
constructor(self) {
|
|
1628
|
+
// @ts-ignore
|
|
1629
|
+
super(self);
|
|
1630
|
+
self = this;
|
|
1631
|
+
registerHost(self, cmpMeta);
|
|
1632
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1633
|
+
// this component is using shadow dom
|
|
1634
|
+
// and this browser supports shadow dom
|
|
1635
|
+
// add the read-only property "shadowRoot" to the host element
|
|
1636
|
+
// adding the shadow root build conditionals to minimize runtime
|
|
1574
1637
|
{
|
|
1575
|
-
|
|
1638
|
+
{
|
|
1639
|
+
self.attachShadow({ mode: 'open' });
|
|
1640
|
+
}
|
|
1576
1641
|
}
|
|
1577
1642
|
}
|
|
1578
1643
|
}
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1644
|
+
connectedCallback() {
|
|
1645
|
+
if (appLoadFallback) {
|
|
1646
|
+
clearTimeout(appLoadFallback);
|
|
1647
|
+
appLoadFallback = null;
|
|
1648
|
+
}
|
|
1649
|
+
if (isBootstrapping) {
|
|
1650
|
+
// connectedCallback will be processed once all components have been registered
|
|
1651
|
+
deferredConnectedCallbacks.push(this);
|
|
1652
|
+
}
|
|
1653
|
+
else {
|
|
1654
|
+
plt.jmp(() => connectedCallback(this));
|
|
1655
|
+
}
|
|
1584
1656
|
}
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
deferredConnectedCallbacks.push(this);
|
|
1657
|
+
disconnectedCallback() {
|
|
1658
|
+
plt.jmp(() => disconnectedCallback(this));
|
|
1588
1659
|
}
|
|
1589
|
-
|
|
1590
|
-
|
|
1660
|
+
componentOnReady() {
|
|
1661
|
+
return getHostRef(this).$onReadyPromise$;
|
|
1591
1662
|
}
|
|
1663
|
+
};
|
|
1664
|
+
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
1665
|
+
if (!exclude.includes(tagName) && !customElements.get(tagName)) {
|
|
1666
|
+
cmpTags.push(tagName);
|
|
1667
|
+
customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
|
|
1592
1668
|
}
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
}
|
|
1596
|
-
componentOnReady() {
|
|
1597
|
-
return getHostRef(this).$onReadyPromise$;
|
|
1598
|
-
}
|
|
1599
|
-
};
|
|
1600
|
-
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
1601
|
-
if (!exclude.includes(tagName) && !customElements.get(tagName)) {
|
|
1602
|
-
cmpTags.push(tagName);
|
|
1603
|
-
customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
|
|
1604
|
-
}
|
|
1605
|
-
}));
|
|
1669
|
+
});
|
|
1670
|
+
});
|
|
1606
1671
|
{
|
|
1607
1672
|
visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
|
|
1608
1673
|
visibilityStyle.setAttribute('data-styles', '');
|
|
@@ -1611,7 +1676,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1611
1676
|
// Process deferred connectedCallbacks now all components have been registered
|
|
1612
1677
|
isBootstrapping = false;
|
|
1613
1678
|
if (deferredConnectedCallbacks.length) {
|
|
1614
|
-
deferredConnectedCallbacks.map(host => host.connectedCallback());
|
|
1679
|
+
deferredConnectedCallbacks.map((host) => host.connectedCallback());
|
|
1615
1680
|
}
|
|
1616
1681
|
else {
|
|
1617
1682
|
{
|
|
@@ -1636,10 +1701,10 @@ const registerHost = (elm, cmpMeta) => {
|
|
|
1636
1701
|
$instanceValues$: new Map(),
|
|
1637
1702
|
};
|
|
1638
1703
|
{
|
|
1639
|
-
hostRef.$onInstancePromise$ = new Promise(r => (hostRef.$onInstanceResolve$ = r));
|
|
1704
|
+
hostRef.$onInstancePromise$ = new Promise((r) => (hostRef.$onInstanceResolve$ = r));
|
|
1640
1705
|
}
|
|
1641
1706
|
{
|
|
1642
|
-
hostRef.$onReadyPromise$ = new Promise(r => (hostRef.$onReadyResolve$ = r));
|
|
1707
|
+
hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
|
|
1643
1708
|
elm['s-p'] = [];
|
|
1644
1709
|
elm['s-rc'] = [];
|
|
1645
1710
|
}
|
|
@@ -1661,7 +1726,7 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1661
1726
|
/* webpackInclude: /\.entry\.js$/ */
|
|
1662
1727
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
1663
1728
|
/* webpackMode: "lazy" */
|
|
1664
|
-
`./${bundleId}.entry.js${''}`)); }).then(importedModule => {
|
|
1729
|
+
`./${bundleId}.entry.js${''}`)); }).then((importedModule) => {
|
|
1665
1730
|
{
|
|
1666
1731
|
cmpModules.set(bundleId, importedModule);
|
|
1667
1732
|
}
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-0b899fc6.js');
|
|
6
6
|
|
|
7
7
|
const listItemCss = ":host{display:block}";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
let ListItem = class {
|
|
10
10
|
constructor(hostRef) {
|
|
11
11
|
index.registerInstance(this, hostRef);
|
|
12
12
|
this.listType = 'para-list';
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-0b899fc6.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Esm v2.
|
|
8
|
+
Stencil Client Patch Esm v2.13.0 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
const patchEsm = () => {
|
|
11
11
|
return index.promiseResolve();
|
|
@@ -14,7 +14,7 @@ const patchEsm = () => {
|
|
|
14
14
|
const defineCustomElements = (win, options) => {
|
|
15
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
16
|
return patchEsm().then(() => {
|
|
17
|
-
return index.bootstrapLazy([["ptc-
|
|
17
|
+
return index.bootstrapLazy([["ptc-card.cjs",[[1,"ptc-card",{"cardType":[1,"card-type"],"cardHref":[1,"card-href"],"target":[1],"rel":[1],"hasImage":[4,"has-image"],"hasVideo":[4,"has-video"],"hasLottie":[4,"has-lottie"],"heading":[1],"headingTransform":[1,"heading-transform"],"cardDate":[1,"card-date"],"styles":[1]}]]],["ptc-link.cjs",[[1,"ptc-link",{"disabled":[516],"external":[516],"href":[1],"target":[1],"linkTitle":[1,"link-title"],"theme":[1],"uppercase":[4],"fontSize":[1,"font-size"]}]]],["ptc-lottie.cjs",[[1,"ptc-lottie",{"jsonSrc":[1025,"json-src"],"speed":[1026]}]]],["list-item.cjs",[[4,"list-item",{"listType":[1,"list-type"],"linkHref":[1,"link-href"]}]]],["my-component.cjs",[[1,"my-component",{"first":[1],"middle":[1],"last":[1]}]]],["ptc-avatar.cjs",[[1,"ptc-avatar"]]],["ptc-button.cjs",[[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]}]]],["ptc-countdown.cjs",[[1,"ptc-countdown"]]],["ptc-footer.cjs",[[1,"ptc-footer"]]],["ptc-form.cjs",[[6,"ptc-form",{"value":[32],"inputValue":[32],"selectValue":[32]}]]],["ptc-img.cjs",[[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-input.cjs",[[6,"ptc-input",{"type":[1],"dataEloquaName":[1,"data-eloqua-name"],"inputId":[1,"input-id"],"inputName":[1,"input-name"],"focused":[32]}]]],["ptc-list.cjs",[[0,"ptc-list",{"listType":[1,"list-type"],"listItems":[16]}]]],["ptc-nav.cjs",[[1,"ptc-nav"]]],["ptc-nav-item.cjs",[[1,"ptc-nav-item",{"url":[1025],"label":[1025],"ariaExpanded":[1028,"aria-expanded"],"depth":[1538],"hasChildren":[1028,"has-children"],"parentExpanded":[1540,"parent-expanded"],"navType":[1,"nav-type"]},[[0,"handleClick","handleClick"],[9,"resize","handleResize"]]]]],["ptc-overlay.cjs",[[4,"ptc-overlay"]]],["ptc-para.cjs",[[1,"ptc-para",{"fontSize":[1,"font-size"],"fontWeight":[1,"font-weight"],"paraStyle":[1,"para-style"],"paraMargin":[1,"para-margin"]}]]],["ptc-picture.cjs",[[1,"ptc-picture",{"src":[1],"alt":[1],"sizeXs":[1025,"size-xs"],"sizeSm":[1025,"size-sm"],"sizeMd":[1025,"size-md"],"sizeLg":[1025,"size-lg"],"borderRadius":[1,"border-radius"],"height":[1],"width":[1],"objectFit":[1,"object-fit"],"styles":[1],"oldSrc":[32]},[[9,"resize","WindowResize"]]]]],["ptc-select.cjs",[[6,"ptc-select",{"dataEloquaName":[1,"data-eloqua-name"],"selectId":[1,"select-id"],"name":[1],"valueOptions":[1040]}]]],["ptc-spacer.cjs",[[1,"ptc-spacer",{"breakpoint":[1],"size":[1],"direction":[1]}]]],["ptc-span.cjs",[[1,"ptc-span",{"spanStyle":[1,"span-style"],"display":[1],"styles":[1]}]]],["ptc-title.cjs",[[6,"ptc-title",{"type":[1],"textAlign":[1,"text-align"],"upperline":[1]}]]],["ptc-announcement_2.cjs",[[1,"ptc-announcement",{"barTitle":[1,"bar-title"],"Description":[1,"description"],"linkText":[513,"link-text"],"visible":[1540],"linkUrl":[513,"link-url"],"tempContainer":[4,"temp-container"]}],[1,"ptc-svg-btn",{"svgName":[1,"svg-name"]}]]],["icon-asset.cjs",[[0,"icon-asset",{"name":[1],"size":[1],"type":[1],"spin":[1],"pulse":[1],"color":[1]}]]],["lottie-player.cjs",[[1,"lottie-player",{"mode":[1],"autoplay":[4],"background":[513],"controls":[4],"count":[2],"direction":[2],"hover":[4],"loop":[516],"renderer":[1],"speed":[2],"src":[1],"currentState":[1,"current-state"],"seeker":[8],"intermission":[2],"play":[64],"pause":[64],"stop":[64],"seek":[64],"getLottie":[64],"setSpeed":[64],"setDirection":[64],"setLooping":[64],"togglePlay":[64],"toggleLooping":[64]}]]],["ptc-date.cjs",[[1,"ptc-date",{"year":[2],"month":[2],"day":[2],"country":[1],"dateString":[1,"date-string"],"dateStyles":[1,"date-styles"]}]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-0b899fc6.js');
|
|
6
6
|
|
|
7
7
|
function createCommonjsModule(fn, basedir, module) {
|
|
8
8
|
return module = {
|
|
@@ -13117,7 +13117,7 @@ var PlayMode;
|
|
|
13117
13117
|
|
|
13118
13118
|
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}";
|
|
13119
13119
|
|
|
13120
|
-
|
|
13120
|
+
let LottiePlayer = class {
|
|
13121
13121
|
constructor(hostRef) {
|
|
13122
13122
|
index.registerInstance(this, hostRef);
|
|
13123
13123
|
this.error = index.createEvent(this, "error", 7);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-0b899fc6.js');
|
|
6
6
|
|
|
7
7
|
function format(first, middle, last) {
|
|
8
8
|
return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');
|
|
@@ -10,7 +10,7 @@ function format(first, middle, last) {
|
|
|
10
10
|
|
|
11
11
|
const myComponentCss = ":host{display:block}";
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
let MyComponent = class {
|
|
14
14
|
constructor(hostRef) {
|
|
15
15
|
index.registerInstance(this, hostRef);
|
|
16
16
|
}
|