@tempots/beatui 0.95.0 → 1.0.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/{ar-BVXPzVJB.cjs → ar-CuI1Jgt6.cjs} +1 -1
- package/dist/{ar-B4jDJwHQ.js → ar-DaKbK_t8.js} +87 -11
- package/dist/auth/index.cjs.js +1 -1
- package/dist/auth/index.es.js +1 -1
- package/dist/{auth-divider-BPwKk8MW.js → auth-divider-BQIhr3-R.js} +99 -98
- package/dist/auth-divider-DvnUModP.cjs +1 -0
- package/dist/beatui.css +1628 -541
- package/dist/beatui.tailwind.css +1629 -542
- package/dist/better-auth/index.cjs.js +1 -1
- package/dist/better-auth/index.es.js +9 -9
- package/dist/codehighlight/index.cjs.js +22 -0
- package/dist/codehighlight/index.es.js +76 -0
- package/dist/colors-B-p6IzX9.cjs +1 -0
- package/dist/{colors-BY0Ja_bf.js → colors-DwufPN8S.js} +18 -18
- package/dist/{de-Dd33yWzb.js → de-3MTPDS1i.js} +82 -6
- package/dist/{de-BdfPZskW.cjs → de-DthHehbh.cjs} +1 -1
- package/dist/{deep-merge-C8dSqIXI.js → deep-merge-BzIheQtH.js} +511 -517
- package/dist/deep-merge-EkjEgK0N.cjs +1 -0
- package/dist/{duration-input-IuFWywO5.cjs → duration-input-ClgYjeBa.cjs} +1 -1
- package/dist/{duration-input-DFZwkg6M.js → duration-input-DGzmIImj.js} +5 -5
- package/dist/{editor-toolbar-group-DiJFgGcI.js → editor-toolbar-group-Crlu1QJw.js} +3 -3
- package/dist/{editor-toolbar-group-BCBfu8pG.cjs → editor-toolbar-group-mkL4QozO.cjs} +1 -1
- package/dist/es-B6GJLk9h.cjs +1 -0
- package/dist/{es-jHMT3_7O.js → es-DwMUvBeU.js} +94 -18
- package/dist/{fa-eX3_BAZR.js → fa-0rvQiKrJ.js} +87 -11
- package/dist/{fa-BXnP4pbN.cjs → fa-BwgP93iV.cjs} +1 -1
- package/dist/{fr-Bj-GjMJm.js → fr-B4i6NzLl.js} +86 -10
- package/dist/{fr-HJDhGjI2.cjs → fr-CQzk5zqY.cjs} +1 -1
- package/dist/{he-DYgmPPkG.js → he-C71n-hsn.js} +87 -11
- package/dist/{he-C6nEVZhN.cjs → he-DcxxvRfs.cjs} +1 -1
- package/dist/{hi-DMVSXAJt.cjs → hi-D-KHVWg4.cjs} +1 -1
- package/dist/{hi-CgYLonE9.js → hi-xmrXpeVU.js} +87 -11
- package/dist/index-B5MAsOC-.cjs +1 -0
- package/dist/{index-B8cqD9ny.js → index-C3o9GSH6.js} +106 -105
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +8055 -5285
- package/dist/input-container-BvEcp7FU.js +275 -0
- package/dist/input-container-Di1YvVB_.cjs +1 -0
- package/dist/{it-CO2BPqah.js → it-CDZTtOBC.js} +83 -7
- package/dist/{it-DhfVcjKb.cjs → it-D344Dutu.cjs} +1 -1
- package/dist/{ja-Bt6fGS_Q.cjs → ja-BNgnDZ27.cjs} +1 -1
- package/dist/{ja-BrzwjH8T.js → ja-Zz1LzidW.js} +91 -15
- package/dist/json-schema/index.cjs.js +1 -1
- package/dist/json-schema/index.es.js +261 -257
- package/dist/json-schema-display/index.cjs.js +1 -1
- package/dist/json-schema-display/index.es.js +2 -2
- package/dist/json-structure/index.cjs.js +1 -1
- package/dist/json-structure/index.es.js +132 -133
- package/dist/{ko-D-lJ4wYQ.js → ko-9laUsZDL.js} +90 -14
- package/dist/{ko-DfAaBGrz.cjs → ko-D-WJ9NK7.cjs} +1 -1
- package/dist/lexical/index.cjs.js +2 -39
- package/dist/lexical/index.es.js +2056 -20626
- package/dist/markdown/index.cjs.js +1 -1
- package/dist/markdown/index.es.js +41 -4
- package/dist/{menu-CV85y3Xf.js → menu-B8yoDMRS.js} +23 -23
- package/dist/menu-B92oSDct.cjs +1 -0
- package/dist/modal-BT0jjDqX.cjs +1 -0
- package/dist/{modal-CwZuWiSK.js → modal-DBguyX-b.js} +9 -9
- package/dist/monaco/index.cjs.js +2 -2
- package/dist/monaco/index.es.js +7 -7
- package/dist/{nl-CNWBQjK5.cjs → nl-CrqUlFie.cjs} +1 -1
- package/dist/{nl-ClsworIe.js → nl-Dcll9fVA.js} +86 -10
- package/dist/{notice-D7hYFM5A.js → notice-E19wu9lA.js} +51 -51
- package/dist/notice-_9XhdrFw.cjs +1 -0
- package/dist/oneof-branch-detection-J_DYEEcD.js +1077 -0
- package/dist/oneof-branch-detection-ZUBZ6hqy.cjs +1 -0
- package/dist/{pl-CqHTeu3-.cjs → pl-9UksIrvX.cjs} +1 -1
- package/dist/{pl-WTwLAxnV.js → pl-Dm9N9Gbr.js} +83 -7
- package/dist/prosemirror/index.cjs.js +3 -1
- package/dist/prosemirror/index.es.js +636 -4
- package/dist/{pt-CgkjJnsG.js → pt-CFi5cn0k.js} +88 -12
- package/dist/{pt-BQmsiqbo.cjs → pt-_kfdzwqi.cjs} +1 -1
- package/dist/{ru-CtgH7OY9.js → ru-CEhZUw8R.js} +91 -15
- package/dist/{ru-CG56A2To.cjs → ru-CW1WNNlr.cjs} +1 -1
- package/dist/stack-BLMteGTn.js +15 -0
- package/dist/stack-dwLevGa2.cjs +1 -0
- package/dist/tailwind/preset.cjs.js +1 -1
- package/dist/tailwind/preset.es.js +2 -2
- package/dist/tailwind/vite-plugin.cjs.js +1 -1
- package/dist/tailwind/vite-plugin.es.js +1 -1
- package/dist/text-input-DfqXolVe.js +55 -0
- package/dist/text-input-X_q01NsY.cjs +1 -0
- package/dist/toolbar-DY0ax2Qd.js +130 -0
- package/dist/toolbar-DoKdYXIL.cjs +1 -0
- package/dist/{tr-DE7_VtKu.cjs → tr-B6GIRegf.cjs} +1 -1
- package/dist/{tr-D1O1vEmr.js → tr-ZmnVDhLP.js} +81 -5
- package/dist/{translations-yu4gNqlP.js → translations-A4kR7CW8.js} +1 -1
- package/dist/{translations-DyCmyLE_.js → translations-B1_yyDUK.js} +207 -129
- package/dist/{translations-DBxIjvWR.cjs → translations-C81buKAw.cjs} +1 -1
- package/dist/translations-Dbx7L7Q1.cjs +1 -0
- package/dist/types/beatui-i18n/default.d.ts +71 -0
- package/dist/types/beatui-i18n/locales/en.d.ts +71 -0
- package/dist/types/beatui-i18n/translations.d.ts +71 -0
- package/dist/types/codehighlight/code-highlight.d.ts +21 -0
- package/dist/types/codehighlight/index.d.ts +14 -0
- package/dist/types/components/button/toggle-button.d.ts +4 -4
- package/dist/types/components/data/avatar.d.ts +3 -1
- package/dist/types/components/data/badge.d.ts +10 -18
- package/dist/types/components/data/column-filter-panel.d.ts +31 -0
- package/dist/types/components/data/column-filter.d.ts +110 -0
- package/dist/types/components/data/column-header-menu.d.ts +42 -0
- package/dist/types/components/data/data-source.d.ts +190 -0
- package/dist/types/components/data/data-table-body.d.ts +12 -0
- package/dist/types/components/data/data-table-column-toggle.d.ts +4 -0
- package/dist/types/components/data/data-table-context.d.ts +53 -0
- package/dist/types/components/data/data-table-header.d.ts +6 -0
- package/dist/types/components/data/data-table-resolve.d.ts +26 -0
- package/dist/types/components/data/data-table-types.d.ts +201 -0
- package/dist/types/components/data/data-table.d.ts +38 -0
- package/dist/types/components/data/data-toolbar.d.ts +44 -0
- package/dist/types/components/data/date-picker-shared.d.ts +55 -0
- package/dist/types/components/data/date-picker.d.ts +58 -0
- package/dist/types/components/data/date-range-picker.d.ts +56 -0
- package/dist/types/components/data/filter.d.ts +268 -0
- package/dist/types/components/data/index.d.ts +13 -4
- package/dist/types/components/data/indicator.d.ts +41 -0
- package/dist/types/components/data/progress-bar.d.ts +2 -2
- package/dist/types/components/data/selection-checkbox.d.ts +63 -0
- package/dist/types/components/data/skeleton.d.ts +1 -1
- package/dist/types/components/data/sortable-header.d.ts +55 -0
- package/dist/types/components/data/unstyled-drop-zone.d.ts +2 -2
- package/dist/types/components/form/control/control.d.ts +9 -9
- package/dist/types/components/form/input/advanced-slider.d.ts +6 -6
- package/dist/types/components/form/input/appearance-selector.d.ts +9 -2
- package/dist/types/components/form/input/checkbox-input.d.ts +6 -7
- package/dist/types/components/form/input/color-input.d.ts +1 -1
- package/dist/types/components/form/input/color-swatch-input.d.ts +3 -3
- package/dist/types/components/form/input/combobox-input.d.ts +5 -5
- package/dist/types/components/form/input/combobox-tags-input.d.ts +5 -5
- package/dist/types/components/form/input/create-nullable-string-input.d.ts +2 -2
- package/dist/types/components/form/input/date-input.d.ts +4 -4
- package/dist/types/components/form/input/dropdown-input.d.ts +5 -5
- package/dist/types/components/form/input/editable-text.d.ts +2 -2
- package/dist/types/components/form/input/email-input.d.ts +4 -4
- package/dist/types/components/form/input/index.d.ts +1 -0
- package/dist/types/components/form/input/input-container.d.ts +1 -1
- package/dist/types/components/form/input/input-options.d.ts +28 -1
- package/dist/types/components/form/input/mask-input.d.ts +8 -2
- package/dist/types/components/form/input/native-select.d.ts +3 -3
- package/dist/types/components/form/input/nullable-date-input.d.ts +2 -2
- package/dist/types/components/form/input/nullable-email-input.d.ts +3 -3
- package/dist/types/components/form/input/nullable-rating-input.d.ts +8 -8
- package/dist/types/components/form/input/nullable-uuid-input.d.ts +4 -4
- package/dist/types/components/form/input/number-input.d.ts +3 -3
- package/dist/types/components/form/input/otp-input.d.ts +12 -12
- package/dist/types/components/form/input/rating-input.d.ts +7 -8
- package/dist/types/components/form/input/select-tags-input.d.ts +5 -5
- package/dist/types/components/form/input/switch.d.ts +2 -2
- package/dist/types/components/form/input/tri-state-checkbox-input.d.ts +82 -0
- package/dist/types/components/form/input/uuid-input.d.ts +2 -2
- package/dist/types/components/json-structure/controls/uuid-control.d.ts +1 -1
- package/dist/types/components/layout/card.d.ts +66 -0
- package/dist/types/components/layout/collapse.d.ts +2 -2
- package/dist/types/components/layout/flex.d.ts +26 -0
- package/dist/types/components/layout/index.d.ts +1 -0
- package/dist/types/components/lexical/floating/slash-command-palette.d.ts +2 -2
- package/dist/types/components/media/pdf-page-viewer.d.ts +8 -5
- package/dist/types/components/misc/index.d.ts +1 -0
- package/dist/types/components/misc/loading-overlay.d.ts +29 -0
- package/dist/types/components/misc/notice.d.ts +4 -4
- package/dist/types/components/misc/notification-provider.d.ts +9 -3
- package/dist/types/components/misc/notification.d.ts +9 -9
- package/dist/types/components/navigation/breadcrumbs.d.ts +1 -1
- package/dist/types/components/navigation/menu.d.ts +6 -6
- package/dist/types/components/navigation/pagination.d.ts +17 -4
- package/dist/types/components/navigation/sidebar/sidebar-link.d.ts +2 -2
- package/dist/types/components/navigation/tabs/tabs.d.ts +17 -8
- package/dist/types/components/navigation/toolbar/toolbar.d.ts +12 -6
- package/dist/types/components/overlay/announcement-bar.d.ts +12 -4
- package/dist/types/components/overlay/dialogs.d.ts +2 -2
- package/dist/types/components/overlay/modal.d.ts +9 -2
- package/dist/types/components/overlay/tooltip.d.ts +6 -6
- package/dist/types/components/theme/types.d.ts +15 -4
- package/dist/types/lexical/plugins/slash-commands.d.ts +1 -1
- package/dist/types/tokens/z-index.d.ts +18 -18
- package/dist/types/utils/use-animated-toggle.d.ts +12 -4
- package/dist/{ur-ZJgsSpG2.cjs → ur-CtFl_tz6.cjs} +1 -1
- package/dist/{ur-BcuB7IqE.js → ur-yYgj3NmT.js} +87 -11
- package/dist/use-animated-toggle-C3asw_Sg.js +207 -0
- package/dist/use-animated-toggle-cKcuItmz.cjs +1 -0
- package/dist/use-form-CaW192gw.cjs +2 -0
- package/dist/{use-form-CfxvyTfd.js → use-form-Dn6v2tEh.js} +153 -152
- package/dist/utils-DmEuG3Np.cjs +1 -0
- package/dist/utils-vUtP6iPG.js +165 -0
- package/dist/{vi-D0rQ3dIx.js → vi-D5u4CLQO.js} +88 -12
- package/dist/{vi-BOgLRkuK.cjs → vi-DyCZSpsk.cjs} +1 -1
- package/dist/widget-customization-DgW1SXN6.cjs +1 -0
- package/dist/{widget-customization-CLZNGavL.js → widget-customization-Dkx7kNSe.js} +413 -398
- package/dist/{zh-DoYqiZO1.js → zh-B0kwMMer.js} +90 -14
- package/dist/{zh-BTZ8OZ4H.cjs → zh-C3ZxMQKb.cjs} +1 -1
- package/package.json +208 -37
- package/dist/_commonjsHelpers-DKOUU3wS.cjs +0 -1
- package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
- package/dist/auth-divider-BgaQ8ifw.cjs +0 -1
- package/dist/colors-BI0YhONJ.cjs +0 -1
- package/dist/deep-merge-ChJQbUKq.cjs +0 -1
- package/dist/es-C8TpneCm.cjs +0 -1
- package/dist/hls.light.min-C6xKDzRR.cjs +0 -27
- package/dist/hls.light.min-hEMf_E8u.js +0 -8311
- package/dist/index-1JaBwDB-.js +0 -921
- package/dist/index-CN10Cyqr.cjs +0 -1
- package/dist/index-CTcbhnPw.cjs +0 -4
- package/dist/index-DF7RFzD9.cjs +0 -1
- package/dist/index-D_zOXmU5.cjs +0 -36
- package/dist/index-DfPkCwdC.js +0 -2709
- package/dist/index-vowHNIPH.js +0 -14308
- package/dist/index-yOU4Ceaq.js +0 -68
- package/dist/index-zQ3IYJFH.cjs +0 -1
- package/dist/input-container-BWYHj0Iq.cjs +0 -1
- package/dist/input-container-DMoVdH6E.js +0 -263
- package/dist/menu-De_-sGeb.cjs +0 -1
- package/dist/modal-CiGmgsOI.cjs +0 -1
- package/dist/notice-CPZQuxcA.cjs +0 -1
- package/dist/oneof-branch-detection-BFxukD63.cjs +0 -8
- package/dist/oneof-branch-detection-izpPjBCR.js +0 -6290
- package/dist/stack-4VUGISn6.cjs +0 -1
- package/dist/stack-Bm-UZosx.js +0 -879
- package/dist/string-B9vVyfq3.cjs +0 -1
- package/dist/string-DYyMxBl-.js +0 -19
- package/dist/text-input-BLupB3cU.js +0 -45
- package/dist/text-input-M6WBhhVj.cjs +0 -1
- package/dist/timer-BJHOsuS6.cjs +0 -1
- package/dist/timer-Rd2sKnvH.js +0 -65
- package/dist/toolbar-Be1eU0qU.js +0 -118
- package/dist/toolbar-WWv5kcYG.cjs +0 -1
- package/dist/translations-OOsMRpX9.cjs +0 -1
- package/dist/types/components/data/calendar-shared.d.ts +0 -59
- package/dist/types/components/data/calendar.d.ts +0 -107
- package/dist/types/components/data/icon-badge.d.ts +0 -14
- package/dist/types/components/data/range-calendar.d.ts +0 -104
- package/dist/types/components/data/tag.d.ts +0 -51
- package/dist/use-animated-toggle-C7PTmnZi.js +0 -195
- package/dist/use-animated-toggle-DrqK7nUS.cjs +0 -1
- package/dist/use-form-ClA0ZRco.cjs +0 -2
- package/dist/utils-DEbsp9Q9.js +0 -129
- package/dist/utils-DIUEhA-Z.cjs +0 -1
- package/dist/widget-customization-DtEEo35Y.cjs +0 -1
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import { html as p, attr as f, Empty as Z, MapSignal as B, Fragment as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
function Tt(e) {
|
|
1
|
+
import { html as p, attr as f, Empty as Z, MapSignal as B, Fragment as P, Value as x, computedOf as M, When as Ke, prop as Je, WithElement as Ze, OnDispose as He } from "@tempots/dom";
|
|
2
|
+
import { upperCaseFirst as H, humanize as Xe, objectEntries as Ye, Validation as re } from "@tempots/std";
|
|
3
|
+
import { b, a as ie, I as W, d as Qe, O as se, A as G, f as et } from "../use-form-Dn6v2tEh.js";
|
|
4
|
+
import { e as X, N as tt, f as de, g as fe, U as nt, c as rt, a as it, T as st, L as me, b as ye, h as at, G as ut, i as ot, S as ct, j as lt } from "../deep-merge-BzIheQtH.js";
|
|
5
|
+
import { T as pt } from "../text-input-DfqXolVe.js";
|
|
6
|
+
import { N as dt, B as ft, D as mt, a as yt, P as gt, b as ht, c as bt, d as vt, e as xt, F as $t } from "../duration-input-DGzmIImj.js";
|
|
7
|
+
import { B as U } from "../input-container-BvEcp7FU.js";
|
|
8
|
+
import { L as ge, S as K, M as Tt } from "../stack-BLMteGTn.js";
|
|
9
|
+
function It(e) {
|
|
11
10
|
return e === "int64" || e === "int128" || e === "uint64" || e === "uint128";
|
|
12
11
|
}
|
|
13
|
-
function
|
|
12
|
+
function F(e) {
|
|
14
13
|
return e === "int8" || e === "int16" || e === "int32" || e === "int64" || e === "int128" || e === "uint8" || e === "uint16" || e === "uint32" || e === "uint64" || e === "uint128";
|
|
15
14
|
}
|
|
16
15
|
function Y(e) {
|
|
17
16
|
return e === "float" || e === "double" || e === "decimal";
|
|
18
17
|
}
|
|
19
18
|
function wt(e) {
|
|
20
|
-
return
|
|
19
|
+
return F(e) || Y(e);
|
|
21
20
|
}
|
|
22
21
|
function Q(e) {
|
|
23
22
|
return e === "date" || e === "datetime" || e === "time" || e === "duration";
|
|
@@ -25,7 +24,7 @@ function Q(e) {
|
|
|
25
24
|
function jt(e) {
|
|
26
25
|
return e === "string" || e === "boolean" || e === "null" || wt(e) || Q(e) || e === "uuid" || e === "uri" || e === "binary";
|
|
27
26
|
}
|
|
28
|
-
function
|
|
27
|
+
function Qn(e) {
|
|
29
28
|
return e === "object" || e === "array" || e === "set" || e === "map" || e === "tuple" || e === "choice" || e === "any";
|
|
30
29
|
}
|
|
31
30
|
function O(e) {
|
|
@@ -110,7 +109,7 @@ function N(e, t) {
|
|
|
110
109
|
return;
|
|
111
110
|
}
|
|
112
111
|
}
|
|
113
|
-
function
|
|
112
|
+
function er(e, t) {
|
|
114
113
|
return N(e.$ref, t);
|
|
115
114
|
}
|
|
116
115
|
class Rt {
|
|
@@ -321,7 +320,7 @@ class ne {
|
|
|
321
320
|
if (this.definition.name)
|
|
322
321
|
return this.definition.name;
|
|
323
322
|
const t = this.name;
|
|
324
|
-
return t ? H(
|
|
323
|
+
return t ? H(Xe(t)) : "";
|
|
325
324
|
}
|
|
326
325
|
/**
|
|
327
326
|
* Get altnames from the definition
|
|
@@ -392,7 +391,7 @@ function kt(e, t) {
|
|
|
392
391
|
refResolver: r
|
|
393
392
|
});
|
|
394
393
|
}
|
|
395
|
-
function
|
|
394
|
+
function Te(e, t, n) {
|
|
396
395
|
const r = [], s = [];
|
|
397
396
|
if (!e.$extends)
|
|
398
397
|
return { merged: e, inheritanceChain: r, errors: s };
|
|
@@ -428,9 +427,9 @@ function Ie(e, t, n) {
|
|
|
428
427
|
}
|
|
429
428
|
return g;
|
|
430
429
|
}, o = i(a);
|
|
431
|
-
return { merged:
|
|
430
|
+
return { merged: Ft(o, e), inheritanceChain: r, errors: s };
|
|
432
431
|
}
|
|
433
|
-
function
|
|
432
|
+
function Ft(e, t) {
|
|
434
433
|
if (e.length === 0)
|
|
435
434
|
return t;
|
|
436
435
|
let n = { ...e[0] };
|
|
@@ -441,13 +440,13 @@ function Pt(e, t) {
|
|
|
441
440
|
return s;
|
|
442
441
|
}
|
|
443
442
|
function ue(e, t) {
|
|
444
|
-
return C(e) && C(t) ?
|
|
443
|
+
return C(e) && C(t) ? Pt(e, t) : { ...e, ...t };
|
|
445
444
|
}
|
|
446
|
-
function
|
|
445
|
+
function Pt(e, t) {
|
|
447
446
|
const n = {
|
|
448
447
|
...e.properties ?? {},
|
|
449
448
|
...t.properties ?? {}
|
|
450
|
-
}, r = oe(e.required), s = oe(t.required), a =
|
|
449
|
+
}, r = oe(e.required), s = oe(t.required), a = qt([...r, ...s]), u = {
|
|
451
450
|
...e,
|
|
452
451
|
...t,
|
|
453
452
|
type: "object",
|
|
@@ -458,13 +457,13 @@ function qt(e, t) {
|
|
|
458
457
|
function oe(e) {
|
|
459
458
|
return e ? e.length === 0 ? [] : Array.isArray(e[0]) ? e.flat() : e : [];
|
|
460
459
|
}
|
|
461
|
-
function
|
|
460
|
+
function qt(e) {
|
|
462
461
|
return [...new Set(e)];
|
|
463
462
|
}
|
|
464
|
-
function
|
|
463
|
+
function tr(e) {
|
|
465
464
|
const t = te(e);
|
|
466
465
|
return {
|
|
467
|
-
resolve: (n) => (t.reset(),
|
|
466
|
+
resolve: (n) => (t.reset(), Te(n, e))
|
|
468
467
|
};
|
|
469
468
|
}
|
|
470
469
|
function Lt() {
|
|
@@ -489,7 +488,7 @@ function Et(e) {
|
|
|
489
488
|
placeholder: t
|
|
490
489
|
};
|
|
491
490
|
}
|
|
492
|
-
function
|
|
491
|
+
function Ie({
|
|
493
492
|
ctx: e,
|
|
494
493
|
controller: t
|
|
495
494
|
}) {
|
|
@@ -581,7 +580,7 @@ function Se({
|
|
|
581
580
|
controller: t,
|
|
582
581
|
intType: n
|
|
583
582
|
}) {
|
|
584
|
-
if (
|
|
583
|
+
if (It(n)) {
|
|
585
584
|
const s = Bt(e, n);
|
|
586
585
|
return e.isNullable ? b(dt, {
|
|
587
586
|
...s,
|
|
@@ -592,10 +591,10 @@ function Se({
|
|
|
592
591
|
});
|
|
593
592
|
}
|
|
594
593
|
const r = Ut(e, n);
|
|
595
|
-
return e.isNullable ? b(
|
|
594
|
+
return e.isNullable ? b(de, {
|
|
596
595
|
...r,
|
|
597
596
|
controller: t
|
|
598
|
-
}) : b(
|
|
597
|
+
}) : b(fe, {
|
|
599
598
|
...r,
|
|
600
599
|
controller: t
|
|
601
600
|
});
|
|
@@ -630,10 +629,10 @@ function De({
|
|
|
630
629
|
floatType: n
|
|
631
630
|
}) {
|
|
632
631
|
const r = Wt(e, n);
|
|
633
|
-
return e.isNullable ? b(
|
|
632
|
+
return e.isNullable ? b(de, {
|
|
634
633
|
...r,
|
|
635
634
|
controller: t
|
|
636
|
-
}) : b(
|
|
635
|
+
}) : b(fe, {
|
|
637
636
|
...r,
|
|
638
637
|
controller: t
|
|
639
638
|
});
|
|
@@ -779,7 +778,7 @@ function J({
|
|
|
779
778
|
controller: Zt(t)
|
|
780
779
|
});
|
|
781
780
|
}
|
|
782
|
-
function
|
|
781
|
+
function q(e) {
|
|
783
782
|
return {
|
|
784
783
|
label: e.suppressLabel ? void 0 : e.label,
|
|
785
784
|
description: e.description,
|
|
@@ -831,24 +830,24 @@ function Re({
|
|
|
831
830
|
const n = e.definition;
|
|
832
831
|
if (n.type !== "object" || !("properties" in n))
|
|
833
832
|
return console.warn("StructureObjectControl requires an ObjectTypeDefinition"), p.div("Invalid object definition");
|
|
834
|
-
const r = n.properties, s = n.required, a = n.additionalProperties, u = a !== !1, i = typeof a == "object" && a !== null ? a : { type: "any" }, o = n.minProperties ?? 0, c = n.maxProperties ?? 1 / 0, l =
|
|
833
|
+
const r = n.properties, s = n.required, a = n.additionalProperties, u = a !== !1, i = typeof a == "object" && a !== null ? a : { type: "any" }, o = n.minProperties ?? 0, c = n.maxProperties ?? 1 / 0, l = Ye(r), y = new Set(
|
|
835
834
|
l.map(([v]) => v)
|
|
836
|
-
), g = l.map(([v,
|
|
837
|
-
const
|
|
835
|
+
), g = l.map(([v, T]) => {
|
|
836
|
+
const I = v, j = t.field(I), w = Ht(I, s);
|
|
838
837
|
return D({
|
|
839
838
|
ctx: e.with({
|
|
840
|
-
definition:
|
|
839
|
+
definition: T,
|
|
841
840
|
isPropertyRequired: w,
|
|
842
841
|
suppressLabel: !1
|
|
843
|
-
}).append(
|
|
842
|
+
}).append(I),
|
|
844
843
|
controller: j
|
|
845
844
|
});
|
|
846
845
|
}), d = B(t.signal, (v) => {
|
|
847
|
-
const
|
|
848
|
-
if (
|
|
849
|
-
const j =
|
|
850
|
-
return
|
|
851
|
-
...
|
|
846
|
+
const T = Object.keys(v ?? {}), I = T.filter((w) => !y.has(w));
|
|
847
|
+
if (I.length === 0) return Z;
|
|
848
|
+
const j = T.length > o && !e.readOnly;
|
|
849
|
+
return P(
|
|
850
|
+
...I.map((w) => {
|
|
852
851
|
const k = t.field(w);
|
|
853
852
|
return p.div(
|
|
854
853
|
f.class("bc-json-structure-additional-property"),
|
|
@@ -891,10 +890,10 @@ function Re({
|
|
|
891
890
|
(v) => Object.keys(v ?? {}).length >= c
|
|
892
891
|
),
|
|
893
892
|
onClick: () => {
|
|
894
|
-
const v = x.get(t.signal) ?? {},
|
|
893
|
+
const v = x.get(t.signal) ?? {}, T = new Set(Object.keys(v)), I = Xt(T), j = R(i);
|
|
895
894
|
t.change({
|
|
896
895
|
...v,
|
|
897
|
-
[
|
|
896
|
+
[I]: j
|
|
898
897
|
});
|
|
899
898
|
}
|
|
900
899
|
},
|
|
@@ -909,7 +908,7 @@ function Re({
|
|
|
909
908
|
m
|
|
910
909
|
);
|
|
911
910
|
return !e.suppressLabel && e.name ? W({
|
|
912
|
-
...
|
|
911
|
+
...q(e),
|
|
913
912
|
content: $
|
|
914
913
|
}) : $;
|
|
915
914
|
}
|
|
@@ -921,8 +920,8 @@ function ke({
|
|
|
921
920
|
if (n.type !== "array" || !("items" in n))
|
|
922
921
|
return console.warn("StructureArrayControl requires an ArrayTypeDefinition"), p.div("Invalid array definition");
|
|
923
922
|
const r = n.items, s = n.minItems ?? 0, a = n.maxItems ?? 1 / 0, u = M(t.signal)((o) => (o?.length ?? 0) < a), i = M(t.signal)((o) => (o?.length ?? 0) > s);
|
|
924
|
-
return
|
|
925
|
-
...
|
|
923
|
+
return me({
|
|
924
|
+
...q(e),
|
|
926
925
|
controller: t,
|
|
927
926
|
createItem: () => R(r),
|
|
928
927
|
showAdd: !0,
|
|
@@ -941,7 +940,7 @@ function ke({
|
|
|
941
940
|
}
|
|
942
941
|
});
|
|
943
942
|
}
|
|
944
|
-
function
|
|
943
|
+
function Fe({
|
|
945
944
|
ctx: e,
|
|
946
945
|
controller: t
|
|
947
946
|
}) {
|
|
@@ -957,8 +956,8 @@ function Pe({
|
|
|
957
956
|
}
|
|
958
957
|
return y;
|
|
959
958
|
});
|
|
960
|
-
return
|
|
961
|
-
...
|
|
959
|
+
return me({
|
|
960
|
+
...q(e),
|
|
962
961
|
controller: t,
|
|
963
962
|
createItem: () => R(r),
|
|
964
963
|
showAdd: !0,
|
|
@@ -973,11 +972,11 @@ function Pe({
|
|
|
973
972
|
}).append(l),
|
|
974
973
|
controller: y
|
|
975
974
|
});
|
|
976
|
-
return
|
|
975
|
+
return P(
|
|
977
976
|
d,
|
|
978
977
|
Ke(
|
|
979
978
|
g,
|
|
980
|
-
() =>
|
|
979
|
+
() => ge(
|
|
981
980
|
f.class("bc-json-structure-set-error"),
|
|
982
981
|
"Duplicate value - sets must contain unique items"
|
|
983
982
|
)
|
|
@@ -993,7 +992,7 @@ function Yt(e, t = "key") {
|
|
|
993
992
|
n++;
|
|
994
993
|
return `${t}${n}`;
|
|
995
994
|
}
|
|
996
|
-
function
|
|
995
|
+
function Pe({
|
|
997
996
|
ctx: e,
|
|
998
997
|
controller: t
|
|
999
998
|
}) {
|
|
@@ -1004,7 +1003,7 @@ function qe({
|
|
|
1004
1003
|
const y = Object.keys(l ?? {});
|
|
1005
1004
|
if (y.length === 0) return Z;
|
|
1006
1005
|
const g = y.length > s && !e.readOnly;
|
|
1007
|
-
return
|
|
1006
|
+
return P(
|
|
1008
1007
|
...y.map((d) => {
|
|
1009
1008
|
const h = t.field(d);
|
|
1010
1009
|
return p.div(
|
|
@@ -1064,11 +1063,11 @@ function qe({
|
|
|
1064
1063
|
i
|
|
1065
1064
|
), c = p.div(f.class("bc-json-structure-map"), o);
|
|
1066
1065
|
return !e.suppressLabel && e.name ? W({
|
|
1067
|
-
...
|
|
1066
|
+
...q(e),
|
|
1068
1067
|
content: c
|
|
1069
1068
|
}) : c;
|
|
1070
1069
|
}
|
|
1071
|
-
function
|
|
1070
|
+
function qe({
|
|
1072
1071
|
ctx: e,
|
|
1073
1072
|
controller: t
|
|
1074
1073
|
}) {
|
|
@@ -1083,7 +1082,7 @@ function Fe({
|
|
|
1083
1082
|
});
|
|
1084
1083
|
t.change(i);
|
|
1085
1084
|
}
|
|
1086
|
-
const u =
|
|
1085
|
+
const u = q(e);
|
|
1087
1086
|
return p.div(
|
|
1088
1087
|
f.class("bc-json-structure-tuple"),
|
|
1089
1088
|
// Optional label and description
|
|
@@ -1146,7 +1145,7 @@ function Qt({
|
|
|
1146
1145
|
onChange: n,
|
|
1147
1146
|
disabled: r
|
|
1148
1147
|
}) {
|
|
1149
|
-
return
|
|
1148
|
+
return ye({
|
|
1150
1149
|
options: e.map((s) => ({
|
|
1151
1150
|
type: "value",
|
|
1152
1151
|
value: s.value,
|
|
@@ -1245,8 +1244,8 @@ function Le({
|
|
|
1245
1244
|
l = !0, c.set(m);
|
|
1246
1245
|
const $ = r[m];
|
|
1247
1246
|
if ($) {
|
|
1248
|
-
const v = R($),
|
|
1249
|
-
t.change(
|
|
1247
|
+
const v = R($), T = ce(v, m, s);
|
|
1248
|
+
t.change(T);
|
|
1250
1249
|
}
|
|
1251
1250
|
},
|
|
1252
1251
|
disabled: e.readOnly || e.isDeprecated
|
|
@@ -1259,16 +1258,16 @@ function Le({
|
|
|
1259
1258
|
);
|
|
1260
1259
|
const v = M(t.signal)(
|
|
1261
1260
|
(j) => nn(j, x.get(m), s)
|
|
1262
|
-
),
|
|
1261
|
+
), T = (j) => {
|
|
1263
1262
|
const w = ce(
|
|
1264
1263
|
j,
|
|
1265
1264
|
x.get(m),
|
|
1266
1265
|
s
|
|
1267
1266
|
);
|
|
1268
1267
|
t.change(w);
|
|
1269
|
-
},
|
|
1268
|
+
}, I = new Qe(
|
|
1270
1269
|
[...t.path, x.get(m)],
|
|
1271
|
-
|
|
1270
|
+
T,
|
|
1272
1271
|
v,
|
|
1273
1272
|
t.status,
|
|
1274
1273
|
{
|
|
@@ -1277,13 +1276,13 @@ function Le({
|
|
|
1277
1276
|
void 0
|
|
1278
1277
|
// Use default equality
|
|
1279
1278
|
);
|
|
1280
|
-
return t.onDispose(() =>
|
|
1279
|
+
return t.onDispose(() => I.dispose()), D({
|
|
1281
1280
|
ctx: e.with({
|
|
1282
1281
|
definition: $,
|
|
1283
1282
|
suppressLabel: !0
|
|
1284
1283
|
// Choice selector acts as the label
|
|
1285
1284
|
}).append(x.get(m)),
|
|
1286
|
-
controller:
|
|
1285
|
+
controller: I
|
|
1287
1286
|
});
|
|
1288
1287
|
});
|
|
1289
1288
|
return en({
|
|
@@ -1319,11 +1318,11 @@ function Ve({
|
|
|
1319
1318
|
ctx: e,
|
|
1320
1319
|
controller: t
|
|
1321
1320
|
}) {
|
|
1322
|
-
return
|
|
1321
|
+
return P(
|
|
1323
1322
|
Ze(() => {
|
|
1324
1323
|
x.get(t.signal) !== e.constValue && t.change(e.constValue);
|
|
1325
1324
|
}),
|
|
1326
|
-
ut(
|
|
1325
|
+
ut(Tt(e.label, ": "), ge(String(e.constValue)))
|
|
1327
1326
|
);
|
|
1328
1327
|
}
|
|
1329
1328
|
function sn(e) {
|
|
@@ -1478,7 +1477,7 @@ function ln({
|
|
|
1478
1477
|
size: "sm"
|
|
1479
1478
|
});
|
|
1480
1479
|
}
|
|
1481
|
-
return
|
|
1480
|
+
return ye({
|
|
1482
1481
|
options: e.map((a) => ({
|
|
1483
1482
|
type: "value",
|
|
1484
1483
|
value: a.value,
|
|
@@ -1560,7 +1559,7 @@ function D({
|
|
|
1560
1559
|
}
|
|
1561
1560
|
}
|
|
1562
1561
|
if (n.definition.$extends) {
|
|
1563
|
-
const { merged: i } =
|
|
1562
|
+
const { merged: i } = Te(n.definition, e.schema);
|
|
1564
1563
|
n = n.with({ definition: i });
|
|
1565
1564
|
}
|
|
1566
1565
|
const s = n.widgetRegistry;
|
|
@@ -1610,21 +1609,21 @@ function D({
|
|
|
1610
1609
|
}
|
|
1611
1610
|
if (be(n.definition)) {
|
|
1612
1611
|
const i = t instanceof G ? t : t.array();
|
|
1613
|
-
return
|
|
1612
|
+
return Fe({
|
|
1614
1613
|
ctx: n,
|
|
1615
1614
|
controller: i
|
|
1616
1615
|
});
|
|
1617
1616
|
}
|
|
1618
1617
|
if (ve(n.definition)) {
|
|
1619
1618
|
const i = t instanceof se ? t : t.object();
|
|
1620
|
-
return
|
|
1619
|
+
return Pe({
|
|
1621
1620
|
ctx: n,
|
|
1622
1621
|
controller: i
|
|
1623
1622
|
});
|
|
1624
1623
|
}
|
|
1625
1624
|
if (xe(n.definition)) {
|
|
1626
1625
|
const i = t instanceof G ? t : t.array();
|
|
1627
|
-
return
|
|
1626
|
+
return qe({
|
|
1628
1627
|
ctx: n,
|
|
1629
1628
|
controller: i
|
|
1630
1629
|
});
|
|
@@ -1636,7 +1635,7 @@ function D({
|
|
|
1636
1635
|
});
|
|
1637
1636
|
switch (u) {
|
|
1638
1637
|
case "string":
|
|
1639
|
-
return
|
|
1638
|
+
return Ie({
|
|
1640
1639
|
ctx: n,
|
|
1641
1640
|
controller: t
|
|
1642
1641
|
});
|
|
@@ -1668,7 +1667,7 @@ function D({
|
|
|
1668
1667
|
controller: t
|
|
1669
1668
|
});
|
|
1670
1669
|
default:
|
|
1671
|
-
return
|
|
1670
|
+
return F(u) ? Se({
|
|
1672
1671
|
ctx: n,
|
|
1673
1672
|
controller: t,
|
|
1674
1673
|
intType: u
|
|
@@ -1804,7 +1803,7 @@ class gn {
|
|
|
1804
1803
|
case "any":
|
|
1805
1804
|
return !0;
|
|
1806
1805
|
default:
|
|
1807
|
-
return
|
|
1806
|
+
return F(n) ? this.validateInteger(t, n, r, s, a) : Y(n) ? this.validateFloat(t, r, s, a) : Q(n) ? this.validateTemporal(t, n, s, a) : n === "uuid" ? this.validateUuid(t, s, a) : n === "uri" ? this.validateUri(t, s, a) : n === "binary" ? this.validateBinary(t, s, a) : !1;
|
|
1808
1807
|
}
|
|
1809
1808
|
}
|
|
1810
1809
|
validateString(t, n, r, s) {
|
|
@@ -1836,7 +1835,7 @@ class gn {
|
|
|
1836
1835
|
if (typeof t != "number" && typeof t != "bigint") return !1;
|
|
1837
1836
|
if (typeof t == "number" && !Number.isInteger(t))
|
|
1838
1837
|
return a.push({ path: s, type: "type", expected: n, actual: "float" }), !1;
|
|
1839
|
-
if (
|
|
1838
|
+
if (F(n)) {
|
|
1840
1839
|
const u = _[n], i = typeof t == "bigint" ? t : BigInt(Math.round(t));
|
|
1841
1840
|
(i < u.min || i > u.max) && a.push({
|
|
1842
1841
|
path: s,
|
|
@@ -2030,7 +2029,7 @@ class gn {
|
|
|
2030
2029
|
), !0;
|
|
2031
2030
|
}
|
|
2032
2031
|
}
|
|
2033
|
-
function
|
|
2032
|
+
function nr(e, t, n) {
|
|
2034
2033
|
return Ue(e, n).validate(t);
|
|
2035
2034
|
}
|
|
2036
2035
|
function hn(e, t) {
|
|
@@ -2075,7 +2074,7 @@ function bn(e, t) {
|
|
|
2075
2074
|
case "multipleOf":
|
|
2076
2075
|
return `Must be a multiple of ${e.expected}`;
|
|
2077
2076
|
case "integer_bounds":
|
|
2078
|
-
return
|
|
2077
|
+
return Tn(e);
|
|
2079
2078
|
// Array/Set validation
|
|
2080
2079
|
case "minItems":
|
|
2081
2080
|
return `Must have at least ${e.expected} items`;
|
|
@@ -2099,7 +2098,7 @@ function bn(e, t) {
|
|
|
2099
2098
|
case "additionalProperties":
|
|
2100
2099
|
return `Unknown property: ${e.actual}`;
|
|
2101
2100
|
case "dependentRequired":
|
|
2102
|
-
return
|
|
2101
|
+
return In(e);
|
|
2103
2102
|
// Enum/Const validation
|
|
2104
2103
|
case "enum":
|
|
2105
2104
|
return wn(e);
|
|
@@ -2193,15 +2192,15 @@ function $n(e) {
|
|
|
2193
2192
|
"json-pointer": "Must be a valid JSON pointer"
|
|
2194
2193
|
}[t] ?? `Must be a valid ${t}`;
|
|
2195
2194
|
}
|
|
2196
|
-
function
|
|
2195
|
+
function Tn(e) {
|
|
2197
2196
|
const t = e.context?.type;
|
|
2198
|
-
if (t &&
|
|
2197
|
+
if (t && F(t)) {
|
|
2199
2198
|
const n = _[t];
|
|
2200
2199
|
return `Must be between ${n.min} and ${n.max}`;
|
|
2201
2200
|
}
|
|
2202
2201
|
return "Value is out of range for this integer type";
|
|
2203
2202
|
}
|
|
2204
|
-
function
|
|
2203
|
+
function In(e) {
|
|
2205
2204
|
const t = e.context?.dependent, n = e.context?.required;
|
|
2206
2205
|
return t && n?.length ? `When "${t}" is present, "${n.join('", "')}" must also be provided` : "Missing required dependent fields";
|
|
2207
2206
|
}
|
|
@@ -2209,7 +2208,7 @@ function wn(e) {
|
|
|
2209
2208
|
const t = e.expected;
|
|
2210
2209
|
return t && t.length <= 5 ? `Must be one of: ${t.map((r) => JSON.stringify(r)).join(", ")}` : "Invalid value";
|
|
2211
2210
|
}
|
|
2212
|
-
function
|
|
2211
|
+
function rr(e) {
|
|
2213
2212
|
const t = /* @__PURE__ */ new Map();
|
|
2214
2213
|
for (const n of e) {
|
|
2215
2214
|
const r = t.get(n.path) ?? [];
|
|
@@ -2217,13 +2216,13 @@ function ir(e) {
|
|
|
2217
2216
|
}
|
|
2218
2217
|
return t;
|
|
2219
2218
|
}
|
|
2220
|
-
function
|
|
2219
|
+
function ir(e, t) {
|
|
2221
2220
|
return e.filter((n) => n.path === t);
|
|
2222
2221
|
}
|
|
2223
|
-
function
|
|
2222
|
+
function sr(e, t) {
|
|
2224
2223
|
return e.some((n) => n.path === t);
|
|
2225
2224
|
}
|
|
2226
|
-
function
|
|
2225
|
+
function ar(e, t) {
|
|
2227
2226
|
const n = t === "" ? "/" : `${t}/`;
|
|
2228
2227
|
return e.filter((r) => r.path.startsWith(n));
|
|
2229
2228
|
}
|
|
@@ -2300,13 +2299,13 @@ let V = null;
|
|
|
2300
2299
|
function L() {
|
|
2301
2300
|
return V || (V = new z()), V;
|
|
2302
2301
|
}
|
|
2303
|
-
function
|
|
2302
|
+
function ur(e) {
|
|
2304
2303
|
V = e;
|
|
2305
2304
|
}
|
|
2306
|
-
function
|
|
2305
|
+
function or(e) {
|
|
2307
2306
|
return new z(e);
|
|
2308
2307
|
}
|
|
2309
|
-
function
|
|
2308
|
+
function cr(e, t, n) {
|
|
2310
2309
|
return {
|
|
2311
2310
|
name: `type:${e}`,
|
|
2312
2311
|
registration: {
|
|
@@ -2319,7 +2318,7 @@ function lr(e, t, n) {
|
|
|
2319
2318
|
}
|
|
2320
2319
|
};
|
|
2321
2320
|
}
|
|
2322
|
-
function
|
|
2321
|
+
function lr(e, t, n) {
|
|
2323
2322
|
return {
|
|
2324
2323
|
name: `format:${e}`,
|
|
2325
2324
|
registration: {
|
|
@@ -2333,7 +2332,7 @@ function pr(e, t, n) {
|
|
|
2333
2332
|
}
|
|
2334
2333
|
};
|
|
2335
2334
|
}
|
|
2336
|
-
function
|
|
2335
|
+
function pr(e, t, n, r) {
|
|
2337
2336
|
return {
|
|
2338
2337
|
name: `type:${e}:format:${t}`,
|
|
2339
2338
|
registration: {
|
|
@@ -2348,7 +2347,7 @@ function dr(e, t, n, r) {
|
|
|
2348
2347
|
}
|
|
2349
2348
|
};
|
|
2350
2349
|
}
|
|
2351
|
-
function
|
|
2350
|
+
function dr(e, t, n, r) {
|
|
2352
2351
|
return {
|
|
2353
2352
|
name: e,
|
|
2354
2353
|
registration: {
|
|
@@ -2370,7 +2369,7 @@ function jn(e, t) {
|
|
|
2370
2369
|
}
|
|
2371
2370
|
return L().findBestWidget(e);
|
|
2372
2371
|
}
|
|
2373
|
-
function
|
|
2372
|
+
function fr(e) {
|
|
2374
2373
|
const t = e.definition, n = {};
|
|
2375
2374
|
if (typeof t == "object" && "x:ui" in t) {
|
|
2376
2375
|
const r = t["x:ui"];
|
|
@@ -2398,10 +2397,10 @@ function We(e) {
|
|
|
2398
2397
|
return n.type;
|
|
2399
2398
|
}
|
|
2400
2399
|
}
|
|
2401
|
-
function
|
|
2400
|
+
function mr(e) {
|
|
2402
2401
|
return We(e) !== void 0;
|
|
2403
2402
|
}
|
|
2404
|
-
function
|
|
2403
|
+
function yr(e, t) {
|
|
2405
2404
|
const n = We(e);
|
|
2406
2405
|
if (n) {
|
|
2407
2406
|
if (t) {
|
|
@@ -2419,7 +2418,7 @@ function gr(e, t) {
|
|
|
2419
2418
|
}
|
|
2420
2419
|
return jn(e, t);
|
|
2421
2420
|
}
|
|
2422
|
-
function
|
|
2421
|
+
function gr(e, t, n) {
|
|
2423
2422
|
return {
|
|
2424
2423
|
...e,
|
|
2425
2424
|
...t,
|
|
@@ -2428,7 +2427,7 @@ function hr(e, t, n) {
|
|
|
2428
2427
|
}
|
|
2429
2428
|
function Mn(e = L()) {
|
|
2430
2429
|
e.register("string", {
|
|
2431
|
-
factory: ({ controller: i, ctx: o }) =>
|
|
2430
|
+
factory: ({ controller: i, ctx: o }) => Ie({
|
|
2432
2431
|
ctx: o,
|
|
2433
2432
|
controller: i
|
|
2434
2433
|
}),
|
|
@@ -2562,7 +2561,7 @@ function Mn(e = L()) {
|
|
|
2562
2561
|
priority: 0,
|
|
2563
2562
|
canFallback: !0
|
|
2564
2563
|
}), e.register("set", {
|
|
2565
|
-
factory: ({ controller: i, ctx: o }) =>
|
|
2564
|
+
factory: ({ controller: i, ctx: o }) => Fe({
|
|
2566
2565
|
ctx: o,
|
|
2567
2566
|
controller: i
|
|
2568
2567
|
}),
|
|
@@ -2572,7 +2571,7 @@ function Mn(e = L()) {
|
|
|
2572
2571
|
priority: 0,
|
|
2573
2572
|
canFallback: !0
|
|
2574
2573
|
}), e.register("map", {
|
|
2575
|
-
factory: ({ controller: i, ctx: o }) =>
|
|
2574
|
+
factory: ({ controller: i, ctx: o }) => Pe({
|
|
2576
2575
|
ctx: o,
|
|
2577
2576
|
controller: i
|
|
2578
2577
|
}),
|
|
@@ -2582,7 +2581,7 @@ function Mn(e = L()) {
|
|
|
2582
2581
|
priority: 0,
|
|
2583
2582
|
canFallback: !0
|
|
2584
2583
|
}), e.register("tuple", {
|
|
2585
|
-
factory: ({ controller: i, ctx: o }) =>
|
|
2584
|
+
factory: ({ controller: i, ctx: o }) => qe({
|
|
2586
2585
|
ctx: o,
|
|
2587
2586
|
controller: i
|
|
2588
2587
|
}),
|
|
@@ -2628,7 +2627,7 @@ function Mn(e = L()) {
|
|
|
2628
2627
|
function Sn(e = L()) {
|
|
2629
2628
|
return e.has("string") && e.has("object") && e.has("array");
|
|
2630
2629
|
}
|
|
2631
|
-
function
|
|
2630
|
+
function hr(e = L()) {
|
|
2632
2631
|
Sn(e) || Mn(e);
|
|
2633
2632
|
}
|
|
2634
2633
|
function Dn(e) {
|
|
@@ -2674,13 +2673,13 @@ function An(e, t, n) {
|
|
|
2674
2673
|
if (r === "array")
|
|
2675
2674
|
return kn(e, t, n);
|
|
2676
2675
|
if (r === "set")
|
|
2677
|
-
return
|
|
2676
|
+
return Fn(e, t, n);
|
|
2678
2677
|
if (r === "map")
|
|
2679
2678
|
return {};
|
|
2680
2679
|
if (r === "string")
|
|
2681
|
-
return
|
|
2680
|
+
return Pn(e);
|
|
2682
2681
|
if (Un(r))
|
|
2683
|
-
return
|
|
2682
|
+
return qn(e);
|
|
2684
2683
|
if (Bn(r))
|
|
2685
2684
|
return Ln(e);
|
|
2686
2685
|
if (r === "boolean")
|
|
@@ -2777,7 +2776,7 @@ function kn(e, t, n) {
|
|
|
2777
2776
|
const a = A(s, t, n);
|
|
2778
2777
|
return Array(r).fill(a ?? null);
|
|
2779
2778
|
}
|
|
2780
|
-
function
|
|
2779
|
+
function Fn(e, t, n) {
|
|
2781
2780
|
const r = ("minItems" in e ? e.minItems : 0) ?? 0;
|
|
2782
2781
|
if (r === 0)
|
|
2783
2782
|
return [];
|
|
@@ -2787,7 +2786,7 @@ function Pn(e, t, n) {
|
|
|
2787
2786
|
const a = A(s, t, n);
|
|
2788
2787
|
return Array(r).fill(a ?? null);
|
|
2789
2788
|
}
|
|
2790
|
-
function
|
|
2789
|
+
function Pn(e) {
|
|
2791
2790
|
switch ("format" in e ? e.format : void 0) {
|
|
2792
2791
|
case "date":
|
|
2793
2792
|
return ze();
|
|
@@ -2799,7 +2798,7 @@ function qn(e) {
|
|
|
2799
2798
|
return "";
|
|
2800
2799
|
}
|
|
2801
2800
|
}
|
|
2802
|
-
function
|
|
2801
|
+
function qn(e) {
|
|
2803
2802
|
const t = _e(e), n = t === "int64" || t === "uint64" || t === "int128" || t === "uint128";
|
|
2804
2803
|
let r = "minimum" in e ? e.minimum : void 0, s = "maximum" in e ? e.maximum : void 0;
|
|
2805
2804
|
const a = "exclusiveMinimum" in e ? e.exclusiveMinimum : void 0, u = "exclusiveMaximum" in e ? e.exclusiveMaximum : void 0;
|
|
@@ -2909,7 +2908,7 @@ function _n(e) {
|
|
|
2909
2908
|
}
|
|
2910
2909
|
return Object.keys(a).length > 0 && (s.dependencies = a), re.invalid(s);
|
|
2911
2910
|
}
|
|
2912
|
-
function
|
|
2911
|
+
function br({
|
|
2913
2912
|
schema: e,
|
|
2914
2913
|
initialValue: t,
|
|
2915
2914
|
validationMode: n,
|
|
@@ -2934,13 +2933,13 @@ function vr({
|
|
|
2934
2933
|
o(E);
|
|
2935
2934
|
}
|
|
2936
2935
|
return _n(k);
|
|
2937
|
-
}, { controller: v, setStatus:
|
|
2936
|
+
}, { controller: v, setStatus: T } = et({
|
|
2938
2937
|
initialValue: d,
|
|
2939
2938
|
validationMode: m,
|
|
2940
2939
|
validateDebounceMs: r,
|
|
2941
2940
|
validate: m === "onSubmit" ? void 0 : $,
|
|
2942
2941
|
onChange: i
|
|
2943
|
-
}), j =
|
|
2942
|
+
}), j = P(
|
|
2944
2943
|
He(() => {
|
|
2945
2944
|
v.dispose();
|
|
2946
2945
|
}),
|
|
@@ -2952,48 +2951,48 @@ function vr({
|
|
|
2952
2951
|
locale: u
|
|
2953
2952
|
})
|
|
2954
2953
|
);
|
|
2955
|
-
return l({ Form: j, controller: v, setStatus:
|
|
2954
|
+
return l({ Form: j, controller: v, setStatus: T });
|
|
2956
2955
|
}
|
|
2957
2956
|
export {
|
|
2958
2957
|
z as DefaultWidgetRegistry,
|
|
2959
2958
|
_ as INTEGER_BOUNDS,
|
|
2960
|
-
|
|
2959
|
+
br as JSONStructureForm,
|
|
2961
2960
|
Rt as RefResolver,
|
|
2962
2961
|
ne as StructureContext,
|
|
2963
2962
|
fn as StructureControl,
|
|
2964
2963
|
D as StructureGenericControl,
|
|
2965
|
-
|
|
2964
|
+
tr as createExtendsResolver,
|
|
2966
2965
|
te as createRefResolver,
|
|
2967
2966
|
kt as createStructureContext,
|
|
2968
2967
|
Ue as createValidator,
|
|
2969
|
-
|
|
2970
|
-
|
|
2968
|
+
or as createWidgetRegistry,
|
|
2969
|
+
hr as ensureDefaultWidgets,
|
|
2971
2970
|
Dn as extractStructureDefaults,
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2971
|
+
lr as forFormat,
|
|
2972
|
+
dr as forMatcher,
|
|
2973
|
+
cr as forType,
|
|
2974
|
+
pr as forTypeAndFormat,
|
|
2976
2975
|
hn as formatValidationError,
|
|
2977
2976
|
Be as formatValidationErrors,
|
|
2978
|
-
|
|
2979
|
-
|
|
2977
|
+
ar as getChildErrors,
|
|
2978
|
+
ir as getErrorsForPath,
|
|
2980
2979
|
We as getExplicitWidgetName,
|
|
2981
2980
|
L as getGlobalWidgetRegistry,
|
|
2982
2981
|
ee as getNonNullTypes,
|
|
2983
2982
|
ae as getResolvedType,
|
|
2984
|
-
|
|
2985
|
-
|
|
2983
|
+
fr as getWidgetOptions,
|
|
2984
|
+
rr as groupErrorsByPath,
|
|
2986
2985
|
At as hasConstValue,
|
|
2987
|
-
|
|
2986
|
+
mr as hasCustomWidget,
|
|
2988
2987
|
Sn as hasDefaultWidgets,
|
|
2989
2988
|
Dt as hasEnumValue,
|
|
2990
|
-
|
|
2989
|
+
sr as hasErrorsAtPath,
|
|
2991
2990
|
he as isArrayTypeDefinition,
|
|
2992
|
-
|
|
2991
|
+
It as isBigIntType,
|
|
2993
2992
|
$e as isChoiceTypeDefinition,
|
|
2994
|
-
|
|
2993
|
+
Qn as isCompoundType,
|
|
2995
2994
|
Y as isFloatType,
|
|
2996
|
-
|
|
2995
|
+
F as isIntegerType,
|
|
2997
2996
|
ve as isMapTypeDefinition,
|
|
2998
2997
|
Mt as isNamespace,
|
|
2999
2998
|
Ot as isNullableType,
|
|
@@ -3005,14 +3004,14 @@ export {
|
|
|
3005
3004
|
xe as isTupleTypeDefinition,
|
|
3006
3005
|
St as isTypeDefinition,
|
|
3007
3006
|
O as isTypeReference,
|
|
3008
|
-
|
|
3007
|
+
gr as mergeWidgetOptions,
|
|
3009
3008
|
Ct as parseRefPath,
|
|
3010
3009
|
Mn as registerDefaultWidgets,
|
|
3011
|
-
|
|
3010
|
+
Te as resolveExtends,
|
|
3012
3011
|
N as resolveRef,
|
|
3013
|
-
|
|
3012
|
+
er as resolveTypeReference,
|
|
3014
3013
|
jn as resolveWidget,
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3014
|
+
yr as resolveWidgetWithOverride,
|
|
3015
|
+
ur as setGlobalWidgetRegistry,
|
|
3016
|
+
nr as validate
|
|
3018
3017
|
};
|