@devtable/settings-form 13.11.0 → 13.11.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/settings-form.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import F, { useEffect as dt, Suspense as
|
|
2
|
-
import { Button as V, Loader as
|
|
1
|
+
import F, { useEffect as dt, Suspense as er, forwardRef as pt, useState as pn, Component as tr } from "react";
|
|
2
|
+
import { Button as V, Loader as nr, Box as Q, TextInput as J, Divider as gt, Group as z, NumberInput as rr, PasswordInput as ft, Modal as we, Stack as Xe, Alert as gn, SegmentedControl as ar, ActionIcon as Ft, Text as je, Tooltip as ot, LoadingOverlay as mt, Table as ht, Select as sr, Switch as or, createStyles as fn, rem as Ke, useComponentDefaultProps as ir, useMantineTheme as lr, ScrollArea as mn, Tabs as bt, HoverCard as Tt } from "@mantine/core";
|
|
3
3
|
import { showNotification as le, updateNotification as P } from "@mantine/notifications";
|
|
4
|
-
import { Recycle as
|
|
5
|
-
import * as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
4
|
+
import { Recycle as cr, AlertCircle as ur, PlaylistAdd as vt, Trash as yt, Edit as dr } from "tabler-icons-react";
|
|
5
|
+
import * as pr from "crypto-js";
|
|
6
|
+
import gr from "lodash";
|
|
7
|
+
import en from "axios";
|
|
8
8
|
import { useForm as be, Controller as R } from "react-hook-form";
|
|
9
|
-
import
|
|
10
|
-
import { IconDeviceFloppy as
|
|
9
|
+
import hn, { loader as jt } from "@monaco-editor/react";
|
|
10
|
+
import { IconDeviceFloppy as bn, IconMathFunction as fr, IconNetwork as mr, IconBrandMysql as hr, IconDatabase as br, IconLock as vn, IconEdit as Rt, IconEye as vr } from "@tabler/icons-react";
|
|
11
11
|
import { useTranslation as O, initReactI18next as yr, I18nextProvider as Sr, Trans as xr } from "react-i18next";
|
|
12
12
|
import { createInstance as _r } from "i18next";
|
|
13
13
|
import wr from "i18next-browser-languagedetector";
|
|
@@ -25,11 +25,11 @@ var Ot = { exports: {} }, qe = {};
|
|
|
25
25
|
* This source code is licensed under the MIT license found in the
|
|
26
26
|
* LICENSE file in the root directory of this source tree.
|
|
27
27
|
*/
|
|
28
|
-
var
|
|
28
|
+
var tn;
|
|
29
29
|
function Tr() {
|
|
30
|
-
if (
|
|
30
|
+
if (tn)
|
|
31
31
|
return qe;
|
|
32
|
-
|
|
32
|
+
tn = 1;
|
|
33
33
|
var e = F, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
34
34
|
function l(c, u, g) {
|
|
35
35
|
var m, d = {}, p = null, f = null;
|
|
@@ -53,9 +53,9 @@ var He = {};
|
|
|
53
53
|
* This source code is licensed under the MIT license found in the
|
|
54
54
|
* LICENSE file in the root directory of this source tree.
|
|
55
55
|
*/
|
|
56
|
-
var
|
|
56
|
+
var nn;
|
|
57
57
|
function jr() {
|
|
58
|
-
return
|
|
58
|
+
return nn || (nn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
59
59
|
var e = F, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), c = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), f = Symbol.for("react.offscreen"), v = Symbol.iterator, h = "@@iterator";
|
|
60
60
|
function x(i) {
|
|
61
61
|
if (i === null || typeof i != "object")
|
|
@@ -297,10 +297,10 @@ function jr() {
|
|
|
297
297
|
var Le = i ? i.displayName || i.name : "", Jt = Le ? Re(Le) : "";
|
|
298
298
|
return typeof i == "function" && ke.set(i, Jt), Jt;
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function In(i, y, w) {
|
|
301
301
|
return Mt(i, !1);
|
|
302
302
|
}
|
|
303
|
-
function
|
|
303
|
+
function Dn(i) {
|
|
304
304
|
var y = i.prototype;
|
|
305
305
|
return !!(y && y.isReactComponent);
|
|
306
306
|
}
|
|
@@ -308,7 +308,7 @@ function jr() {
|
|
|
308
308
|
if (i == null)
|
|
309
309
|
return "";
|
|
310
310
|
if (typeof i == "function")
|
|
311
|
-
return Mt(i,
|
|
311
|
+
return Mt(i, Dn(i));
|
|
312
312
|
if (typeof i == "string")
|
|
313
313
|
return Re(i);
|
|
314
314
|
switch (i) {
|
|
@@ -320,7 +320,7 @@ function jr() {
|
|
|
320
320
|
if (typeof i == "object")
|
|
321
321
|
switch (i.$$typeof) {
|
|
322
322
|
case u:
|
|
323
|
-
return
|
|
323
|
+
return In(i.render);
|
|
324
324
|
case d:
|
|
325
325
|
return tt(i.type, y, w);
|
|
326
326
|
case p: {
|
|
@@ -341,7 +341,7 @@ function jr() {
|
|
|
341
341
|
} else
|
|
342
342
|
Ut.setExtraStackFrame(null);
|
|
343
343
|
}
|
|
344
|
-
function
|
|
344
|
+
function Ln(i, y, w, A, C) {
|
|
345
345
|
{
|
|
346
346
|
var D = Function.call.bind(nt);
|
|
347
347
|
for (var j in i)
|
|
@@ -360,17 +360,17 @@ function jr() {
|
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
|
-
var
|
|
363
|
+
var Fn = Array.isArray;
|
|
364
364
|
function _t(i) {
|
|
365
|
-
return
|
|
365
|
+
return Fn(i);
|
|
366
366
|
}
|
|
367
|
-
function
|
|
367
|
+
function $n(i) {
|
|
368
368
|
{
|
|
369
369
|
var y = typeof Symbol == "function" && Symbol.toStringTag, w = y && i[Symbol.toStringTag] || i.constructor.name || "Object";
|
|
370
370
|
return w;
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function Nn(i) {
|
|
374
374
|
try {
|
|
375
375
|
return Gt(i), !1;
|
|
376
376
|
} catch {
|
|
@@ -381,17 +381,17 @@ function jr() {
|
|
|
381
381
|
return "" + i;
|
|
382
382
|
}
|
|
383
383
|
function qt(i) {
|
|
384
|
-
if (
|
|
385
|
-
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
384
|
+
if (Nn(i))
|
|
385
|
+
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", $n(i)), Gt(i);
|
|
386
386
|
}
|
|
387
|
-
var Ge = _.ReactCurrentOwner,
|
|
387
|
+
var Ge = _.ReactCurrentOwner, zn = {
|
|
388
388
|
key: !0,
|
|
389
389
|
ref: !0,
|
|
390
390
|
__self: !0,
|
|
391
391
|
__source: !0
|
|
392
392
|
}, Ht, Yt, wt;
|
|
393
393
|
wt = {};
|
|
394
|
-
function
|
|
394
|
+
function Pn(i) {
|
|
395
395
|
if (nt.call(i, "ref")) {
|
|
396
396
|
var y = Object.getOwnPropertyDescriptor(i, "ref").get;
|
|
397
397
|
if (y && y.isReactWarning)
|
|
@@ -399,7 +399,7 @@ function jr() {
|
|
|
399
399
|
}
|
|
400
400
|
return i.ref !== void 0;
|
|
401
401
|
}
|
|
402
|
-
function
|
|
402
|
+
function Mn(i) {
|
|
403
403
|
if (nt.call(i, "key")) {
|
|
404
404
|
var y = Object.getOwnPropertyDescriptor(i, "key").get;
|
|
405
405
|
if (y && y.isReactWarning)
|
|
@@ -407,13 +407,13 @@ function jr() {
|
|
|
407
407
|
}
|
|
408
408
|
return i.key !== void 0;
|
|
409
409
|
}
|
|
410
|
-
function
|
|
410
|
+
function Bn(i, y) {
|
|
411
411
|
if (typeof i.ref == "string" && Ge.current && y && Ge.current.stateNode !== y) {
|
|
412
412
|
var w = B(Ge.current.type);
|
|
413
413
|
wt[w] || (S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', B(Ge.current.type), i.ref), wt[w] = !0);
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
|
-
function
|
|
416
|
+
function Un(i, y) {
|
|
417
417
|
{
|
|
418
418
|
var w = function() {
|
|
419
419
|
Ht || (Ht = !0, S("%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)", y));
|
|
@@ -424,7 +424,7 @@ function jr() {
|
|
|
424
424
|
});
|
|
425
425
|
}
|
|
426
426
|
}
|
|
427
|
-
function
|
|
427
|
+
function Gn(i, y) {
|
|
428
428
|
{
|
|
429
429
|
var w = function() {
|
|
430
430
|
Yt || (Yt = !0, S("%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)", y));
|
|
@@ -435,7 +435,7 @@ function jr() {
|
|
|
435
435
|
});
|
|
436
436
|
}
|
|
437
437
|
}
|
|
438
|
-
var
|
|
438
|
+
var qn = function(i, y, w, A, C, D, j) {
|
|
439
439
|
var T = {
|
|
440
440
|
// This tag allows us to uniquely identify this as a React Element
|
|
441
441
|
$$typeof: t,
|
|
@@ -464,12 +464,12 @@ function jr() {
|
|
|
464
464
|
value: C
|
|
465
465
|
}), Object.freeze && (Object.freeze(T.props), Object.freeze(T)), T;
|
|
466
466
|
};
|
|
467
|
-
function
|
|
467
|
+
function Hn(i, y, w, A, C) {
|
|
468
468
|
{
|
|
469
469
|
var D, j = {}, T = null, ae = null;
|
|
470
|
-
w !== void 0 && (qt(w), T = "" + w),
|
|
470
|
+
w !== void 0 && (qt(w), T = "" + w), Mn(y) && (qt(y.key), T = "" + y.key), Pn(y) && (ae = y.ref, Bn(y, C));
|
|
471
471
|
for (D in y)
|
|
472
|
-
nt.call(y, D) && !
|
|
472
|
+
nt.call(y, D) && !zn.hasOwnProperty(D) && (j[D] = y[D]);
|
|
473
473
|
if (i && i.defaultProps) {
|
|
474
474
|
var U = i.defaultProps;
|
|
475
475
|
for (D in U)
|
|
@@ -477,9 +477,9 @@ function jr() {
|
|
|
477
477
|
}
|
|
478
478
|
if (T || ae) {
|
|
479
479
|
var Y = typeof i == "function" ? i.displayName || i.name || "Unknown" : i;
|
|
480
|
-
T &&
|
|
480
|
+
T && Un(j, Y), ae && Gn(j, Y);
|
|
481
481
|
}
|
|
482
|
-
return
|
|
482
|
+
return qn(i, T, ae, C, A, Ge.current, j);
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
485
|
var Et = _.ReactCurrentOwner, Vt = _.ReactDebugCurrentFrame;
|
|
@@ -507,7 +507,7 @@ Check the render method of \`` + i + "`.";
|
|
|
507
507
|
return "";
|
|
508
508
|
}
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function Yn(i) {
|
|
511
511
|
{
|
|
512
512
|
if (i !== void 0) {
|
|
513
513
|
var y = i.fileName.replace(/^.*[\\\/]/, ""), w = i.lineNumber;
|
|
@@ -519,7 +519,7 @@ Check your code at ` + y + ":" + w + ".";
|
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
521
|
var Kt = {};
|
|
522
|
-
function
|
|
522
|
+
function Vn(i) {
|
|
523
523
|
{
|
|
524
524
|
var y = Wt();
|
|
525
525
|
if (!y) {
|
|
@@ -536,7 +536,7 @@ Check the top-level render call using <` + w + ">.");
|
|
|
536
536
|
if (!i._store || i._store.validated || i.key != null)
|
|
537
537
|
return;
|
|
538
538
|
i._store.validated = !0;
|
|
539
|
-
var w =
|
|
539
|
+
var w = Vn(y);
|
|
540
540
|
if (Kt[w])
|
|
541
541
|
return;
|
|
542
542
|
Kt[w] = !0;
|
|
@@ -563,7 +563,7 @@ Check the top-level render call using <` + w + ">.");
|
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
565
|
}
|
|
566
|
-
function
|
|
566
|
+
function Wn(i) {
|
|
567
567
|
{
|
|
568
568
|
var y = i.type;
|
|
569
569
|
if (y == null || typeof y == "string")
|
|
@@ -579,7 +579,7 @@ Check the top-level render call using <` + w + ">.");
|
|
|
579
579
|
return;
|
|
580
580
|
if (w) {
|
|
581
581
|
var A = B(y);
|
|
582
|
-
|
|
582
|
+
Ln(w, i.props, "prop", A, i);
|
|
583
583
|
} else if (y.PropTypes !== void 0 && !At) {
|
|
584
584
|
At = !0;
|
|
585
585
|
var C = B(y);
|
|
@@ -588,7 +588,7 @@ Check the top-level render call using <` + w + ">.");
|
|
|
588
588
|
typeof y.getDefaultProps == "function" && !y.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
|
-
function
|
|
591
|
+
function Kn(i) {
|
|
592
592
|
{
|
|
593
593
|
for (var y = Object.keys(i.props), w = 0; w < y.length; w++) {
|
|
594
594
|
var A = y[w];
|
|
@@ -606,12 +606,12 @@ Check the top-level render call using <` + w + ">.");
|
|
|
606
606
|
if (!j) {
|
|
607
607
|
var T = "";
|
|
608
608
|
(i === void 0 || typeof i == "object" && i !== null && Object.keys(i).length === 0) && (T += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
609
|
-
var ae =
|
|
609
|
+
var ae = Yn(C);
|
|
610
610
|
ae ? T += ae : T += Wt();
|
|
611
611
|
var U;
|
|
612
612
|
i === null ? U = "null" : _t(i) ? U = "array" : i !== void 0 && i.$$typeof === t ? (U = "<" + (B(i.type) || "Unknown") + " />", T = " Did you accidentally export a JSX literal instead of a component?") : U = typeof i, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", U, T);
|
|
613
613
|
}
|
|
614
|
-
var Y =
|
|
614
|
+
var Y = Hn(i, y, w, C, D);
|
|
615
615
|
if (Y == null)
|
|
616
616
|
return Y;
|
|
617
617
|
if (j) {
|
|
@@ -627,17 +627,17 @@ Check the top-level render call using <` + w + ">.");
|
|
|
627
627
|
else
|
|
628
628
|
Xt(ie, i);
|
|
629
629
|
}
|
|
630
|
-
return i === r ?
|
|
630
|
+
return i === r ? Kn(Y) : Wn(Y), Y;
|
|
631
631
|
}
|
|
632
632
|
}
|
|
633
|
-
function
|
|
633
|
+
function Zn(i, y, w) {
|
|
634
634
|
return Qt(i, y, w, !0);
|
|
635
635
|
}
|
|
636
|
-
function
|
|
636
|
+
function Xn(i, y, w) {
|
|
637
637
|
return Qt(i, y, w, !1);
|
|
638
638
|
}
|
|
639
|
-
var
|
|
640
|
-
He.Fragment = r, He.jsx =
|
|
639
|
+
var Qn = Xn, Jn = Zn;
|
|
640
|
+
He.Fragment = r, He.jsx = Qn, He.jsxs = Jn;
|
|
641
641
|
}()), He;
|
|
642
642
|
}
|
|
643
643
|
process.env.NODE_ENV === "production" ? Ot.exports = Tr() : Ot.exports = jr();
|
|
@@ -661,7 +661,7 @@ function Cr(e) {
|
|
|
661
661
|
}
|
|
662
662
|
function Rr(e, t) {
|
|
663
663
|
let n = Cr(e);
|
|
664
|
-
return n += "&key=" + t,
|
|
664
|
+
return n += "&key=" + t, pr.MD5(n).toString().toUpperCase();
|
|
665
665
|
}
|
|
666
666
|
class Or {
|
|
667
667
|
constructor() {
|
|
@@ -684,8 +684,10 @@ class Or {
|
|
|
684
684
|
getRequest(t, n) {
|
|
685
685
|
return (r, s, o, l) => {
|
|
686
686
|
const c = this.buildHeader(o), u = this.buildAxiosConfig(t, r, s, o, c, n);
|
|
687
|
-
return
|
|
688
|
-
|
|
687
|
+
return en(u).then((g) => l ? g : g.data).catch((g) => {
|
|
688
|
+
if (en.isCancel(g))
|
|
689
|
+
return Promise.reject(g);
|
|
690
|
+
const m = gr.get(g, "response.data.detail.message", g.message);
|
|
689
691
|
return Promise.reject(new Error(m));
|
|
690
692
|
});
|
|
691
693
|
};
|
|
@@ -850,7 +852,7 @@ const Fr = {
|
|
|
850
852
|
}, zr = {
|
|
851
853
|
list: async () => await G.get()("/role/list", {}, {})
|
|
852
854
|
};
|
|
853
|
-
var
|
|
855
|
+
var yn = 60, Sn = yn * 60, xn = Sn * 24, Pr = xn * 7, Me = 1e3, Ct = yn * Me, rn = Sn * Me, Mr = xn * Me, Br = Pr * Me, $t = "millisecond", $e = "second", Ne = "minute", ze = "hour", Se = "day", st = "week", ce = "month", _n = "quarter", xe = "year", Pe = "date", Ur = "YYYY-MM-DDTHH:mm:ssZ", an = "Invalid Date", Gr = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, qr = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g;
|
|
854
856
|
const Hr = {
|
|
855
857
|
name: "en",
|
|
856
858
|
weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
|
|
@@ -884,7 +886,7 @@ var It = function(t, n, r) {
|
|
|
884
886
|
m: Ne,
|
|
885
887
|
s: $e,
|
|
886
888
|
ms: $t,
|
|
887
|
-
Q:
|
|
889
|
+
Q: _n
|
|
888
890
|
};
|
|
889
891
|
return n[t] || String(t || "").toLowerCase().replace(/s$/, "");
|
|
890
892
|
}, Zr = function(t) {
|
|
@@ -963,7 +965,7 @@ var Jr = function(t) {
|
|
|
963
965
|
}, t.$utils = function() {
|
|
964
966
|
return I;
|
|
965
967
|
}, t.isValid = function() {
|
|
966
|
-
return this.$d.toString() !==
|
|
968
|
+
return this.$d.toString() !== an;
|
|
967
969
|
}, t.isSame = function(r, s) {
|
|
968
970
|
var o = Z(r);
|
|
969
971
|
return this.startOf(s) <= o && o <= this.endOf(s);
|
|
@@ -1039,14 +1041,14 @@ var Jr = function(t) {
|
|
|
1039
1041
|
return u(1);
|
|
1040
1042
|
if (c === st)
|
|
1041
1043
|
return u(7);
|
|
1042
|
-
var g = (l = {}, l[Ne] = Ct, l[ze] =
|
|
1044
|
+
var g = (l = {}, l[Ne] = Ct, l[ze] = rn, l[$e] = Me, l)[c] || 1, m = this.$d.getTime() + r * g;
|
|
1043
1045
|
return I.w(m, this);
|
|
1044
1046
|
}, t.subtract = function(r, s) {
|
|
1045
1047
|
return this.add(r * -1, s);
|
|
1046
1048
|
}, t.format = function(r) {
|
|
1047
1049
|
var s = this, o = this.$locale();
|
|
1048
1050
|
if (!this.isValid())
|
|
1049
|
-
return o.invalidDate ||
|
|
1051
|
+
return o.invalidDate || an;
|
|
1050
1052
|
var l = r || Ur, c = I.z(this), u = this.$H, g = this.$m, m = this.$M, d = o.weekdays, p = o.months, f = o.meridiem, v = function(E, k, q, ee) {
|
|
1051
1053
|
return E && (E[k] || E(s, l)) || q[k].slice(0, ee);
|
|
1052
1054
|
}, h = function(E) {
|
|
@@ -1123,7 +1125,7 @@ var Jr = function(t) {
|
|
|
1123
1125
|
case ce:
|
|
1124
1126
|
p = d();
|
|
1125
1127
|
break;
|
|
1126
|
-
case
|
|
1128
|
+
case _n:
|
|
1127
1129
|
p = d() / 3;
|
|
1128
1130
|
break;
|
|
1129
1131
|
case st:
|
|
@@ -1133,7 +1135,7 @@ var Jr = function(t) {
|
|
|
1133
1135
|
p = (m - g) / Mr;
|
|
1134
1136
|
break;
|
|
1135
1137
|
case ze:
|
|
1136
|
-
p = m /
|
|
1138
|
+
p = m / rn;
|
|
1137
1139
|
break;
|
|
1138
1140
|
case Ne:
|
|
1139
1141
|
p = m / Ct;
|
|
@@ -1166,10 +1168,10 @@ var Jr = function(t) {
|
|
|
1166
1168
|
}, t.toString = function() {
|
|
1167
1169
|
return this.$d.toUTCString();
|
|
1168
1170
|
}, e;
|
|
1169
|
-
}(),
|
|
1170
|
-
Z.prototype =
|
|
1171
|
+
}(), wn = St.prototype;
|
|
1172
|
+
Z.prototype = wn;
|
|
1171
1173
|
[["$ms", $t], ["$s", $e], ["$m", Ne], ["$H", ze], ["$W", Se], ["$M", ce], ["$y", xe], ["$D", Pe]].forEach(function(e) {
|
|
1172
|
-
|
|
1174
|
+
wn[e[1]] = function(t) {
|
|
1173
1175
|
return this.$g(t, e[0], e[1]);
|
|
1174
1176
|
};
|
|
1175
1177
|
});
|
|
@@ -1219,7 +1221,7 @@ const ea = {
|
|
|
1219
1221
|
button: {
|
|
1220
1222
|
size: "xs"
|
|
1221
1223
|
}
|
|
1222
|
-
},
|
|
1224
|
+
}, En = ({
|
|
1223
1225
|
value: e,
|
|
1224
1226
|
onChange: t,
|
|
1225
1227
|
height: n = "200px",
|
|
@@ -1228,7 +1230,7 @@ const ea = {
|
|
|
1228
1230
|
const s = (l) => {
|
|
1229
1231
|
console.log("changing"), t == null || t(l ?? "");
|
|
1230
1232
|
}, o = !t;
|
|
1231
|
-
return /* @__PURE__ */ a.jsx(
|
|
1233
|
+
return /* @__PURE__ */ a.jsx(hn, { className: "minimal-monaco-editor", height: n, defaultLanguage: r, value: e, onChange: o ? void 0 : s, theme: "vs-dark", options: {
|
|
1232
1234
|
lineNumbers: "off",
|
|
1233
1235
|
folding: !1,
|
|
1234
1236
|
lineDecorationsWidth: 20,
|
|
@@ -1247,7 +1249,7 @@ function ve({
|
|
|
1247
1249
|
const {
|
|
1248
1250
|
t: n
|
|
1249
1251
|
} = O();
|
|
1250
|
-
return /* @__PURE__ */ a.jsx(V, { type: "submit", color: "green", leftIcon: /* @__PURE__ */ a.jsx(
|
|
1252
|
+
return /* @__PURE__ */ a.jsx(V, { type: "submit", color: "green", leftIcon: /* @__PURE__ */ a.jsx(bn, { size: 16 }), size: e, disabled: t, children: n("common.actions.submit") });
|
|
1251
1253
|
}
|
|
1252
1254
|
const ta = {
|
|
1253
1255
|
translation: {
|
|
@@ -1554,7 +1556,7 @@ function Je(e, t) {
|
|
|
1554
1556
|
config: o,
|
|
1555
1557
|
...l
|
|
1556
1558
|
} = r;
|
|
1557
|
-
return Lr(o), sa(o.monacoPath), /* @__PURE__ */ a.jsx(
|
|
1559
|
+
return Lr(o), sa(o.monacoPath), /* @__PURE__ */ a.jsx(er, { fallback: /* @__PURE__ */ a.jsx(nr, { color: "gray" }), children: /* @__PURE__ */ a.jsx(ra, { lang: s, children: /* @__PURE__ */ a.jsx(t, { ...l }) }) });
|
|
1558
1560
|
};
|
|
1559
1561
|
return n.displayName = `withEntry(${e})`, n;
|
|
1560
1562
|
}
|
|
@@ -1599,7 +1601,7 @@ function oa({
|
|
|
1599
1601
|
field: c
|
|
1600
1602
|
}) => (
|
|
1601
1603
|
// @ts-expect-error type of onChange
|
|
1602
|
-
/* @__PURE__ */ a.jsx(
|
|
1604
|
+
/* @__PURE__ */ a.jsx(rr, { mb: t.spacing, size: t.size, required: !0, label: r("datasource.db.port"), hideControls: !0, sx: {
|
|
1603
1605
|
width: "8em"
|
|
1604
1606
|
}, ...c })
|
|
1605
1607
|
) })
|
|
@@ -1625,7 +1627,7 @@ const ia = ({
|
|
|
1625
1627
|
};
|
|
1626
1628
|
return /* @__PURE__ */ a.jsx(Q, { sx: {
|
|
1627
1629
|
position: "relative"
|
|
1628
|
-
}, children: /* @__PURE__ */ a.jsx(
|
|
1630
|
+
}, children: /* @__PURE__ */ a.jsx(hn, { height: "500px", defaultLanguage: "javascript", value: e, onChange: n, theme: "vs-dark", options: {
|
|
1629
1631
|
minimap: {
|
|
1630
1632
|
enabled: !1
|
|
1631
1633
|
}
|
|
@@ -1643,7 +1645,7 @@ const ia = ({
|
|
|
1643
1645
|
} = O(), [u, {
|
|
1644
1646
|
setTrue: g,
|
|
1645
1647
|
setFalse: m
|
|
1646
|
-
}] = Er(), [d, p] =
|
|
1648
|
+
}] = Er(), [d, p] = pn(e), f = () => {
|
|
1647
1649
|
m(), t(d);
|
|
1648
1650
|
}, v = () => {
|
|
1649
1651
|
m(), p(e);
|
|
@@ -1659,10 +1661,10 @@ const ia = ({
|
|
|
1659
1661
|
/* @__PURE__ */ a.jsx(we, { size: 800, title: r, opened: u, onClose: m, closeOnClickOutside: !1, withCloseButton: !1, children: u && /* @__PURE__ */ a.jsxs(Xe, { children: [
|
|
1660
1662
|
/* @__PURE__ */ a.jsx(ia, { value: d, onChange: p }),
|
|
1661
1663
|
/* @__PURE__ */ a.jsxs(z, { position: "apart", children: [
|
|
1662
|
-
/* @__PURE__ */ a.jsx(V, { size: o.button.size, onClick: h, color: "red", leftIcon: /* @__PURE__ */ a.jsx(
|
|
1664
|
+
/* @__PURE__ */ a.jsx(V, { size: o.button.size, onClick: h, color: "red", leftIcon: /* @__PURE__ */ a.jsx(cr, { size: 20 }), children: c("common.actions.reset_to_default") }),
|
|
1663
1665
|
/* @__PURE__ */ a.jsxs(z, { position: "right", children: [
|
|
1664
1666
|
/* @__PURE__ */ a.jsx(V, { size: o.button.size, onClick: v, variant: "subtle", children: c("common.actions.cancel") }),
|
|
1665
|
-
/* @__PURE__ */ a.jsx(V, { size: o.button.size, color: "green", leftIcon: /* @__PURE__ */ a.jsx(
|
|
1667
|
+
/* @__PURE__ */ a.jsx(V, { size: o.button.size, color: "green", leftIcon: /* @__PURE__ */ a.jsx(bn, { size: 16 }), onClick: f, children: c("common.actions.save") })
|
|
1666
1668
|
] })
|
|
1667
1669
|
] })
|
|
1668
1670
|
] }) })
|
|
@@ -1720,7 +1722,7 @@ function la({
|
|
|
1720
1722
|
function ca({
|
|
1721
1723
|
styles: e = pe
|
|
1722
1724
|
}) {
|
|
1723
|
-
return /* @__PURE__ */ a.jsx(Q, { mx: "auto", children: /* @__PURE__ */ a.jsx(
|
|
1725
|
+
return /* @__PURE__ */ a.jsx(Q, { mx: "auto", children: /* @__PURE__ */ a.jsx(gn, { mt: e.spacing, icon: /* @__PURE__ */ a.jsx(ur, { size: 16 }), children: /* @__PURE__ */ a.jsxs(xr, { i18nKey: "datasource.db.permission_tip", children: [
|
|
1724
1726
|
"Only ",
|
|
1725
1727
|
/* @__PURE__ */ a.jsx("b", { children: "SELECT" }),
|
|
1726
1728
|
" privilege is needed."
|
|
@@ -1732,7 +1734,7 @@ function ua({
|
|
|
1732
1734
|
}) {
|
|
1733
1735
|
const {
|
|
1734
1736
|
t: n
|
|
1735
|
-
} = O(), [r, s] =
|
|
1737
|
+
} = O(), [r, s] = pn("postgresql"), o = async ({
|
|
1736
1738
|
type: u,
|
|
1737
1739
|
key: g,
|
|
1738
1740
|
config: m
|
|
@@ -1767,7 +1769,7 @@ function ua({
|
|
|
1767
1769
|
}
|
|
1768
1770
|
}, l = r === "postgresql" || r === "mysql", c = r === "http";
|
|
1769
1771
|
return /* @__PURE__ */ a.jsxs(Q, { mx: "auto", children: [
|
|
1770
|
-
/* @__PURE__ */ a.jsx(
|
|
1772
|
+
/* @__PURE__ */ a.jsx(ar, { fullWidth: !0, mb: t.spacing, size: t.size, data: [{
|
|
1771
1773
|
label: "PostgreSQL",
|
|
1772
1774
|
value: "postgresql"
|
|
1773
1775
|
}, {
|
|
@@ -1866,11 +1868,11 @@ function ma({
|
|
|
1866
1868
|
hover: !0,
|
|
1867
1869
|
touch: !1,
|
|
1868
1870
|
focus: !1
|
|
1869
|
-
}, label: o("datasource.delete.cant_delete_preset"), children: /* @__PURE__ */ a.jsx(V, { size: s.button.size, color: "gray", variant: "light", leftIcon: /* @__PURE__ */ a.jsx(
|
|
1871
|
+
}, label: o("datasource.delete.cant_delete_preset"), children: /* @__PURE__ */ a.jsx(V, { size: s.button.size, color: "gray", variant: "light", leftIcon: /* @__PURE__ */ a.jsx(vn, { size: 16 }), sx: {
|
|
1870
1872
|
transform: "none !important"
|
|
1871
1873
|
}, children: o("common.actions.delete") }) }) : /* @__PURE__ */ a.jsx(V, { size: s.button.size, color: "red", onClick: u, leftIcon: /* @__PURE__ */ a.jsx(yt, { size: 16 }), children: o("common.actions.delete") });
|
|
1872
1874
|
}
|
|
1873
|
-
const
|
|
1875
|
+
const sn = {
|
|
1874
1876
|
pre: ["function pre_process({ method, url, params, headers, data }, utils) {", " // your code goes here", " return { method, url, params, headers, data }", "}"].join(`
|
|
1875
1877
|
`),
|
|
1876
1878
|
post: ["function post_process(resp, utils) {", " return resp.data", "}"].join(`
|
|
@@ -1903,10 +1905,10 @@ function ha({
|
|
|
1903
1905
|
/* @__PURE__ */ a.jsxs(z, { grow: !0, children: [
|
|
1904
1906
|
/* @__PURE__ */ a.jsx(R, { name: "config.processing.pre", control: o, render: ({
|
|
1905
1907
|
field: c
|
|
1906
|
-
}) => /* @__PURE__ */ a.jsx(lt, { label: s("datasource.http.processing.pre.label"), modalTitle: s("datasource.http.processing.pre.description"), defaultValue:
|
|
1908
|
+
}) => /* @__PURE__ */ a.jsx(lt, { label: s("datasource.http.processing.pre.label"), modalTitle: s("datasource.http.processing.pre.description"), defaultValue: sn.pre, ...c, styles: r }) }),
|
|
1907
1909
|
/* @__PURE__ */ a.jsx(R, { name: "config.processing.post", control: o, render: ({
|
|
1908
1910
|
field: c
|
|
1909
|
-
}) => /* @__PURE__ */ a.jsx(lt, { label: s("datasource.http.processing.post.label"), modalTitle: s("datasource.http.processing.post.description"), defaultValue:
|
|
1911
|
+
}) => /* @__PURE__ */ a.jsx(lt, { label: s("datasource.http.processing.post.label"), modalTitle: s("datasource.http.processing.post.description"), defaultValue: sn.post, ...c, styles: r }) })
|
|
1910
1912
|
] }),
|
|
1911
1913
|
/* @__PURE__ */ a.jsx(z, { position: "right", mt: r.spacing, children: /* @__PURE__ */ a.jsx(ve, { size: r.button.size }) })
|
|
1912
1914
|
] }) });
|
|
@@ -1964,7 +1966,7 @@ function va({
|
|
|
1964
1966
|
hover: !0,
|
|
1965
1967
|
touch: !1,
|
|
1966
1968
|
focus: !1
|
|
1967
|
-
}, label: r("datasource.cant_edit.preset"), children: /* @__PURE__ */ a.jsx(V, { size: n.button.size, color: "gray", variant: "light", leftIcon: /* @__PURE__ */ a.jsx(
|
|
1969
|
+
}, label: r("datasource.cant_edit.preset"), children: /* @__PURE__ */ a.jsx(V, { size: n.button.size, color: "gray", variant: "light", leftIcon: /* @__PURE__ */ a.jsx(vn, { size: 16 }), sx: {
|
|
1968
1970
|
transform: "none !important"
|
|
1969
1971
|
}, children: r("common.actions.edit") }) }) : e.type !== "http" ? /* @__PURE__ */ a.jsx(ot, { withArrow: !0, events: {
|
|
1970
1972
|
hover: !0,
|
|
@@ -2053,7 +2055,7 @@ const ws = Je("DataSourceList", ({
|
|
|
2053
2055
|
})), {
|
|
2054
2056
|
refreshDeps: []
|
|
2055
2057
|
});
|
|
2056
|
-
return /* @__PURE__ */ a.jsx(
|
|
2058
|
+
return /* @__PURE__ */ a.jsx(sr, { ref: r, mb: e.spacing, size: e.size, required: !0, label: s("role.label"), itemComponent: ya, data: o, disabled: l, styles: () => ({
|
|
2057
2059
|
item: {
|
|
2058
2060
|
"&[data-selected]": {
|
|
2059
2061
|
"&, &:hover": {
|
|
@@ -2279,7 +2281,7 @@ function wa({
|
|
|
2279
2281
|
/* @__PURE__ */ a.jsx(gt, { my: 20, variant: "dashed", label: "", labelPosition: "center" }),
|
|
2280
2282
|
/* @__PURE__ */ a.jsx(R, { name: "reset_password", control: c, render: ({
|
|
2281
2283
|
field: f
|
|
2282
|
-
}) => /* @__PURE__ */ a.jsx(
|
|
2284
|
+
}) => /* @__PURE__ */ a.jsx(or, { mb: o.spacing, size: o.size, label: l("account.reset_password"), checked: f.value, onChange: (v) => f.onChange(v.currentTarget.checked), styles: {
|
|
2283
2285
|
label: {
|
|
2284
2286
|
verticalAlign: "middle"
|
|
2285
2287
|
}
|
|
@@ -2313,7 +2315,7 @@ function Ea({
|
|
|
2313
2315
|
}), trapFocus: !0, onDragStart: (g) => {
|
|
2314
2316
|
g.stopPropagation();
|
|
2315
2317
|
}, children: /* @__PURE__ */ a.jsx(wa, { ...e, postSubmit: u, styles: n }) }),
|
|
2316
|
-
/* @__PURE__ */ a.jsx(V, { size: n.button.size, onClick: l, leftIcon: /* @__PURE__ */ a.jsx(
|
|
2318
|
+
/* @__PURE__ */ a.jsx(V, { size: n.button.size, onClick: l, leftIcon: /* @__PURE__ */ a.jsx(dr, { size: 20 }), children: r("common.actions.edit") })
|
|
2317
2319
|
] });
|
|
2318
2320
|
}
|
|
2319
2321
|
const Es = Je("AccountList", ({
|
|
@@ -2709,7 +2711,7 @@ function Ca({
|
|
|
2709
2711
|
/* @__PURE__ */ a.jsx(je, { size: 14, fw: 500, color: "#212529", sx: {
|
|
2710
2712
|
cursor: "default"
|
|
2711
2713
|
}, children: n("global_sql_snippet.content") }),
|
|
2712
|
-
/* @__PURE__ */ a.jsx(
|
|
2714
|
+
/* @__PURE__ */ a.jsx(En, { height: "600px", ...l })
|
|
2713
2715
|
] }) }),
|
|
2714
2716
|
/* @__PURE__ */ a.jsx(z, { position: "right", mt: t.spacing, children: /* @__PURE__ */ a.jsx(ve, { size: t.button.size }) })
|
|
2715
2717
|
] }) });
|
|
@@ -2781,7 +2783,7 @@ function Oa({
|
|
|
2781
2783
|
/* @__PURE__ */ a.jsx(je, { size: 14, fw: 500, color: "#212529", sx: {
|
|
2782
2784
|
cursor: "default"
|
|
2783
2785
|
}, children: s("global_sql_snippet.content") }),
|
|
2784
|
-
/* @__PURE__ */ a.jsx(
|
|
2786
|
+
/* @__PURE__ */ a.jsx(En, { height: "600px", ...u })
|
|
2785
2787
|
] }) }),
|
|
2786
2788
|
/* @__PURE__ */ a.jsx(z, { position: "right", mt: t.spacing, children: /* @__PURE__ */ a.jsx(ve, { size: t.button.size }) })
|
|
2787
2789
|
] }) });
|
|
@@ -5867,7 +5869,7 @@ function _e() {
|
|
|
5867
5869
|
return e;
|
|
5868
5870
|
}, _e.apply(this, arguments);
|
|
5869
5871
|
}
|
|
5870
|
-
var $a = /\r\n|\r|\n/,
|
|
5872
|
+
var $a = /\r\n|\r|\n/, on = function(e) {
|
|
5871
5873
|
e.length === 0 ? e.push({
|
|
5872
5874
|
types: ["plain"],
|
|
5873
5875
|
content: `
|
|
@@ -5875,14 +5877,14 @@ var $a = /\r\n|\r|\n/, sn = function(e) {
|
|
|
5875
5877
|
empty: !0
|
|
5876
5878
|
}) : e.length === 1 && e[0].content === "" && (e[0].content = `
|
|
5877
5879
|
`, e[0].empty = !0);
|
|
5878
|
-
},
|
|
5880
|
+
}, ln = function(e, t) {
|
|
5879
5881
|
var n = e.length;
|
|
5880
5882
|
return n > 0 && e[n - 1] === t ? e : e.concat(t);
|
|
5881
5883
|
}, Na = function(e) {
|
|
5882
5884
|
for (var t = [[]], n = [e], r = [0], s = [e.length], o = 0, l = 0, c = [], u = [c]; l > -1; ) {
|
|
5883
5885
|
for (; (o = r[l]++) < s[l]; ) {
|
|
5884
5886
|
var g = void 0, m = t[l], d = n[l], p = d[o];
|
|
5885
|
-
if (typeof p == "string" ? (m = l > 0 ? m : ["plain"], g = p) : (m =
|
|
5887
|
+
if (typeof p == "string" ? (m = l > 0 ? m : ["plain"], g = p) : (m = ln(m, p.type), p.alias && (m = ln(m, p.alias)), g = p.content), typeof g != "string") {
|
|
5886
5888
|
l++, t.push(m), n.push(g), r.push(0), s.push(g.length);
|
|
5887
5889
|
continue;
|
|
5888
5890
|
}
|
|
@@ -5892,14 +5894,14 @@ var $a = /\r\n|\r|\n/, sn = function(e) {
|
|
|
5892
5894
|
content: f[0]
|
|
5893
5895
|
});
|
|
5894
5896
|
for (var h = 1; h < v; h++)
|
|
5895
|
-
|
|
5897
|
+
on(c), u.push(c = []), c.push({
|
|
5896
5898
|
types: m,
|
|
5897
5899
|
content: f[h]
|
|
5898
5900
|
});
|
|
5899
5901
|
}
|
|
5900
5902
|
l--, t.pop(), n.pop(), r.pop(), s.pop();
|
|
5901
5903
|
}
|
|
5902
|
-
return
|
|
5904
|
+
return on(c), u;
|
|
5903
5905
|
}, za = function(e, t) {
|
|
5904
5906
|
var n = e.plain, r = /* @__PURE__ */ Object.create(null), s = e.styles.reduce(function(o, l) {
|
|
5905
5907
|
var c = l.languages, u = l.style;
|
|
@@ -5912,7 +5914,7 @@ var $a = /\r\n|\r|\n/, sn = function(e) {
|
|
|
5912
5914
|
backgroundColor: null
|
|
5913
5915
|
}), s;
|
|
5914
5916
|
};
|
|
5915
|
-
function
|
|
5917
|
+
function cn(e, t) {
|
|
5916
5918
|
var n = {};
|
|
5917
5919
|
for (var r in e)
|
|
5918
5920
|
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) === -1 && (n[r] = e[r]);
|
|
@@ -5929,7 +5931,7 @@ var Pa = /* @__PURE__ */ function(e) {
|
|
|
5929
5931
|
var l = o.theme ? za(o.theme, o.language) : void 0;
|
|
5930
5932
|
return n.themeDict = l;
|
|
5931
5933
|
}), Ye(this, "getLineProps", function(o) {
|
|
5932
|
-
var l = o.key, c = o.className, u = o.style, g =
|
|
5934
|
+
var l = o.key, c = o.className, u = o.style, g = cn(o, ["key", "className", "style", "line"]), m = g, d = _e({}, m, {
|
|
5933
5935
|
className: "token-line",
|
|
5934
5936
|
style: void 0,
|
|
5935
5937
|
key: void 0
|
|
@@ -5954,7 +5956,7 @@ var Pa = /* @__PURE__ */ function(e) {
|
|
|
5954
5956
|
return Object.assign.apply(Object, [m].concat(d));
|
|
5955
5957
|
}
|
|
5956
5958
|
}), Ye(this, "getTokenProps", function(o) {
|
|
5957
|
-
var l = o.key, c = o.className, u = o.style, g = o.token, m =
|
|
5959
|
+
var l = o.key, c = o.className, u = o.style, g = o.token, m = cn(o, ["key", "className", "style", "token"]), d = m, p = _e({}, d, {
|
|
5958
5960
|
className: "token " + g.types.join(" "),
|
|
5959
5961
|
children: g.content,
|
|
5960
5962
|
style: n.getStyleForToken(g),
|
|
@@ -5983,9 +5985,9 @@ var Pa = /* @__PURE__ */ function(e) {
|
|
|
5983
5985
|
getTokenProps: this.getTokenProps
|
|
5984
5986
|
});
|
|
5985
5987
|
}, t;
|
|
5986
|
-
}(
|
|
5988
|
+
}(tr);
|
|
5987
5989
|
const Ma = Pa;
|
|
5988
|
-
function
|
|
5990
|
+
function An({ copied: e }) {
|
|
5989
5991
|
return /* @__PURE__ */ F.createElement("svg", {
|
|
5990
5992
|
viewBox: "0 0 15 15",
|
|
5991
5993
|
fill: "none",
|
|
@@ -6003,7 +6005,7 @@ function En({ copied: e }) {
|
|
|
6003
6005
|
clipRule: "evenodd"
|
|
6004
6006
|
}));
|
|
6005
6007
|
}
|
|
6006
|
-
|
|
6008
|
+
An.displayName = "@mantine/prism/CopyIcon";
|
|
6007
6009
|
const Ba = (e) => ({
|
|
6008
6010
|
plain: {
|
|
6009
6011
|
color: e.colors.gray[4],
|
|
@@ -6181,7 +6183,7 @@ const Ba = (e) => ({
|
|
|
6181
6183
|
}
|
|
6182
6184
|
]
|
|
6183
6185
|
}), Ga = (e, t) => t === "dark" ? Ba(e) : Ua(e);
|
|
6184
|
-
var qa =
|
|
6186
|
+
var qa = fn((e, { colorScheme: t, native: n, maxLineSize: r, radius: s }) => ({
|
|
6185
6187
|
scrollArea: {},
|
|
6186
6188
|
root: {
|
|
6187
6189
|
position: "relative"
|
|
@@ -6228,20 +6230,20 @@ var qa = gn((e, { colorScheme: t, native: n, maxLineSize: r, radius: s }) => ({
|
|
|
6228
6230
|
}
|
|
6229
6231
|
}));
|
|
6230
6232
|
const Ha = qa;
|
|
6231
|
-
var Ya = Object.defineProperty, Va = Object.defineProperties, Wa = Object.getOwnPropertyDescriptors, ct = Object.getOwnPropertySymbols,
|
|
6233
|
+
var Ya = Object.defineProperty, Va = Object.defineProperties, Wa = Object.getOwnPropertyDescriptors, ct = Object.getOwnPropertySymbols, kn = Object.prototype.hasOwnProperty, Tn = Object.prototype.propertyIsEnumerable, un = (e, t, n) => t in e ? Ya(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Fe = (e, t) => {
|
|
6232
6234
|
for (var n in t || (t = {}))
|
|
6233
|
-
|
|
6235
|
+
kn.call(t, n) && un(e, n, t[n]);
|
|
6234
6236
|
if (ct)
|
|
6235
6237
|
for (var n of ct(t))
|
|
6236
|
-
|
|
6238
|
+
Tn.call(t, n) && un(e, n, t[n]);
|
|
6237
6239
|
return e;
|
|
6238
6240
|
}, Ve = (e, t) => Va(e, Wa(t)), Ka = (e, t) => {
|
|
6239
6241
|
var n = {};
|
|
6240
6242
|
for (var r in e)
|
|
6241
|
-
|
|
6243
|
+
kn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
6242
6244
|
if (e != null && ct)
|
|
6243
6245
|
for (var r of ct(e))
|
|
6244
|
-
t.indexOf(r) < 0 &&
|
|
6246
|
+
t.indexOf(r) < 0 && Tn.call(e, r) && (n[r] = e[r]);
|
|
6245
6247
|
return n;
|
|
6246
6248
|
};
|
|
6247
6249
|
const Za = {
|
|
@@ -6251,10 +6253,10 @@ const Za = {
|
|
|
6251
6253
|
withLineNumbers: !1,
|
|
6252
6254
|
trim: !0,
|
|
6253
6255
|
highlightLines: {},
|
|
6254
|
-
scrollAreaComponent:
|
|
6256
|
+
scrollAreaComponent: mn,
|
|
6255
6257
|
getPrismTheme: Ga
|
|
6256
6258
|
}, Pt = pt((e, t) => {
|
|
6257
|
-
const n =
|
|
6259
|
+
const n = ir("Prism", Za, e), {
|
|
6258
6260
|
className: r,
|
|
6259
6261
|
children: s,
|
|
6260
6262
|
language: o,
|
|
@@ -6291,9 +6293,9 @@ const Za = {
|
|
|
6291
6293
|
"getPrismTheme",
|
|
6292
6294
|
"variant"
|
|
6293
6295
|
]), q = h && typeof s == "string" ? s.trim() : s, ee = q.split(`
|
|
6294
|
-
`).length.toString().length, $ =
|
|
6296
|
+
`).length.toString().length, $ = lr(), H = kr(), N = v || $.colorScheme, { classes: ne, cx: L } = Ha({
|
|
6295
6297
|
colorScheme: N,
|
|
6296
|
-
native: f !==
|
|
6298
|
+
native: f !== mn,
|
|
6297
6299
|
maxLineSize: ee,
|
|
6298
6300
|
radius: _
|
|
6299
6301
|
}, { name: "Prism", classNames: c, styles: u, unstyled: x, variant: E });
|
|
@@ -6315,7 +6317,7 @@ const Za = {
|
|
|
6315
6317
|
"aria-label": H.copied ? m : g,
|
|
6316
6318
|
onClick: () => H.copy(q),
|
|
6317
6319
|
unstyled: x
|
|
6318
|
-
}, /* @__PURE__ */ F.createElement(
|
|
6320
|
+
}, /* @__PURE__ */ F.createElement(An, {
|
|
6319
6321
|
copied: H.copied
|
|
6320
6322
|
}))), /* @__PURE__ */ F.createElement(Ma, Ve(Fe({}, Fa), {
|
|
6321
6323
|
theme: S($, N),
|
|
@@ -6362,7 +6364,7 @@ const Za = {
|
|
|
6362
6364
|
}).filter(Boolean)))));
|
|
6363
6365
|
});
|
|
6364
6366
|
Pt.displayName = "@mantine/prism/Prism";
|
|
6365
|
-
var Xa =
|
|
6367
|
+
var Xa = fn((e, { radius: t }) => ({
|
|
6366
6368
|
tab: {
|
|
6367
6369
|
paddingLeft: e.spacing.sm,
|
|
6368
6370
|
paddingRight: e.spacing.sm,
|
|
@@ -6407,26 +6409,26 @@ var Xa = gn((e, { radius: t }) => ({
|
|
|
6407
6409
|
border: 0
|
|
6408
6410
|
}
|
|
6409
6411
|
}));
|
|
6410
|
-
const
|
|
6411
|
-
var Qa = Object.defineProperty, Ja = Object.defineProperties, es = Object.getOwnPropertyDescriptors, ut = Object.getOwnPropertySymbols,
|
|
6412
|
+
const jn = Xa;
|
|
6413
|
+
var Qa = Object.defineProperty, Ja = Object.defineProperties, es = Object.getOwnPropertyDescriptors, ut = Object.getOwnPropertySymbols, Cn = Object.prototype.hasOwnProperty, Rn = Object.prototype.propertyIsEnumerable, dn = (e, t, n) => t in e ? Qa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, On = (e, t) => {
|
|
6412
6414
|
for (var n in t || (t = {}))
|
|
6413
|
-
|
|
6415
|
+
Cn.call(t, n) && dn(e, n, t[n]);
|
|
6414
6416
|
if (ut)
|
|
6415
6417
|
for (var n of ut(t))
|
|
6416
|
-
|
|
6418
|
+
Rn.call(t, n) && dn(e, n, t[n]);
|
|
6417
6419
|
return e;
|
|
6418
6420
|
}, ts = (e, t) => Ja(e, es(t)), ns = (e, t) => {
|
|
6419
6421
|
var n = {};
|
|
6420
6422
|
for (var r in e)
|
|
6421
|
-
|
|
6423
|
+
Cn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
6422
6424
|
if (e != null && ut)
|
|
6423
6425
|
for (var r of ut(e))
|
|
6424
|
-
t.indexOf(r) < 0 &&
|
|
6426
|
+
t.indexOf(r) < 0 && Rn.call(e, r) && (n[r] = e[r]);
|
|
6425
6427
|
return n;
|
|
6426
6428
|
};
|
|
6427
6429
|
function rs(e) {
|
|
6428
|
-
const { classes: t } =
|
|
6429
|
-
return /* @__PURE__ */ F.createElement(bt, ts(
|
|
6430
|
+
const { classes: t } = jn({ radius: e.radius });
|
|
6431
|
+
return /* @__PURE__ */ F.createElement(bt, ts(On({}, e), {
|
|
6430
6432
|
variant: "outline",
|
|
6431
6433
|
classNames: { tab: t.tab },
|
|
6432
6434
|
translate: "no"
|
|
@@ -6462,8 +6464,8 @@ function as(e) {
|
|
|
6462
6464
|
"colorScheme",
|
|
6463
6465
|
"variant"
|
|
6464
6466
|
]);
|
|
6465
|
-
const { classes: x } =
|
|
6466
|
-
return /* @__PURE__ */ F.createElement(bt.Panel,
|
|
6467
|
+
const { classes: x } = jn({ radius: s });
|
|
6468
|
+
return /* @__PURE__ */ F.createElement(bt.Panel, On({}, h), /* @__PURE__ */ F.createElement(Pt, {
|
|
6467
6469
|
language: n,
|
|
6468
6470
|
classNames: { root: x.prism, code: x.code },
|
|
6469
6471
|
radius: s,
|
|
@@ -6570,7 +6572,7 @@ const Ts = Je("DataSourceList", ({
|
|
|
6570
6572
|
});
|
|
6571
6573
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
6572
6574
|
/* @__PURE__ */ a.jsxs(z, { pt: e.spacing, position: "apart", children: [
|
|
6573
|
-
/* @__PURE__ */ a.jsx(
|
|
6575
|
+
/* @__PURE__ */ a.jsx(gn, { children: t("global_sql_snippet.description") }),
|
|
6574
6576
|
/* @__PURE__ */ a.jsx(Ra, { onSuccess: s })
|
|
6575
6577
|
] }),
|
|
6576
6578
|
/* @__PURE__ */ a.jsxs(Q, { mt: e.spacing, sx: {
|
|
@@ -6606,7 +6608,7 @@ const Ts = Je("DataSourceList", ({
|
|
|
6606
6608
|
] })
|
|
6607
6609
|
] })
|
|
6608
6610
|
] });
|
|
6609
|
-
}), js = () => import("./package-
|
|
6611
|
+
}), js = () => import("./package-b352cf11.mjs").then(({
|
|
6610
6612
|
version: e
|
|
6611
6613
|
}) => (console.log(`[@devtable/dashboard] version: ${e}`), e));
|
|
6612
6614
|
export {
|