tutuca 0.9.6 → 0.9.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/tutuca-dev.js +20 -12
- package/dist/tutuca-dev.min.js +3 -3
- package/dist/tutuca-extra.js +20 -12
- package/dist/tutuca-extra.min.js +2 -2
- package/package.json +1 -1
package/dist/tutuca-dev.js
CHANGED
|
@@ -2503,18 +2503,10 @@ class ParseCtxClassSetCollector extends ParseContext {
|
|
|
2503
2503
|
}
|
|
2504
2504
|
const { value, thenVal, elseVal } = attr;
|
|
2505
2505
|
if (thenVal !== undefined) {
|
|
2506
|
-
this.
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
} else if (typeof value?.value === "string") {
|
|
2511
|
-
this._addClasses(value.value);
|
|
2512
|
-
} else if (value?.vals !== undefined) {
|
|
2513
|
-
for (const val of value.vals) {
|
|
2514
|
-
if (val instanceof ConstVal && val.value !== "") {
|
|
2515
|
-
this._addClasses(val.value);
|
|
2516
|
-
}
|
|
2517
|
-
}
|
|
2506
|
+
this._maybeAddVal(thenVal);
|
|
2507
|
+
this._maybeAddVal(elseVal);
|
|
2508
|
+
} else {
|
|
2509
|
+
this._maybeAddVal(value);
|
|
2518
2510
|
}
|
|
2519
2511
|
}
|
|
2520
2512
|
} else {
|
|
@@ -2524,6 +2516,22 @@ class ParseCtxClassSetCollector extends ParseContext {
|
|
|
2524
2516
|
}
|
|
2525
2517
|
}
|
|
2526
2518
|
}
|
|
2519
|
+
_maybeAddVal(value) {
|
|
2520
|
+
if (!this._maybeAddStrTpl(value) && typeof value?.value === "string") {
|
|
2521
|
+
this._addClasses(value.value);
|
|
2522
|
+
}
|
|
2523
|
+
}
|
|
2524
|
+
_maybeAddStrTpl(value) {
|
|
2525
|
+
if (value?.vals !== undefined) {
|
|
2526
|
+
for (const val of value.vals) {
|
|
2527
|
+
if (val instanceof ConstVal && val.value !== "") {
|
|
2528
|
+
this._addClasses(val.value);
|
|
2529
|
+
}
|
|
2530
|
+
}
|
|
2531
|
+
return true;
|
|
2532
|
+
}
|
|
2533
|
+
return false;
|
|
2534
|
+
}
|
|
2527
2535
|
}
|
|
2528
2536
|
|
|
2529
2537
|
// deps/immutable.js
|