sproutjs-core 2.7.1 → 2.9.1
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/package.json +1 -1
- package/sprout-core.js +10 -23
- package/sprout-core.js.map +1 -1
- package/sprout-core.min.js +1 -1
- package/sprout-core.min.js.map +1 -1
- package/sprout-core.strict.js +9 -16
- package/sprout-core.strict.js.map +1 -1
- package/sprout-core.strict.min.js +1 -1
- package/sprout-core.strict.min.js.map +1 -1
package/package.json
CHANGED
package/sprout-core.js
CHANGED
|
@@ -1047,7 +1047,7 @@ function extendElementClassWithReactiveElementClass(elementClass) {
|
|
|
1047
1047
|
}
|
|
1048
1048
|
var stateProp = attributeValue;
|
|
1049
1049
|
var attrName = attributeName.substring(1);
|
|
1050
|
-
if (attrName === "
|
|
1050
|
+
if (attrName === "textcontent") {
|
|
1051
1051
|
this.initialSetText(stateProp);
|
|
1052
1052
|
} else {
|
|
1053
1053
|
setStateAttribute.call(this, attrName, stateProp);
|
|
@@ -1064,8 +1064,8 @@ function extendElementClassWithReactiveElementClass(elementClass) {
|
|
|
1064
1064
|
var propValue = host.getAttribute(propName);
|
|
1065
1065
|
valueToSet = propValue;
|
|
1066
1066
|
}
|
|
1067
|
-
if (attributeName === "
|
|
1068
|
-
this.
|
|
1067
|
+
if (attributeName === "textcontent") {
|
|
1068
|
+
this.textContent = valueToSet;
|
|
1069
1069
|
} else {
|
|
1070
1070
|
setAttribute.call(this, attributeName, valueToSet);
|
|
1071
1071
|
}
|
|
@@ -4668,16 +4668,12 @@ function toCamelCase(str) {
|
|
|
4668
4668
|
return _defineCustomElementFromTemplate.apply(this, arguments);
|
|
4669
4669
|
}
|
|
4670
4670
|
function build() {
|
|
4671
|
-
var _globalThis$SPROUT_CO2;
|
|
4672
4671
|
var globalStylesheet = new CSSStyleSheet();
|
|
4673
4672
|
var globalStyle = document.querySelector("head > style[app=\"".concat(appName, "\"]"));
|
|
4674
4673
|
if (globalStyle) {
|
|
4675
4674
|
globalStylesheet.replaceSync(globalStyle.textContent);
|
|
4676
4675
|
} else {
|
|
4677
|
-
|
|
4678
|
-
// Compile-mode fallback: use in-memory compiled global styles if present
|
|
4679
|
-
var compiledStyle = (_globalThis$SPROUT_CO = globalThis.SPROUT_COMPILED_STYLES) === null || _globalThis$SPROUT_CO === void 0 ? void 0 : _globalThis$SPROUT_CO[appName];
|
|
4680
|
-
globalStylesheet.replaceSync(compiledStyle || "");
|
|
4676
|
+
globalStylesheet.replaceSync("");
|
|
4681
4677
|
}
|
|
4682
4678
|
// This is used when mutating the children of a DOM parent (on-the-fly),
|
|
4683
4679
|
// the parent is "frozen" first - to not trigger events etc.
|
|
@@ -4696,21 +4692,12 @@ function toCamelCase(str) {
|
|
|
4696
4692
|
}
|
|
4697
4693
|
else {
|
|
4698
4694
|
*/
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
});
|
|
4706
|
-
} else {
|
|
4707
|
-
Array.prototype.forEach.call(document.querySelectorAll("template[app=\"".concat(appName, "\"]")), function (template) {
|
|
4708
|
-
var componentName = template.getAttribute('for');
|
|
4709
|
-
if (componentName) {
|
|
4710
|
-
defineCustomElementFromTemplate(template, componentName, globalStylesheet);
|
|
4711
|
-
}
|
|
4712
|
-
});
|
|
4713
|
-
}
|
|
4695
|
+
Array.prototype.forEach.call(document.querySelectorAll("template[app=\"".concat(appName, "\"]")), function (template) {
|
|
4696
|
+
var componentName = template.getAttribute('for');
|
|
4697
|
+
if (componentName) {
|
|
4698
|
+
defineCustomElementFromTemplate(template, componentName, globalStylesheet);
|
|
4699
|
+
}
|
|
4700
|
+
});
|
|
4714
4701
|
|
|
4715
4702
|
//}
|
|
4716
4703
|
}
|