@factorialco/rjsf-f0 1.1.1 → 1.1.2
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/rjsf-f0.cjs.js +1 -1
- package/dist/rjsf-f0.cjs.js.map +1 -1
- package/dist/rjsf-f0.es.js +34 -31
- package/dist/rjsf-f0.es.js.map +1 -1
- package/package.json +1 -1
package/dist/rjsf-f0.es.js
CHANGED
|
@@ -8226,8 +8226,8 @@ const zi = (e) => {
|
|
|
8226
8226
|
date: "date",
|
|
8227
8227
|
"datetime-local": "datetime",
|
|
8228
8228
|
time: "time"
|
|
8229
|
-
};
|
|
8230
|
-
function
|
|
8229
|
+
}, Vf = /* @__PURE__ */ new Set(["password", "email", "tel", "url"]);
|
|
8230
|
+
function qf(e) {
|
|
8231
8231
|
const {
|
|
8232
8232
|
id: t,
|
|
8233
8233
|
htmlName: n,
|
|
@@ -8259,10 +8259,10 @@ function Vf(e) {
|
|
|
8259
8259
|
}
|
|
8260
8260
|
);
|
|
8261
8261
|
}
|
|
8262
|
-
function
|
|
8262
|
+
function Wf(e) {
|
|
8263
8263
|
const { type: t, schema: n, options: r } = e, i = t || (n.type === "number" || n.type === "integer" ? "number" : "text");
|
|
8264
8264
|
if (i === "file")
|
|
8265
|
-
return /* @__PURE__ */ N(
|
|
8265
|
+
return /* @__PURE__ */ N(qf, { ...e });
|
|
8266
8266
|
const l = Hf[i] ?? "text";
|
|
8267
8267
|
return l === "date" ? /* @__PURE__ */ N(
|
|
8268
8268
|
ht,
|
|
@@ -8296,13 +8296,16 @@ function qf(e) {
|
|
|
8296
8296
|
ht,
|
|
8297
8297
|
{
|
|
8298
8298
|
...e,
|
|
8299
|
-
field: {
|
|
8299
|
+
field: {
|
|
8300
|
+
type: l,
|
|
8301
|
+
...Vf.has(i) && { inputType: i }
|
|
8302
|
+
},
|
|
8300
8303
|
fromFieldValue: (o) => o === "" ? r.emptyValue : o
|
|
8301
8304
|
}
|
|
8302
8305
|
);
|
|
8303
8306
|
}
|
|
8304
|
-
const
|
|
8305
|
-
function
|
|
8307
|
+
const $f = 5;
|
|
8308
|
+
function Gf(e) {
|
|
8306
8309
|
const { options: t } = e;
|
|
8307
8310
|
return /* @__PURE__ */ N(
|
|
8308
8311
|
ht,
|
|
@@ -8310,17 +8313,17 @@ function $f(e) {
|
|
|
8310
8313
|
...e,
|
|
8311
8314
|
field: {
|
|
8312
8315
|
type: "textarea",
|
|
8313
|
-
rows: t.rows ||
|
|
8316
|
+
rows: t.rows || $f
|
|
8314
8317
|
},
|
|
8315
8318
|
fromFieldValue: (n) => n === "" ? t.emptyValue : n
|
|
8316
8319
|
}
|
|
8317
8320
|
);
|
|
8318
8321
|
}
|
|
8319
|
-
const
|
|
8322
|
+
const Yf = (e) => (Array.isArray(e) ? e : []).map((t, n) => ({
|
|
8320
8323
|
value: String(n),
|
|
8321
8324
|
label: String(t.label)
|
|
8322
8325
|
}));
|
|
8323
|
-
function
|
|
8326
|
+
function Xf(e) {
|
|
8324
8327
|
const { options: t, multiple: n, value: r, schema: i } = e, { enumOptions: l, enumDisabled: o } = t, a = Array.isArray(l) ? l : [], u = (f) => a.findIndex((m) => sr(m.value, f)), s = Wt(
|
|
8325
8328
|
(f) => {
|
|
8326
8329
|
if (n)
|
|
@@ -8345,7 +8348,7 @@ function Yf(e) {
|
|
|
8345
8348
|
...e,
|
|
8346
8349
|
field: {
|
|
8347
8350
|
type: "select",
|
|
8348
|
-
options:
|
|
8351
|
+
options: Yf(l).filter(
|
|
8349
8352
|
(f, m) => {
|
|
8350
8353
|
var h;
|
|
8351
8354
|
return !(Array.isArray(o) && o.includes((h = a[m]) == null ? void 0 : h.value));
|
|
@@ -8361,7 +8364,7 @@ function Yf(e) {
|
|
|
8361
8364
|
}
|
|
8362
8365
|
);
|
|
8363
8366
|
}
|
|
8364
|
-
function
|
|
8367
|
+
function Kf({
|
|
8365
8368
|
id: e,
|
|
8366
8369
|
value: t,
|
|
8367
8370
|
label: n,
|
|
@@ -8386,7 +8389,7 @@ function Xf({
|
|
|
8386
8389
|
a && /* @__PURE__ */ N("label", { className: "rjsf-f0-checkbox-label", htmlFor: e, children: /* @__PURE__ */ N(It, { components: { p: "span" }, children: n }) })
|
|
8387
8390
|
] });
|
|
8388
8391
|
}
|
|
8389
|
-
function
|
|
8392
|
+
function Qf({
|
|
8390
8393
|
id: e,
|
|
8391
8394
|
disabled: t,
|
|
8392
8395
|
readonly: n,
|
|
@@ -8415,7 +8418,7 @@ function Kf({
|
|
|
8415
8418
|
] }, String(s.value));
|
|
8416
8419
|
}) });
|
|
8417
8420
|
}
|
|
8418
|
-
function
|
|
8421
|
+
function Jf(e) {
|
|
8419
8422
|
const { options: t, required: n } = e, r = Array.isArray(t.enumOptions) ? t.enumOptions : [];
|
|
8420
8423
|
return /* @__PURE__ */ N(
|
|
8421
8424
|
ht,
|
|
@@ -8447,11 +8450,11 @@ function Qf(e) {
|
|
|
8447
8450
|
}
|
|
8448
8451
|
);
|
|
8449
8452
|
}
|
|
8450
|
-
const
|
|
8453
|
+
const Zf = {
|
|
8451
8454
|
ArrayFieldItemButtonsTemplate: zf,
|
|
8452
8455
|
ArrayFieldItemTemplate: Ff,
|
|
8453
8456
|
ArrayFieldTemplate: Mf,
|
|
8454
|
-
BaseInputTemplate:
|
|
8457
|
+
BaseInputTemplate: Wf,
|
|
8455
8458
|
ButtonTemplates: If,
|
|
8456
8459
|
DescriptionFieldTemplate: Nf,
|
|
8457
8460
|
ErrorListTemplate: Pf,
|
|
@@ -8463,27 +8466,27 @@ const Jf = {
|
|
|
8463
8466
|
ObjectFieldTemplate: vf,
|
|
8464
8467
|
TitleFieldTemplate: Of,
|
|
8465
8468
|
WrapIfAdditionalTemplate: Lf
|
|
8466
|
-
},
|
|
8467
|
-
CheckboxWidget:
|
|
8468
|
-
CheckboxesWidget:
|
|
8469
|
-
RadioWidget:
|
|
8470
|
-
SelectWidget:
|
|
8471
|
-
TextareaWidget:
|
|
8469
|
+
}, ep = {
|
|
8470
|
+
CheckboxWidget: Kf,
|
|
8471
|
+
CheckboxesWidget: Qf,
|
|
8472
|
+
RadioWidget: Jf,
|
|
8473
|
+
SelectWidget: Xf,
|
|
8474
|
+
TextareaWidget: Gf
|
|
8472
8475
|
};
|
|
8473
8476
|
function Dl() {
|
|
8474
|
-
return { templates:
|
|
8477
|
+
return { templates: Zf, widgets: ep };
|
|
8475
8478
|
}
|
|
8476
|
-
const
|
|
8477
|
-
function
|
|
8479
|
+
const tp = Dl();
|
|
8480
|
+
function sp() {
|
|
8478
8481
|
return Bi(Dl());
|
|
8479
8482
|
}
|
|
8480
|
-
const
|
|
8483
|
+
const up = Bi(tp);
|
|
8481
8484
|
export {
|
|
8482
|
-
|
|
8483
|
-
|
|
8484
|
-
|
|
8485
|
-
|
|
8486
|
-
|
|
8485
|
+
up as Form,
|
|
8486
|
+
Zf as Templates,
|
|
8487
|
+
tp as Theme,
|
|
8488
|
+
ep as Widgets,
|
|
8489
|
+
sp as generateForm,
|
|
8487
8490
|
Dl as generateTheme
|
|
8488
8491
|
};
|
|
8489
8492
|
//# sourceMappingURL=rjsf-f0.es.js.map
|