@tempots/beatui 0.81.0 → 0.82.1
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/_commonjsHelpers-DKOUU3wS.cjs +1 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/{ar-DwHLVgKj.cjs → ar-D7CXDmVZ.cjs} +1 -1
- package/dist/{ar-Bo_FZZi7.js → ar-nOSKXpIW.js} +1 -1
- package/dist/auth/index.cjs.js +1 -1
- package/dist/auth/index.es.js +63 -1349
- package/dist/auth-divider-BqZPH1-z.cjs +1 -0
- package/dist/auth-divider-Wr-S16kF.js +1355 -0
- package/dist/beatui.css +2035 -295
- package/dist/beatui.tailwind.css +2036 -296
- package/dist/better-auth/index.cjs.js +1 -0
- package/dist/better-auth/index.es.js +754 -0
- package/dist/{de-zI5mdV4M.cjs → de-WzsOu9Gn.cjs} +1 -1
- package/dist/{de-CCqwOkqN.js → de-f2xcEb34.js} +1 -1
- package/dist/{deep-merge-1uN6CG6K.js → deep-merge-BYm0y62g.js} +271 -285
- package/dist/deep-merge-d7sf0xmN.cjs +1 -0
- package/dist/duration-input-B9UNmUCh.cjs +1 -0
- package/dist/{duration-input-C9kpsw-t.js → duration-input-DqcJbxKD.js} +31 -29
- package/dist/editor-toolbar-group--a-xgsJw.cjs +1 -0
- package/dist/editor-toolbar-group-CVpl5mxF.js +31 -0
- package/dist/{es-BF02UrPL.js → es-CDqqzpCw.js} +1 -1
- package/dist/{es-Cw90CAbu.cjs → es-Ds2Xf3wV.cjs} +1 -1
- package/dist/{fa-DPQV4YB8.js → fa-C7tE_hR3.js} +1 -1
- package/dist/{fa-B4lssnzR.cjs → fa-Ct1UtDB7.cjs} +1 -1
- package/dist/{fr-1Kd6z1F-.cjs → fr-CzAkRFed.cjs} +1 -1
- package/dist/{fr-dmxPhwkD.js → fr-yOW_68YY.js} +1 -1
- package/dist/{he-BtQbrVt3.js → he-D2oUloCJ.js} +1 -1
- package/dist/{he-CJ3XnuPm.cjs → he-DlXALrK7.cjs} +1 -1
- package/dist/{hi-BpfnFKHp.cjs → hi-3dBhLwDs.cjs} +1 -1
- package/dist/{hi-D_Le4Yka.js → hi-D5ZlZoQq.js} +1 -1
- package/dist/{hls.light.min-Bhrf47iR.cjs → hls.light.min-C6xKDzRR.cjs} +1 -1
- package/dist/{hls.light.min-C6VwviEa.js → hls.light.min-hEMf_E8u.js} +1 -1
- package/dist/{index-CfaWytS2.cjs → index-05UbKOYe.cjs} +1 -1
- package/dist/{index-K6u33-GC.cjs → index-Bt7FYl80.cjs} +19 -19
- package/dist/{index-YtW7SCWB.js → index-C2Lq1m45.js} +1434 -1463
- package/dist/{index-CGEzILlC.js → index-lYhXnu6I.js} +1 -1
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +2389 -2738
- package/dist/input-container-C6qEIjcA.cjs +1 -0
- package/dist/input-container-DiCjOzR2.js +247 -0
- package/dist/{it-DyHjSuHN.js → it-6e6X-4BB.js} +1 -1
- package/dist/{it-COCZ9NyB.cjs → it-DohtcWi9.cjs} +1 -1
- package/dist/{ja-X43lABza.js → ja-BxNuNo2H.js} +1 -1
- package/dist/{ja--NdggLU9.cjs → ja-eyTArrgS.cjs} +1 -1
- package/dist/json-schema/index.cjs.js +1 -8
- package/dist/json-schema/index.es.js +1359 -7608
- package/dist/json-schema-display/index.cjs.js +1 -0
- package/dist/json-schema-display/index.es.js +846 -0
- package/dist/json-structure/index.cjs.js +1 -1
- package/dist/json-structure/index.es.js +542 -698
- package/dist/{ko-BUvb0ggK.cjs → ko-BFLCDMMs.cjs} +1 -1
- package/dist/{ko-B9g9iw99.js → ko-Ch0jFsBV.js} +1 -1
- package/dist/lexical/index.cjs.js +46 -0
- package/dist/lexical/index.es.js +21370 -0
- package/dist/lexical.css +1124 -0
- package/dist/menu-CZzRsQP_.js +372 -0
- package/dist/menu-ClrU72xH.cjs +1 -0
- package/dist/modal-I5srcntN.cjs +1 -0
- package/dist/modal-v3u2Fpnd.js +488 -0
- package/dist/{nl-0S25Gsld.cjs → nl-Bx2ACvr4.cjs} +1 -1
- package/dist/{nl-Ew5jnSsT.js → nl-NuTdZO1s.js} +1 -1
- package/dist/{notice-C-964yaY.js → notice-BuZvdvZh.js} +84 -82
- package/dist/notice-CLDdy1MW.cjs +1 -0
- package/dist/oneof-branch-detection-DsM1K5xc.cjs +8 -0
- package/dist/oneof-branch-detection-Dt8ss9lc.js +6281 -0
- package/dist/{pl-C9f6UBSe.js → pl-Bs4nLJ__.js} +1 -1
- package/dist/{pl-B3k-K3S4.cjs → pl-QHl6sl8f.cjs} +1 -1
- package/dist/prosemirror/index.cjs.js +1 -1
- package/dist/prosemirror/index.es.js +1 -1
- package/dist/{pt-DYtAvbrw.js → pt-BETjHZrL.js} +1 -1
- package/dist/{pt-CKoikRO5.cjs → pt-DZGw2Z-1.cjs} +1 -1
- package/dist/{ru-ZexN-b8V.js → ru-Bi1_DEKM.js} +1 -1
- package/dist/{ru-COb7RSDt.cjs → ru-D03IuLqh.cjs} +1 -1
- package/dist/session-id-3KiilioY.js +8 -0
- package/dist/session-id-B5lJMzbB.cjs +1 -0
- package/dist/stack-BJgsPJ9A.js +873 -0
- package/dist/stack-DcZ_u50f.cjs +1 -0
- package/dist/string-B9vVyfq3.cjs +1 -0
- package/dist/string-DYyMxBl-.js +19 -0
- package/dist/styles-url-B2dzXrYt.cjs +1 -0
- package/dist/styles-url-Cw_mxshe.js +4 -0
- package/dist/text-input-B3VBat1k.js +44 -0
- package/dist/text-input-Ds8e7Z1G.cjs +1 -0
- package/dist/{toolbar-DNpBIoJo.js → toolbar-D994_E_s.js} +4 -4
- package/dist/toolbar-x0_8lmKu.cjs +1 -0
- package/dist/{tr-tO_EH-Y2.cjs → tr-B_-_1wua.cjs} +1 -1
- package/dist/{tr-BDvn05-H.js → tr-DiYB-FwX.js} +1 -1
- package/dist/translations-B4-Zd2LM.cjs +1 -0
- package/dist/translations-Cq8bUKJP.js +584 -0
- package/dist/{translations-DwGC_94w.cjs → translations-D62qqNV9.cjs} +1 -1
- package/dist/{translations-CfWR4loD.js → translations-DPr6c05Z.js} +1 -1
- package/dist/types/better-auth/bridge.d.ts +2 -0
- package/dist/types/better-auth/callbacks.d.ts +6 -0
- package/dist/types/better-auth/components/authenticated.d.ts +4 -0
- package/dist/types/better-auth/components/better-auth-container.d.ts +4 -0
- package/dist/types/better-auth/components/better-auth-modal.d.ts +4 -0
- package/dist/types/better-auth/components/magic-link-form.d.ts +7 -0
- package/dist/types/better-auth/components/passkey-management.d.ts +6 -0
- package/dist/types/better-auth/components/passkey-signin.d.ts +12 -0
- package/dist/types/better-auth/components/two-factor-setup.d.ts +8 -0
- package/dist/types/better-auth/components/two-factor-verify.d.ts +10 -0
- package/dist/types/better-auth/i18n/default.d.ts +29 -0
- package/dist/types/better-auth/i18n/locales/en.d.ts +28 -0
- package/dist/types/better-auth/i18n/translations.d.ts +27 -0
- package/dist/types/better-auth/index.d.ts +22 -0
- package/dist/types/better-auth/provider.d.ts +6 -0
- package/dist/types/better-auth/session.d.ts +14 -0
- package/dist/types/better-auth/social-mapping.d.ts +2 -0
- package/dist/types/better-auth/types.d.ts +164 -0
- package/dist/types/components/auth/auth-container.d.ts +1 -1
- package/dist/types/components/auth/social-providers.d.ts +1 -1
- package/dist/types/components/auth/types.d.ts +2 -0
- package/dist/types/components/editor-toolbar/editor-toolbar-button.d.ts +16 -0
- package/dist/types/components/editor-toolbar/editor-toolbar-group.d.ts +9 -0
- package/dist/types/components/editor-toolbar/index.d.ts +2 -0
- package/dist/types/components/json-schema-display/display-widget-customization.d.ts +61 -0
- package/dist/types/components/json-schema-display/display-wrapper.d.ts +14 -0
- package/dist/types/components/json-schema-display/displays/any-display.d.ts +14 -0
- package/dist/types/components/json-schema-display/displays/array-display.d.ts +13 -0
- package/dist/types/components/json-schema-display/displays/boolean-display.d.ts +13 -0
- package/dist/types/components/json-schema-display/displays/composition-display.d.ts +14 -0
- package/dist/types/components/json-schema-display/displays/enum-const-display.d.ts +13 -0
- package/dist/types/components/json-schema-display/displays/generic-display.d.ts +18 -0
- package/dist/types/components/json-schema-display/displays/null-display.d.ts +13 -0
- package/dist/types/components/json-schema-display/displays/number-display.d.ts +13 -0
- package/dist/types/components/json-schema-display/displays/object-display.d.ts +13 -0
- package/dist/types/components/json-schema-display/displays/string-display.d.ts +14 -0
- package/dist/types/components/json-schema-display/index.d.ts +14 -0
- package/dist/types/components/json-schema-display/json-schema-display.d.ts +25 -0
- package/dist/types/components/json-schema-display/mismatch.d.ts +14 -0
- package/dist/types/components/json-structure/controls/control-utils.d.ts +19 -0
- package/dist/types/components/json-structure/controls/index.d.ts +1 -0
- package/dist/types/components/lexical/bare-editor.d.ts +29 -0
- package/dist/types/components/lexical/code/index.d.ts +1 -0
- package/dist/types/components/lexical/code/language-selector.d.ts +13 -0
- package/dist/types/components/lexical/contextual-editor.d.ts +22 -0
- package/dist/types/components/lexical/docked-editor.d.ts +23 -0
- package/dist/types/components/lexical/floating/block-handle.d.ts +16 -0
- package/dist/types/components/lexical/floating/floating-toolbar.d.ts +12 -0
- package/dist/types/components/lexical/floating/index.d.ts +6 -0
- package/dist/types/components/lexical/floating/slash-command-palette.d.ts +20 -0
- package/dist/types/components/lexical/index.d.ts +8 -0
- package/dist/types/components/lexical/lexical-editor-input.d.ts +30 -0
- package/dist/types/components/lexical/table/index.d.ts +1 -0
- package/dist/types/components/lexical/table/table-controls.d.ts +12 -0
- package/dist/types/components/lexical/toolbar/index.d.ts +6 -0
- package/dist/types/components/lexical/toolbar/lexical-toolbar.d.ts +12 -0
- package/dist/types/components/lexical/toolbar/toolbar-button.d.ts +1 -0
- package/dist/types/components/lexical/toolbar/toolbar-group.d.ts +1 -0
- package/dist/types/components/lexical/toolbar/toolbar-helpers.d.ts +30 -0
- package/dist/types/components/prosemirror/etoolbar-button.d.ts +1 -11
- package/dist/types/components/prosemirror/etoolbar-group.d.ts +1 -4
- package/dist/types/json-schema-display/index.d.ts +1 -0
- package/dist/types/lexical/commands/index.d.ts +17 -0
- package/dist/types/lexical/headless.d.ts +39 -0
- package/dist/types/lexical/horizontal-rule-node.d.ts +20 -0
- package/dist/types/lexical/index.d.ts +20 -0
- package/dist/types/lexical/lazy-loader.d.ts +35 -0
- package/dist/types/lexical/nodes.d.ts +29 -0
- package/dist/types/lexical/plugins/auto-link.d.ts +7 -0
- package/dist/types/lexical/plugins/clipboard.d.ts +11 -0
- package/dist/types/lexical/plugins/code-shiki.d.ts +11 -0
- package/dist/types/lexical/plugins/code.d.ts +7 -0
- package/dist/types/lexical/plugins/dragon.d.ts +6 -0
- package/dist/types/lexical/plugins/file-io.d.ts +10 -0
- package/dist/types/lexical/plugins/hashtag.d.ts +7 -0
- package/dist/types/lexical/plugins/history.d.ts +7 -0
- package/dist/types/lexical/plugins/horizontal-rule.d.ts +12 -0
- package/dist/types/lexical/plugins/html-io.d.ts +9 -0
- package/dist/types/lexical/plugins/index.d.ts +24 -0
- package/dist/types/lexical/plugins/link.d.ts +6 -0
- package/dist/types/lexical/plugins/list.d.ts +6 -0
- package/dist/types/lexical/plugins/mark.d.ts +15 -0
- package/dist/types/lexical/plugins/markdown-io.d.ts +13 -0
- package/dist/types/lexical/plugins/offset.d.ts +6 -0
- package/dist/types/lexical/plugins/overflow.d.ts +7 -0
- package/dist/types/lexical/plugins/plain-text.d.ts +6 -0
- package/dist/types/lexical/plugins/rich-text.d.ts +6 -0
- package/dist/types/lexical/plugins/selection.d.ts +6 -0
- package/dist/types/lexical/plugins/slash-commands.d.ts +26 -0
- package/dist/types/lexical/plugins/table.d.ts +11 -0
- package/dist/types/lexical/plugins/text.d.ts +13 -0
- package/dist/types/lexical/plugins/yjs.d.ts +9 -0
- package/dist/types/lexical/styles-url.d.ts +2 -0
- package/dist/types/lexical/styles.d.ts +2 -0
- package/dist/types/lexical/types.d.ts +634 -0
- package/dist/types/lexical-i18n/default.d.ts +92 -0
- package/dist/types/lexical-i18n/index.d.ts +21 -0
- package/dist/types/lexical-i18n/locales/ar.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/de.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/en.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/es.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/fa.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/fr.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/he.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/hi.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/it.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/ja.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/ko.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/nl.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/pl.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/pt.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/ru.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/tr.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/ur.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/vi.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/zh.d.ts +91 -0
- package/dist/types/lexical-i18n/translations.d.ts +21 -0
- package/dist/{ur-DbEqQgS6.js → ur-B69X-xNs.js} +1 -1
- package/dist/{ur-BbnYJ3HS.cjs → ur-DyUSmIbo.cjs} +1 -1
- package/dist/use-animated-toggle-ChycsEoj.js +175 -0
- package/dist/use-animated-toggle-DR6CyMac.cjs +1 -0
- package/dist/use-form-B56E_x5Y.js +859 -0
- package/dist/use-form-Cnp3XQ5X.cjs +2 -0
- package/dist/utils-DEbsp9Q9.js +129 -0
- package/dist/utils-DIUEhA-Z.cjs +1 -0
- package/dist/{vi-CpZUeuSj.js → vi-BdzxA60L.js} +1 -1
- package/dist/{vi-ByBwvGQY.cjs → vi-CBmPaHxg.cjs} +1 -1
- package/dist/widget-customization-Dk7XcVly.cjs +1 -0
- package/dist/widget-customization-Ds9sicAg.js +1073 -0
- package/dist/{zh-DnxK0ieB.cjs → zh-Cb1b8uik.cjs} +1 -1
- package/dist/{zh-DJyhKO0I.js → zh-Dn1UJiZa.js} +1 -1
- package/package.json +59 -8
- package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
- package/dist/_commonjsHelpers-DwGv2jUC.cjs +0 -1
- package/dist/deep-merge-CBIkQM4E.cjs +0 -1
- package/dist/duration-input-DHWhQJnn.cjs +0 -1
- package/dist/modal-CSHIhHvI.js +0 -654
- package/dist/modal-cc8Ehngz.cjs +0 -1
- package/dist/notice-C_BWqu2K.cjs +0 -1
- package/dist/toolbar-D5FcnRju.cjs +0 -1
- package/dist/translations-0tLX4x7M.js +0 -866
- package/dist/translations-WPN3ibDg.cjs +0 -1
- package/dist/use-form-D4JFOcjo.cjs +0 -2
- package/dist/use-form-D4rqJkvG.js +0 -1731
- package/dist/widget-customization-BSjJz3_Y.js +0 -1195
- package/dist/widget-customization-CrFVrt4V.cjs +0 -1
|
@@ -1,23 +1,12 @@
|
|
|
1
|
-
import { Use as F, Value as p, prop as ae, html as v, attr as l, on as
|
|
2
|
-
import { l as
|
|
1
|
+
import { Use as F, Value as p, prop as ae, html as v, attr as l, on as D, WithElement as te, Empty as z, aria as G, bind as oe, computedOf as M, style as we, OnDispose as ne, When as U, NotEmpty as Oe, Fragment as E, ForEach as K, coalesce as Fe, Ensure as Ne, OneOfType as Re, Repeat as Pe, signal as _e, input as le, emitValue as P, emitValueAsNumber as ke, Task as Ce } from "@tempots/dom";
|
|
2
|
+
import { l as je } from "./colors-DPo9GEJR.js";
|
|
3
3
|
import { g as We } from "./timer-Rd2sKnvH.js";
|
|
4
4
|
import { ElementRect as Ze } from "@tempots/ui";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
const _t = (t) => Xe(t).split("_").join(" "), Xe = (t) => (t = t.replace(/::/g, "/"), t = t.replace(/([A-Z]+)([A-Z][a-z])/g, "$1_$2"), t = t.replace(/([a-z\d])([A-Z])/g, "$1_$2"), t = t.replace(/-/g, "_"), t.toLowerCase()), kt = (t) => t.substring(0, 1).toUpperCase() + t.substring(1), Ct = (t) => {
|
|
13
|
-
if (typeof Buffer < "u")
|
|
14
|
-
return Buffer.from(t, "base64").toString("utf8");
|
|
15
|
-
if (typeof atob < "u")
|
|
16
|
-
return atob(t);
|
|
17
|
-
throw new Je(
|
|
18
|
-
"No implementation found for base64 decoding"
|
|
19
|
-
);
|
|
20
|
-
};
|
|
5
|
+
import { I as W, a as He, g as Ye, B as pe } from "./input-container-DiCjOzR2.js";
|
|
6
|
+
import { B as N, f as De, I as O, d as ge } from "./translations-Cq8bUKJP.js";
|
|
7
|
+
import { C as ce, m as qe, c as Ge, I as Be, d as fe, O as Q, e as Ie } from "./use-form-B56E_x5Y.js";
|
|
8
|
+
import { C as Y } from "./text-input-B3VBat1k.js";
|
|
9
|
+
import { S as ee } from "./stack-BJgsPJ9A.js";
|
|
21
10
|
function de({
|
|
22
11
|
onChange: t,
|
|
23
12
|
value: e,
|
|
@@ -46,7 +35,7 @@ function de({
|
|
|
46
35
|
if (x == null) return;
|
|
47
36
|
const c = Array.from(x.files ?? []);
|
|
48
37
|
c.length > 0 && (f.value = c, t(c, "click")), x.value = "";
|
|
49
|
-
},
|
|
38
|
+
}, I = (c) => {
|
|
50
39
|
p.get(s) && (c.key === "Enter" || c.key === " ") && (c.preventDefault(), u(c));
|
|
51
40
|
};
|
|
52
41
|
return v.div(
|
|
@@ -55,11 +44,11 @@ function de({
|
|
|
55
44
|
p.map(s, (c) => c ? 0 : -1)
|
|
56
45
|
),
|
|
57
46
|
l.style("position: relative;"),
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
47
|
+
D.dragover(a),
|
|
48
|
+
D.dragleave(h),
|
|
49
|
+
D.drop(_),
|
|
50
|
+
D.click(u),
|
|
51
|
+
D.keydown(I),
|
|
63
52
|
// Hidden file input
|
|
64
53
|
v.input(
|
|
65
54
|
l.type("file"),
|
|
@@ -69,14 +58,14 @@ function de({
|
|
|
69
58
|
l.style(
|
|
70
59
|
"position: absolute; left: -9999px; opacity: 0; pointer-events: none;"
|
|
71
60
|
),
|
|
72
|
-
|
|
61
|
+
D.change(y),
|
|
73
62
|
te((c) => (x = c, f.on((d) => {
|
|
74
|
-
const
|
|
75
|
-
if (
|
|
76
|
-
const
|
|
77
|
-
d.forEach((
|
|
63
|
+
const $ = globalThis.DataTransfer;
|
|
64
|
+
if ($ != null) {
|
|
65
|
+
const T = new $();
|
|
66
|
+
d.forEach((A) => T.items.add(A)), c.files = T.files;
|
|
78
67
|
}
|
|
79
|
-
}),
|
|
68
|
+
}), z))
|
|
80
69
|
),
|
|
81
70
|
// Screen reader instructions
|
|
82
71
|
G.label(oe(m.$.dropZoneInstructions)(s)),
|
|
@@ -85,21 +74,21 @@ function de({
|
|
|
85
74
|
);
|
|
86
75
|
});
|
|
87
76
|
}
|
|
88
|
-
function
|
|
77
|
+
function Je(t, e) {
|
|
89
78
|
return t.length === e.length && t.every((n, s) => n === e[s]);
|
|
90
79
|
}
|
|
91
|
-
function
|
|
80
|
+
function Xe(t, e) {
|
|
92
81
|
const n = ["bc-segmented-input", `bc-segmented-input--size-${t}`];
|
|
93
82
|
return e && n.push("bc-segmented-input--disabled"), n.join(" ");
|
|
94
83
|
}
|
|
95
|
-
function
|
|
84
|
+
function kt({
|
|
96
85
|
options: t,
|
|
97
86
|
value: e,
|
|
98
87
|
onChange: n,
|
|
99
88
|
size: s = "md",
|
|
100
89
|
disabled: r = !1
|
|
101
90
|
}, ...g) {
|
|
102
|
-
const i =
|
|
91
|
+
const i = je(t).map(([m, f]) => ({
|
|
103
92
|
key: m,
|
|
104
93
|
label: f
|
|
105
94
|
}));
|
|
@@ -108,15 +97,15 @@ function $t({
|
|
|
108
97
|
i.map((b, a) => [b.key, a])
|
|
109
98
|
), f = ae(
|
|
110
99
|
i.map(() => ({ left: 0, width: 0 })),
|
|
111
|
-
|
|
100
|
+
Je
|
|
112
101
|
);
|
|
113
102
|
return v.div(
|
|
114
103
|
l.class(
|
|
115
|
-
|
|
104
|
+
M(
|
|
116
105
|
s,
|
|
117
106
|
r
|
|
118
107
|
)(
|
|
119
|
-
(b, a) =>
|
|
108
|
+
(b, a) => Xe(b ?? "md", a ?? !1)
|
|
120
109
|
)
|
|
121
110
|
),
|
|
122
111
|
v.div(
|
|
@@ -124,7 +113,7 @@ function $t({
|
|
|
124
113
|
v.div(
|
|
125
114
|
l.class("bc-segmented-input__indicator"),
|
|
126
115
|
we.width(
|
|
127
|
-
|
|
116
|
+
M(
|
|
128
117
|
e,
|
|
129
118
|
f
|
|
130
119
|
)((b, a) => {
|
|
@@ -133,7 +122,7 @@ function $t({
|
|
|
133
122
|
})
|
|
134
123
|
),
|
|
135
124
|
we.left(
|
|
136
|
-
|
|
125
|
+
M(
|
|
137
126
|
e,
|
|
138
127
|
f
|
|
139
128
|
)((b, a) => {
|
|
@@ -145,7 +134,7 @@ function $t({
|
|
|
145
134
|
// clickable buttons
|
|
146
135
|
i.map(({ label: b, key: a }, h) => v.button(
|
|
147
136
|
l.type("button"),
|
|
148
|
-
|
|
137
|
+
D.click((_) => {
|
|
149
138
|
_.preventDefault(), p.get(r) || n?.(a);
|
|
150
139
|
}),
|
|
151
140
|
l.disabled(r),
|
|
@@ -156,11 +145,11 @@ function $t({
|
|
|
156
145
|
Ze((_) => {
|
|
157
146
|
function u() {
|
|
158
147
|
f.update((y) => {
|
|
159
|
-
const
|
|
160
|
-
return
|
|
148
|
+
const I = [...y];
|
|
149
|
+
return I[h] = {
|
|
161
150
|
width: _.value.width,
|
|
162
151
|
left: _.value.localLeft
|
|
163
|
-
},
|
|
152
|
+
}, I;
|
|
164
153
|
});
|
|
165
154
|
}
|
|
166
155
|
const x = We(u);
|
|
@@ -173,17 +162,17 @@ function $t({
|
|
|
173
162
|
);
|
|
174
163
|
});
|
|
175
164
|
}
|
|
176
|
-
function
|
|
165
|
+
function Qe(t) {
|
|
177
166
|
const e = t.type.toLowerCase();
|
|
178
167
|
return e.startsWith("image/") && (e.includes("jpeg") || e.includes("jpg") || e.includes("png") || e.includes("gif") || e.includes("webp") || e.includes("svg"));
|
|
179
168
|
}
|
|
180
|
-
function
|
|
169
|
+
function Ke(t) {
|
|
181
170
|
const e = t.type.toLowerCase();
|
|
182
171
|
return e.startsWith("image/") ? "vscode-icons:file-type-image" : e.startsWith("video/") ? "vscode-icons:file-type-video" : e.startsWith("audio/") ? "vscode-icons:file-type-audio" : e.includes("pdf") ? "vscode-icons:file-type-pdf2" : e.includes("word") || e.includes("document") ? "vscode-icons:file-type-word" : e.includes("excel") || e.includes("spreadsheet") ? "vscode-icons:file-type-excel" : e.includes("powerpoint") || e.includes("presentation") ? "vscode-icons:file-type-powerpoint" : e.includes("zip") || e.includes("archive") ? "vscode-icons:file-type-zip" : e.includes("text") ? "vscode-icons:file-type-text" : e.includes("json") ? "vscode-icons:file-type-json-official" : e.includes("csv") ? "vscode-icons:file-type-csv" : e.includes("xml") ? "vscode-icons:file-type-xml" : e.includes("yaml") ? "vscode-icons:file-type-yaml-official" : "vscode-icons:file-type-binary";
|
|
183
172
|
}
|
|
184
173
|
function me(t) {
|
|
185
174
|
return U(
|
|
186
|
-
t.map(
|
|
175
|
+
t.map(Qe),
|
|
187
176
|
() => {
|
|
188
177
|
const e = ae(null);
|
|
189
178
|
return t.on((n) => {
|
|
@@ -202,10 +191,10 @@ function me(t) {
|
|
|
202
191
|
)
|
|
203
192
|
);
|
|
204
193
|
},
|
|
205
|
-
() => O({ icon: t.map(
|
|
194
|
+
() => O({ icon: t.map(Ke) })
|
|
206
195
|
);
|
|
207
196
|
}
|
|
208
|
-
const
|
|
197
|
+
const Ct = (t, ...e) => {
|
|
209
198
|
const {
|
|
210
199
|
value: n = ae([]),
|
|
211
200
|
accept: s = "*/*",
|
|
@@ -218,7 +207,7 @@ const Dt = (t, ...e) => {
|
|
|
218
207
|
mode: a = "default",
|
|
219
208
|
showFileList: h = !0,
|
|
220
209
|
..._
|
|
221
|
-
} = t, u = n, x = p.map(a, (C) => C === "input"), y = p.map(a, (C) => C === "compact"),
|
|
210
|
+
} = t, u = n, x = p.map(a, (C) => C === "input"), y = p.map(a, (C) => C === "compact"), I = (C) => {
|
|
222
211
|
let o = C;
|
|
223
212
|
if (r != null) {
|
|
224
213
|
const w = p.get(r);
|
|
@@ -230,11 +219,11 @@ const Dt = (t, ...e) => {
|
|
|
230
219
|
}
|
|
231
220
|
i?.(o);
|
|
232
221
|
}, c = (C) => {
|
|
233
|
-
const w = u.value.filter((S,
|
|
222
|
+
const w = u.value.filter((S, V) => V !== C);
|
|
234
223
|
i?.(w);
|
|
235
224
|
}, d = () => {
|
|
236
225
|
i?.([]);
|
|
237
|
-
},
|
|
226
|
+
}, $ = ({
|
|
238
227
|
files: C,
|
|
239
228
|
clear: o,
|
|
240
229
|
change: w
|
|
@@ -257,7 +246,7 @@ const Dt = (t, ...e) => {
|
|
|
257
246
|
)
|
|
258
247
|
)
|
|
259
248
|
)
|
|
260
|
-
),
|
|
249
|
+
), T = ({
|
|
261
250
|
files: C
|
|
262
251
|
}) => F(
|
|
263
252
|
N,
|
|
@@ -268,7 +257,7 @@ const Dt = (t, ...e) => {
|
|
|
268
257
|
() => v.div(
|
|
269
258
|
l.class("bc-file-input__compact-file-list"),
|
|
270
259
|
K(C, (w, S) => {
|
|
271
|
-
const
|
|
260
|
+
const V = S.index;
|
|
272
261
|
return v.div(
|
|
273
262
|
l.class("bc-file-input__compact-file-item"),
|
|
274
263
|
v.div(
|
|
@@ -284,15 +273,15 @@ const Dt = (t, ...e) => {
|
|
|
284
273
|
),
|
|
285
274
|
v.div(
|
|
286
275
|
l.class("bc-file-input__compact-file-meta"),
|
|
287
|
-
|
|
276
|
+
M(
|
|
288
277
|
w.$.size,
|
|
289
278
|
o.$.fileSizeUnits
|
|
290
|
-
)((k,
|
|
279
|
+
)((k, B) => De(k, { units: B })),
|
|
291
280
|
" • ",
|
|
292
|
-
|
|
281
|
+
M(
|
|
293
282
|
w.$.type,
|
|
294
283
|
o.$.unknownType
|
|
295
|
-
)((k,
|
|
284
|
+
)((k, B) => k || B)
|
|
296
285
|
)
|
|
297
286
|
),
|
|
298
287
|
ce(
|
|
@@ -300,7 +289,7 @@ const Dt = (t, ...e) => {
|
|
|
300
289
|
size: "sm",
|
|
301
290
|
label: o.$.removeFile,
|
|
302
291
|
disabled: f,
|
|
303
|
-
onClick: () => c(
|
|
292
|
+
onClick: () => c(V)
|
|
304
293
|
},
|
|
305
294
|
l.class("bc-file-input__compact-remove-button")
|
|
306
295
|
)
|
|
@@ -321,7 +310,7 @@ const Dt = (t, ...e) => {
|
|
|
321
310
|
)
|
|
322
311
|
)
|
|
323
312
|
)
|
|
324
|
-
),
|
|
313
|
+
), A = ({
|
|
325
314
|
files: C
|
|
326
315
|
}) => F(
|
|
327
316
|
N,
|
|
@@ -389,8 +378,8 @@ const Dt = (t, ...e) => {
|
|
|
389
378
|
enableClick: !0,
|
|
390
379
|
allowMultiple: p.map(r ?? 1 / 0, (o) => o > 1),
|
|
391
380
|
disabled: f,
|
|
392
|
-
onChange:
|
|
393
|
-
content:
|
|
381
|
+
onChange: I,
|
|
382
|
+
content: A
|
|
394
383
|
})
|
|
395
384
|
),
|
|
396
385
|
() => U(
|
|
@@ -403,8 +392,8 @@ const Dt = (t, ...e) => {
|
|
|
403
392
|
enableClick: !0,
|
|
404
393
|
allowMultiple: p.map(r ?? 1 / 0, (o) => o > 1),
|
|
405
394
|
disabled: f,
|
|
406
|
-
onChange:
|
|
407
|
-
content:
|
|
395
|
+
onChange: I,
|
|
396
|
+
content: T
|
|
408
397
|
})
|
|
409
398
|
),
|
|
410
399
|
() => v.div(
|
|
@@ -415,8 +404,8 @@ const Dt = (t, ...e) => {
|
|
|
415
404
|
enableClick: !0,
|
|
416
405
|
allowMultiple: p.map(r ?? 1 / 0, (o) => o > 1),
|
|
417
406
|
disabled: f,
|
|
418
|
-
onChange:
|
|
419
|
-
content:
|
|
407
|
+
onChange: I,
|
|
408
|
+
content: $
|
|
420
409
|
}),
|
|
421
410
|
U(
|
|
422
411
|
h,
|
|
@@ -442,17 +431,17 @@ const Dt = (t, ...e) => {
|
|
|
442
431
|
),
|
|
443
432
|
v.div(
|
|
444
433
|
l.class("bc-file-input__file-meta"),
|
|
445
|
-
|
|
434
|
+
M(
|
|
446
435
|
o.$.size,
|
|
447
436
|
C.$.fileSizeUnits
|
|
448
437
|
)(
|
|
449
|
-
(
|
|
438
|
+
(V, k) => De(V, { units: k })
|
|
450
439
|
),
|
|
451
440
|
" • ",
|
|
452
|
-
|
|
441
|
+
M(
|
|
453
442
|
o.$.type,
|
|
454
443
|
C.$.unknownType
|
|
455
|
-
)((
|
|
444
|
+
)((V, k) => V || k)
|
|
456
445
|
)
|
|
457
446
|
),
|
|
458
447
|
ce(
|
|
@@ -478,7 +467,7 @@ const Dt = (t, ...e) => {
|
|
|
478
467
|
l.class("bc-file-input__clear-all-button"),
|
|
479
468
|
l.disabled(f),
|
|
480
469
|
C.$.clearAllFiles,
|
|
481
|
-
|
|
470
|
+
D.click((o) => {
|
|
482
471
|
o.preventDefault(), o.stopPropagation(), d();
|
|
483
472
|
})
|
|
484
473
|
)
|
|
@@ -494,15 +483,15 @@ const Dt = (t, ...e) => {
|
|
|
494
483
|
...e
|
|
495
484
|
)
|
|
496
485
|
);
|
|
497
|
-
}, ve = "$$tts-exp-",
|
|
486
|
+
}, ve = "$$tts-exp-", et = (t, e) => te((n) => {
|
|
498
487
|
const s = `${ve}${t}`;
|
|
499
488
|
return ne(p.on(e, (r) => Reflect.set(n, s, r)));
|
|
500
|
-
}),
|
|
489
|
+
}), Dt = (t, e) => {
|
|
501
490
|
const n = `${ve}${t}`;
|
|
502
491
|
return (s) => {
|
|
503
492
|
e(Reflect.get(s.target, n));
|
|
504
493
|
};
|
|
505
|
-
},
|
|
494
|
+
}, tt = (t, e) => {
|
|
506
495
|
const n = `${ve}${t}`;
|
|
507
496
|
return (s) => {
|
|
508
497
|
const r = s.target, g = r.selectedIndex, i = r.options[g];
|
|
@@ -512,17 +501,17 @@ const Dt = (t, ...e) => {
|
|
|
512
501
|
function re(...t) {
|
|
513
502
|
return v.div(l.class("bc-group"), ...t);
|
|
514
503
|
}
|
|
515
|
-
const
|
|
504
|
+
const Me = (t, e, n) => Ne(
|
|
516
505
|
t,
|
|
517
506
|
(s) => Re(s, {
|
|
518
507
|
value: (r) => {
|
|
519
|
-
const g =
|
|
508
|
+
const g = M(
|
|
520
509
|
r,
|
|
521
510
|
n
|
|
522
511
|
)((i, m) => e(i.value, m));
|
|
523
512
|
return v.option(
|
|
524
513
|
l.selected(g),
|
|
525
|
-
|
|
514
|
+
et("value", r.$.value),
|
|
526
515
|
r.$.label
|
|
527
516
|
);
|
|
528
517
|
},
|
|
@@ -530,7 +519,7 @@ const Be = (t, e, n) => Ne(
|
|
|
530
519
|
l.label(r.$.group),
|
|
531
520
|
K(
|
|
532
521
|
r.$.options,
|
|
533
|
-
(g) =>
|
|
522
|
+
(g) => Me(
|
|
534
523
|
g,
|
|
535
524
|
e,
|
|
536
525
|
n
|
|
@@ -539,7 +528,7 @@ const Be = (t, e, n) => Ne(
|
|
|
539
528
|
),
|
|
540
529
|
break: () => v.hr()
|
|
541
530
|
})
|
|
542
|
-
),
|
|
531
|
+
), nt = (t) => {
|
|
543
532
|
const {
|
|
544
533
|
value: e,
|
|
545
534
|
onBlur: n,
|
|
@@ -579,12 +568,12 @@ const Be = (t, e, n) => Ne(
|
|
|
579
568
|
Fe(g, b.$.selectOne)
|
|
580
569
|
)
|
|
581
570
|
),
|
|
582
|
-
K(r, (b) =>
|
|
583
|
-
n != null ?
|
|
584
|
-
s != null ?
|
|
571
|
+
K(r, (b) => Me(b, i, e)),
|
|
572
|
+
n != null ? D.blur(n) : z,
|
|
573
|
+
s != null ? D.change(tt("value", (b) => s(b))) : z
|
|
585
574
|
)
|
|
586
575
|
},
|
|
587
|
-
|
|
576
|
+
D.click(() => {
|
|
588
577
|
if (f?.focus(), typeof f?.showPicker == "function")
|
|
589
578
|
try {
|
|
590
579
|
f.showPicker();
|
|
@@ -593,25 +582,25 @@ const Be = (t, e, n) => Ne(
|
|
|
593
582
|
})
|
|
594
583
|
);
|
|
595
584
|
};
|
|
596
|
-
function
|
|
585
|
+
function lt(t) {
|
|
597
586
|
const { controller: e, onChange: n, onBlur: s, ...r } = t;
|
|
598
|
-
return
|
|
587
|
+
return nt({
|
|
599
588
|
...r,
|
|
600
589
|
value: e.signal,
|
|
601
590
|
onChange: Ge(e, n),
|
|
602
591
|
onBlur: qe(e, s)
|
|
603
592
|
});
|
|
604
593
|
}
|
|
605
|
-
function
|
|
606
|
-
return
|
|
594
|
+
function It(t) {
|
|
595
|
+
return Be({
|
|
607
596
|
...t,
|
|
608
|
-
content:
|
|
597
|
+
content: lt(t)
|
|
609
598
|
});
|
|
610
599
|
}
|
|
611
|
-
function
|
|
600
|
+
function st(t, e, n) {
|
|
612
601
|
const s = t.length.map((r) => r);
|
|
613
602
|
return E(
|
|
614
|
-
|
|
603
|
+
Pe(
|
|
615
604
|
s,
|
|
616
605
|
(r) => {
|
|
617
606
|
const g = t.item(r.index), i = [];
|
|
@@ -670,14 +659,14 @@ function it(t, e, n) {
|
|
|
670
659
|
)
|
|
671
660
|
);
|
|
672
661
|
}
|
|
673
|
-
const
|
|
662
|
+
const $e = {
|
|
674
663
|
9: { pattern: /^[0-9]$/ },
|
|
675
664
|
A: { pattern: /^[A-Za-z]$/, transform: (t) => t.toUpperCase() },
|
|
676
665
|
"*": { pattern: /^.$/ }
|
|
677
|
-
},
|
|
678
|
-
function
|
|
666
|
+
}, rt = (t) => t instanceof RegExp;
|
|
667
|
+
function Ae(t, e, n) {
|
|
679
668
|
if (t == null) return [];
|
|
680
|
-
const s = n ? {
|
|
669
|
+
const s = n ? { ...$e, ...e } : e ?? $e, r = (i, m) => {
|
|
681
670
|
const f = s[m];
|
|
682
671
|
f ? i.push({ type: "pattern", name: m, ...f }) : i.push({ type: "literal", char: m });
|
|
683
672
|
}, g = [];
|
|
@@ -689,10 +678,10 @@ function Ve(t, e, n) {
|
|
|
689
678
|
if (typeof i == "string")
|
|
690
679
|
if (i.length <= 1) r(g, i);
|
|
691
680
|
else for (const m of i) r(g, m);
|
|
692
|
-
else
|
|
681
|
+
else rt(i) ? g.push({ type: "pattern", pattern: i }) : typeof i == "object" && i && g.push(i);
|
|
693
682
|
return g;
|
|
694
683
|
}
|
|
695
|
-
function
|
|
684
|
+
function it(t, e) {
|
|
696
685
|
return (n) => {
|
|
697
686
|
switch (t) {
|
|
698
687
|
case "digits":
|
|
@@ -708,48 +697,48 @@ function ct(t, e) {
|
|
|
708
697
|
}
|
|
709
698
|
};
|
|
710
699
|
}
|
|
711
|
-
function
|
|
700
|
+
function Te(t, e, n, s, r, g) {
|
|
712
701
|
const i = {
|
|
713
702
|
raw: t,
|
|
714
703
|
previousConformed: e,
|
|
715
704
|
cursor: r ?? t.length,
|
|
716
705
|
completed: !1
|
|
717
|
-
}, m = s.definitions ?? {}, f = typeof n == "function" ? n(t, i) : n, b =
|
|
706
|
+
}, m = s.definitions ?? {}, f = typeof n == "function" ? n(t, i) : n, b = Ae(
|
|
718
707
|
f,
|
|
719
708
|
m,
|
|
720
709
|
s.useDefaultDefinitions ?? !0
|
|
721
|
-
), a =
|
|
710
|
+
), a = it(s.allowMode, s.allow), h = /* @__PURE__ */ new Set();
|
|
722
711
|
for (const k of b) k.type === "literal" && h.add(k.char);
|
|
723
712
|
if (s.prefix) for (const k of s.prefix) h.add(k);
|
|
724
713
|
if (s.suffix) for (const k of s.suffix) h.add(k);
|
|
725
714
|
const _ = Array.from(t).filter((k) => a(k) && !h.has(k));
|
|
726
715
|
if (_.length === 0) return { value: "", cursor: 0, completed: !1 };
|
|
727
716
|
const u = [], x = [];
|
|
728
|
-
let y = 0,
|
|
717
|
+
let y = 0, I = 0, c = 0, d = -1;
|
|
729
718
|
for (const k of b) {
|
|
730
719
|
if (k.type === "literal") {
|
|
731
720
|
u.push(k.char), x.push({ kind: "literal", filled: !0 });
|
|
732
721
|
continue;
|
|
733
722
|
}
|
|
734
|
-
|
|
735
|
-
const
|
|
736
|
-
if (
|
|
723
|
+
I += k.optional ? 0 : 1;
|
|
724
|
+
const B = _[y];
|
|
725
|
+
if (B == null)
|
|
737
726
|
break;
|
|
738
727
|
if (k.type === "any") {
|
|
739
|
-
c++, u.push(k.transform ? k.transform(
|
|
728
|
+
c++, u.push(k.transform ? k.transform(B) : B), x.push({ kind: "slot", filled: !0 }), d = x.length - 1, y++;
|
|
740
729
|
continue;
|
|
741
730
|
}
|
|
742
731
|
if (k.type === "pattern")
|
|
743
|
-
if (k.pattern.test(
|
|
732
|
+
if (k.pattern.test(B)) {
|
|
744
733
|
c++;
|
|
745
|
-
const R = k.transform ? k.transform(
|
|
734
|
+
const R = k.transform ? k.transform(B) : B;
|
|
746
735
|
u.push(R), x.push({ kind: "slot", filled: !0 }), d = x.length - 1, y++;
|
|
747
736
|
} else {
|
|
748
737
|
y++;
|
|
749
738
|
continue;
|
|
750
739
|
}
|
|
751
740
|
}
|
|
752
|
-
const
|
|
741
|
+
const $ = u.join(""), T = (s.prefix ?? "") + $ + (s.suffix ?? "");
|
|
753
742
|
let C = (s.prefix ?? "").length;
|
|
754
743
|
if (d >= 0) {
|
|
755
744
|
let k = d + 1;
|
|
@@ -757,11 +746,11 @@ function ze(t, e, n, s, r, g) {
|
|
|
757
746
|
for (; k < x.length && x[k].kind === "literal"; ) k++;
|
|
758
747
|
C += k;
|
|
759
748
|
}
|
|
760
|
-
const o = s.completion?.mode === "min" ? (s.completion.minChars ?? 0) <= c : s.completion?.mode === "custom" ? !!s.completion.isComplete?.(
|
|
761
|
-
let S,
|
|
762
|
-
return w === !1 ? (S = e,
|
|
749
|
+
const o = s.completion?.mode === "min" ? (s.completion.minChars ?? 0) <= c : s.completion?.mode === "custom" ? !!s.completion.isComplete?.(T) : I > 0 && c >= I, w = s.pipe?.(T, { ...i, completed: o });
|
|
750
|
+
let S, V = C;
|
|
751
|
+
return w === !1 ? (S = e, V = e.length) : typeof w == "string" ? (S = w, V = w.length) : typeof w == "object" && w ? (S = w.value, V = w.cursor ?? w.value.length) : S = T, { value: S, cursor: V, completed: o };
|
|
763
752
|
}
|
|
764
|
-
function
|
|
753
|
+
function ot(t, e) {
|
|
765
754
|
const n = e?.strategy ?? "none";
|
|
766
755
|
return n === "custom" && e?.unmask ? e.unmask(t) : n === "strip" ? t.replace(/[^A-Za-z0-9]/g, "") : t;
|
|
767
756
|
}
|
|
@@ -782,12 +771,12 @@ const Le = (t) => {
|
|
|
782
771
|
autofix: u,
|
|
783
772
|
pipe: x,
|
|
784
773
|
completion: y,
|
|
785
|
-
unmask:
|
|
774
|
+
unmask: I,
|
|
786
775
|
allowMode: c,
|
|
787
776
|
allow: d,
|
|
788
|
-
placeholder:
|
|
789
|
-
placeholderOptions:
|
|
790
|
-
} = t,
|
|
777
|
+
placeholder: $,
|
|
778
|
+
placeholderOptions: T
|
|
779
|
+
} = t, A = M(
|
|
791
780
|
e,
|
|
792
781
|
m,
|
|
793
782
|
f,
|
|
@@ -797,13 +786,13 @@ const Le = (t) => {
|
|
|
797
786
|
_,
|
|
798
787
|
u,
|
|
799
788
|
y,
|
|
800
|
-
D,
|
|
801
|
-
c,
|
|
802
789
|
I,
|
|
803
|
-
|
|
804
|
-
|
|
790
|
+
c,
|
|
791
|
+
$,
|
|
792
|
+
T
|
|
793
|
+
)((o, w, S, V, k, B, R, J, X, q, Z, se, j) => w ? Te(o ?? "", "", w, {
|
|
805
794
|
definitions: S ?? {},
|
|
806
|
-
useDefaultDefinitions:
|
|
795
|
+
useDefaultDefinitions: V ?? !0,
|
|
807
796
|
extraLiterals: k ?? [],
|
|
808
797
|
autofix: J ?? "none",
|
|
809
798
|
completion: X ?? { mode: "mask" },
|
|
@@ -811,19 +800,19 @@ const Le = (t) => {
|
|
|
811
800
|
unmask: q ?? { strategy: "none" },
|
|
812
801
|
allowMode: Z ?? "all",
|
|
813
802
|
allow: d,
|
|
814
|
-
prefix:
|
|
803
|
+
prefix: B,
|
|
815
804
|
suffix: R
|
|
816
805
|
}).value : o ?? ""), C = (o, w) => {
|
|
817
|
-
const S = o.value ?? "",
|
|
806
|
+
const S = o.value ?? "", V = p.get(e) ?? "", k = m != null ? p.get(m) : null, B = f != null ? p.get(f) : void 0, R = b != null ? p.get(b) : void 0, J = a != null ? p.get(a) : void 0, X = u != null ? p.get(u) : void 0, q = y != null ? p.get(y) : void 0, Z = I != null ? p.get(I) : void 0, se = c != null ? p.get(c) : void 0, j = h != null ? p.get(h) : void 0, L = _ != null ? p.get(_) : void 0, {
|
|
818
807
|
value: H,
|
|
819
808
|
cursor: ue,
|
|
820
809
|
completed: xe
|
|
821
|
-
} = k ?
|
|
810
|
+
} = k ? Te(
|
|
822
811
|
S,
|
|
823
|
-
|
|
812
|
+
V,
|
|
824
813
|
k,
|
|
825
814
|
{
|
|
826
|
-
definitions:
|
|
815
|
+
definitions: B ?? {},
|
|
827
816
|
useDefaultDefinitions: R ?? !0,
|
|
828
817
|
extraLiterals: J ?? [],
|
|
829
818
|
autofix: X ?? "none",
|
|
@@ -832,7 +821,7 @@ const Le = (t) => {
|
|
|
832
821
|
unmask: Z ?? { strategy: "none" },
|
|
833
822
|
allowMode: se ?? "all",
|
|
834
823
|
allow: d,
|
|
835
|
-
prefix:
|
|
824
|
+
prefix: j,
|
|
836
825
|
suffix: L
|
|
837
826
|
},
|
|
838
827
|
o.selectionStart ?? S.length,
|
|
@@ -845,7 +834,7 @@ const Le = (t) => {
|
|
|
845
834
|
} catch {
|
|
846
835
|
}
|
|
847
836
|
}
|
|
848
|
-
const ye =
|
|
837
|
+
const ye = ot(H, Z);
|
|
849
838
|
g?.({
|
|
850
839
|
raw: ye,
|
|
851
840
|
conformed: H,
|
|
@@ -858,47 +847,47 @@ const Le = (t) => {
|
|
|
858
847
|
...t,
|
|
859
848
|
input: le.text(
|
|
860
849
|
Y(t),
|
|
861
|
-
l.value(
|
|
850
|
+
l.value(A),
|
|
862
851
|
l.class("bc-input"),
|
|
863
|
-
n != null ?
|
|
852
|
+
n != null ? D.blur(n) : z,
|
|
864
853
|
te(
|
|
865
854
|
(o) => o instanceof HTMLInputElement ? E(
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
855
|
+
D.input(() => C(o, "input")),
|
|
856
|
+
D.change(() => C(o, "change")),
|
|
857
|
+
D.keydown((w) => {
|
|
869
858
|
if (w.key !== "Backspace" || !(t.cursor ? p.get(t.cursor)?.backspaceRubberBand ?? !0 : !0)) return;
|
|
870
|
-
const
|
|
871
|
-
if (
|
|
872
|
-
const
|
|
859
|
+
const V = o.selectionStart ?? 0, k = o.selectionEnd ?? V;
|
|
860
|
+
if (V !== k || V <= 0) return;
|
|
861
|
+
const B = o.value ?? "", R = m != null ? p.get(m) : null;
|
|
873
862
|
if (!R) return;
|
|
874
|
-
const J = f != null ? p.get(f) : void 0, X = b != null ? p.get(b) : !0, q = h != null ? p.get(h) : void 0, Z = _ != null ? p.get(_) : void 0, se =
|
|
875
|
-
typeof R == "function" ? R(
|
|
876
|
-
raw:
|
|
877
|
-
previousConformed:
|
|
878
|
-
cursor:
|
|
863
|
+
const J = f != null ? p.get(f) : void 0, X = b != null ? p.get(b) : !0, q = h != null ? p.get(h) : void 0, Z = _ != null ? p.get(_) : void 0, se = Ae(
|
|
864
|
+
typeof R == "function" ? R(B, {
|
|
865
|
+
raw: B,
|
|
866
|
+
previousConformed: B,
|
|
867
|
+
cursor: V,
|
|
879
868
|
completed: !1
|
|
880
869
|
}) : R,
|
|
881
870
|
J ?? {},
|
|
882
871
|
X ?? !0
|
|
883
|
-
),
|
|
872
|
+
), j = /* @__PURE__ */ new Set();
|
|
884
873
|
for (const L of se)
|
|
885
|
-
L.type === "literal" &&
|
|
886
|
-
if (q) for (const L of q)
|
|
887
|
-
if (Z) for (const L of Z)
|
|
888
|
-
if (
|
|
889
|
-
let L =
|
|
890
|
-
for (; L >= 0 &&
|
|
891
|
-
L >= 0 && (w.preventDefault(), w.stopPropagation(), o.value =
|
|
874
|
+
L.type === "literal" && j.add(L.char);
|
|
875
|
+
if (q) for (const L of q) j.add(L);
|
|
876
|
+
if (Z) for (const L of Z) j.add(L);
|
|
877
|
+
if (j.has(B[V - 1])) {
|
|
878
|
+
let L = V - 1;
|
|
879
|
+
for (; L >= 0 && j.has(B[L]); ) L--;
|
|
880
|
+
L >= 0 && (w.preventDefault(), w.stopPropagation(), o.value = B.slice(0, L) + B.slice(L + 1), C(o, "input"));
|
|
892
881
|
}
|
|
893
882
|
})
|
|
894
|
-
) :
|
|
883
|
+
) : z
|
|
895
884
|
)
|
|
896
885
|
)
|
|
897
886
|
})
|
|
898
887
|
);
|
|
899
888
|
};
|
|
900
889
|
function Ue(t, e, n) {
|
|
901
|
-
const s = p.map(t, (i) => i != null), r =
|
|
890
|
+
const s = p.map(t, (i) => i != null), r = M(
|
|
902
891
|
s,
|
|
903
892
|
e ?? !1
|
|
904
893
|
)((i, m) => !i || m), g = ge.clearValue;
|
|
@@ -909,19 +898,19 @@ function Ue(t, e, n) {
|
|
|
909
898
|
l.title(g),
|
|
910
899
|
l.disabled(r),
|
|
911
900
|
O({ icon: "mdi:close", size: "sm" }),
|
|
912
|
-
|
|
901
|
+
D.click((i) => {
|
|
913
902
|
i.stopPropagation(), n?.(null);
|
|
914
903
|
})
|
|
915
904
|
);
|
|
916
905
|
}
|
|
917
|
-
const
|
|
906
|
+
const $t = (t) => {
|
|
918
907
|
const { value: e, onBlur: n, onChange: s, onInput: r, rows: g } = t;
|
|
919
908
|
return W({
|
|
920
909
|
baseContainer: !0,
|
|
921
910
|
...t,
|
|
922
911
|
input: v.textarea(
|
|
923
912
|
l.class(
|
|
924
|
-
|
|
913
|
+
M(t.size ?? "md")(
|
|
925
914
|
(i) => Ye(
|
|
926
915
|
!1,
|
|
927
916
|
i ?? "md"
|
|
@@ -932,33 +921,33 @@ const Tt = (t) => {
|
|
|
932
921
|
l.rows(g ?? 3),
|
|
933
922
|
l.value(e),
|
|
934
923
|
l.class("bc-input"),
|
|
935
|
-
n != null ?
|
|
936
|
-
s != null ?
|
|
937
|
-
r != null ?
|
|
924
|
+
n != null ? D.blur(P(n)) : z,
|
|
925
|
+
s != null ? D.change(P(s)) : z,
|
|
926
|
+
r != null ? D.input(P(r)) : z
|
|
938
927
|
)
|
|
939
928
|
});
|
|
940
|
-
},
|
|
929
|
+
}, Tt = (t) => {
|
|
941
930
|
const { value: e, step: n, min: s, max: r, onBlur: g, onChange: i, onInput: m, after: f } = t, b = (_) => {
|
|
942
931
|
const u = s != null ? p.get(s) : void 0, x = r != null ? p.get(r) : void 0;
|
|
943
932
|
return u != null && _ < u ? u : x != null && _ > x ? x : _;
|
|
944
933
|
}, a = n != null ? F(N, (_) => {
|
|
945
|
-
const u =
|
|
934
|
+
const u = M(
|
|
946
935
|
e,
|
|
947
936
|
s
|
|
948
|
-
)((c, d) => d == null ? !0 : (c ?? 0) > d), x =
|
|
937
|
+
)((c, d) => d == null ? !0 : (c ?? 0) > d), x = M(
|
|
949
938
|
e,
|
|
950
939
|
r
|
|
951
940
|
)((c, d) => d == null ? !0 : (c ?? 0) < d), y = (c) => {
|
|
952
|
-
const d = p.get(e) ?? 0,
|
|
953
|
-
if (C != null &&
|
|
941
|
+
const d = p.get(e) ?? 0, $ = p.get(n), T = c?.shiftKey ? 10 : 1, A = d - $ * T, C = s != null ? p.get(s) : void 0;
|
|
942
|
+
if (C != null && A < C)
|
|
954
943
|
return;
|
|
955
|
-
const o = b(
|
|
944
|
+
const o = b(A);
|
|
956
945
|
o !== d && i && i(o);
|
|
957
|
-
},
|
|
958
|
-
const d = p.get(e) ?? 0,
|
|
959
|
-
if (C != null &&
|
|
946
|
+
}, I = (c) => {
|
|
947
|
+
const d = p.get(e) ?? 0, $ = p.get(n), T = c?.shiftKey ? 10 : 1, A = d + $ * T, C = r != null ? p.get(r) : void 0;
|
|
948
|
+
if (C != null && A > C)
|
|
960
949
|
return;
|
|
961
|
-
const o = b(
|
|
950
|
+
const o = b(A);
|
|
962
951
|
o !== d && i && i(o);
|
|
963
952
|
};
|
|
964
953
|
return ee(
|
|
@@ -970,12 +959,12 @@ const Tt = (t) => {
|
|
|
970
959
|
"bc-button bc-number-input-steppers-button bc-number-input-steppers-button--increment"
|
|
971
960
|
),
|
|
972
961
|
l.disabled(
|
|
973
|
-
|
|
962
|
+
M(
|
|
974
963
|
x,
|
|
975
964
|
t.disabled ?? !1
|
|
976
965
|
)((c, d) => !c || d)
|
|
977
966
|
),
|
|
978
|
-
|
|
967
|
+
D.click((c) => I(c)),
|
|
979
968
|
G.label(_.$.incrementValue),
|
|
980
969
|
O({ icon: "line-md:plus", size: "xs" })
|
|
981
970
|
),
|
|
@@ -986,12 +975,12 @@ const Tt = (t) => {
|
|
|
986
975
|
"bc-button bc-number-input-steppers-button bc-number-input-steppers-button--decrement"
|
|
987
976
|
),
|
|
988
977
|
l.disabled(
|
|
989
|
-
|
|
978
|
+
M(
|
|
990
979
|
u,
|
|
991
980
|
t.disabled ?? !1
|
|
992
981
|
)((c, d) => !c || d)
|
|
993
982
|
),
|
|
994
|
-
|
|
983
|
+
D.click((c) => y(c)),
|
|
995
984
|
G.label(_.$.decrementValue),
|
|
996
985
|
O({ icon: "line-md:minus", size: "xs" })
|
|
997
986
|
)
|
|
@@ -1000,58 +989,58 @@ const Tt = (t) => {
|
|
|
1000
989
|
return W({
|
|
1001
990
|
...t,
|
|
1002
991
|
input: le.number(
|
|
1003
|
-
s != null ? l.min(s) :
|
|
1004
|
-
r != null ? l.max(r) :
|
|
992
|
+
s != null ? l.min(s) : z,
|
|
993
|
+
r != null ? l.max(r) : z,
|
|
1005
994
|
Y(t),
|
|
1006
995
|
l.valueAsNumber(e),
|
|
1007
996
|
l.step(n),
|
|
1008
997
|
l.class("bc-input bc-number-input"),
|
|
1009
|
-
g != null ?
|
|
1010
|
-
i != null ?
|
|
1011
|
-
m != null ?
|
|
998
|
+
g != null ? D.blur(P(g)) : z,
|
|
999
|
+
i != null ? D.change(ke(i)) : z,
|
|
1000
|
+
m != null ? D.input(ke(m)) : z,
|
|
1012
1001
|
// Add wheel event support when step is defined
|
|
1013
|
-
n != null ?
|
|
1002
|
+
n != null ? D.wheel((_) => {
|
|
1014
1003
|
_.preventDefault();
|
|
1015
|
-
const u = p.get(e) ?? 0, x = p.get(n), y = _.shiftKey ? 10 : 1,
|
|
1004
|
+
const u = p.get(e) ?? 0, x = p.get(n), y = _.shiftKey ? 10 : 1, I = _.deltaY < 0 ? x * y : -x * y, c = b(u + I);
|
|
1016
1005
|
c !== u && i && i(c);
|
|
1017
|
-
}) :
|
|
1006
|
+
}) : z
|
|
1018
1007
|
),
|
|
1019
1008
|
after: h
|
|
1020
1009
|
});
|
|
1021
|
-
},
|
|
1010
|
+
}, ze = (t) => {
|
|
1022
1011
|
if (t == null || t === "") return null;
|
|
1023
1012
|
const e = Number(t);
|
|
1024
1013
|
return Number.isNaN(e) ? null : e;
|
|
1025
|
-
},
|
|
1014
|
+
}, zt = (t) => {
|
|
1026
1015
|
const { value: e, step: n, min: s, max: r, onBlur: g, onChange: i, onInput: m, after: f } = t, b = (u) => {
|
|
1027
1016
|
const x = s != null ? p.get(s) : void 0, y = r != null ? p.get(r) : void 0;
|
|
1028
1017
|
return x != null && u < x ? x : y != null && u > y ? y : u;
|
|
1029
1018
|
}, a = (() => {
|
|
1030
1019
|
if (n == null) return null;
|
|
1031
|
-
const u =
|
|
1020
|
+
const u = M(
|
|
1032
1021
|
e,
|
|
1033
1022
|
s
|
|
1034
|
-
)((d,
|
|
1035
|
-
const
|
|
1036
|
-
return
|
|
1037
|
-
}), x =
|
|
1023
|
+
)((d, $) => {
|
|
1024
|
+
const T = d ?? 0;
|
|
1025
|
+
return $ == null ? !0 : T > $;
|
|
1026
|
+
}), x = M(
|
|
1038
1027
|
e,
|
|
1039
1028
|
r
|
|
1040
|
-
)((d,
|
|
1041
|
-
const
|
|
1042
|
-
return
|
|
1029
|
+
)((d, $) => {
|
|
1030
|
+
const T = d ?? 0;
|
|
1031
|
+
return $ == null ? !0 : T < $;
|
|
1043
1032
|
}), y = (d) => {
|
|
1044
|
-
const
|
|
1033
|
+
const $ = p.get(e) ?? 0, T = p.get(n), A = d?.shiftKey ? 10 : 1, C = $ - T * A, o = s != null ? p.get(s) : void 0;
|
|
1045
1034
|
if (o != null && C < o) return;
|
|
1046
1035
|
const w = b(C);
|
|
1047
|
-
w !==
|
|
1048
|
-
},
|
|
1049
|
-
const
|
|
1036
|
+
w !== $ && i && i(w);
|
|
1037
|
+
}, I = (d) => {
|
|
1038
|
+
const $ = p.get(e) ?? 0, T = p.get(n), A = d?.shiftKey ? 10 : 1, C = $ + T * A, o = r != null ? p.get(r) : void 0;
|
|
1050
1039
|
if (o != null && C > o) return;
|
|
1051
1040
|
const w = b(C);
|
|
1052
|
-
w !==
|
|
1041
|
+
w !== $ && i && i(w);
|
|
1053
1042
|
};
|
|
1054
|
-
return ((d,
|
|
1043
|
+
return ((d, $) => ee(
|
|
1055
1044
|
l.class("bc-number-input-steppers"),
|
|
1056
1045
|
v.button(
|
|
1057
1046
|
l.type("button"),
|
|
@@ -1059,12 +1048,12 @@ const Tt = (t) => {
|
|
|
1059
1048
|
"bc-button bc-number-input-steppers-button bc-number-input-steppers-button--increment"
|
|
1060
1049
|
),
|
|
1061
1050
|
l.disabled(
|
|
1062
|
-
|
|
1051
|
+
M(
|
|
1063
1052
|
x,
|
|
1064
1053
|
t.disabled ?? !1
|
|
1065
|
-
)((
|
|
1054
|
+
)((T, A) => !T || A)
|
|
1066
1055
|
),
|
|
1067
|
-
|
|
1056
|
+
D.click((T) => I(T)),
|
|
1068
1057
|
G.label(d),
|
|
1069
1058
|
O({ icon: "line-md:plus", size: "xs" })
|
|
1070
1059
|
),
|
|
@@ -1074,13 +1063,13 @@ const Tt = (t) => {
|
|
|
1074
1063
|
"bc-button bc-number-input-steppers-button bc-number-input-steppers-button--decrement"
|
|
1075
1064
|
),
|
|
1076
1065
|
l.disabled(
|
|
1077
|
-
|
|
1066
|
+
M(
|
|
1078
1067
|
u,
|
|
1079
1068
|
t.disabled ?? !1
|
|
1080
|
-
)((
|
|
1069
|
+
)((T, A) => !T || A)
|
|
1081
1070
|
),
|
|
1082
|
-
|
|
1083
|
-
G.label(
|
|
1071
|
+
D.click((T) => y(T)),
|
|
1072
|
+
G.label($),
|
|
1084
1073
|
O({ icon: "line-md:minus", size: "xs" })
|
|
1085
1074
|
)
|
|
1086
1075
|
))(
|
|
@@ -1096,36 +1085,36 @@ const Tt = (t) => {
|
|
|
1096
1085
|
...t,
|
|
1097
1086
|
input: le.number(
|
|
1098
1087
|
// min/max attributes and reactive watchers (no forced correction)
|
|
1099
|
-
s != null ? l.min(s) :
|
|
1100
|
-
r != null ? l.max(r) :
|
|
1088
|
+
s != null ? l.min(s) : z,
|
|
1089
|
+
r != null ? l.max(r) : z,
|
|
1101
1090
|
Y(t),
|
|
1102
1091
|
// Represent null as empty string so the field can be cleared
|
|
1103
1092
|
l.value(p.map(e, (u) => u == null ? "" : String(u))),
|
|
1104
1093
|
l.step(n),
|
|
1105
1094
|
l.class("bc-input bc-number-input"),
|
|
1106
|
-
g != null ?
|
|
1107
|
-
i != null ?
|
|
1108
|
-
|
|
1109
|
-
const x =
|
|
1095
|
+
g != null ? D.blur(P(g)) : z,
|
|
1096
|
+
i != null ? D.change(
|
|
1097
|
+
P((u) => {
|
|
1098
|
+
const x = ze(u);
|
|
1110
1099
|
i(x);
|
|
1111
1100
|
})
|
|
1112
|
-
) :
|
|
1113
|
-
m != null ?
|
|
1114
|
-
|
|
1115
|
-
const x =
|
|
1101
|
+
) : z,
|
|
1102
|
+
m != null ? D.input(
|
|
1103
|
+
P((u) => {
|
|
1104
|
+
const x = ze(u);
|
|
1116
1105
|
m(x);
|
|
1117
1106
|
})
|
|
1118
|
-
) :
|
|
1107
|
+
) : z,
|
|
1119
1108
|
// Wheel support when step is defined
|
|
1120
|
-
n != null ?
|
|
1109
|
+
n != null ? D.wheel((u) => {
|
|
1121
1110
|
u.preventDefault();
|
|
1122
|
-
const x = p.get(e) ?? 0, y = p.get(n),
|
|
1111
|
+
const x = p.get(e) ?? 0, y = p.get(n), I = u.shiftKey ? 10 : 1, c = u.deltaY < 0 ? y * I : -y * I, d = b(x + c);
|
|
1123
1112
|
d !== x && i && i(d);
|
|
1124
|
-
}) :
|
|
1113
|
+
}) : z
|
|
1125
1114
|
),
|
|
1126
1115
|
after: _
|
|
1127
1116
|
});
|
|
1128
|
-
},
|
|
1117
|
+
}, St = (t) => {
|
|
1129
1118
|
const e = {
|
|
1130
1119
|
type: "pattern",
|
|
1131
1120
|
pattern: /[0-9A-Fa-f]/,
|
|
@@ -1183,25 +1172,25 @@ async function he() {
|
|
|
1183
1172
|
return t.Temporal || (t.Temporal = n), n;
|
|
1184
1173
|
})), be);
|
|
1185
1174
|
}
|
|
1186
|
-
const
|
|
1175
|
+
const ct = (t, e) => e ? Ce(he, {
|
|
1187
1176
|
then: t,
|
|
1188
1177
|
pending: e.pending,
|
|
1189
1178
|
error: e.error
|
|
1190
|
-
}) : Ce(he, t),
|
|
1191
|
-
function
|
|
1179
|
+
}) : Ce(he, t), at = /^P(\d+([YMWD]|$)){0,4}(T(\d+([HMS]|$)){0,3})?$/i, ut = /^P(?:(\d+Y)?(\d+M)?(\d+W)?(\d+D)?)(T(\d+H)?(\d+M)?(\d+S)?)?$/i;
|
|
1180
|
+
function pt(t) {
|
|
1192
1181
|
return {
|
|
1193
1182
|
mask: null,
|
|
1194
1183
|
allowMode: "custom",
|
|
1195
1184
|
allow: (e) => /[0-9ptwdhms]/i.test(e),
|
|
1196
1185
|
pipe: (e) => {
|
|
1197
1186
|
const n = e.toUpperCase();
|
|
1198
|
-
return n.length === 0 ? n : !n.startsWith("P") || !
|
|
1187
|
+
return n.length === 0 ? n : !n.startsWith("P") || !at.test(n) ? !1 : n;
|
|
1199
1188
|
},
|
|
1200
1189
|
completion: {
|
|
1201
1190
|
mode: "custom",
|
|
1202
1191
|
isComplete: (e) => {
|
|
1203
1192
|
const n = e.toUpperCase();
|
|
1204
|
-
if (!
|
|
1193
|
+
if (!ut.test(n)) return !1;
|
|
1205
1194
|
try {
|
|
1206
1195
|
return t(n), !0;
|
|
1207
1196
|
} catch {
|
|
@@ -1218,18 +1207,18 @@ const Se = (t, e) => {
|
|
|
1218
1207
|
} catch {
|
|
1219
1208
|
return null;
|
|
1220
1209
|
}
|
|
1221
|
-
},
|
|
1210
|
+
}, Vt = (t) => {
|
|
1222
1211
|
const { value: e, onChange: n, onInput: s, after: r, disabled: g, onBlur: i } = t, m = () => {
|
|
1223
1212
|
const a = Ue(e, g, n ?? s);
|
|
1224
1213
|
return r != null ? E(a, r) : a;
|
|
1225
|
-
}, f = t.placeholder != null ?
|
|
1226
|
-
return
|
|
1214
|
+
}, f = t.placeholder != null ? z : l.placeholder("P0DT0H0M0S");
|
|
1215
|
+
return ct(
|
|
1227
1216
|
(a) => Le({
|
|
1228
1217
|
...t,
|
|
1229
1218
|
value: p.map(e, (h) => h?.toString() ?? ""),
|
|
1230
1219
|
onChange: n ? (h) => n(h === "" ? null : a.Duration.from(h)) : void 0,
|
|
1231
1220
|
onInput: void 0,
|
|
1232
|
-
...
|
|
1221
|
+
...pt(a.Duration.from),
|
|
1233
1222
|
placeholder: "P0DT0H0M0S",
|
|
1234
1223
|
after: m()
|
|
1235
1224
|
}),
|
|
@@ -1240,9 +1229,9 @@ const Se = (t, e) => {
|
|
|
1240
1229
|
h(null);
|
|
1241
1230
|
return;
|
|
1242
1231
|
}
|
|
1243
|
-
const y = globalThis.Temporal,
|
|
1244
|
-
if (
|
|
1245
|
-
h(
|
|
1232
|
+
const y = globalThis.Temporal, I = Se(y, x);
|
|
1233
|
+
if (I != null) {
|
|
1234
|
+
h(I);
|
|
1246
1235
|
return;
|
|
1247
1236
|
}
|
|
1248
1237
|
he().then((c) => {
|
|
@@ -1258,15 +1247,15 @@ const Se = (t, e) => {
|
|
|
1258
1247
|
l.value(p.map(e, (h) => h?.toString() ?? "")),
|
|
1259
1248
|
l.class("bc-input"),
|
|
1260
1249
|
f,
|
|
1261
|
-
i != null ?
|
|
1262
|
-
n != null ?
|
|
1263
|
-
s != null ?
|
|
1250
|
+
i != null ? D.blur(() => i()) : z,
|
|
1251
|
+
n != null ? D.change(a(n)) : z,
|
|
1252
|
+
s != null ? D.input(a(s)) : z
|
|
1264
1253
|
),
|
|
1265
1254
|
after: m()
|
|
1266
1255
|
});
|
|
1267
1256
|
} }
|
|
1268
1257
|
);
|
|
1269
|
-
},
|
|
1258
|
+
}, Bt = (t) => {
|
|
1270
1259
|
const { value: e, onBlur: n, onChange: s, onInput: r } = t;
|
|
1271
1260
|
return W({
|
|
1272
1261
|
...t,
|
|
@@ -1274,12 +1263,12 @@ const Se = (t, e) => {
|
|
|
1274
1263
|
Y(t),
|
|
1275
1264
|
l.value(e),
|
|
1276
1265
|
l.class("bc-input"),
|
|
1277
|
-
n != null ?
|
|
1278
|
-
s != null ?
|
|
1279
|
-
r != null ?
|
|
1266
|
+
n != null ? D.blur(P(n)) : z,
|
|
1267
|
+
s != null ? D.change(P(s)) : z,
|
|
1268
|
+
r != null ? D.input(P(r)) : z
|
|
1280
1269
|
)
|
|
1281
1270
|
});
|
|
1282
|
-
},
|
|
1271
|
+
}, ft = (t) => {
|
|
1283
1272
|
const {
|
|
1284
1273
|
controller: e,
|
|
1285
1274
|
element: n,
|
|
@@ -1293,7 +1282,7 @@ const Se = (t, e) => {
|
|
|
1293
1282
|
removeDisabled: a,
|
|
1294
1283
|
addDisabled: h
|
|
1295
1284
|
} = t, _ = p.toSignal(b).map((y) => y === "aside"), u = (y) => {
|
|
1296
|
-
const
|
|
1285
|
+
const I = U(
|
|
1297
1286
|
r ?? !1,
|
|
1298
1287
|
() => v.div(
|
|
1299
1288
|
l.class("bc-group--align-center"),
|
|
@@ -1344,7 +1333,7 @@ const Se = (t, e) => {
|
|
|
1344
1333
|
(d) => ce({
|
|
1345
1334
|
size: "xs",
|
|
1346
1335
|
// Use a lowercase label to satisfy tests that query with [aria-label*="remove"]
|
|
1347
|
-
label: p.map(d.$.removeItem, (
|
|
1336
|
+
label: p.map(d.$.removeItem, ($) => $.toLowerCase()),
|
|
1348
1337
|
color: "danger",
|
|
1349
1338
|
disabled: a,
|
|
1350
1339
|
onClick: y.remove
|
|
@@ -1359,8 +1348,8 @@ const Se = (t, e) => {
|
|
|
1359
1348
|
ee(
|
|
1360
1349
|
l.class("bc-stack--align-center"),
|
|
1361
1350
|
U(
|
|
1362
|
-
e.signal.map((
|
|
1363
|
-
() =>
|
|
1351
|
+
e.signal.map(($) => $.length > 1),
|
|
1352
|
+
() => I
|
|
1364
1353
|
),
|
|
1365
1354
|
c
|
|
1366
1355
|
)
|
|
@@ -1371,8 +1360,8 @@ const Se = (t, e) => {
|
|
|
1371
1360
|
re(
|
|
1372
1361
|
l.class("bc-group--gap-2 bc-group--justify-between"),
|
|
1373
1362
|
U(
|
|
1374
|
-
e.signal.map((
|
|
1375
|
-
() =>
|
|
1363
|
+
e.signal.map(($) => $.length > 1),
|
|
1364
|
+
() => I,
|
|
1376
1365
|
() => v.div()
|
|
1377
1366
|
),
|
|
1378
1367
|
c
|
|
@@ -1380,7 +1369,7 @@ const Se = (t, e) => {
|
|
|
1380
1369
|
)
|
|
1381
1370
|
);
|
|
1382
1371
|
}, x = U(
|
|
1383
|
-
|
|
1372
|
+
M(i, m)((y, I) => y && I != null),
|
|
1384
1373
|
() => re(
|
|
1385
1374
|
l.class(
|
|
1386
1375
|
"bc-group--gap-2 bc-group--align-center bc-group--justify-center"
|
|
@@ -1390,11 +1379,11 @@ const Se = (t, e) => {
|
|
|
1390
1379
|
size: "sm",
|
|
1391
1380
|
variant: "filled",
|
|
1392
1381
|
onClick: () => e.push(m()),
|
|
1393
|
-
disabled:
|
|
1382
|
+
disabled: M(
|
|
1394
1383
|
e.disabled,
|
|
1395
1384
|
h ?? !1
|
|
1396
1385
|
)(
|
|
1397
|
-
(y,
|
|
1386
|
+
(y, I) => y || I
|
|
1398
1387
|
)
|
|
1399
1388
|
},
|
|
1400
1389
|
F(
|
|
@@ -1409,14 +1398,14 @@ const Se = (t, e) => {
|
|
|
1409
1398
|
)
|
|
1410
1399
|
);
|
|
1411
1400
|
return E(
|
|
1412
|
-
|
|
1401
|
+
st(
|
|
1413
1402
|
e,
|
|
1414
1403
|
(y) => u(y)(n(y)),
|
|
1415
1404
|
s
|
|
1416
1405
|
),
|
|
1417
1406
|
x
|
|
1418
1407
|
);
|
|
1419
|
-
},
|
|
1408
|
+
}, Mt = (t, ...e) => {
|
|
1420
1409
|
const {
|
|
1421
1410
|
controller: n,
|
|
1422
1411
|
element: s,
|
|
@@ -1431,10 +1420,10 @@ const Se = (t, e) => {
|
|
|
1431
1420
|
addDisabled: _,
|
|
1432
1421
|
...u
|
|
1433
1422
|
} = t;
|
|
1434
|
-
return
|
|
1423
|
+
return Be(
|
|
1435
1424
|
{
|
|
1436
1425
|
...u,
|
|
1437
|
-
content:
|
|
1426
|
+
content: ft({
|
|
1438
1427
|
controller: n,
|
|
1439
1428
|
element: s,
|
|
1440
1429
|
separator: r,
|
|
@@ -1451,7 +1440,7 @@ const Se = (t, e) => {
|
|
|
1451
1440
|
...e
|
|
1452
1441
|
);
|
|
1453
1442
|
};
|
|
1454
|
-
class
|
|
1443
|
+
class At extends fe {
|
|
1455
1444
|
branches;
|
|
1456
1445
|
activeBranch;
|
|
1457
1446
|
#t;
|
|
@@ -1480,7 +1469,7 @@ class Ut extends fe {
|
|
|
1480
1469
|
(u) => h.detect(u) ? u : h.defaultValue(),
|
|
1481
1470
|
m
|
|
1482
1471
|
),
|
|
1483
|
-
r.map(
|
|
1472
|
+
r.map(Ie([a])),
|
|
1484
1473
|
{
|
|
1485
1474
|
disabled: this.disabled,
|
|
1486
1475
|
validationMode: this.parent.validationMode
|
|
@@ -1522,7 +1511,7 @@ class Ut extends fe {
|
|
|
1522
1511
|
(r) => n.detect(r) ? r : n.defaultValue(),
|
|
1523
1512
|
Q
|
|
1524
1513
|
),
|
|
1525
|
-
this.status.map(
|
|
1514
|
+
this.status.map(Ie([e])),
|
|
1526
1515
|
{
|
|
1527
1516
|
disabled: this.disabled,
|
|
1528
1517
|
validationMode: this.parent.validationMode
|
|
@@ -1561,19 +1550,19 @@ class Ut extends fe {
|
|
|
1561
1550
|
return this.branches.find((n) => n.key === e);
|
|
1562
1551
|
}
|
|
1563
1552
|
}
|
|
1564
|
-
function
|
|
1553
|
+
function Lt(t) {
|
|
1565
1554
|
return t.transform(
|
|
1566
1555
|
(e) => e ?? null,
|
|
1567
1556
|
(e) => e ?? void 0
|
|
1568
1557
|
);
|
|
1569
1558
|
}
|
|
1570
|
-
function
|
|
1559
|
+
function Ut(t) {
|
|
1571
1560
|
return t.transform(
|
|
1572
1561
|
(e) => e ?? "",
|
|
1573
1562
|
(e) => e === "" ? void 0 : e
|
|
1574
1563
|
);
|
|
1575
1564
|
}
|
|
1576
|
-
function
|
|
1565
|
+
function Et(t) {
|
|
1577
1566
|
return t.transform(
|
|
1578
1567
|
(e) => e ?? void 0,
|
|
1579
1568
|
(e) => e ?? null
|
|
@@ -1582,53 +1571,50 @@ function Ft(t) {
|
|
|
1582
1571
|
function ie(t) {
|
|
1583
1572
|
return t !== null && typeof t == "object" && !Array.isArray(t) && Object.prototype.toString.call(t) === "[object Object]";
|
|
1584
1573
|
}
|
|
1585
|
-
function
|
|
1574
|
+
function dt(t, e) {
|
|
1586
1575
|
if (e == null)
|
|
1587
|
-
return
|
|
1576
|
+
return Ve(t);
|
|
1588
1577
|
if (t == null)
|
|
1589
1578
|
return e;
|
|
1590
1579
|
if (ie(t) && ie(e)) {
|
|
1591
1580
|
const n = { ...e };
|
|
1592
1581
|
for (const s of Object.keys(t))
|
|
1593
|
-
n[s] === void 0 ? n[s] =
|
|
1582
|
+
n[s] === void 0 ? n[s] = Ve(t[s]) : ie(t[s]) && ie(n[s]) && (n[s] = dt(t[s], n[s]));
|
|
1594
1583
|
return n;
|
|
1595
1584
|
}
|
|
1596
1585
|
return e;
|
|
1597
1586
|
}
|
|
1598
|
-
function
|
|
1587
|
+
function Ve(t) {
|
|
1599
1588
|
return typeof structuredClone == "function" ? structuredClone(t) : JSON.parse(JSON.stringify(t));
|
|
1600
1589
|
}
|
|
1601
1590
|
export {
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
Dt as F,
|
|
1591
|
+
ft as B,
|
|
1592
|
+
et as E,
|
|
1593
|
+
Ct as F,
|
|
1606
1594
|
re as G,
|
|
1607
|
-
|
|
1595
|
+
Mt as L,
|
|
1608
1596
|
Le as M,
|
|
1609
1597
|
Ue as N,
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
bt as j,
|
|
1598
|
+
kt as S,
|
|
1599
|
+
$t as T,
|
|
1600
|
+
St as U,
|
|
1601
|
+
ct as W,
|
|
1602
|
+
Bt as a,
|
|
1603
|
+
nt as b,
|
|
1604
|
+
Vt as c,
|
|
1605
|
+
pt as d,
|
|
1606
|
+
Ut as e,
|
|
1607
|
+
zt as f,
|
|
1608
|
+
Tt as g,
|
|
1609
|
+
It as h,
|
|
1610
|
+
At as i,
|
|
1611
|
+
dt as j,
|
|
1625
1612
|
de as k,
|
|
1626
1613
|
Et as l,
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
Ot as t
|
|
1614
|
+
st as m,
|
|
1615
|
+
lt as n,
|
|
1616
|
+
Dt as o,
|
|
1617
|
+
tt as p,
|
|
1618
|
+
he as q,
|
|
1619
|
+
Lt as t
|
|
1634
1620
|
};
|