@ethlete/core 0.2.0-next.13 → 0.2.0-next.15
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/esm2020/lib/types/angular.types.mjs +7 -1
- package/esm2020/lib/utils/reactive-binding.util.mjs +10 -1
- package/fesm2015/ethlete-core.mjs +15 -0
- package/fesm2015/ethlete-core.mjs.map +1 -1
- package/fesm2020/ethlete-core.mjs +15 -0
- package/fesm2020/ethlete-core.mjs.map +1 -1
- package/lib/types/angular.types.d.ts +2 -0
- package/package.json +1 -1
|
@@ -579,6 +579,9 @@ const createReactiveBindings = (...values) => {
|
|
|
579
579
|
const render = isAttributeRenderBinding(value) ? value : value.render;
|
|
580
580
|
if (isSingleClassMutation) {
|
|
581
581
|
const className = attribute.replace('class.', '');
|
|
582
|
+
if (!className) {
|
|
583
|
+
continue;
|
|
584
|
+
}
|
|
582
585
|
if (!render) {
|
|
583
586
|
elRef.nativeElement.classList.remove(className);
|
|
584
587
|
}
|
|
@@ -588,6 +591,9 @@ const createReactiveBindings = (...values) => {
|
|
|
588
591
|
}
|
|
589
592
|
else if (isMultipleClassMutation) {
|
|
590
593
|
const classes = isAttributeRenderBinding(value) ? '' : `${value.value}`;
|
|
594
|
+
if (!classes) {
|
|
595
|
+
continue;
|
|
596
|
+
}
|
|
591
597
|
if (!render) {
|
|
592
598
|
elRef.nativeElement.classList.remove(...classes.split(' '));
|
|
593
599
|
}
|
|
@@ -597,6 +603,9 @@ const createReactiveBindings = (...values) => {
|
|
|
597
603
|
}
|
|
598
604
|
else {
|
|
599
605
|
const attributeValue = isAttributeRenderBinding(value) ? true : `${value.value}`;
|
|
606
|
+
if (!attribute) {
|
|
607
|
+
continue;
|
|
608
|
+
}
|
|
600
609
|
if (!render) {
|
|
601
610
|
elRef.nativeElement.removeAttribute(attribute);
|
|
602
611
|
}
|
|
@@ -1768,6 +1777,12 @@ class TypedQueryList extends QueryList {
|
|
|
1768
1777
|
map(fn) {
|
|
1769
1778
|
return super.map(fn);
|
|
1770
1779
|
}
|
|
1780
|
+
reduce(fn, initialValue) {
|
|
1781
|
+
return super.reduce(fn, initialValue);
|
|
1782
|
+
}
|
|
1783
|
+
some(fn) {
|
|
1784
|
+
return super.some(fn);
|
|
1785
|
+
}
|
|
1771
1786
|
}
|
|
1772
1787
|
_a = Symbol.iterator;
|
|
1773
1788
|
|