aptechka 0.1.10 → 0.1.12
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/lib/abstract-elements/index.cjs +1 -1
- package/lib/abstract-elements/index.js +1 -1
- package/lib/canvas/index.cjs +1 -1
- package/lib/canvas/index.d.ts +6 -5
- package/lib/canvas/index.js +47 -43
- package/lib/component/Component.d.ts +9 -12
- package/lib/component/index.cjs +1 -1
- package/lib/component/index.js +137 -141
- package/lib/{createStylesheet-BoJwXvjE.cjs → createStylesheet-DTOK6fTn.cjs} +1 -1
- package/lib/{createStylesheet-DSgkNlUZ.js → createStylesheet-Zqf3lXhM.js} +1 -1
- package/lib/{createTheme-COo8IzPG.cjs → createTheme-B_W5dUY9.cjs} +1 -1
- package/lib/{createTheme-BMH9cRrS.js → createTheme-D0IoYkYN.js} +1 -1
- package/lib/element-constructor/index.cjs +1 -1
- package/lib/element-constructor/index.js +3 -3
- package/lib/{index-Cv4y7_7y.cjs → index-3G1lTMEf.cjs} +1 -1
- package/lib/{index-228VqUsZ.js → index-BWTXnG5n.js} +2 -2
- package/lib/modal/index.cjs +1 -1
- package/lib/modal/index.js +2 -2
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +2 -2
- package/lib/select/index.cjs +1 -1
- package/lib/select/index.js +1 -1
- package/lib/string-3lAkpJJP.js +51 -0
- package/lib/string-vBu90jhV.cjs +1 -0
- package/lib/studio/index.cjs +1 -1
- package/lib/studio/index.js +3 -3
- package/lib/tags-75InVOh4.cjs +1 -0
- package/lib/{tags-kZqsS_nJ.js → tags-DgRVzazL.js} +141 -139
- package/lib/theme/index.cjs +1 -1
- package/lib/theme/index.js +2 -2
- package/lib/utils/cssom.d.ts +5 -0
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.d.ts +2 -1
- package/lib/utils/index.js +100 -87
- package/lib/utils/string.d.ts +1 -0
- package/package.json +1 -1
- package/lib/string-BrDhnNUL.js +0 -39
- package/lib/string-DzUwFYSS.cjs +0 -1
- package/lib/tags-920hsh9U.cjs +0 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var ln = Object.defineProperty, dn = Object.defineProperties;
|
|
2
|
+
var wn = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Q = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var X = (n, e, s) => e in n ?
|
|
4
|
+
var hn = Object.prototype.hasOwnProperty, mn = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var X = (n, e, s) => e in n ? ln(n, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : n[e] = s, V = (n, e) => {
|
|
6
6
|
for (var s in e || (e = {}))
|
|
7
|
-
|
|
7
|
+
hn.call(e, s) && X(n, s, e[s]);
|
|
8
8
|
if (Q)
|
|
9
9
|
for (var s of Q(e))
|
|
10
|
-
|
|
10
|
+
mn.call(e, s) && X(n, s, e[s]);
|
|
11
11
|
return n;
|
|
12
|
-
}, Z = (n, e) =>
|
|
12
|
+
}, Z = (n, e) => dn(n, wn(e));
|
|
13
13
|
var W = (n, e, s) => {
|
|
14
14
|
if (!e.has(n))
|
|
15
15
|
throw TypeError("Cannot " + s);
|
|
@@ -18,11 +18,11 @@ var a = (n, e, s) => (W(n, e, "read from private field"), s ? s.call(n) : e.get(
|
|
|
18
18
|
if (e.has(n))
|
|
19
19
|
throw TypeError("Cannot add the same private member more than once");
|
|
20
20
|
e instanceof WeakSet ? e.add(n) : e.set(n, s);
|
|
21
|
-
}, _ = (n, e, s,
|
|
21
|
+
}, _ = (n, e, s, i) => (W(n, e, "write to private field"), i ? i.call(n, s) : e.set(n, s), s);
|
|
22
22
|
var u = (n, e, s) => (W(n, e, "access private method"), s);
|
|
23
|
-
import { S as
|
|
24
|
-
import { i as
|
|
25
|
-
import { c as O } from "./string-
|
|
23
|
+
import { S as h } from "./Store-JOKrNVEr.js";
|
|
24
|
+
import { i as pn } from "./browser-0zX67oeU.js";
|
|
25
|
+
import { c as O, u as gn } from "./string-3lAkpJJP.js";
|
|
26
26
|
import { connector as bn } from "./connector/index.js";
|
|
27
27
|
const yn = /* @__PURE__ */ new Set([
|
|
28
28
|
// 'a', 'style', 'title', 'script',
|
|
@@ -88,11 +88,11 @@ const yn = /* @__PURE__ */ new Set([
|
|
|
88
88
|
"tspan",
|
|
89
89
|
"view"
|
|
90
90
|
]);
|
|
91
|
-
var c,
|
|
91
|
+
var c, w, d, N, j, C, nn, k, en, g, $, x, tn, A, sn, M, rn, D, an, b, z, y, J, F, on, H, un, S, Y, p, T, E, I, q, fn, P, cn, v, K, L, U, B, G;
|
|
92
92
|
const R = class R {
|
|
93
93
|
constructor(...e) {
|
|
94
|
-
f(this, C);
|
|
95
94
|
f(this, N);
|
|
95
|
+
f(this, C);
|
|
96
96
|
f(this, k);
|
|
97
97
|
f(this, g);
|
|
98
98
|
f(this, x);
|
|
@@ -108,59 +108,59 @@ const R = class R {
|
|
|
108
108
|
f(this, E);
|
|
109
109
|
f(this, q);
|
|
110
110
|
f(this, P);
|
|
111
|
-
f(this, L);
|
|
112
111
|
f(this, v);
|
|
112
|
+
f(this, L);
|
|
113
113
|
f(this, c, void 0);
|
|
114
|
-
f(this,
|
|
114
|
+
f(this, w, /* @__PURE__ */ new Set());
|
|
115
115
|
f(this, d, /* @__PURE__ */ new Set());
|
|
116
116
|
f(this, B, () => {
|
|
117
|
-
a(this,
|
|
117
|
+
a(this, w).forEach((e) => {
|
|
118
118
|
e();
|
|
119
|
-
}), a(this,
|
|
119
|
+
}), a(this, w).clear();
|
|
120
120
|
});
|
|
121
121
|
f(this, G, (e) => {
|
|
122
122
|
a(this, d).forEach((s) => {
|
|
123
123
|
s(e);
|
|
124
124
|
}), a(this, d).clear();
|
|
125
125
|
});
|
|
126
|
-
const s = e[0],
|
|
127
|
-
_(this, c, u(this,
|
|
126
|
+
const s = e[0], i = e[1];
|
|
127
|
+
_(this, c, u(this, N, j).call(this, s, i == null ? void 0 : i.forceSvg)), u(this, k, en).call(this, i);
|
|
128
128
|
}
|
|
129
129
|
get node() {
|
|
130
130
|
return a(this, c);
|
|
131
131
|
}
|
|
132
132
|
};
|
|
133
|
-
c = new WeakMap(),
|
|
134
|
-
let
|
|
133
|
+
c = new WeakMap(), w = new WeakMap(), d = new WeakMap(), N = new WeakSet(), j = function(e, s) {
|
|
134
|
+
let i = null;
|
|
135
135
|
if (e instanceof Node)
|
|
136
|
-
|
|
136
|
+
i = e;
|
|
137
137
|
else if (typeof e == "string")
|
|
138
138
|
if (!e.includes("<") && e.includes("-"))
|
|
139
|
-
|
|
139
|
+
i = new (customElements.get(e))();
|
|
140
140
|
else if (e.includes("<")) {
|
|
141
|
-
const
|
|
142
|
-
|
|
141
|
+
const r = document.createElement("div");
|
|
142
|
+
r.innerHTML = e, i = r.firstElementChild;
|
|
143
143
|
} else
|
|
144
|
-
yn.has(e) || s ?
|
|
144
|
+
yn.has(e) || s ? i = document.createElementNS(
|
|
145
145
|
"http://www.w3.org/2000/svg",
|
|
146
146
|
e
|
|
147
|
-
) :
|
|
147
|
+
) : i = document.createElement(e);
|
|
148
148
|
else
|
|
149
|
-
|
|
150
|
-
return
|
|
151
|
-
},
|
|
149
|
+
i = document.createElement("div");
|
|
150
|
+
return i;
|
|
151
|
+
}, C = new WeakSet(), nn = function(e) {
|
|
152
152
|
return e instanceof HTMLElement || e instanceof SVGElement;
|
|
153
153
|
}, k = new WeakSet(), en = function(e) {
|
|
154
154
|
if (!e)
|
|
155
155
|
return;
|
|
156
|
-
const s = u(this,
|
|
157
|
-
delete e.ref, e != null && e.onConnect && (a(this,
|
|
158
|
-
let
|
|
156
|
+
const s = u(this, C, nn).call(this, a(this, c)), i = e.ref;
|
|
157
|
+
delete e.ref, e != null && e.onConnect && (a(this, w).add(e.onConnect), delete e.onConnect), e != null && e.onDisconnect && (a(this, d).add(e.onDisconnect), delete e.onDisconnect);
|
|
158
|
+
let r, o;
|
|
159
159
|
for (const l in e) {
|
|
160
|
-
const
|
|
161
|
-
l === "class" && s ? u(this, g, $).call(this,
|
|
160
|
+
const m = e[l];
|
|
161
|
+
l === "class" && s ? u(this, g, $).call(this, m) : l === "style" && s ? u(this, M, rn).call(this, m) : l === "lightChildren" ? u(this, p, T).call(this, a(this, c), m) : l === "children" ? u(this, p, T).call(this, a(this, c) instanceof Element ? a(this, c).shadowRoot || a(this, c) : a(this, c), m) : l.startsWith("on") ? (o || (o = {}), o[l] = m) : (r || (r = {}), r[l] = m);
|
|
162
162
|
}
|
|
163
|
-
if (u(this, H, un).call(this,
|
|
163
|
+
if (u(this, H, un).call(this, r), u(this, F, on).call(this, o), i && (typeof i == "function" ? i(a(this, c)) : i.current = a(this, c)), pn && (a(this, d).size || a(this, w).size)) {
|
|
164
164
|
const l = a(this, c) instanceof DocumentFragment ? a(this, c).firstChild : a(this, c);
|
|
165
165
|
bn.subscribe(l, {
|
|
166
166
|
connectCallback: a(this, B),
|
|
@@ -175,76 +175,78 @@ c = new WeakMap(), h = new WeakMap(), d = new WeakMap(), C = new WeakSet(), j =
|
|
|
175
175
|
if (typeof e == "string")
|
|
176
176
|
s.classList.add(e);
|
|
177
177
|
else if (Array.isArray(e))
|
|
178
|
-
e.forEach((
|
|
179
|
-
u(this, g, $).call(this,
|
|
178
|
+
e.forEach((i) => {
|
|
179
|
+
u(this, g, $).call(this, i);
|
|
180
180
|
});
|
|
181
181
|
else if (typeof e == "object")
|
|
182
|
-
if (e instanceof
|
|
182
|
+
if (e instanceof h)
|
|
183
183
|
u(this, x, tn).call(this, e);
|
|
184
184
|
else
|
|
185
|
-
for (const
|
|
186
|
-
const
|
|
187
|
-
|
|
185
|
+
for (const i in e) {
|
|
186
|
+
const r = e[i];
|
|
187
|
+
r instanceof h ? u(this, A, sn).call(this, i, r) : r ? s.classList.add(i) : s.classList.remove(i);
|
|
188
188
|
}
|
|
189
189
|
} else
|
|
190
190
|
return;
|
|
191
191
|
}, x = new WeakSet(), tn = function(e) {
|
|
192
192
|
const s = a(this, c);
|
|
193
193
|
a(this, d).add(
|
|
194
|
-
e.subscribe(({ current:
|
|
195
|
-
|
|
194
|
+
e.subscribe(({ current: i, previous: r }) => {
|
|
195
|
+
r && [r].flat().forEach((o) => {
|
|
196
196
|
o && s.classList.remove(o);
|
|
197
|
-
}),
|
|
197
|
+
}), i && [i].flat().forEach((o) => {
|
|
198
198
|
o && s.classList.add(o);
|
|
199
199
|
});
|
|
200
200
|
})
|
|
201
201
|
);
|
|
202
202
|
}, A = new WeakSet(), sn = function(e, s) {
|
|
203
|
-
const
|
|
203
|
+
const i = a(this, c);
|
|
204
204
|
a(this, d).add(
|
|
205
|
-
s.subscribe(({ current:
|
|
206
|
-
|
|
205
|
+
s.subscribe(({ current: r }) => {
|
|
206
|
+
r ? i.classList.add(e) : i.classList.remove(e);
|
|
207
207
|
})
|
|
208
208
|
);
|
|
209
209
|
}, M = new WeakSet(), rn = function(e) {
|
|
210
210
|
if (!e)
|
|
211
211
|
return;
|
|
212
212
|
const s = a(this, c);
|
|
213
|
-
s.tagName === "style" || s.tagName === "STYLE" ? u(this, b,
|
|
213
|
+
s.tagName === "style" || s.tagName === "STYLE" ? u(this, b, z).call(this, e) : u(this, D, an).call(this, e);
|
|
214
214
|
}, D = new WeakSet(), an = function(e) {
|
|
215
215
|
for (const s in e) {
|
|
216
|
-
const
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
u(this, y,
|
|
216
|
+
const i = s, r = e[i];
|
|
217
|
+
r instanceof h ? a(this, d).add(
|
|
218
|
+
r.subscribe(({ current: o }) => {
|
|
219
|
+
u(this, y, J).call(this, i, o);
|
|
220
220
|
})
|
|
221
|
-
) : u(this, y,
|
|
221
|
+
) : u(this, y, J).call(this, i, r);
|
|
222
222
|
}
|
|
223
|
-
}, b = new WeakSet(),
|
|
223
|
+
}, b = new WeakSet(), z = function(e) {
|
|
224
224
|
const s = a(this, c);
|
|
225
|
-
for (const
|
|
226
|
-
const
|
|
227
|
-
if (typeof
|
|
228
|
-
s.appendChild(new Text(`${
|
|
229
|
-
else if (
|
|
225
|
+
for (const i in e) {
|
|
226
|
+
const r = e[i];
|
|
227
|
+
if (typeof r == "object" && !(r instanceof h))
|
|
228
|
+
s.appendChild(new Text(`${i} {`)), u(this, b, z).call(this, r), s.appendChild(new Text("}"));
|
|
229
|
+
else if (r instanceof h) {
|
|
230
230
|
const o = new Text();
|
|
231
231
|
a(this, d).add(
|
|
232
|
-
|
|
233
|
-
l.current ? o.nodeValue = `${O(
|
|
232
|
+
r.subscribe((l) => {
|
|
233
|
+
l.current ? o.nodeValue = `${O(i)}: ${l.current};` : o.nodeValue = "";
|
|
234
234
|
})
|
|
235
235
|
), s.appendChild(o);
|
|
236
236
|
} else
|
|
237
|
-
s.appendChild(new Text(`${O(
|
|
237
|
+
s.appendChild(new Text(`${O(i)}: ${r};`));
|
|
238
238
|
}
|
|
239
|
-
}, y = new WeakSet(),
|
|
240
|
-
const
|
|
241
|
-
e.includes("--") ? s ?
|
|
239
|
+
}, y = new WeakSet(), J = function(e, s) {
|
|
240
|
+
const i = a(this, c);
|
|
241
|
+
e.includes("--") ? s ? i.style.setProperty(e, s) : i.style.removeProperty(e) : s ? i.style[e] = s : i.style[e] = "";
|
|
242
242
|
}, F = new WeakSet(), on = function(e) {
|
|
243
243
|
if (!e)
|
|
244
244
|
return;
|
|
245
245
|
const s = a(this, c);
|
|
246
|
-
for (const
|
|
247
|
-
const
|
|
246
|
+
for (const i in e) {
|
|
247
|
+
const r = i, o = gn(
|
|
248
|
+
r.split("on").slice(1).join("on")
|
|
249
|
+
), l = e[r];
|
|
248
250
|
typeof l == "object" ? s.addEventListener(
|
|
249
251
|
o,
|
|
250
252
|
l.callback,
|
|
@@ -253,75 +255,75 @@ c = new WeakMap(), h = new WeakMap(), d = new WeakMap(), C = new WeakSet(), j =
|
|
|
253
255
|
}
|
|
254
256
|
}, H = new WeakSet(), un = function(e) {
|
|
255
257
|
for (const s in e) {
|
|
256
|
-
const
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
u(this, S, Y).call(this, s,
|
|
258
|
+
const i = e[s];
|
|
259
|
+
i instanceof h ? a(this, d).add(
|
|
260
|
+
i.subscribe(({ current: r }) => {
|
|
261
|
+
u(this, S, Y).call(this, s, r);
|
|
260
262
|
})
|
|
261
|
-
) : u(this, S, Y).call(this, s,
|
|
263
|
+
) : u(this, S, Y).call(this, s, i);
|
|
262
264
|
}
|
|
263
265
|
}, S = new WeakSet(), Y = function(e, s) {
|
|
264
|
-
var
|
|
265
|
-
const
|
|
266
|
-
e in
|
|
266
|
+
var r, o;
|
|
267
|
+
const i = a(this, c);
|
|
268
|
+
e in i && !((o = (r = i.constructor) == null ? void 0 : r.observedAttributes) != null && o.includes(e)) ? s != null && (i[e] = s.toString()) : s != null && i.setAttribute(e, s.toString());
|
|
267
269
|
}, p = new WeakSet(), T = function(e, s) {
|
|
268
|
-
s && (s = [s].flat(), s.forEach((
|
|
269
|
-
if (
|
|
270
|
-
const
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
u(this, P, cn).call(this,
|
|
270
|
+
s && (s = [s].flat(), s.forEach((i) => {
|
|
271
|
+
if (i instanceof h) {
|
|
272
|
+
const r = document.createElement("div");
|
|
273
|
+
r.style.display = "contents", e.appendChild(r), a(this, d).add(
|
|
274
|
+
i.subscribe(({ current: o }) => {
|
|
275
|
+
u(this, P, cn).call(this, r, u(this, q, fn).call(this, o), Array.from(r.childNodes));
|
|
274
276
|
})
|
|
275
277
|
);
|
|
276
|
-
} else if (
|
|
277
|
-
u(this, E, I).call(this, e,
|
|
278
|
-
else if (
|
|
279
|
-
u(this, p, T).call(this, e,
|
|
278
|
+
} else if (i instanceof R)
|
|
279
|
+
u(this, E, I).call(this, e, i.node);
|
|
280
|
+
else if (i instanceof Function)
|
|
281
|
+
u(this, p, T).call(this, e, i());
|
|
280
282
|
else {
|
|
281
|
-
const
|
|
282
|
-
|
|
283
|
+
const r = u(this, L, U).call(this, i);
|
|
284
|
+
r instanceof Node && u(this, E, I).call(this, e, r);
|
|
283
285
|
}
|
|
284
286
|
}));
|
|
285
287
|
}, E = new WeakSet(), I = function(e, s) {
|
|
286
|
-
!(e instanceof ShadowRoot) && s instanceof HTMLElement && s.tagName === "STYLE" ? (a(this,
|
|
287
|
-
[...document.head.querySelectorAll("style")].find((
|
|
288
|
+
!(e instanceof ShadowRoot) && s instanceof HTMLElement && s.tagName === "STYLE" ? (a(this, w).add(() => {
|
|
289
|
+
[...document.head.querySelectorAll("style")].find((r) => r.outerHTML === s.outerHTML) || document.head.appendChild(s);
|
|
288
290
|
}), a(this, d).add(() => {
|
|
289
291
|
s.remove();
|
|
290
292
|
})) : e.appendChild(s);
|
|
291
293
|
}, q = new WeakSet(), fn = function(e) {
|
|
292
|
-
return [e].flat().map((
|
|
293
|
-
}, P = new WeakSet(), cn = function(e, s,
|
|
294
|
-
|
|
295
|
-
s.find((o) => u(this,
|
|
296
|
-
}),
|
|
294
|
+
return [e].flat().map((i) => i instanceof R ? i.node : u(this, L, U).call(this, i)).flat().filter(Boolean);
|
|
295
|
+
}, P = new WeakSet(), cn = function(e, s, i) {
|
|
296
|
+
i.length > s.length && i.forEach((r) => {
|
|
297
|
+
s.find((o) => u(this, v, K).call(this, r, o)) || (e.removeChild(r), i = i.filter((o) => o !== r));
|
|
298
|
+
}), i.forEach((r, o) => {
|
|
297
299
|
if (o < s.length) {
|
|
298
300
|
const l = s[o];
|
|
299
|
-
u(this,
|
|
301
|
+
u(this, v, K).call(this, r, l) || e.replaceChild(l, r);
|
|
300
302
|
} else
|
|
301
|
-
e.removeChild(
|
|
303
|
+
e.removeChild(r);
|
|
302
304
|
});
|
|
303
|
-
for (let
|
|
304
|
-
e.appendChild(s[
|
|
305
|
-
},
|
|
305
|
+
for (let r = i.length; r < s.length; r++)
|
|
306
|
+
e.appendChild(s[r]);
|
|
307
|
+
}, v = new WeakSet(), K = function(e, s) {
|
|
306
308
|
return s ? s instanceof Node ? e.isEqualNode(s) : e.textContent === s.toString() : !1;
|
|
307
|
-
},
|
|
309
|
+
}, L = new WeakSet(), U = function(e) {
|
|
308
310
|
if (e instanceof Node)
|
|
309
311
|
return e;
|
|
310
312
|
if (e != null) {
|
|
311
313
|
const s = String(e);
|
|
312
314
|
if (s.trim().startsWith("<") && s.trim().endsWith(">")) {
|
|
313
|
-
const
|
|
314
|
-
return
|
|
315
|
+
const i = document.createElement("div");
|
|
316
|
+
return i.innerHTML = s, i.firstElementChild;
|
|
315
317
|
} else
|
|
316
318
|
return new Text(s);
|
|
317
319
|
} else
|
|
318
320
|
return;
|
|
319
321
|
}, B = new WeakMap(), G = new WeakMap();
|
|
320
322
|
let t = R;
|
|
321
|
-
function
|
|
323
|
+
function Nn(...n) {
|
|
322
324
|
return new t(...n);
|
|
323
325
|
}
|
|
324
|
-
function
|
|
326
|
+
function Cn(n) {
|
|
325
327
|
return new t("a", n);
|
|
326
328
|
}
|
|
327
329
|
function kn(n) {
|
|
@@ -369,10 +371,10 @@ function Wn(n) {
|
|
|
369
371
|
function $n(n) {
|
|
370
372
|
return new t("canvas", n);
|
|
371
373
|
}
|
|
372
|
-
function
|
|
374
|
+
function zn(n) {
|
|
373
375
|
return new t("caption", n);
|
|
374
376
|
}
|
|
375
|
-
function
|
|
377
|
+
function Jn(n) {
|
|
376
378
|
return new t("cite", n);
|
|
377
379
|
}
|
|
378
380
|
function Yn(n) {
|
|
@@ -417,10 +419,10 @@ function te(n) {
|
|
|
417
419
|
function se(n) {
|
|
418
420
|
return new t("em", n);
|
|
419
421
|
}
|
|
420
|
-
function
|
|
422
|
+
function ie(n) {
|
|
421
423
|
return new t("embed", n);
|
|
422
424
|
}
|
|
423
|
-
function
|
|
425
|
+
function re(n) {
|
|
424
426
|
return new t("fieldset", n);
|
|
425
427
|
}
|
|
426
428
|
function ae(n) {
|
|
@@ -471,19 +473,19 @@ function Se(n) {
|
|
|
471
473
|
function Ee(n) {
|
|
472
474
|
return new t("i", n);
|
|
473
475
|
}
|
|
474
|
-
function
|
|
476
|
+
function ve(n) {
|
|
475
477
|
return new t("iframe", n);
|
|
476
478
|
}
|
|
477
|
-
function
|
|
479
|
+
function Le(n) {
|
|
478
480
|
return new t("img", n);
|
|
479
481
|
}
|
|
480
482
|
function Te(n) {
|
|
481
483
|
return new t("input", n);
|
|
482
484
|
}
|
|
483
|
-
function
|
|
485
|
+
function Ne(n) {
|
|
484
486
|
return new t("ins", n);
|
|
485
487
|
}
|
|
486
|
-
function
|
|
488
|
+
function Ce(n) {
|
|
487
489
|
return new t("kbd", n);
|
|
488
490
|
}
|
|
489
491
|
function ke(n) {
|
|
@@ -531,10 +533,10 @@ function We(n) {
|
|
|
531
533
|
function $e(n) {
|
|
532
534
|
return new t("optgroup", n);
|
|
533
535
|
}
|
|
534
|
-
function
|
|
536
|
+
function ze(n) {
|
|
535
537
|
return new t("option", n);
|
|
536
538
|
}
|
|
537
|
-
function
|
|
539
|
+
function Je(n) {
|
|
538
540
|
return new t("output", n);
|
|
539
541
|
}
|
|
540
542
|
function Ye(n) {
|
|
@@ -579,10 +581,10 @@ function tt(n) {
|
|
|
579
581
|
function st(n) {
|
|
580
582
|
return new t("select", n);
|
|
581
583
|
}
|
|
582
|
-
function
|
|
584
|
+
function it(n) {
|
|
583
585
|
return new t("slot", n);
|
|
584
586
|
}
|
|
585
|
-
function
|
|
587
|
+
function rt(n) {
|
|
586
588
|
return new t("small", n);
|
|
587
589
|
}
|
|
588
590
|
function at(n) {
|
|
@@ -635,19 +637,19 @@ function St(n) {
|
|
|
635
637
|
function Et(n) {
|
|
636
638
|
return new t("time", n);
|
|
637
639
|
}
|
|
638
|
-
function
|
|
640
|
+
function vt(n) {
|
|
639
641
|
return new t("title", n);
|
|
640
642
|
}
|
|
641
|
-
function
|
|
643
|
+
function Lt(n) {
|
|
642
644
|
return new t("tr", n);
|
|
643
645
|
}
|
|
644
646
|
function Tt(n) {
|
|
645
647
|
return new t("track", n);
|
|
646
648
|
}
|
|
647
|
-
function
|
|
649
|
+
function Nt(n) {
|
|
648
650
|
return new t("u", n);
|
|
649
651
|
}
|
|
650
|
-
function
|
|
652
|
+
function Ct(n) {
|
|
651
653
|
return new t("ul", n);
|
|
652
654
|
}
|
|
653
655
|
function kt(n) {
|
|
@@ -673,7 +675,7 @@ function Ft(n) {
|
|
|
673
675
|
}));
|
|
674
676
|
}
|
|
675
677
|
export {
|
|
676
|
-
|
|
678
|
+
Le as $,
|
|
677
679
|
_n as A,
|
|
678
680
|
On as B,
|
|
679
681
|
jn as C,
|
|
@@ -682,8 +684,8 @@ export {
|
|
|
682
684
|
ee as F,
|
|
683
685
|
te as G,
|
|
684
686
|
se as H,
|
|
685
|
-
|
|
686
|
-
|
|
687
|
+
ie as I,
|
|
688
|
+
re as J,
|
|
687
689
|
ae as K,
|
|
688
690
|
oe as L,
|
|
689
691
|
ue as M,
|
|
@@ -700,11 +702,11 @@ export {
|
|
|
700
702
|
ye as X,
|
|
701
703
|
Se as Y,
|
|
702
704
|
Ee as Z,
|
|
703
|
-
|
|
704
|
-
|
|
705
|
+
ve as _,
|
|
706
|
+
Cn as a,
|
|
705
707
|
Te as a0,
|
|
706
|
-
|
|
707
|
-
|
|
708
|
+
Ne as a1,
|
|
709
|
+
Ce as a2,
|
|
708
710
|
ke as a3,
|
|
709
711
|
xe as a4,
|
|
710
712
|
Ae as a5,
|
|
@@ -728,11 +730,11 @@ export {
|
|
|
728
730
|
yt as aN,
|
|
729
731
|
St as aO,
|
|
730
732
|
Et as aP,
|
|
731
|
-
|
|
732
|
-
|
|
733
|
+
vt as aQ,
|
|
734
|
+
Lt as aR,
|
|
733
735
|
Tt as aS,
|
|
734
|
-
|
|
735
|
-
|
|
736
|
+
Nt as aT,
|
|
737
|
+
Ct as aU,
|
|
736
738
|
kt as aV,
|
|
737
739
|
xt as aW,
|
|
738
740
|
At as aX,
|
|
@@ -747,8 +749,8 @@ export {
|
|
|
747
749
|
Ve as af,
|
|
748
750
|
We as ag,
|
|
749
751
|
$e as ah,
|
|
750
|
-
|
|
751
|
-
|
|
752
|
+
ze as ai,
|
|
753
|
+
Je as aj,
|
|
752
754
|
Ye as ak,
|
|
753
755
|
Ie as al,
|
|
754
756
|
Ke as am,
|
|
@@ -763,12 +765,12 @@ export {
|
|
|
763
765
|
et as av,
|
|
764
766
|
tt as aw,
|
|
765
767
|
st as ax,
|
|
766
|
-
|
|
767
|
-
|
|
768
|
+
it as ay,
|
|
769
|
+
rt as az,
|
|
768
770
|
kn as b,
|
|
769
771
|
xn as c,
|
|
770
772
|
An as d,
|
|
771
|
-
|
|
773
|
+
Nn as e,
|
|
772
774
|
Mn as f,
|
|
773
775
|
Dn as g,
|
|
774
776
|
Fn as h,
|
|
@@ -781,8 +783,8 @@ export {
|
|
|
781
783
|
Vn as o,
|
|
782
784
|
Wn as p,
|
|
783
785
|
$n as q,
|
|
784
|
-
|
|
785
|
-
|
|
786
|
+
zn as r,
|
|
787
|
+
Jn as s,
|
|
786
788
|
Yn as t,
|
|
787
789
|
In as u,
|
|
788
790
|
Kn as v,
|
package/lib/theme/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../Store-D0_rDIsE.cjs");const r=require("../browser-CpzFX2xg.cjs"),t=require("../tags-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../Store-D0_rDIsE.cjs");const r=require("../browser-CpzFX2xg.cjs"),t=require("../tags-75InVOh4.cjs"),a=require("../createTheme-B_W5dUY9.cjs"),e=a.createTheme({colorDark:"#1c1c1c",colorDarkAux:"#282828",colorLight:"#ffffff",colorActive:"#00E5B0",tweakerWidth:"480px",tweakerOffset:"20px",tweakerFolderHeight:"40px",heightInput:"30px",borderRadius:"12px",gapLarge:"16px",gapMedium:"12px",gapSmall:"8px",gapExtraSmall:"4px",fontSizeLarge:"20px",fontSizeMedium:"16px",fontSizeSmall:"14px",durationShort:"0.2s"},{prefix:"aptechka-"});r.isBrowser&&document.head.appendChild(t.style({":root":e.style}).node);exports.aptechkaTheme=e;
|
package/lib/theme/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../Store-JOKrNVEr.js";
|
|
2
2
|
import { i as e } from "../browser-0zX67oeU.js";
|
|
3
|
-
import { aD as r } from "../tags-
|
|
4
|
-
import { c as o } from "../createTheme-
|
|
3
|
+
import { aD as r } from "../tags-DgRVzazL.js";
|
|
4
|
+
import { c as o } from "../createTheme-D0IoYkYN.js";
|
|
5
5
|
const t = o(
|
|
6
6
|
{
|
|
7
7
|
colorDark: "#1c1c1c",
|
package/lib/utils/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../attributes-Bf2svn4j.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../attributes-Bf2svn4j.cjs"),x=require("../browser-CpzFX2xg.cjs"),p=require("../dom-qY2LdCVL.cjs"),a=require("../easings-DsS5-Kqc.cjs"),y=require("../events-Crwi8fz6.cjs"),E=require("../file-EevnUtRj.cjs"),g=require("../function-MthRj-GJ.cjs"),h=require("../layout-8ryRAMGJ.cjs"),o=require("../math-GDWEqu7y.cjs"),f=require("../number-yVpzMdbQ.cjs"),u=require("../object-C1ph624j.cjs"),l=require("../string-vBu90jhV.cjs"),O=require("../style-At6aDoqG.cjs");function I(t,e,...n){return[...t.slice(0,e),...n,...t.slice(e)]}function S(t,e){const n=t.measureText(e),i=n.actualBoundingBoxAscent+n.actualBoundingBoxDescent,s=n.width;return{height:i,width:s}}function w(t){return Math.floor(t)+.5}function Q(t,e,n,i,s,r){let m=t/e,C=n/i,c=0,d=0;return s=typeof s=="undefined"?.5:s,r=typeof r=="undefined"?.5:r,m>C?(c=i,d=i*m):(d=n,c=n/m),[(n-d)*s,(i-c)*r,d,c]}function T(t,e){return t.x<e.x+e.width&&t.x>e.x&&t.y<e.y+e.height&&t.y>e.y}function v(t,e){return Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)<e.radius}function D(t,e,n=!1){let i=t.x-e.width/2,s=e.height/2-t.y;return n&&(i=i/(e.width/2),s=s/(e.height/2)),{x:i,y:s}}function P(t,e){const n=t.x/e.x,i=t.y/e.y;return{x:n,y:i}}function q(t,e){return e=e||{x:0,y:0,width:document.documentElement.offsetWidth,height:innerHeight},{x:(t.x-e.x)/e.width*e.width,y:(t.y-e.y)/e.height*e.height}}function R(...t){const e={};return Array.from(document.styleSheets).forEach(n=>{Array.from(n.cssRules).forEach(i=>{i instanceof CSSStyleRule&&i.selectorText===":root"&&t.forEach(s=>{const r=i.styleMap.get(s);r?e[s]=r.toString():console.warn(`variable named ${s} not found`)})})}),e}function A(t){const e=window.atob(t);return decodeURIComponent(window.escape(e))}function N(t){const e=window.unescape(encodeURIComponent(t));return window.btoa(e)}exports.parseAttribute=b.parseAttribute;exports.parseAttributeValue=b.parseAttributeValue;exports.isBrowser=x.isBrowser;exports.findParentElement=p.findParentElement;exports.findScrollParentElement=p.findScrollParentElement;exports.getElement=p.getElement;exports.easeInCubic=a.easeInCubic;exports.easeInExpo=a.easeInExpo;exports.easeInOutCubic=a.easeInOutCubic;exports.easeInOutExpo=a.easeInOutExpo;exports.easeInOutQuad=a.easeInOutQuad;exports.easeInOutQuart=a.easeInOutQuart;exports.easeInOutQuint=a.easeInOutQuint;exports.easeInQuad=a.easeInQuad;exports.easeInQuart=a.easeInQuart;exports.easeInQuint=a.easeInQuint;exports.easeOutCubic=a.easeOutCubic;exports.easeOutExpo=a.easeOutExpo;exports.easeOutQuad=a.easeOutQuad;exports.easeOutQuart=a.easeOutQuart;exports.easeOutQuint=a.easeOutQuint;exports.linear=a.linear;exports.dispatchSizeChangeEvent=y.dispatchSizeChangeEvent;exports.createJSONAndSave=E.createJSONAndSave;exports.debounce=g.debounce;exports.throttle=g.throttle;exports.getCumulativeOffsetLeft=h.getCumulativeOffsetLeft;exports.getCumulativeOffsetTop=h.getCumulativeOffsetTop;exports.getCumulativePosition=h.getCumulativePosition;exports.calculateDistance=o.calculateDistance;exports.calculateDistanceWithRadius=o.calculateDistanceWithRadius;exports.clamp=o.clamp;exports.damp=o.damp;exports.lerp=o.lerp;exports.mapRange=o.mapRange;exports.round=o.round;exports.smootherstep=o.smootherstep;exports.smoothstep=o.smoothstep;exports.step=o.step;exports.preciseNumber=f.preciseNumber;exports.roundNumberTo=f.roundNumberTo;exports.cloneDeep=u.cloneDeep;exports.compareObjects=u.compareObjects;exports.isESClass=u.isESClass;exports.isNullish=u.isNullish;exports.isObject=u.isObject;exports.mergeDeep=u.mergeDeep;exports.omit=u.omit;exports.pick=u.pick;exports.camelToKebab=l.camelToKebab;exports.capitalize=l.capitalize;exports.generateId=l.generateId;exports.kebabToCamel=l.kebabToCamel;exports.snakeToDotted=l.snakeToDotted;exports.toPascalCase=l.toPascalCase;exports.uncapitalize=l.uncapitalize;exports.getElementTransitionDurationMS=O.getElementTransitionDurationMS;exports.getElementTransitionDurationS=O.getElementTransitionDurationS;exports.cover=Q;exports.decode=N;exports.dotCircleCollision=v;exports.dotRectCollision=T;exports.encode=A;exports.fixPosition=w;exports.getPointerPosition=q;exports.getRootVariables=R;exports.insert=I;exports.measureText=S;exports.normalize=P;exports.screenToCartesian=D;
|
package/lib/utils/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export { isBrowser } from './browser';
|
|
|
4
4
|
export { measureText, fixPosition, cover } from './canvas';
|
|
5
5
|
export { dotRectCollision, dotCircleCollision } from './collisions';
|
|
6
6
|
export { screenToCartesian, normalize, getPointerPosition } from './coordinates';
|
|
7
|
+
export { getRootVariables } from './cssom';
|
|
7
8
|
export { encode, decode } from './decoding';
|
|
8
9
|
export { findParentElement, getElement, findScrollParentElement, type ElementOrSelector, } from './dom';
|
|
9
10
|
export { linear, easeInQuad, easeOutQuad, easeInOutQuad, easeInCubic, easeOutCubic, easeInOutCubic, easeInQuart, easeOutQuart, easeInOutQuart, easeInQuint, easeOutQuint, easeInOutQuint, easeInExpo, easeOutExpo, easeInOutExpo, type EasingFunction, } from './easings';
|
|
@@ -14,7 +15,7 @@ export { getCumulativePosition, getCumulativeOffsetLeft, getCumulativeOffsetTop,
|
|
|
14
15
|
export { lerp, damp, step, round, clamp, mapRange, smoothstep, smootherstep, calculateDistance, calculateDistanceWithRadius, } from './math';
|
|
15
16
|
export { preciseNumber, roundNumberTo } from './number';
|
|
16
17
|
export { isObject, cloneDeep, mergeDeep, isNullish, compareObjects, pick, omit, isESClass, } from './object';
|
|
17
|
-
export { kebabToCamel, camelToKebab, snakeToDotted, toPascalCase, capitalize, generateId, } from './string';
|
|
18
|
+
export { kebabToCamel, camelToKebab, snakeToDotted, toPascalCase, capitalize, uncapitalize, generateId, } from './string';
|
|
18
19
|
export { getElementTransitionDurationMS, getElementTransitionDurationS, } from './style';
|
|
19
20
|
export type { Axes2D, Axes3D, Dot2D, Rect2D, Circle, Dot3D, Rect3D, } from './ts-shape';
|
|
20
21
|
export type { NestedKeys, NestedValueOf, DeepOmit, DeepPartial, Requiredish, WithRequired, Split, SplitFirst, Tail, KebabToCamel, CamelToKebab, } from './ts-utility';
|