@tempots/beatui 0.87.3 → 0.87.4
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/{ar-DjMvIww5.js → ar-Dn7AkNO5.js} +1 -1
- package/dist/auth/index.cjs.js +1 -1
- package/dist/auth/index.es.js +1 -1
- package/dist/{auth-divider-BIefTDoO.js → auth-divider-BZPM2Xd3.js} +101 -103
- package/dist/{auth-divider-V_Se6Qhe.cjs → auth-divider-Cj-xJxF_.cjs} +1 -1
- package/dist/better-auth/index.cjs.js +1 -1
- package/dist/better-auth/index.es.js +12 -12
- package/dist/{colors-BmLYKmoH.js → colors-CatA-RXf.js} +9 -9
- package/dist/{de-wChFYqM4.js → de-QYhBiWv7.js} +1 -1
- package/dist/deep-merge-BmxkFFi1.cjs +1 -0
- package/dist/{deep-merge-BRqRzEQs.js → deep-merge-D076XcC5.js} +152 -156
- package/dist/{duration-input-BDEb1Bb7.js → duration-input-6RN16H08.js} +5 -5
- package/dist/{duration-input-BtFL5Vjx.cjs → duration-input-CJU-yeKk.cjs} +1 -1
- package/dist/{editor-toolbar-group-CwCCGzEC.js → editor-toolbar-group-DRCbXeQP.js} +6 -3
- package/dist/{es-CmPF3IGl.js → es-Ba31pZAd.js} +1 -1
- package/dist/{fa-D696e75R.js → fa-DvLjl_Ha.js} +1 -1
- package/dist/{fr-B0jeX1Hx.js → fr-D64yBpAp.js} +1 -1
- package/dist/{he-SgAsIYJA.js → he-DHZGEQ7C.js} +1 -1
- package/dist/{hi-s9oiIihq.js → hi-CeAXVCvp.js} +1 -1
- package/dist/{index-CaWDj1Vg.cjs → index-BIGCKfNz.cjs} +10 -10
- package/dist/{index-DdqGL9Jk.js → index-BTITknMc.js} +701 -684
- package/dist/{index-qa82MK4Z.cjs → index-Bso_SkEn.cjs} +1 -1
- package/dist/{index-B0t-nt7i.js → index-DWDC-qRY.js} +4 -4
- package/dist/{index-D2_J_-XS.js → index-rHnH2IGb.js} +77 -77
- package/dist/index.cjs.js +2 -2
- package/dist/index.es.js +1015 -1018
- package/dist/{index.esm-ChUrm4xR.js → index.esm-By0m3ki1.js} +3 -3
- package/dist/{input-container-DhUiLmXE.js → input-container-BTyCOubf.js} +1 -1
- package/dist/{it-Dc4IMciD.js → it-Im0KgKWL.js} +1 -1
- package/dist/{ja-D2t2g5xj.js → ja-lliCbC19.js} +1 -1
- package/dist/json-schema/index.cjs.js +1 -1
- package/dist/json-schema/index.es.js +97 -103
- package/dist/json-schema-display/index.cjs.js +1 -1
- package/dist/json-schema-display/index.es.js +15 -15
- package/dist/json-structure/index.cjs.js +1 -1
- package/dist/json-structure/index.es.js +349 -351
- package/dist/{ko-BRylA5JZ.js → ko-B9W4RBBs.js} +1 -1
- package/dist/lexical/index.cjs.js +5 -12
- package/dist/lexical/index.es.js +54 -84
- package/dist/{menu-Ui4lUPHM.js → menu-CV85y3Xf.js} +1 -1
- package/dist/{modal-Dkje8L_l.js → modal-CD3DwAlD.js} +5 -5
- package/dist/{modal-Coenk8Fy.cjs → modal-jJMS0ZlW.cjs} +1 -1
- package/dist/monaco/index.es.js +1 -1
- package/dist/{nl-Dh7LUWAn.js → nl-ba5SyHsw.js} +1 -1
- package/dist/notice-9lpZ-VDn.cjs +1 -0
- package/dist/{notice-BmkckDsD.js → notice-Cc26kgiB.js} +26 -28
- package/dist/{oneof-branch-detection-Vov_e3kI.cjs → oneof-branch-detection-BsGhMslW.cjs} +6 -6
- package/dist/{oneof-branch-detection-BED_n2MT.js → oneof-branch-detection-DiAtgGQH.js} +1740 -1734
- package/dist/{pl-XEG-p1Q9.js → pl-DCiJAZWC.js} +1 -1
- package/dist/prosemirror/index.cjs.js +1 -1
- package/dist/prosemirror/index.es.js +1 -1
- package/dist/{pt-DYsDA2sZ.js → pt-Df5bAGWA.js} +1 -1
- package/dist/{ru-BTKBykp-.js → ru-Dg-c670Y.js} +1 -1
- package/dist/stack-4VUGISn6.cjs +1 -0
- package/dist/{stack-BJgsPJ9A.js → stack-Bm-UZosx.js} +145 -139
- package/dist/tailwind/preset.es.js +2 -2
- package/dist/tailwind/vite-plugin.es.js +1 -1
- package/dist/{text-input-BZmAB3_o.js → text-input-Cux5iiUC.js} +5 -5
- package/dist/{theme-BzpMLdvH.js → theme-kQZEeusG.js} +4 -4
- package/dist/{toolbar-Pdj-F80l.js → toolbar-DYmKrtic.js} +1 -1
- package/dist/{tr-Cp8ZCUic.js → tr-Dhpiq0u_.js} +1 -1
- package/dist/{translations-BGblCUBj.js → translations-BLlzvZgw.js} +30 -30
- package/dist/{translations-jUYta1_1.js → translations-COSDzhvR.js} +1 -1
- package/dist/types/auth-i18n/translations.d.ts +2 -2
- package/dist/types/beatui-i18n/translations.d.ts +2 -2
- package/dist/types/better-auth/components/authenticated.d.ts +2 -2
- package/dist/types/better-auth/components/better-auth-container.d.ts +1 -1
- package/dist/types/better-auth/i18n/translations.d.ts +2 -2
- package/dist/types/better-auth/provider.d.ts +2 -2
- package/dist/types/components/auth/auth-container.d.ts +1 -1
- package/dist/types/components/auth/auth-email-prop.d.ts +1 -1
- package/dist/types/components/beatui.d.ts +1 -1
- package/dist/types/components/button/button.d.ts +1 -1
- package/dist/types/components/content/native-pdf-preview.d.ts +1 -1
- package/dist/types/components/content/pdfjs-preview.d.ts +1 -1
- package/dist/types/components/data/icon.d.ts +1 -1
- package/dist/types/components/data/page-drop-zone.d.ts +1 -1
- package/dist/types/components/data/unstyled-drop-zone.d.ts +1 -1
- package/dist/types/components/editor-toolbar/editor-toolbar-button.d.ts +1 -1
- package/dist/types/components/editor-toolbar/editor-toolbar-group.d.ts +1 -1
- package/dist/types/components/form/control/control.d.ts +2 -2
- package/dist/types/components/form/control/ensure-control.d.ts +1 -1
- package/dist/types/components/form/control/list-control.d.ts +1 -1
- package/dist/types/components/form/controller/color-controller.d.ts +4 -4
- package/dist/types/components/form/input/appearance-selector.d.ts +2 -2
- package/dist/types/components/form/input/base64-input.d.ts +1 -1
- package/dist/types/components/form/input/base64s-input.d.ts +1 -1
- package/dist/types/components/form/input/combobox-tags-input.d.ts +1 -1
- package/dist/types/components/form/input/email-input.d.ts +1 -1
- package/dist/types/components/form/input/file-input.d.ts +1 -1
- package/dist/types/components/form/input/files-input.d.ts +1 -1
- package/dist/types/components/form/input/input-options.d.ts +1 -1
- package/dist/types/components/form/input/list-input.d.ts +1 -1
- package/dist/types/components/form/input/nullable-base64-input.d.ts +1 -1
- package/dist/types/components/form/input/nullable-plain-date-input.d.ts +12 -12
- package/dist/types/components/form/input/nullable-plain-date-time-input.d.ts +12 -12
- package/dist/types/components/form/input/nullable-plain-time-input.d.ts +12 -12
- package/dist/types/components/form/input/nullable-plain-year-month-input.d.ts +12 -12
- package/dist/types/components/form/input/password-input.d.ts +1 -1
- package/dist/types/components/form/input/plain-date-input.d.ts +12 -12
- package/dist/types/components/form/input/plain-date-time-input.d.ts +12 -12
- package/dist/types/components/form/input/plain-time-input.d.ts +12 -12
- package/dist/types/components/form/input/plain-year-month-input.d.ts +12 -12
- package/dist/types/components/form/input/select-tags-input.d.ts +3 -3
- package/dist/types/components/form/use-form.d.ts +3 -3
- package/dist/types/components/i18n/locale-direction.d.ts +1 -1
- package/dist/types/components/i18n/locale-selector.d.ts +1 -1
- package/dist/types/components/i18n/locale.d.ts +1 -1
- package/dist/types/components/i18n/make-i18nprovider.d.ts +2 -2
- package/dist/types/components/layout/app-shell.d.ts +1 -1
- package/dist/types/components/lexical/code/language-selector.d.ts +1 -1
- package/dist/types/components/lexical/floating/block-handle.d.ts +1 -1
- package/dist/types/components/lexical/floating/floating-toolbar.d.ts +1 -1
- package/dist/types/components/lexical/floating/slash-command-palette.d.ts +1 -1
- package/dist/types/components/lexical/table/table-controls.d.ts +1 -1
- package/dist/types/components/lexical/toolbar/lexical-toolbar.d.ts +1 -1
- package/dist/types/components/lexical/toolbar/toolbar-helpers.d.ts +2 -2
- package/dist/types/components/media/pdf-page-viewer.d.ts +1 -1
- package/dist/types/components/misc/notification-provider.d.ts +2 -2
- package/dist/types/components/navigation/link/button-link.d.ts +1 -1
- package/dist/types/components/navigation/link/link.d.ts +1 -1
- package/dist/types/components/navigation/link/navigation-link.d.ts +1 -1
- package/dist/types/components/navigation/pagination.d.ts +1 -1
- package/dist/types/components/navigation/sidebar/sidebar.d.ts +2 -2
- package/dist/types/components/navigation/toolbar/toolbar.d.ts +1 -1
- package/dist/types/components/prosemirror/link-control.d.ts +1 -1
- package/dist/types/components/prosemirror/prosemirror-toolbar.d.ts +1 -1
- package/dist/types/components/prosemirror/utils.d.ts +2 -2
- package/dist/types/components/theme/theme.d.ts +2 -2
- package/dist/types/i18n/translate.d.ts +1 -1
- package/dist/types/utils/delay-signal.d.ts +1 -1
- package/dist/types/utils/use-animated-toggle.d.ts +22 -22
- package/dist/{ur-DkIYJxsF.js → ur-Lr1p8f9y.js} +1 -1
- package/dist/{use-animated-toggle-89fKlXxy.js → use-animated-toggle-C7PTmnZi.js} +7 -7
- package/dist/{use-form-BSvvERhX.js → use-form-BfzX3bwL.js} +13 -13
- package/dist/{use-form-B_mCauP0.cjs → use-form-i97PToWB.cjs} +1 -1
- package/dist/{vi-DKw6PBja.js → vi-jozfaxSj.js} +1 -1
- package/dist/widget-customization-BZqPoojo.cjs +1 -0
- package/dist/{widget-customization-DFr3ycD7.js → widget-customization-fMNSVtuP.js} +29 -29
- package/dist/{zh-CaKHseXJ.js → zh-BBYKq49d.js} +1 -1
- package/package.json +35 -31
- package/dist/deep-merge-CvN7Xvd1.cjs +0 -1
- package/dist/notice-DMK7dx9a.cjs +0 -1
- package/dist/stack-DcZ_u50f.cjs +0 -1
- package/dist/widget-customization-BASfRpF7.cjs +0 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { S as _, L as ee, M as
|
|
9
|
-
import { I as ie, b as A, M as de, a as ke, C as
|
|
1
|
+
import { attr as j, Value as O, Fragment as ce, Empty as U, WithElement as Te, Use as K, html as I, When as oe, computedOf as M, prop as X, style as Me, Ensure as We, MapSignal as re, Async as mt, OnDispose as yt } from "@tempots/dom";
|
|
2
|
+
import { m as ve, c as $e, g as Le, a as Be, r as De, e as gt, f as je, S as ht, b as bt, h as we, i as vt, A as wt } from "../oneof-branch-detection-DiAtgGQH.js";
|
|
3
|
+
import { j as Ir, k as Nr, l as Rr, n as Vr, o as Er, p as Fr, q as Tr } from "../oneof-branch-detection-DiAtgGQH.js";
|
|
4
|
+
import { B as q } from "../translations-BLlzvZgw.js";
|
|
5
|
+
import { P as St, E as At, N as xe } from "../notice-Cc26kgiB.js";
|
|
6
|
+
import { g as Oe, B as jt, N as H, a as fe, b as Ot, C as kt, c as Ct, d as Pt, e as It, f as Nt, h as Rt, i as Vt, S as Et, j as Ft, R as Tt, k as Mt, E as _e, W as Wt } from "../widget-customization-fMNSVtuP.js";
|
|
7
|
+
import { l as Wr, m as $r, n as Lr, o as Br } from "../widget-customization-fMNSVtuP.js";
|
|
8
|
+
import { S as _, L as ee, M as $t, i as $ } from "../stack-Bm-UZosx.js";
|
|
9
|
+
import { I as ie, b as A, M as de, a as ke, C as Ue, f as Lt, A as Bt, g as Dt } from "../use-form-BfzX3bwL.js";
|
|
10
|
+
import { _ as Ke } from "../string-DYyMxBl-.js";
|
|
11
|
+
import { S as xt, b as _t, N as qe, W as Ut, c as Kt, t as te, e as Q, T as qt, U as Jt, f as pe, g as zt, M as ae, G as Ht, h as Gt, L as Xt, i as Yt, j as Zt } from "../deep-merge-D076XcC5.js";
|
|
10
12
|
import { r as V } from "../utils-DEbsp9Q9.js";
|
|
11
|
-
import { T as
|
|
12
|
-
import {
|
|
13
|
-
import { B as
|
|
14
|
-
import { l as Je } from "../colors-BmLYKmoH.js";
|
|
15
|
-
import { B as ze } from "../input-container-DhUiLmXE.js";
|
|
13
|
+
import { T as Qt } from "../text-input-Cux5iiUC.js";
|
|
14
|
+
import { l as Je } from "../colors-CatA-RXf.js";
|
|
15
|
+
import { B as ze } from "../input-container-BTyCOubf.js";
|
|
16
16
|
function en(e) {
|
|
17
17
|
if (!e || typeof e != "object") return !1;
|
|
18
18
|
const t = e;
|
|
@@ -22,7 +22,7 @@ function tn(e, t, n, r = []) {
|
|
|
22
22
|
if (!n)
|
|
23
23
|
return null;
|
|
24
24
|
try {
|
|
25
|
-
if (
|
|
25
|
+
if ($e(n, e)(t)) {
|
|
26
26
|
const a = e.title || "disallowed schema";
|
|
27
27
|
return {
|
|
28
28
|
path: r,
|
|
@@ -72,7 +72,7 @@ function nn(e, t, n, r = []) {
|
|
|
72
72
|
function He(e, t, n) {
|
|
73
73
|
if (!n || !e.if || typeof e.if != "object") return null;
|
|
74
74
|
try {
|
|
75
|
-
if (
|
|
75
|
+
if ($e(n, e.if)(t)) {
|
|
76
76
|
const s = e.then;
|
|
77
77
|
if (s && typeof s == "object")
|
|
78
78
|
return s;
|
|
@@ -190,7 +190,7 @@ function E({
|
|
|
190
190
|
return a.factory(i);
|
|
191
191
|
}
|
|
192
192
|
if (r != null) {
|
|
193
|
-
const a =
|
|
193
|
+
const a = Oe.get(r);
|
|
194
194
|
if (a)
|
|
195
195
|
return a.factory(i);
|
|
196
196
|
}
|
|
@@ -199,7 +199,7 @@ function E({
|
|
|
199
199
|
if (a)
|
|
200
200
|
return a.registration.factory(i);
|
|
201
201
|
}
|
|
202
|
-
const s =
|
|
202
|
+
const s = Oe.findBestWidget(e);
|
|
203
203
|
return s ? s.registration.factory(i) : null;
|
|
204
204
|
}
|
|
205
205
|
function Xe(e) {
|
|
@@ -216,14 +216,14 @@ function Xe(e) {
|
|
|
216
216
|
const m = Object.fromEntries(
|
|
217
217
|
t.map((p) => [a(p.value), p.label])
|
|
218
218
|
);
|
|
219
|
-
return
|
|
219
|
+
return xt({
|
|
220
220
|
options: m,
|
|
221
221
|
value: O.map(n, (p) => a(p)),
|
|
222
222
|
onChange: (p) => r(o(p)),
|
|
223
223
|
size: s
|
|
224
224
|
});
|
|
225
225
|
}
|
|
226
|
-
return
|
|
226
|
+
return _t({
|
|
227
227
|
options: t.map((m) => ({
|
|
228
228
|
type: "value",
|
|
229
229
|
value: m.value,
|
|
@@ -371,8 +371,8 @@ function ln(e) {
|
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
373
|
const un = (e) => {
|
|
374
|
-
const { value: t, onBlur: n, onChange: r, onInput: i, after: s, disabled: a, ...o } = e, l =
|
|
375
|
-
return
|
|
374
|
+
const { value: t, onBlur: n, onChange: r, onInput: i, after: s, disabled: a, ...o } = e, l = qe(t, a, r ?? i);
|
|
375
|
+
return jt({
|
|
376
376
|
...o,
|
|
377
377
|
value: O.map(t, (u) => u ?? void 0),
|
|
378
378
|
onChange: r != null ? (u) => r(u ?? null) : void 0,
|
|
@@ -389,19 +389,19 @@ function Ce({
|
|
|
389
389
|
const r = ln(e), i = !e.isNullable, s = () => i ? te(n) : n;
|
|
390
390
|
switch (r?.format) {
|
|
391
391
|
case "email":
|
|
392
|
-
return A(
|
|
392
|
+
return A(Rt, {
|
|
393
393
|
...t,
|
|
394
394
|
controller: s()
|
|
395
395
|
});
|
|
396
396
|
case "date":
|
|
397
|
-
return de(
|
|
397
|
+
return de(Nt, {
|
|
398
398
|
...t,
|
|
399
399
|
controller: s(),
|
|
400
400
|
toInput: (a) => a == null ? null : new Date(a),
|
|
401
401
|
fromInput: (a) => a?.toISOString().split("T")[0] ?? null
|
|
402
402
|
});
|
|
403
403
|
case "date-time":
|
|
404
|
-
return de(
|
|
404
|
+
return de(It, {
|
|
405
405
|
...t,
|
|
406
406
|
controller: s(),
|
|
407
407
|
toInput: (a) => a == null ? null : new Date(a),
|
|
@@ -414,7 +414,7 @@ function Ce({
|
|
|
414
414
|
placeholder: "HH:MM:SS"
|
|
415
415
|
});
|
|
416
416
|
case "password":
|
|
417
|
-
return A(
|
|
417
|
+
return A(Pt, {
|
|
418
418
|
...t,
|
|
419
419
|
controller: s()
|
|
420
420
|
});
|
|
@@ -436,7 +436,7 @@ function Ce({
|
|
|
436
436
|
}
|
|
437
437
|
case "uri":
|
|
438
438
|
case "url":
|
|
439
|
-
return A(
|
|
439
|
+
return A(Ct, {
|
|
440
440
|
...t,
|
|
441
441
|
controller: s(),
|
|
442
442
|
placeholder: "https://example.com"
|
|
@@ -473,8 +473,8 @@ function Ce({
|
|
|
473
473
|
rows: 3
|
|
474
474
|
});
|
|
475
475
|
case "duration":
|
|
476
|
-
return
|
|
477
|
-
({ Duration: a }) => de(
|
|
476
|
+
return Ut(
|
|
477
|
+
({ Duration: a }) => de(Kt, {
|
|
478
478
|
...t,
|
|
479
479
|
controller: s(),
|
|
480
480
|
toInput: (o) => o == null ? null : a.from(o),
|
|
@@ -482,13 +482,13 @@ function Ce({
|
|
|
482
482
|
})
|
|
483
483
|
);
|
|
484
484
|
case "color":
|
|
485
|
-
return A(
|
|
485
|
+
return A(kt, {
|
|
486
486
|
...t,
|
|
487
487
|
controller: n,
|
|
488
488
|
displayValue: !0
|
|
489
489
|
});
|
|
490
490
|
case "uuid":
|
|
491
|
-
return A(
|
|
491
|
+
return A(Ot, {
|
|
492
492
|
...t,
|
|
493
493
|
controller: s()
|
|
494
494
|
});
|
|
@@ -541,27 +541,27 @@ function me({
|
|
|
541
541
|
return Ce({ ctx: e, options: s, controller: t });
|
|
542
542
|
switch (r) {
|
|
543
543
|
case "email":
|
|
544
|
-
return A(
|
|
544
|
+
return A(At, {
|
|
545
545
|
...s,
|
|
546
546
|
controller: Q(t)
|
|
547
547
|
});
|
|
548
548
|
case "password":
|
|
549
|
-
return A(
|
|
549
|
+
return A(St, {
|
|
550
550
|
...s,
|
|
551
551
|
controller: Q(t)
|
|
552
552
|
});
|
|
553
553
|
case "uuid":
|
|
554
|
-
return A(
|
|
554
|
+
return A(Jt, {
|
|
555
555
|
...s,
|
|
556
556
|
controller: Q(t)
|
|
557
557
|
});
|
|
558
558
|
case "textarea":
|
|
559
|
-
return A(
|
|
559
|
+
return A(qt, {
|
|
560
560
|
...s,
|
|
561
561
|
controller: Q(t)
|
|
562
562
|
});
|
|
563
563
|
default:
|
|
564
|
-
return A(
|
|
564
|
+
return A(Qt, {
|
|
565
565
|
...s,
|
|
566
566
|
controller: Q(t)
|
|
567
567
|
});
|
|
@@ -605,24 +605,24 @@ function le({
|
|
|
605
605
|
switch (r.widget) {
|
|
606
606
|
case "rating":
|
|
607
607
|
const u = (typeof r.options?.max == "number" ? r.options.max : n.maximum) || 5;
|
|
608
|
-
return o ? A(
|
|
608
|
+
return o ? A(Ft, {
|
|
609
609
|
...a,
|
|
610
610
|
max: u,
|
|
611
611
|
controller: l ? te(
|
|
612
612
|
t
|
|
613
613
|
) : t
|
|
614
|
-
}) : A(
|
|
614
|
+
}) : A(Tt, {
|
|
615
615
|
...a,
|
|
616
616
|
max: u,
|
|
617
617
|
controller: t
|
|
618
618
|
});
|
|
619
619
|
case "slider":
|
|
620
|
-
return o ? A(
|
|
620
|
+
return o ? A(Vt, {
|
|
621
621
|
...a,
|
|
622
622
|
controller: l ? te(
|
|
623
623
|
t
|
|
624
624
|
) : t
|
|
625
|
-
}) : A(
|
|
625
|
+
}) : A(Et, {
|
|
626
626
|
...a,
|
|
627
627
|
controller: t
|
|
628
628
|
});
|
|
@@ -653,7 +653,7 @@ function le({
|
|
|
653
653
|
controller: l ? te(
|
|
654
654
|
t
|
|
655
655
|
) : t
|
|
656
|
-
}) : A(
|
|
656
|
+
}) : A(zt, {
|
|
657
657
|
...a,
|
|
658
658
|
controller: t
|
|
659
659
|
});
|
|
@@ -717,7 +717,7 @@ function ge({
|
|
|
717
717
|
return A(ke, {
|
|
718
718
|
...i,
|
|
719
719
|
controller: t,
|
|
720
|
-
after:
|
|
720
|
+
after: qe(
|
|
721
721
|
t.signal,
|
|
722
722
|
t.disabled,
|
|
723
723
|
() => t.change(a ? void 0 : null)
|
|
@@ -733,7 +733,7 @@ function Ze({
|
|
|
733
733
|
controller: t,
|
|
734
734
|
resolved: n
|
|
735
735
|
});
|
|
736
|
-
return r ||
|
|
736
|
+
return r || Te(() => {
|
|
737
737
|
t.change(null);
|
|
738
738
|
});
|
|
739
739
|
}
|
|
@@ -742,7 +742,7 @@ function dn({
|
|
|
742
742
|
}) {
|
|
743
743
|
return e.length === 0 ? U : K(
|
|
744
744
|
q,
|
|
745
|
-
(t) =>
|
|
745
|
+
(t) => xe(
|
|
746
746
|
{
|
|
747
747
|
variant: "warning",
|
|
748
748
|
tone: "prominent",
|
|
@@ -772,7 +772,7 @@ function pn({
|
|
|
772
772
|
}) {
|
|
773
773
|
return e.length === 0 ? U : K(
|
|
774
774
|
q,
|
|
775
|
-
(t) =>
|
|
775
|
+
(t) => xe(
|
|
776
776
|
{
|
|
777
777
|
variant: "danger",
|
|
778
778
|
tone: "prominent",
|
|
@@ -820,7 +820,7 @@ function mn({
|
|
|
820
820
|
ie({
|
|
821
821
|
layout: "horizontal",
|
|
822
822
|
label: `Include ${i}`,
|
|
823
|
-
content:
|
|
823
|
+
content: Mt({
|
|
824
824
|
value: r,
|
|
825
825
|
onChange: s,
|
|
826
826
|
size: "xs"
|
|
@@ -977,15 +977,9 @@ function vn({
|
|
|
977
977
|
if (!i)
|
|
978
978
|
return n;
|
|
979
979
|
const s = { ...Re, ...r }, a = wn(t), o = bn(i, a);
|
|
980
|
-
|
|
980
|
+
return s.clearOnHide && o.on((l) => {
|
|
981
981
|
!l && t.signal.value !== void 0 && t.change(void 0);
|
|
982
|
-
}), s.behavior)
|
|
983
|
-
case "unmount":
|
|
984
|
-
return oe(o, () => n);
|
|
985
|
-
case "hide":
|
|
986
|
-
default:
|
|
987
|
-
return n;
|
|
988
|
-
}
|
|
982
|
+
}), s.behavior === "unmount" ? oe(o, () => n) : n;
|
|
989
983
|
}
|
|
990
984
|
function wn(e) {
|
|
991
985
|
return e.signal;
|
|
@@ -1017,7 +1011,7 @@ function Sn({
|
|
|
1017
1011
|
const m = a && o ? te(
|
|
1018
1012
|
t
|
|
1019
1013
|
) : t;
|
|
1020
|
-
return
|
|
1014
|
+
return Gt({
|
|
1021
1015
|
...L({ ctx: e }),
|
|
1022
1016
|
options: u,
|
|
1023
1017
|
controller: m,
|
|
@@ -1039,10 +1033,10 @@ function An({
|
|
|
1039
1033
|
return r;
|
|
1040
1034
|
const i = e.definition;
|
|
1041
1035
|
return ce(
|
|
1042
|
-
|
|
1036
|
+
Te(() => {
|
|
1043
1037
|
O.get(t.signal) !== i.const && t.change(i.const);
|
|
1044
1038
|
}),
|
|
1045
|
-
|
|
1039
|
+
Ht($t(e.widgetLabel, ": "), ee(String(i.const)))
|
|
1046
1040
|
);
|
|
1047
1041
|
}
|
|
1048
1042
|
function tt(e, t, n) {
|
|
@@ -1086,7 +1080,7 @@ function tt(e, t, n) {
|
|
|
1086
1080
|
delete w[e], w[g] = S, r.change(w);
|
|
1087
1081
|
}, f = K(
|
|
1088
1082
|
q,
|
|
1089
|
-
(v) =>
|
|
1083
|
+
(v) => Ue({
|
|
1090
1084
|
size: "xs",
|
|
1091
1085
|
label: v.$.removeItem,
|
|
1092
1086
|
disabled: !o(
|
|
@@ -1105,9 +1099,9 @@ function tt(e, t, n) {
|
|
|
1105
1099
|
);
|
|
1106
1100
|
return I.div(
|
|
1107
1101
|
j.class("bc-object-helpers__row"),
|
|
1108
|
-
|
|
1102
|
+
Me.gridTemplateColumns("2fr 3fr min-content"),
|
|
1109
1103
|
ie({
|
|
1110
|
-
content:
|
|
1104
|
+
content: _e({
|
|
1111
1105
|
value: p,
|
|
1112
1106
|
onChange: b,
|
|
1113
1107
|
disabled: M(
|
|
@@ -1115,7 +1109,7 @@ function tt(e, t, n) {
|
|
|
1115
1109
|
d
|
|
1116
1110
|
)((v, g) => v || g)
|
|
1117
1111
|
}),
|
|
1118
|
-
error:
|
|
1112
|
+
error: We(
|
|
1119
1113
|
c,
|
|
1120
1114
|
(v) => I.div(j.class("bc-object-helpers__error"), v)
|
|
1121
1115
|
),
|
|
@@ -1180,7 +1174,7 @@ function nt(e, t, n) {
|
|
|
1180
1174
|
delete S[e], S[y] = C, r.change(S);
|
|
1181
1175
|
}, d = K(
|
|
1182
1176
|
q,
|
|
1183
|
-
(g) =>
|
|
1177
|
+
(g) => Ue({
|
|
1184
1178
|
size: "xs",
|
|
1185
1179
|
label: g.$.removeItem,
|
|
1186
1180
|
disabled: !l(
|
|
@@ -1199,9 +1193,9 @@ function nt(e, t, n) {
|
|
|
1199
1193
|
);
|
|
1200
1194
|
return I.div(
|
|
1201
1195
|
j.class("bc-object-helpers__row"),
|
|
1202
|
-
|
|
1196
|
+
Me.gridTemplateColumns("2fr 3fr min-content"),
|
|
1203
1197
|
ie({
|
|
1204
|
-
content:
|
|
1198
|
+
content: _e({
|
|
1205
1199
|
value: c,
|
|
1206
1200
|
onChange: f,
|
|
1207
1201
|
disabled: M(
|
|
@@ -1209,7 +1203,7 @@ function nt(e, t, n) {
|
|
|
1209
1203
|
v
|
|
1210
1204
|
)((g, y) => g || y)
|
|
1211
1205
|
}),
|
|
1212
|
-
error:
|
|
1206
|
+
error: We(
|
|
1213
1207
|
h,
|
|
1214
1208
|
(g) => I.div(j.class("bc-object-helpers__error"), g)
|
|
1215
1209
|
),
|
|
@@ -1420,9 +1414,9 @@ function kn({
|
|
|
1420
1414
|
config: r,
|
|
1421
1415
|
validatePropertyName: i,
|
|
1422
1416
|
helpers: s
|
|
1423
|
-
}), m =
|
|
1417
|
+
}), m = Le(e), p = [...a, l, u].filter(
|
|
1424
1418
|
Boolean
|
|
1425
|
-
), c =
|
|
1419
|
+
), c = Be(
|
|
1426
1420
|
m,
|
|
1427
1421
|
e,
|
|
1428
1422
|
p,
|
|
@@ -1478,7 +1472,7 @@ function Cn({
|
|
|
1478
1472
|
j.title(o.unevaluatedTooltip),
|
|
1479
1473
|
k.$.addLabel
|
|
1480
1474
|
)
|
|
1481
|
-
), g =
|
|
1475
|
+
), g = Le(a), y = Je(o.knownProps).filter(
|
|
1482
1476
|
([, k]) => k !== !1
|
|
1483
1477
|
), S = [
|
|
1484
1478
|
...y.map(([k]) => k),
|
|
@@ -1527,7 +1521,7 @@ function Cn({
|
|
|
1527
1521
|
}),
|
|
1528
1522
|
// Add affordance
|
|
1529
1523
|
o.apAllowed ? v : null
|
|
1530
|
-
].filter(Boolean), J =
|
|
1524
|
+
].filter(Boolean), J = Be(
|
|
1531
1525
|
g,
|
|
1532
1526
|
a,
|
|
1533
1527
|
C,
|
|
@@ -1669,7 +1663,7 @@ function jr({
|
|
|
1669
1663
|
});
|
|
1670
1664
|
if (r)
|
|
1671
1665
|
return r;
|
|
1672
|
-
const s = e.definition.allOf.filter((u) => typeof u == "object").map((u) =>
|
|
1666
|
+
const s = e.definition.allOf.filter((u) => typeof u == "object").map((u) => De(u, e.schema, e.ajv)), { mergedSchema: a, conflicts: o } = ve(s, e.path), l = e.with({
|
|
1673
1667
|
definition: a,
|
|
1674
1668
|
schemaConflicts: [...e.schemaConflicts, ...o]
|
|
1675
1669
|
});
|
|
@@ -1684,7 +1678,7 @@ function lt({
|
|
|
1684
1678
|
kind: n,
|
|
1685
1679
|
variants: r
|
|
1686
1680
|
}) {
|
|
1687
|
-
const i = r.map((f, d) =>
|
|
1681
|
+
const i = r.map((f, d) => gt(f, d, `${n} ${d + 1}`)), s = typeof e.definition == "boolean" ? { discriminator: null, type: null } : Pn(e.definition), a = M(
|
|
1688
1682
|
t.signal,
|
|
1689
1683
|
e.ajv
|
|
1690
1684
|
)((f, d) => {
|
|
@@ -1698,9 +1692,9 @@ function lt({
|
|
|
1698
1692
|
if (v !== null)
|
|
1699
1693
|
return v;
|
|
1700
1694
|
}
|
|
1701
|
-
return
|
|
1695
|
+
return je(e, f, d);
|
|
1702
1696
|
}
|
|
1703
|
-
return
|
|
1697
|
+
return je(e, f, d);
|
|
1704
1698
|
}), o = O.get(a), l = X(o >= 0 ? o : 0);
|
|
1705
1699
|
t.onDispose(l.dispose);
|
|
1706
1700
|
let u = !1;
|
|
@@ -1738,14 +1732,14 @@ function D({
|
|
|
1738
1732
|
controller: t
|
|
1739
1733
|
}) {
|
|
1740
1734
|
const n = typeof e.definition == "boolean" ? {} : e.definition;
|
|
1741
|
-
let r = n?.$ref ?
|
|
1735
|
+
let r = n?.$ref ? bt(n, e.schema) : n, i = e.with({ definition: r });
|
|
1742
1736
|
if (r?.allOf != null) {
|
|
1743
1737
|
const a = r.allOf.filter(
|
|
1744
1738
|
(o) => typeof o == "object" && o !== null
|
|
1745
1739
|
);
|
|
1746
1740
|
if (a.length > 0) {
|
|
1747
1741
|
const o = a.map(
|
|
1748
|
-
(c) =>
|
|
1742
|
+
(c) => De(c, e.schema, e.ajv)
|
|
1749
1743
|
), { mergedSchema: l, conflicts: u } = ve(o, e.path), { allOf: m, ...p } = r;
|
|
1750
1744
|
r = { ...p, ...l }, i = e.with({
|
|
1751
1745
|
definition: r,
|
|
@@ -1952,7 +1946,7 @@ function D({
|
|
|
1952
1946
|
i,
|
|
1953
1947
|
ut({
|
|
1954
1948
|
ctx: i,
|
|
1955
|
-
controller: t instanceof
|
|
1949
|
+
controller: t instanceof Bt ? t : t.array()
|
|
1956
1950
|
}),
|
|
1957
1951
|
t
|
|
1958
1952
|
)
|
|
@@ -1960,7 +1954,7 @@ function D({
|
|
|
1960
1954
|
case "object": {
|
|
1961
1955
|
const a = ot({
|
|
1962
1956
|
ctx: i,
|
|
1963
|
-
controller: t instanceof
|
|
1957
|
+
controller: t instanceof Lt ? t : t.object()
|
|
1964
1958
|
});
|
|
1965
1959
|
return i.isRoot ? R(
|
|
1966
1960
|
i,
|
|
@@ -2011,7 +2005,7 @@ function En({
|
|
|
2011
2005
|
validationMode: a,
|
|
2012
2006
|
submitting: o
|
|
2013
2007
|
}) {
|
|
2014
|
-
const l = new
|
|
2008
|
+
const l = new ht({
|
|
2015
2009
|
schema: e,
|
|
2016
2010
|
definition: e,
|
|
2017
2011
|
horizontal: !1,
|
|
@@ -2131,7 +2125,7 @@ function ut({
|
|
|
2131
2125
|
return `Must contain at most ${c.maxContains} item(s) matching ${h} (currently ${c.count})`;
|
|
2132
2126
|
}
|
|
2133
2127
|
return `Contains ${c.count} item(s) matching ${h}`;
|
|
2134
|
-
}) : null, p =
|
|
2128
|
+
}) : null, p = Xt({
|
|
2135
2129
|
...L({ ctx: e }),
|
|
2136
2130
|
createItem: () => {
|
|
2137
2131
|
const c = t.signal.value?.length ?? 0;
|
|
@@ -2215,7 +2209,7 @@ function ut({
|
|
|
2215
2209
|
function Tn(e) {
|
|
2216
2210
|
return e.map((t) => ({
|
|
2217
2211
|
key: t,
|
|
2218
|
-
label:
|
|
2212
|
+
label: Ke(t),
|
|
2219
2213
|
detect: (n) => rn(n, [t]) === t,
|
|
2220
2214
|
convert: (n) => sn(n, t),
|
|
2221
2215
|
defaultValue: () => an(t)
|
|
@@ -2238,7 +2232,7 @@ function ct({
|
|
|
2238
2232
|
(f) => f !== "null" && (f === "string" || f === "number" || f === "integer" || f === "boolean")
|
|
2239
2233
|
), u = o && l.length === s.length - 1;
|
|
2240
2234
|
u && (s = l);
|
|
2241
|
-
const m = Tn(s), p = new
|
|
2235
|
+
const m = Tn(s), p = new Yt(
|
|
2242
2236
|
t.path,
|
|
2243
2237
|
t.change,
|
|
2244
2238
|
t.signal,
|
|
@@ -2248,7 +2242,7 @@ function ct({
|
|
|
2248
2242
|
);
|
|
2249
2243
|
t.onDispose(() => p.dispose());
|
|
2250
2244
|
const c = (f) => Xe({
|
|
2251
|
-
options: s.map((d) => ({ value: d, label:
|
|
2245
|
+
options: s.map((d) => ({ value: d, label: Ke(d) })),
|
|
2252
2246
|
selected: p.activeBranch,
|
|
2253
2247
|
onChange: f,
|
|
2254
2248
|
mode: a.selector ?? "auto"
|
|
@@ -2831,7 +2825,7 @@ function rr(e, t) {
|
|
|
2831
2825
|
}
|
|
2832
2826
|
}
|
|
2833
2827
|
function ir(e) {
|
|
2834
|
-
const t = new
|
|
2828
|
+
const t = new Wt();
|
|
2835
2829
|
for (let n = 0; n < e.length; n++) {
|
|
2836
2830
|
const r = e[n], i = r.displayName ?? `custom-widget-${n}`;
|
|
2837
2831
|
t.register(i, {
|
|
@@ -2860,11 +2854,11 @@ function Or({
|
|
|
2860
2854
|
}, m) {
|
|
2861
2855
|
const p = t !== void 0 ? O.get(t) : void 0, c = Y(e);
|
|
2862
2856
|
let h;
|
|
2863
|
-
return t === void 0 ? h = c ?? {} : l ? h =
|
|
2857
|
+
return t === void 0 ? h = c ?? {} : l ? h = Zt(
|
|
2864
2858
|
c,
|
|
2865
2859
|
p
|
|
2866
|
-
) : h = p,
|
|
2867
|
-
|
|
2860
|
+
) : h = p, mt(
|
|
2861
|
+
vt(e, {
|
|
2868
2862
|
externalSchemas: n,
|
|
2869
2863
|
refResolver: r,
|
|
2870
2864
|
sanitizeAdditional: i
|
|
@@ -2883,7 +2877,7 @@ function Or({
|
|
|
2883
2877
|
v,
|
|
2884
2878
|
d
|
|
2885
2879
|
) : Z;
|
|
2886
|
-
}, { controller: C, setStatus: J } =
|
|
2880
|
+
}, { controller: C, setStatus: J } = Dt({
|
|
2887
2881
|
initialValue: h,
|
|
2888
2882
|
validationMode: w,
|
|
2889
2883
|
validateDebounceMs: a,
|
|
@@ -2908,7 +2902,7 @@ function Or({
|
|
|
2908
2902
|
}, se = () => {
|
|
2909
2903
|
x(), B(), z(), y?.dispose(), C.dispose();
|
|
2910
2904
|
}, ft = o ? ir(o) : void 0, dt = ce(
|
|
2911
|
-
|
|
2905
|
+
yt(se),
|
|
2912
2906
|
En({
|
|
2913
2907
|
schema: e,
|
|
2914
2908
|
controller: C,
|
|
@@ -2927,7 +2921,7 @@ function Or({
|
|
|
2927
2921
|
);
|
|
2928
2922
|
}
|
|
2929
2923
|
function kr(e, t) {
|
|
2930
|
-
const r = (t?.ajv ?? new
|
|
2924
|
+
const r = (t?.ajv ?? new wt({ allErrors: !0 })).compile(e);
|
|
2931
2925
|
return {
|
|
2932
2926
|
"~standard": {
|
|
2933
2927
|
version: 1,
|
|
@@ -2986,27 +2980,27 @@ export {
|
|
|
2986
2980
|
Vn as JSONSchemaOneOf,
|
|
2987
2981
|
me as JSONSchemaString,
|
|
2988
2982
|
ct as JSONSchemaUnion,
|
|
2989
|
-
|
|
2983
|
+
ht as SchemaContext,
|
|
2990
2984
|
we as ajvErrorsToControllerValidation,
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2985
|
+
Ir as ajvErrorsToDependencies,
|
|
2986
|
+
Nr as buildMessage,
|
|
2987
|
+
Rr as buildPath,
|
|
2988
|
+
Vr as clearCaches,
|
|
2989
|
+
Er as clearCachesForAjv,
|
|
2990
|
+
$e as compileWithCache,
|
|
2997
2991
|
nn as composeEffectiveObjectSchema,
|
|
2998
2992
|
kr as createAJVStandardSchema,
|
|
2999
|
-
|
|
2993
|
+
Wr as createDiagnosticWidget,
|
|
3000
2994
|
He as evaluateIfThenElseOverlay,
|
|
3001
2995
|
tn as evaluateNotViolation,
|
|
3002
2996
|
Y as extractSchemaDefaults,
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
2997
|
+
$r as forFormat,
|
|
2998
|
+
Lr as forTypeAndFormat,
|
|
2999
|
+
Br as forXUI,
|
|
3000
|
+
vt as getAjvForSchema,
|
|
3001
|
+
Fr as getCacheStats,
|
|
3008
3002
|
G as getEvaluatedProperties,
|
|
3009
3003
|
en as hasConditionalFeatures,
|
|
3010
|
-
|
|
3004
|
+
Tr as jsonPointerToSegments,
|
|
3011
3005
|
ve as mergeAllOf
|
|
3012
3006
|
};
|