snice 3.10.1 → 3.10.2
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/index.cjs +5 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +5 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +5 -3
- package/dist/index.iife.js.map +1 -1
- package/dist/parts.d.ts +0 -4
- package/dist/symbols.cjs +1 -1
- package/dist/symbols.esm.js +1 -1
- package/dist/transitions.cjs +1 -1
- package/dist/transitions.esm.js +1 -1
- package/package.json +1 -1
package/dist/index.iife.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* snice v3.10.
|
|
2
|
+
* snice v3.10.1
|
|
3
3
|
* Imperative TypeScript framework for building vanilla web components with decorators, differential rendering, routing, and controllers. No virtual DOM, no build complexity.
|
|
4
4
|
* (c) 2024
|
|
5
5
|
* Released under the MIT License.
|
|
@@ -1493,10 +1493,12 @@ var Snice = (function (exports) {
|
|
|
1493
1493
|
* ConditionalIfPart handles <if> conditional rendering
|
|
1494
1494
|
* Removes/inserts DOM nodes based on condition
|
|
1495
1495
|
*/
|
|
1496
|
+
// Sentinel value to distinguish "not yet set" from undefined
|
|
1497
|
+
const NOT_SET = Symbol('not-set');
|
|
1496
1498
|
class ConditionalIfPart extends Part {
|
|
1497
1499
|
constructor(ifElement) {
|
|
1498
1500
|
super();
|
|
1499
|
-
this.value =
|
|
1501
|
+
this.value = NOT_SET;
|
|
1500
1502
|
this.fragment = null;
|
|
1501
1503
|
this.ifElement = ifElement;
|
|
1502
1504
|
this.ifElement.style.display = 'contents';
|
|
@@ -1538,7 +1540,7 @@ var Snice = (function (exports) {
|
|
|
1538
1540
|
class ConditionalCasePart extends Part {
|
|
1539
1541
|
constructor(caseElement) {
|
|
1540
1542
|
super();
|
|
1541
|
-
this.value =
|
|
1543
|
+
this.value = NOT_SET;
|
|
1542
1544
|
this.childrenMap = new Map();
|
|
1543
1545
|
this.fragments = new Map();
|
|
1544
1546
|
this.defaultChild = null;
|