@tempots/beatui 0.29.0 → 0.30.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/{2019-DWRjZU7G.cjs → 2019-Bl1mhxeM.cjs} +1 -1
- package/dist/{2019-CQWyTvCk.js → 2019-Cd9nHhvg.js} +2 -2
- package/dist/{2020-B5opG6JJ.cjs → 2020-BKqFJLj6.cjs} +1 -1
- package/dist/{2020-Dv6iZ0kg.js → 2020-CyKJpuK6.js} +2 -2
- package/dist/{ar-Xt0B1GBx.cjs → ar-CbsALGhG.cjs} +1 -1
- package/dist/{ar-L29B4drg.js → ar-Dz8Mg5la.js} +1 -1
- package/dist/auth/index.cjs.js +1 -1
- package/dist/auth/index.es.js +3 -3
- package/dist/beatui.css +1 -0
- package/dist/beatui.tailwind.css +1 -0
- package/dist/{de-BBH6Q1uM.cjs → de-MO-u5hoD.cjs} +1 -1
- package/dist/{de-BL9YMCWJ.js → de-ToWTQGEo.js} +1 -1
- package/dist/{es-3mljmytv.cjs → es-CqkWVfis.cjs} +1 -1
- package/dist/{es-CS4u7MZp.js → es-CruxS0Tz.js} +1 -1
- package/dist/{fa-_5IxCXGI.js → fa-Cf0NZLWA.js} +1 -1
- package/dist/{fa-C06uowfA.cjs → fa-DR8j7v-l.cjs} +1 -1
- package/dist/{fr-ZoJsA1s0.cjs → fr-ClK0mWTO.cjs} +1 -1
- package/dist/{fr-B-ZWm43Y.js → fr-YKXmqMGr.js} +1 -1
- package/dist/{he-J-Bcrgy9.js → he-D8ZOduPw.js} +1 -1
- package/dist/{he-D-_HCjOB.cjs → he-DeJMBRTP.cjs} +1 -1
- package/dist/{hi-B9yNE6-J.cjs → hi-C9Anq8Ae.cjs} +1 -1
- package/dist/{hi-ClGaIH71.js → hi-CIamzVEf.js} +1 -1
- package/dist/{index-B8jOeOOB.js → index-0dpJGQbC.js} +2 -2
- package/dist/{index-zvVNcjMi.cjs → index-52kzSRNb.cjs} +1 -1
- package/dist/{index-CflXJ8xJ.cjs → index-5a6_6F3Z.cjs} +1 -1
- package/dist/{index-BCaOVY88.js → index-BGHGZg_7.js} +2 -2
- package/dist/{index-BICIDfB6.js → index-BMn-7Ble.js} +1 -1
- package/dist/{index-BSfK-Qwf.cjs → index-BR0F2BVZ.cjs} +1 -1
- package/dist/{index-DXB8LND-.cjs → index-BlCmv2EJ.cjs} +1 -1
- package/dist/{index-CiwYKSUt.js → index-BlamLFdS.js} +2 -2
- package/dist/{index-Cwsc5H7D.js → index-C0sjoDdy.js} +2 -2
- package/dist/{index-Bk0BtvLD.cjs → index-C9RMQY3t.cjs} +1 -1
- package/dist/{index-CN4vYjXL.js → index-CDBeAhhM.js} +2 -2
- package/dist/{index-ZuS9yWom.cjs → index-CH2HgQJF.cjs} +1 -1
- package/dist/{index-SPJ46EtH.js → index-CT9YDHSn.js} +4 -4
- package/dist/{index-BzaR8uM1.cjs → index-CUZnWZnQ.cjs} +1 -1
- package/dist/{index-DAdi5JJz.js → index-CVNvgkJN.js} +2 -2
- package/dist/{index-uOI0LXHI.cjs → index-C_NT6gCL.cjs} +1 -1
- package/dist/{index-4MNPHZD0.cjs → index-CafCsH0Z.cjs} +1 -1
- package/dist/{index-C7gZW1I3.cjs → index-Cei6J0b_.cjs} +6 -6
- package/dist/{index-C5uZbosj.js → index-CmcOKNW2.js} +3 -3
- package/dist/{index-C7NeFFtL.js → index-CvpdOKX2.js} +3 -3
- package/dist/{index-DKyf2VGu.cjs → index-CxE1PN5L.cjs} +1 -1
- package/dist/{index-CGAE3ijj.cjs → index-D2BpI4Zz.cjs} +1 -1
- package/dist/{index-DrNo6z9a.cjs → index-D40RPDMJ.cjs} +1 -1
- package/dist/{index-Dsgj-jNd.cjs → index-D5iq4kyE.cjs} +1 -1
- package/dist/{index-CcPQViQa.js → index-DDpjzV7E.js} +137 -134
- package/dist/{index-BJfkb8o6.js → index-DFJed4ks.js} +1 -1
- package/dist/{index-BvXl7BJD.cjs → index-DFzKuRY8.cjs} +1 -1
- package/dist/{index-ljok1ep6.cjs → index-DIO9qaw5.cjs} +1 -1
- package/dist/{index-CPUSDEhf.cjs → index-DIR2rO5B.cjs} +1 -1
- package/dist/{index-BKHqr1z2.js → index-DPnQDm6f.js} +2 -2
- package/dist/{index-C7L2gKXf.cjs → index-DU0jpFGR.cjs} +1 -1
- package/dist/{index-Bc-5l3Cz.cjs → index-DUvVsNDG.cjs} +1 -1
- package/dist/{index-Dr0vUVGJ.js → index-DVZnPL32.js} +4 -4
- package/dist/{index-CJIznGSs.js → index-DiYfLAVQ.js} +2 -2
- package/dist/{index-5kvan4pZ.js → index-DnIheaHS.js} +3 -3
- package/dist/{index-CTiwmXQv.cjs → index-Dp2K8q6O.cjs} +1 -1
- package/dist/{index-CEvEqrWz.js → index-DrlNzz-e.js} +2 -2
- package/dist/{index-0nXL1jt0.cjs → index-Dx9UDsJi.cjs} +1 -1
- package/dist/{index-8xL7lFvb.js → index-DxY-AOQA.js} +2 -2
- package/dist/{index-DZRUtuQ1.js → index-Mmd0YHPJ.js} +2 -2
- package/dist/{index-CKRtOTlW.js → index-NyiYUSW3.js} +4 -4
- package/dist/{index-BbKQCvSw.cjs → index-O9BwR_8P.cjs} +1 -1
- package/dist/{index-D6aavhaa.js → index-alBMysbQ.js} +2 -2
- package/dist/{index-DqP1O6vK.js → index-lEkIbMCl.js} +2 -2
- package/dist/{index-BSaEXg56.js → index-qwDdlmIi.js} +3 -3
- package/dist/{index-4pbqdHdu.cjs → index-x3mhc_C_.cjs} +1 -1
- package/dist/index.cjs.js +2 -2
- package/dist/index.es.js +196 -187
- package/dist/{it-D-bh7RoG.cjs → it-5n3LuTHe.cjs} +1 -1
- package/dist/{it-Dv8tmKm5.js → it-Bn7tG_KC.js} +1 -1
- package/dist/{ja-B4rdImcD.cjs → ja-Bdp4_B8-.cjs} +1 -1
- package/dist/{ja-BpqiZN5f.js → ja-i1ULXeiu.js} +1 -1
- package/dist/json-schema/index.cjs.js +1 -1
- package/dist/json-schema/index.es.js +1 -1
- package/dist/{ko-C43-vhJF.cjs → ko-B5SwKB-j.cjs} +1 -1
- package/dist/{ko-Bpa6y038.js → ko-BpKDmtvY.js} +1 -1
- package/dist/milkdown/index.cjs.js +1 -1
- package/dist/milkdown/index.es.js +1 -1
- package/dist/milkdown-input-Bkgdi-Bv.cjs +944 -0
- package/dist/{milkdown-input-BI5TwGax.js → milkdown-input-CciSI_a5.js} +14905 -13249
- package/dist/milkdown.css +1 -1
- package/dist/{modal-DKWKUrDF.cjs → modal-CAKAT7wv.cjs} +1 -1
- package/dist/{modal-Fect9dc4.js → modal-DvGSDVSv.js} +1 -1
- package/dist/{nl-DDjoZpiU.cjs → nl-Cenl4nr6.cjs} +1 -1
- package/dist/{nl-B5HYWGRz.js → nl-Cs4PDWCJ.js} +1 -1
- package/dist/{notice-DrmHRjLV.cjs → notice-DBME6bFw.cjs} +2 -2
- package/dist/{notice-DKO4C8y2.js → notice-DVEacWKt.js} +2 -1
- package/dist/{pl-CXYiY-nR.cjs → pl-7xYNCk-v.cjs} +1 -1
- package/dist/{pl-DksXqLHk.js → pl-BFLNf991.js} +1 -1
- package/dist/{pt-7-6UhRtW.js → pt-BRZeOkcE.js} +1 -1
- package/dist/{pt-CnC1YN5K.cjs → pt-DOLL0Jpj.cjs} +1 -1
- package/dist/{ru-_1DUTMUW.cjs → ru-DoS9XuqG.cjs} +1 -1
- package/dist/{ru-I676X0Bt.js → ru-KI7Gowz-.js} +1 -1
- package/dist/{tr-DA-8X7MK.cjs → tr-BVmoz40w.cjs} +1 -1
- package/dist/{tr-CssmRZfH.js → tr-CYk8Fua5.js} +1 -1
- package/dist/{translations-BBguPjg9.js → translations-DdNHXAWr.js} +1 -1
- package/dist/{translations-CrqWcCGM.cjs → translations-Dv56lQia.cjs} +1 -1
- package/dist/{ur-BCWL2ev1.js → ur-BIcZGLWt.js} +1 -1
- package/dist/{ur-B1YkWWDx.cjs → ur-orNTOdMP.cjs} +1 -1
- package/dist/{utils-BvhSkzHe.js → utils-D1op9R8_.js} +720 -714
- package/dist/utils-Dobqjl2y.cjs +1 -0
- package/dist/{vi-DA-qqgHJ.cjs → vi-BWyUDP07.cjs} +1 -1
- package/dist/{vi-D5K4x_hN.js → vi-BeK62QeB.js} +1 -1
- package/dist/{zh-HUwi9F-w.js → zh-Dt6yWDu2.js} +1 -1
- package/dist/{zh-B4HcAg-5.cjs → zh-RVJj1NQq.cjs} +1 -1
- package/package.json +18 -18
- package/dist/milkdown-input-CdJ7N_YZ.cjs +0 -941
- package/dist/utils-Bc6SKJnK.cjs +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { b as Se, S as de, j as Ft, d as Z, M as Yt, T as Ys, P as Zs, E as Qs, c as Tr, N as ds, L as Fe, a2 as ea, B as $r, C as hs, I as ps, a as ta, Q as ra, R as na, X as sa } from "./notice-
|
|
1
|
+
import { b as Se, S as de, j as Ft, d as Z, M as Yt, T as Ys, P as Zs, E as Qs, c as Tr, N as ds, L as Fe, a2 as ea, B as $r, C as hs, I as ps, a as ta, Q as ra, R as na, X as sa } from "./notice-DVEacWKt.js";
|
|
2
2
|
import { g as ms } from "./_commonjsHelpers-C6fGbg64.js";
|
|
3
|
-
import { _ as wr, X as aa, S as ia, N as oa, a as ys, g as ua, t as le, u as Ve, s as Zt, z as ca, C as la, W as fa, I as da, K as ha, r as pa, c as Le, p as ma, o as ya, q as ga, T as va, y as _a, w as pr, v as ba, M as Xe, H as $a, D as wa, A as Sa, R as Pa, x as Ea, m as Oa, G as ja, j as gs, O as ka, L as Ra, b as Na } from "./utils-
|
|
4
|
-
import { attr as
|
|
3
|
+
import { _ as wr, X as aa, S as ia, N as oa, a as ys, g as ua, t as le, u as Ve, s as Zt, z as ca, C as la, W as fa, I as da, K as ha, r as pa, c as Le, p as ma, o as ya, q as ga, T as va, y as _a, w as pr, v as ba, M as Xe, H as $a, D as wa, A as Sa, R as Pa, x as Ea, m as Oa, G as ja, j as gs, O as ka, L as Ra, b as Na } from "./utils-D1op9R8_.js";
|
|
4
|
+
import { attr as F, Value as ne, Fragment as je, Async as vs, WithElement as _s, Empty as bs, html as H, When as Je, computedOf as ie, prop as ke, Use as Sr, style as $s, Ensure as ws, aria as Ia, on as xe, MapSignal as Ut, OnDispose as Aa } from "@tempots/dom";
|
|
5
5
|
import { f as Ca } from "./colors-WfmhQ5e1.js";
|
|
6
6
|
function Ta(e, t) {
|
|
7
7
|
for (var r = 0; r < t.length; r++) {
|
|
@@ -486,8 +486,8 @@ function x() {
|
|
|
486
486
|
super(), this.varKind = p, this.name = P, this.rhs = R;
|
|
487
487
|
}
|
|
488
488
|
render({ es5: p, _n: P }) {
|
|
489
|
-
const R = p ? r.varKinds.var : this.varKind,
|
|
490
|
-
return `${R} ${this.name}${
|
|
489
|
+
const R = p ? r.varKinds.var : this.varKind, U = this.rhs === void 0 ? "" : ` = ${this.rhs}`;
|
|
490
|
+
return `${R} ${this.name}${U};` + P;
|
|
491
491
|
}
|
|
492
492
|
optimizeNames(p, P) {
|
|
493
493
|
if (p[this.name.str])
|
|
@@ -514,8 +514,8 @@ function x() {
|
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
class h extends u {
|
|
517
|
-
constructor(p, P, R,
|
|
518
|
-
super(p, R,
|
|
517
|
+
constructor(p, P, R, U) {
|
|
518
|
+
super(p, R, U), this.op = P;
|
|
519
519
|
}
|
|
520
520
|
render({ _n: p }) {
|
|
521
521
|
return `${this.lhs} ${this.op}= ${this.rhs};` + p;
|
|
@@ -583,10 +583,10 @@ function x() {
|
|
|
583
583
|
}
|
|
584
584
|
optimizeNames(p, P) {
|
|
585
585
|
const { nodes: R } = this;
|
|
586
|
-
let
|
|
587
|
-
for (;
|
|
588
|
-
const K = R[
|
|
589
|
-
K.optimizeNames(p, P) || (Q(p, K.names), R.splice(
|
|
586
|
+
let U = R.length;
|
|
587
|
+
for (; U--; ) {
|
|
588
|
+
const K = R[U];
|
|
589
|
+
K.optimizeNames(p, P) || (Q(p, K.names), R.splice(U, 1));
|
|
590
590
|
}
|
|
591
591
|
return R.length > 0 ? this : void 0;
|
|
592
592
|
}
|
|
@@ -657,12 +657,12 @@ function x() {
|
|
|
657
657
|
}
|
|
658
658
|
}
|
|
659
659
|
class m extends i {
|
|
660
|
-
constructor(p, P, R,
|
|
661
|
-
super(), this.varKind = p, this.name = P, this.from = R, this.to =
|
|
660
|
+
constructor(p, P, R, U) {
|
|
661
|
+
super(), this.varKind = p, this.name = P, this.from = R, this.to = U;
|
|
662
662
|
}
|
|
663
663
|
render(p) {
|
|
664
|
-
const P = p.es5 ? r.varKinds.var : this.varKind, { name: R, from:
|
|
665
|
-
return `for(${P} ${R}=${
|
|
664
|
+
const P = p.es5 ? r.varKinds.var : this.varKind, { name: R, from: U, to: K } = this;
|
|
665
|
+
return `for(${P} ${R}=${U}; ${R}<${K}; ${R}++)` + super.render(p);
|
|
666
666
|
}
|
|
667
667
|
get names() {
|
|
668
668
|
const p = L(super.names, this.from);
|
|
@@ -670,8 +670,8 @@ function x() {
|
|
|
670
670
|
}
|
|
671
671
|
}
|
|
672
672
|
class _ extends i {
|
|
673
|
-
constructor(p, P, R,
|
|
674
|
-
super(), this.loop = p, this.varKind = P, this.name = R, this.iterable =
|
|
673
|
+
constructor(p, P, R, U) {
|
|
674
|
+
super(), this.loop = p, this.varKind = P, this.name = R, this.iterable = U;
|
|
675
675
|
}
|
|
676
676
|
render(p) {
|
|
677
677
|
return `for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})` + super.render(p);
|
|
@@ -709,8 +709,8 @@ function x() {
|
|
|
709
709
|
return super.optimizeNodes(), (p = this.catch) === null || p === void 0 || p.optimizeNodes(), (P = this.finally) === null || P === void 0 || P.optimizeNodes(), this;
|
|
710
710
|
}
|
|
711
711
|
optimizeNames(p, P) {
|
|
712
|
-
var R,
|
|
713
|
-
return super.optimizeNames(p, P), (R = this.catch) === null || R === void 0 || R.optimizeNames(p, P), (
|
|
712
|
+
var R, U;
|
|
713
|
+
return super.optimizeNames(p, P), (R = this.catch) === null || R === void 0 || R.optimizeNames(p, P), (U = this.finally) === null || U === void 0 || U.optimizeNames(p, P), this;
|
|
714
714
|
}
|
|
715
715
|
get names() {
|
|
716
716
|
const p = super.names;
|
|
@@ -764,9 +764,9 @@ function x() {
|
|
|
764
764
|
scopeCode() {
|
|
765
765
|
return this._extScope.scopeCode(this._values);
|
|
766
766
|
}
|
|
767
|
-
_def(p, P, R,
|
|
767
|
+
_def(p, P, R, U) {
|
|
768
768
|
const K = this._scope.toName(P);
|
|
769
|
-
return R !== void 0 &&
|
|
769
|
+
return R !== void 0 && U && (this._constants[K.str] = R), this._leafNode(new o(p, K, R)), K;
|
|
770
770
|
}
|
|
771
771
|
// `const` declaration (`var` in es5 mode)
|
|
772
772
|
const(p, P, R) {
|
|
@@ -795,8 +795,8 @@ function x() {
|
|
|
795
795
|
// returns code for object literal for the passed argument list of key-value pairs
|
|
796
796
|
object(...p) {
|
|
797
797
|
const P = ["{"];
|
|
798
|
-
for (const [R,
|
|
799
|
-
P.length > 1 && P.push(","), P.push(R), (R !==
|
|
798
|
+
for (const [R, U] of p)
|
|
799
|
+
P.length > 1 && P.push(","), P.push(R), (R !== U || this.opts.es5) && (P.push(":"), (0, t.addCodeArg)(P, U));
|
|
800
800
|
return P.push("}"), new t._Code(P);
|
|
801
801
|
}
|
|
802
802
|
// `if` clause (or statement if `thenBody` and, optionally, `elseBody` are passed)
|
|
@@ -829,12 +829,12 @@ function x() {
|
|
|
829
829
|
return this._for(new c(p), P);
|
|
830
830
|
}
|
|
831
831
|
// `for` statement for a range of values
|
|
832
|
-
forRange(p, P, R,
|
|
832
|
+
forRange(p, P, R, U, K = this.opts.es5 ? r.varKinds.var : r.varKinds.let) {
|
|
833
833
|
const Y = this._scope.toName(p);
|
|
834
|
-
return this._for(new m(K, Y, P, R), () =>
|
|
834
|
+
return this._for(new m(K, Y, P, R), () => U(Y));
|
|
835
835
|
}
|
|
836
836
|
// `for-of` statement (in es5 mode replace with a normal for loop)
|
|
837
|
-
forOf(p, P, R,
|
|
837
|
+
forOf(p, P, R, U = r.varKinds.const) {
|
|
838
838
|
const K = this._scope.toName(p);
|
|
839
839
|
if (this.opts.es5) {
|
|
840
840
|
const Y = P instanceof t.Name ? P : this.var("_arr", P);
|
|
@@ -842,15 +842,15 @@ function x() {
|
|
|
842
842
|
this.var(K, (0, t._)`${Y}[${X}]`), R(K);
|
|
843
843
|
});
|
|
844
844
|
}
|
|
845
|
-
return this._for(new _("of",
|
|
845
|
+
return this._for(new _("of", U, K, P), () => R(K));
|
|
846
846
|
}
|
|
847
847
|
// `for-in` statement.
|
|
848
848
|
// With option `ownProperties` replaced with a `for-of` loop for object keys
|
|
849
|
-
forIn(p, P, R,
|
|
849
|
+
forIn(p, P, R, U = this.opts.es5 ? r.varKinds.var : r.varKinds.const) {
|
|
850
850
|
if (this.opts.ownProperties)
|
|
851
851
|
return this.forOf(p, (0, t._)`Object.keys(${P})`, R);
|
|
852
852
|
const K = this._scope.toName(p);
|
|
853
|
-
return this._for(new _("in",
|
|
853
|
+
return this._for(new _("in", U, K, P), () => R(K));
|
|
854
854
|
}
|
|
855
855
|
// end `for` loop
|
|
856
856
|
endFor() {
|
|
@@ -875,12 +875,12 @@ function x() {
|
|
|
875
875
|
try(p, P, R) {
|
|
876
876
|
if (!P && !R)
|
|
877
877
|
throw new Error('CodeGen: "try" without "catch" and "finally"');
|
|
878
|
-
const
|
|
879
|
-
if (this._blockNode(
|
|
878
|
+
const U = new I();
|
|
879
|
+
if (this._blockNode(U), this.code(p), P) {
|
|
880
880
|
const K = this.name("e");
|
|
881
|
-
this._currNode =
|
|
881
|
+
this._currNode = U.catch = new q(K), P(K);
|
|
882
882
|
}
|
|
883
|
-
return R && (this._currNode =
|
|
883
|
+
return R && (this._currNode = U.finally = new D(), this.code(R)), this._endBlockNode(q, D);
|
|
884
884
|
}
|
|
885
885
|
// `throw` statement
|
|
886
886
|
throw(p) {
|
|
@@ -901,8 +901,8 @@ function x() {
|
|
|
901
901
|
return this._nodes.length = P, this;
|
|
902
902
|
}
|
|
903
903
|
// `function` heading (or definition if funcBody is passed)
|
|
904
|
-
func(p, P = t.nil, R,
|
|
905
|
-
return this._blockNode(new b(p, P, R)),
|
|
904
|
+
func(p, P = t.nil, R, U) {
|
|
905
|
+
return this._blockNode(new b(p, P, R)), U && this.code(U).endFunc(), this;
|
|
906
906
|
}
|
|
907
907
|
// end function definition
|
|
908
908
|
endFunc() {
|
|
@@ -954,14 +954,14 @@ function x() {
|
|
|
954
954
|
function B(N, p, P) {
|
|
955
955
|
if (N instanceof t.Name)
|
|
956
956
|
return R(N);
|
|
957
|
-
if (!
|
|
957
|
+
if (!U(N))
|
|
958
958
|
return N;
|
|
959
959
|
return new t._Code(N._items.reduce((K, Y) => (Y instanceof t.Name && (Y = R(Y)), Y instanceof t._Code ? K.push(...Y._items) : K.push(Y), K), []));
|
|
960
960
|
function R(K) {
|
|
961
961
|
const Y = P[K.str];
|
|
962
962
|
return Y === void 0 || p[K.str] !== 1 ? K : (delete p[K.str], Y);
|
|
963
963
|
}
|
|
964
|
-
function
|
|
964
|
+
function U(K) {
|
|
965
965
|
return K instanceof t._Code && K._items.some((Y) => Y instanceof t.Name && p[Y.str] === 1 && P[Y.str] !== void 0);
|
|
966
966
|
}
|
|
967
967
|
}
|
|
@@ -2071,7 +2071,7 @@ function Wt() {
|
|
|
2071
2071
|
function oe(O, k, T, z) {
|
|
2072
2072
|
const { gen: W, schema: G, data: ue, allErrors: be, opts: me, self: ye } = O, { RULES: ce } = ye;
|
|
2073
2073
|
if (G.$ref && (me.ignoreKeywordsWithRef || !(0, d.schemaHasRulesButRef)(G, ce))) {
|
|
2074
|
-
W.block(() =>
|
|
2074
|
+
W.block(() => U(O, "$ref", ce.all.$ref.definition));
|
|
2075
2075
|
return;
|
|
2076
2076
|
}
|
|
2077
2077
|
me.jtd || te(O, k), W.block(() => {
|
|
@@ -2087,7 +2087,7 @@ function Wt() {
|
|
|
2087
2087
|
const { gen: T, schema: z, opts: { useDefaults: W } } = O;
|
|
2088
2088
|
W && (0, a.assignDefaults)(O, k.type), T.block(() => {
|
|
2089
2089
|
for (const G of k.rules)
|
|
2090
|
-
(0, r.shouldUseRule)(z, G) &&
|
|
2090
|
+
(0, r.shouldUseRule)(z, G) && U(O, G.keyword, G.definition, k.type);
|
|
2091
2091
|
});
|
|
2092
2092
|
}
|
|
2093
2093
|
function te(O, k) {
|
|
@@ -2235,7 +2235,7 @@ function Wt() {
|
|
|
2235
2235
|
}
|
|
2236
2236
|
}
|
|
2237
2237
|
Pe.KeywordCxt = R;
|
|
2238
|
-
function
|
|
2238
|
+
function U(O, k, T, z) {
|
|
2239
2239
|
const W = new R(O, T, k);
|
|
2240
2240
|
"code" in T ? T.code(W, z) : W.$data && T.validate ? (0, s.funcKeywordCode)(W, T) : "macro" in T ? (0, s.macroKeywordCode)(W, T) : (T.compile || T.validate) && (0, s.funcKeywordCode)(W, T);
|
|
2241
2241
|
}
|
|
@@ -2885,11 +2885,11 @@ function Qa() {
|
|
|
2885
2885
|
unicode: '"minLength"/"maxLength" account for unicode characters by default.'
|
|
2886
2886
|
}, i = 200;
|
|
2887
2887
|
function c(M) {
|
|
2888
|
-
var j, C, N, p, P, R,
|
|
2888
|
+
var j, C, N, p, P, R, U, K, Y, X, O, k, T, z, W, G, ue, be, me, ye, ce, Me, _e, xt, Gt;
|
|
2889
2889
|
const Ue = M.strict, Xt = (j = M.code) === null || j === void 0 ? void 0 : j.optimize, Ar = Xt === !0 || Xt === void 0 ? 1 : Xt || 0, Cr = (N = (C = M.code) === null || C === void 0 ? void 0 : C.regExp) !== null && N !== void 0 ? N : S, Xs = (p = M.uriResolver) !== null && p !== void 0 ? p : $.default;
|
|
2890
2890
|
return {
|
|
2891
2891
|
strictSchema: (R = (P = M.strictSchema) !== null && P !== void 0 ? P : Ue) !== null && R !== void 0 ? R : !0,
|
|
2892
|
-
strictNumbers: (K = (
|
|
2892
|
+
strictNumbers: (K = (U = M.strictNumbers) !== null && U !== void 0 ? U : Ue) !== null && K !== void 0 ? K : !0,
|
|
2893
2893
|
strictTypes: (X = (Y = M.strictTypes) !== null && Y !== void 0 ? Y : Ue) !== null && X !== void 0 ? X : "log",
|
|
2894
2894
|
strictTuples: (k = (O = M.strictTuples) !== null && O !== void 0 ? O : Ue) !== null && k !== void 0 ? k : "log",
|
|
2895
2895
|
strictRequired: (z = (T = M.strictRequired) !== null && T !== void 0 ? T : Ue) !== null && z !== void 0 ? z : !1,
|
|
@@ -2961,10 +2961,10 @@ function Qa() {
|
|
|
2961
2961
|
} catch (O) {
|
|
2962
2962
|
if (!(O instanceof a.default))
|
|
2963
2963
|
throw O;
|
|
2964
|
-
return
|
|
2964
|
+
return U.call(this, O), await K.call(this, O.missingSchema), R.call(this, X);
|
|
2965
2965
|
}
|
|
2966
2966
|
}
|
|
2967
|
-
function
|
|
2967
|
+
function U({ missingSchema: X, missingRef: O }) {
|
|
2968
2968
|
if (this.refs[X])
|
|
2969
2969
|
throw new Error(`AnySchema ${X} is loaded but ${O} cannot be resolved`);
|
|
2970
2970
|
}
|
|
@@ -3112,14 +3112,14 @@ function Qa() {
|
|
|
3112
3112
|
for (const p of C) {
|
|
3113
3113
|
const P = p.split("/").slice(1);
|
|
3114
3114
|
let R = j;
|
|
3115
|
-
for (const
|
|
3116
|
-
R = R[
|
|
3117
|
-
for (const
|
|
3118
|
-
const K = N[
|
|
3115
|
+
for (const U of P)
|
|
3116
|
+
R = R[U];
|
|
3117
|
+
for (const U in N) {
|
|
3118
|
+
const K = N[U];
|
|
3119
3119
|
if (typeof K != "object")
|
|
3120
3120
|
continue;
|
|
3121
|
-
const { $data: Y } = K.definition, X = R[
|
|
3122
|
-
Y && X && (R[
|
|
3121
|
+
const { $data: Y } = K.definition, X = R[U];
|
|
3122
|
+
Y && X && (R[U] = ve(X));
|
|
3123
3123
|
}
|
|
3124
3124
|
}
|
|
3125
3125
|
return j;
|
|
@@ -3132,9 +3132,9 @@ function Qa() {
|
|
|
3132
3132
|
}
|
|
3133
3133
|
_addSchema(j, C, N, p = this.opts.validateSchema, P = this.opts.addUsedSchema) {
|
|
3134
3134
|
let R;
|
|
3135
|
-
const { schemaId:
|
|
3135
|
+
const { schemaId: U } = this.opts;
|
|
3136
3136
|
if (typeof j == "object")
|
|
3137
|
-
R = j[
|
|
3137
|
+
R = j[U];
|
|
3138
3138
|
else {
|
|
3139
3139
|
if (this.opts.jtd)
|
|
3140
3140
|
throw new Error("schema must be object");
|
|
@@ -3146,7 +3146,7 @@ function Qa() {
|
|
|
3146
3146
|
return K;
|
|
3147
3147
|
N = (0, h.normalizeId)(R || N);
|
|
3148
3148
|
const Y = h.getSchemaRefs.call(this, j, N);
|
|
3149
|
-
return K = new o.SchemaEnv({ schema: j, schemaId:
|
|
3149
|
+
return K = new o.SchemaEnv({ schema: j, schemaId: U, meta: C, baseId: N, localRefs: Y }), this._cache.set(K.schema, K), P && !N.startsWith("#") && (N && this._checkUnique(N), this.refs[N] = K), p && this.validateSchema(j, !0), K;
|
|
3150
3150
|
}
|
|
3151
3151
|
_checkUnique(j) {
|
|
3152
3152
|
if (this.schemas[j] || this.refs[j])
|
|
@@ -3242,7 +3242,7 @@ function Qa() {
|
|
|
3242
3242
|
let R = p ? P.post : P.rules.find(({ type: K }) => K === C);
|
|
3243
3243
|
if (R || (R = { type: C, rules: [] }, P.rules.push(R)), P.keywords[M] = !0, !j)
|
|
3244
3244
|
return;
|
|
3245
|
-
const
|
|
3245
|
+
const U = {
|
|
3246
3246
|
keyword: M,
|
|
3247
3247
|
definition: {
|
|
3248
3248
|
...j,
|
|
@@ -3250,7 +3250,7 @@ function Qa() {
|
|
|
3250
3250
|
schemaType: (0, y.getJSONTypes)(j.schemaType)
|
|
3251
3251
|
}
|
|
3252
3252
|
};
|
|
3253
|
-
j.before ? oe.call(this, R,
|
|
3253
|
+
j.before ? oe.call(this, R, U, j.before) : R.rules.push(U), P.all[M] = U, (N = j.implements) === null || N === void 0 || N.forEach((K) => this.addKeyword(K));
|
|
3254
3254
|
}
|
|
3255
3255
|
function oe(M, j, C) {
|
|
3256
3256
|
const N = M.rules.findIndex((p) => p.keyword === C);
|
|
@@ -4727,9 +4727,9 @@ async function Qn(e, t, r) {
|
|
|
4727
4727
|
const n = (await (() => {
|
|
4728
4728
|
switch (e) {
|
|
4729
4729
|
case "2020-12":
|
|
4730
|
-
return import("./2020-
|
|
4730
|
+
return import("./2020-CyKJpuK6.js").then((s) => s._);
|
|
4731
4731
|
case "2019-09":
|
|
4732
|
-
return import("./2019-
|
|
4732
|
+
return import("./2019-Cd9nHhvg.js").then((s) => s._);
|
|
4733
4733
|
case "draft-07":
|
|
4734
4734
|
return Promise.resolve().then(() => iu);
|
|
4735
4735
|
}
|
|
@@ -5340,10 +5340,10 @@ function qs({
|
|
|
5340
5340
|
selector: r,
|
|
5341
5341
|
inner: n
|
|
5342
5342
|
}) {
|
|
5343
|
-
return e.isRoot ? t ? de(
|
|
5343
|
+
return e.isRoot ? t ? de(F.class("bc-stack--gap-2"), r, n) : n : Ft({
|
|
5344
5344
|
...Re({ ctx: e }),
|
|
5345
5345
|
content: t ? de(
|
|
5346
|
-
|
|
5346
|
+
F.class("bc-stack--gap-2 bc-stack--align-start"),
|
|
5347
5347
|
r,
|
|
5348
5348
|
n
|
|
5349
5349
|
) : n
|
|
@@ -5610,7 +5610,7 @@ function ts({
|
|
|
5610
5610
|
fromInput: (a) => a?.toISOString() ?? null
|
|
5611
5611
|
});
|
|
5612
5612
|
case "markdown":
|
|
5613
|
-
return vs(import("./milkdown-input-
|
|
5613
|
+
return vs(import("./milkdown-input-CciSI_a5.js").then((a) => a.K), {
|
|
5614
5614
|
then: ({ MilkdownInput: a }) => Z(a, {
|
|
5615
5615
|
...t,
|
|
5616
5616
|
controller: Le(r)
|
|
@@ -6032,13 +6032,13 @@ function mo({
|
|
|
6032
6032
|
class: "bc-schema-conflicts-banner"
|
|
6033
6033
|
},
|
|
6034
6034
|
H.ul(
|
|
6035
|
-
|
|
6035
|
+
F.style("margin: 0; padding-left: 1.25rem; list-style-type: disc;"),
|
|
6036
6036
|
...e.map(
|
|
6037
6037
|
(t) => H.li(
|
|
6038
|
-
|
|
6038
|
+
F.style("margin-bottom: 0.25rem;"),
|
|
6039
6039
|
t.message,
|
|
6040
6040
|
t.path.length > 0 ? H.code(
|
|
6041
|
-
|
|
6041
|
+
F.style(
|
|
6042
6042
|
"margin-left: 0.5rem; font-size: 0.75rem; opacity: 0.7;"
|
|
6043
6043
|
),
|
|
6044
6044
|
` (${t.path.join(".")})`
|
|
@@ -6059,13 +6059,13 @@ function yo({
|
|
|
6059
6059
|
class: "bc-not-violations-banner"
|
|
6060
6060
|
},
|
|
6061
6061
|
H.ul(
|
|
6062
|
-
|
|
6062
|
+
F.style("margin: 0; padding-left: 1.25rem; list-style-type: disc;"),
|
|
6063
6063
|
...e.map(
|
|
6064
6064
|
(t) => H.li(
|
|
6065
|
-
|
|
6065
|
+
F.style("margin-bottom: 0.25rem;"),
|
|
6066
6066
|
t.message,
|
|
6067
6067
|
t.path.length > 0 ? H.code(
|
|
6068
|
-
|
|
6068
|
+
F.style(
|
|
6069
6069
|
"margin-left: 0.5rem; font-size: 0.75rem; opacity: 0.7;"
|
|
6070
6070
|
),
|
|
6071
6071
|
` (${t.path.join(".")})`
|
|
@@ -6094,7 +6094,7 @@ function go({
|
|
|
6094
6094
|
};
|
|
6095
6095
|
return de(
|
|
6096
6096
|
H.div(
|
|
6097
|
-
|
|
6097
|
+
F.class("bc-presence-toggle"),
|
|
6098
6098
|
Ea({
|
|
6099
6099
|
value: n,
|
|
6100
6100
|
onChange: s,
|
|
@@ -6109,7 +6109,7 @@ function se(e, t, r) {
|
|
|
6109
6109
|
const n = e.schemaConflicts.length > 0, a = e.notViolations.length > 0, s = e.shouldShowPresenceToggle && r != null;
|
|
6110
6110
|
let o = t;
|
|
6111
6111
|
return s && r != null && (o = go({ ctx: e, controller: r, content: t })), !n && !a ? o : de(
|
|
6112
|
-
|
|
6112
|
+
F.class("bc-stack--gap-2"),
|
|
6113
6113
|
a ? yo({ violations: e.notViolations }) : null,
|
|
6114
6114
|
n ? mo({ conflicts: e.schemaConflicts }) : null,
|
|
6115
6115
|
o
|
|
@@ -6365,7 +6365,7 @@ function Oo(e, t, r) {
|
|
|
6365
6365
|
(l) => h && l != null
|
|
6366
6366
|
);
|
|
6367
6367
|
return H.div(
|
|
6368
|
-
|
|
6368
|
+
F.class("bc-object-helpers__row"),
|
|
6369
6369
|
$s.gridTemplateColumns("2fr 3fr min-content"),
|
|
6370
6370
|
Ft({
|
|
6371
6371
|
content: gs({
|
|
@@ -6378,10 +6378,10 @@ function Oo(e, t, r) {
|
|
|
6378
6378
|
}),
|
|
6379
6379
|
error: ws(
|
|
6380
6380
|
$,
|
|
6381
|
-
(l) => H.div(
|
|
6381
|
+
(l) => H.div(F.class("bc-object-helpers__error"), l)
|
|
6382
6382
|
),
|
|
6383
6383
|
description: Object.keys(s).length > 0 ? H.div(
|
|
6384
|
-
|
|
6384
|
+
F.class("bc-object-helpers__description"),
|
|
6385
6385
|
"Allowed patterns: ",
|
|
6386
6386
|
Object.keys(s).join(", ")
|
|
6387
6387
|
) : null
|
|
@@ -6392,7 +6392,7 @@ function Oo(e, t, r) {
|
|
|
6392
6392
|
controller: d
|
|
6393
6393
|
})
|
|
6394
6394
|
),
|
|
6395
|
-
H.div(
|
|
6395
|
+
H.div(F.class("bc-object-helpers__remove"), g)
|
|
6396
6396
|
);
|
|
6397
6397
|
}
|
|
6398
6398
|
function jo(e, t, r) {
|
|
@@ -6459,7 +6459,7 @@ function jo(e, t, r) {
|
|
|
6459
6459
|
(i) => y && i != null
|
|
6460
6460
|
);
|
|
6461
6461
|
return H.div(
|
|
6462
|
-
|
|
6462
|
+
F.class("bc-object-helpers__row"),
|
|
6463
6463
|
$s.gridTemplateColumns("2fr 3fr min-content"),
|
|
6464
6464
|
Ft({
|
|
6465
6465
|
content: gs({
|
|
@@ -6472,10 +6472,10 @@ function jo(e, t, r) {
|
|
|
6472
6472
|
}),
|
|
6473
6473
|
error: ws(
|
|
6474
6474
|
S,
|
|
6475
|
-
(i) => H.div(
|
|
6475
|
+
(i) => H.div(F.class("bc-object-helpers__error"), i)
|
|
6476
6476
|
),
|
|
6477
6477
|
description: H.div(
|
|
6478
|
-
|
|
6478
|
+
F.class("bc-object-helpers__description"),
|
|
6479
6479
|
u === !1 ? "Unevaluated property (not allowed by schema)" : "Unevaluated property",
|
|
6480
6480
|
Object.keys(s).length > 0 ? H.span(
|
|
6481
6481
|
" • Allowed patterns: ",
|
|
@@ -6489,7 +6489,7 @@ function jo(e, t, r) {
|
|
|
6489
6489
|
controller: v
|
|
6490
6490
|
})
|
|
6491
6491
|
),
|
|
6492
|
-
H.div(
|
|
6492
|
+
H.div(F.class("bc-object-helpers__remove"), f)
|
|
6493
6493
|
);
|
|
6494
6494
|
}
|
|
6495
6495
|
function ko(e) {
|
|
@@ -6506,11 +6506,11 @@ function Ro({
|
|
|
6506
6506
|
children: t
|
|
6507
6507
|
}) {
|
|
6508
6508
|
return H.fieldset(
|
|
6509
|
-
|
|
6510
|
-
e ? H.legend(
|
|
6509
|
+
F.class("bc-fieldset"),
|
|
6510
|
+
e ? H.legend(F.class("bc-fieldset__legend"), e) : null,
|
|
6511
6511
|
H.div(
|
|
6512
|
-
|
|
6513
|
-
de(
|
|
6512
|
+
F.class("bc-fieldset__content"),
|
|
6513
|
+
de(F.class("bc-stack--gap-1"), ...t)
|
|
6514
6514
|
)
|
|
6515
6515
|
);
|
|
6516
6516
|
}
|
|
@@ -6521,7 +6521,7 @@ function No({
|
|
|
6521
6521
|
return ka(
|
|
6522
6522
|
{ variant: "outlined", size: "md" },
|
|
6523
6523
|
de(
|
|
6524
|
-
|
|
6524
|
+
F.class("bc-stack--gap-1"),
|
|
6525
6525
|
e ? Fe(e) : null,
|
|
6526
6526
|
...t
|
|
6527
6527
|
)
|
|
@@ -6541,8 +6541,8 @@ function Io({
|
|
|
6541
6541
|
return "bc-schema-grid bc-schema-grid--cols-1";
|
|
6542
6542
|
});
|
|
6543
6543
|
return H.div(
|
|
6544
|
-
|
|
6545
|
-
|
|
6544
|
+
F.class(r),
|
|
6545
|
+
F.class("bc-schema-grid--gap-4"),
|
|
6546
6546
|
...t
|
|
6547
6547
|
);
|
|
6548
6548
|
}
|
|
@@ -6554,21 +6554,22 @@ function Ao({
|
|
|
6554
6554
|
return Co({ title: "Properties", children: t });
|
|
6555
6555
|
const r = ke(Object.keys(e)[0]), n = Object.entries(e);
|
|
6556
6556
|
return H.div(
|
|
6557
|
-
|
|
6557
|
+
F.class("bc-tabs"),
|
|
6558
6558
|
// Tab headers
|
|
6559
6559
|
H.div(
|
|
6560
|
-
|
|
6561
|
-
|
|
6560
|
+
F.class("bc-tabs__header"),
|
|
6561
|
+
F.role("tablist"),
|
|
6562
6562
|
...n.map(
|
|
6563
6563
|
([a], s) => H.button(
|
|
6564
|
-
|
|
6565
|
-
|
|
6564
|
+
F.type("button"),
|
|
6565
|
+
F.class("bc-tabs__tab"),
|
|
6566
|
+
F.class(
|
|
6566
6567
|
ie(r)(
|
|
6567
6568
|
(o) => o === a ? "bc-tabs__tab--active" : ""
|
|
6568
6569
|
)
|
|
6569
6570
|
),
|
|
6570
|
-
|
|
6571
|
-
|
|
6571
|
+
F.role("tab"),
|
|
6572
|
+
F.tabindex(
|
|
6572
6573
|
r.map((o) => o === a ? 0 : -1)
|
|
6573
6574
|
),
|
|
6574
6575
|
xe.click(() => r.set(a)),
|
|
@@ -6598,18 +6599,18 @@ function Ao({
|
|
|
6598
6599
|
),
|
|
6599
6600
|
// Tab content
|
|
6600
6601
|
H.div(
|
|
6601
|
-
|
|
6602
|
+
F.class("bc-tabs__content"),
|
|
6602
6603
|
...n.map(
|
|
6603
6604
|
([a, s]) => H.div(
|
|
6604
|
-
|
|
6605
|
-
|
|
6605
|
+
F.class("bc-tabs__panel"),
|
|
6606
|
+
F.class(
|
|
6606
6607
|
ie(r)(
|
|
6607
6608
|
(o) => o === a ? "bc-tabs__panel--active" : "bc-tabs__panel--hidden"
|
|
6608
6609
|
)
|
|
6609
6610
|
),
|
|
6610
|
-
|
|
6611
|
+
F.role("tabpanel"),
|
|
6611
6612
|
de(
|
|
6612
|
-
|
|
6613
|
+
F.class("bc-stack--gap-1"),
|
|
6613
6614
|
...t.filter((o, u) => s.length === 0 || u < s.length)
|
|
6614
6615
|
)
|
|
6615
6616
|
)
|
|
@@ -6622,16 +6623,16 @@ function Co({
|
|
|
6622
6623
|
children: t
|
|
6623
6624
|
}) {
|
|
6624
6625
|
return H.div(
|
|
6625
|
-
|
|
6626
|
+
F.class("bc-tabs"),
|
|
6626
6627
|
H.div(
|
|
6627
|
-
|
|
6628
|
-
H.div(
|
|
6628
|
+
F.class("bc-tabs__header"),
|
|
6629
|
+
H.div(F.class("bc-tabs__tab bc-tabs__tab--active"), e)
|
|
6629
6630
|
),
|
|
6630
6631
|
H.div(
|
|
6631
|
-
|
|
6632
|
+
F.class("bc-tabs__content"),
|
|
6632
6633
|
H.div(
|
|
6633
|
-
|
|
6634
|
-
de(
|
|
6634
|
+
F.class("bc-tabs__panel bc-tabs__panel--active"),
|
|
6635
|
+
de(F.class("bc-stack--gap-1"), ...t)
|
|
6635
6636
|
)
|
|
6636
6637
|
)
|
|
6637
6638
|
);
|
|
@@ -6644,15 +6645,16 @@ function To({
|
|
|
6644
6645
|
return qo({ title: "Properties", children: t });
|
|
6645
6646
|
const r = Object.entries(e), n = ke(new Set([r[0]?.[0]].filter(Boolean)));
|
|
6646
6647
|
return H.div(
|
|
6647
|
-
|
|
6648
|
+
F.class("bc-accordion"),
|
|
6648
6649
|
...r.map(([a, s]) => {
|
|
6649
6650
|
const o = ie(n)(
|
|
6650
6651
|
(u) => u.has(a)
|
|
6651
6652
|
);
|
|
6652
6653
|
return H.div(
|
|
6653
|
-
|
|
6654
|
+
F.class("bc-accordion__item"),
|
|
6654
6655
|
H.button(
|
|
6655
|
-
|
|
6656
|
+
F.type("button"),
|
|
6657
|
+
F.class("bc-accordion__header"),
|
|
6656
6658
|
Ia.expanded(o),
|
|
6657
6659
|
xe.click(() => {
|
|
6658
6660
|
const u = n.value, h = new Set(u);
|
|
@@ -6674,14 +6676,14 @@ function To({
|
|
|
6674
6676
|
})
|
|
6675
6677
|
),
|
|
6676
6678
|
H.div(
|
|
6677
|
-
|
|
6678
|
-
|
|
6679
|
+
F.class("bc-accordion__content"),
|
|
6680
|
+
F.class(
|
|
6679
6681
|
ie(o)(
|
|
6680
6682
|
(u) => u ? "bc-accordion__content--open" : "bc-accordion__content--closed"
|
|
6681
6683
|
)
|
|
6682
6684
|
),
|
|
6683
6685
|
de(
|
|
6684
|
-
|
|
6686
|
+
F.class("bc-stack--gap-1"),
|
|
6685
6687
|
...t.filter((u, h) => s.length === 0 || h < s.length)
|
|
6686
6688
|
)
|
|
6687
6689
|
)
|
|
@@ -6695,11 +6697,12 @@ function qo({
|
|
|
6695
6697
|
}) {
|
|
6696
6698
|
const r = ke(!0);
|
|
6697
6699
|
return H.div(
|
|
6698
|
-
|
|
6700
|
+
F.class("bc-accordion"),
|
|
6699
6701
|
H.div(
|
|
6700
|
-
|
|
6702
|
+
F.class("bc-accordion__item"),
|
|
6701
6703
|
H.button(
|
|
6702
|
-
|
|
6704
|
+
F.type("button"),
|
|
6705
|
+
F.class("bc-accordion__header"),
|
|
6703
6706
|
xe.click(() => r.set(!r.value)),
|
|
6704
6707
|
H.span(e),
|
|
6705
6708
|
ps({
|
|
@@ -6710,13 +6713,13 @@ function qo({
|
|
|
6710
6713
|
})
|
|
6711
6714
|
),
|
|
6712
6715
|
H.div(
|
|
6713
|
-
|
|
6714
|
-
|
|
6716
|
+
F.class("bc-accordion__content"),
|
|
6717
|
+
F.class(
|
|
6715
6718
|
ie(r)(
|
|
6716
6719
|
(n) => n ? "bc-accordion__content--open" : "bc-accordion__content--closed"
|
|
6717
6720
|
)
|
|
6718
6721
|
),
|
|
6719
|
-
de(
|
|
6722
|
+
de(F.class("bc-stack--gap-1"), ...t)
|
|
6720
6723
|
)
|
|
6721
6724
|
)
|
|
6722
6725
|
);
|
|
@@ -6761,9 +6764,9 @@ function Mo(e, t, r, n = []) {
|
|
|
6761
6764
|
e,
|
|
6762
6765
|
n
|
|
6763
6766
|
);
|
|
6764
|
-
return de(
|
|
6767
|
+
return de(F.class("bc-stack--gap-1"), ...u);
|
|
6765
6768
|
}
|
|
6766
|
-
return de(
|
|
6769
|
+
return de(F.class("bc-stack--gap-1"), ...r);
|
|
6767
6770
|
}
|
|
6768
6771
|
const a = t.widgetLabel || t.name, { orderedChildren: s, groupedChildren: o } = os(
|
|
6769
6772
|
r,
|
|
@@ -6788,7 +6791,7 @@ function Mo(e, t, r, n = []) {
|
|
|
6788
6791
|
children: o ? Object.values(o).flat() : s
|
|
6789
6792
|
});
|
|
6790
6793
|
default:
|
|
6791
|
-
return de(
|
|
6794
|
+
return de(F.class("bc-stack--gap-1"), ...s);
|
|
6792
6795
|
}
|
|
6793
6796
|
}
|
|
6794
6797
|
function Bs({
|
|
@@ -6834,7 +6837,7 @@ function Bs({
|
|
|
6834
6837
|
if (!f && !h.has(P)) {
|
|
6835
6838
|
if (q.length === 0)
|
|
6836
6839
|
return { ok: !1, message: "Only declared properties are allowed" };
|
|
6837
|
-
if (!q.some((
|
|
6840
|
+
if (!q.some((U) => U.test(P)))
|
|
6838
6841
|
return {
|
|
6839
6842
|
ok: !1,
|
|
6840
6843
|
message: `Key must match one of: ${Object.keys(I).join(", ")}`
|
|
@@ -6842,7 +6845,7 @@ function Bs({
|
|
|
6842
6845
|
}
|
|
6843
6846
|
return { ok: !0 };
|
|
6844
6847
|
}, V = a["x:ui"], L = !!(V && typeof V == "object" && V.lockKeyAfterSet), B = (p) => {
|
|
6845
|
-
const P = Ge(p, (
|
|
6848
|
+
const P = Ge(p, (U) => U);
|
|
6846
6849
|
if (P !== void 0) return P;
|
|
6847
6850
|
const R = p.type;
|
|
6848
6851
|
if (R === "string") return "";
|
|
@@ -6851,10 +6854,10 @@ function Bs({
|
|
|
6851
6854
|
if (R === "array") return [];
|
|
6852
6855
|
if (R === "object") return {};
|
|
6853
6856
|
}, Q = (p, P) => {
|
|
6854
|
-
const R = p,
|
|
6855
|
-
if (
|
|
6857
|
+
const R = p, U = (Y) => P.has(Y) ? !1 : A(Y).ok;
|
|
6858
|
+
if (U(R)) return R;
|
|
6856
6859
|
let K = 1;
|
|
6857
|
-
for (; P.has(R + K) || !
|
|
6860
|
+
for (; P.has(R + K) || !U(R + K); ) K++;
|
|
6858
6861
|
return R + K;
|
|
6859
6862
|
}, oe = Sr(
|
|
6860
6863
|
$r,
|
|
@@ -6875,7 +6878,7 @@ function Bs({
|
|
|
6875
6878
|
t.change(X);
|
|
6876
6879
|
}
|
|
6877
6880
|
},
|
|
6878
|
-
|
|
6881
|
+
F.title(_),
|
|
6879
6882
|
p.$.addLabel
|
|
6880
6883
|
)
|
|
6881
6884
|
), ae = ko(o), te = Ca(u).filter(
|
|
@@ -6887,7 +6890,7 @@ function Bs({
|
|
|
6887
6890
|
], j = [
|
|
6888
6891
|
// Known properties
|
|
6889
6892
|
...te.map(([p, P]) => {
|
|
6890
|
-
const R = p,
|
|
6893
|
+
const R = p, U = t.field(R);
|
|
6891
6894
|
return qe({
|
|
6892
6895
|
ctx: o.with({
|
|
6893
6896
|
definition: P,
|
|
@@ -6896,7 +6899,7 @@ function Bs({
|
|
|
6896
6899
|
// is rendered inside a union/combinator where labels are suppressed
|
|
6897
6900
|
suppressLabel: !1
|
|
6898
6901
|
}).append(R),
|
|
6899
|
-
controller:
|
|
6902
|
+
controller: U
|
|
6900
6903
|
});
|
|
6901
6904
|
}),
|
|
6902
6905
|
// Evaluated additional keys (pattern-matched and truly additional)
|
|
@@ -7420,7 +7423,7 @@ function qe({
|
|
|
7420
7423
|
t,
|
|
7421
7424
|
se(
|
|
7422
7425
|
a,
|
|
7423
|
-
H.div(
|
|
7426
|
+
H.div(F.class("bc-json-schema-object"), o),
|
|
7424
7427
|
t
|
|
7425
7428
|
)
|
|
7426
7429
|
);
|
|
@@ -7443,7 +7446,7 @@ function qe({
|
|
|
7443
7446
|
t,
|
|
7444
7447
|
se(
|
|
7445
7448
|
a,
|
|
7446
|
-
H.div(
|
|
7449
|
+
H.div(F.class("bc-json-schema-unknown"), "Unknown"),
|
|
7447
7450
|
t
|
|
7448
7451
|
)
|
|
7449
7452
|
);
|
|
@@ -7595,8 +7598,8 @@ function Hs({
|
|
|
7595
7598
|
);
|
|
7596
7599
|
let i = g;
|
|
7597
7600
|
w && n.isTuple && (i = de(
|
|
7598
|
-
|
|
7599
|
-
Fe(
|
|
7601
|
+
F.class("bc-stack--gap-1"),
|
|
7602
|
+
Fe(F.class("bc-array-control__item-label"), w),
|
|
7600
7603
|
i
|
|
7601
7604
|
));
|
|
7602
7605
|
const c = [];
|
|
@@ -7604,7 +7607,7 @@ function Hs({
|
|
|
7604
7607
|
Je(
|
|
7605
7608
|
f,
|
|
7606
7609
|
() => Fe(
|
|
7607
|
-
|
|
7610
|
+
F.class(
|
|
7608
7611
|
"bc-array-control__indicator bc-array-control__indicator--error"
|
|
7609
7612
|
),
|
|
7610
7613
|
"⚠️ Duplicate value"
|
|
@@ -7614,17 +7617,17 @@ function Hs({
|
|
|
7614
7617
|
Je(
|
|
7615
7618
|
l,
|
|
7616
7619
|
() => Fe(
|
|
7617
|
-
|
|
7620
|
+
F.class(
|
|
7618
7621
|
"bc-array-control__indicator bc-array-control__indicator--success"
|
|
7619
7622
|
),
|
|
7620
7623
|
"✓ Matches required pattern"
|
|
7621
7624
|
)
|
|
7622
7625
|
)
|
|
7623
|
-
), c.length > 0 ? de(
|
|
7626
|
+
), c.length > 0 ? de(F.class("bc-stack--gap-1"), i, ...c) : i;
|
|
7624
7627
|
}
|
|
7625
7628
|
});
|
|
7626
7629
|
return r.contains && h ? de(
|
|
7627
|
-
|
|
7630
|
+
F.class("bc-stack--gap-2"),
|
|
7628
7631
|
y,
|
|
7629
7632
|
Ut(
|
|
7630
7633
|
ie(
|
|
@@ -7635,7 +7638,7 @@ function Hs({
|
|
|
7635
7638
|
summary: v
|
|
7636
7639
|
})),
|
|
7637
7640
|
({ info: d, summary: v }) => Fe(
|
|
7638
|
-
|
|
7641
|
+
F.class(
|
|
7639
7642
|
d.isValid ? "bc-array-control__summary bc-array-control__summary--success" : "bc-array-control__summary bc-array-control__summary--error"
|
|
7640
7643
|
),
|
|
7641
7644
|
v
|
|
@@ -8178,7 +8181,7 @@ function $u({
|
|
|
8178
8181
|
);
|
|
8179
8182
|
return u({ Form: q, controller: f, setStatus: l });
|
|
8180
8183
|
}
|
|
8181
|
-
return H.div(
|
|
8184
|
+
return H.div(F.class("bc-json-schema-form__error"), h.error);
|
|
8182
8185
|
}
|
|
8183
8186
|
);
|
|
8184
8187
|
}
|