ovirt-ui-toolkit 0.0.71 → 0.0.73
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.
|
@@ -13,7 +13,7 @@ export interface DropdownProps {
|
|
|
13
13
|
setIsOpen?: (value: boolean) => void;
|
|
14
14
|
onChange: (item: DropdownItem) => void;
|
|
15
15
|
className?: string;
|
|
16
|
-
debug?:
|
|
16
|
+
debug?: boolean;
|
|
17
17
|
}
|
|
18
18
|
declare const Dropdown: React.FC<DropdownProps>;
|
|
19
19
|
export default Dropdown;
|
|
@@ -13,13 +13,13 @@ var Ce;
|
|
|
13
13
|
function xr() {
|
|
14
14
|
if (Ce) return A;
|
|
15
15
|
Ce = 1;
|
|
16
|
-
var n = Ne, s = Symbol.for("react.element"), i = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty,
|
|
16
|
+
var n = Ne, s = Symbol.for("react.element"), i = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, l = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, d = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
17
17
|
function h(y, m, T) {
|
|
18
18
|
var j, b = {}, _ = null, W = null;
|
|
19
19
|
T !== void 0 && (_ = "" + T), m.key !== void 0 && (_ = "" + m.key), m.ref !== void 0 && (W = m.ref);
|
|
20
20
|
for (j in m) o.call(m, j) && !d.hasOwnProperty(j) && (b[j] = m[j]);
|
|
21
21
|
if (y && y.defaultProps) for (j in m = y.defaultProps, m) b[j] === void 0 && (b[j] = m[j]);
|
|
22
|
-
return { $$typeof: s, type: y, key: _, ref: W, props: b, _owner:
|
|
22
|
+
return { $$typeof: s, type: y, key: _, ref: W, props: b, _owner: l.current };
|
|
23
23
|
}
|
|
24
24
|
return A.Fragment = i, A.jsx = h, A.jsxs = h, A;
|
|
25
25
|
}
|
|
@@ -36,7 +36,7 @@ var I = {};
|
|
|
36
36
|
var Te;
|
|
37
37
|
function gr() {
|
|
38
38
|
return Te || (Te = 1, process.env.NODE_ENV !== "production" && function() {
|
|
39
|
-
var n = Ne, s = Symbol.for("react.element"), i = Symbol.for("react.portal"), o = Symbol.for("react.fragment"),
|
|
39
|
+
var n = Ne, s = Symbol.for("react.element"), i = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), d = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), y = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), K = Symbol.iterator, $e = "@@iterator";
|
|
40
40
|
function De(e) {
|
|
41
41
|
if (e === null || typeof e != "object")
|
|
42
42
|
return null;
|
|
@@ -46,14 +46,14 @@ function gr() {
|
|
|
46
46
|
var k = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
47
47
|
function R(e) {
|
|
48
48
|
{
|
|
49
|
-
for (var r = arguments.length, a = new Array(r > 1 ? r - 1 : 0),
|
|
50
|
-
a[
|
|
49
|
+
for (var r = arguments.length, a = new Array(r > 1 ? r - 1 : 0), c = 1; c < r; c++)
|
|
50
|
+
a[c - 1] = arguments[c];
|
|
51
51
|
Fe("error", e, a);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
function Fe(e, r, a) {
|
|
55
55
|
{
|
|
56
|
-
var
|
|
56
|
+
var c = k.ReactDebugCurrentFrame, v = c.getStackAddendum();
|
|
57
57
|
v !== "" && (r += "%s", a = a.concat([v]));
|
|
58
58
|
var p = a.map(function(f) {
|
|
59
59
|
return String(f);
|
|
@@ -64,16 +64,16 @@ function gr() {
|
|
|
64
64
|
var Ae = !1, Ie = !1, We = !1, Ye = !1, Ve = !1, ee;
|
|
65
65
|
ee = Symbol.for("react.module.reference");
|
|
66
66
|
function Le(e) {
|
|
67
|
-
return !!(typeof e == "string" || typeof e == "function" || e === o || e === d || Ve || e ===
|
|
67
|
+
return !!(typeof e == "string" || typeof e == "function" || e === o || e === d || Ve || e === l || e === T || e === j || Ye || e === W || Ae || Ie || We || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === b || e.$$typeof === h || e.$$typeof === y || e.$$typeof === m || // This needs to include all possible module reference object
|
|
68
68
|
// types supported by any Flight configuration anywhere since
|
|
69
69
|
// we don't know which Flight build this will end up being used
|
|
70
70
|
// with.
|
|
71
71
|
e.$$typeof === ee || e.getModuleId !== void 0));
|
|
72
72
|
}
|
|
73
73
|
function Me(e, r, a) {
|
|
74
|
-
var
|
|
75
|
-
if (
|
|
76
|
-
return
|
|
74
|
+
var c = e.displayName;
|
|
75
|
+
if (c)
|
|
76
|
+
return c;
|
|
77
77
|
var v = r.displayName || r.name || "";
|
|
78
78
|
return v !== "" ? a + "(" + v + ")" : a;
|
|
79
79
|
}
|
|
@@ -94,7 +94,7 @@ function gr() {
|
|
|
94
94
|
return "Portal";
|
|
95
95
|
case d:
|
|
96
96
|
return "Profiler";
|
|
97
|
-
case
|
|
97
|
+
case l:
|
|
98
98
|
return "StrictMode";
|
|
99
99
|
case T:
|
|
100
100
|
return "Suspense";
|
|
@@ -112,8 +112,8 @@ function gr() {
|
|
|
112
112
|
case m:
|
|
113
113
|
return Me(e, e.render, "ForwardRef");
|
|
114
114
|
case b:
|
|
115
|
-
var
|
|
116
|
-
return
|
|
115
|
+
var c = e.displayName || null;
|
|
116
|
+
return c !== null ? c : O(e.type) || "Memo";
|
|
117
117
|
case _: {
|
|
118
118
|
var v = e, p = v._payload, f = v._init;
|
|
119
119
|
try {
|
|
@@ -194,8 +194,8 @@ function gr() {
|
|
|
194
194
|
try {
|
|
195
195
|
throw Error();
|
|
196
196
|
} catch (v) {
|
|
197
|
-
var
|
|
198
|
-
J =
|
|
197
|
+
var c = v.stack.trim().match(/\n( *(at )?)/);
|
|
198
|
+
J = c && c[1] || "";
|
|
199
199
|
}
|
|
200
200
|
return `
|
|
201
201
|
` + J + e;
|
|
@@ -214,7 +214,7 @@ function gr() {
|
|
|
214
214
|
if (a !== void 0)
|
|
215
215
|
return a;
|
|
216
216
|
}
|
|
217
|
-
var
|
|
217
|
+
var c;
|
|
218
218
|
q = !0;
|
|
219
219
|
var v = Error.prepareStackTrace;
|
|
220
220
|
Error.prepareStackTrace = void 0;
|
|
@@ -233,14 +233,14 @@ function gr() {
|
|
|
233
233
|
try {
|
|
234
234
|
Reflect.construct(f, []);
|
|
235
235
|
} catch (C) {
|
|
236
|
-
|
|
236
|
+
c = C;
|
|
237
237
|
}
|
|
238
238
|
Reflect.construct(e, [], f);
|
|
239
239
|
} else {
|
|
240
240
|
try {
|
|
241
241
|
f.call();
|
|
242
242
|
} catch (C) {
|
|
243
|
-
|
|
243
|
+
c = C;
|
|
244
244
|
}
|
|
245
245
|
e.call(f.prototype);
|
|
246
246
|
}
|
|
@@ -248,14 +248,14 @@ function gr() {
|
|
|
248
248
|
try {
|
|
249
249
|
throw Error();
|
|
250
250
|
} catch (C) {
|
|
251
|
-
|
|
251
|
+
c = C;
|
|
252
252
|
}
|
|
253
253
|
e();
|
|
254
254
|
}
|
|
255
255
|
} catch (C) {
|
|
256
|
-
if (C &&
|
|
256
|
+
if (C && c && typeof C.stack == "string") {
|
|
257
257
|
for (var u = C.stack.split(`
|
|
258
|
-
`), E =
|
|
258
|
+
`), E = c.stack.split(`
|
|
259
259
|
`), x = u.length - 1, g = E.length - 1; x >= 1 && g >= 0 && u[x] !== E[g]; )
|
|
260
260
|
g--;
|
|
261
261
|
for (; x >= 1 && g >= 0; x--, g--)
|
|
@@ -304,7 +304,7 @@ function gr() {
|
|
|
304
304
|
case b:
|
|
305
305
|
return L(e.type, r, a);
|
|
306
306
|
case _: {
|
|
307
|
-
var
|
|
307
|
+
var c = e, v = c._payload, p = c._init;
|
|
308
308
|
try {
|
|
309
309
|
return L(p(v), r, a);
|
|
310
310
|
} catch {
|
|
@@ -321,7 +321,7 @@ function gr() {
|
|
|
321
321
|
} else
|
|
322
322
|
de.setExtraStackFrame(null);
|
|
323
323
|
}
|
|
324
|
-
function Ge(e, r, a,
|
|
324
|
+
function Ge(e, r, a, c, v) {
|
|
325
325
|
{
|
|
326
326
|
var p = Function.call.bind(F);
|
|
327
327
|
for (var f in e)
|
|
@@ -329,14 +329,14 @@ function gr() {
|
|
|
329
329
|
var u = void 0;
|
|
330
330
|
try {
|
|
331
331
|
if (typeof e[f] != "function") {
|
|
332
|
-
var E = Error((
|
|
332
|
+
var E = Error((c || "React class") + ": " + a + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
333
333
|
throw E.name = "Invariant Violation", E;
|
|
334
334
|
}
|
|
335
|
-
u = e[f](r, f,
|
|
335
|
+
u = e[f](r, f, c, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
336
336
|
} catch (x) {
|
|
337
337
|
u = x;
|
|
338
338
|
}
|
|
339
|
-
u && !(u instanceof Error) && (M(v), R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",
|
|
339
|
+
u && !(u instanceof Error) && (M(v), R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", c || "React class", a, f, typeof u), M(null)), u instanceof Error && !(u.message in fe) && (fe[u.message] = !0, M(v), R("Failed %s type: %s", a, u.message), M(null));
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
}
|
|
@@ -411,7 +411,7 @@ function gr() {
|
|
|
411
411
|
});
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
var ar = function(e, r, a,
|
|
414
|
+
var ar = function(e, r, a, c, v, p, f) {
|
|
415
415
|
var u = {
|
|
416
416
|
// This tag allows us to uniquely identify this as a React Element
|
|
417
417
|
$$typeof: s,
|
|
@@ -432,7 +432,7 @@ function gr() {
|
|
|
432
432
|
configurable: !1,
|
|
433
433
|
enumerable: !1,
|
|
434
434
|
writable: !1,
|
|
435
|
-
value:
|
|
435
|
+
value: c
|
|
436
436
|
}), Object.defineProperty(u, "_source", {
|
|
437
437
|
configurable: !1,
|
|
438
438
|
enumerable: !1,
|
|
@@ -440,7 +440,7 @@ function gr() {
|
|
|
440
440
|
value: v
|
|
441
441
|
}), Object.freeze && (Object.freeze(u.props), Object.freeze(u)), u;
|
|
442
442
|
};
|
|
443
|
-
function sr(e, r, a,
|
|
443
|
+
function sr(e, r, a, c, v) {
|
|
444
444
|
{
|
|
445
445
|
var p, f = {}, u = null, E = null;
|
|
446
446
|
a !== void 0 && (pe(a), u = "" + a), er(r) && (pe(r.key), u = "" + r.key), Ke(r) && (E = r.ref, rr(r, v));
|
|
@@ -455,7 +455,7 @@ function gr() {
|
|
|
455
455
|
var g = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
456
456
|
u && tr(f, g), E && nr(f, g);
|
|
457
457
|
}
|
|
458
|
-
return ar(e, u, E, v,
|
|
458
|
+
return ar(e, u, E, v, c, he.current, f);
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
461
|
var G = k.ReactCurrentOwner, xe = k.ReactDebugCurrentFrame;
|
|
@@ -508,8 +508,8 @@ Check the top-level render call using <` + a + ">.");
|
|
|
508
508
|
if (je[a])
|
|
509
509
|
return;
|
|
510
510
|
je[a] = !0;
|
|
511
|
-
var
|
|
512
|
-
e && e._owner && e._owner !== G.current && (
|
|
511
|
+
var c = "";
|
|
512
|
+
e && e._owner && e._owner !== G.current && (c = " It was passed a child from " + O(e._owner.type) + "."), P(e), R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', a, c), P(null);
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
515
|
function Re(e, r) {
|
|
@@ -518,8 +518,8 @@ Check the top-level render call using <` + a + ">.");
|
|
|
518
518
|
return;
|
|
519
519
|
if (z(e))
|
|
520
520
|
for (var a = 0; a < e.length; a++) {
|
|
521
|
-
var
|
|
522
|
-
X(
|
|
521
|
+
var c = e[a];
|
|
522
|
+
X(c) && ye(c, r);
|
|
523
523
|
}
|
|
524
524
|
else if (X(e))
|
|
525
525
|
e._store && (e._store.validated = !0);
|
|
@@ -546,8 +546,8 @@ Check the top-level render call using <` + a + ">.");
|
|
|
546
546
|
else
|
|
547
547
|
return;
|
|
548
548
|
if (a) {
|
|
549
|
-
var
|
|
550
|
-
Ge(a, e.props, "prop",
|
|
549
|
+
var c = O(r);
|
|
550
|
+
Ge(a, e.props, "prop", c, e);
|
|
551
551
|
} else if (r.PropTypes !== void 0 && !H) {
|
|
552
552
|
H = !0;
|
|
553
553
|
var v = O(r);
|
|
@@ -559,9 +559,9 @@ Check the top-level render call using <` + a + ">.");
|
|
|
559
559
|
function cr(e) {
|
|
560
560
|
{
|
|
561
561
|
for (var r = Object.keys(e.props), a = 0; a < r.length; a++) {
|
|
562
|
-
var
|
|
563
|
-
if (
|
|
564
|
-
P(e), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",
|
|
562
|
+
var c = r[a];
|
|
563
|
+
if (c !== "children" && c !== "key") {
|
|
564
|
+
P(e), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", c), P(null);
|
|
565
565
|
break;
|
|
566
566
|
}
|
|
567
567
|
}
|
|
@@ -569,7 +569,7 @@ Check the top-level render call using <` + a + ">.");
|
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
571
|
var Ee = {};
|
|
572
|
-
function _e(e, r, a,
|
|
572
|
+
function _e(e, r, a, c, v, p) {
|
|
573
573
|
{
|
|
574
574
|
var f = Le(e);
|
|
575
575
|
if (!f) {
|
|
@@ -586,7 +586,7 @@ Check the top-level render call using <` + a + ">.");
|
|
|
586
586
|
if (f) {
|
|
587
587
|
var w = r.children;
|
|
588
588
|
if (w !== void 0)
|
|
589
|
-
if (
|
|
589
|
+
if (c)
|
|
590
590
|
if (z(w)) {
|
|
591
591
|
for (var $ = 0; $ < w.length; $++)
|
|
592
592
|
Re(w[$], e);
|
|
@@ -662,7 +662,7 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), yr =
|
|
|
662
662
|
title: s,
|
|
663
663
|
size: i,
|
|
664
664
|
label: o,
|
|
665
|
-
onClick:
|
|
665
|
+
onClick: l,
|
|
666
666
|
isDisabled: d = !1,
|
|
667
667
|
children: h,
|
|
668
668
|
className: y = "",
|
|
@@ -674,7 +674,7 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), yr =
|
|
|
674
674
|
{
|
|
675
675
|
className: _,
|
|
676
676
|
type: "button",
|
|
677
|
-
onClick:
|
|
677
|
+
onClick: l,
|
|
678
678
|
disabled: d || m,
|
|
679
679
|
children: /* @__PURE__ */ t.jsxs("div", { className: "flex items-center justify-center", children: [
|
|
680
680
|
m && Rr,
|
|
@@ -695,24 +695,24 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), yr =
|
|
|
695
695
|
},
|
|
696
696
|
s
|
|
697
697
|
), Or = ({ activeKey: n, onSelect: s, children: i }) => /* @__PURE__ */ t.jsxs("div", { className: "tabs-container", children: [
|
|
698
|
-
/* @__PURE__ */ t.jsx("ul", { className: "nav nav-tabs", role: "tablist", children: i.map(({ props: { eventKey: o, title:
|
|
698
|
+
/* @__PURE__ */ t.jsx("ul", { className: "nav nav-tabs", role: "tablist", children: i.map(({ props: { eventKey: o, title: l } }) => /* @__PURE__ */ t.jsx("li", { className: n === o ? "active" : "", children: /* @__PURE__ */ t.jsx(
|
|
699
699
|
"a",
|
|
700
700
|
{
|
|
701
701
|
href: `#${o}`,
|
|
702
702
|
onClick: (d) => {
|
|
703
703
|
d.preventDefault(), s(o);
|
|
704
704
|
},
|
|
705
|
-
children:
|
|
705
|
+
children: l
|
|
706
706
|
}
|
|
707
707
|
) }, o)) }),
|
|
708
|
-
/* @__PURE__ */ t.jsx("div", { className: "tabs-container", children: /* @__PURE__ */ t.jsx("div", { className: "tab-content pf-c-tab-content", children: i.map(({ props: { eventKey: o, children:
|
|
708
|
+
/* @__PURE__ */ t.jsx("div", { className: "tabs-container", children: /* @__PURE__ */ t.jsx("div", { className: "tab-content pf-c-tab-content", children: i.map(({ props: { eventKey: o, children: l } }) => /* @__PURE__ */ t.jsx(
|
|
709
709
|
"div",
|
|
710
710
|
{
|
|
711
711
|
className: `tab-pane ${n === o ? "active" : ""}`,
|
|
712
712
|
id: `${o}-panel`,
|
|
713
713
|
role: "tabpanel",
|
|
714
714
|
"aria-labelledby": `${o}-tab`,
|
|
715
|
-
children:
|
|
715
|
+
children: l
|
|
716
716
|
},
|
|
717
717
|
o
|
|
718
718
|
)) }) })
|
|
@@ -722,7 +722,7 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), yr =
|
|
|
722
722
|
type: s,
|
|
723
723
|
placeholder: i = "",
|
|
724
724
|
value: o,
|
|
725
|
-
onChange:
|
|
725
|
+
onChange: l,
|
|
726
726
|
className: d = "form-control",
|
|
727
727
|
...h
|
|
728
728
|
}, y) => {
|
|
@@ -735,15 +735,15 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), yr =
|
|
|
735
735
|
className: m,
|
|
736
736
|
placeholder: i,
|
|
737
737
|
value: o,
|
|
738
|
-
onChange:
|
|
738
|
+
onChange: l,
|
|
739
739
|
ref: y,
|
|
740
740
|
...h
|
|
741
741
|
}
|
|
742
742
|
);
|
|
743
743
|
}
|
|
744
|
-
), Sr = ({ title: n, isOpen: s, onClose: i, children: o, size:
|
|
744
|
+
), Sr = ({ title: n, isOpen: s, onClose: i, children: o, size: l }) => {
|
|
745
745
|
if (!s) return null;
|
|
746
|
-
const d =
|
|
746
|
+
const d = l ? `modal-${l}` : "";
|
|
747
747
|
return /* @__PURE__ */ t.jsx("div", { className: "modal fade in", style: { display: "block" }, tabIndex: -1, role: "dialog", children: /* @__PURE__ */ t.jsx("div", { className: `modal-dialog ${d}`, role: "document", children: /* @__PURE__ */ t.jsxs("div", { className: "modal-content", children: [
|
|
748
748
|
/* @__PURE__ */ t.jsxs("div", { className: "modal-header", children: [
|
|
749
749
|
/* @__PURE__ */ t.jsx("button", { type: "button", className: "close", onClick: i, "aria-hidden": "true", children: /* @__PURE__ */ t.jsx("span", { className: "pficon pficon-close" }) }),
|
|
@@ -756,21 +756,21 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), yr =
|
|
|
756
756
|
warning: "text-yellow-600",
|
|
757
757
|
success: "text-green-600",
|
|
758
758
|
error: "text-red-600"
|
|
759
|
-
},
|
|
760
|
-
return /* @__PURE__ */ t.jsx("p", { className:
|
|
759
|
+
}, l = i + " " + o[n] || "";
|
|
760
|
+
return /* @__PURE__ */ t.jsx("p", { className: l, children: s });
|
|
761
761
|
}, Pr = ({ children: n, ...s }) => /* @__PURE__ */ t.jsx("table", { ...s, children: n }), $r = ({ children: n, ...s }) => /* @__PURE__ */ t.jsx("tbody", { ...s, children: n }), Dr = ({ children: n, ...s }) => /* @__PURE__ */ t.jsx("td", { ...s, children: n }), Fr = ({ children: n, ...s }) => /* @__PURE__ */ t.jsx("th", { ...s, children: n }), Ar = ({ children: n, ...s }) => /* @__PURE__ */ t.jsx("thead", { ...s, children: n }), Ir = ({ children: n, ...s }) => /* @__PURE__ */ t.jsx("tr", { ...s, children: n }), ke = ({
|
|
762
762
|
items: n,
|
|
763
763
|
selected: s,
|
|
764
764
|
title: i,
|
|
765
765
|
isOpen: o,
|
|
766
|
-
setIsOpen:
|
|
766
|
+
setIsOpen: l,
|
|
767
767
|
onChange: d,
|
|
768
768
|
className: h = ""
|
|
769
769
|
}) => {
|
|
770
770
|
const y = (b) => {
|
|
771
|
-
|
|
771
|
+
l(!b);
|
|
772
772
|
}, m = (b) => {
|
|
773
|
-
|
|
773
|
+
l(!1), d(b);
|
|
774
774
|
}, T = (b) => {
|
|
775
775
|
const _ = b.id === s;
|
|
776
776
|
return /* @__PURE__ */ t.jsx(
|
|
@@ -803,27 +803,27 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), yr =
|
|
|
803
803
|
/* @__PURE__ */ t.jsx("ul", { className: "dropdown-menu", role: "menu", children: n.map(T) })
|
|
804
804
|
] });
|
|
805
805
|
}, Wr = (n) => {
|
|
806
|
-
const [s, i] = Q(!1), o = n.selected,
|
|
807
|
-
return n.debug && console.log(n), /* @__PURE__ */ t.jsx("div", { className: `btn-group ${s ? "open" : ""}`, children: /* @__PURE__ */ t.jsx(
|
|
806
|
+
const [s, i] = Q(!1), o = n.selected, l = n.items.find((d) => d.id == o);
|
|
807
|
+
return n.debug && (console.log(n), console.log(l)), /* @__PURE__ */ t.jsx("div", { className: `btn-group ${s ? "open" : ""}`, children: /* @__PURE__ */ t.jsx(
|
|
808
808
|
ke,
|
|
809
809
|
{
|
|
810
810
|
...n,
|
|
811
|
-
title:
|
|
811
|
+
title: (l == null ? void 0 : l.title) || n.title,
|
|
812
812
|
setIsOpen: i,
|
|
813
813
|
isOpen: s
|
|
814
814
|
}
|
|
815
815
|
) });
|
|
816
816
|
}, Er = ({ currentPage: n, total: s, onPageChange: i, pageSize: o }) => {
|
|
817
|
-
const
|
|
817
|
+
const l = Math.ceil(s / o), d = () => {
|
|
818
818
|
n > 1 && i(n - 1);
|
|
819
819
|
}, h = () => {
|
|
820
|
-
n <
|
|
820
|
+
n < l && i(n + 1);
|
|
821
821
|
};
|
|
822
822
|
return /* @__PURE__ */ t.jsxs("div", { children: [
|
|
823
823
|
/* @__PURE__ */ t.jsx("span", { children: /* @__PURE__ */ t.jsxs("span", { className: "pagination-pf-items-current", children: [
|
|
824
824
|
n,
|
|
825
825
|
" - ",
|
|
826
|
-
|
|
826
|
+
l
|
|
827
827
|
] }) }),
|
|
828
828
|
/* @__PURE__ */ t.jsxs("div", { className: "btn-group ml-2", children: [
|
|
829
829
|
/* @__PURE__ */ t.jsx(
|
|
@@ -840,8 +840,8 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), yr =
|
|
|
840
840
|
"button",
|
|
841
841
|
{
|
|
842
842
|
type: "button",
|
|
843
|
-
className: `btn btn-default ${n ===
|
|
844
|
-
disabled: n ===
|
|
843
|
+
className: `btn btn-default ${n === l ? "disabled" : ""}`,
|
|
844
|
+
disabled: n === l,
|
|
845
845
|
onClick: h,
|
|
846
846
|
children: /* @__PURE__ */ t.jsx("i", { className: "fa fa-angle-right" })
|
|
847
847
|
}
|
|
@@ -853,10 +853,10 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), yr =
|
|
|
853
853
|
onChange: s,
|
|
854
854
|
items: i,
|
|
855
855
|
selected: o,
|
|
856
|
-
className:
|
|
856
|
+
className: l = ""
|
|
857
857
|
}) => {
|
|
858
858
|
const [d, h] = Q(!1);
|
|
859
|
-
return /* @__PURE__ */ t.jsx("div", { className: `btn-group ${
|
|
859
|
+
return /* @__PURE__ */ t.jsx("div", { className: `btn-group ${l} ${d ? "open" : ""}`, children: /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
860
860
|
n,
|
|
861
861
|
/* @__PURE__ */ t.jsx(
|
|
862
862
|
ke,
|
|
@@ -879,14 +879,14 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), yr =
|
|
|
879
879
|
var d;
|
|
880
880
|
const o = (h) => {
|
|
881
881
|
n(h.data);
|
|
882
|
-
},
|
|
883
|
-
return /* @__PURE__ */ t.jsx(Pe, { className: "flex", items: Oe, onChange: o, selected:
|
|
882
|
+
}, l = (d = Oe.find((h) => h.data === s)) == null ? void 0 : d.id;
|
|
883
|
+
return /* @__PURE__ */ t.jsx(Pe, { className: "flex", items: Oe, onChange: o, selected: l, children: /* @__PURE__ */ t.jsx(Se, { className: "m-0", type: "default", onClick: i, children: /* @__PURE__ */ t.jsx("i", { className: "fa fa-refresh" }) }) });
|
|
884
884
|
}, Yr = ({
|
|
885
885
|
interval: n,
|
|
886
886
|
page: s,
|
|
887
887
|
total: i,
|
|
888
888
|
onRefresh: o,
|
|
889
|
-
onChangeInterval:
|
|
889
|
+
onChangeInterval: l,
|
|
890
890
|
onPageChange: d,
|
|
891
891
|
pageSize: h
|
|
892
892
|
}) => /* @__PURE__ */ t.jsxs("div", { className: "flex justify-between bg-[#f5f5f5] border border-[#d1d1d1]", children: [
|
|
@@ -894,7 +894,7 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), yr =
|
|
|
894
894
|
_r,
|
|
895
895
|
{
|
|
896
896
|
value: n,
|
|
897
|
-
onChange:
|
|
897
|
+
onChange: l,
|
|
898
898
|
onRefresh: o
|
|
899
899
|
}
|
|
900
900
|
) }),
|
|
@@ -912,8 +912,8 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), yr =
|
|
|
912
912
|
label: s,
|
|
913
913
|
isChecked: i = !1,
|
|
914
914
|
onChange: o,
|
|
915
|
-
className:
|
|
916
|
-
}) => /* @__PURE__ */ t.jsx("div", { className:
|
|
915
|
+
className: l = "checkbox"
|
|
916
|
+
}) => /* @__PURE__ */ t.jsx("div", { className: l, children: /* @__PURE__ */ t.jsxs("label", { htmlFor: n, children: [
|
|
917
917
|
/* @__PURE__ */ t.jsx(
|
|
918
918
|
"input",
|
|
919
919
|
{
|
|
@@ -929,13 +929,13 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), yr =
|
|
|
929
929
|
rows: s = 3,
|
|
930
930
|
maxLength: i,
|
|
931
931
|
value: o,
|
|
932
|
-
onChange:
|
|
932
|
+
onChange: l,
|
|
933
933
|
isDisabled: d = !1,
|
|
934
934
|
className: h = ""
|
|
935
935
|
}) => {
|
|
936
936
|
const [y, m] = Q(o || ""), T = o !== void 0 ? o : y, j = (b) => {
|
|
937
937
|
const _ = b.target.value;
|
|
938
|
-
|
|
938
|
+
l ? l(_) : m(_);
|
|
939
939
|
};
|
|
940
940
|
return /* @__PURE__ */ t.jsx(
|
|
941
941
|
"textarea",
|
|
@@ -953,19 +953,19 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), yr =
|
|
|
953
953
|
const o = `alert alert-${n} ${i || ""}`;
|
|
954
954
|
return ["success", "info", "warning", "danger"].includes(n) || (console.warn(`Unsupported alert variant: "${n}". Defaulting to "info".`), n = "info"), /* @__PURE__ */ t.jsx("div", { className: o.trim(), role: "alert", children: s });
|
|
955
955
|
}, Ur = ({ variant: n, children: s, onClick: i }) => {
|
|
956
|
-
const o = `label label-${n}`,
|
|
956
|
+
const o = `label label-${n}`, l = i ? { tabIndex: 0, role: "button", "aria-pressed": !1 } : {};
|
|
957
957
|
return /* @__PURE__ */ t.jsx(
|
|
958
958
|
"span",
|
|
959
959
|
{
|
|
960
960
|
className: o,
|
|
961
961
|
onClick: i,
|
|
962
|
-
...
|
|
962
|
+
...l,
|
|
963
963
|
style: { cursor: i ? "pointer" : void 0 },
|
|
964
964
|
children: s
|
|
965
965
|
}
|
|
966
966
|
);
|
|
967
967
|
}, Br = (n) => {
|
|
968
|
-
const { label: s, isChecked: i = !1, id: o = "radio1", onChange:
|
|
968
|
+
const { label: s, isChecked: i = !1, id: o = "radio1", onChange: l, name: d } = n;
|
|
969
969
|
return /* @__PURE__ */ t.jsx("div", { className: "radio", children: /* @__PURE__ */ t.jsxs("label", { htmlFor: o, children: [
|
|
970
970
|
/* @__PURE__ */ t.jsx(
|
|
971
971
|
"input",
|
|
@@ -974,7 +974,7 @@ const Tr = () => /* @__PURE__ */ t.jsx("div", { className: "toolbar-pf" }), yr =
|
|
|
974
974
|
name: d,
|
|
975
975
|
id: o,
|
|
976
976
|
checked: i,
|
|
977
|
-
onChange: (h) =>
|
|
977
|
+
onChange: (h) => l(h.target.checked)
|
|
978
978
|
}
|
|
979
979
|
),
|
|
980
980
|
s
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var ne;function Ie(){if(ne)return I;ne=1;var n=O,s=Symbol.for("react.element"),i=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,
|
|
9
|
+
*/var ne;function Ie(){if(ne)return I;ne=1;var n=O,s=Symbol.for("react.element"),i=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,l=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,v={key:!0,ref:!0,__self:!0,__source:!0};function b(R,m,w){var y,g={},T=null,M=null;w!==void 0&&(T=""+w),m.key!==void 0&&(T=""+m.key),m.ref!==void 0&&(M=m.ref);for(y in m)o.call(m,y)&&!v.hasOwnProperty(y)&&(g[y]=m[y]);if(R&&R.defaultProps)for(y in m=R.defaultProps,m)g[y]===void 0&&(g[y]=m[y]);return{$$typeof:s,type:R,key:T,ref:M,props:g,_owner:l.current}}return I.Fragment=i,I.jsx=b,I.jsxs=b,I}var $={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,17 +14,17 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var ae;function $e(){return ae||(ae=1,process.env.NODE_ENV!=="production"&&function(){var n=O,s=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),
|
|
18
|
-
`+q+e}}var Z=!1,B;{var jr=typeof WeakMap=="function"?WeakMap:Map;B=new jr}function ye(e,r){if(!e||Z)return"";{var a=B.get(e);if(a!==void 0)return a}var
|
|
19
|
-
`),_=
|
|
17
|
+
*/var ae;function $e(){return ae||(ae=1,process.env.NODE_ENV!=="production"&&function(){var n=O,s=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),b=Symbol.for("react.provider"),R=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),M=Symbol.for("react.offscreen"),ue=Symbol.iterator,or="@@iterator";function lr(e){if(e===null||typeof e!="object")return null;var r=ue&&e[ue]||e[or];return typeof r=="function"?r:null}var D=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(e){{for(var r=arguments.length,a=new Array(r>1?r-1:0),c=1;c<r;c++)a[c-1]=arguments[c];cr("error",e,a)}}function cr(e,r,a){{var c=D.ReactDebugCurrentFrame,p=c.getStackAddendum();p!==""&&(r+="%s",a=a.concat([p]));var h=a.map(function(f){return String(f)});h.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,h)}}var ur=!1,fr=!1,dr=!1,vr=!1,pr=!1,fe;fe=Symbol.for("react.module.reference");function hr(e){return!!(typeof e=="string"||typeof e=="function"||e===o||e===v||pr||e===l||e===w||e===y||vr||e===M||ur||fr||dr||typeof e=="object"&&e!==null&&(e.$$typeof===T||e.$$typeof===g||e.$$typeof===b||e.$$typeof===R||e.$$typeof===m||e.$$typeof===fe||e.getModuleId!==void 0))}function br(e,r,a){var c=e.displayName;if(c)return c;var p=r.displayName||r.name||"";return p!==""?a+"("+p+")":a}function de(e){return e.displayName||"Context"}function N(e){if(e==null)return null;if(typeof e.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case o:return"Fragment";case i:return"Portal";case v:return"Profiler";case l:return"StrictMode";case w:return"Suspense";case y:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case R:var r=e;return de(r)+".Consumer";case b:var a=e;return de(a._context)+".Provider";case m:return br(e,e.render,"ForwardRef");case g:var c=e.displayName||null;return c!==null?c:N(e.type)||"Memo";case T:{var p=e,h=p._payload,f=p._init;try{return N(f(h))}catch{return null}}}return null}var k=Object.assign,W=0,ve,pe,he,be,me,ge,je;function xe(){}xe.__reactDisabledLog=!0;function mr(){{if(W===0){ve=console.log,pe=console.info,he=console.warn,be=console.error,me=console.group,ge=console.groupCollapsed,je=console.groupEnd;var e={configurable:!0,enumerable:!0,value:xe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}W++}}function gr(){{if(W--,W===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:k({},e,{value:ve}),info:k({},e,{value:pe}),warn:k({},e,{value:he}),error:k({},e,{value:be}),group:k({},e,{value:me}),groupCollapsed:k({},e,{value:ge}),groupEnd:k({},e,{value:je})})}W<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var X=D.ReactCurrentDispatcher,q;function V(e,r,a){{if(q===void 0)try{throw Error()}catch(p){var c=p.stack.trim().match(/\n( *(at )?)/);q=c&&c[1]||""}return`
|
|
18
|
+
`+q+e}}var Z=!1,B;{var jr=typeof WeakMap=="function"?WeakMap:Map;B=new jr}function ye(e,r){if(!e||Z)return"";{var a=B.get(e);if(a!==void 0)return a}var c;Z=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var h;h=X.current,X.current=null,mr();try{if(r){var f=function(){throw Error()};if(Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(C){c=C}Reflect.construct(e,[],f)}else{try{f.call()}catch(C){c=C}e.call(f.prototype)}}else{try{throw Error()}catch(C){c=C}e()}}catch(C){if(C&&c&&typeof C.stack=="string"){for(var u=C.stack.split(`
|
|
19
|
+
`),_=c.stack.split(`
|
|
20
20
|
`),j=u.length-1,x=_.length-1;j>=1&&x>=0&&u[j]!==_[x];)x--;for(;j>=1&&x>=0;j--,x--)if(u[j]!==_[x]){if(j!==1||x!==1)do if(j--,x--,x<0||u[j]!==_[x]){var S=`
|
|
21
|
-
`+u[j].replace(" at new "," at ");return e.displayName&&S.includes("<anonymous>")&&(S=S.replace("<anonymous>",e.displayName)),typeof e=="function"&&B.set(e,S),S}while(j>=1&&x>=0);break}}}finally{Z=!1,X.current=h,gr(),Error.prepareStackTrace=p}var A=e?e.displayName||e.name:"",P=A?V(A):"";return typeof e=="function"&&B.set(e,P),P}function xr(e,r,a){return ye(e,!1)}function yr(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function U(e,r,a){if(e==null)return"";if(typeof e=="function")return ye(e,yr(e));if(typeof e=="string")return V(e);switch(e){case w:return V("Suspense");case y:return V("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case m:return xr(e.render);case g:return U(e.type,r,a);case T:{var
|
|
21
|
+
`+u[j].replace(" at new "," at ");return e.displayName&&S.includes("<anonymous>")&&(S=S.replace("<anonymous>",e.displayName)),typeof e=="function"&&B.set(e,S),S}while(j>=1&&x>=0);break}}}finally{Z=!1,X.current=h,gr(),Error.prepareStackTrace=p}var A=e?e.displayName||e.name:"",P=A?V(A):"";return typeof e=="function"&&B.set(e,P),P}function xr(e,r,a){return ye(e,!1)}function yr(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function U(e,r,a){if(e==null)return"";if(typeof e=="function")return ye(e,yr(e));if(typeof e=="string")return V(e);switch(e){case w:return V("Suspense");case y:return V("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case m:return xr(e.render);case g:return U(e.type,r,a);case T:{var c=e,p=c._payload,h=c._init;try{return U(h(p),r,a)}catch{}}}return""}var Y=Object.prototype.hasOwnProperty,Re={},Ee=D.ReactDebugCurrentFrame;function J(e){if(e){var r=e._owner,a=U(e.type,e._source,r?r.type:null);Ee.setExtraStackFrame(a)}else Ee.setExtraStackFrame(null)}function Rr(e,r,a,c,p){{var h=Function.call.bind(Y);for(var f in e)if(h(e,f)){var u=void 0;try{if(typeof e[f]!="function"){var _=Error((c||"React class")+": "+a+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw _.name="Invariant Violation",_}u=e[f](r,f,c,a,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(j){u=j}u&&!(u instanceof Error)&&(J(p),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",c||"React class",a,f,typeof u),J(null)),u instanceof Error&&!(u.message in Re)&&(Re[u.message]=!0,J(p),E("Failed %s type: %s",a,u.message),J(null))}}}var Er=Array.isArray;function Q(e){return Er(e)}function _r(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,a=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return a}}function Tr(e){try{return _e(e),!1}catch{return!0}}function _e(e){return""+e}function Te(e){if(Tr(e))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",_r(e)),_e(e)}var Ce=D.ReactCurrentOwner,Cr={key:!0,ref:!0,__self:!0,__source:!0},we,Se;function wr(e){if(Y.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Sr(e){if(Y.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Or(e,r){typeof e.ref=="string"&&Ce.current}function Nr(e,r){{var a=function(){we||(we=!0,E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};a.isReactWarning=!0,Object.defineProperty(e,"key",{get:a,configurable:!0})}}function kr(e,r){{var a=function(){Se||(Se=!0,E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};a.isReactWarning=!0,Object.defineProperty(e,"ref",{get:a,configurable:!0})}}var Pr=function(e,r,a,c,p,h,f){var u={$$typeof:s,type:e,key:r,ref:a,props:f,_owner:h};return u._store={},Object.defineProperty(u._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(u,"_self",{configurable:!1,enumerable:!1,writable:!1,value:c}),Object.defineProperty(u,"_source",{configurable:!1,enumerable:!1,writable:!1,value:p}),Object.freeze&&(Object.freeze(u.props),Object.freeze(u)),u};function Dr(e,r,a,c,p){{var h,f={},u=null,_=null;a!==void 0&&(Te(a),u=""+a),Sr(r)&&(Te(r.key),u=""+r.key),wr(r)&&(_=r.ref,Or(r,p));for(h in r)Y.call(r,h)&&!Cr.hasOwnProperty(h)&&(f[h]=r[h]);if(e&&e.defaultProps){var j=e.defaultProps;for(h in j)f[h]===void 0&&(f[h]=j[h])}if(u||_){var x=typeof e=="function"?e.displayName||e.name||"Unknown":e;u&&Nr(f,x),_&&kr(f,x)}return Pr(e,u,_,p,c,Ce.current,f)}}var K=D.ReactCurrentOwner,Oe=D.ReactDebugCurrentFrame;function F(e){if(e){var r=e._owner,a=U(e.type,e._source,r?r.type:null);Oe.setExtraStackFrame(a)}else Oe.setExtraStackFrame(null)}var ee;ee=!1;function re(e){return typeof e=="object"&&e!==null&&e.$$typeof===s}function Ne(){{if(K.current){var e=N(K.current.type);if(e)return`
|
|
22
22
|
|
|
23
23
|
Check the render method of \``+e+"`."}return""}}function Fr(e){return""}var ke={};function Ar(e){{var r=Ne();if(!r){var a=typeof e=="string"?e:e.displayName||e.name;a&&(r=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+a+">.")}return r}}function Pe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var a=Ar(r);if(ke[a])return;ke[a]=!0;var
|
|
25
|
+
Check the top-level render call using <`+a+">.")}return r}}function Pe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var a=Ar(r);if(ke[a])return;ke[a]=!0;var c="";e&&e._owner&&e._owner!==K.current&&(c=" It was passed a child from "+N(e._owner.type)+"."),F(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',a,c),F(null)}}function De(e,r){{if(typeof e!="object")return;if(Q(e))for(var a=0;a<e.length;a++){var c=e[a];re(c)&&Pe(c,r)}else if(re(e))e._store&&(e._store.validated=!0);else if(e){var p=lr(e);if(typeof p=="function"&&p!==e.entries)for(var h=p.call(e),f;!(f=h.next()).done;)re(f.value)&&Pe(f.value,r)}}}function Ir(e){{var r=e.type;if(r==null||typeof r=="string")return;var a;if(typeof r=="function")a=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===m||r.$$typeof===g))a=r.propTypes;else return;if(a){var c=N(r);Rr(a,e.props,"prop",c,e)}else if(r.PropTypes!==void 0&&!ee){ee=!0;var p=N(r);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",p||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function $r(e){{for(var r=Object.keys(e.props),a=0;a<r.length;a++){var c=r[a];if(c!=="children"&&c!=="key"){F(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",c),F(null);break}}e.ref!==null&&(F(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),F(null))}}var Fe={};function Ae(e,r,a,c,p,h){{var f=hr(e);if(!f){var u="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(u+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var _=Fr();_?u+=_:u+=Ne();var j;e===null?j="null":Q(e)?j="array":e!==void 0&&e.$$typeof===s?(j="<"+(N(e.type)||"Unknown")+" />",u=" Did you accidentally export a JSX literal instead of a component?"):j=typeof e,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",j,u)}var x=Dr(e,r,a,p,h);if(x==null)return x;if(f){var S=r.children;if(S!==void 0)if(c)if(Q(S)){for(var A=0;A<S.length;A++)De(S[A],e);Object.freeze&&Object.freeze(S)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else De(S,e)}if(Y.call(r,"key")){var P=N(e),C=Object.keys(r).filter(function(Br){return Br!=="key"}),te=C.length>0?"{key: someKey, "+C.join(": ..., ")+": ...}":"{key: someKey}";if(!Fe[P+te]){var Vr=C.length>0?"{"+C.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,te,P,Vr,P),Fe[P+te]=!0}}return e===o?$r(x):Ir(x),x}}function Wr(e,r,a){return Ae(e,r,a,!0)}function Yr(e,r,a){return Ae(e,r,a,!1)}var Lr=Yr,Mr=Wr;$.Fragment=o,$.jsx=Lr,$.jsxs=Mr}()),$}var se;function We(){return se||(se=1,process.env.NODE_ENV==="production"?L.exports=Ie():L.exports=$e()),L.exports}var t=We();const Ye=()=>t.jsx("div",{className:"toolbar-pf"}),ie=({items:n,className:s})=>t.jsx("ol",{className:`breadcrumb ${s||""}`.trim(),children:n.map((i,o)=>t.jsx("li",{className:i.active?"active":"",children:i.active?i.title:t.jsx("a",{href:i.href,children:i.title})},o))}),Le=t.jsx("span",{className:"loading-spinner mr-2",children:t.jsxs("svg",{className:"animate-spin h-5 w-5 text-current",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[t.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),t.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}),G=({type:n="default",title:s,size:i,label:o,onClick:
|
|
30
|
+
<%s key={someKey} {...props} />`,te,P,Vr,P),Fe[P+te]=!0}}return e===o?$r(x):Ir(x),x}}function Wr(e,r,a){return Ae(e,r,a,!0)}function Yr(e,r,a){return Ae(e,r,a,!1)}var Lr=Yr,Mr=Wr;$.Fragment=o,$.jsx=Lr,$.jsxs=Mr}()),$}var se;function We(){return se||(se=1,process.env.NODE_ENV==="production"?L.exports=Ie():L.exports=$e()),L.exports}var t=We();const Ye=()=>t.jsx("div",{className:"toolbar-pf"}),ie=({items:n,className:s})=>t.jsx("ol",{className:`breadcrumb ${s||""}`.trim(),children:n.map((i,o)=>t.jsx("li",{className:i.active?"active":"",children:i.active?i.title:t.jsx("a",{href:i.href,children:i.title})},o))}),Le=t.jsx("span",{className:"loading-spinner mr-2",children:t.jsxs("svg",{className:"animate-spin h-5 w-5 text-current",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[t.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),t.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}),G=({type:n="default",title:s,size:i,label:o,onClick:l,isDisabled:v=!1,children:b,className:R="",isLoading:m=!1})=>{const w=`btn-${n}`,y=i?`btn-${i}`:"",T=`${`btn ${w} ${y}`.trim()} ${R}`.trim();return t.jsx("button",{className:T,type:"button",onClick:l,disabled:v||m,children:t.jsxs("div",{className:"flex items-center justify-center",children:[m&&Le,b||o," ",s&&t.jsx("span",{children:s})]})})},Me=({children:n,eventKey:s,active:i})=>t.jsx("div",{className:`tab-pane ${i?"active":""}`,id:`${s}-panel`,role:"tabpanel","aria-labelledby":`${s}-tab`,children:n},s),Ve=({activeKey:n,onSelect:s,children:i})=>t.jsxs("div",{className:"tabs-container",children:[t.jsx("ul",{className:"nav nav-tabs",role:"tablist",children:i.map(({props:{eventKey:o,title:l}})=>t.jsx("li",{className:n===o?"active":"",children:t.jsx("a",{href:`#${o}`,onClick:v=>{v.preventDefault(),s(o)},children:l})},o))}),t.jsx("div",{className:"tabs-container",children:t.jsx("div",{className:"tab-content pf-c-tab-content",children:i.map(({props:{eventKey:o,children:l}})=>t.jsx("div",{className:`tab-pane ${n===o?"active":""}`,id:`${o}-panel`,role:"tabpanel","aria-labelledby":`${o}-tab`,children:l},o))})})]}),Be=O.forwardRef(({id:n,type:s,placeholder:i="",value:o,onChange:l,className:v="form-control",...b},R)=>{const m=`form-control ${v}`;return t.jsx("input",{type:s,id:n,className:m,placeholder:i,value:o,onChange:l,ref:R,...b})}),Ue=({title:n,isOpen:s,onClose:i,children:o,size:l})=>{if(!s)return null;const v=l?`modal-${l}`:"";return t.jsx("div",{className:"modal fade in",style:{display:"block"},tabIndex:-1,role:"dialog",children:t.jsx("div",{className:`modal-dialog ${v}`,role:"document",children:t.jsxs("div",{className:"modal-content",children:[t.jsxs("div",{className:"modal-header",children:[t.jsx("button",{type:"button",className:"close",onClick:i,"aria-hidden":"true",children:t.jsx("span",{className:"pficon pficon-close"})}),t.jsx("h4",{className:"modal-title",children:n})]}),t.jsx("div",{className:"modal-body",children:o})]})})})},Je=({variant:n,children:s,className:i=""})=>{const o={warning:"text-yellow-600",success:"text-green-600",error:"text-red-600"},l=i+" "+o[n]||"";return t.jsx("p",{className:l,children:s})},Ge=({children:n,...s})=>t.jsx("table",{...s,children:n}),ze=({children:n,...s})=>t.jsx("tbody",{...s,children:n}),He=({children:n,...s})=>t.jsx("td",{...s,children:n}),Xe=({children:n,...s})=>t.jsx("th",{...s,children:n}),qe=({children:n,...s})=>t.jsx("thead",{...s,children:n}),Ze=({children:n,...s})=>t.jsx("tr",{...s,children:n}),z=({items:n,selected:s,title:i,isOpen:o,setIsOpen:l,onChange:v,className:b=""})=>{const R=g=>{l(!g)},m=g=>{l(!1),v(g)},w=g=>{const T=g.id===s;return t.jsx("li",{onClick:()=>m(g),className:T?"active":"",children:t.jsx("a",{href:"#",children:g.title})},g.id)},y=`btn btn-default dropdown-toggle flex-1 ${b}`;return t.jsxs(t.Fragment,{children:[t.jsx("button",{style:{marginLeft:"0px",left:"-1px"},className:y,onClick:()=>R(o),"data-toggle":"dropdown",type:"button",children:t.jsxs("div",{className:"flex items-center justify-center",children:[i&&t.jsx("div",{className:"mr-2",children:i})," ",t.jsx("span",{className:"caret"})," "]})}),t.jsx("ul",{className:"dropdown-menu",role:"menu",children:n.map(w)})]})},Qe=n=>{const[s,i]=O.useState(!1),o=n.selected,l=n.items.find(v=>v.id==o);return n.debug&&(console.log(n),console.log(l)),t.jsx("div",{className:`btn-group ${s?"open":""}`,children:t.jsx(z,{...n,title:(l==null?void 0:l.title)||n.title,setIsOpen:i,isOpen:s})})},oe=({currentPage:n,total:s,onPageChange:i,pageSize:o})=>{const l=Math.ceil(s/o),v=()=>{n>1&&i(n-1)},b=()=>{n<l&&i(n+1)};return t.jsxs("div",{children:[t.jsx("span",{children:t.jsxs("span",{className:"pagination-pf-items-current",children:[n," - ",l]})}),t.jsxs("div",{className:"btn-group ml-2",children:[t.jsx("button",{type:"button",className:`btn btn-default ${n===1?"disabled":""}`,disabled:n===1,onClick:v,children:t.jsx("i",{className:"fa fa-angle-left"})}),t.jsx("button",{type:"button",className:`btn btn-default ${n===l?"disabled":""}`,disabled:n===l,onClick:b,children:t.jsx("i",{className:"fa fa-angle-right"})})]})]})},H=({children:n,onChange:s,items:i,selected:o,className:l=""})=>{const[v,b]=O.useState(!1);return t.jsx("div",{className:`btn-group ${l} ${v?"open":""}`,children:t.jsxs(t.Fragment,{children:[n,t.jsx(z,{setIsOpen:b,isOpen:v,onChange:s,items:i,selected:o})]})})},le=[{id:1,title:"5 сек",data:5e3},{id:2,title:"10 сек",data:1e4},{id:3,title:"20 сек",data:2e4},{id:4,title:"30 сек",data:3e4},{id:5,title:"60 сек",data:6e4}],ce=({onChange:n,value:s,onRefresh:i})=>{var v;const o=b=>{n(b.data)},l=(v=le.find(b=>b.data===s))==null?void 0:v.id;return t.jsx(H,{className:"flex",items:le,onChange:o,selected:l,children:t.jsx(G,{className:"m-0",type:"default",onClick:i,children:t.jsx("i",{className:"fa fa-refresh"})})})},Ke=({interval:n,page:s,total:i,onRefresh:o,onChangeInterval:l,onPageChange:v,pageSize:b})=>t.jsxs("div",{className:"flex justify-between bg-[#f5f5f5] border border-[#d1d1d1]",children:[t.jsx("div",{className:"m-[5px]",children:t.jsx(ce,{value:n,onChange:l,onRefresh:o})}),t.jsx("div",{className:"m-[5px]",children:t.jsx(oe,{pageSize:b,currentPage:s,total:i,onPageChange:v})})]}),er=({id:n,label:s,isChecked:i=!1,onChange:o,className:l="checkbox"})=>t.jsx("div",{className:l,children:t.jsxs("label",{htmlFor:n,children:[t.jsx("input",{type:"checkbox",id:n,checked:i,onChange:o}),` ${s}`]})}),rr=({placeholder:n="",rows:s=3,maxLength:i,value:o,onChange:l,isDisabled:v=!1,className:b=""})=>{const[R,m]=O.useState(o||""),w=o!==void 0?o:R,y=g=>{const T=g.target.value;l?l(T):m(T)};return t.jsx("textarea",{className:b,placeholder:n,rows:s,maxLength:i,value:w,onChange:y,disabled:v})},tr=({variant:n,title:s,className:i})=>{const o=`alert alert-${n} ${i||""}`;return["success","info","warning","danger"].includes(n)||(console.warn(`Unsupported alert variant: "${n}". Defaulting to "info".`),n="info"),t.jsx("div",{className:o.trim(),role:"alert",children:s})},nr=({variant:n,children:s,onClick:i})=>{const o=`label label-${n}`,l=i?{tabIndex:0,role:"button","aria-pressed":!1}:{};return t.jsx("span",{className:o,onClick:i,...l,style:{cursor:i?"pointer":void 0},children:s})},ar=n=>{const{label:s,isChecked:i=!1,id:o="radio1",onChange:l,name:v}=n;return t.jsx("div",{className:"radio",children:t.jsxs("label",{htmlFor:o,children:[t.jsx("input",{type:"radio",name:v,id:o,checked:i,onChange:b=>l(b.target.checked)}),s]})})};function sr(n,s){O.useEffect(()=>{if(!n)return;const i=setInterval(()=>{s()},n);return()=>clearInterval(i)},[n])}const ir=()=>t.jsxs("div",{children:[t.jsx(ie,{items:[{title:"Дополнения",active:!0},{title:"Название плагина",href:"#Название плагина"}]}),t.jsx(H,{onChange:()=>{},items:[{id:0,title:"5 сек"},{id:1,title:"10 сек"},{id:2,title:"20 сек"}],children:t.jsx(G,{children:"Hello"})})]});d.Alert=tr,d.Breadcrumb=ie,d.Button=G,d.Checkbox=er,d.Dropdown=z,d.DropdownSelect=Qe,d.GroupButtonContainer=H,d.HelpText=Je,d.Input=Be,d.Label=nr,d.Modal=Ue,d.Pagination=oe,d.Radio=ar,d.ReloadButton=ce,d.SampleComp=ir,d.Tab=Me,d.Table=Ge,d.TableToolbar=Ke,d.Tabs=Ve,d.Tbody=ze,d.Td=He,d.TextArea=rr,d.Th=Xe,d.Thead=qe,d.ToolbarContainer=Ye,d.Tr=Ze,d.useIntervalLoader=sr,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})});
|