@factorialco/rjsf-f0 3.1.0 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/rjsf-f0.cjs.js +17 -17
- package/dist/rjsf-f0.cjs.js.map +1 -1
- package/dist/rjsf-f0.es.js +30 -29
- package/dist/rjsf-f0.es.js.map +1 -1
- package/dist/src/pairing/pairing-table.d.ts +2 -1
- package/dist/src/pairing/types.d.ts +3 -0
- package/package.json +3 -3
package/dist/rjsf-f0.es.js
CHANGED
|
@@ -8395,16 +8395,16 @@ var gd = (e) => !e.clickable && e.status !== "current", _d = (e) => e.counter ??
|
|
|
8395
8395
|
suggested: "info",
|
|
8396
8396
|
unavailable: "critical",
|
|
8397
8397
|
open: "warning"
|
|
8398
|
-
}, Td = "__fcode_not_mapped__", Ed = (e) => e === "" ? Td : e, Dd = (e) => e.status === "confirmed" ? Ed(e.value) : e.shownValue, Od = (e) => {
|
|
8398
|
+
}, Td = "__fcode_not_mapped__", Ed = (e) => e === "" ? Td : e, Dd = (e) => e.status === "confirmed" && !e.freeText ? Ed(e.value) : e.shownValue, Od = (e) => (t) => e ? "disabled" : t.freeText ? "text" : "select", kd = (e) => e.freeText ? e.value : e.options.find((t) => Ed(t.value) === e.value)?.label ?? "", Ad = (e) => {
|
|
8399
8399
|
let t = e.alternative ? e.alternativeLabel : e.pending ? e.suggestion?.reason : void 0;
|
|
8400
8400
|
return {
|
|
8401
8401
|
status: wd[e.status],
|
|
8402
8402
|
label: e.statusLabel,
|
|
8403
8403
|
...t ? { tooltip: t } : {}
|
|
8404
8404
|
};
|
|
8405
|
-
},
|
|
8405
|
+
}, jd = (e) => (e.alternative ?? e.suggestion)?.source === "one" ? P : ye, Md = (e) => {
|
|
8406
8406
|
if (e.pending) return {
|
|
8407
|
-
icon:
|
|
8407
|
+
icon: jd(e),
|
|
8408
8408
|
iconColor: "info",
|
|
8409
8409
|
message: e.suggestion?.reason || e.statusLabel
|
|
8410
8410
|
};
|
|
@@ -8413,7 +8413,7 @@ var gd = (e) => !e.clickable && e.status !== "current", _d = (e) => e.counter ??
|
|
|
8413
8413
|
iconColor: "info",
|
|
8414
8414
|
message: [e.alternativeLabel, e.alternative.reason].filter(Boolean).join(" — ")
|
|
8415
8415
|
};
|
|
8416
|
-
},
|
|
8416
|
+
}, Nd = (e, t, n) => (r) => t ? [] : r.pending ? [{
|
|
8417
8417
|
icon: ue,
|
|
8418
8418
|
label: e.accept,
|
|
8419
8419
|
showLabel: !0,
|
|
@@ -8423,7 +8423,7 @@ var gd = (e) => !e.clickable && e.status !== "current", _d = (e) => e.counter ??
|
|
|
8423
8423
|
label: e.use,
|
|
8424
8424
|
showLabel: !0,
|
|
8425
8425
|
onClick: () => n(r.id)
|
|
8426
|
-
}] : [],
|
|
8426
|
+
}] : [], Pd = (e, t, n) => [
|
|
8427
8427
|
{
|
|
8428
8428
|
id: "label",
|
|
8429
8429
|
label: e[0],
|
|
@@ -8433,8 +8433,9 @@ var gd = (e) => !e.clickable && e.status !== "current", _d = (e) => e.counter ??
|
|
|
8433
8433
|
{
|
|
8434
8434
|
id: "value",
|
|
8435
8435
|
label: e[1],
|
|
8436
|
-
render:
|
|
8437
|
-
editType: ()
|
|
8436
|
+
render: kd,
|
|
8437
|
+
editType: Od(n),
|
|
8438
|
+
inputPlaceholder: t.placeholder,
|
|
8438
8439
|
selectConfig: {
|
|
8439
8440
|
options: (e) => e.options.map((e) => ({
|
|
8440
8441
|
...e,
|
|
@@ -8444,7 +8445,7 @@ var gd = (e) => !e.clickable && e.status !== "current", _d = (e) => e.counter ??
|
|
|
8444
8445
|
clearable: !0,
|
|
8445
8446
|
showSearchBox: !0
|
|
8446
8447
|
},
|
|
8447
|
-
cellHint:
|
|
8448
|
+
cellHint: Md
|
|
8448
8449
|
},
|
|
8449
8450
|
{
|
|
8450
8451
|
id: "status",
|
|
@@ -8452,10 +8453,10 @@ var gd = (e) => !e.clickable && e.status !== "current", _d = (e) => e.counter ??
|
|
|
8452
8453
|
width: 280,
|
|
8453
8454
|
render: (e) => ({
|
|
8454
8455
|
type: "status",
|
|
8455
|
-
value:
|
|
8456
|
+
value: Ad(e)
|
|
8456
8457
|
})
|
|
8457
8458
|
}
|
|
8458
|
-
],
|
|
8459
|
+
], Fd = (e) => e.id, Id = (e, t) => t === "value" ? e.error ?? void 0 : void 0, Ld = { Table: (e) => {
|
|
8459
8460
|
let { id: t, labels: n, rows: r, summary: i, pendingCount: a, acceptAllLabel: o, inUseNote: s, filter: c, addable: l, disabled: u, onChange: d, onAccept: f, onAcceptAll: p, onAdd: m } = e, h = yu(p), g = yu(c?.onToggle);
|
|
8460
8461
|
return /* @__PURE__ */ D("div", {
|
|
8461
8462
|
className: "rjsf-f0-pairing",
|
|
@@ -8492,20 +8493,20 @@ var gd = (e) => !e.clickable && e.status !== "current", _d = (e) => e.counter ??
|
|
|
8492
8493
|
className: "rjsf-f0-pairing-note",
|
|
8493
8494
|
children: n.empty
|
|
8494
8495
|
}) : /* @__PURE__ */ E(Se, {
|
|
8495
|
-
columns:
|
|
8496
|
+
columns: Pd(e.columns, n, u),
|
|
8496
8497
|
items: r.map((e) => ({
|
|
8497
8498
|
...e,
|
|
8498
8499
|
value: Dd(e)
|
|
8499
8500
|
})),
|
|
8500
|
-
getRowId:
|
|
8501
|
+
getRowId: Fd,
|
|
8501
8502
|
disabled: u,
|
|
8502
8503
|
onCellChange: async ({ updatedItem: e, changes: t }) => {
|
|
8503
8504
|
if (!t.value) return;
|
|
8504
8505
|
let n = e.value;
|
|
8505
8506
|
d(e.id, n === Td ? "" : n || null);
|
|
8506
8507
|
},
|
|
8507
|
-
rowActions:
|
|
8508
|
-
getCellError:
|
|
8508
|
+
rowActions: Nd(n, u, f),
|
|
8509
|
+
getCellError: Id
|
|
8509
8510
|
}),
|
|
8510
8511
|
(s || l.length > 0 && !u) && /* @__PURE__ */ D("div", {
|
|
8511
8512
|
className: "rjsf-f0-pairing-footer",
|
|
@@ -8527,7 +8528,7 @@ var gd = (e) => !e.clickable && e.status !== "current", _d = (e) => e.counter ??
|
|
|
8527
8528
|
})
|
|
8528
8529
|
]
|
|
8529
8530
|
});
|
|
8530
|
-
} },
|
|
8531
|
+
} }, Rd = ({ toggle: e }) => /* @__PURE__ */ D("button", {
|
|
8531
8532
|
type: "button",
|
|
8532
8533
|
className: "rjsf-f0-launch-assistant-toggle",
|
|
8533
8534
|
"aria-expanded": !e.collapsed,
|
|
@@ -8537,7 +8538,7 @@ var gd = (e) => !e.clickable && e.status !== "current", _d = (e) => e.counter ??
|
|
|
8537
8538
|
size: "sm",
|
|
8538
8539
|
"data-testid": `launch-toggle-${e.collapsed ? "down" : "up"}`
|
|
8539
8540
|
})]
|
|
8540
|
-
}),
|
|
8541
|
+
}), zd = { LaunchButton: ({ id: e, label: t, disabled: n, onClick: r, toggle: i }) => {
|
|
8541
8542
|
let a = yu(r);
|
|
8542
8543
|
return /* @__PURE__ */ D("div", {
|
|
8543
8544
|
className: i ? "rjsf-f0-launch-assistant rjsf-f0-launch-assistant--in-section" : "rjsf-f0-launch-assistant",
|
|
@@ -8548,9 +8549,9 @@ var gd = (e) => !e.clickable && e.status !== "current", _d = (e) => e.counter ??
|
|
|
8548
8549
|
icon: P,
|
|
8549
8550
|
disabled: n,
|
|
8550
8551
|
onClick: a
|
|
8551
|
-
}), i && /* @__PURE__ */ E(
|
|
8552
|
+
}), i && /* @__PURE__ */ E(Rd, { toggle: i })]
|
|
8552
8553
|
});
|
|
8553
|
-
} },
|
|
8554
|
+
} }, Bd = {
|
|
8554
8555
|
ArrayFieldItemButtonsTemplate: Ru,
|
|
8555
8556
|
ArrayFieldItemTemplate: Lu,
|
|
8556
8557
|
ArrayFieldTemplate: Iu,
|
|
@@ -8566,7 +8567,7 @@ var gd = (e) => !e.clickable && e.status !== "current", _d = (e) => e.counter ??
|
|
|
8566
8567
|
ObjectFieldTemplate: Fu,
|
|
8567
8568
|
TitleFieldTemplate: ku,
|
|
8568
8569
|
WrapIfAdditionalTemplate: Pu
|
|
8569
|
-
},
|
|
8570
|
+
}, Vd = {
|
|
8570
8571
|
CheckboxWidget: pd,
|
|
8571
8572
|
CheckboxesWidget: md,
|
|
8572
8573
|
FileWidget: ud,
|
|
@@ -8574,22 +8575,22 @@ var gd = (e) => !e.clickable && e.status !== "current", _d = (e) => e.counter ??
|
|
|
8574
8575
|
SelectWidget: fd,
|
|
8575
8576
|
TextareaWidget: td
|
|
8576
8577
|
};
|
|
8577
|
-
function
|
|
8578
|
+
function Hd() {
|
|
8578
8579
|
return {
|
|
8579
|
-
templates:
|
|
8580
|
-
widgets:
|
|
8580
|
+
templates: Bd,
|
|
8581
|
+
widgets: Vd,
|
|
8581
8582
|
multistep: Sd,
|
|
8582
8583
|
oauth: Cd,
|
|
8583
|
-
pairing:
|
|
8584
|
-
assistant:
|
|
8584
|
+
pairing: Ld,
|
|
8585
|
+
assistant: zd
|
|
8585
8586
|
};
|
|
8586
8587
|
}
|
|
8587
|
-
var
|
|
8588
|
+
var Ud = Hd();
|
|
8588
8589
|
// src/form.ts
|
|
8589
|
-
function
|
|
8590
|
-
return e(
|
|
8590
|
+
function Wd() {
|
|
8591
|
+
return e(Hd());
|
|
8591
8592
|
}
|
|
8592
|
-
var
|
|
8593
|
-
export {
|
|
8593
|
+
var Gd = e(Ud);
|
|
8594
|
+
export { zd as Assistant, Gd as Form, Sd as Multistep, Cd as Oauth, Ld as Pairing, Bd as Templates, Ud as Theme, Vd as Widgets, Wd as generateForm, Hd as generateTheme, _u as markdownComponents };
|
|
8594
8595
|
|
|
8595
8596
|
//# sourceMappingURL=rjsf-f0.es.js.map
|