@tempots/beatui 1.0.1 → 1.1.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/auth/index.cjs.js +1 -1
- package/dist/auth/index.es.js +1 -1
- package/dist/{auth-divider-MMhfmLBu.cjs → auth-divider-3t_-R0sL.cjs} +1 -1
- package/dist/{auth-divider-CbME_yVQ.js → auth-divider-Cp3xGpHr.js} +2 -2
- package/dist/beatui.css +32 -7
- package/dist/beatui.tailwind.css +32 -7
- package/dist/better-auth/index.cjs.js +1 -1
- package/dist/better-auth/index.es.js +3 -3
- package/dist/{deep-merge-EkjEgK0N.cjs → deep-merge-Bz9HHpRt.cjs} +1 -1
- package/dist/{deep-merge-BzIheQtH.js → deep-merge-Da602mAN.js} +1 -1
- package/dist/{duration-input-DGzmIImj.js → duration-input-HM1i6RRY.js} +2 -2
- package/dist/{duration-input-ClgYjeBa.cjs → duration-input-g-cQ3cs1.cjs} +1 -1
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +5394 -5251
- package/dist/json-schema/index.cjs.js +1 -1
- package/dist/json-schema/index.es.js +5 -5
- package/dist/json-structure/index.cjs.js +1 -1
- package/dist/json-structure/index.es.js +3 -3
- package/dist/notice-BNghd0oS.cjs +1 -0
- package/dist/notice-Dtz7ADVH.js +211 -0
- package/dist/prosemirror/index.cjs.js +1 -1
- package/dist/prosemirror/index.es.js +1 -1
- package/dist/text-input-DL9FvpTZ.cjs +1 -0
- package/dist/text-input-dDUEUmlC.js +57 -0
- package/dist/types/components/data/data-table-context.d.ts +4 -3
- package/dist/types/components/data/data-table-types.d.ts +31 -17
- package/dist/types/components/data/data-table.d.ts +3 -3
- package/dist/types/components/data/sortable-header.d.ts +4 -2
- package/dist/types/components/form/input/color-input.d.ts +3 -1
- package/dist/types/components/form/input/input-options.d.ts +3 -1
- package/dist/types/components/form/input/nullable-plain-date-input.d.ts +1 -0
- package/dist/types/components/form/input/nullable-plain-date-time-input.d.ts +1 -0
- package/dist/types/components/form/input/nullable-plain-time-input.d.ts +1 -0
- package/dist/types/components/form/input/nullable-plain-year-month-input.d.ts +1 -0
- package/dist/types/components/form/input/plain-date-input.d.ts +1 -0
- package/dist/types/components/form/input/plain-date-time-input.d.ts +1 -0
- package/dist/types/components/form/input/plain-time-input.d.ts +1 -0
- package/dist/types/components/form/input/plain-year-month-input.d.ts +1 -0
- package/dist/types/components/form/input/slider-input.d.ts +24 -6
- package/dist/types/components/form/input/switch.d.ts +3 -1
- package/dist/types/components/overlay/dialogs.d.ts +10 -2
- package/dist/widget-customization-DOWmUuPU.cjs +1 -0
- package/dist/{widget-customization-DEiQ_31d.js → widget-customization-YhVcA-KM.js} +210 -207
- package/package.json +1 -1
- package/dist/notice-B5wTXoTq.cjs +0 -1
- package/dist/notice-BKcyJD5w.js +0 -209
- package/dist/text-input-DfqXolVe.js +0 -55
- package/dist/text-input-X_q01NsY.cjs +0 -1
- package/dist/widget-customization-B49MeU4E.cjs +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Value as p, prop as ut, computedOf as D, html as
|
|
2
|
-
import { F as yt, N as X, T as Mt, U as It, a as $t } from "./deep-merge-
|
|
1
|
+
import { Value as p, prop as ut, computedOf as D, html as _, attr as u, svg as ot, svgAttr as J, Empty as A, on as I, When as z, Fragment as j, aria as R, emitValue as at, Use as ft, input as pt, emitValueAsNullableDate as ct, emitValueAsNullableDateTime as it, Repeat as mt, emit as bt, style as wt, emitValueAsNumber as E } from "@tempots/dom";
|
|
2
|
+
import { F as yt, N as X, T as Mt, U as It, a as $t } from "./deep-merge-Da602mAN.js";
|
|
3
3
|
import { decodeBase64 as xt } from "@tempots/std";
|
|
4
4
|
import { I as P } from "./input-container-BvEcp7FU.js";
|
|
5
|
-
import { C as
|
|
6
|
-
import { B as kt, I as
|
|
5
|
+
import { C as O, m as dt, T as _t } from "./text-input-dDUEUmlC.js";
|
|
6
|
+
import { B as kt, I as et, b as lt, a as Ft } from "./translations-B1_yyDUK.js";
|
|
7
7
|
import { AutoSelect as Ct } from "@tempots/ui";
|
|
8
|
-
import { E as Tt, P as St } from "./notice-
|
|
8
|
+
import { E as Tt, P as St } from "./notice-Dtz7ADVH.js";
|
|
9
9
|
import { s as At } from "./session-id-3KiilioY.js";
|
|
10
10
|
import { r as vt } from "./utils-vUtP6iPG.js";
|
|
11
11
|
function ht(t) {
|
|
@@ -42,7 +42,7 @@ function Dt(t) {
|
|
|
42
42
|
let e = t.startsWith("#") ? t.slice(1) : t;
|
|
43
43
|
return e.length === 3 && (e = e.split("").map((a) => a + a).join("")), `#${e.toLowerCase()}`;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function nt(t, e, a) {
|
|
46
46
|
const n = (r) => {
|
|
47
47
|
const s = Math.round(Math.max(0, Math.min(255, r))).toString(16);
|
|
48
48
|
return s.length === 1 ? "0" + s : s;
|
|
@@ -63,8 +63,8 @@ function he(t, e) {
|
|
|
63
63
|
const a = H(t), n = H(e);
|
|
64
64
|
if (!a || !n) return null;
|
|
65
65
|
const r = (l, d, h) => {
|
|
66
|
-
const [
|
|
67
|
-
return 0.2126 *
|
|
66
|
+
const [w, f, g] = [l, d, h].map((y) => (y = y / 255, y <= 0.03928 ? y / 12.92 : Math.pow((y + 0.055) / 1.055, 2.4)));
|
|
67
|
+
return 0.2126 * w + 0.7152 * f + 0.0722 * g;
|
|
68
68
|
}, s = r(a.r, a.g, a.b), o = r(n.r, n.g, n.b), c = Math.max(s, o), i = Math.min(s, o);
|
|
69
69
|
return (c + 0.05) / (i + 0.05);
|
|
70
70
|
}
|
|
@@ -76,8 +76,8 @@ function Vt(t) {
|
|
|
76
76
|
if (a) {
|
|
77
77
|
const l = a[1];
|
|
78
78
|
if (l.length === 8) {
|
|
79
|
-
const d = parseInt(l.slice(0, 2), 16), h = parseInt(l.slice(2, 4), 16),
|
|
80
|
-
return [d, h,
|
|
79
|
+
const d = parseInt(l.slice(0, 2), 16), h = parseInt(l.slice(2, 4), 16), w = parseInt(l.slice(4, 6), 16), f = parseInt(l.slice(6, 8), 16) / 255;
|
|
80
|
+
return [d, h, w, f];
|
|
81
81
|
}
|
|
82
82
|
if (l.length === 6)
|
|
83
83
|
return [
|
|
@@ -87,12 +87,12 @@ function Vt(t) {
|
|
|
87
87
|
1
|
|
88
88
|
];
|
|
89
89
|
if (l.length === 4) {
|
|
90
|
-
const d = parseInt(l[0] + l[0], 16), h = parseInt(l[1] + l[1], 16),
|
|
91
|
-
return [d, h,
|
|
90
|
+
const d = parseInt(l[0] + l[0], 16), h = parseInt(l[1] + l[1], 16), w = parseInt(l[2] + l[2], 16), f = parseInt(l[3] + l[3], 16) / 255;
|
|
91
|
+
return [d, h, w, f];
|
|
92
92
|
}
|
|
93
93
|
if (l.length === 3) {
|
|
94
|
-
const d = parseInt(l[0] + l[0], 16), h = parseInt(l[1] + l[1], 16),
|
|
95
|
-
return [d, h,
|
|
94
|
+
const d = parseInt(l[0] + l[0], 16), h = parseInt(l[1] + l[1], 16), w = parseInt(l[2] + l[2], 16);
|
|
95
|
+
return [d, h, w, 1];
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
const n = t.match(
|
|
@@ -114,22 +114,22 @@ function Vt(t) {
|
|
|
114
114
|
/^hsla?\(\s*([+-]?[\d.]+)(?:deg)?\s*[ ,]?\s*([\d.]+)%\s*[ ,]?\s*([\d.]+)%\s*(?:[/,]\s*(\d?(?:\.\d+)?))?\s*\)$/i
|
|
115
115
|
);
|
|
116
116
|
if (s) {
|
|
117
|
-
const l = parseFloat(s[1]), d = parseFloat(s[2]), h = parseFloat(s[3]),
|
|
118
|
-
return [f, g,
|
|
117
|
+
const l = parseFloat(s[1]), d = parseFloat(s[2]), h = parseFloat(s[3]), w = s[4] != null ? parseFloat(s[4]) : 1, [f, g, y] = gt(l, d / 100, h / 100);
|
|
118
|
+
return [f, g, y, w];
|
|
119
119
|
}
|
|
120
120
|
const o = t.match(
|
|
121
121
|
/^hwb\(\s*([+-]?[\d.]+)(?:deg)?\s*[, ]\s*([\d.]+)%\s*[, ]\s*([\d.]+)%\s*(?:[/]\s*(\d?(?:\.\d+)?))?\s*\)$/i
|
|
122
122
|
);
|
|
123
123
|
if (o) {
|
|
124
|
-
const l = parseFloat(o[1]), d = parseFloat(o[2]) / 100, h = parseFloat(o[3]) / 100,
|
|
125
|
-
return [f, g,
|
|
124
|
+
const l = parseFloat(o[1]), d = parseFloat(o[2]) / 100, h = parseFloat(o[3]) / 100, w = o[4] != null ? parseFloat(o[4]) : 1, [f, g, y] = Ot(l, d, h);
|
|
125
|
+
return [f, g, y, w];
|
|
126
126
|
}
|
|
127
127
|
const c = t.match(
|
|
128
128
|
/^oklch\(\s*([+-]?[\d.]+%?)\s+([\d.]+)\s+([+-]?[\d.]+)(?:deg)?(?:\s*\/\s*(\d?(?:\.\d+)?))?\s*\)$/i
|
|
129
129
|
);
|
|
130
130
|
if (c) {
|
|
131
|
-
const l = c[1], d = parseFloat(c[2]), h = parseFloat(c[3]),
|
|
132
|
-
return [g,
|
|
131
|
+
const l = c[1], d = parseFloat(c[2]), h = parseFloat(c[3]), w = c[4] != null ? parseFloat(c[4]) : 1, f = l.endsWith("%") ? Math.max(0, Math.min(1, parseFloat(l) / 100)) : Math.max(0, Math.min(1, parseFloat(l))), [g, y, F] = Ut(f, d, h);
|
|
132
|
+
return [g, y, F, w];
|
|
133
133
|
}
|
|
134
134
|
const i = H(t);
|
|
135
135
|
return i ? [i.r, i.g, i.b, 1] : [0, 0, 0, 1];
|
|
@@ -156,14 +156,14 @@ function gt(t, e, a) {
|
|
|
156
156
|
Math.round((i + s) * 255)
|
|
157
157
|
];
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function Ot(t, e, a) {
|
|
160
160
|
t = (t % 360 + 360) % 360;
|
|
161
161
|
const n = e + a;
|
|
162
162
|
n > 1 && (e /= n, a /= n);
|
|
163
163
|
const [r, s, o] = gt(t, 1, 0.5).map((h) => h / 255), c = 1 - e - a, i = r * c + e, l = s * c + e, d = o * c + e;
|
|
164
164
|
return [Math.round(i * 255), Math.round(l * 255), Math.round(d * 255)];
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function st(t, e, a) {
|
|
167
167
|
t /= 255, e /= 255, a /= 255;
|
|
168
168
|
const n = Math.max(t, e, a), r = Math.min(t, e, a);
|
|
169
169
|
let s = 0, o = 0;
|
|
@@ -183,26 +183,26 @@ function nt(t, e, a) {
|
|
|
183
183
|
}
|
|
184
184
|
return [Math.round(s), Math.round(o * 100), Math.round(c * 100)];
|
|
185
185
|
}
|
|
186
|
-
function
|
|
187
|
-
const [n] =
|
|
186
|
+
function Lt(t, e, a) {
|
|
187
|
+
const [n] = st(t, e, a), r = t / 255, s = e / 255, o = a / 255, c = Math.min(r, s, o), i = 1 - Math.max(r, s, o);
|
|
188
188
|
return [n, Math.round(c * 100), Math.round(i * 100)];
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function Z(t) {
|
|
191
191
|
const e = t / 255;
|
|
192
192
|
return e <= 0.04045 ? e / 12.92 : Math.pow((e + 0.055) / 1.055, 2.4);
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function tt(t) {
|
|
195
195
|
const e = t <= 31308e-7 ? 12.92 * t : 1.055 * Math.pow(t, 0.4166666666666667) - 0.055;
|
|
196
196
|
return Math.round(Math.max(0, Math.min(1, e)) * 255);
|
|
197
197
|
}
|
|
198
198
|
function Ut(t, e, a) {
|
|
199
|
-
const n = a * Math.PI / 180, r = Math.cos(n) * e, s = Math.sin(n) * e, o = t + 0.3963377774 * r + 0.2158037573 * s, c = t - 0.1055613458 * r - 0.0638541728 * s, i = t - 0.0894841775 * r - 1.291485548 * s, l = o * o * o, d = c * c * c, h = i * i * i,
|
|
200
|
-
return [
|
|
199
|
+
const n = a * Math.PI / 180, r = Math.cos(n) * e, s = Math.sin(n) * e, o = t + 0.3963377774 * r + 0.2158037573 * s, c = t - 0.1055613458 * r - 0.0638541728 * s, i = t - 0.0894841775 * r - 1.291485548 * s, l = o * o * o, d = c * c * c, h = i * i * i, w = 4.0767416621 * l - 3.3077115913 * d + 0.2309699292 * h, f = -1.2684380046 * l + 2.6097574011 * d - 0.3413193965 * h, g = -0.0041960863 * l - 0.7034186147 * d + 1.707614701 * h;
|
|
200
|
+
return [tt(w), tt(f), tt(g)];
|
|
201
201
|
}
|
|
202
202
|
function Wt(t, e, a) {
|
|
203
|
-
const n =
|
|
204
|
-
let
|
|
205
|
-
return
|
|
203
|
+
const n = Z(t), r = Z(e), s = Z(a), o = 0.4122214708 * n + 0.5363325363 * r + 0.0514459929 * s, c = 0.2119034982 * n + 0.6806995451 * r + 0.1073969566 * s, i = 0.0883024619 * n + 0.2817188376 * r + 0.6299787005 * s, l = Math.cbrt(o), d = Math.cbrt(c), h = Math.cbrt(i), w = 0.2104542553 * l + 0.793617785 * d - 0.0040720468 * h, f = 1.9779984951 * l - 2.428592205 * d + 0.4505937099 * h, g = 0.0259040371 * l + 0.7827717662 * d - 0.808675766 * h, y = Math.sqrt(f * f + g * g);
|
|
204
|
+
let F = Math.atan2(g, f) * 180 / Math.PI;
|
|
205
|
+
return F < 0 && (F += 360), [w, y, F];
|
|
206
206
|
}
|
|
207
207
|
function U(t, e, a, n, r, s) {
|
|
208
208
|
switch (r) {
|
|
@@ -211,26 +211,26 @@ function U(t, e, a, n, r, s) {
|
|
|
211
211
|
const o = (i) => i.toString(16).padStart(2, "0"), c = Math.max(0, Math.min(255, Math.round(n * 255)));
|
|
212
212
|
return `#${o(t)}${o(e)}${o(a)}${o(c)}`;
|
|
213
213
|
}
|
|
214
|
-
return
|
|
214
|
+
return nt(t, e, a);
|
|
215
215
|
case "rgb":
|
|
216
216
|
return `rgb(${t}, ${e}, ${a})`;
|
|
217
217
|
case "rgba":
|
|
218
218
|
return `rgba(${t}, ${e}, ${a}, ${Math.round(n * 100) / 100})`;
|
|
219
219
|
case "hsl": {
|
|
220
|
-
const [o, c, i] =
|
|
220
|
+
const [o, c, i] = st(t, e, a);
|
|
221
221
|
return `hsl(${o}, ${c}%, ${i}%)`;
|
|
222
222
|
}
|
|
223
223
|
case "hsla": {
|
|
224
|
-
const [o, c, i] =
|
|
224
|
+
const [o, c, i] = st(t, e, a);
|
|
225
225
|
return `hsla(${o}, ${c}%, ${i}%, ${Math.round(n * 100) / 100})`;
|
|
226
226
|
}
|
|
227
227
|
case "hwb": {
|
|
228
|
-
const [o, c, i] =
|
|
228
|
+
const [o, c, i] = Lt(t, e, a);
|
|
229
229
|
return n < 1 ? `hwb(${o} ${c}% ${i}% / ${Math.round(n * 100) / 100})` : `hwb(${o} ${c}% ${i}%)`;
|
|
230
230
|
}
|
|
231
231
|
case "oklch": {
|
|
232
|
-
const [o, c, i] = Wt(t, e, a), l = (Math.round(o * 1e3) / 1e3).toFixed(3), d = (Math.round(c * 1e3) / 1e3).toFixed(3), h = (Math.round(i * 10) / 10).toFixed(1),
|
|
233
|
-
return s || n < 1 ? `oklch(${l} ${d} ${h} / ${
|
|
232
|
+
const [o, c, i] = Wt(t, e, a), l = (Math.round(o * 1e3) / 1e3).toFixed(3), d = (Math.round(c * 1e3) / 1e3).toFixed(3), h = (Math.round(i * 10) / 10).toFixed(1), w = Math.round(n * 100) / 100;
|
|
233
|
+
return s || n < 1 ? `oklch(${l} ${d} ${h} / ${w})` : `oklch(${l} ${d} ${h})`;
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
236
|
}
|
|
@@ -276,17 +276,17 @@ function Yt(t) {
|
|
|
276
276
|
onChange: a,
|
|
277
277
|
onInput: n,
|
|
278
278
|
...r
|
|
279
|
-
} = t, s = /* @__PURE__ */ new Map(), o = p.toSignal(e).map((d) => d.map((h,
|
|
280
|
-
const f = s.get(h), g = Xt(h ?? ""),
|
|
279
|
+
} = t, s = /* @__PURE__ */ new Map(), o = p.toSignal(e).map((d) => d.map((h, w) => {
|
|
280
|
+
const f = s.get(h), g = Xt(h ?? ""), y = f?.type || jt(g), F = f?.name ?? `file-${w}`, T = g.buffer.slice(
|
|
281
281
|
g.byteOffset,
|
|
282
282
|
g.byteOffset + g.byteLength
|
|
283
|
-
),
|
|
284
|
-
return new File([
|
|
283
|
+
), M = new Blob([T], { type: y });
|
|
284
|
+
return new File([M], F, { type: y });
|
|
285
285
|
})), c = (d) => (h) => {
|
|
286
|
-
d && Ht(h).then((
|
|
287
|
-
for (const [f, g] of
|
|
286
|
+
d && Ht(h).then((w) => {
|
|
287
|
+
for (const [f, g] of w.entries())
|
|
288
288
|
s.set(g, { name: h[f].name, type: h[f].type });
|
|
289
|
-
d(
|
|
289
|
+
d(w);
|
|
290
290
|
});
|
|
291
291
|
}, i = c(a), l = c(n);
|
|
292
292
|
return yt({
|
|
@@ -318,16 +318,16 @@ function ge(t) {
|
|
|
318
318
|
function Gt(t, e) {
|
|
319
319
|
const [a, n, r] = t, s = a << 16 ^ n << 8 ^ r, o = Pt(s), c = 6 + Math.floor(o() * 5), i = 0.18 + o() * 0.06, l = [];
|
|
320
320
|
for (let f = 0; f < c; f++) {
|
|
321
|
-
const g = f / c * Math.PI * 2,
|
|
322
|
-
l.push({ x:
|
|
321
|
+
const g = f / c * Math.PI * 2, y = e * (1 + (o() * 2 - 1) * i), F = Math.cos(g) * y, T = Math.sin(g) * y;
|
|
322
|
+
l.push({ x: F, y: T });
|
|
323
323
|
}
|
|
324
324
|
const d = (l[0].x + l[c - 1].x) / 2, h = (l[0].y + l[c - 1].y) / 2;
|
|
325
|
-
let
|
|
325
|
+
let w = `M ${d.toFixed(3)} ${h.toFixed(3)}`;
|
|
326
326
|
for (let f = 0; f < c; f++) {
|
|
327
|
-
const g = l[f],
|
|
328
|
-
|
|
327
|
+
const g = l[f], y = l[(f + 1) % c], F = (g.x + y.x) / 2, T = (g.y + y.y) / 2;
|
|
328
|
+
w += ` Q ${g.x.toFixed(3)} ${g.y.toFixed(3)} ${F.toFixed(3)} ${T.toFixed(3)}`;
|
|
329
329
|
}
|
|
330
|
-
return
|
|
330
|
+
return w += " Z", w;
|
|
331
331
|
}
|
|
332
332
|
const fe = (t) => {
|
|
333
333
|
const {
|
|
@@ -344,32 +344,35 @@ const fe = (t) => {
|
|
|
344
344
|
md: 32,
|
|
345
345
|
lg: 40,
|
|
346
346
|
xl: 52
|
|
347
|
-
}, l = o != null ? p.map(o, (m) => Number(m)) : p.map(
|
|
347
|
+
}, l = o != null ? p.map(o, (m) => Number(m)) : p.map(
|
|
348
|
+
t.size ?? "md",
|
|
349
|
+
(m) => i[m] ?? 32
|
|
350
|
+
), d = p.map(e, (m) => Vt(m ?? "#000000")), h = p.map(
|
|
348
351
|
d,
|
|
349
|
-
([m,
|
|
350
|
-
),
|
|
352
|
+
([m, x, C]) => [m, x, C]
|
|
353
|
+
), w = p.map(d, ([, , , m]) => m), f = ut(p.get(w) ?? 1), g = p.map(c ?? !1, (m) => m), y = p.map(
|
|
351
354
|
t.colorTextFormat ?? "rgb",
|
|
352
355
|
(m) => m
|
|
353
|
-
),
|
|
356
|
+
), F = D(
|
|
354
357
|
h,
|
|
355
358
|
f,
|
|
356
|
-
|
|
359
|
+
y,
|
|
357
360
|
g
|
|
358
361
|
)(
|
|
359
|
-
([m,
|
|
360
|
-
),
|
|
362
|
+
([m, x, C], v, N, B) => U(m, x, C, v ?? 1, W(N, B), B)
|
|
363
|
+
), T = p.map(
|
|
361
364
|
t.colorTextFormat ?? "hex",
|
|
362
365
|
(m) => m
|
|
363
|
-
),
|
|
366
|
+
), M = p.map(l, (m) => `${-m / 2} ${-m / 2} ${m} ${m}`), b = D(
|
|
364
367
|
h,
|
|
365
368
|
l
|
|
366
|
-
)((m,
|
|
369
|
+
)((m, x) => Gt(m, x / 2)), $ = D(
|
|
367
370
|
h,
|
|
368
371
|
f,
|
|
369
372
|
g
|
|
370
373
|
)(
|
|
371
|
-
([m,
|
|
372
|
-
),
|
|
374
|
+
([m, x, C], v, N) => N || v < 1 ? Et(m, x, C, v) : nt(m, x, C)
|
|
375
|
+
), S = _.div(
|
|
373
376
|
u.class("bc-color-swatch-input__control"),
|
|
374
377
|
u.class(
|
|
375
378
|
p.map(
|
|
@@ -377,47 +380,45 @@ const fe = (t) => {
|
|
|
377
380
|
(m) => m ? "bc-color-swatch-input__control--alpha" : ""
|
|
378
381
|
)
|
|
379
382
|
),
|
|
380
|
-
u.style(
|
|
381
|
-
D(l)((m) => `width:${m + 2}px;height:${m + 2}px`)
|
|
382
|
-
),
|
|
383
|
+
u.style(D(l)((m) => `width:${m + 2}px;height:${m + 2}px`)),
|
|
383
384
|
// The SVG blob preview
|
|
384
385
|
ot.svg(
|
|
385
386
|
u.class("bc-color-swatch-input__svg"),
|
|
386
|
-
|
|
387
|
-
ot.path(
|
|
387
|
+
J.viewBox(M),
|
|
388
|
+
ot.path(J.d(b), J.fill($))
|
|
388
389
|
),
|
|
389
390
|
// Invisible native input overlays the blob for picker and accessibility
|
|
390
|
-
|
|
391
|
+
_.input(
|
|
391
392
|
u.type("color"),
|
|
392
|
-
|
|
393
|
+
O(t),
|
|
393
394
|
// Native color input needs hex without alpha
|
|
394
|
-
u.value(p.map(h, ([m,
|
|
395
|
+
u.value(p.map(h, ([m, x, C]) => nt(m, x, C))),
|
|
395
396
|
u.class(
|
|
396
397
|
"bc-input bc-color-swatch-input bc-color-swatch-input__native"
|
|
397
398
|
),
|
|
398
|
-
a != null ? I.blur(a) :
|
|
399
|
+
a != null ? I.blur(a) : A,
|
|
399
400
|
n != null ? I.change((m) => {
|
|
400
|
-
const
|
|
401
|
+
const x = m.target.value;
|
|
401
402
|
if (!n) return;
|
|
402
|
-
const { r: C, g: v, b: N } = H(
|
|
403
|
-
p.get(
|
|
403
|
+
const { r: C, g: v, b: N } = H(x) ?? { r: 0, g: 0, b: 0 }, B = p.get(f) ?? 1, V = W(
|
|
404
|
+
p.get(T),
|
|
404
405
|
p.get(g)
|
|
405
|
-
),
|
|
406
|
-
n(
|
|
407
|
-
}) :
|
|
406
|
+
), Q = U(C, v, N, B, V, p.get(g));
|
|
407
|
+
n(Q);
|
|
408
|
+
}) : A,
|
|
408
409
|
r != null ? I.input((m) => {
|
|
409
|
-
const
|
|
410
|
+
const x = m.target.value;
|
|
410
411
|
if (!r) return;
|
|
411
|
-
const { r: C, g: v, b: N } = H(
|
|
412
|
-
p.get(
|
|
412
|
+
const { r: C, g: v, b: N } = H(x) ?? { r: 0, g: 0, b: 0 }, B = p.get(f) ?? 1, V = W(
|
|
413
|
+
p.get(T),
|
|
413
414
|
p.get(g)
|
|
414
|
-
),
|
|
415
|
-
r(
|
|
416
|
-
}) :
|
|
415
|
+
), Q = U(C, v, N, B, V, p.get(g));
|
|
416
|
+
r(Q);
|
|
417
|
+
}) : A
|
|
417
418
|
)
|
|
418
|
-
),
|
|
419
|
+
), k = z(
|
|
419
420
|
g,
|
|
420
|
-
() =>
|
|
421
|
+
() => _.input(
|
|
421
422
|
u.type("range"),
|
|
422
423
|
u.class("bc-color-swatch-input__alpha"),
|
|
423
424
|
u.min(0),
|
|
@@ -426,49 +427,49 @@ const fe = (t) => {
|
|
|
426
427
|
u.value(p.map(f, (m) => String(m ?? 1))),
|
|
427
428
|
u.disabled(t.disabled),
|
|
428
429
|
I.input((m) => {
|
|
429
|
-
const
|
|
430
|
-
f.set(
|
|
431
|
-
const [C, v, N] = p.get(h),
|
|
432
|
-
p.get(
|
|
430
|
+
const x = parseFloat(m.target.value);
|
|
431
|
+
f.set(x);
|
|
432
|
+
const [C, v, N] = p.get(h), B = W(
|
|
433
|
+
p.get(T),
|
|
433
434
|
p.get(g)
|
|
434
|
-
), V = U(C, v, N,
|
|
435
|
+
), V = U(C, v, N, x, B, p.get(g));
|
|
435
436
|
r?.(V);
|
|
436
437
|
}),
|
|
437
438
|
I.change((m) => {
|
|
438
|
-
const
|
|
439
|
-
f.set(
|
|
440
|
-
const [C, v, N] = p.get(h),
|
|
441
|
-
p.get(
|
|
439
|
+
const x = parseFloat(m.target.value);
|
|
440
|
+
f.set(x);
|
|
441
|
+
const [C, v, N] = p.get(h), B = W(
|
|
442
|
+
p.get(T),
|
|
442
443
|
p.get(g)
|
|
443
|
-
), V = U(C, v, N,
|
|
444
|
+
), V = U(C, v, N, x, B, p.get(g));
|
|
444
445
|
n?.(V);
|
|
445
446
|
})
|
|
446
447
|
)
|
|
447
448
|
), {
|
|
448
449
|
swatchSize: Y,
|
|
449
|
-
displayValue:
|
|
450
|
-
withAlpha:
|
|
450
|
+
displayValue: G,
|
|
451
|
+
withAlpha: q,
|
|
451
452
|
colorTextFormat: rt,
|
|
452
|
-
...
|
|
453
|
+
...K
|
|
453
454
|
} = t;
|
|
454
455
|
return P({
|
|
455
456
|
baseContainer: !0,
|
|
456
|
-
...
|
|
457
|
+
...K,
|
|
457
458
|
// ensure our control does not try to grow
|
|
458
459
|
growInput: !1,
|
|
459
|
-
input:
|
|
460
|
+
input: S,
|
|
460
461
|
// If caller provided an `after`, append RGB before it
|
|
461
462
|
after: j(
|
|
462
463
|
z(
|
|
463
464
|
s ?? !1,
|
|
464
|
-
() =>
|
|
465
|
+
() => _.span(u.class("bc-color-swatch-input__rgb"), F)
|
|
465
466
|
),
|
|
466
|
-
|
|
467
|
+
k,
|
|
467
468
|
t.after
|
|
468
469
|
)
|
|
469
470
|
});
|
|
470
471
|
}, Kt = (t) => typeof t == "string" && t.trim() === "" ? null : t, qt = (t) => t ?? "";
|
|
471
|
-
function
|
|
472
|
+
function L(t) {
|
|
472
473
|
return (e) => {
|
|
473
474
|
const { after: a, disabled: n } = e, r = dt(e, qt, Kt), s = X(
|
|
474
475
|
e.value,
|
|
@@ -489,7 +490,7 @@ const me = ({
|
|
|
489
490
|
disabled: r
|
|
490
491
|
}) => {
|
|
491
492
|
const s = p.deriveProp(t ?? !1), o = ut(!1), c = p.map(r ?? !1, (i) => i);
|
|
492
|
-
return
|
|
493
|
+
return _.div(
|
|
493
494
|
u.class("bc-editable-text"),
|
|
494
495
|
u.class(
|
|
495
496
|
p.map(
|
|
@@ -497,10 +498,10 @@ const me = ({
|
|
|
497
498
|
(i) => i ? "bc-editable-text--disabled" : ""
|
|
498
499
|
)
|
|
499
500
|
),
|
|
500
|
-
|
|
501
|
+
R.disabled(c),
|
|
501
502
|
z(
|
|
502
503
|
s,
|
|
503
|
-
() =>
|
|
504
|
+
() => _.input(
|
|
504
505
|
u.placeholder(n),
|
|
505
506
|
u.value(e),
|
|
506
507
|
u.class("bc-editable-text__input"),
|
|
@@ -509,7 +510,7 @@ const me = ({
|
|
|
509
510
|
i.key === "Enter" ? s.set(!1) : i.key === "Escape" && (o.set(!0), s.set(!1));
|
|
510
511
|
}),
|
|
511
512
|
I.blur(
|
|
512
|
-
|
|
513
|
+
at((i) => {
|
|
513
514
|
if (s.set(!1), o.value) {
|
|
514
515
|
o.set(!1);
|
|
515
516
|
return;
|
|
@@ -518,27 +519,27 @@ const me = ({
|
|
|
518
519
|
})
|
|
519
520
|
)
|
|
520
521
|
),
|
|
521
|
-
() =>
|
|
522
|
+
() => _.span(
|
|
522
523
|
I.click(() => {
|
|
523
524
|
p.get(c) || s.set(!0);
|
|
524
525
|
}),
|
|
525
526
|
u.class("bc-editable-text__display"),
|
|
526
527
|
z(
|
|
527
528
|
p.map(e, (i) => i != null && i.trim() !== ""),
|
|
528
|
-
() =>
|
|
529
|
-
() =>
|
|
529
|
+
() => _.span(u.class("bc-editable-text__text"), e),
|
|
530
|
+
() => _.span(
|
|
530
531
|
u.class("bc-editable-text__placeholder"),
|
|
531
532
|
n
|
|
532
533
|
)
|
|
533
534
|
),
|
|
534
535
|
z(
|
|
535
536
|
p.map(c, (i) => !i),
|
|
536
|
-
() =>
|
|
537
|
+
() => _.button(
|
|
537
538
|
u.type("button"),
|
|
538
539
|
u.class("bc-editable-text__edit-button"),
|
|
539
|
-
ft(kt, (i) =>
|
|
540
|
+
ft(kt, (i) => R.label(i.$.editLabel)),
|
|
540
541
|
I.click(() => s.set(!0)),
|
|
541
|
-
|
|
542
|
+
et({ icon: "line-md/pencil", color: "neutral" })
|
|
542
543
|
)
|
|
543
544
|
)
|
|
544
545
|
)
|
|
@@ -549,12 +550,12 @@ const me = ({
|
|
|
549
550
|
return P({
|
|
550
551
|
...t,
|
|
551
552
|
input: pt.date(
|
|
552
|
-
|
|
553
|
+
O(t),
|
|
553
554
|
u.valueAsDate(e),
|
|
554
555
|
u.class("bc-input"),
|
|
555
|
-
a != null ? I.blur(
|
|
556
|
-
n != null ? I.change(ct(n)) :
|
|
557
|
-
r != null ? I.input(ct(r)) :
|
|
556
|
+
a != null ? I.blur(at(a)) : A,
|
|
557
|
+
n != null ? I.change(ct(n)) : A,
|
|
558
|
+
r != null ? I.input(ct(r)) : A
|
|
558
559
|
),
|
|
559
560
|
after: s != null ? j(c, s) : c
|
|
560
561
|
});
|
|
@@ -566,16 +567,16 @@ const me = ({
|
|
|
566
567
|
return P({
|
|
567
568
|
...t,
|
|
568
569
|
input: pt["datetime-local"](
|
|
569
|
-
|
|
570
|
+
O(t),
|
|
570
571
|
u.value(p.map(c, (l) => l ?? null)),
|
|
571
572
|
u.class("bc-input"),
|
|
572
|
-
a != null ? I.blur(
|
|
573
|
-
n != null ? I.change(it(n)) :
|
|
574
|
-
r != null ? I.input(it(r)) :
|
|
573
|
+
a != null ? I.blur(at(a)) : A,
|
|
574
|
+
n != null ? I.change(it(n)) : A,
|
|
575
|
+
r != null ? I.input(it(r)) : A
|
|
575
576
|
),
|
|
576
577
|
after: s != null ? j(i, s) : i
|
|
577
578
|
});
|
|
578
|
-
}, ye =
|
|
579
|
+
}, ye = L(Tt), Me = L(_t), Ie = L(St), $e = L(
|
|
579
580
|
Mt
|
|
580
581
|
), xe = ({
|
|
581
582
|
value: t,
|
|
@@ -589,97 +590,99 @@ const me = ({
|
|
|
589
590
|
id: i,
|
|
590
591
|
color: l = "primary",
|
|
591
592
|
tabIndex: d = 0,
|
|
592
|
-
matchInputHeight: h = !0
|
|
593
|
+
matchInputHeight: h = !0,
|
|
594
|
+
ariaLabel: w
|
|
593
595
|
}) => {
|
|
594
|
-
const
|
|
595
|
-
function
|
|
596
|
-
const
|
|
596
|
+
const f = i ?? At("switch");
|
|
597
|
+
function g(M, b) {
|
|
598
|
+
const $ = [
|
|
597
599
|
"bc-switch",
|
|
598
|
-
`bc-switch--size-${
|
|
599
|
-
`bc-switch--${
|
|
600
|
+
`bc-switch--size-${b}`,
|
|
601
|
+
`bc-switch--${b}`
|
|
600
602
|
];
|
|
601
|
-
return h &&
|
|
603
|
+
return h && $.push("bc-switch--match-input"), M && $.push("bc-switch--disabled"), $.join(" ");
|
|
602
604
|
}
|
|
603
|
-
function
|
|
604
|
-
const
|
|
605
|
-
return
|
|
605
|
+
function y(M) {
|
|
606
|
+
const b = M ?? "primary", $ = /* @__PURE__ */ new Map(), S = lt(b, "solid", "light"), k = lt(b, "solid", "dark");
|
|
607
|
+
return $.set("--switch-track-on-bg", S.backgroundColor), $.set("--switch-track-on-label", S.textColor), $.set("--switch-track-on-bg-dark", k.backgroundColor), $.set("--switch-track-on-label-dark", k.textColor), $.set(
|
|
606
608
|
"--switch-track-on-border-dark",
|
|
607
|
-
Ft(
|
|
608
|
-
), Array.from(
|
|
609
|
+
Ft(b, "dark")
|
|
610
|
+
), Array.from($.entries()).map(([Y, G]) => `${Y}: ${G}`).join("; ");
|
|
609
611
|
}
|
|
610
|
-
const
|
|
612
|
+
const F = () => {
|
|
611
613
|
p.get(o) || (e?.(!p.get(t)), a?.(!p.get(t)));
|
|
612
|
-
},
|
|
613
|
-
p.get(o) || (
|
|
614
|
+
}, T = (M) => {
|
|
615
|
+
p.get(o) || (M.key === " " || M.key === "Enter") && (M.preventDefault(), F());
|
|
614
616
|
};
|
|
615
|
-
return
|
|
617
|
+
return _.div(
|
|
616
618
|
u.class(
|
|
617
619
|
D(
|
|
618
620
|
o ?? !1,
|
|
619
621
|
c
|
|
620
622
|
)(
|
|
621
|
-
(
|
|
623
|
+
(M, b) => g(M ?? !1, b ?? "md")
|
|
622
624
|
)
|
|
623
625
|
),
|
|
624
626
|
u.style(
|
|
625
627
|
D(l)(
|
|
626
|
-
(
|
|
628
|
+
(M) => y(M)
|
|
627
629
|
)
|
|
628
630
|
),
|
|
629
|
-
u.id(
|
|
631
|
+
u.id(f),
|
|
630
632
|
u.role("switch"),
|
|
631
633
|
u.tabindex(
|
|
632
634
|
D(
|
|
633
635
|
o ?? !1,
|
|
634
636
|
d
|
|
635
|
-
)((
|
|
637
|
+
)((M, b) => M ? -1 : b ?? 0)
|
|
636
638
|
),
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
I.
|
|
639
|
+
R.checked(t),
|
|
640
|
+
R.disabled(o),
|
|
641
|
+
w != null ? R.label(w) : null,
|
|
642
|
+
I.click(F),
|
|
643
|
+
I.keydown(T),
|
|
641
644
|
n != null ? I.blur(n) : null,
|
|
642
|
-
|
|
645
|
+
_.div(
|
|
643
646
|
u.class("bc-switch__track"),
|
|
644
647
|
u.class(
|
|
645
648
|
p.map(
|
|
646
649
|
t,
|
|
647
|
-
(
|
|
650
|
+
(M) => M ? "bc-switch__track--on" : "bc-switch__track--off"
|
|
648
651
|
)
|
|
649
652
|
),
|
|
650
|
-
r != null ?
|
|
651
|
-
|
|
653
|
+
r != null ? _.div(
|
|
654
|
+
R.hidden(!0),
|
|
652
655
|
u.class("bc-switch__track-label bc-switch__track-label--off"),
|
|
653
656
|
u.class(
|
|
654
657
|
p.map(
|
|
655
658
|
t,
|
|
656
|
-
(
|
|
659
|
+
(M) => M ? "bc-switch__track-label--hidden" : "bc-switch__track-label--visible"
|
|
657
660
|
)
|
|
658
661
|
),
|
|
659
662
|
r
|
|
660
663
|
) : null,
|
|
661
|
-
s != null ?
|
|
664
|
+
s != null ? _.div(
|
|
662
665
|
u.class("bc-switch__track-label bc-switch__track-label--on"),
|
|
663
666
|
u.class(
|
|
664
667
|
p.map(
|
|
665
668
|
t,
|
|
666
|
-
(
|
|
669
|
+
(M) => M ? "bc-switch__track-label--visible" : "bc-switch__track-label--hidden"
|
|
667
670
|
)
|
|
668
671
|
),
|
|
669
672
|
s
|
|
670
673
|
) : null,
|
|
671
|
-
|
|
674
|
+
_.div(
|
|
672
675
|
u.class("bc-switch__thumb"),
|
|
673
676
|
u.class(
|
|
674
677
|
p.map(
|
|
675
678
|
t,
|
|
676
|
-
(
|
|
679
|
+
(M) => M ? "bc-switch__thumb--on" : "bc-switch__thumb--off"
|
|
677
680
|
)
|
|
678
681
|
)
|
|
679
682
|
)
|
|
680
683
|
)
|
|
681
684
|
);
|
|
682
|
-
}, _e =
|
|
685
|
+
}, _e = L(It), Jt = "line-md:star-alt-filled", Zt = "line-md:star-alt", te = (t) => {
|
|
683
686
|
const {
|
|
684
687
|
value: e,
|
|
685
688
|
onChange: a,
|
|
@@ -692,47 +695,47 @@ const me = ({
|
|
|
692
695
|
inactiveIcon: l = Zt,
|
|
693
696
|
size: d = "md",
|
|
694
697
|
onBlur: h,
|
|
695
|
-
rounding:
|
|
698
|
+
rounding: w = 1
|
|
696
699
|
} = t, f = () => {
|
|
697
|
-
const b = p.get(
|
|
700
|
+
const b = p.get(w);
|
|
698
701
|
return b > 0 ? b : 1;
|
|
699
|
-
}, g = (b) => Math.min(Math.max(b, 0), p.get(s)),
|
|
702
|
+
}, g = (b) => Math.min(Math.max(b, 0), p.get(s)), y = (b, $) => {
|
|
700
703
|
if (p.get(r ?? !1)) return;
|
|
701
|
-
const
|
|
702
|
-
a?.(
|
|
703
|
-
},
|
|
704
|
+
const k = b.currentTarget.getBoundingClientRect(), Y = (b.clientX - k.left) / k.width, G = $ - 1 + Y, q = f(), rt = Math.ceil(G / q) * q, K = g(rt);
|
|
705
|
+
a?.(K), n?.(K);
|
|
706
|
+
}, F = (b) => {
|
|
704
707
|
if (p.get(r ?? !1)) return;
|
|
705
|
-
const
|
|
706
|
-
let
|
|
708
|
+
const $ = f(), S = p.get(e) ?? 0;
|
|
709
|
+
let k;
|
|
707
710
|
switch (b.key) {
|
|
708
711
|
case "ArrowRight":
|
|
709
712
|
case "ArrowUp":
|
|
710
|
-
|
|
713
|
+
k = g(S + $);
|
|
711
714
|
break;
|
|
712
715
|
case "ArrowLeft":
|
|
713
716
|
case "ArrowDown":
|
|
714
|
-
|
|
717
|
+
k = g(S - $);
|
|
715
718
|
break;
|
|
716
719
|
case "Home":
|
|
717
|
-
|
|
720
|
+
k = 0;
|
|
718
721
|
break;
|
|
719
722
|
case "End":
|
|
720
|
-
|
|
723
|
+
k = p.get(s);
|
|
721
724
|
break;
|
|
722
725
|
default:
|
|
723
726
|
return;
|
|
724
727
|
}
|
|
725
|
-
b.preventDefault(), a?.(
|
|
726
|
-
},
|
|
728
|
+
b.preventDefault(), a?.(k), n?.(k);
|
|
729
|
+
}, T = p.map(d, (b) => `bc-icon--${b}`), M = ({ index: b, counter: $ }) => _.span(
|
|
727
730
|
u.class("bc-rating-input__icon-container"),
|
|
728
|
-
u.class(
|
|
731
|
+
u.class(T),
|
|
729
732
|
I.click(
|
|
730
|
-
bt((
|
|
733
|
+
bt((S) => y(S, $), {
|
|
731
734
|
preventDefault: !0,
|
|
732
735
|
stopPropagation: !0
|
|
733
736
|
})
|
|
734
737
|
),
|
|
735
|
-
|
|
738
|
+
et(
|
|
736
739
|
{
|
|
737
740
|
icon: l,
|
|
738
741
|
size: d,
|
|
@@ -741,16 +744,16 @@ const me = ({
|
|
|
741
744
|
},
|
|
742
745
|
u.class("bc-rating-input__icon-empty")
|
|
743
746
|
),
|
|
744
|
-
|
|
747
|
+
_.span(
|
|
745
748
|
u.class("bc-rating-input__icon-clipper"),
|
|
746
|
-
u.class(
|
|
749
|
+
u.class(T),
|
|
747
750
|
wt.width(
|
|
748
|
-
p.map(e, (
|
|
749
|
-
const
|
|
750
|
-
return
|
|
751
|
+
p.map(e, (S) => {
|
|
752
|
+
const k = Math.floor(S);
|
|
753
|
+
return k > b ? "100%" : k < b ? "0%" : `${(S - b) * 100}%`;
|
|
751
754
|
})
|
|
752
755
|
),
|
|
753
|
-
|
|
756
|
+
et(
|
|
754
757
|
{
|
|
755
758
|
icon: i,
|
|
756
759
|
size: d,
|
|
@@ -766,30 +769,30 @@ const me = ({
|
|
|
766
769
|
growInput: !1,
|
|
767
770
|
focusableSelector: '[role="slider"]',
|
|
768
771
|
...t,
|
|
769
|
-
input:
|
|
772
|
+
input: _.div(
|
|
770
773
|
// Common input attributes (id, required, invalid, custom classes, etc.)
|
|
771
|
-
|
|
774
|
+
O(t),
|
|
772
775
|
u.class("bc-rating-input"),
|
|
773
776
|
// ARIA slider semantics
|
|
774
777
|
u.role("slider"),
|
|
775
778
|
u.tabindex(p.map(r ?? !1, (b) => b ? -1 : 0)),
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
779
|
+
R.disabled(r ?? !1),
|
|
780
|
+
R.valuemin(0),
|
|
781
|
+
R.valuemax(p.map(s, (b) => b ?? 0)),
|
|
782
|
+
R.valuenow(p.map(e, (b) => b ?? 0)),
|
|
783
|
+
R.valuetext(
|
|
781
784
|
D(
|
|
782
785
|
e,
|
|
783
786
|
s
|
|
784
|
-
)((b,
|
|
785
|
-
const
|
|
786
|
-
return `${String(
|
|
787
|
+
)((b, $) => {
|
|
788
|
+
const S = b ?? 0, k = $ ?? 0;
|
|
789
|
+
return `${String(S)} / ${String(k)}`;
|
|
787
790
|
})
|
|
788
791
|
),
|
|
789
792
|
// Keyboard & focus handlers
|
|
790
|
-
I.keydown(
|
|
793
|
+
I.keydown(F),
|
|
791
794
|
h != null ? I.blur(h) : null,
|
|
792
|
-
mt(s,
|
|
795
|
+
mt(s, M)
|
|
793
796
|
)
|
|
794
797
|
});
|
|
795
798
|
}, ke = (t) => {
|
|
@@ -812,18 +815,18 @@ const me = ({
|
|
|
812
815
|
...t,
|
|
813
816
|
// Make sure clicks anywhere focus the range input
|
|
814
817
|
focusableSelector: 'input[type="range"]',
|
|
815
|
-
input:
|
|
818
|
+
input: _.input(
|
|
816
819
|
u.type("range"),
|
|
817
|
-
|
|
820
|
+
O(t),
|
|
818
821
|
u.min(n),
|
|
819
822
|
u.max(r),
|
|
820
823
|
u.step(a),
|
|
821
824
|
// Using value as number to keep it in sync
|
|
822
825
|
u.valueAsNumber(e),
|
|
823
826
|
u.class("bc-input bc-slider-input"),
|
|
824
|
-
s != null ? I.blur(E(s)) :
|
|
825
|
-
o != null ? I.change(E(o)) :
|
|
826
|
-
c != null ? I.input(E(c)) :
|
|
827
|
+
s != null ? I.blur(E(s)) : A,
|
|
828
|
+
o != null ? I.change(E(o)) : A,
|
|
829
|
+
c != null ? I.input(E(c)) : A
|
|
827
830
|
)
|
|
828
831
|
});
|
|
829
832
|
}, Ce = (t) => {
|
|
@@ -840,28 +843,28 @@ const me = ({
|
|
|
840
843
|
...t,
|
|
841
844
|
focusableSelector: 'input[type="range"]',
|
|
842
845
|
after: l,
|
|
843
|
-
input:
|
|
846
|
+
input: _.input(
|
|
844
847
|
u.type("range"),
|
|
845
|
-
|
|
848
|
+
O(t),
|
|
846
849
|
u.min(n),
|
|
847
850
|
u.max(r),
|
|
848
851
|
u.step(a),
|
|
849
852
|
u.valueAsNumber(i),
|
|
850
853
|
u.class("bc-input bc-slider-input"),
|
|
851
|
-
s != null ? I.blur(E(s)) :
|
|
854
|
+
s != null ? I.blur(E(s)) : A,
|
|
852
855
|
o != null ? I.change(
|
|
853
856
|
E((d) => {
|
|
854
857
|
o(d);
|
|
855
858
|
})
|
|
856
|
-
) :
|
|
859
|
+
) : A,
|
|
857
860
|
c != null ? I.input(
|
|
858
861
|
E((d) => {
|
|
859
862
|
c(d);
|
|
860
863
|
})
|
|
861
|
-
) :
|
|
864
|
+
) : A
|
|
862
865
|
)
|
|
863
866
|
});
|
|
864
|
-
}, Te =
|
|
867
|
+
}, Te = L($t);
|
|
865
868
|
class ee {
|
|
866
869
|
widgets = /* @__PURE__ */ new Map();
|
|
867
870
|
typeMapping = /* @__PURE__ */ new Map();
|
|
@@ -1012,26 +1015,26 @@ function Re(t) {
|
|
|
1012
1015
|
};
|
|
1013
1016
|
}
|
|
1014
1017
|
export {
|
|
1015
|
-
|
|
1018
|
+
Ot as A,
|
|
1016
1019
|
ge as B,
|
|
1017
1020
|
fe as C,
|
|
1018
1021
|
Bt as D,
|
|
1019
1022
|
me as E,
|
|
1020
1023
|
Nt as F,
|
|
1021
1024
|
Rt as G,
|
|
1022
|
-
|
|
1025
|
+
tt as H,
|
|
1023
1026
|
Pt as I,
|
|
1024
1027
|
Ut as J,
|
|
1025
1028
|
Vt as K,
|
|
1026
1029
|
W as L,
|
|
1027
|
-
|
|
1030
|
+
nt as M,
|
|
1028
1031
|
Me as N,
|
|
1029
|
-
|
|
1030
|
-
|
|
1032
|
+
st as O,
|
|
1033
|
+
Lt as P,
|
|
1031
1034
|
Wt as Q,
|
|
1032
1035
|
te as R,
|
|
1033
1036
|
Fe as S,
|
|
1034
|
-
|
|
1037
|
+
Z as T,
|
|
1035
1038
|
Et as U,
|
|
1036
1039
|
ee as W,
|
|
1037
1040
|
$e as a,
|