@affinda/wc 0.0.5 → 0.0.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/affinda/af-heading.af-logo.af-nav-item.af-navbar.af-text.entry.esm.js.map +1 -1
- package/dist/affinda/af-testimonial-carousel.entry.esm.js.map +1 -0
- package/dist/affinda/af-testimonial-stat.entry.esm.js.map +1 -0
- package/dist/affinda/af-testimonial.entry.esm.js.map +1 -0
- package/dist/affinda/af-typography-lockup.entry.esm.js.map +1 -1
- package/dist/affinda/affinda.esm.js +1 -1
- package/dist/affinda/index.esm.js +1 -1
- package/dist/affinda/{p-bf697823.entry.js → p-16c84e60.entry.js} +2 -2
- package/dist/affinda/{p-d33de48f.entry.js → p-32f46944.entry.js} +2 -2
- package/dist/affinda/{p-b79f976e.entry.js → p-43324b6d.entry.js} +2 -2
- package/dist/affinda/p-56284540.entry.js +2 -0
- package/dist/affinda/p-56284540.entry.js.map +1 -0
- package/dist/affinda/p-66daadde.entry.js +2 -0
- package/dist/affinda/p-66daadde.entry.js.map +1 -0
- package/dist/affinda/{p-f8d89fb6.entry.js → p-750a694b.entry.js} +2 -2
- package/dist/affinda/{p-cb218d26.entry.js → p-9c0b3380.entry.js} +2 -2
- package/dist/affinda/{p-a8d223ca.entry.js → p-9e5bef28.entry.js} +2 -2
- package/dist/affinda/p-UbNmjSSX.js +3 -0
- package/dist/affinda/p-UbNmjSSX.js.map +1 -0
- package/dist/affinda/{p-47629246.entry.js → p-c8628633.entry.js} +2 -2
- package/dist/affinda/{p-9c22948a.entry.js → p-eff7eff1.entry.js} +2 -2
- package/dist/affinda/p-f53b4847.entry.js +2 -0
- package/dist/affinda/p-f53b4847.entry.js.map +1 -0
- package/dist/affinda/p-fedaec5a.entry.js +2 -0
- package/dist/affinda/{p-92f5a5d5.entry.js.map → p-fedaec5a.entry.js.map} +1 -1
- package/dist/cjs/af-aspect-ratio.cjs.entry.js +1 -1
- package/dist/cjs/af-button-group.cjs.entry.js +1 -1
- package/dist/cjs/af-button.cjs.entry.js +1 -1
- package/dist/cjs/af-card.cjs.entry.js +1 -1
- package/dist/cjs/af-color-swatch.cjs.entry.js +1 -1
- package/dist/cjs/af-container.cjs.entry.js +1 -1
- package/dist/cjs/af-heading.af-logo.af-nav-item.af-navbar.af-text.entry.cjs.js.map +1 -1
- package/dist/cjs/af-heading_5.cjs.entry.js +3 -3
- package/dist/cjs/af-icon-button.cjs.entry.js +1 -1
- package/dist/cjs/af-testimonial-carousel.cjs.entry.js +90 -0
- package/dist/cjs/af-testimonial-carousel.entry.cjs.js.map +1 -0
- package/dist/cjs/af-testimonial-stat.cjs.entry.js +22 -0
- package/dist/cjs/af-testimonial-stat.entry.cjs.js.map +1 -0
- package/dist/cjs/af-testimonial.cjs.entry.js +18 -0
- package/dist/cjs/af-testimonial.entry.cjs.js.map +1 -0
- package/dist/cjs/af-typography-lockup.cjs.entry.js +2 -2
- package/dist/cjs/af-typography-lockup.entry.cjs.js.map +1 -1
- package/dist/cjs/affinda.cjs.js +2 -2
- package/dist/cjs/{index-1GcSSOS3.js → index-CNijn8X5.js} +57 -7
- package/dist/cjs/index-CNijn8X5.js.map +1 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +4 -1
- package/dist/collection/components/af-heading/af-heading.css +1 -1
- package/dist/collection/components/af-testimonial/af-testimonial.css +143 -0
- package/dist/collection/components/af-testimonial/af-testimonial.js +118 -0
- package/dist/collection/components/af-testimonial/af-testimonial.js.map +1 -0
- package/dist/collection/components/af-testimonial-carousel/af-testimonial-carousel.css +96 -0
- package/dist/collection/components/af-testimonial-carousel/af-testimonial-carousel.js +100 -0
- package/dist/collection/components/af-testimonial-carousel/af-testimonial-carousel.js.map +1 -0
- package/dist/collection/components/af-testimonial-stat/af-testimonial-stat.css +41 -0
- package/dist/collection/components/af-testimonial-stat/af-testimonial-stat.js +87 -0
- package/dist/collection/components/af-testimonial-stat/af-testimonial-stat.js.map +1 -0
- package/dist/collection/components/af-text/af-text.css +1 -1
- package/dist/collection/components/af-typography-lockup/af-typography-lockup.css +1 -1
- package/dist/components/af-aspect-ratio.js +1 -1
- package/dist/components/af-button-group.js +1 -1
- package/dist/components/af-button.js +1 -1
- package/dist/components/af-card.js +1 -1
- package/dist/components/af-color-swatch.js +1 -1
- package/dist/components/af-container.js +1 -1
- package/dist/components/af-heading.js +1 -1
- package/dist/components/af-icon-button.js +1 -1
- package/dist/components/af-logo.js +1 -1
- package/dist/components/af-nav-item.js +1 -1
- package/dist/components/af-navbar.js +1 -1
- package/dist/components/af-testimonial-carousel.d.ts +11 -0
- package/dist/components/af-testimonial-carousel.js +113 -0
- package/dist/components/af-testimonial-carousel.js.map +1 -0
- package/dist/components/af-testimonial-stat.d.ts +11 -0
- package/dist/components/af-testimonial-stat.js +45 -0
- package/dist/components/af-testimonial-stat.js.map +1 -0
- package/dist/components/af-testimonial.d.ts +11 -0
- package/dist/components/af-testimonial.js +43 -0
- package/dist/components/af-testimonial.js.map +1 -0
- package/dist/components/af-text.js +1 -1
- package/dist/components/af-typography-lockup.js +1 -1
- package/dist/components/index.js +13 -13
- package/dist/components/{p-Cjv046iG.js → p-Bdy85P7Z.js} +3 -3
- package/dist/components/{p-Cjv046iG.js.map → p-Bdy85P7Z.js.map} +1 -1
- package/dist/components/{p-DIyOg-i_.js → p-BuySFAGS.js} +4 -4
- package/dist/components/{p-DIyOg-i_.js.map → p-BuySFAGS.js.map} +1 -1
- package/dist/components/{p-C6idwlD-.js → p-Bxv9iL3G.js} +3 -3
- package/dist/components/{p-C6idwlD-.js.map → p-Bxv9iL3G.js.map} +1 -1
- package/dist/components/{p-BpGDzCRf.js → p-C0zUdiRs.js} +4 -4
- package/dist/components/p-C0zUdiRs.js.map +1 -0
- package/dist/components/{p-CaqzUz5o.js → p-C4sw-kYH.js} +3 -3
- package/dist/components/{p-CaqzUz5o.js.map → p-C4sw-kYH.js.map} +1 -1
- package/dist/components/{p-BHNNF4PT.js → p-CJccTfm5.js} +3 -3
- package/dist/components/{p-BHNNF4PT.js.map → p-CJccTfm5.js.map} +1 -1
- package/dist/components/{p-DuXQZGjc.js → p-CLA_jBiH.js} +4 -4
- package/dist/components/{p-DuXQZGjc.js.map → p-CLA_jBiH.js.map} +1 -1
- package/dist/components/{p-CJWIieDU.js → p-Cfj594pp.js} +3 -3
- package/dist/components/{p-CJWIieDU.js.map → p-Cfj594pp.js.map} +1 -1
- package/dist/components/{p-zwrcq-N2.js → p-ChRDoPDm.js} +52 -7
- package/dist/components/p-ChRDoPDm.js.map +1 -0
- package/dist/components/{p-cKSy1B8M.js → p-D021PjqL.js} +3 -3
- package/dist/components/{p-cKSy1B8M.js.map → p-D021PjqL.js.map} +1 -1
- package/dist/components/{p-CRgPNvxI.js → p-DPooX_NW.js} +3 -3
- package/dist/components/{p-CRgPNvxI.js.map → p-DPooX_NW.js.map} +1 -1
- package/dist/components/{p-DSAo7rhE.js → p-KtmLxy7z.js} +3 -3
- package/dist/components/{p-DSAo7rhE.js.map → p-KtmLxy7z.js.map} +1 -1
- package/dist/components/{p-Dw33Xm_t.js → p-XAy0kGYd.js} +3 -3
- package/dist/components/{p-Dw33Xm_t.js.map → p-XAy0kGYd.js.map} +1 -1
- package/dist/esm/af-aspect-ratio.entry.js +1 -1
- package/dist/esm/af-button-group.entry.js +1 -1
- package/dist/esm/af-button.entry.js +1 -1
- package/dist/esm/af-card.entry.js +1 -1
- package/dist/esm/af-color-swatch.entry.js +1 -1
- package/dist/esm/af-container.entry.js +1 -1
- package/dist/esm/af-heading.af-logo.af-nav-item.af-navbar.af-text.entry.js.map +1 -1
- package/dist/esm/af-heading_5.entry.js +3 -3
- package/dist/esm/af-icon-button.entry.js +1 -1
- package/dist/esm/af-testimonial-carousel.entry.js +88 -0
- package/dist/esm/af-testimonial-carousel.entry.js.map +1 -0
- package/dist/esm/af-testimonial-stat.entry.js +20 -0
- package/dist/esm/af-testimonial-stat.entry.js.map +1 -0
- package/dist/esm/af-testimonial.entry.js +16 -0
- package/dist/esm/af-testimonial.entry.js.map +1 -0
- package/dist/esm/af-typography-lockup.entry.js +2 -2
- package/dist/esm/af-typography-lockup.entry.js.map +1 -1
- package/dist/esm/affinda.js +3 -3
- package/dist/esm/{index-Dmaq2rkg.js → index-UbNmjSSX.js} +57 -8
- package/dist/{affinda/p-Dmaq2rkg.js.map → esm/index-UbNmjSSX.js.map} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/af-testimonial/af-testimonial.d.ts +23 -0
- package/dist/types/components/af-testimonial-carousel/af-testimonial-carousel.d.ts +15 -0
- package/dist/types/components/af-testimonial-stat/af-testimonial-stat.d.ts +15 -0
- package/dist/types/components.d.ts +105 -0
- package/package.json +2 -2
- package/dist/affinda/p-92f5a5d5.entry.js +0 -2
- package/dist/affinda/p-Dmaq2rkg.js +0 -3
- package/dist/cjs/index-1GcSSOS3.js.map +0 -1
- package/dist/components/p-BpGDzCRf.js.map +0 -1
- package/dist/components/p-zwrcq-N2.js.map +0 -1
- package/dist/esm/index-Dmaq2rkg.js.map +0 -1
- /package/dist/affinda/{p-bf697823.entry.js.map → p-16c84e60.entry.js.map} +0 -0
- /package/dist/affinda/{p-d33de48f.entry.js.map → p-32f46944.entry.js.map} +0 -0
- /package/dist/affinda/{p-b79f976e.entry.js.map → p-43324b6d.entry.js.map} +0 -0
- /package/dist/affinda/{p-f8d89fb6.entry.js.map → p-750a694b.entry.js.map} +0 -0
- /package/dist/affinda/{p-cb218d26.entry.js.map → p-9c0b3380.entry.js.map} +0 -0
- /package/dist/affinda/{p-a8d223ca.entry.js.map → p-9e5bef28.entry.js.map} +0 -0
- /package/dist/affinda/{p-47629246.entry.js.map → p-c8628633.entry.js.map} +0 -0
- /package/dist/affinda/{p-9c22948a.entry.js.map → p-eff7eff1.entry.js.map} +0 -0
|
@@ -15,6 +15,10 @@ var __export = (target, all) => {
|
|
|
15
15
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
+
// src/utils/constants.ts
|
|
19
|
+
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
20
|
+
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
21
|
+
|
|
18
22
|
// src/client/client-host-ref.ts
|
|
19
23
|
var getHostRef = (ref) => {
|
|
20
24
|
if (ref.__stencil__getHostRef) {
|
|
@@ -595,6 +599,10 @@ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
|
595
599
|
}
|
|
596
600
|
return propValue;
|
|
597
601
|
};
|
|
602
|
+
var getElement = (ref) => {
|
|
603
|
+
var _a;
|
|
604
|
+
return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
|
|
605
|
+
};
|
|
598
606
|
var emitEvent = (elm, name, opts) => {
|
|
599
607
|
const ev = plt.ce(name, opts);
|
|
600
608
|
elm.dispatchEvent(ev);
|
|
@@ -605,7 +613,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
605
613
|
return;
|
|
606
614
|
}
|
|
607
615
|
let isProp = isMemberInElement(elm, memberName);
|
|
608
|
-
memberName.toLowerCase();
|
|
616
|
+
let ln = memberName.toLowerCase();
|
|
609
617
|
if (memberName === "class") {
|
|
610
618
|
const classList = elm.classList;
|
|
611
619
|
const oldClasses = parseClassList(oldValue);
|
|
@@ -635,9 +643,27 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
635
643
|
}
|
|
636
644
|
}
|
|
637
645
|
}
|
|
638
|
-
} else if (memberName === "key") ; else {
|
|
646
|
+
} else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
|
647
|
+
if (memberName[2] === "-") {
|
|
648
|
+
memberName = memberName.slice(3);
|
|
649
|
+
} else if (isMemberInElement(win, ln)) {
|
|
650
|
+
memberName = ln.slice(2);
|
|
651
|
+
} else {
|
|
652
|
+
memberName = ln[2] + memberName.slice(3);
|
|
653
|
+
}
|
|
654
|
+
if (oldValue || newValue) {
|
|
655
|
+
const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
|
|
656
|
+
memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
|
|
657
|
+
if (oldValue) {
|
|
658
|
+
plt.rel(elm, memberName, oldValue, capture);
|
|
659
|
+
}
|
|
660
|
+
if (newValue) {
|
|
661
|
+
plt.ael(elm, memberName, newValue, capture);
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
} else {
|
|
639
665
|
const isComplex = isComplexType(newValue);
|
|
640
|
-
if ((isProp || isComplex && newValue !== null) &&
|
|
666
|
+
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
641
667
|
try {
|
|
642
668
|
if (!elm.tagName.includes("-")) {
|
|
643
669
|
const n = newValue == null ? "" : newValue;
|
|
@@ -680,6 +706,8 @@ var parseClassList = (value) => {
|
|
|
680
706
|
}
|
|
681
707
|
return value.split(parseClassListRegex);
|
|
682
708
|
};
|
|
709
|
+
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
710
|
+
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
683
711
|
|
|
684
712
|
// src/runtime/vdom/update-element.ts
|
|
685
713
|
var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
@@ -757,14 +785,21 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
757
785
|
updateElement(null, newVNode2, isSvgMode);
|
|
758
786
|
}
|
|
759
787
|
} else {
|
|
788
|
+
if (!isSvgMode) {
|
|
789
|
+
isSvgMode = newVNode2.$tag$ === "svg";
|
|
790
|
+
}
|
|
760
791
|
if (!win.document) {
|
|
761
792
|
throw new Error(
|
|
762
793
|
"You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
|
|
763
794
|
);
|
|
764
795
|
}
|
|
765
|
-
elm = newVNode2.$elm$ = win.document.
|
|
796
|
+
elm = newVNode2.$elm$ = win.document.createElementNS(
|
|
797
|
+
isSvgMode ? SVG_NS : HTML_NS,
|
|
766
798
|
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
|
767
|
-
);
|
|
799
|
+
) ;
|
|
800
|
+
if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
|
|
801
|
+
isSvgMode = false;
|
|
802
|
+
}
|
|
768
803
|
{
|
|
769
804
|
updateElement(null, newVNode2, isSvgMode);
|
|
770
805
|
}
|
|
@@ -779,6 +814,13 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
779
814
|
}
|
|
780
815
|
}
|
|
781
816
|
}
|
|
817
|
+
{
|
|
818
|
+
if (newVNode2.$tag$ === "svg") {
|
|
819
|
+
isSvgMode = false;
|
|
820
|
+
} else if (elm.tagName === "foreignObject") {
|
|
821
|
+
isSvgMode = true;
|
|
822
|
+
}
|
|
823
|
+
}
|
|
782
824
|
}
|
|
783
825
|
elm["s-hn"] = hostTagName;
|
|
784
826
|
{
|
|
@@ -968,9 +1010,13 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
968
1010
|
const elm = newVNode2.$elm$ = oldVNode.$elm$;
|
|
969
1011
|
const oldChildren = oldVNode.$children$;
|
|
970
1012
|
const newChildren = newVNode2.$children$;
|
|
1013
|
+
const tag = newVNode2.$tag$;
|
|
971
1014
|
const text = newVNode2.$text$;
|
|
972
1015
|
let defaultHolder;
|
|
973
1016
|
if (text === null) {
|
|
1017
|
+
{
|
|
1018
|
+
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
1019
|
+
}
|
|
974
1020
|
{
|
|
975
1021
|
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
976
1022
|
}
|
|
@@ -987,6 +1033,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
987
1033
|
) {
|
|
988
1034
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
989
1035
|
} else ;
|
|
1036
|
+
if (isSvgMode && tag === "svg") {
|
|
1037
|
+
isSvgMode = false;
|
|
1038
|
+
}
|
|
990
1039
|
} else if ((defaultHolder = elm["s-cr"])) {
|
|
991
1040
|
defaultHolder.parentNode.textContent = text;
|
|
992
1041
|
} else if (oldVNode.$text$ !== text) {
|
|
@@ -1787,11 +1836,12 @@ var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
|
1787
1836
|
|
|
1788
1837
|
exports.Host = Host;
|
|
1789
1838
|
exports.bootstrapLazy = bootstrapLazy;
|
|
1839
|
+
exports.getElement = getElement;
|
|
1790
1840
|
exports.globalScripts = globalScripts;
|
|
1791
1841
|
exports.h = h;
|
|
1792
1842
|
exports.promiseResolve = promiseResolve;
|
|
1793
1843
|
exports.registerInstance = registerInstance;
|
|
1794
1844
|
exports.setNonce = setNonce;
|
|
1795
|
-
//# sourceMappingURL=index-
|
|
1845
|
+
//# sourceMappingURL=index-CNijn8X5.js.map
|
|
1796
1846
|
|
|
1797
|
-
//# sourceMappingURL=index-
|
|
1847
|
+
//# sourceMappingURL=index-CNijn8X5.js.map
|