@react-form-builder/components-rsuite 0.0.9 → 0.0.10
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/index.js +91 -91
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -19,25 +19,25 @@ const { Cell: ce } = pA, tA = E(ce)`
|
|
|
19
19
|
left: 4px;
|
|
20
20
|
top: 6px;
|
|
21
21
|
}
|
|
22
|
-
`, he = ({ rowData: A, dataKey: e, rowIndex:
|
|
23
|
-
const
|
|
24
|
-
A[e] = f,
|
|
22
|
+
`, he = ({ rowData: A, dataKey: e, rowIndex: o, onChange: t, ...s }) => {
|
|
23
|
+
const l = (c, f) => {
|
|
24
|
+
A[e] = f, t == null || t(f, e, o);
|
|
25
25
|
};
|
|
26
|
-
return /* @__PURE__ */ n(tA, { ...s, children: /* @__PURE__ */ n(fe, { inline: !0, checked: A[e] ?? !1, onChange:
|
|
27
|
-
}, x = ({ rowData: A, dataKey: e, rowIndex:
|
|
28
|
-
const s = (
|
|
29
|
-
var
|
|
30
|
-
A[e] =
|
|
26
|
+
return /* @__PURE__ */ n(tA, { ...s, children: /* @__PURE__ */ n(fe, { inline: !0, checked: A[e] ?? !1, onChange: l }) });
|
|
27
|
+
}, x = ({ rowData: A, dataKey: e, rowIndex: o, ...t }) => {
|
|
28
|
+
const s = (l) => {
|
|
29
|
+
var c;
|
|
30
|
+
A[e] = l, (c = t.onChange) == null || c.call(t, l, e, o);
|
|
31
31
|
};
|
|
32
|
-
return /* @__PURE__ */ n(tA, { ...
|
|
32
|
+
return /* @__PURE__ */ n(tA, { ...t, children: /* @__PURE__ */ n(J, { value: A[e] ?? "", onChange: s, size: "sm" }) });
|
|
33
33
|
}, ve = (A) => A.map((e) => ({ title: e, href: e })), Ie = [
|
|
34
34
|
{ name: "title", input: x },
|
|
35
35
|
{ name: "href", title: "Url", input: x },
|
|
36
36
|
{ name: "active", input: he }
|
|
37
|
-
], ue = ({ items: A, onItemClick: e, ...
|
|
38
|
-
(
|
|
39
|
-
const { title: s = "", ...
|
|
40
|
-
return /* @__PURE__ */ RA(g.Item, { ...
|
|
37
|
+
], ue = ({ items: A, onItemClick: e, ...o }) => /* @__PURE__ */ n(g, { ...o, style: { display: "flex" }, children: A == null ? void 0 : A.map(
|
|
38
|
+
(t) => {
|
|
39
|
+
const { title: s = "", ...l } = t, c = () => e == null ? void 0 : e(t);
|
|
40
|
+
return /* @__PURE__ */ RA(g.Item, { ...l, onClick: c, key: s }, s);
|
|
41
41
|
}
|
|
42
42
|
) }), Se = d(ue).type("RsBreadcrumb").name("Breadcrumb").props({
|
|
43
43
|
separator: a.default("/"),
|
|
@@ -128,17 +128,17 @@ const { Cell: ce } = pA, tA = E(ce)`
|
|
|
128
128
|
onChange: i.hinted("Callback fired before the value changed"),
|
|
129
129
|
onSelect: i.hinted("Callback fired before the date selected"),
|
|
130
130
|
value: H.valued.hinted("Controlled value")
|
|
131
|
-
}), dA = ({ content: A, headerSize: e, ...
|
|
131
|
+
}), dA = ({ content: A, headerSize: e, ...o }) => LA(e, { children: A, ...o }), { textAlign: pe, color: Ee } = nA, Me = d(dA).type("RsHeader").name("Header").props({
|
|
132
132
|
content: a.required.default("Header"),
|
|
133
133
|
headerSize: rA
|
|
134
134
|
}).css({
|
|
135
135
|
backgroundColor: oA,
|
|
136
136
|
textAlign: pe,
|
|
137
137
|
color: Ee
|
|
138
|
-
}), Pe = ({ header: A, title: e, headerSize:
|
|
139
|
-
!!e && /* @__PURE__ */ n(dA, { headerSize:
|
|
138
|
+
}), Pe = ({ header: A, title: e, headerSize: o, ...t }) => /* @__PURE__ */ n(PA, { header: /* @__PURE__ */ u(p, { children: [
|
|
139
|
+
!!e && /* @__PURE__ */ n(dA, { headerSize: o, content: e }),
|
|
140
140
|
A
|
|
141
|
-
] }), ...
|
|
141
|
+
] }), ...t }), je = d(Pe).type("RsCard").name("Card").props({
|
|
142
142
|
header: I,
|
|
143
143
|
children: I,
|
|
144
144
|
title: a.default("Title"),
|
|
@@ -164,9 +164,9 @@ const { Cell: ce } = pA, tA = E(ce)`
|
|
|
164
164
|
return !1;
|
|
165
165
|
const e = getComputedStyle(A);
|
|
166
166
|
return e.display === "flex" && e.flexDirection === "row";
|
|
167
|
-
}, sA = ZA(({ direction: A, className: e, ...
|
|
168
|
-
const s = A === "horizontal" || we(
|
|
169
|
-
return /* @__PURE__ */ n("div", { ...
|
|
167
|
+
}, sA = ZA(({ direction: A, className: e, ...o }, t) => {
|
|
168
|
+
const s = A === "horizontal" || we(t == null ? void 0 : t.current);
|
|
169
|
+
return /* @__PURE__ */ n("div", { ...o, ref: t, className: AA(e, { horizontal: s }, Je) });
|
|
170
170
|
});
|
|
171
171
|
sA.displayName = "Container";
|
|
172
172
|
const He = d(sA).type("RsContainer").name("Container").props({
|
|
@@ -240,30 +240,30 @@ const He = d(sA).type("RsContainer").name("Container").props({
|
|
|
240
240
|
showWeekNumbers: r.hinted("Whether to show week numbers"),
|
|
241
241
|
size: m.hinted("A picker size"),
|
|
242
242
|
value: H.valued.hinted("Value (Controlled)")
|
|
243
|
-
}), lA = ({ data: A, onLoadData: e, value:
|
|
244
|
-
const [s,
|
|
243
|
+
}), lA = ({ data: A, onLoadData: e, value: o, ...t }) => {
|
|
244
|
+
const [s, l] = y(""), [c, f] = y(A ?? []), [v, k] = y(!1), P = (R) => R.value === o;
|
|
245
245
|
T(() => {
|
|
246
|
-
|
|
247
|
-
{ value:
|
|
248
|
-
...
|
|
246
|
+
o && !c.some(P) && f([
|
|
247
|
+
{ value: o, label: o },
|
|
248
|
+
...c
|
|
249
249
|
]);
|
|
250
250
|
}, []), T(() => {
|
|
251
251
|
s && (e && k(!0), e == null || e(s, j, 0));
|
|
252
252
|
}, [s]);
|
|
253
253
|
const j = (R) => {
|
|
254
|
-
let w =
|
|
255
|
-
|
|
254
|
+
let w = c;
|
|
255
|
+
o && R.some(P) && (w = c.filter((IA) => !P(IA))), f([...w, ...R]), k(!1);
|
|
256
256
|
};
|
|
257
|
-
return { data:
|
|
257
|
+
return { data: c, value: o, loading: v, listProps: {
|
|
258
258
|
onItemsRendered: ({ visibleStopIndex: R }) => {
|
|
259
|
-
R >=
|
|
259
|
+
R >= c.length - 1 && (k(!0), e == null || e(s, j, c.length));
|
|
260
260
|
}
|
|
261
261
|
}, onSearch: (R) => {
|
|
262
262
|
var w;
|
|
263
|
-
f([]),
|
|
263
|
+
f([]), l(R), (w = t.onSearch) == null || w.call(t, R);
|
|
264
264
|
}, onOpen: () => {
|
|
265
265
|
var R;
|
|
266
|
-
(R =
|
|
266
|
+
(R = t.onOpen) == null || R.call(t), e == null || e("", j, 0);
|
|
267
267
|
}, virtualized: !!e };
|
|
268
268
|
}, z = E.label`
|
|
269
269
|
text-align: left;
|
|
@@ -276,12 +276,12 @@ const He = d(sA).type("RsContainer").name("Container").props({
|
|
|
276
276
|
margin-inline-start: 5px;
|
|
277
277
|
margin-bottom: 2px;
|
|
278
278
|
}
|
|
279
|
-
`, ze = ({ data: A, label: e, onLoadData:
|
|
280
|
-
const { loading: v, ...k } = lA({ data: A, onLoadData:
|
|
279
|
+
`, ze = ({ data: A, label: e, onLoadData: o, onSearch: t, onOpen: s, value: l, className: c, ...f }) => {
|
|
280
|
+
const { loading: v, ...k } = lA({ data: A, onLoadData: o, onSearch: t, onOpen: s, value: l }), P = (j) => /* @__PURE__ */ u(p, { children: [
|
|
281
281
|
j,
|
|
282
282
|
v && /* @__PURE__ */ n(Ne, {})
|
|
283
283
|
] });
|
|
284
|
-
return /* @__PURE__ */ u(b, { className:
|
|
284
|
+
return /* @__PURE__ */ u(b, { className: c, children: [
|
|
285
285
|
/* @__PURE__ */ n(W.ControlLabel, { children: e }),
|
|
286
286
|
/* @__PURE__ */ n($, { ...f, ...k, renderMenu: P })
|
|
287
287
|
] });
|
|
@@ -299,9 +299,9 @@ const He = d(sA).type("RsContainer").name("Container").props({
|
|
|
299
299
|
...iA,
|
|
300
300
|
label: a.default("Select"),
|
|
301
301
|
data: M.default(Q(["a", "b", "c"]))
|
|
302
|
-
}), Ze = (A) => /* @__PURE__ */ n(p, { children: "Dropzone" }), We = d(Ze).type("RsDropzone").name("Dropzone"), Oe = ({ error: A, children: e, placement:
|
|
302
|
+
}), Ze = (A) => /* @__PURE__ */ n(p, { children: "Dropzone" }), We = d(Ze).type("RsDropzone").name("Dropzone"), Oe = ({ error: A, children: e, placement: o, className: t }) => /* @__PURE__ */ u(Ye, { className: AA(t, A ? "rs-form-control-wrapper" : void 0), children: [
|
|
303
303
|
e,
|
|
304
|
-
/* @__PURE__ */ n(W.ErrorMessage, { show: !!A, placement:
|
|
304
|
+
/* @__PURE__ */ n(W.ErrorMessage, { show: !!A, placement: o ?? "bottomStart", children: A })
|
|
305
305
|
] }), Ye = E.div`
|
|
306
306
|
display: flex;
|
|
307
307
|
flex-direction: column;
|
|
@@ -325,13 +325,13 @@ const He = d(sA).type("RsContainer").name("Container").props({
|
|
|
325
325
|
background: oA,
|
|
326
326
|
height: Z.hinted("Image height"),
|
|
327
327
|
width: Z.default("30%").hinted("Image width")
|
|
328
|
-
}).preview(/* @__PURE__ */ n("img", { src: X, width: "200px", height: "auto", alt: "Image" })), qe = ({ style: A, className: e, label:
|
|
329
|
-
const [
|
|
330
|
-
/* @__PURE__ */ n(J, { type:
|
|
331
|
-
/* @__PURE__ */ n(F.Button, { onClick: () => f(!
|
|
332
|
-
] }) : /* @__PURE__ */ n(J, { value: s, ...
|
|
328
|
+
}).preview(/* @__PURE__ */ n("img", { src: X, width: "200px", height: "auto", alt: "Image" })), qe = ({ style: A, className: e, label: o, passwordMask: t, value: s = "", ...l }) => {
|
|
329
|
+
const [c, f] = y(!1), v = t ? /* @__PURE__ */ u(F, { inside: !0, children: [
|
|
330
|
+
/* @__PURE__ */ n(J, { type: c ? "text" : "password", value: s, ...l }),
|
|
331
|
+
/* @__PURE__ */ n(F.Button, { onClick: () => f(!c), children: c ? /* @__PURE__ */ n(OA, {}) : /* @__PURE__ */ n(YA, {}) })
|
|
332
|
+
] }) : /* @__PURE__ */ n(J, { value: s, ...l });
|
|
333
333
|
return /* @__PURE__ */ u(b, { style: A, className: e, children: [
|
|
334
|
-
/* @__PURE__ */ n(z, { children:
|
|
334
|
+
/* @__PURE__ */ n(z, { children: o }),
|
|
335
335
|
v
|
|
336
336
|
] });
|
|
337
337
|
}, $e = d(qe).type("RsInput").name("Input").props({
|
|
@@ -374,11 +374,11 @@ const He = d(sA).type("RsContainer").name("Container").props({
|
|
|
374
374
|
"tr-TR": ae,
|
|
375
375
|
"zh-TW": ie,
|
|
376
376
|
"ja-JP": de
|
|
377
|
-
}, at = eA, so = ({ language: A, children: e }) => /* @__PURE__ */ n(mA, { rtl: A.bidi === "rtl", locale: rt[A.fullCode] ?? at, children: e }), it = (A) => A.map((e) => ({ title: e, href: e })), dt = ({ onSelect: A, items: e, ...
|
|
378
|
-
const
|
|
379
|
-
return e != null && e.length ? /* @__PURE__ */ n(C, { onSelect: (
|
|
380
|
-
|
|
381
|
-
}, ...
|
|
377
|
+
}, at = eA, so = ({ language: A, children: e }) => /* @__PURE__ */ n(mA, { rtl: A.bidi === "rtl", locale: rt[A.fullCode] ?? at, children: e }), it = (A) => A.map((e) => ({ title: e, href: e })), dt = ({ onSelect: A, items: e, ...o }) => {
|
|
378
|
+
const t = K();
|
|
379
|
+
return e != null && e.length ? /* @__PURE__ */ n(C, { onSelect: (l, c) => {
|
|
380
|
+
t.userDefinedProps ?? (t.userDefinedProps = {}), t.userDefinedProps.activeKey = l, A == null || A(l, c);
|
|
381
|
+
}, ...o, children: e.map(({ title: l, href: c }, f) => /* @__PURE__ */ n(C.Item, { href: c, eventKey: l, active: l === o.activeKey, children: l }, f)) }) : null;
|
|
382
382
|
}, st = [
|
|
383
383
|
{ name: "title", input: x },
|
|
384
384
|
{ name: "href", title: "Url", input: x }
|
|
@@ -395,27 +395,27 @@ const He = d(sA).type("RsContainer").name("Container").props({
|
|
|
395
395
|
closeable: r,
|
|
396
396
|
header: I,
|
|
397
397
|
type: h("info", "success", "warning", "error").default("info")
|
|
398
|
-
}), cA = ({ onChange: A, ...e }) => /* @__PURE__ */ n(J, { onChange: (
|
|
398
|
+
}), cA = ({ onChange: A, ...e }) => /* @__PURE__ */ n(J, { onChange: (t, s) => A == null ? void 0 : A(s, t), ...e });
|
|
399
399
|
function It(A) {
|
|
400
|
-
let { decimalSeparator: e = "." } = A, { thousandSeparator:
|
|
401
|
-
return
|
|
400
|
+
let { decimalSeparator: e = "." } = A, { thousandSeparator: o } = A;
|
|
401
|
+
return o === !0 && (o = ","), o === e && (console.warn(`
|
|
402
402
|
Decimal separator can't be same as thousand separator.
|
|
403
|
-
thousandSeparator: ${
|
|
403
|
+
thousandSeparator: ${o} (thousandSeparator = {true} is same as thousandSeparator = ",")
|
|
404
404
|
decimalSeparator: ${e} (default value for decimalSeparator is .)
|
|
405
|
-
`),
|
|
405
|
+
`), o = void 0, e = "."), o && uA(o) && (o.indexOf("-") >= 0 ? (console.warn("Thousand separator can't contain '-' character"), o = void 0) : o.match(/\d/g) && (console.warn("Thousand separator should not contain numeric character"), o = void 0)), e.match(/\d/g) && (console.warn("Decimal separator should not contain numeric character"), e = "."), { decimalSeparator: e, thousandSeparator: o };
|
|
406
406
|
}
|
|
407
|
-
const ut = ({ style: A, className: e, label:
|
|
408
|
-
const { decimalSeparator:
|
|
407
|
+
const ut = ({ style: A, className: e, label: o, onChange: t, value: s, ...l }) => {
|
|
408
|
+
const { decimalSeparator: c, thousandSeparator: f } = It(l);
|
|
409
409
|
return /* @__PURE__ */ u(b, { style: A, className: e, children: [
|
|
410
|
-
/* @__PURE__ */ n(z, { children:
|
|
410
|
+
/* @__PURE__ */ n(z, { children: o }),
|
|
411
411
|
/* @__PURE__ */ n(
|
|
412
412
|
se,
|
|
413
413
|
{
|
|
414
414
|
customInput: cA,
|
|
415
|
-
...
|
|
416
|
-
decimalSeparator:
|
|
415
|
+
...l,
|
|
416
|
+
decimalSeparator: c,
|
|
417
417
|
thousandSeparator: f,
|
|
418
|
-
onValueChange: (v) =>
|
|
418
|
+
onValueChange: (v) => t == null ? void 0 : t(v.value),
|
|
419
419
|
value: s ?? ""
|
|
420
420
|
}
|
|
421
421
|
)
|
|
@@ -434,19 +434,19 @@ const ut = ({ style: A, className: e, label: t, onChange: o, value: s, ...c }) =
|
|
|
434
434
|
suffix: a,
|
|
435
435
|
thousandsGroupStyle: h("thousand", "lakh", "wan", "none").default("none"),
|
|
436
436
|
thousandSeparator: a
|
|
437
|
-
}), kt = ({ style: A, className: e, label:
|
|
438
|
-
let { mask: f } =
|
|
437
|
+
}), kt = ({ style: A, className: e, label: o, format: t, onChange: s, value: l, ...c }) => {
|
|
438
|
+
let { mask: f } = c;
|
|
439
439
|
return f && (f === "string" ? f : f.toString()).match(/\d/g) && (console.warn(`Mask ${f} should not contain numeric character, mask value will be ignored`), f = void 0), /* @__PURE__ */ u(b, { style: A, className: e, children: [
|
|
440
|
-
/* @__PURE__ */ n(z, { children:
|
|
440
|
+
/* @__PURE__ */ n(z, { children: o }),
|
|
441
441
|
/* @__PURE__ */ n(
|
|
442
442
|
le,
|
|
443
443
|
{
|
|
444
444
|
customInput: cA,
|
|
445
|
-
format:
|
|
446
|
-
...
|
|
445
|
+
format: t ?? "",
|
|
446
|
+
...c,
|
|
447
447
|
mask: f,
|
|
448
448
|
onValueChange: (v) => s == null ? void 0 : s(v.formattedValue),
|
|
449
|
-
value:
|
|
449
|
+
value: l ?? ""
|
|
450
450
|
}
|
|
451
451
|
)
|
|
452
452
|
] });
|
|
@@ -476,9 +476,9 @@ const ut = ({ style: A, className: e, label: t, onChange: o, value: s, ...c }) =
|
|
|
476
476
|
}), Et = d(_.Line).name("Progress line").type("RsProgressLine").props({
|
|
477
477
|
...fA,
|
|
478
478
|
vertical: r.default(!1).hinted("The progress bar is displayed vertically")
|
|
479
|
-
}), Mt = ({ items: A, label: e, value:
|
|
479
|
+
}), Mt = ({ items: A, label: e, value: o, className: t, ...s }) => /* @__PURE__ */ u("div", { className: t, children: [
|
|
480
480
|
/* @__PURE__ */ n("label", { children: e }),
|
|
481
|
-
/* @__PURE__ */ n(CA, { ...s, value:
|
|
481
|
+
/* @__PURE__ */ n(CA, { ...s, value: o ?? "", children: A.map(({ value: l, label: c }, f) => /* @__PURE__ */ n(DA, { value: l, children: c ?? l }, f)) })
|
|
482
482
|
] }), Pt = d(Mt).type("RsRadioGroup").name("Radio group").props({
|
|
483
483
|
name: a.default("RadioGroup").hinted("Radio group name"),
|
|
484
484
|
appearance: h("default", "picker").labeled("Default", "Picker").default("default"),
|
|
@@ -489,15 +489,15 @@ const ut = ({ style: A, className: e, label: t, onChange: o, value: s, ...c }) =
|
|
|
489
489
|
onChange: i,
|
|
490
490
|
items: M.default(Q(["a", "b", "c"])),
|
|
491
491
|
value: a.valued.hinted("Radio group value")
|
|
492
|
-
}), jt = (A) => /* @__PURE__ */ n(p, { children: "Repeater" }), xt = d(jt).type("RsRepeater").name("Repeater"), Gt = (A) => /* @__PURE__ */ n(p, { children: "RichTextEditor" }), bt = d(Gt).type("RsRichTextEditor").name("Rich text editor"), wt = ({ data: A, label: e, onLoadData:
|
|
493
|
-
const { loading: f, onOpen: v, ...k } = lA({ data: A, onLoadData:
|
|
492
|
+
}), jt = (A) => /* @__PURE__ */ n(p, { children: "Repeater" }), xt = d(jt).type("RsRepeater").name("Repeater"), Gt = (A) => /* @__PURE__ */ n(p, { children: "RichTextEditor" }), bt = d(Gt).type("RsRichTextEditor").name("Rich text editor"), wt = ({ data: A, label: e, onLoadData: o, onSearch: t, value: s, className: l, ...c }) => {
|
|
493
|
+
const { loading: f, onOpen: v, ...k } = lA({ data: A, onLoadData: o, onSearch: t, value: s }), P = (U) => {
|
|
494
494
|
var N;
|
|
495
495
|
return (N = k.data) != null && N.length ? U : null;
|
|
496
496
|
}, j = f ? q : UA;
|
|
497
|
-
return /* @__PURE__ */ u(b, { className:
|
|
497
|
+
return /* @__PURE__ */ u(b, { className: l, children: [
|
|
498
498
|
/* @__PURE__ */ n(W.ControlLabel, { children: e }),
|
|
499
499
|
/* @__PURE__ */ u(Ht, { children: [
|
|
500
|
-
/* @__PURE__ */ n(Jt, { ...
|
|
500
|
+
/* @__PURE__ */ n(Jt, { ...c, ...k, renderMenu: P }),
|
|
501
501
|
/* @__PURE__ */ n(j, { className: "search-icon" })
|
|
502
502
|
] })
|
|
503
503
|
] });
|
|
@@ -523,20 +523,20 @@ const ut = ({ style: A, className: e, label: t, onChange: o, value: s, ...c }) =
|
|
|
523
523
|
label: a.default("Search"),
|
|
524
524
|
placeholder: a.default("Search")
|
|
525
525
|
}), yt = (A) => {
|
|
526
|
-
const { content: e, allowHtml:
|
|
527
|
-
return
|
|
526
|
+
const { content: e, allowHtml: o, ...t } = A;
|
|
527
|
+
return o ? /* @__PURE__ */ n("span", { dangerouslySetInnerHTML: { __html: e }, ...t }) : /* @__PURE__ */ n("span", { ...t, children: e });
|
|
528
528
|
}, Ct = d(yt).type("RsStaticContent").name("Static content").props({
|
|
529
529
|
content: a.required.default("Text..."),
|
|
530
530
|
allowHtml: r.named("Allow HTML")
|
|
531
|
-
}), Dt = ({ pane: A, onSelect: e, showNavigation:
|
|
532
|
-
const
|
|
533
|
-
if (!(
|
|
531
|
+
}), Dt = ({ pane: A, onSelect: e, showNavigation: o, items: t, ...s }) => {
|
|
532
|
+
const l = K();
|
|
533
|
+
if (!(t != null && t.length))
|
|
534
534
|
return null;
|
|
535
|
-
const
|
|
536
|
-
|
|
537
|
-
}, f = s.activeKey ?? (
|
|
535
|
+
const c = (v, k) => {
|
|
536
|
+
l.userDefinedProps ?? (l.userDefinedProps = {}), l.userDefinedProps.activeKey = v, e == null || e(v, k);
|
|
537
|
+
}, f = s.activeKey ?? (t == null ? void 0 : t[0].value);
|
|
538
538
|
return /* @__PURE__ */ u(p, { children: [
|
|
539
|
-
|
|
539
|
+
o === !0 && /* @__PURE__ */ n(Qt, { onSelect: c, ...s, children: t.map((v, k) => /* @__PURE__ */ n(C.Item, { eventKey: v.value, active: v.value === f, children: v.label }, k)) }),
|
|
540
540
|
/* @__PURE__ */ n("div", { children: A })
|
|
541
541
|
] });
|
|
542
542
|
}, Qt = E(C)`
|
|
@@ -547,13 +547,13 @@ const ut = ({ style: A, className: e, label: t, onChange: o, value: s, ...c }) =
|
|
|
547
547
|
...aA,
|
|
548
548
|
items: M.default(Q(["Item1", "Item2", "Item3"])),
|
|
549
549
|
showNavigation: r.hinted("Show or hide navigation").default(!0),
|
|
550
|
-
pane: I.
|
|
550
|
+
pane: I.withSlotConditionBuilder((A) => {
|
|
551
551
|
var e;
|
|
552
552
|
return `return parentProps.activeKey === '${((e = A.activeKey) == null ? void 0 : e.value) ?? A.activeKey}'`;
|
|
553
|
-
}
|
|
554
|
-
}), Nt = ({ style: A, className: e, label:
|
|
555
|
-
/* @__PURE__ */ n(z, { children:
|
|
556
|
-
/* @__PURE__ */ n(J, { as: "textarea", ...
|
|
553
|
+
}).calculable(!1).hinted("A child component of the tab")
|
|
554
|
+
}), Nt = ({ style: A, className: e, label: o, ...t }) => /* @__PURE__ */ u(b, { style: A, className: e, children: [
|
|
555
|
+
/* @__PURE__ */ n(z, { children: o }),
|
|
556
|
+
/* @__PURE__ */ n(J, { as: "textarea", ...t })
|
|
557
557
|
] }), Lt = d(Nt).type("RsTextArea").name("Text area").props({
|
|
558
558
|
label: a.default("Text area"),
|
|
559
559
|
value: a.default("").valued,
|
|
@@ -564,7 +564,7 @@ const ut = ({ style: A, className: e, label: t, onChange: o, value: s, ...c }) =
|
|
|
564
564
|
readOnly: G,
|
|
565
565
|
onChange: i,
|
|
566
566
|
onPressEnter: i
|
|
567
|
-
}), Zt = ({ text: A, placement: e, trigger:
|
|
567
|
+
}), Zt = ({ text: A, placement: e, trigger: o, children: t }) => t ? /* @__PURE__ */ n(QA, { placement: e, trigger: o, speaker: /* @__PURE__ */ n(zA, { children: A }), children: /* @__PURE__ */ n("div", { children: t }) }) : null, Wt = d(Zt).type("RsTooltip").name("Tooltip").props({
|
|
568
568
|
text: a.required.default("Tooltip message...").hinted("Tooltip text"),
|
|
569
569
|
children: I,
|
|
570
570
|
placement: h(
|
|
@@ -588,7 +588,7 @@ const ut = ({ style: A, className: e, label: t, onChange: o, value: s, ...c }) =
|
|
|
588
588
|
"autoHorizontalStart"
|
|
589
589
|
).required.default("bottom"),
|
|
590
590
|
trigger: SA("click", "hover", "focus", "active", "contextMenu").required.default(["hover"])
|
|
591
|
-
}), Ot = (A) => /* @__PURE__ */ n(p, { children: "TreePicker" }), Yt = d(Ot).type("RsTreePicker").name("Tree picker"), Ut = ({ customElement: A, children: e, ...
|
|
591
|
+
}), Ot = (A) => /* @__PURE__ */ n(p, { children: "TreePicker" }), Yt = d(Ot).type("RsTreePicker").name("Tree picker"), Ut = ({ customElement: A, children: e, ...o }) => /* @__PURE__ */ n(NA, { ...o, children: A && /* @__PURE__ */ n("div", { children: e }) }), gt = [
|
|
592
592
|
{ name: "name", input: x },
|
|
593
593
|
{ name: "fileKey", input: x },
|
|
594
594
|
{ name: "url", input: x }
|
|
@@ -675,11 +675,11 @@ const ut = ({ style: A, className: e, label: t, onChange: o, value: s, ...c }) =
|
|
|
675
675
|
]
|
|
676
676
|
}, vA = [], { notImplemented: fo, ...Xt } = Tt;
|
|
677
677
|
Object.entries(Xt).forEach(([A, e]) => {
|
|
678
|
-
e.forEach((
|
|
679
|
-
const
|
|
680
|
-
if (!
|
|
681
|
-
throw new Error(`The component type must start with '${
|
|
682
|
-
|
|
678
|
+
e.forEach((o) => {
|
|
679
|
+
const t = "Rs";
|
|
680
|
+
if (!o.getType().startsWith(t))
|
|
681
|
+
throw new Error(`The component type must start with '${t}', type: '${o.getType()}'`);
|
|
682
|
+
o.category(A), vA.push(o);
|
|
683
683
|
});
|
|
684
684
|
});
|
|
685
685
|
const Kt = vA.map((A) => A.build()), Bt = Kt.map(({ model: A }) => A), ho = kA(Bt);
|