remoraid 2.26.4 → 2.28.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/core/index.cjs +90 -71
- package/dist/core/index.d.ts +30 -20
- package/dist/core/index.js +95 -71
- package/dist/jsonforms/index.cjs +145 -166
- package/dist/jsonforms/index.js +102 -118
- package/dist/modals/index.cjs +4 -4
- package/dist/modals/index.js +6 -6
- package/dist/server/index.cjs +5474 -0
- package/dist/server/index.d.ts +5 -3
- package/dist/server/index.js +5478 -0
- package/package.json +1 -1
package/dist/jsonforms/index.js
CHANGED
|
@@ -5439,7 +5439,7 @@ import {
|
|
|
5439
5439
|
useJsonForms,
|
|
5440
5440
|
withJsonFormsControlProps
|
|
5441
5441
|
} from "@jsonforms/react";
|
|
5442
|
-
import { Input, Paper as
|
|
5442
|
+
import { Input as Input2, Paper as Paper5, Select } from "@mantine/core";
|
|
5443
5443
|
|
|
5444
5444
|
// src/jsonforms/components/FormOptionsProvider/index.tsx
|
|
5445
5445
|
import React2, {
|
|
@@ -5583,13 +5583,14 @@ var useHydratedMantineColorScheme = () => {
|
|
|
5583
5583
|
// src/core/components/RemoraidProvider/ThemeProvider/index.tsx
|
|
5584
5584
|
var import_lodash2 = __toESM(require_lodash(), 1);
|
|
5585
5585
|
import { jsxDEV as jsxDEV4 } from "react/jsx-dev-runtime";
|
|
5586
|
+
var defaultTransitionDurations = {
|
|
5587
|
+
["short" /* Short */]: 200,
|
|
5588
|
+
["medium" /* Medium */]: 350,
|
|
5589
|
+
["long" /* Long */]: 500
|
|
5590
|
+
};
|
|
5586
5591
|
var createRemoraidTheme = (customTheme, dependencies) => {
|
|
5587
5592
|
const { mantineTheme, colorScheme } = dependencies ?? {};
|
|
5588
|
-
const transitionDurations = import_lodash2.merge(
|
|
5589
|
-
["short" /* Short */]: 200,
|
|
5590
|
-
["medium" /* Medium */]: 350,
|
|
5591
|
-
["long" /* Long */]: 500
|
|
5592
|
-
}, customTheme?.transitionDurations);
|
|
5593
|
+
const transitionDurations = import_lodash2.merge(defaultTransitionDurations, customTheme?.transitionDurations);
|
|
5593
5594
|
const transparentBackground = customTheme?.transparentBackground ?? (mantineTheme && colorScheme ? colorScheme === "dark" ? rgba(mantineTheme.colors.dark[8], 0.8) : rgba(mantineTheme.white, 0.8) : undefined);
|
|
5594
5595
|
let spacingPx;
|
|
5595
5596
|
if (mantineTheme && colorScheme) {
|
|
@@ -5644,30 +5645,6 @@ var createRemoraidTheme = (customTheme, dependencies) => {
|
|
|
5644
5645
|
size: 12,
|
|
5645
5646
|
stroke: 2.6
|
|
5646
5647
|
}
|
|
5647
|
-
},
|
|
5648
|
-
ScrollArea: {
|
|
5649
|
-
scrollbarSize: 8,
|
|
5650
|
-
scrollHideDelay: 20,
|
|
5651
|
-
type: "hover",
|
|
5652
|
-
styles: { thumb: { zIndex: 5 } }
|
|
5653
|
-
},
|
|
5654
|
-
HoverCard: {
|
|
5655
|
-
withArrow: true,
|
|
5656
|
-
transitionProps: {
|
|
5657
|
-
duration: transitionDurations.short
|
|
5658
|
-
}
|
|
5659
|
-
},
|
|
5660
|
-
Tooltip: {
|
|
5661
|
-
withArrow: true,
|
|
5662
|
-
transitionProps: {
|
|
5663
|
-
duration: transitionDurations.short
|
|
5664
|
-
}
|
|
5665
|
-
},
|
|
5666
|
-
Menu: {
|
|
5667
|
-
withArrow: true,
|
|
5668
|
-
transitionProps: {
|
|
5669
|
-
duration: transitionDurations.short
|
|
5670
|
-
}
|
|
5671
5648
|
}
|
|
5672
5649
|
}
|
|
5673
5650
|
};
|
|
@@ -5786,7 +5763,6 @@ function NavbarLink({
|
|
|
5786
5763
|
href,
|
|
5787
5764
|
indicator
|
|
5788
5765
|
}) {
|
|
5789
|
-
const theme = useRemoraidTheme();
|
|
5790
5766
|
const [isHoveringRoleIndicator, setIsHoveringRoleIndicator] = useState6(false);
|
|
5791
5767
|
const iconProps = {
|
|
5792
5768
|
size: iconSize,
|
|
@@ -5795,7 +5771,6 @@ function NavbarLink({
|
|
|
5795
5771
|
const Icon2 = icon ?? IconLink;
|
|
5796
5772
|
if (!href) {
|
|
5797
5773
|
return /* @__PURE__ */ jsxDEV10(Tooltip, {
|
|
5798
|
-
...theme.componentsProps.Tooltip,
|
|
5799
5774
|
label,
|
|
5800
5775
|
position: "right",
|
|
5801
5776
|
children: /* @__PURE__ */ jsxDEV10(UnstyledButton, {
|
|
@@ -5823,7 +5798,6 @@ function NavbarLink({
|
|
|
5823
5798
|
}, undefined, false, undefined, this)
|
|
5824
5799
|
}, undefined, false, undefined, this);
|
|
5825
5800
|
return /* @__PURE__ */ jsxDEV10(Tooltip, {
|
|
5826
|
-
...theme.componentsProps.Tooltip,
|
|
5827
5801
|
label,
|
|
5828
5802
|
position: "right",
|
|
5829
5803
|
children: indicator === undefined ? button : /* @__PURE__ */ jsxDEV10(Indicator, {
|
|
@@ -6079,7 +6053,6 @@ function Element2({
|
|
|
6079
6053
|
}
|
|
6080
6054
|
|
|
6081
6055
|
// src/core/components/FrameLayout/index.tsx
|
|
6082
|
-
var import_lodash5 = __toESM(require_lodash(), 1);
|
|
6083
6056
|
import { jsxDEV as jsxDEV14 } from "react/jsx-dev-runtime";
|
|
6084
6057
|
var layoutContext = createContext5(null);
|
|
6085
6058
|
var useFrameLayout = () => {
|
|
@@ -6092,7 +6065,6 @@ function FrameLayout({
|
|
|
6092
6065
|
componentsProps,
|
|
6093
6066
|
children
|
|
6094
6067
|
}) {
|
|
6095
|
-
const theme = useRemoraidTheme();
|
|
6096
6068
|
const { layouts, setLayouts } = useLayouts();
|
|
6097
6069
|
const layout = layouts[layoutId];
|
|
6098
6070
|
const defaultSections = useMemo3(() => ({
|
|
@@ -6194,7 +6166,7 @@ function FrameLayout({
|
|
|
6194
6166
|
}, undefined, false, undefined, this),
|
|
6195
6167
|
includeScrollArea ? /* @__PURE__ */ jsxDEV14(ScrollArea, {
|
|
6196
6168
|
flex: 1,
|
|
6197
|
-
...
|
|
6169
|
+
...componentsProps?.ScrollArea,
|
|
6198
6170
|
children: contentSection
|
|
6199
6171
|
}, undefined, false, undefined, this) : contentSection,
|
|
6200
6172
|
/* @__PURE__ */ jsxDEV14(Stack2, {
|
|
@@ -6224,7 +6196,7 @@ var FrameLayout_default = Object.assign(FrameLayout, {
|
|
|
6224
6196
|
});
|
|
6225
6197
|
|
|
6226
6198
|
// src/core/components/AppShell/index.tsx
|
|
6227
|
-
var
|
|
6199
|
+
var import_lodash5 = __toESM(require_lodash(), 1);
|
|
6228
6200
|
import { jsxDEV as jsxDEV15 } from "react/jsx-dev-runtime";
|
|
6229
6201
|
var remoraidAppShellLayoutId = "remoraid-app-shell";
|
|
6230
6202
|
var defaultAppShellNavbarPositions = { ["minimal" /* Minimal */]: "left" /* Left */ };
|
|
@@ -6277,13 +6249,13 @@ function AppShell({
|
|
|
6277
6249
|
navbarPosition !== null && /* @__PURE__ */ jsxDEV15(FrameLayout_default.Element, {
|
|
6278
6250
|
section: navbarPosition,
|
|
6279
6251
|
includeContainer: false,
|
|
6280
|
-
...
|
|
6252
|
+
...import_lodash5.merge(navbarLayoutElementProps, componentsProps?.navbarLayoutElement),
|
|
6281
6253
|
children: navbar
|
|
6282
6254
|
}, undefined, false, undefined, this),
|
|
6283
6255
|
children,
|
|
6284
6256
|
footerPosition !== null && /* @__PURE__ */ jsxDEV15(FrameLayout_default.Element, {
|
|
6285
6257
|
section: footerPosition,
|
|
6286
|
-
...
|
|
6258
|
+
...import_lodash5.merge(footerLayoutElementProps, componentsProps?.footerLayoutElement),
|
|
6287
6259
|
children: footer
|
|
6288
6260
|
}, undefined, false, undefined, this)
|
|
6289
6261
|
]
|
|
@@ -6329,11 +6301,10 @@ import {
|
|
|
6329
6301
|
Flex as Flex2,
|
|
6330
6302
|
ScrollArea as ScrollArea2
|
|
6331
6303
|
} from "@mantine/core";
|
|
6332
|
-
var import_lodash7 = __toESM(require_lodash(), 1);
|
|
6333
6304
|
import { jsxDEV as jsxDEV17 } from "react/jsx-dev-runtime";
|
|
6334
6305
|
|
|
6335
6306
|
// src/core/components/WidgetSelectionHeader/index.tsx
|
|
6336
|
-
var
|
|
6307
|
+
var import_lodash8 = __toESM(require_lodash(), 1);
|
|
6337
6308
|
|
|
6338
6309
|
// src/core/components/Pinnable/index.tsx
|
|
6339
6310
|
import {
|
|
@@ -6351,7 +6322,7 @@ import {
|
|
|
6351
6322
|
Transition
|
|
6352
6323
|
} from "@mantine/core";
|
|
6353
6324
|
import { IconClick } from "@tabler/icons-react";
|
|
6354
|
-
var
|
|
6325
|
+
var import_lodash6 = __toESM(require_lodash(), 1);
|
|
6355
6326
|
import { jsxDEV as jsxDEV18 } from "react/jsx-dev-runtime";
|
|
6356
6327
|
function ControlButton({
|
|
6357
6328
|
icon: Icon3 = IconClick,
|
|
@@ -6372,7 +6343,9 @@ function ControlButton({
|
|
|
6372
6343
|
timingFunction: "ease",
|
|
6373
6344
|
...componentsProps?.transition,
|
|
6374
6345
|
children: (transitionStyle) => /* @__PURE__ */ jsxDEV18(Tooltip2, {
|
|
6375
|
-
|
|
6346
|
+
label: tooltip,
|
|
6347
|
+
disabled: !Boolean(tooltip),
|
|
6348
|
+
...componentsProps?.tooltip,
|
|
6376
6349
|
children: /* @__PURE__ */ jsxDEV18(ActionIcon, {
|
|
6377
6350
|
"data-control-button": true,
|
|
6378
6351
|
size,
|
|
@@ -6382,10 +6355,10 @@ function ControlButton({
|
|
|
6382
6355
|
...componentsProps?.button,
|
|
6383
6356
|
style: {
|
|
6384
6357
|
order,
|
|
6385
|
-
...
|
|
6358
|
+
...import_lodash6.merge(transitionStyle, componentsProps?.button?.style)
|
|
6386
6359
|
},
|
|
6387
6360
|
children: /* @__PURE__ */ jsxDEV18(Icon3, {
|
|
6388
|
-
...
|
|
6361
|
+
...import_lodash6.merge({}, theme.componentsProps.icons[iconSize], componentsProps?.icon)
|
|
6389
6362
|
}, undefined, false, undefined, this)
|
|
6390
6363
|
}, undefined, false, undefined, this)
|
|
6391
6364
|
}, undefined, false, undefined, this)
|
|
@@ -6400,7 +6373,7 @@ import {
|
|
|
6400
6373
|
Transition as Transition2
|
|
6401
6374
|
} from "@mantine/core";
|
|
6402
6375
|
import { IconGripHorizontal } from "@tabler/icons-react";
|
|
6403
|
-
var
|
|
6376
|
+
var import_lodash7 = __toESM(require_lodash(), 1);
|
|
6404
6377
|
import { jsxDEV as jsxDEV19 } from "react/jsx-dev-runtime";
|
|
6405
6378
|
function Controls({
|
|
6406
6379
|
groupRef,
|
|
@@ -6479,7 +6452,7 @@ function Controls({
|
|
|
6479
6452
|
style: {
|
|
6480
6453
|
right: pos.x,
|
|
6481
6454
|
top: pos.y,
|
|
6482
|
-
...
|
|
6455
|
+
...import_lodash7.merge(transitionStyle, componentsProps?.container?.style)
|
|
6483
6456
|
},
|
|
6484
6457
|
className: clsx_default("remoraid-controls", componentsProps?.container?.className),
|
|
6485
6458
|
children: /* @__PURE__ */ jsxDEV19(Group3, {
|
|
@@ -6490,7 +6463,7 @@ function Controls({
|
|
|
6490
6463
|
className: clsx_default("remoraid-controls-group", componentsProps?.group?.className),
|
|
6491
6464
|
children: [
|
|
6492
6465
|
/* @__PURE__ */ jsxDEV19(IconGripHorizontal, {
|
|
6493
|
-
...
|
|
6466
|
+
...import_lodash7.merge({}, theme.componentsProps.icons[iconSize], { order: -100, color: "var(--mantine-color-default-border)" }, componentsProps?.gripIcon)
|
|
6494
6467
|
}, undefined, false, undefined, this),
|
|
6495
6468
|
children,
|
|
6496
6469
|
additionalButtons && additionalButtons.map((button, i) => {
|
|
@@ -6590,7 +6563,6 @@ import {
|
|
|
6590
6563
|
Tooltip as Tooltip3,
|
|
6591
6564
|
Transition as Transition3
|
|
6592
6565
|
} from "@mantine/core";
|
|
6593
|
-
var import_lodash11 = __toESM(require_lodash(), 1);
|
|
6594
6566
|
import { jsxDEV as jsxDEV22 } from "react/jsx-dev-runtime";
|
|
6595
6567
|
function BadgeMinimal({
|
|
6596
6568
|
label,
|
|
@@ -6606,7 +6578,9 @@ function BadgeMinimal({
|
|
|
6606
6578
|
timingFunction: "ease",
|
|
6607
6579
|
...componentsProps?.transition,
|
|
6608
6580
|
children: (transitionStyle) => /* @__PURE__ */ jsxDEV22(Tooltip3, {
|
|
6609
|
-
|
|
6581
|
+
label: tooltip,
|
|
6582
|
+
disabled: !Boolean(tooltip),
|
|
6583
|
+
...componentsProps?.tooltip,
|
|
6610
6584
|
children: /* @__PURE__ */ jsxDEV22(Badge, {
|
|
6611
6585
|
variant: "default",
|
|
6612
6586
|
...componentsProps?.badge,
|
|
@@ -6622,7 +6596,7 @@ function BadgeMinimal({
|
|
|
6622
6596
|
}
|
|
6623
6597
|
|
|
6624
6598
|
// src/core/components/BadgeGroup/index.tsx
|
|
6625
|
-
var
|
|
6599
|
+
var import_lodash9 = __toESM(require_lodash(), 1);
|
|
6626
6600
|
import { jsxDEV as jsxDEV23, Fragment as Fragment2 } from "react/jsx-dev-runtime";
|
|
6627
6601
|
import { createElement } from "react";
|
|
6628
6602
|
function BadgeGroup({
|
|
@@ -6661,7 +6635,7 @@ function BadgeGroup({
|
|
|
6661
6635
|
timingFunction: "ease",
|
|
6662
6636
|
...componentsProps?.cumulativeBadgeTransition,
|
|
6663
6637
|
children: (transitionStyle) => /* @__PURE__ */ jsxDEV23(HoverCard, {
|
|
6664
|
-
...
|
|
6638
|
+
...componentsProps?.HoverCard,
|
|
6665
6639
|
children: [
|
|
6666
6640
|
/* @__PURE__ */ jsxDEV23(HoverCard.Target, {
|
|
6667
6641
|
children: /* @__PURE__ */ jsxDEV23(Badge2, {
|
|
@@ -6670,7 +6644,7 @@ function BadgeGroup({
|
|
|
6670
6644
|
...componentsProps?.cumulativeBadge,
|
|
6671
6645
|
style: {
|
|
6672
6646
|
cursor: "pointer",
|
|
6673
|
-
...
|
|
6647
|
+
...import_lodash9.merge(transitionStyle, componentsProps?.cumulativeBadge?.style)
|
|
6674
6648
|
},
|
|
6675
6649
|
children: [
|
|
6676
6650
|
numVisibleBadges,
|
|
@@ -6694,7 +6668,7 @@ function BadgeGroup({
|
|
|
6694
6668
|
}
|
|
6695
6669
|
// src/core/components/AlertMinimal/index.tsx
|
|
6696
6670
|
import { Alert, Transition as Transition5 } from "@mantine/core";
|
|
6697
|
-
var
|
|
6671
|
+
var import_lodash10 = __toESM(require_lodash(), 1);
|
|
6698
6672
|
import { jsxDEV as jsxDEV24 } from "react/jsx-dev-runtime";
|
|
6699
6673
|
function AlertMinimal({
|
|
6700
6674
|
category,
|
|
@@ -6711,7 +6685,7 @@ function AlertMinimal({
|
|
|
6711
6685
|
icon: Icon3,
|
|
6712
6686
|
iconSize = "medium" /* Medium */,
|
|
6713
6687
|
componentsProps
|
|
6714
|
-
} =
|
|
6688
|
+
} = import_lodash10.merge({}, theme.componentsProps.alerts[category], props);
|
|
6715
6689
|
return /* @__PURE__ */ jsxDEV24(Transition5, {
|
|
6716
6690
|
mounted,
|
|
6717
6691
|
transition: "fade",
|
|
@@ -6725,9 +6699,9 @@ function AlertMinimal({
|
|
|
6725
6699
|
onClose,
|
|
6726
6700
|
withCloseButton: onClose !== undefined,
|
|
6727
6701
|
icon: Icon3 ? /* @__PURE__ */ jsxDEV24(Icon3, {
|
|
6728
|
-
...
|
|
6702
|
+
...import_lodash10.merge({}, theme.componentsProps.icons[iconSize], componentsProps?.icon)
|
|
6729
6703
|
}, undefined, false, undefined, this) : undefined,
|
|
6730
|
-
style:
|
|
6704
|
+
style: import_lodash10.merge(transitionStyle, componentsProps?.alert?.style),
|
|
6731
6705
|
children: [
|
|
6732
6706
|
text,
|
|
6733
6707
|
children
|
|
@@ -6743,7 +6717,7 @@ import {
|
|
|
6743
6717
|
Transition as Transition6
|
|
6744
6718
|
} from "@mantine/core";
|
|
6745
6719
|
import { IconClick as IconClick2 } from "@tabler/icons-react";
|
|
6746
|
-
var
|
|
6720
|
+
var import_lodash11 = __toESM(require_lodash(), 1);
|
|
6747
6721
|
import { jsxDEV as jsxDEV25, Fragment as Fragment3 } from "react/jsx-dev-runtime";
|
|
6748
6722
|
function RemoraidButton({
|
|
6749
6723
|
label,
|
|
@@ -6767,7 +6741,7 @@ function RemoraidButton({
|
|
|
6767
6741
|
const Icon4 = iconProp ?? IconClick2;
|
|
6768
6742
|
const theme = useRemoraidTheme();
|
|
6769
6743
|
const iconElement = /* @__PURE__ */ jsxDEV25(Icon4, {
|
|
6770
|
-
...
|
|
6744
|
+
...import_lodash11.merge({}, theme.componentsProps.icons[iconSize], componentsProps?.icon)
|
|
6771
6745
|
}, undefined, false, undefined, this);
|
|
6772
6746
|
return /* @__PURE__ */ jsxDEV25(Transition6, {
|
|
6773
6747
|
mounted,
|
|
@@ -6778,7 +6752,8 @@ function RemoraidButton({
|
|
|
6778
6752
|
children: (transitionStyle) => /* @__PURE__ */ jsxDEV25(Fragment3, {
|
|
6779
6753
|
children: [
|
|
6780
6754
|
/* @__PURE__ */ jsxDEV25(Tooltip4, {
|
|
6781
|
-
|
|
6755
|
+
label,
|
|
6756
|
+
...componentsProps?.tooltip,
|
|
6782
6757
|
children: /* @__PURE__ */ jsxDEV25(ActionIcon2, {
|
|
6783
6758
|
"aria-label": label,
|
|
6784
6759
|
variant,
|
|
@@ -6827,7 +6802,7 @@ import {
|
|
|
6827
6802
|
useState as useState10
|
|
6828
6803
|
} from "react";
|
|
6829
6804
|
import { IconX } from "@tabler/icons-react";
|
|
6830
|
-
var
|
|
6805
|
+
var import_lodash12 = __toESM(require_lodash(), 1);
|
|
6831
6806
|
import { jsxDEV as jsxDEV26 } from "react/jsx-dev-runtime";
|
|
6832
6807
|
function WidgetWrapper({
|
|
6833
6808
|
config,
|
|
@@ -6898,7 +6873,7 @@ function WidgetWrapper({
|
|
|
6898
6873
|
}
|
|
6899
6874
|
componentsProps?.container?.onMouseLeave?.(e);
|
|
6900
6875
|
},
|
|
6901
|
-
style:
|
|
6876
|
+
style: import_lodash12.merge(transitionStyle, { flexDirection: "column" }, componentsProps?.container?.style),
|
|
6902
6877
|
className: clsx_default("remoraid-segment", componentsProps?.container?.className),
|
|
6903
6878
|
id: config.widgetId,
|
|
6904
6879
|
children: [
|
|
@@ -6991,7 +6966,6 @@ import {
|
|
|
6991
6966
|
Box as Box5,
|
|
6992
6967
|
ScrollArea as ScrollArea3
|
|
6993
6968
|
} from "@mantine/core";
|
|
6994
|
-
var import_lodash16 = __toESM(require_lodash(), 1);
|
|
6995
6969
|
import { jsxDEV as jsxDEV27 } from "react/jsx-dev-runtime";
|
|
6996
6970
|
import { createElement as createElement2 } from "react";
|
|
6997
6971
|
function Widget({
|
|
@@ -7011,7 +6985,6 @@ function Widget({
|
|
|
7011
6985
|
const buttons = buttonsProp?.map((button) => asElementOrPropsOfType(RemoraidButton, button, "Check the 'buttons' property of this widget."));
|
|
7012
6986
|
const alerts = alertsProp?.map((alert) => asElementOrPropsOfType(AlertMinimal, alert, "Check the 'alerts' property of this widget."));
|
|
7013
6987
|
const badges = badgesProp?.map((badge) => asElementOrPropsOfType(BadgeMinimal, badge, "Check the 'badges' property of this widget."));
|
|
7014
|
-
const theme = useRemoraidTheme();
|
|
7015
6988
|
const badgesGap = (typeof gaps === "object" ? gaps.badges : gaps) ?? "xs";
|
|
7016
6989
|
const buttonsGap = (typeof gaps === "object" ? gaps.buttons : gaps) ?? "xs";
|
|
7017
6990
|
const alertsGap = (typeof gaps === "object" ? gaps.alerts : gaps) ?? "xs";
|
|
@@ -7090,7 +7063,8 @@ function Widget({
|
|
|
7090
7063
|
})
|
|
7091
7064
|
}, undefined, false, undefined, this),
|
|
7092
7065
|
/* @__PURE__ */ jsxDEV27(ScrollArea3.Autosize, {
|
|
7093
|
-
|
|
7066
|
+
flex: 1,
|
|
7067
|
+
...componentsProps?.childrenContainer,
|
|
7094
7068
|
children: loading ? /* @__PURE__ */ jsxDEV27(Center, {
|
|
7095
7069
|
children: /* @__PURE__ */ jsxDEV27(Loader, {
|
|
7096
7070
|
...componentsProps?.loader
|
|
@@ -7259,15 +7233,25 @@ var SettingsTable_default = Object.assign(SettingsTable, {
|
|
|
7259
7233
|
Row
|
|
7260
7234
|
});
|
|
7261
7235
|
// src/core/components/NavbarSettingsWidget/index.tsx
|
|
7262
|
-
var
|
|
7236
|
+
var import_lodash13 = __toESM(require_lodash(), 1);
|
|
7263
7237
|
import { Chip as Chip3, Group as Group7 } from "@mantine/core";
|
|
7264
7238
|
import { IconLink as IconLink2 } from "@tabler/icons-react";
|
|
7265
7239
|
import { jsxDEV as jsxDEV34 } from "react/jsx-dev-runtime";
|
|
7266
7240
|
// src/core/components/ContextClusterProvider/index.tsx
|
|
7267
7241
|
import React9 from "react";
|
|
7268
7242
|
import { jsxDEV as jsxDEV35 } from "react/jsx-dev-runtime";
|
|
7243
|
+
// src/core/components/InputWrapperScrollArea/index.tsx
|
|
7244
|
+
import {
|
|
7245
|
+
Box as Box6,
|
|
7246
|
+
Input,
|
|
7247
|
+
Paper as Paper4,
|
|
7248
|
+
ScrollArea as ScrollArea4
|
|
7249
|
+
} from "@mantine/core";
|
|
7250
|
+
import { useState as useState11 } from "react";
|
|
7251
|
+
import { useRemoraidTheme as useRemoraidTheme2 } from "remoraid/core";
|
|
7252
|
+
import { jsxDEV as jsxDEV36 } from "react/jsx-dev-runtime";
|
|
7269
7253
|
// src/jsonforms/renderers/AnyOfControl.tsx
|
|
7270
|
-
import { jsxDEV as
|
|
7254
|
+
import { jsxDEV as jsxDEV37, Fragment as Fragment4 } from "react/jsx-dev-runtime";
|
|
7271
7255
|
function PlainAnyOfControl(props) {
|
|
7272
7256
|
const { data, schema, label, required, handleChange, path } = props;
|
|
7273
7257
|
const theme = useRemoraidTheme();
|
|
@@ -7301,19 +7285,19 @@ function PlainAnyOfControl(props) {
|
|
|
7301
7285
|
type = "boolean";
|
|
7302
7286
|
}
|
|
7303
7287
|
const typeProperties = schema.anyOf ? schema.anyOf.find((a) => a.type === type) || {} : {};
|
|
7304
|
-
return /* @__PURE__ */
|
|
7305
|
-
children: /* @__PURE__ */
|
|
7288
|
+
return /* @__PURE__ */ jsxDEV37(Fragment4, {
|
|
7289
|
+
children: /* @__PURE__ */ jsxDEV37(Input2.Wrapper, {
|
|
7306
7290
|
label,
|
|
7307
7291
|
description: formOptions.withDescriptions ? schema.description ?? null : null,
|
|
7308
7292
|
withAsterisk: required,
|
|
7309
|
-
children: /* @__PURE__ */
|
|
7293
|
+
children: /* @__PURE__ */ jsxDEV37(Paper5, {
|
|
7310
7294
|
withBorder: true,
|
|
7311
7295
|
shadow: "0",
|
|
7312
7296
|
bg: "var(--remoraid-transparent-background)",
|
|
7313
7297
|
p: formOptions.gutter,
|
|
7314
7298
|
mt: formOptions.withDescriptions && schema.description && schema.description.length > 0 ? 4 : 0,
|
|
7315
7299
|
children: [
|
|
7316
|
-
/* @__PURE__ */
|
|
7300
|
+
/* @__PURE__ */ jsxDEV37(Select, {
|
|
7317
7301
|
label: `Value Type`,
|
|
7318
7302
|
data: schema.anyOf ? schema.anyOf.map((a) => String(a.type)) : [],
|
|
7319
7303
|
value: type,
|
|
@@ -7326,7 +7310,7 @@ function PlainAnyOfControl(props) {
|
|
|
7326
7310
|
variant: "default",
|
|
7327
7311
|
mb: type && type !== "null" ? formOptions.gutter : undefined
|
|
7328
7312
|
}, undefined, false, undefined, this),
|
|
7329
|
-
type && type !== "null" && /* @__PURE__ */
|
|
7313
|
+
type && type !== "null" && /* @__PURE__ */ jsxDEV37(JsonForms, {
|
|
7330
7314
|
schema: {
|
|
7331
7315
|
...typeProperties,
|
|
7332
7316
|
$schema: undefined
|
|
@@ -7353,18 +7337,18 @@ import {
|
|
|
7353
7337
|
useJsonForms as useJsonForms2,
|
|
7354
7338
|
withJsonFormsControlProps as withJsonFormsControlProps2
|
|
7355
7339
|
} from "@jsonforms/react";
|
|
7356
|
-
import { Box as
|
|
7340
|
+
import { Box as Box7, Button as Button2, Flex as Flex4, Input as Input3, Paper as Paper6, Stack as Stack6 } from "@mantine/core";
|
|
7357
7341
|
import { IconPlus, IconTrash } from "@tabler/icons-react";
|
|
7358
|
-
var
|
|
7342
|
+
var import_lodash14 = __toESM(require_lodash(), 1);
|
|
7359
7343
|
import {
|
|
7360
7344
|
AlertCategory as AlertCategory3,
|
|
7361
7345
|
AlertMinimal as AlertMinimal2,
|
|
7362
7346
|
RemoraidButton as RemoraidButton2,
|
|
7363
|
-
useRemoraidTheme as
|
|
7347
|
+
useRemoraidTheme as useRemoraidTheme3
|
|
7364
7348
|
} from "remoraid/core";
|
|
7365
|
-
import { jsxDEV as
|
|
7349
|
+
import { jsxDEV as jsxDEV38, Fragment as Fragment5 } from "react/jsx-dev-runtime";
|
|
7366
7350
|
function PlainArrayControl(props) {
|
|
7367
|
-
const theme =
|
|
7351
|
+
const theme = useRemoraidTheme3();
|
|
7368
7352
|
const { label, schema, data, handleChange, path, required } = props;
|
|
7369
7353
|
const { formOptions } = useFormOptions();
|
|
7370
7354
|
const { renderers, cells } = useJsonForms2();
|
|
@@ -7381,45 +7365,45 @@ function PlainArrayControl(props) {
|
|
|
7381
7365
|
required: ["item"]
|
|
7382
7366
|
};
|
|
7383
7367
|
} else {
|
|
7384
|
-
return /* @__PURE__ */
|
|
7368
|
+
return /* @__PURE__ */ jsxDEV38(AlertMinimal2, {
|
|
7385
7369
|
category: AlertCategory3.Negative,
|
|
7386
7370
|
title: "Renderer missing",
|
|
7387
7371
|
text: `Could not find applicable renderer for property '${label}'.`
|
|
7388
7372
|
}, undefined, false, undefined, this);
|
|
7389
7373
|
}
|
|
7390
|
-
return /* @__PURE__ */
|
|
7391
|
-
children: /* @__PURE__ */
|
|
7374
|
+
return /* @__PURE__ */ jsxDEV38(Fragment5, {
|
|
7375
|
+
children: /* @__PURE__ */ jsxDEV38(Input3.Wrapper, {
|
|
7392
7376
|
label,
|
|
7393
7377
|
description: formOptions.withDescriptions ? schema.description : undefined,
|
|
7394
7378
|
withAsterisk: required,
|
|
7395
|
-
children: /* @__PURE__ */
|
|
7379
|
+
children: /* @__PURE__ */ jsxDEV38(Paper6, {
|
|
7396
7380
|
withBorder: Array.isArray(data) && data.length > 0,
|
|
7397
7381
|
shadow: "0",
|
|
7398
7382
|
bg: "var(--remoraid-transparent-background)",
|
|
7399
7383
|
p: Array.isArray(data) && data.length > 0 ? formOptions.gutter : 0,
|
|
7400
7384
|
mt: formOptions.withDescriptions && schema.description && schema.description.length > 0 ? 4 : 0,
|
|
7401
|
-
children: /* @__PURE__ */
|
|
7385
|
+
children: /* @__PURE__ */ jsxDEV38(Stack6, {
|
|
7402
7386
|
align: "stretch",
|
|
7403
7387
|
justify: "flex-start",
|
|
7404
7388
|
gap: formOptions.gutter,
|
|
7405
7389
|
children: [
|
|
7406
7390
|
Array.isArray(data) ? data.map((item, i) => {
|
|
7407
|
-
return /* @__PURE__ */
|
|
7391
|
+
return /* @__PURE__ */ jsxDEV38(Flex4, {
|
|
7408
7392
|
gap: "xs",
|
|
7409
7393
|
justify: "flex-start",
|
|
7410
7394
|
align: "center",
|
|
7411
7395
|
direction: "row",
|
|
7412
7396
|
wrap: "nowrap",
|
|
7413
7397
|
children: [
|
|
7414
|
-
/* @__PURE__ */
|
|
7398
|
+
/* @__PURE__ */ jsxDEV38(Box7, {
|
|
7415
7399
|
flex: 1,
|
|
7416
|
-
children: /* @__PURE__ */
|
|
7400
|
+
children: /* @__PURE__ */ jsxDEV38(JsonForms2, {
|
|
7417
7401
|
schema: schemaItems,
|
|
7418
7402
|
data: { item },
|
|
7419
7403
|
renderers: renderers ?? [],
|
|
7420
7404
|
cells: cells ?? [],
|
|
7421
7405
|
onChange: ({ data: newData }) => {
|
|
7422
|
-
if (
|
|
7406
|
+
if (import_lodash14.isEqual(data[i], newData.item)) {
|
|
7423
7407
|
return;
|
|
7424
7408
|
}
|
|
7425
7409
|
const dataCopy = [...data];
|
|
@@ -7429,7 +7413,7 @@ function PlainArrayControl(props) {
|
|
|
7429
7413
|
validationMode: "NoValidation"
|
|
7430
7414
|
}, undefined, false, undefined, this)
|
|
7431
7415
|
}, undefined, false, undefined, this),
|
|
7432
|
-
/* @__PURE__ */
|
|
7416
|
+
/* @__PURE__ */ jsxDEV38(RemoraidButton2, {
|
|
7433
7417
|
responsive: false,
|
|
7434
7418
|
collapsed: true,
|
|
7435
7419
|
label: "Delete item",
|
|
@@ -7441,10 +7425,10 @@ function PlainArrayControl(props) {
|
|
|
7441
7425
|
}, undefined, false, undefined, this)
|
|
7442
7426
|
]
|
|
7443
7427
|
}, i, true, undefined, this);
|
|
7444
|
-
}) : /* @__PURE__ */
|
|
7445
|
-
/* @__PURE__ */
|
|
7428
|
+
}) : /* @__PURE__ */ jsxDEV38(Fragment5, {}, undefined, false, undefined, this),
|
|
7429
|
+
/* @__PURE__ */ jsxDEV38(Button2, {
|
|
7446
7430
|
variant: "default",
|
|
7447
|
-
leftSection: /* @__PURE__ */
|
|
7431
|
+
leftSection: /* @__PURE__ */ jsxDEV38(IconPlus, {
|
|
7448
7432
|
...theme.componentsProps.icons.medium
|
|
7449
7433
|
}, undefined, false, undefined, this),
|
|
7450
7434
|
onClick: () => {
|
|
@@ -7474,7 +7458,7 @@ var ArrayControl_default = ArrayControl;
|
|
|
7474
7458
|
// src/jsonforms/renderers/CheckboxControl.tsx
|
|
7475
7459
|
import { withJsonFormsControlProps as withJsonFormsControlProps3 } from "@jsonforms/react";
|
|
7476
7460
|
import { Checkbox } from "@mantine/core";
|
|
7477
|
-
import { jsxDEV as
|
|
7461
|
+
import { jsxDEV as jsxDEV39, Fragment as Fragment6 } from "react/jsx-dev-runtime";
|
|
7478
7462
|
function PlainCheckboxControl({
|
|
7479
7463
|
data,
|
|
7480
7464
|
handleChange,
|
|
@@ -7484,8 +7468,8 @@ function PlainCheckboxControl({
|
|
|
7484
7468
|
schema
|
|
7485
7469
|
}) {
|
|
7486
7470
|
const { formOptions } = useFormOptions();
|
|
7487
|
-
return /* @__PURE__ */
|
|
7488
|
-
children: /* @__PURE__ */
|
|
7471
|
+
return /* @__PURE__ */ jsxDEV39(Fragment6, {
|
|
7472
|
+
children: /* @__PURE__ */ jsxDEV39(Checkbox, {
|
|
7489
7473
|
label,
|
|
7490
7474
|
py: formOptions.gutter,
|
|
7491
7475
|
labelPosition: "left",
|
|
@@ -7504,7 +7488,7 @@ var CheckboxControl_default = CheckboxControl;
|
|
|
7504
7488
|
// src/jsonforms/renderers/NumberControl.tsx
|
|
7505
7489
|
import { withJsonFormsControlProps as withJsonFormsControlProps4 } from "@jsonforms/react";
|
|
7506
7490
|
import { NumberInput } from "@mantine/core";
|
|
7507
|
-
import { jsxDEV as
|
|
7491
|
+
import { jsxDEV as jsxDEV40, Fragment as Fragment7 } from "react/jsx-dev-runtime";
|
|
7508
7492
|
function PlainNumberControl({
|
|
7509
7493
|
data,
|
|
7510
7494
|
handleChange,
|
|
@@ -7516,8 +7500,8 @@ function PlainNumberControl({
|
|
|
7516
7500
|
const {
|
|
7517
7501
|
formOptions: { withDescriptions }
|
|
7518
7502
|
} = useFormOptions();
|
|
7519
|
-
return /* @__PURE__ */
|
|
7520
|
-
children: /* @__PURE__ */
|
|
7503
|
+
return /* @__PURE__ */ jsxDEV40(Fragment7, {
|
|
7504
|
+
children: /* @__PURE__ */ jsxDEV40(NumberInput, {
|
|
7521
7505
|
label,
|
|
7522
7506
|
variant: "default",
|
|
7523
7507
|
value: data,
|
|
@@ -7541,26 +7525,26 @@ import {
|
|
|
7541
7525
|
useJsonForms as useJsonForms3,
|
|
7542
7526
|
withJsonFormsControlProps as withJsonFormsControlProps5
|
|
7543
7527
|
} from "@jsonforms/react";
|
|
7544
|
-
import { Input as
|
|
7545
|
-
import { jsxDEV as
|
|
7528
|
+
import { Input as Input4, Paper as Paper7 } from "@mantine/core";
|
|
7529
|
+
import { jsxDEV as jsxDEV41, Fragment as Fragment8 } from "react/jsx-dev-runtime";
|
|
7546
7530
|
function PlainObjectControl(props) {
|
|
7547
7531
|
const { label, schema, data, handleChange, path, required } = props;
|
|
7548
7532
|
const { formOptions } = useFormOptions();
|
|
7549
7533
|
const { renderers, cells } = useJsonForms3();
|
|
7550
7534
|
const theme = useRemoraidTheme();
|
|
7551
7535
|
const mt = formOptions.withDescriptions && schema.description && schema.description.length > 0 ? 4 : 0;
|
|
7552
|
-
return /* @__PURE__ */
|
|
7553
|
-
children: /* @__PURE__ */
|
|
7536
|
+
return /* @__PURE__ */ jsxDEV41(Fragment8, {
|
|
7537
|
+
children: /* @__PURE__ */ jsxDEV41(Input4.Wrapper, {
|
|
7554
7538
|
label: label !== "remoraid-array-item" ? label : null,
|
|
7555
7539
|
description: formOptions.withDescriptions ? schema.description : undefined,
|
|
7556
7540
|
withAsterisk: required,
|
|
7557
|
-
children: schema.properties && Object.keys(schema.properties).length > 0 ? /* @__PURE__ */
|
|
7541
|
+
children: schema.properties && Object.keys(schema.properties).length > 0 ? /* @__PURE__ */ jsxDEV41(Paper7, {
|
|
7558
7542
|
withBorder: true,
|
|
7559
7543
|
bg: "var(--remoraid-transparent-background)",
|
|
7560
7544
|
shadow: "0",
|
|
7561
7545
|
p: formOptions.gutter,
|
|
7562
7546
|
mt,
|
|
7563
|
-
children: /* @__PURE__ */
|
|
7547
|
+
children: /* @__PURE__ */ jsxDEV41(JsonForms3, {
|
|
7564
7548
|
schema: {
|
|
7565
7549
|
...schema,
|
|
7566
7550
|
$schema: undefined
|
|
@@ -7573,7 +7557,7 @@ function PlainObjectControl(props) {
|
|
|
7573
7557
|
},
|
|
7574
7558
|
validationMode: "NoValidation"
|
|
7575
7559
|
}, undefined, false, undefined, this)
|
|
7576
|
-
}, undefined, false, undefined, this) : /* @__PURE__ */
|
|
7560
|
+
}, undefined, false, undefined, this) : /* @__PURE__ */ jsxDEV41(AlertMinimal, {
|
|
7577
7561
|
category: "negative" /* Negative */,
|
|
7578
7562
|
title: "No properties specified",
|
|
7579
7563
|
text: "The JSON schema for this object did not specify any properties.",
|
|
@@ -7588,7 +7572,7 @@ var ObjectControl_default = ObjectControl;
|
|
|
7588
7572
|
// src/jsonforms/renderers/StringSelectControl.tsx
|
|
7589
7573
|
import { withJsonFormsControlProps as withJsonFormsControlProps6 } from "@jsonforms/react";
|
|
7590
7574
|
import { Select as Select2 } from "@mantine/core";
|
|
7591
|
-
import { jsxDEV as
|
|
7575
|
+
import { jsxDEV as jsxDEV42, Fragment as Fragment9 } from "react/jsx-dev-runtime";
|
|
7592
7576
|
function PlainTimestampControl({
|
|
7593
7577
|
data,
|
|
7594
7578
|
handleChange,
|
|
@@ -7600,8 +7584,8 @@ function PlainTimestampControl({
|
|
|
7600
7584
|
const {
|
|
7601
7585
|
formOptions: { withDescriptions }
|
|
7602
7586
|
} = useFormOptions();
|
|
7603
|
-
return /* @__PURE__ */
|
|
7604
|
-
children: /* @__PURE__ */
|
|
7587
|
+
return /* @__PURE__ */ jsxDEV42(Fragment9, {
|
|
7588
|
+
children: /* @__PURE__ */ jsxDEV42(Select2, {
|
|
7605
7589
|
label,
|
|
7606
7590
|
data: schema.enum,
|
|
7607
7591
|
value: data,
|
|
@@ -7714,7 +7698,7 @@ var verticalLayoutTester_default = tester9;
|
|
|
7714
7698
|
// src/jsonforms/renderers/TextControl.tsx
|
|
7715
7699
|
import { withJsonFormsControlProps as withJsonFormsControlProps7 } from "@jsonforms/react";
|
|
7716
7700
|
import { TextInput } from "@mantine/core";
|
|
7717
|
-
import { jsxDEV as
|
|
7701
|
+
import { jsxDEV as jsxDEV43, Fragment as Fragment10 } from "react/jsx-dev-runtime";
|
|
7718
7702
|
function PlainTextControl({
|
|
7719
7703
|
data,
|
|
7720
7704
|
handleChange,
|
|
@@ -7726,8 +7710,8 @@ function PlainTextControl({
|
|
|
7726
7710
|
const {
|
|
7727
7711
|
formOptions: { withDescriptions }
|
|
7728
7712
|
} = useFormOptions();
|
|
7729
|
-
return /* @__PURE__ */
|
|
7730
|
-
children: /* @__PURE__ */
|
|
7713
|
+
return /* @__PURE__ */ jsxDEV43(Fragment10, {
|
|
7714
|
+
children: /* @__PURE__ */ jsxDEV43(TextInput, {
|
|
7731
7715
|
label,
|
|
7732
7716
|
variant: "default",
|
|
7733
7717
|
placeholder: "",
|
|
@@ -7746,7 +7730,7 @@ var TextControl_default = TextControl;
|
|
|
7746
7730
|
// src/jsonforms/renderers/TimestampControl.tsx
|
|
7747
7731
|
import { withJsonFormsControlProps as withJsonFormsControlProps8 } from "@jsonforms/react";
|
|
7748
7732
|
import { DatePickerInput } from "@mantine/dates";
|
|
7749
|
-
import { jsxDEV as
|
|
7733
|
+
import { jsxDEV as jsxDEV44, Fragment as Fragment11 } from "react/jsx-dev-runtime";
|
|
7750
7734
|
function PlainTimestampControl2({
|
|
7751
7735
|
data,
|
|
7752
7736
|
handleChange,
|
|
@@ -7758,8 +7742,8 @@ function PlainTimestampControl2({
|
|
|
7758
7742
|
const {
|
|
7759
7743
|
formOptions: { withDescriptions }
|
|
7760
7744
|
} = useFormOptions();
|
|
7761
|
-
return /* @__PURE__ */
|
|
7762
|
-
children: /* @__PURE__ */
|
|
7745
|
+
return /* @__PURE__ */ jsxDEV44(Fragment11, {
|
|
7746
|
+
children: /* @__PURE__ */ jsxDEV44(DatePickerInput, {
|
|
7763
7747
|
variant: "default",
|
|
7764
7748
|
label,
|
|
7765
7749
|
placeholder: "Pick a date",
|
|
@@ -7781,14 +7765,14 @@ var TimestampControl_default = TimestampControl2;
|
|
|
7781
7765
|
import React10 from "react";
|
|
7782
7766
|
import { withJsonFormsLayoutProps } from "@jsonforms/react";
|
|
7783
7767
|
import { JsonFormsDispatch, useJsonForms as useJsonForms4 } from "@jsonforms/react";
|
|
7784
|
-
import { jsxDEV as
|
|
7768
|
+
import { jsxDEV as jsxDEV45 } from "react/jsx-dev-runtime";
|
|
7785
7769
|
"use client";
|
|
7786
7770
|
var JsonFormsLayout = ({
|
|
7787
7771
|
className,
|
|
7788
7772
|
children,
|
|
7789
7773
|
visible
|
|
7790
7774
|
}) => {
|
|
7791
|
-
return /* @__PURE__ */
|
|
7775
|
+
return /* @__PURE__ */ jsxDEV45("div", {
|
|
7792
7776
|
className,
|
|
7793
7777
|
hidden: visible === undefined || visible === null ? false : !visible,
|
|
7794
7778
|
children
|
|
@@ -7799,10 +7783,10 @@ var renderChildren = (layout, schema, className, path, enabled) => {
|
|
|
7799
7783
|
const { formOptions } = useFormOptions();
|
|
7800
7784
|
const gutter = typeof formOptions.gutter === "string" ? `var(--mantine-spacing-${formOptions.gutter})` : `${formOptions.gutter}px`;
|
|
7801
7785
|
return layout.elements.map((child, index) => {
|
|
7802
|
-
return /* @__PURE__ */
|
|
7786
|
+
return /* @__PURE__ */ jsxDEV45("div", {
|
|
7803
7787
|
className,
|
|
7804
7788
|
style: { marginTop: index === 0 ? 0 : gutter },
|
|
7805
|
-
children: /* @__PURE__ */
|
|
7789
|
+
children: /* @__PURE__ */ jsxDEV45(JsonFormsDispatch, {
|
|
7806
7790
|
renderers,
|
|
7807
7791
|
cells,
|
|
7808
7792
|
uischema: child,
|
|
@@ -7815,7 +7799,7 @@ var renderChildren = (layout, schema, className, path, enabled) => {
|
|
|
7815
7799
|
};
|
|
7816
7800
|
var VerticalLayoutRenderer = (props) => {
|
|
7817
7801
|
const { data: _data, ...otherProps } = props;
|
|
7818
|
-
return /* @__PURE__ */
|
|
7802
|
+
return /* @__PURE__ */ jsxDEV45(VerticalLayoutRendererComponent, {
|
|
7819
7803
|
...otherProps
|
|
7820
7804
|
}, undefined, false, undefined, this);
|
|
7821
7805
|
};
|
|
@@ -7829,7 +7813,7 @@ var VerticalLayoutRendererComponent = React10.memo(function VerticalLayoutRender
|
|
|
7829
7813
|
const verticalLayout = uischema;
|
|
7830
7814
|
const layoutClassName = "";
|
|
7831
7815
|
const childClassNames = "";
|
|
7832
|
-
return /* @__PURE__ */
|
|
7816
|
+
return /* @__PURE__ */ jsxDEV45(JsonFormsLayout, {
|
|
7833
7817
|
className: layoutClassName,
|
|
7834
7818
|
uischema,
|
|
7835
7819
|
schema,
|