solid-intlayer 5.7.7 → 5.8.0-canary.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/README.md +1 -1
- package/dist/cjs/IntlayerNode.cjs +1 -1
- package/dist/cjs/UI/ContentSelector.cjs +1 -1
- package/dist/cjs/client/IntlayerProvider.cjs +1 -1
- package/dist/cjs/client/getBrowserLocale.cjs +1 -1
- package/dist/cjs/client/useDictionary.cjs +1 -1
- package/dist/cjs/client/useDictionaryAsync.cjs +1 -1
- package/dist/cjs/client/useDictionaryDynamic.cjs +1 -1
- package/dist/cjs/client/useIntlayer.cjs +1 -1
- package/dist/cjs/client/useLocale.cjs +1 -1
- package/dist/cjs/editor/ContentSelectorWrapper.cjs +1 -1
- package/dist/cjs/editor/IntlayerEditorProvider.cjs +1 -1
- package/dist/cjs/editor/contexts/CommunicatorContext.cjs +1 -1
- package/dist/cjs/editor/contexts/EditedContentContext.cjs +1 -1
- package/dist/cjs/editor/contexts/EditorProvider.cjs +1 -1
- package/dist/cjs/editor/contexts/useCrossFrameMessageListener.cjs +1 -1
- package/dist/cjs/plugins.cjs +1 -1
- package/dist/cjs/solidElement/renderSolidElement.cjs +1 -1
- package/dist/esm/IntlayerNode.mjs +9 -9
- package/dist/esm/UI/ContentSelector.mjs +30 -32
- package/dist/esm/client/IntlayerProvider.mjs +38 -42
- package/dist/esm/client/getBrowserLocale.mjs +41 -42
- package/dist/esm/client/useDictionary.mjs +9 -10
- package/dist/esm/client/useDictionaryAsync.mjs +8 -9
- package/dist/esm/client/useDictionaryDynamic.mjs +11 -12
- package/dist/esm/client/useIntlayer.mjs +8 -8
- package/dist/esm/client/useLocale.mjs +18 -19
- package/dist/esm/editor/ContentSelectorWrapper.mjs +22 -25
- package/dist/esm/editor/IntlayerEditorProvider.mjs +19 -20
- package/dist/esm/editor/contexts/CommunicatorContext.mjs +16 -16
- package/dist/esm/editor/contexts/EditedContentContext.mjs +81 -85
- package/dist/esm/editor/contexts/EditorProvider.mjs +7 -7
- package/dist/esm/editor/contexts/useCrossFrameMessageListener.mjs +16 -16
- package/dist/esm/plugins.mjs +9 -9
- package/dist/esm/solidElement/renderSolidElement.mjs +13 -14
- package/dist/web-Ch-xTpJg.js +1 -0
- package/dist/web-mv0y5CK4.mjs +567 -0
- package/package.json +14 -14
- package/dist/web-BFg6-54-.mjs +0 -443
- package/dist/web-qH6jV2Kc.js +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "solid-intlayer",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.8.0-canary.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Easily internationalize i18n your Solid applications with type-safe multilingual content management.",
|
|
6
6
|
"keywords": [
|
|
@@ -57,39 +57,39 @@
|
|
|
57
57
|
],
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"js-cookie": "^3.0.5",
|
|
60
|
-
"@intlayer/api": "5.
|
|
61
|
-
"@intlayer/
|
|
62
|
-
"@intlayer/
|
|
63
|
-
"@intlayer/core": "5.
|
|
60
|
+
"@intlayer/api": "5.8.0-canary.0",
|
|
61
|
+
"@intlayer/editor": "5.8.0-canary.0",
|
|
62
|
+
"@intlayer/config": "5.8.0-canary.0",
|
|
63
|
+
"@intlayer/core": "5.8.0-canary.0"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@solidjs/testing-library": "^0.8.10",
|
|
67
67
|
"@testing-library/jest-dom": "^6.6.3",
|
|
68
68
|
"@testing-library/user-event": "^14.6.1",
|
|
69
69
|
"@types/js-cookie": "^3.0.6",
|
|
70
|
-
"@types/node": "^
|
|
70
|
+
"@types/node": "^24.2.1",
|
|
71
71
|
"@typescript-eslint/parser": "^8.33.1",
|
|
72
72
|
"concurrently": "^9.1.2",
|
|
73
|
-
"eslint": "^9.
|
|
73
|
+
"eslint": "^9.33.0",
|
|
74
74
|
"jsdom": "^26.1.0",
|
|
75
75
|
"prettier": "^3.5.3",
|
|
76
76
|
"rimraf": "^6.0.1",
|
|
77
|
-
"typescript": "^5.
|
|
78
|
-
"vite": "^
|
|
77
|
+
"typescript": "^5.9.2",
|
|
78
|
+
"vite": "^7.1.2",
|
|
79
79
|
"vite-plugin-dts": "^4.5.3",
|
|
80
80
|
"vite-plugin-solid": "^2.11.6",
|
|
81
81
|
"vitest": "^3.2.2",
|
|
82
|
-
"@utils/ts-config": "1.0.4",
|
|
83
82
|
"@utils/eslint-config": "1.0.4",
|
|
83
|
+
"@utils/ts-config": "1.0.4",
|
|
84
84
|
"@utils/tsup-config": "1.0.4",
|
|
85
85
|
"@utils/ts-config-types": "1.0.4"
|
|
86
86
|
},
|
|
87
87
|
"peerDependencies": {
|
|
88
88
|
"solid-js": "^1.9.5",
|
|
89
|
-
"@intlayer/api": "5.
|
|
90
|
-
"@intlayer/config": "5.
|
|
91
|
-
"@intlayer/
|
|
92
|
-
"@intlayer/
|
|
89
|
+
"@intlayer/api": "5.8.0-canary.0",
|
|
90
|
+
"@intlayer/config": "5.8.0-canary.0",
|
|
91
|
+
"@intlayer/core": "5.8.0-canary.0",
|
|
92
|
+
"@intlayer/editor": "5.8.0-canary.0"
|
|
93
93
|
},
|
|
94
94
|
"engines": {
|
|
95
95
|
"node": ">=14.18"
|
package/dist/web-BFg6-54-.mjs
DELETED
|
@@ -1,443 +0,0 @@
|
|
|
1
|
-
import { sharedConfig as u, createMemo as E, createRenderEffect as m, splitProps as M, untrack as L } from "solid-js";
|
|
2
|
-
const P = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "inert", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"], k = /* @__PURE__ */ new Set(["className", "value", "readOnly", "noValidate", "formNoValidate", "isMap", "noModule", "playsInline", ...P]), O = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]), D = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
3
|
-
className: "class",
|
|
4
|
-
htmlFor: "for"
|
|
5
|
-
}), B = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
6
|
-
class: "className",
|
|
7
|
-
novalidate: {
|
|
8
|
-
$: "noValidate",
|
|
9
|
-
FORM: 1
|
|
10
|
-
},
|
|
11
|
-
formnovalidate: {
|
|
12
|
-
$: "formNoValidate",
|
|
13
|
-
BUTTON: 1,
|
|
14
|
-
INPUT: 1
|
|
15
|
-
},
|
|
16
|
-
ismap: {
|
|
17
|
-
$: "isMap",
|
|
18
|
-
IMG: 1
|
|
19
|
-
},
|
|
20
|
-
nomodule: {
|
|
21
|
-
$: "noModule",
|
|
22
|
-
SCRIPT: 1
|
|
23
|
-
},
|
|
24
|
-
playsinline: {
|
|
25
|
-
$: "playsInline",
|
|
26
|
-
VIDEO: 1
|
|
27
|
-
},
|
|
28
|
-
readonly: {
|
|
29
|
-
$: "readOnly",
|
|
30
|
-
INPUT: 1,
|
|
31
|
-
TEXTAREA: 1
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
function I(i, e) {
|
|
35
|
-
const t = B[i];
|
|
36
|
-
return typeof t == "object" ? t[e] ? t.$ : void 0 : t;
|
|
37
|
-
}
|
|
38
|
-
const j = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextmenu", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]), G = /* @__PURE__ */ new Set([
|
|
39
|
-
"altGlyph",
|
|
40
|
-
"altGlyphDef",
|
|
41
|
-
"altGlyphItem",
|
|
42
|
-
"animate",
|
|
43
|
-
"animateColor",
|
|
44
|
-
"animateMotion",
|
|
45
|
-
"animateTransform",
|
|
46
|
-
"circle",
|
|
47
|
-
"clipPath",
|
|
48
|
-
"color-profile",
|
|
49
|
-
"cursor",
|
|
50
|
-
"defs",
|
|
51
|
-
"desc",
|
|
52
|
-
"ellipse",
|
|
53
|
-
"feBlend",
|
|
54
|
-
"feColorMatrix",
|
|
55
|
-
"feComponentTransfer",
|
|
56
|
-
"feComposite",
|
|
57
|
-
"feConvolveMatrix",
|
|
58
|
-
"feDiffuseLighting",
|
|
59
|
-
"feDisplacementMap",
|
|
60
|
-
"feDistantLight",
|
|
61
|
-
"feDropShadow",
|
|
62
|
-
"feFlood",
|
|
63
|
-
"feFuncA",
|
|
64
|
-
"feFuncB",
|
|
65
|
-
"feFuncG",
|
|
66
|
-
"feFuncR",
|
|
67
|
-
"feGaussianBlur",
|
|
68
|
-
"feImage",
|
|
69
|
-
"feMerge",
|
|
70
|
-
"feMergeNode",
|
|
71
|
-
"feMorphology",
|
|
72
|
-
"feOffset",
|
|
73
|
-
"fePointLight",
|
|
74
|
-
"feSpecularLighting",
|
|
75
|
-
"feSpotLight",
|
|
76
|
-
"feTile",
|
|
77
|
-
"feTurbulence",
|
|
78
|
-
"filter",
|
|
79
|
-
"font",
|
|
80
|
-
"font-face",
|
|
81
|
-
"font-face-format",
|
|
82
|
-
"font-face-name",
|
|
83
|
-
"font-face-src",
|
|
84
|
-
"font-face-uri",
|
|
85
|
-
"foreignObject",
|
|
86
|
-
"g",
|
|
87
|
-
"glyph",
|
|
88
|
-
"glyphRef",
|
|
89
|
-
"hkern",
|
|
90
|
-
"image",
|
|
91
|
-
"line",
|
|
92
|
-
"linearGradient",
|
|
93
|
-
"marker",
|
|
94
|
-
"mask",
|
|
95
|
-
"metadata",
|
|
96
|
-
"missing-glyph",
|
|
97
|
-
"mpath",
|
|
98
|
-
"path",
|
|
99
|
-
"pattern",
|
|
100
|
-
"polygon",
|
|
101
|
-
"polyline",
|
|
102
|
-
"radialGradient",
|
|
103
|
-
"rect",
|
|
104
|
-
"set",
|
|
105
|
-
"stop",
|
|
106
|
-
"svg",
|
|
107
|
-
"switch",
|
|
108
|
-
"symbol",
|
|
109
|
-
"text",
|
|
110
|
-
"textPath",
|
|
111
|
-
"tref",
|
|
112
|
-
"tspan",
|
|
113
|
-
"use",
|
|
114
|
-
"view",
|
|
115
|
-
"vkern"
|
|
116
|
-
]), V = {
|
|
117
|
-
xlink: "http://www.w3.org/1999/xlink",
|
|
118
|
-
xml: "http://www.w3.org/XML/1998/namespace"
|
|
119
|
-
}, ne = (i) => E(() => i());
|
|
120
|
-
function _(i, e, t) {
|
|
121
|
-
let l = t.length, s = e.length, o = l, f = 0, n = 0, c = e[s - 1].nextSibling, r = null;
|
|
122
|
-
for (; f < s || n < o; ) {
|
|
123
|
-
if (e[f] === t[n]) {
|
|
124
|
-
f++, n++;
|
|
125
|
-
continue;
|
|
126
|
-
}
|
|
127
|
-
for (; e[s - 1] === t[o - 1]; )
|
|
128
|
-
s--, o--;
|
|
129
|
-
if (s === f) {
|
|
130
|
-
const d = o < l ? n ? t[n - 1].nextSibling : t[o - n] : c;
|
|
131
|
-
for (; n < o; ) i.insertBefore(t[n++], d);
|
|
132
|
-
} else if (o === n)
|
|
133
|
-
for (; f < s; )
|
|
134
|
-
(!r || !r.has(e[f])) && e[f].remove(), f++;
|
|
135
|
-
else if (e[f] === t[o - 1] && t[n] === e[s - 1]) {
|
|
136
|
-
const d = e[--s].nextSibling;
|
|
137
|
-
i.insertBefore(t[n++], e[f++].nextSibling), i.insertBefore(t[--o], d), e[s] = t[o];
|
|
138
|
-
} else {
|
|
139
|
-
if (!r) {
|
|
140
|
-
r = /* @__PURE__ */ new Map();
|
|
141
|
-
let h = n;
|
|
142
|
-
for (; h < o; ) r.set(t[h], h++);
|
|
143
|
-
}
|
|
144
|
-
const d = r.get(e[f]);
|
|
145
|
-
if (d != null)
|
|
146
|
-
if (n < d && d < o) {
|
|
147
|
-
let h = f, a = 1, g;
|
|
148
|
-
for (; ++h < s && h < o && !((g = r.get(e[h])) == null || g !== d + a); )
|
|
149
|
-
a++;
|
|
150
|
-
if (a > d - n) {
|
|
151
|
-
const b = e[f];
|
|
152
|
-
for (; n < d; ) i.insertBefore(t[n++], b);
|
|
153
|
-
} else i.replaceChild(t[n++], e[f++]);
|
|
154
|
-
} else f++;
|
|
155
|
-
else e[f++].remove();
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
const x = "_$DX_DELEGATE";
|
|
160
|
-
function se(i, e, t, l) {
|
|
161
|
-
let s;
|
|
162
|
-
const o = () => {
|
|
163
|
-
const n = document.createElement("template");
|
|
164
|
-
return n.innerHTML = i, n.content.firstChild;
|
|
165
|
-
}, f = () => (s || (s = o())).cloneNode(!0);
|
|
166
|
-
return f.cloneNode = f, f;
|
|
167
|
-
}
|
|
168
|
-
function F(i, e = window.document) {
|
|
169
|
-
const t = e[x] || (e[x] = /* @__PURE__ */ new Set());
|
|
170
|
-
for (let l = 0, s = i.length; l < s; l++) {
|
|
171
|
-
const o = i[l];
|
|
172
|
-
t.has(o) || (t.add(o), e.addEventListener(o, Z));
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
function N(i, e, t) {
|
|
176
|
-
y(i) || (t == null ? i.removeAttribute(e) : i.setAttribute(e, t));
|
|
177
|
-
}
|
|
178
|
-
function H(i, e, t, l) {
|
|
179
|
-
y(i) || (l == null ? i.removeAttributeNS(e, t) : i.setAttributeNS(e, t, l));
|
|
180
|
-
}
|
|
181
|
-
function R(i, e, t) {
|
|
182
|
-
y(i) || (t ? i.setAttribute(e, "") : i.removeAttribute(e));
|
|
183
|
-
}
|
|
184
|
-
function U(i, e) {
|
|
185
|
-
y(i) || (e == null ? i.removeAttribute("class") : i.className = e);
|
|
186
|
-
}
|
|
187
|
-
function K(i, e, t, l) {
|
|
188
|
-
if (l)
|
|
189
|
-
Array.isArray(t) ? (i[`$$${e}`] = t[0], i[`$$${e}Data`] = t[1]) : i[`$$${e}`] = t;
|
|
190
|
-
else if (Array.isArray(t)) {
|
|
191
|
-
const s = t[0];
|
|
192
|
-
i.addEventListener(e, t[0] = (o) => s.call(i, t[1], o));
|
|
193
|
-
} else i.addEventListener(e, t, typeof t != "function" && t);
|
|
194
|
-
}
|
|
195
|
-
function X(i, e, t = {}) {
|
|
196
|
-
const l = Object.keys(e || {}), s = Object.keys(t);
|
|
197
|
-
let o, f;
|
|
198
|
-
for (o = 0, f = s.length; o < f; o++) {
|
|
199
|
-
const n = s[o];
|
|
200
|
-
!n || n === "undefined" || e[n] || (T(i, n, !1), delete t[n]);
|
|
201
|
-
}
|
|
202
|
-
for (o = 0, f = l.length; o < f; o++) {
|
|
203
|
-
const n = l[o], c = !!e[n];
|
|
204
|
-
!n || n === "undefined" || t[n] === c || !c || (T(i, n, !0), t[n] = c);
|
|
205
|
-
}
|
|
206
|
-
return t;
|
|
207
|
-
}
|
|
208
|
-
function q(i, e, t) {
|
|
209
|
-
if (!e) return t ? N(i, "style") : e;
|
|
210
|
-
const l = i.style;
|
|
211
|
-
if (typeof e == "string") return l.cssText = e;
|
|
212
|
-
typeof t == "string" && (l.cssText = t = void 0), t || (t = {}), e || (e = {});
|
|
213
|
-
let s, o;
|
|
214
|
-
for (o in t)
|
|
215
|
-
e[o] == null && l.removeProperty(o), delete t[o];
|
|
216
|
-
for (o in e)
|
|
217
|
-
s = e[o], s !== t[o] && (l.setProperty(o, s), t[o] = s);
|
|
218
|
-
return t;
|
|
219
|
-
}
|
|
220
|
-
function Y(i, e = {}, t, l) {
|
|
221
|
-
const s = {};
|
|
222
|
-
return l || m(() => s.children = w(i, e.children, s.children)), m(() => typeof e.ref == "function" && p(e.ref, i)), m(() => J(i, e, t, !0, s, !0)), s;
|
|
223
|
-
}
|
|
224
|
-
function p(i, e, t) {
|
|
225
|
-
return L(() => i(e, t));
|
|
226
|
-
}
|
|
227
|
-
function oe(i, e, t, l) {
|
|
228
|
-
if (typeof e != "function") return w(i, e, l, t);
|
|
229
|
-
m((s) => w(i, e(), s, t), l);
|
|
230
|
-
}
|
|
231
|
-
function J(i, e, t, l, s = {}, o = !1) {
|
|
232
|
-
e || (e = {});
|
|
233
|
-
for (const f in s)
|
|
234
|
-
if (!(f in e)) {
|
|
235
|
-
if (f === "children") continue;
|
|
236
|
-
s[f] = $(i, f, null, s[f], t, o, e);
|
|
237
|
-
}
|
|
238
|
-
for (const f in e) {
|
|
239
|
-
if (f === "children")
|
|
240
|
-
continue;
|
|
241
|
-
const n = e[f];
|
|
242
|
-
s[f] = $(i, f, n, s[f], t, o, e);
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
function Q(i) {
|
|
246
|
-
let e, t;
|
|
247
|
-
return !y() || !(e = u.registry.get(t = z())) ? i() : (u.completed && u.completed.add(e), u.registry.delete(t), e);
|
|
248
|
-
}
|
|
249
|
-
function y(i) {
|
|
250
|
-
return !!u.context && !u.done && (!i || i.isConnected);
|
|
251
|
-
}
|
|
252
|
-
function W(i) {
|
|
253
|
-
return i.toLowerCase().replace(/-([a-z])/g, (e, t) => t.toUpperCase());
|
|
254
|
-
}
|
|
255
|
-
function T(i, e, t) {
|
|
256
|
-
const l = e.trim().split(/\s+/);
|
|
257
|
-
for (let s = 0, o = l.length; s < o; s++) i.classList.toggle(l[s], t);
|
|
258
|
-
}
|
|
259
|
-
function $(i, e, t, l, s, o, f) {
|
|
260
|
-
let n, c, r, d, h;
|
|
261
|
-
if (e === "style") return q(i, t, l);
|
|
262
|
-
if (e === "classList") return X(i, t, l);
|
|
263
|
-
if (t === l) return l;
|
|
264
|
-
if (e === "ref")
|
|
265
|
-
o || t(i);
|
|
266
|
-
else if (e.slice(0, 3) === "on:") {
|
|
267
|
-
const a = e.slice(3);
|
|
268
|
-
l && i.removeEventListener(a, l, typeof l != "function" && l), t && i.addEventListener(a, t, typeof t != "function" && t);
|
|
269
|
-
} else if (e.slice(0, 10) === "oncapture:") {
|
|
270
|
-
const a = e.slice(10);
|
|
271
|
-
l && i.removeEventListener(a, l, !0), t && i.addEventListener(a, t, !0);
|
|
272
|
-
} else if (e.slice(0, 2) === "on") {
|
|
273
|
-
const a = e.slice(2).toLowerCase(), g = j.has(a);
|
|
274
|
-
if (!g && l) {
|
|
275
|
-
const b = Array.isArray(l) ? l[0] : l;
|
|
276
|
-
i.removeEventListener(a, b);
|
|
277
|
-
}
|
|
278
|
-
(g || t) && (K(i, a, t, g), g && F([a]));
|
|
279
|
-
} else if (e.slice(0, 5) === "attr:")
|
|
280
|
-
N(i, e.slice(5), t);
|
|
281
|
-
else if (e.slice(0, 5) === "bool:")
|
|
282
|
-
R(i, e.slice(5), t);
|
|
283
|
-
else if ((h = e.slice(0, 5) === "prop:") || (r = O.has(e)) || !s && ((d = I(e, i.tagName)) || (c = k.has(e))) || (n = i.nodeName.includes("-") || "is" in f)) {
|
|
284
|
-
if (h)
|
|
285
|
-
e = e.slice(5), c = !0;
|
|
286
|
-
else if (y(i)) return t;
|
|
287
|
-
e === "class" || e === "className" ? U(i, t) : n && !c && !r ? i[W(e)] = t : i[d || e] = t;
|
|
288
|
-
} else {
|
|
289
|
-
const a = s && e.indexOf(":") > -1 && V[e.split(":")[0]];
|
|
290
|
-
a ? H(i, a, e, t) : N(i, D[e] || e, t);
|
|
291
|
-
}
|
|
292
|
-
return t;
|
|
293
|
-
}
|
|
294
|
-
function Z(i) {
|
|
295
|
-
if (u.registry && u.events && u.events.find(([c, r]) => r === i))
|
|
296
|
-
return;
|
|
297
|
-
let e = i.target;
|
|
298
|
-
const t = `$$${i.type}`, l = i.target, s = i.currentTarget, o = (c) => Object.defineProperty(i, "target", {
|
|
299
|
-
configurable: !0,
|
|
300
|
-
value: c
|
|
301
|
-
}), f = () => {
|
|
302
|
-
const c = e[t];
|
|
303
|
-
if (c && !e.disabled) {
|
|
304
|
-
const r = e[`${t}Data`];
|
|
305
|
-
if (r !== void 0 ? c.call(e, r, i) : c.call(e, i), i.cancelBubble) return;
|
|
306
|
-
}
|
|
307
|
-
return e.host && typeof e.host != "string" && !e.host._$host && e.contains(i.target) && o(e.host), !0;
|
|
308
|
-
}, n = () => {
|
|
309
|
-
for (; f() && (e = e._$host || e.parentNode || e.host); ) ;
|
|
310
|
-
};
|
|
311
|
-
if (Object.defineProperty(i, "currentTarget", {
|
|
312
|
-
configurable: !0,
|
|
313
|
-
get() {
|
|
314
|
-
return e || document;
|
|
315
|
-
}
|
|
316
|
-
}), u.registry && !u.done && (u.done = _$HY.done = !0), i.composedPath) {
|
|
317
|
-
const c = i.composedPath();
|
|
318
|
-
o(c[0]);
|
|
319
|
-
for (let r = 0; r < c.length - 2 && (e = c[r], !!f()); r++) {
|
|
320
|
-
if (e._$host) {
|
|
321
|
-
e = e._$host, n();
|
|
322
|
-
break;
|
|
323
|
-
}
|
|
324
|
-
if (e.parentNode === s)
|
|
325
|
-
break;
|
|
326
|
-
}
|
|
327
|
-
} else n();
|
|
328
|
-
o(l);
|
|
329
|
-
}
|
|
330
|
-
function w(i, e, t, l, s) {
|
|
331
|
-
const o = y(i);
|
|
332
|
-
if (o) {
|
|
333
|
-
!t && (t = [...i.childNodes]);
|
|
334
|
-
let n = [];
|
|
335
|
-
for (let c = 0; c < t.length; c++) {
|
|
336
|
-
const r = t[c];
|
|
337
|
-
r.nodeType === 8 && r.data.slice(0, 2) === "!$" ? r.remove() : n.push(r);
|
|
338
|
-
}
|
|
339
|
-
t = n;
|
|
340
|
-
}
|
|
341
|
-
for (; typeof t == "function"; ) t = t();
|
|
342
|
-
if (e === t) return t;
|
|
343
|
-
const f = typeof e;
|
|
344
|
-
if (i = i, f === "string" || f === "number") {
|
|
345
|
-
if (o || f === "number" && (e = e.toString(), e === t))
|
|
346
|
-
return t;
|
|
347
|
-
t !== "" && typeof t == "string" ? t = i.firstChild.data = e : t = i.textContent = e;
|
|
348
|
-
} else if (e == null || f === "boolean") {
|
|
349
|
-
if (o) return t;
|
|
350
|
-
t = A(i, t, l);
|
|
351
|
-
} else {
|
|
352
|
-
if (f === "function")
|
|
353
|
-
return m(() => {
|
|
354
|
-
let n = e();
|
|
355
|
-
for (; typeof n == "function"; ) n = n();
|
|
356
|
-
t = w(i, n, t, l);
|
|
357
|
-
}), () => t;
|
|
358
|
-
if (Array.isArray(e)) {
|
|
359
|
-
const n = [], c = t && Array.isArray(t);
|
|
360
|
-
if (C(n, e, t, s))
|
|
361
|
-
return m(() => t = w(i, n, t, l, !0)), () => t;
|
|
362
|
-
if (o)
|
|
363
|
-
return n.length ? t = [...i.childNodes] : t;
|
|
364
|
-
n.length === 0 ? t = A(i, t, l) : c ? t.length === 0 ? S(i, n, l) : _(i, t, n) : (t && A(i), S(i, n)), t = n;
|
|
365
|
-
} else if (e.nodeType) {
|
|
366
|
-
if (o && e.parentNode) return t = e;
|
|
367
|
-
Array.isArray(t) ? A(i, t, null, e) : t == null || t === "" || !i.firstChild ? i.appendChild(e) : i.replaceChild(e, i.firstChild), t = e;
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
return t;
|
|
371
|
-
}
|
|
372
|
-
function C(i, e, t, l) {
|
|
373
|
-
let s = !1;
|
|
374
|
-
for (let o = 0, f = e.length; o < f; o++) {
|
|
375
|
-
let n = e[o], c = t && t[i.length], r;
|
|
376
|
-
if (!(n == null || n === !0 || n === !1)) if ((r = typeof n) == "object" && n.nodeType)
|
|
377
|
-
i.push(n);
|
|
378
|
-
else if (Array.isArray(n))
|
|
379
|
-
s = C(i, n, c) || s;
|
|
380
|
-
else if (r === "function")
|
|
381
|
-
if (l) {
|
|
382
|
-
for (; typeof n == "function"; ) n = n();
|
|
383
|
-
s = C(i, Array.isArray(n) ? n : [n], Array.isArray(c) ? c : [c]) || s;
|
|
384
|
-
} else
|
|
385
|
-
i.push(n), s = !0;
|
|
386
|
-
else {
|
|
387
|
-
const d = String(n);
|
|
388
|
-
c && c.nodeType === 3 && c.data === d ? i.push(c) : i.push(document.createTextNode(d));
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
return s;
|
|
392
|
-
}
|
|
393
|
-
function S(i, e, t = null) {
|
|
394
|
-
for (let l = 0, s = e.length; l < s; l++) i.insertBefore(e[l], t);
|
|
395
|
-
}
|
|
396
|
-
function A(i, e, t, l) {
|
|
397
|
-
if (t === void 0) return i.textContent = "";
|
|
398
|
-
const s = l || document.createTextNode("");
|
|
399
|
-
if (e.length) {
|
|
400
|
-
let o = !1;
|
|
401
|
-
for (let f = e.length - 1; f >= 0; f--) {
|
|
402
|
-
const n = e[f];
|
|
403
|
-
if (s !== n) {
|
|
404
|
-
const c = n.parentNode === i;
|
|
405
|
-
!o && !f ? c ? i.replaceChild(s, n) : i.insertBefore(s, t) : c && n.remove();
|
|
406
|
-
} else o = !0;
|
|
407
|
-
}
|
|
408
|
-
} else i.insertBefore(s, t);
|
|
409
|
-
return [s];
|
|
410
|
-
}
|
|
411
|
-
function z() {
|
|
412
|
-
return u.getNextContextId();
|
|
413
|
-
}
|
|
414
|
-
const v = "http://www.w3.org/2000/svg";
|
|
415
|
-
function ee(i, e = !1) {
|
|
416
|
-
return e ? document.createElementNS(v, i) : document.createElement(i);
|
|
417
|
-
}
|
|
418
|
-
function te(i, e) {
|
|
419
|
-
const t = E(i);
|
|
420
|
-
return E(() => {
|
|
421
|
-
const l = t();
|
|
422
|
-
switch (typeof l) {
|
|
423
|
-
case "function":
|
|
424
|
-
return L(() => l(e));
|
|
425
|
-
case "string":
|
|
426
|
-
const s = G.has(l), o = u.context ? Q() : ee(l, s);
|
|
427
|
-
return Y(o, e, s), o;
|
|
428
|
-
}
|
|
429
|
-
});
|
|
430
|
-
}
|
|
431
|
-
function le(i) {
|
|
432
|
-
const [, e] = M(i, ["component"]);
|
|
433
|
-
return te(() => i.component, e);
|
|
434
|
-
}
|
|
435
|
-
export {
|
|
436
|
-
le as D,
|
|
437
|
-
F as d,
|
|
438
|
-
oe as i,
|
|
439
|
-
ne as m,
|
|
440
|
-
Y as s,
|
|
441
|
-
se as t,
|
|
442
|
-
p as u
|
|
443
|
-
};
|
package/dist/web-qH6jV2Kc.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const a=require("solid-js"),M=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"],P=new Set(["className","value","readOnly","noValidate","formNoValidate","isMap","noModule","playsInline",...M]),k=new Set(["innerHTML","textContent","innerText","children"]),O=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),D=Object.assign(Object.create(null),{class:"className",novalidate:{$:"noValidate",FORM:1},formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1}});function B(n,e){const t=D[n];return typeof t=="object"?t[e]?t.$:void 0:t}const I=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),j=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),G={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},R=n=>a.createMemo(()=>n());function V(n,e,t){let f=t.length,s=e.length,o=f,l=0,i=0,c=e[s-1].nextSibling,r=null;for(;l<s||i<o;){if(e[l]===t[i]){l++,i++;continue}for(;e[s-1]===t[o-1];)s--,o--;if(s===l){const u=o<f?i?t[i-1].nextSibling:t[o-i]:c;for(;i<o;)n.insertBefore(t[i++],u)}else if(o===i)for(;l<s;)(!r||!r.has(e[l]))&&e[l].remove(),l++;else if(e[l]===t[o-1]&&t[i]===e[s-1]){const u=e[--s].nextSibling;n.insertBefore(t[i++],e[l++].nextSibling),n.insertBefore(t[--o],u),e[s]=t[o]}else{if(!r){r=new Map;let h=i;for(;h<o;)r.set(t[h],h++)}const u=r.get(e[l]);if(u!=null)if(i<u&&u<o){let h=l,d=1,g;for(;++h<s&&h<o&&!((g=r.get(e[h]))==null||g!==u+d);)d++;if(d>u-i){const w=e[l];for(;i<u;)n.insertBefore(t[i++],w)}else n.replaceChild(t[i++],e[l++])}else l++;else e[l++].remove()}}}const b="_$DX_DELEGATE";function _(n,e,t,f){let s;const o=()=>{const i=document.createElement("template");return i.innerHTML=n,i.content.firstChild},l=()=>(s||(s=o())).cloneNode(!0);return l.cloneNode=l,l}function x(n,e=window.document){const t=e[b]||(e[b]=new Set);for(let f=0,s=n.length;f<s;f++){const o=n[f];t.has(o)||(t.add(o),e.addEventListener(o,W))}}function A(n,e,t){y(n)||(t==null?n.removeAttribute(e):n.setAttribute(e,t))}function F(n,e,t,f){y(n)||(f==null?n.removeAttributeNS(e,t):n.setAttributeNS(e,t,f))}function H(n,e,t){y(n)||(t?n.setAttribute(e,""):n.removeAttribute(e))}function U(n,e){y(n)||(e==null?n.removeAttribute("class"):n.className=e)}function K(n,e,t,f){if(f)Array.isArray(t)?(n[`$$${e}`]=t[0],n[`$$${e}Data`]=t[1]):n[`$$${e}`]=t;else if(Array.isArray(t)){const s=t[0];n.addEventListener(e,t[0]=o=>s.call(n,t[1],o))}else n.addEventListener(e,t,typeof t!="function"&&t)}function q(n,e,t={}){const f=Object.keys(e||{}),s=Object.keys(t);let o,l;for(o=0,l=s.length;o<l;o++){const i=s[o];!i||i==="undefined"||e[i]||(N(n,i,!1),delete t[i])}for(o=0,l=f.length;o<l;o++){const i=f[o],c=!!e[i];!i||i==="undefined"||t[i]===c||!c||(N(n,i,!0),t[i]=c)}return t}function X(n,e,t){if(!e)return t?A(n,"style"):e;const f=n.style;if(typeof e=="string")return f.cssText=e;typeof t=="string"&&(f.cssText=t=void 0),t||(t={}),e||(e={});let s,o;for(o in t)e[o]==null&&f.removeProperty(o),delete t[o];for(o in e)s=e[o],s!==t[o]&&(f.setProperty(o,s),t[o]=s);return t}function S(n,e={},t,f){const s={};return f||a.createRenderEffect(()=>s.children=m(n,e.children,s.children)),a.createRenderEffect(()=>typeof e.ref=="function"&&L(e.ref,n)),a.createRenderEffect(()=>Y(n,e,t,!0,s,!0)),s}function L(n,e,t){return a.untrack(()=>n(e,t))}function J(n,e,t,f){if(typeof e!="function")return m(n,e,f,t);a.createRenderEffect(s=>m(n,e(),s,t),f)}function Y(n,e,t,f,s={},o=!1){e||(e={});for(const l in s)if(!(l in e)){if(l==="children")continue;s[l]=T(n,l,null,s[l],t,o,e)}for(const l in e){if(l==="children")continue;const i=e[l];s[l]=T(n,l,i,s[l],t,o,e)}}function p(n){let e,t;return!y()||!(e=a.sharedConfig.registry.get(t=Z()))?n():(a.sharedConfig.completed&&a.sharedConfig.completed.add(e),a.sharedConfig.registry.delete(t),e)}function y(n){return!!a.sharedConfig.context&&!a.sharedConfig.done&&(!n||n.isConnected)}function Q(n){return n.toLowerCase().replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}function N(n,e,t){const f=e.trim().split(/\s+/);for(let s=0,o=f.length;s<o;s++)n.classList.toggle(f[s],t)}function T(n,e,t,f,s,o,l){let i,c,r,u,h;if(e==="style")return X(n,t,f);if(e==="classList")return q(n,t,f);if(t===f)return f;if(e==="ref")o||t(n);else if(e.slice(0,3)==="on:"){const d=e.slice(3);f&&n.removeEventListener(d,f,typeof f!="function"&&f),t&&n.addEventListener(d,t,typeof t!="function"&&t)}else if(e.slice(0,10)==="oncapture:"){const d=e.slice(10);f&&n.removeEventListener(d,f,!0),t&&n.addEventListener(d,t,!0)}else if(e.slice(0,2)==="on"){const d=e.slice(2).toLowerCase(),g=I.has(d);if(!g&&f){const w=Array.isArray(f)?f[0]:f;n.removeEventListener(d,w)}(g||t)&&(K(n,d,t,g),g&&x([d]))}else if(e.slice(0,5)==="attr:")A(n,e.slice(5),t);else if(e.slice(0,5)==="bool:")H(n,e.slice(5),t);else if((h=e.slice(0,5)==="prop:")||(r=k.has(e))||!s&&((u=B(e,n.tagName))||(c=P.has(e)))||(i=n.nodeName.includes("-")||"is"in l)){if(h)e=e.slice(5),c=!0;else if(y(n))return t;e==="class"||e==="className"?U(n,t):i&&!c&&!r?n[Q(e)]=t:n[u||e]=t}else{const d=s&&e.indexOf(":")>-1&&G[e.split(":")[0]];d?F(n,d,e,t):A(n,O[e]||e,t)}return t}function W(n){if(a.sharedConfig.registry&&a.sharedConfig.events&&a.sharedConfig.events.find(([c,r])=>r===n))return;let e=n.target;const t=`$$${n.type}`,f=n.target,s=n.currentTarget,o=c=>Object.defineProperty(n,"target",{configurable:!0,value:c}),l=()=>{const c=e[t];if(c&&!e.disabled){const r=e[`${t}Data`];if(r!==void 0?c.call(e,r,n):c.call(e,n),n.cancelBubble)return}return e.host&&typeof e.host!="string"&&!e.host._$host&&e.contains(n.target)&&o(e.host),!0},i=()=>{for(;l()&&(e=e._$host||e.parentNode||e.host););};if(Object.defineProperty(n,"currentTarget",{configurable:!0,get(){return e||document}}),a.sharedConfig.registry&&!a.sharedConfig.done&&(a.sharedConfig.done=_$HY.done=!0),n.composedPath){const c=n.composedPath();o(c[0]);for(let r=0;r<c.length-2&&(e=c[r],!!l());r++){if(e._$host){e=e._$host,i();break}if(e.parentNode===s)break}}else i();o(f)}function m(n,e,t,f,s){const o=y(n);if(o){!t&&(t=[...n.childNodes]);let i=[];for(let c=0;c<t.length;c++){const r=t[c];r.nodeType===8&&r.data.slice(0,2)==="!$"?r.remove():i.push(r)}t=i}for(;typeof t=="function";)t=t();if(e===t)return t;const l=typeof e;if(n=n,l==="string"||l==="number"){if(o||l==="number"&&(e=e.toString(),e===t))return t;t!==""&&typeof t=="string"?t=n.firstChild.data=e:t=n.textContent=e}else if(e==null||l==="boolean"){if(o)return t;t=C(n,t,f)}else{if(l==="function")return a.createRenderEffect(()=>{let i=e();for(;typeof i=="function";)i=i();t=m(n,i,t,f)}),()=>t;if(Array.isArray(e)){const i=[],c=t&&Array.isArray(t);if(E(i,e,t,s))return a.createRenderEffect(()=>t=m(n,i,t,f,!0)),()=>t;if(o)return i.length?t=[...n.childNodes]:t;i.length===0?t=C(n,t,f):c?t.length===0?$(n,i,f):V(n,t,i):(t&&C(n),$(n,i)),t=i}else if(e.nodeType){if(o&&e.parentNode)return t=e;Array.isArray(t)?C(n,t,null,e):t==null||t===""||!n.firstChild?n.appendChild(e):n.replaceChild(e,n.firstChild),t=e}}return t}function E(n,e,t,f){let s=!1;for(let o=0,l=e.length;o<l;o++){let i=e[o],c=t&&t[n.length],r;if(!(i==null||i===!0||i===!1))if((r=typeof i)=="object"&&i.nodeType)n.push(i);else if(Array.isArray(i))s=E(n,i,c)||s;else if(r==="function")if(f){for(;typeof i=="function";)i=i();s=E(n,Array.isArray(i)?i:[i],Array.isArray(c)?c:[c])||s}else n.push(i),s=!0;else{const u=String(i);c&&c.nodeType===3&&c.data===u?n.push(c):n.push(document.createTextNode(u))}}return s}function $(n,e,t=null){for(let f=0,s=e.length;f<s;f++)n.insertBefore(e[f],t)}function C(n,e,t,f){if(t===void 0)return n.textContent="";const s=f||document.createTextNode("");if(e.length){let o=!1;for(let l=e.length-1;l>=0;l--){const i=e[l];if(s!==i){const c=i.parentNode===n;!o&&!l?c?n.replaceChild(s,i):n.insertBefore(s,t):c&&i.remove()}else o=!0}}else n.insertBefore(s,t);return[s]}function Z(){return a.sharedConfig.getNextContextId()}const z="http://www.w3.org/2000/svg";function v(n,e=!1){return e?document.createElementNS(z,n):document.createElement(n)}function ee(n,e){const t=a.createMemo(n);return a.createMemo(()=>{const f=t();switch(typeof f){case"function":return a.untrack(()=>f(e));case"string":const s=j.has(f),o=a.sharedConfig.context?p():v(f,s);return S(o,e,s),o}})}function te(n){const[,e]=a.splitProps(n,["component"]);return ee(()=>n.component,e)}exports.Dynamic=te;exports.delegateEvents=x;exports.insert=J;exports.memo=R;exports.spread=S;exports.template=_;exports.use=L;
|