sproutjs-core 2.8.0 → 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/sprout-core.strict.js
CHANGED
|
@@ -2547,13 +2547,13 @@
|
|
|
2547
2547
|
}(attributeName), valueToSet = attributeValue;
|
|
2548
2548
|
if (isStateAttr) {
|
|
2549
2549
|
var stateProp = attributeValue, attrName = attributeName.substring(1);
|
|
2550
|
-
"
|
|
2550
|
+
"textcontent" === attrName ? this.initialSetText(stateProp) : setStateAttribute.call(this, attrName, stateProp);
|
|
2551
2551
|
} else {
|
|
2552
2552
|
if (isPropAttr) {
|
|
2553
2553
|
var host = this.getHost(), propName = attributeValue.substring(1);
|
|
2554
2554
|
valueToSet = host.getAttribute(propName);
|
|
2555
2555
|
}
|
|
2556
|
-
"
|
|
2556
|
+
"textcontent" === attributeName ? this.textContent = valueToSet : setAttribute.call(this, attributeName, valueToSet);
|
|
2557
2557
|
}
|
|
2558
2558
|
}
|
|
2559
2559
|
}, {
|
|
@@ -3638,9 +3638,6 @@
|
|
|
3638
3638
|
}
|
|
3639
3639
|
return ReactiveCustomElement;
|
|
3640
3640
|
}(appScope), function build(appScope, appName) {
|
|
3641
|
-
function defineCustomElementFromTemplate(_x3, _x4, _x5) {
|
|
3642
|
-
return _defineCustomElementFromTemplate.apply(this, arguments);
|
|
3643
|
-
}
|
|
3644
3641
|
function _defineCustomElementFromTemplate() {
|
|
3645
3642
|
return (_defineCustomElementFromTemplate = function _asyncToGenerator(n) {
|
|
3646
3643
|
return function() {
|
|
@@ -3687,18 +3684,14 @@
|
|
|
3687
3684
|
})))).apply(this, arguments);
|
|
3688
3685
|
}
|
|
3689
3686
|
!function build() {
|
|
3690
|
-
var
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
}
|
|
3695
|
-
globalStylesheet.insertRule(SPROUT_FROZEN_CLASS_CSS), "function" == typeof globalThis["".concat(appName, "_runtime")] && globalThis["".concat(appName, "_runtime")].call(appScope);
|
|
3696
|
-
var compiledTemplates = null === (_globalThis$SPROUT_CO2 = globalThis.SPROUT_COMPILED_TEMPLATES) || void 0 === _globalThis$SPROUT_CO2 ? void 0 : _globalThis$SPROUT_CO2[appName];
|
|
3697
|
-
compiledTemplates && "function" == typeof compiledTemplates.forEach ? compiledTemplates.forEach((function(templateEl, componentName) {
|
|
3698
|
-
componentName && templateEl && defineCustomElementFromTemplate(templateEl, componentName, globalStylesheet);
|
|
3699
|
-
})) : Array.prototype.forEach.call(document.querySelectorAll('template[app="'.concat(appName, '"]')), (function(template) {
|
|
3687
|
+
var globalStylesheet = new CSSStyleSheet, globalStyle = document.querySelector('head > style[app="'.concat(appName, '"]'));
|
|
3688
|
+
globalStyle ? globalStylesheet.replaceSync(globalStyle.textContent) : globalStylesheet.replaceSync(""),
|
|
3689
|
+
globalStylesheet.insertRule(SPROUT_FROZEN_CLASS_CSS), "function" == typeof globalThis["".concat(appName, "_runtime")] && globalThis["".concat(appName, "_runtime")].call(appScope),
|
|
3690
|
+
Array.prototype.forEach.call(document.querySelectorAll('template[app="'.concat(appName, '"]')), (function(template) {
|
|
3700
3691
|
var componentName = template.getAttribute("for");
|
|
3701
|
-
componentName && defineCustomElementFromTemplate(
|
|
3692
|
+
componentName && function defineCustomElementFromTemplate(_x3, _x4, _x5) {
|
|
3693
|
+
_defineCustomElementFromTemplate.apply(this, arguments);
|
|
3694
|
+
}(template, componentName, globalStylesheet);
|
|
3702
3695
|
}));
|
|
3703
3696
|
}();
|
|
3704
3697
|
}(appScope, config.appName), HTML_ELEMENT_CLASSES_MAP.forEach((function(itemDefinition) {
|