@knapsack/sandbox-components 4.89.10 → 4.89.11--canary.2bad8a8.0
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/web-components/bundle.js +24 -24
- package/package.json +7 -7
|
@@ -40,18 +40,18 @@ var o = class {
|
|
|
40
40
|
};
|
|
41
41
|
var r = (t4) => new o("string" == typeof t4 ? t4 : t4 + "", void 0, s);
|
|
42
42
|
var i = (t4, ...e7) => {
|
|
43
|
-
const n7 = 1 === t4.length ? t4[0] : e7.reduce((
|
|
43
|
+
const n7 = 1 === t4.length ? t4[0] : e7.reduce((e8, s5, n8) => e8 + ((t5) => {
|
|
44
44
|
if (true === t5._$cssResult$) return t5.cssText;
|
|
45
45
|
if ("number" == typeof t5) return t5;
|
|
46
46
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + t5 + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
47
|
-
})(s5) + t4[n8 + 1]
|
|
47
|
+
})(s5) + t4[n8 + 1], t4[0]);
|
|
48
48
|
return new o(n7, t4, s);
|
|
49
49
|
};
|
|
50
50
|
var S = (s5, n7) => {
|
|
51
|
-
e ? s5.adoptedStyleSheets = n7.map((
|
|
51
|
+
e ? s5.adoptedStyleSheets = n7.map((t4) => t4 instanceof CSSStyleSheet ? t4 : t4.styleSheet) : n7.forEach((e7) => {
|
|
52
52
|
const n8 = document.createElement("style"), o7 = t.litNonce;
|
|
53
53
|
void 0 !== o7 && n8.setAttribute("nonce", o7), n8.textContent = e7.cssText, s5.appendChild(n8);
|
|
54
|
-
})
|
|
54
|
+
});
|
|
55
55
|
};
|
|
56
56
|
var c = e ? (t4) => t4 : (t4) => t4 instanceof CSSStyleSheet ? ((t5) => {
|
|
57
57
|
let e7 = "";
|
|
@@ -108,10 +108,10 @@ var u = class extends HTMLElement {
|
|
|
108
108
|
static get observedAttributes() {
|
|
109
109
|
this.finalize();
|
|
110
110
|
const t4 = [];
|
|
111
|
-
return this.elementProperties.forEach((
|
|
111
|
+
return this.elementProperties.forEach((i5, s5) => {
|
|
112
112
|
const e7 = this._$Ep(s5, i5);
|
|
113
113
|
void 0 !== e7 && (this._$Ev.set(e7, s5), t4.push(e7));
|
|
114
|
-
})
|
|
114
|
+
}), t4;
|
|
115
115
|
}
|
|
116
116
|
static createProperty(t4, i5 = l) {
|
|
117
117
|
if (i5.state && (i5.attribute = false), this.finalize(), this.elementProperties.set(t4, i5), !i5.noAccessor && !this.prototype.hasOwnProperty(t4)) {
|
|
@@ -154,7 +154,7 @@ var u = class extends HTMLElement {
|
|
|
154
154
|
}
|
|
155
155
|
_$Eu() {
|
|
156
156
|
var t4;
|
|
157
|
-
this._$E_ = new Promise((
|
|
157
|
+
this._$E_ = new Promise((t5) => this.enableUpdating = t5), this._$AL = /* @__PURE__ */ new Map(), this._$Eg(), this.requestUpdate(), null === (t4 = this.constructor.h) || void 0 === t4 || t4.forEach((t5) => t5(this));
|
|
158
158
|
}
|
|
159
159
|
addController(t4) {
|
|
160
160
|
var i5, s5;
|
|
@@ -165,9 +165,9 @@ var u = class extends HTMLElement {
|
|
|
165
165
|
null === (i5 = this._$ES) || void 0 === i5 || i5.splice(this._$ES.indexOf(t4) >>> 0, 1);
|
|
166
166
|
}
|
|
167
167
|
_$Eg() {
|
|
168
|
-
this.constructor.elementProperties.forEach((
|
|
168
|
+
this.constructor.elementProperties.forEach((t4, i5) => {
|
|
169
169
|
this.hasOwnProperty(i5) && (this._$Ei.set(i5, this[i5]), delete this[i5]);
|
|
170
|
-
})
|
|
170
|
+
});
|
|
171
171
|
}
|
|
172
172
|
createRenderRoot() {
|
|
173
173
|
var t4;
|
|
@@ -176,19 +176,19 @@ var u = class extends HTMLElement {
|
|
|
176
176
|
}
|
|
177
177
|
connectedCallback() {
|
|
178
178
|
var t4;
|
|
179
|
-
void 0 === this.renderRoot && (this.renderRoot = this.createRenderRoot()), this.enableUpdating(true), null === (t4 = this._$ES) || void 0 === t4 || t4.forEach((
|
|
179
|
+
void 0 === this.renderRoot && (this.renderRoot = this.createRenderRoot()), this.enableUpdating(true), null === (t4 = this._$ES) || void 0 === t4 || t4.forEach((t5) => {
|
|
180
180
|
var i5;
|
|
181
181
|
return null === (i5 = t5.hostConnected) || void 0 === i5 ? void 0 : i5.call(t5);
|
|
182
|
-
})
|
|
182
|
+
});
|
|
183
183
|
}
|
|
184
184
|
enableUpdating(t4) {
|
|
185
185
|
}
|
|
186
186
|
disconnectedCallback() {
|
|
187
187
|
var t4;
|
|
188
|
-
null === (t4 = this._$ES) || void 0 === t4 || t4.forEach((
|
|
188
|
+
null === (t4 = this._$ES) || void 0 === t4 || t4.forEach((t5) => {
|
|
189
189
|
var i5;
|
|
190
190
|
return null === (i5 = t5.hostDisconnected) || void 0 === i5 ? void 0 : i5.call(t5);
|
|
191
|
-
})
|
|
191
|
+
});
|
|
192
192
|
}
|
|
193
193
|
attributeChangedCallback(t4, i5, s5) {
|
|
194
194
|
this._$AK(t4, s5);
|
|
@@ -229,14 +229,14 @@ var u = class extends HTMLElement {
|
|
|
229
229
|
performUpdate() {
|
|
230
230
|
var t4;
|
|
231
231
|
if (!this.isUpdatePending) return;
|
|
232
|
-
this.hasUpdated, this._$Ei && (this._$Ei.forEach((
|
|
232
|
+
this.hasUpdated, this._$Ei && (this._$Ei.forEach((t5, i6) => this[i6] = t5), this._$Ei = void 0);
|
|
233
233
|
let i5 = false;
|
|
234
234
|
const s5 = this._$AL;
|
|
235
235
|
try {
|
|
236
|
-
i5 = this.shouldUpdate(s5), i5 ? (this.willUpdate(s5), null === (t4 = this._$ES) || void 0 === t4 || t4.forEach((
|
|
236
|
+
i5 = this.shouldUpdate(s5), i5 ? (this.willUpdate(s5), null === (t4 = this._$ES) || void 0 === t4 || t4.forEach((t5) => {
|
|
237
237
|
var i6;
|
|
238
238
|
return null === (i6 = t5.hostUpdate) || void 0 === i6 ? void 0 : i6.call(t5);
|
|
239
|
-
})
|
|
239
|
+
}), this.update(s5)) : this._$Ek();
|
|
240
240
|
} catch (t5) {
|
|
241
241
|
throw i5 = false, this._$Ek(), t5;
|
|
242
242
|
}
|
|
@@ -246,10 +246,10 @@ var u = class extends HTMLElement {
|
|
|
246
246
|
}
|
|
247
247
|
_$AE(t4) {
|
|
248
248
|
var i5;
|
|
249
|
-
null === (i5 = this._$ES) || void 0 === i5 || i5.forEach((
|
|
249
|
+
null === (i5 = this._$ES) || void 0 === i5 || i5.forEach((t5) => {
|
|
250
250
|
var i6;
|
|
251
251
|
return null === (i6 = t5.hostUpdated) || void 0 === i6 ? void 0 : i6.call(t5);
|
|
252
|
-
})
|
|
252
|
+
}), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t4)), this.updated(t4);
|
|
253
253
|
}
|
|
254
254
|
_$Ek() {
|
|
255
255
|
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false;
|
|
@@ -264,7 +264,7 @@ var u = class extends HTMLElement {
|
|
|
264
264
|
return true;
|
|
265
265
|
}
|
|
266
266
|
update(t4) {
|
|
267
|
-
void 0 !== this._$EC && (this._$EC.forEach((
|
|
267
|
+
void 0 !== this._$EC && (this._$EC.forEach((t5, i5) => this._$EO(i5, this[i5], t5)), this._$EC = void 0), this._$Ek();
|
|
268
268
|
}
|
|
269
269
|
updated(t4) {
|
|
270
270
|
}
|
|
@@ -604,19 +604,19 @@ var o5 = e4(class extends i3 {
|
|
|
604
604
|
if (super(t4), t4.type !== t3.ATTRIBUTE || "class" !== t4.name || (null === (i5 = t4.strings) || void 0 === i5 ? void 0 : i5.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
605
605
|
}
|
|
606
606
|
render(t4) {
|
|
607
|
-
return " " + Object.keys(t4).filter((
|
|
607
|
+
return " " + Object.keys(t4).filter((i5) => t4[i5]).join(" ") + " ";
|
|
608
608
|
}
|
|
609
609
|
update(i5, [s5]) {
|
|
610
610
|
var r4, o7;
|
|
611
611
|
if (void 0 === this.it) {
|
|
612
|
-
this.it = /* @__PURE__ */ new Set(), void 0 !== i5.strings && (this.nt = new Set(i5.strings.join(" ").split(/\s/).filter((
|
|
612
|
+
this.it = /* @__PURE__ */ new Set(), void 0 !== i5.strings && (this.nt = new Set(i5.strings.join(" ").split(/\s/).filter((t4) => "" !== t4)));
|
|
613
613
|
for (const t4 in s5) s5[t4] && !(null === (r4 = this.nt) || void 0 === r4 ? void 0 : r4.has(t4)) && this.it.add(t4);
|
|
614
614
|
return this.render(s5);
|
|
615
615
|
}
|
|
616
616
|
const e7 = i5.element.classList;
|
|
617
|
-
this.it.forEach((
|
|
617
|
+
this.it.forEach((t4) => {
|
|
618
618
|
t4 in s5 || (e7.remove(t4), this.it.delete(t4));
|
|
619
|
-
})
|
|
619
|
+
});
|
|
620
620
|
for (const t4 in s5) {
|
|
621
621
|
const i6 = !!s5[t4];
|
|
622
622
|
i6 === this.it.has(t4) || (null === (o7 = this.nt) || void 0 === o7 ? void 0 : o7.has(t4)) || (i6 ? (e7.add(t4), this.it.add(t4)) : (e7.remove(t4), this.it.delete(t4)));
|
|
@@ -642,7 +642,7 @@ function n5(n7) {
|
|
|
642
642
|
|
|
643
643
|
// ../../../../node_modules/.pnpm/@lit+reactive-element@1.6.3/node_modules/@lit/reactive-element/decorators/query-assigned-elements.js
|
|
644
644
|
var n6;
|
|
645
|
-
var e6 = null != (null === (n6 = window.HTMLSlotElement) || void 0 === n6 ? void 0 : n6.prototype.assignedElements) ? (o7, n7) => o7.assignedElements(n7) : (o7, n7) => o7.assignedNodes(n7).filter((
|
|
645
|
+
var e6 = null != (null === (n6 = window.HTMLSlotElement) || void 0 === n6 ? void 0 : n6.prototype.assignedElements) ? (o7, n7) => o7.assignedElements(n7) : (o7, n7) => o7.assignedNodes(n7).filter((o8) => o8.nodeType === Node.ELEMENT_NODE);
|
|
646
646
|
|
|
647
647
|
// src/web-components/button.ts
|
|
648
648
|
var _SimpleButton_instances, handleClick_fn;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knapsack/sandbox-components",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "4.89.
|
|
4
|
+
"version": "4.89.11--canary.2bad8a8.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
7
7
|
"./css": "./dist/css/ks-sandbox-styles.css",
|
|
@@ -50,11 +50,11 @@
|
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@custom-elements-manifest/analyzer": "^0.10.4",
|
|
53
|
-
"@knapsack/eslint-config-starter": "4.89.
|
|
54
|
-
"@knapsack/postcss-config-starter": "4.89.
|
|
55
|
-
"@knapsack/prettier-config": "4.89.
|
|
56
|
-
"@knapsack/sandbox-tokens": "4.89.
|
|
57
|
-
"@knapsack/typescript-config-starter": "4.89.
|
|
53
|
+
"@knapsack/eslint-config-starter": "4.89.11--canary.2bad8a8.0",
|
|
54
|
+
"@knapsack/postcss-config-starter": "4.89.11--canary.2bad8a8.0",
|
|
55
|
+
"@knapsack/prettier-config": "4.89.11--canary.2bad8a8.0",
|
|
56
|
+
"@knapsack/sandbox-tokens": "4.89.11--canary.2bad8a8.0",
|
|
57
|
+
"@knapsack/typescript-config-starter": "4.89.11--canary.2bad8a8.0",
|
|
58
58
|
"@types/node": "^22.19.11",
|
|
59
59
|
"@types/react": "^19.2.3",
|
|
60
60
|
"esbuild": "^0.25.6",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"directory": "apps/ui/libs/sandbox-components",
|
|
74
74
|
"type": "git"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "2bad8a86d10c059405e8e9c66e2917c6487551ac"
|
|
77
77
|
}
|