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.cjs
CHANGED
|
@@ -5471,8 +5471,8 @@ __export(exports_jsonforms, {
|
|
|
5471
5471
|
module.exports = __toCommonJS(exports_jsonforms);
|
|
5472
5472
|
|
|
5473
5473
|
// src/jsonforms/renderers/AnyOfControl.tsx
|
|
5474
|
-
var
|
|
5475
|
-
var
|
|
5474
|
+
var import_react22 = require("@jsonforms/react");
|
|
5475
|
+
var import_core27 = require("@mantine/core");
|
|
5476
5476
|
|
|
5477
5477
|
// src/jsonforms/components/FormOptionsProvider/index.tsx
|
|
5478
5478
|
var import_react = __toESM(require("react"));
|
|
@@ -5594,13 +5594,14 @@ var useHydratedMantineColorScheme = () => {
|
|
|
5594
5594
|
// src/core/components/RemoraidProvider/ThemeProvider/index.tsx
|
|
5595
5595
|
var import_lodash2 = __toESM(require_lodash());
|
|
5596
5596
|
var jsx_dev_runtime4 = require("react/jsx-dev-runtime");
|
|
5597
|
+
var defaultTransitionDurations = {
|
|
5598
|
+
["short" /* Short */]: 200,
|
|
5599
|
+
["medium" /* Medium */]: 350,
|
|
5600
|
+
["long" /* Long */]: 500
|
|
5601
|
+
};
|
|
5597
5602
|
var createRemoraidTheme = (customTheme, dependencies) => {
|
|
5598
5603
|
const { mantineTheme, colorScheme } = dependencies ?? {};
|
|
5599
|
-
const transitionDurations = import_lodash2.merge(
|
|
5600
|
-
["short" /* Short */]: 200,
|
|
5601
|
-
["medium" /* Medium */]: 350,
|
|
5602
|
-
["long" /* Long */]: 500
|
|
5603
|
-
}, customTheme?.transitionDurations);
|
|
5604
|
+
const transitionDurations = import_lodash2.merge(defaultTransitionDurations, customTheme?.transitionDurations);
|
|
5604
5605
|
const transparentBackground = customTheme?.transparentBackground ?? (mantineTheme && colorScheme ? colorScheme === "dark" ? import_core2.rgba(mantineTheme.colors.dark[8], 0.8) : import_core2.rgba(mantineTheme.white, 0.8) : undefined);
|
|
5605
5606
|
let spacingPx;
|
|
5606
5607
|
if (mantineTheme && colorScheme) {
|
|
@@ -5655,30 +5656,6 @@ var createRemoraidTheme = (customTheme, dependencies) => {
|
|
|
5655
5656
|
size: 12,
|
|
5656
5657
|
stroke: 2.6
|
|
5657
5658
|
}
|
|
5658
|
-
},
|
|
5659
|
-
ScrollArea: {
|
|
5660
|
-
scrollbarSize: 8,
|
|
5661
|
-
scrollHideDelay: 20,
|
|
5662
|
-
type: "hover",
|
|
5663
|
-
styles: { thumb: { zIndex: 5 } }
|
|
5664
|
-
},
|
|
5665
|
-
HoverCard: {
|
|
5666
|
-
withArrow: true,
|
|
5667
|
-
transitionProps: {
|
|
5668
|
-
duration: transitionDurations.short
|
|
5669
|
-
}
|
|
5670
|
-
},
|
|
5671
|
-
Tooltip: {
|
|
5672
|
-
withArrow: true,
|
|
5673
|
-
transitionProps: {
|
|
5674
|
-
duration: transitionDurations.short
|
|
5675
|
-
}
|
|
5676
|
-
},
|
|
5677
|
-
Menu: {
|
|
5678
|
-
withArrow: true,
|
|
5679
|
-
transitionProps: {
|
|
5680
|
-
duration: transitionDurations.short
|
|
5681
|
-
}
|
|
5682
5659
|
}
|
|
5683
5660
|
}
|
|
5684
5661
|
};
|
|
@@ -5774,7 +5751,6 @@ function NavbarLink({
|
|
|
5774
5751
|
href,
|
|
5775
5752
|
indicator
|
|
5776
5753
|
}) {
|
|
5777
|
-
const theme = useRemoraidTheme();
|
|
5778
5754
|
const [isHoveringRoleIndicator, setIsHoveringRoleIndicator] = import_react10.useState(false);
|
|
5779
5755
|
const iconProps = {
|
|
5780
5756
|
size: iconSize,
|
|
@@ -5783,7 +5759,6 @@ function NavbarLink({
|
|
|
5783
5759
|
const Icon2 = icon ?? import_icons_react2.IconLink;
|
|
5784
5760
|
if (!href) {
|
|
5785
5761
|
return /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(import_core3.Tooltip, {
|
|
5786
|
-
...theme.componentsProps.Tooltip,
|
|
5787
5762
|
label,
|
|
5788
5763
|
position: "right",
|
|
5789
5764
|
children: /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(import_core3.UnstyledButton, {
|
|
@@ -5811,7 +5786,6 @@ function NavbarLink({
|
|
|
5811
5786
|
}, undefined, false, undefined, this)
|
|
5812
5787
|
}, undefined, false, undefined, this);
|
|
5813
5788
|
return /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(import_core3.Tooltip, {
|
|
5814
|
-
...theme.componentsProps.Tooltip,
|
|
5815
5789
|
label,
|
|
5816
5790
|
position: "right",
|
|
5817
5791
|
children: indicator === undefined ? button : /* @__PURE__ */ jsx_dev_runtime10.jsxDEV(import_core3.Indicator, {
|
|
@@ -6058,7 +6032,6 @@ function Element2({
|
|
|
6058
6032
|
}
|
|
6059
6033
|
|
|
6060
6034
|
// src/core/components/FrameLayout/index.tsx
|
|
6061
|
-
var import_lodash5 = __toESM(require_lodash());
|
|
6062
6035
|
var jsx_dev_runtime14 = require("react/jsx-dev-runtime");
|
|
6063
6036
|
var layoutContext = import_react11.createContext(null);
|
|
6064
6037
|
var useFrameLayout = () => {
|
|
@@ -6071,7 +6044,6 @@ function FrameLayout({
|
|
|
6071
6044
|
componentsProps,
|
|
6072
6045
|
children
|
|
6073
6046
|
}) {
|
|
6074
|
-
const theme = useRemoraidTheme();
|
|
6075
6047
|
const { layouts, setLayouts } = useLayouts();
|
|
6076
6048
|
const layout = layouts[layoutId];
|
|
6077
6049
|
const defaultSections = import_react11.useMemo(() => ({
|
|
@@ -6173,7 +6145,7 @@ function FrameLayout({
|
|
|
6173
6145
|
}, undefined, false, undefined, this),
|
|
6174
6146
|
includeScrollArea ? /* @__PURE__ */ jsx_dev_runtime14.jsxDEV(import_core7.ScrollArea, {
|
|
6175
6147
|
flex: 1,
|
|
6176
|
-
...
|
|
6148
|
+
...componentsProps?.ScrollArea,
|
|
6177
6149
|
children: contentSection
|
|
6178
6150
|
}, undefined, false, undefined, this) : contentSection,
|
|
6179
6151
|
/* @__PURE__ */ jsx_dev_runtime14.jsxDEV(import_core7.Stack, {
|
|
@@ -6203,7 +6175,7 @@ var FrameLayout_default = Object.assign(FrameLayout, {
|
|
|
6203
6175
|
});
|
|
6204
6176
|
|
|
6205
6177
|
// src/core/components/AppShell/index.tsx
|
|
6206
|
-
var
|
|
6178
|
+
var import_lodash5 = __toESM(require_lodash());
|
|
6207
6179
|
var jsx_dev_runtime15 = require("react/jsx-dev-runtime");
|
|
6208
6180
|
var remoraidAppShellLayoutId = "remoraid-app-shell";
|
|
6209
6181
|
var defaultAppShellNavbarPositions = { ["minimal" /* Minimal */]: "left" /* Left */ };
|
|
@@ -6256,13 +6228,13 @@ function AppShell({
|
|
|
6256
6228
|
navbarPosition !== null && /* @__PURE__ */ jsx_dev_runtime15.jsxDEV(FrameLayout_default.Element, {
|
|
6257
6229
|
section: navbarPosition,
|
|
6258
6230
|
includeContainer: false,
|
|
6259
|
-
...
|
|
6231
|
+
...import_lodash5.merge(navbarLayoutElementProps, componentsProps?.navbarLayoutElement),
|
|
6260
6232
|
children: navbar
|
|
6261
6233
|
}, undefined, false, undefined, this),
|
|
6262
6234
|
children,
|
|
6263
6235
|
footerPosition !== null && /* @__PURE__ */ jsx_dev_runtime15.jsxDEV(FrameLayout_default.Element, {
|
|
6264
6236
|
section: footerPosition,
|
|
6265
|
-
...
|
|
6237
|
+
...import_lodash5.merge(footerLayoutElementProps, componentsProps?.footerLayoutElement),
|
|
6266
6238
|
children: footer
|
|
6267
6239
|
}, undefined, false, undefined, this)
|
|
6268
6240
|
]
|
|
@@ -6293,11 +6265,10 @@ var import_react15 = require("react");
|
|
|
6293
6265
|
|
|
6294
6266
|
// src/core/components/ScrollableChipGroup/index.tsx
|
|
6295
6267
|
var import_core10 = require("@mantine/core");
|
|
6296
|
-
var import_lodash7 = __toESM(require_lodash());
|
|
6297
6268
|
var jsx_dev_runtime17 = require("react/jsx-dev-runtime");
|
|
6298
6269
|
|
|
6299
6270
|
// src/core/components/WidgetSelectionHeader/index.tsx
|
|
6300
|
-
var
|
|
6271
|
+
var import_lodash8 = __toESM(require_lodash());
|
|
6301
6272
|
|
|
6302
6273
|
// src/core/components/Pinnable/index.tsx
|
|
6303
6274
|
var import_react14 = require("react");
|
|
@@ -6307,7 +6278,7 @@ var import_core13 = require("@mantine/core");
|
|
|
6307
6278
|
// src/core/components/Controls/ControlButton/index.tsx
|
|
6308
6279
|
var import_core11 = require("@mantine/core");
|
|
6309
6280
|
var import_icons_react4 = require("@tabler/icons-react");
|
|
6310
|
-
var
|
|
6281
|
+
var import_lodash6 = __toESM(require_lodash());
|
|
6311
6282
|
var jsx_dev_runtime18 = require("react/jsx-dev-runtime");
|
|
6312
6283
|
function ControlButton({
|
|
6313
6284
|
icon: Icon3 = import_icons_react4.IconClick,
|
|
@@ -6328,7 +6299,9 @@ function ControlButton({
|
|
|
6328
6299
|
timingFunction: "ease",
|
|
6329
6300
|
...componentsProps?.transition,
|
|
6330
6301
|
children: (transitionStyle) => /* @__PURE__ */ jsx_dev_runtime18.jsxDEV(import_core11.Tooltip, {
|
|
6331
|
-
|
|
6302
|
+
label: tooltip,
|
|
6303
|
+
disabled: !Boolean(tooltip),
|
|
6304
|
+
...componentsProps?.tooltip,
|
|
6332
6305
|
children: /* @__PURE__ */ jsx_dev_runtime18.jsxDEV(import_core11.ActionIcon, {
|
|
6333
6306
|
"data-control-button": true,
|
|
6334
6307
|
size,
|
|
@@ -6338,10 +6311,10 @@ function ControlButton({
|
|
|
6338
6311
|
...componentsProps?.button,
|
|
6339
6312
|
style: {
|
|
6340
6313
|
order,
|
|
6341
|
-
...
|
|
6314
|
+
...import_lodash6.merge(transitionStyle, componentsProps?.button?.style)
|
|
6342
6315
|
},
|
|
6343
6316
|
children: /* @__PURE__ */ jsx_dev_runtime18.jsxDEV(Icon3, {
|
|
6344
|
-
...
|
|
6317
|
+
...import_lodash6.merge({}, theme.componentsProps.icons[iconSize], componentsProps?.icon)
|
|
6345
6318
|
}, undefined, false, undefined, this)
|
|
6346
6319
|
}, undefined, false, undefined, this)
|
|
6347
6320
|
}, undefined, false, undefined, this)
|
|
@@ -6352,7 +6325,7 @@ function ControlButton({
|
|
|
6352
6325
|
var import_react13 = require("react");
|
|
6353
6326
|
var import_core12 = require("@mantine/core");
|
|
6354
6327
|
var import_icons_react5 = require("@tabler/icons-react");
|
|
6355
|
-
var
|
|
6328
|
+
var import_lodash7 = __toESM(require_lodash());
|
|
6356
6329
|
var jsx_dev_runtime19 = require("react/jsx-dev-runtime");
|
|
6357
6330
|
function Controls({
|
|
6358
6331
|
groupRef,
|
|
@@ -6431,7 +6404,7 @@ function Controls({
|
|
|
6431
6404
|
style: {
|
|
6432
6405
|
right: pos.x,
|
|
6433
6406
|
top: pos.y,
|
|
6434
|
-
...
|
|
6407
|
+
...import_lodash7.merge(transitionStyle, componentsProps?.container?.style)
|
|
6435
6408
|
},
|
|
6436
6409
|
className: clsx_default("remoraid-controls", componentsProps?.container?.className),
|
|
6437
6410
|
children: /* @__PURE__ */ jsx_dev_runtime19.jsxDEV(import_core12.Group, {
|
|
@@ -6442,7 +6415,7 @@ function Controls({
|
|
|
6442
6415
|
className: clsx_default("remoraid-controls-group", componentsProps?.group?.className),
|
|
6443
6416
|
children: [
|
|
6444
6417
|
/* @__PURE__ */ jsx_dev_runtime19.jsxDEV(import_icons_react5.IconGripHorizontal, {
|
|
6445
|
-
...
|
|
6418
|
+
...import_lodash7.merge({}, theme.componentsProps.icons[iconSize], { order: -100, color: "var(--mantine-color-default-border)" }, componentsProps?.gripIcon)
|
|
6446
6419
|
}, undefined, false, undefined, this),
|
|
6447
6420
|
children,
|
|
6448
6421
|
additionalButtons && additionalButtons.map((button, i) => {
|
|
@@ -6532,7 +6505,6 @@ var import_react16 = __toESM(require("react"));
|
|
|
6532
6505
|
|
|
6533
6506
|
// src/core/components/BadgeMinimal/index.tsx
|
|
6534
6507
|
var import_core15 = require("@mantine/core");
|
|
6535
|
-
var import_lodash11 = __toESM(require_lodash());
|
|
6536
6508
|
var jsx_dev_runtime22 = require("react/jsx-dev-runtime");
|
|
6537
6509
|
function BadgeMinimal({
|
|
6538
6510
|
label,
|
|
@@ -6548,7 +6520,9 @@ function BadgeMinimal({
|
|
|
6548
6520
|
timingFunction: "ease",
|
|
6549
6521
|
...componentsProps?.transition,
|
|
6550
6522
|
children: (transitionStyle) => /* @__PURE__ */ jsx_dev_runtime22.jsxDEV(import_core15.Tooltip, {
|
|
6551
|
-
|
|
6523
|
+
label: tooltip,
|
|
6524
|
+
disabled: !Boolean(tooltip),
|
|
6525
|
+
...componentsProps?.tooltip,
|
|
6552
6526
|
children: /* @__PURE__ */ jsx_dev_runtime22.jsxDEV(import_core15.Badge, {
|
|
6553
6527
|
variant: "default",
|
|
6554
6528
|
...componentsProps?.badge,
|
|
@@ -6564,7 +6538,7 @@ function BadgeMinimal({
|
|
|
6564
6538
|
}
|
|
6565
6539
|
|
|
6566
6540
|
// src/core/components/BadgeGroup/index.tsx
|
|
6567
|
-
var
|
|
6541
|
+
var import_lodash9 = __toESM(require_lodash());
|
|
6568
6542
|
var jsx_dev_runtime23 = require("react/jsx-dev-runtime");
|
|
6569
6543
|
var react = require("react");
|
|
6570
6544
|
function BadgeGroup({
|
|
@@ -6603,7 +6577,7 @@ function BadgeGroup({
|
|
|
6603
6577
|
timingFunction: "ease",
|
|
6604
6578
|
...componentsProps?.cumulativeBadgeTransition,
|
|
6605
6579
|
children: (transitionStyle) => /* @__PURE__ */ jsx_dev_runtime23.jsxDEV(import_core16.HoverCard, {
|
|
6606
|
-
...
|
|
6580
|
+
...componentsProps?.HoverCard,
|
|
6607
6581
|
children: [
|
|
6608
6582
|
/* @__PURE__ */ jsx_dev_runtime23.jsxDEV(import_core16.HoverCard.Target, {
|
|
6609
6583
|
children: /* @__PURE__ */ jsx_dev_runtime23.jsxDEV(import_core16.Badge, {
|
|
@@ -6612,7 +6586,7 @@ function BadgeGroup({
|
|
|
6612
6586
|
...componentsProps?.cumulativeBadge,
|
|
6613
6587
|
style: {
|
|
6614
6588
|
cursor: "pointer",
|
|
6615
|
-
...
|
|
6589
|
+
...import_lodash9.merge(transitionStyle, componentsProps?.cumulativeBadge?.style)
|
|
6616
6590
|
},
|
|
6617
6591
|
children: [
|
|
6618
6592
|
numVisibleBadges,
|
|
@@ -6636,7 +6610,7 @@ function BadgeGroup({
|
|
|
6636
6610
|
}
|
|
6637
6611
|
// src/core/components/AlertMinimal/index.tsx
|
|
6638
6612
|
var import_core17 = require("@mantine/core");
|
|
6639
|
-
var
|
|
6613
|
+
var import_lodash10 = __toESM(require_lodash());
|
|
6640
6614
|
var jsx_dev_runtime24 = require("react/jsx-dev-runtime");
|
|
6641
6615
|
function AlertMinimal({
|
|
6642
6616
|
category,
|
|
@@ -6653,7 +6627,7 @@ function AlertMinimal({
|
|
|
6653
6627
|
icon: Icon3,
|
|
6654
6628
|
iconSize = "medium" /* Medium */,
|
|
6655
6629
|
componentsProps
|
|
6656
|
-
} =
|
|
6630
|
+
} = import_lodash10.merge({}, theme.componentsProps.alerts[category], props);
|
|
6657
6631
|
return /* @__PURE__ */ jsx_dev_runtime24.jsxDEV(import_core17.Transition, {
|
|
6658
6632
|
mounted,
|
|
6659
6633
|
transition: "fade",
|
|
@@ -6667,9 +6641,9 @@ function AlertMinimal({
|
|
|
6667
6641
|
onClose,
|
|
6668
6642
|
withCloseButton: onClose !== undefined,
|
|
6669
6643
|
icon: Icon3 ? /* @__PURE__ */ jsx_dev_runtime24.jsxDEV(Icon3, {
|
|
6670
|
-
...
|
|
6644
|
+
...import_lodash10.merge({}, theme.componentsProps.icons[iconSize], componentsProps?.icon)
|
|
6671
6645
|
}, undefined, false, undefined, this) : undefined,
|
|
6672
|
-
style:
|
|
6646
|
+
style: import_lodash10.merge(transitionStyle, componentsProps?.alert?.style),
|
|
6673
6647
|
children: [
|
|
6674
6648
|
text,
|
|
6675
6649
|
children
|
|
@@ -6680,7 +6654,7 @@ function AlertMinimal({
|
|
|
6680
6654
|
// src/core/components/RemoraidButton/index.tsx
|
|
6681
6655
|
var import_core18 = require("@mantine/core");
|
|
6682
6656
|
var import_icons_react8 = require("@tabler/icons-react");
|
|
6683
|
-
var
|
|
6657
|
+
var import_lodash11 = __toESM(require_lodash());
|
|
6684
6658
|
var jsx_dev_runtime25 = require("react/jsx-dev-runtime");
|
|
6685
6659
|
function RemoraidButton({
|
|
6686
6660
|
label,
|
|
@@ -6704,7 +6678,7 @@ function RemoraidButton({
|
|
|
6704
6678
|
const Icon4 = iconProp ?? import_icons_react8.IconClick;
|
|
6705
6679
|
const theme = useRemoraidTheme();
|
|
6706
6680
|
const iconElement = /* @__PURE__ */ jsx_dev_runtime25.jsxDEV(Icon4, {
|
|
6707
|
-
...
|
|
6681
|
+
...import_lodash11.merge({}, theme.componentsProps.icons[iconSize], componentsProps?.icon)
|
|
6708
6682
|
}, undefined, false, undefined, this);
|
|
6709
6683
|
return /* @__PURE__ */ jsx_dev_runtime25.jsxDEV(import_core18.Transition, {
|
|
6710
6684
|
mounted,
|
|
@@ -6715,7 +6689,8 @@ function RemoraidButton({
|
|
|
6715
6689
|
children: (transitionStyle) => /* @__PURE__ */ jsx_dev_runtime25.jsxDEV(jsx_dev_runtime25.Fragment, {
|
|
6716
6690
|
children: [
|
|
6717
6691
|
/* @__PURE__ */ jsx_dev_runtime25.jsxDEV(import_core18.Tooltip, {
|
|
6718
|
-
|
|
6692
|
+
label,
|
|
6693
|
+
...componentsProps?.tooltip,
|
|
6719
6694
|
children: /* @__PURE__ */ jsx_dev_runtime25.jsxDEV(import_core18.ActionIcon, {
|
|
6720
6695
|
"aria-label": label,
|
|
6721
6696
|
variant,
|
|
@@ -6759,7 +6734,7 @@ function RemoraidButton({
|
|
|
6759
6734
|
var import_core19 = require("@mantine/core");
|
|
6760
6735
|
var import_react17 = require("react");
|
|
6761
6736
|
var import_icons_react9 = require("@tabler/icons-react");
|
|
6762
|
-
var
|
|
6737
|
+
var import_lodash12 = __toESM(require_lodash());
|
|
6763
6738
|
var jsx_dev_runtime26 = require("react/jsx-dev-runtime");
|
|
6764
6739
|
function WidgetWrapper({
|
|
6765
6740
|
config,
|
|
@@ -6830,7 +6805,7 @@ function WidgetWrapper({
|
|
|
6830
6805
|
}
|
|
6831
6806
|
componentsProps?.container?.onMouseLeave?.(e);
|
|
6832
6807
|
},
|
|
6833
|
-
style:
|
|
6808
|
+
style: import_lodash12.merge(transitionStyle, { flexDirection: "column" }, componentsProps?.container?.style),
|
|
6834
6809
|
className: clsx_default("remoraid-segment", componentsProps?.container?.className),
|
|
6835
6810
|
id: config.widgetId,
|
|
6836
6811
|
children: [
|
|
@@ -6914,7 +6889,6 @@ function WidgetWrapper({
|
|
|
6914
6889
|
}
|
|
6915
6890
|
// src/core/components/Widget/index.tsx
|
|
6916
6891
|
var import_core20 = require("@mantine/core");
|
|
6917
|
-
var import_lodash16 = __toESM(require_lodash());
|
|
6918
6892
|
var jsx_dev_runtime27 = require("react/jsx-dev-runtime");
|
|
6919
6893
|
var react2 = require("react");
|
|
6920
6894
|
function Widget({
|
|
@@ -6934,7 +6908,6 @@ function Widget({
|
|
|
6934
6908
|
const buttons = buttonsProp?.map((button) => asElementOrPropsOfType(RemoraidButton, button, "Check the 'buttons' property of this widget."));
|
|
6935
6909
|
const alerts = alertsProp?.map((alert) => asElementOrPropsOfType(AlertMinimal, alert, "Check the 'alerts' property of this widget."));
|
|
6936
6910
|
const badges = badgesProp?.map((badge) => asElementOrPropsOfType(BadgeMinimal, badge, "Check the 'badges' property of this widget."));
|
|
6937
|
-
const theme = useRemoraidTheme();
|
|
6938
6911
|
const badgesGap = (typeof gaps === "object" ? gaps.badges : gaps) ?? "xs";
|
|
6939
6912
|
const buttonsGap = (typeof gaps === "object" ? gaps.buttons : gaps) ?? "xs";
|
|
6940
6913
|
const alertsGap = (typeof gaps === "object" ? gaps.alerts : gaps) ?? "xs";
|
|
@@ -7013,7 +6986,8 @@ function Widget({
|
|
|
7013
6986
|
})
|
|
7014
6987
|
}, undefined, false, undefined, this),
|
|
7015
6988
|
/* @__PURE__ */ jsx_dev_runtime27.jsxDEV(import_core20.ScrollArea.Autosize, {
|
|
7016
|
-
|
|
6989
|
+
flex: 1,
|
|
6990
|
+
...componentsProps?.childrenContainer,
|
|
7017
6991
|
children: loading ? /* @__PURE__ */ jsx_dev_runtime27.jsxDEV(import_core20.Center, {
|
|
7018
6992
|
children: /* @__PURE__ */ jsx_dev_runtime27.jsxDEV(import_core20.Loader, {
|
|
7019
6993
|
...componentsProps?.loader
|
|
@@ -7182,20 +7156,25 @@ var SettingsTable_default = Object.assign(SettingsTable, {
|
|
|
7182
7156
|
Row
|
|
7183
7157
|
});
|
|
7184
7158
|
// src/core/components/NavbarSettingsWidget/index.tsx
|
|
7185
|
-
var
|
|
7159
|
+
var import_lodash13 = __toESM(require_lodash());
|
|
7186
7160
|
var import_core24 = require("@mantine/core");
|
|
7187
7161
|
var import_icons_react12 = require("@tabler/icons-react");
|
|
7188
7162
|
var jsx_dev_runtime34 = require("react/jsx-dev-runtime");
|
|
7189
7163
|
// src/core/components/ContextClusterProvider/index.tsx
|
|
7190
7164
|
var import_react20 = __toESM(require("react"));
|
|
7191
7165
|
var jsx_dev_runtime35 = require("react/jsx-dev-runtime");
|
|
7192
|
-
// src/
|
|
7166
|
+
// src/core/components/InputWrapperScrollArea/index.tsx
|
|
7167
|
+
var import_core25 = require("@mantine/core");
|
|
7168
|
+
var import_react21 = require("react");
|
|
7169
|
+
var import_core26 = require("remoraid/core");
|
|
7193
7170
|
var jsx_dev_runtime36 = require("react/jsx-dev-runtime");
|
|
7171
|
+
// src/jsonforms/renderers/AnyOfControl.tsx
|
|
7172
|
+
var jsx_dev_runtime37 = require("react/jsx-dev-runtime");
|
|
7194
7173
|
function PlainAnyOfControl(props) {
|
|
7195
7174
|
const { data, schema, label, required, handleChange, path } = props;
|
|
7196
7175
|
const theme = useRemoraidTheme();
|
|
7197
7176
|
const { formOptions } = useFormOptions();
|
|
7198
|
-
const { renderers, cells } =
|
|
7177
|
+
const { renderers, cells } = import_react22.useJsonForms();
|
|
7199
7178
|
const defaultValues = {
|
|
7200
7179
|
number: 0,
|
|
7201
7180
|
integer: 0,
|
|
@@ -7224,19 +7203,19 @@ function PlainAnyOfControl(props) {
|
|
|
7224
7203
|
type = "boolean";
|
|
7225
7204
|
}
|
|
7226
7205
|
const typeProperties = schema.anyOf ? schema.anyOf.find((a) => a.type === type) || {} : {};
|
|
7227
|
-
return /* @__PURE__ */
|
|
7228
|
-
children: /* @__PURE__ */
|
|
7206
|
+
return /* @__PURE__ */ jsx_dev_runtime37.jsxDEV(jsx_dev_runtime37.Fragment, {
|
|
7207
|
+
children: /* @__PURE__ */ jsx_dev_runtime37.jsxDEV(import_core27.Input.Wrapper, {
|
|
7229
7208
|
label,
|
|
7230
7209
|
description: formOptions.withDescriptions ? schema.description ?? null : null,
|
|
7231
7210
|
withAsterisk: required,
|
|
7232
|
-
children: /* @__PURE__ */
|
|
7211
|
+
children: /* @__PURE__ */ jsx_dev_runtime37.jsxDEV(import_core27.Paper, {
|
|
7233
7212
|
withBorder: true,
|
|
7234
7213
|
shadow: "0",
|
|
7235
7214
|
bg: "var(--remoraid-transparent-background)",
|
|
7236
7215
|
p: formOptions.gutter,
|
|
7237
7216
|
mt: formOptions.withDescriptions && schema.description && schema.description.length > 0 ? 4 : 0,
|
|
7238
7217
|
children: [
|
|
7239
|
-
/* @__PURE__ */
|
|
7218
|
+
/* @__PURE__ */ jsx_dev_runtime37.jsxDEV(import_core27.Select, {
|
|
7240
7219
|
label: `Value Type`,
|
|
7241
7220
|
data: schema.anyOf ? schema.anyOf.map((a) => String(a.type)) : [],
|
|
7242
7221
|
value: type,
|
|
@@ -7249,7 +7228,7 @@ function PlainAnyOfControl(props) {
|
|
|
7249
7228
|
variant: "default",
|
|
7250
7229
|
mb: type && type !== "null" ? formOptions.gutter : undefined
|
|
7251
7230
|
}, undefined, false, undefined, this),
|
|
7252
|
-
type && type !== "null" && /* @__PURE__ */
|
|
7231
|
+
type && type !== "null" && /* @__PURE__ */ jsx_dev_runtime37.jsxDEV(import_react22.JsonForms, {
|
|
7253
7232
|
schema: {
|
|
7254
7233
|
...typeProperties,
|
|
7255
7234
|
$schema: undefined
|
|
@@ -7267,21 +7246,21 @@ function PlainAnyOfControl(props) {
|
|
|
7267
7246
|
}, undefined, false, undefined, this)
|
|
7268
7247
|
}, undefined, false, undefined, this);
|
|
7269
7248
|
}
|
|
7270
|
-
var AnyOfControl =
|
|
7249
|
+
var AnyOfControl = import_react22.withJsonFormsControlProps(PlainAnyOfControl);
|
|
7271
7250
|
var AnyOfControl_default = AnyOfControl;
|
|
7272
7251
|
|
|
7273
7252
|
// src/jsonforms/renderers/ArrayControl.tsx
|
|
7274
|
-
var
|
|
7275
|
-
var
|
|
7253
|
+
var import_react23 = require("@jsonforms/react");
|
|
7254
|
+
var import_core29 = require("@mantine/core");
|
|
7276
7255
|
var import_icons_react13 = require("@tabler/icons-react");
|
|
7277
|
-
var
|
|
7278
|
-
var
|
|
7279
|
-
var
|
|
7256
|
+
var import_core30 = require("remoraid/core");
|
|
7257
|
+
var import_lodash14 = __toESM(require_lodash());
|
|
7258
|
+
var jsx_dev_runtime38 = require("react/jsx-dev-runtime");
|
|
7280
7259
|
function PlainArrayControl(props) {
|
|
7281
|
-
const theme =
|
|
7260
|
+
const theme = import_core30.useRemoraidTheme();
|
|
7282
7261
|
const { label, schema, data, handleChange, path, required } = props;
|
|
7283
7262
|
const { formOptions } = useFormOptions();
|
|
7284
|
-
const { renderers, cells } =
|
|
7263
|
+
const { renderers, cells } = import_react23.useJsonForms();
|
|
7285
7264
|
let schemaItems;
|
|
7286
7265
|
if (schema.items && !Array.isArray(schema.items)) {
|
|
7287
7266
|
schemaItems = {
|
|
@@ -7295,45 +7274,45 @@ function PlainArrayControl(props) {
|
|
|
7295
7274
|
required: ["item"]
|
|
7296
7275
|
};
|
|
7297
7276
|
} else {
|
|
7298
|
-
return /* @__PURE__ */
|
|
7299
|
-
category:
|
|
7277
|
+
return /* @__PURE__ */ jsx_dev_runtime38.jsxDEV(import_core30.AlertMinimal, {
|
|
7278
|
+
category: import_core30.AlertCategory.Negative,
|
|
7300
7279
|
title: "Renderer missing",
|
|
7301
7280
|
text: `Could not find applicable renderer for property '${label}'.`
|
|
7302
7281
|
}, undefined, false, undefined, this);
|
|
7303
7282
|
}
|
|
7304
|
-
return /* @__PURE__ */
|
|
7305
|
-
children: /* @__PURE__ */
|
|
7283
|
+
return /* @__PURE__ */ jsx_dev_runtime38.jsxDEV(jsx_dev_runtime38.Fragment, {
|
|
7284
|
+
children: /* @__PURE__ */ jsx_dev_runtime38.jsxDEV(import_core29.Input.Wrapper, {
|
|
7306
7285
|
label,
|
|
7307
7286
|
description: formOptions.withDescriptions ? schema.description : undefined,
|
|
7308
7287
|
withAsterisk: required,
|
|
7309
|
-
children: /* @__PURE__ */
|
|
7288
|
+
children: /* @__PURE__ */ jsx_dev_runtime38.jsxDEV(import_core29.Paper, {
|
|
7310
7289
|
withBorder: Array.isArray(data) && data.length > 0,
|
|
7311
7290
|
shadow: "0",
|
|
7312
7291
|
bg: "var(--remoraid-transparent-background)",
|
|
7313
7292
|
p: Array.isArray(data) && data.length > 0 ? formOptions.gutter : 0,
|
|
7314
7293
|
mt: formOptions.withDescriptions && schema.description && schema.description.length > 0 ? 4 : 0,
|
|
7315
|
-
children: /* @__PURE__ */
|
|
7294
|
+
children: /* @__PURE__ */ jsx_dev_runtime38.jsxDEV(import_core29.Stack, {
|
|
7316
7295
|
align: "stretch",
|
|
7317
7296
|
justify: "flex-start",
|
|
7318
7297
|
gap: formOptions.gutter,
|
|
7319
7298
|
children: [
|
|
7320
7299
|
Array.isArray(data) ? data.map((item, i) => {
|
|
7321
|
-
return /* @__PURE__ */
|
|
7300
|
+
return /* @__PURE__ */ jsx_dev_runtime38.jsxDEV(import_core29.Flex, {
|
|
7322
7301
|
gap: "xs",
|
|
7323
7302
|
justify: "flex-start",
|
|
7324
7303
|
align: "center",
|
|
7325
7304
|
direction: "row",
|
|
7326
7305
|
wrap: "nowrap",
|
|
7327
7306
|
children: [
|
|
7328
|
-
/* @__PURE__ */
|
|
7307
|
+
/* @__PURE__ */ jsx_dev_runtime38.jsxDEV(import_core29.Box, {
|
|
7329
7308
|
flex: 1,
|
|
7330
|
-
children: /* @__PURE__ */
|
|
7309
|
+
children: /* @__PURE__ */ jsx_dev_runtime38.jsxDEV(import_react23.JsonForms, {
|
|
7331
7310
|
schema: schemaItems,
|
|
7332
7311
|
data: { item },
|
|
7333
7312
|
renderers: renderers ?? [],
|
|
7334
7313
|
cells: cells ?? [],
|
|
7335
7314
|
onChange: ({ data: newData }) => {
|
|
7336
|
-
if (
|
|
7315
|
+
if (import_lodash14.isEqual(data[i], newData.item)) {
|
|
7337
7316
|
return;
|
|
7338
7317
|
}
|
|
7339
7318
|
const dataCopy = [...data];
|
|
@@ -7343,7 +7322,7 @@ function PlainArrayControl(props) {
|
|
|
7343
7322
|
validationMode: "NoValidation"
|
|
7344
7323
|
}, undefined, false, undefined, this)
|
|
7345
7324
|
}, undefined, false, undefined, this),
|
|
7346
|
-
/* @__PURE__ */
|
|
7325
|
+
/* @__PURE__ */ jsx_dev_runtime38.jsxDEV(import_core30.RemoraidButton, {
|
|
7347
7326
|
responsive: false,
|
|
7348
7327
|
collapsed: true,
|
|
7349
7328
|
label: "Delete item",
|
|
@@ -7355,10 +7334,10 @@ function PlainArrayControl(props) {
|
|
|
7355
7334
|
}, undefined, false, undefined, this)
|
|
7356
7335
|
]
|
|
7357
7336
|
}, i, true, undefined, this);
|
|
7358
|
-
}) : /* @__PURE__ */
|
|
7359
|
-
/* @__PURE__ */
|
|
7337
|
+
}) : /* @__PURE__ */ jsx_dev_runtime38.jsxDEV(jsx_dev_runtime38.Fragment, {}, undefined, false, undefined, this),
|
|
7338
|
+
/* @__PURE__ */ jsx_dev_runtime38.jsxDEV(import_core29.Button, {
|
|
7360
7339
|
variant: "default",
|
|
7361
|
-
leftSection: /* @__PURE__ */
|
|
7340
|
+
leftSection: /* @__PURE__ */ jsx_dev_runtime38.jsxDEV(import_icons_react13.IconPlus, {
|
|
7362
7341
|
...theme.componentsProps.icons.medium
|
|
7363
7342
|
}, undefined, false, undefined, this),
|
|
7364
7343
|
onClick: () => {
|
|
@@ -7382,13 +7361,13 @@ function PlainArrayControl(props) {
|
|
|
7382
7361
|
}, undefined, false, undefined, this)
|
|
7383
7362
|
}, undefined, false, undefined, this);
|
|
7384
7363
|
}
|
|
7385
|
-
var ArrayControl =
|
|
7364
|
+
var ArrayControl = import_react23.withJsonFormsControlProps(PlainArrayControl);
|
|
7386
7365
|
var ArrayControl_default = ArrayControl;
|
|
7387
7366
|
|
|
7388
7367
|
// src/jsonforms/renderers/CheckboxControl.tsx
|
|
7389
|
-
var
|
|
7390
|
-
var
|
|
7391
|
-
var
|
|
7368
|
+
var import_react24 = require("@jsonforms/react");
|
|
7369
|
+
var import_core31 = require("@mantine/core");
|
|
7370
|
+
var jsx_dev_runtime39 = require("react/jsx-dev-runtime");
|
|
7392
7371
|
function PlainCheckboxControl({
|
|
7393
7372
|
data,
|
|
7394
7373
|
handleChange,
|
|
@@ -7398,8 +7377,8 @@ function PlainCheckboxControl({
|
|
|
7398
7377
|
schema
|
|
7399
7378
|
}) {
|
|
7400
7379
|
const { formOptions } = useFormOptions();
|
|
7401
|
-
return /* @__PURE__ */
|
|
7402
|
-
children: /* @__PURE__ */
|
|
7380
|
+
return /* @__PURE__ */ jsx_dev_runtime39.jsxDEV(jsx_dev_runtime39.Fragment, {
|
|
7381
|
+
children: /* @__PURE__ */ jsx_dev_runtime39.jsxDEV(import_core31.Checkbox, {
|
|
7403
7382
|
label,
|
|
7404
7383
|
py: formOptions.gutter,
|
|
7405
7384
|
labelPosition: "left",
|
|
@@ -7412,13 +7391,13 @@ function PlainCheckboxControl({
|
|
|
7412
7391
|
}, undefined, false, undefined, this)
|
|
7413
7392
|
}, undefined, false, undefined, this);
|
|
7414
7393
|
}
|
|
7415
|
-
var CheckboxControl =
|
|
7394
|
+
var CheckboxControl = import_react24.withJsonFormsControlProps(PlainCheckboxControl);
|
|
7416
7395
|
var CheckboxControl_default = CheckboxControl;
|
|
7417
7396
|
|
|
7418
7397
|
// src/jsonforms/renderers/NumberControl.tsx
|
|
7419
|
-
var
|
|
7420
|
-
var
|
|
7421
|
-
var
|
|
7398
|
+
var import_react25 = require("@jsonforms/react");
|
|
7399
|
+
var import_core32 = require("@mantine/core");
|
|
7400
|
+
var jsx_dev_runtime40 = require("react/jsx-dev-runtime");
|
|
7422
7401
|
function PlainNumberControl({
|
|
7423
7402
|
data,
|
|
7424
7403
|
handleChange,
|
|
@@ -7430,8 +7409,8 @@ function PlainNumberControl({
|
|
|
7430
7409
|
const {
|
|
7431
7410
|
formOptions: { withDescriptions }
|
|
7432
7411
|
} = useFormOptions();
|
|
7433
|
-
return /* @__PURE__ */
|
|
7434
|
-
children: /* @__PURE__ */
|
|
7412
|
+
return /* @__PURE__ */ jsx_dev_runtime40.jsxDEV(jsx_dev_runtime40.Fragment, {
|
|
7413
|
+
children: /* @__PURE__ */ jsx_dev_runtime40.jsxDEV(import_core32.NumberInput, {
|
|
7435
7414
|
label,
|
|
7436
7415
|
variant: "default",
|
|
7437
7416
|
value: data,
|
|
@@ -7446,31 +7425,31 @@ function PlainNumberControl({
|
|
|
7446
7425
|
}, undefined, false, undefined, this)
|
|
7447
7426
|
}, undefined, false, undefined, this);
|
|
7448
7427
|
}
|
|
7449
|
-
var NumberControl =
|
|
7428
|
+
var NumberControl = import_react25.withJsonFormsControlProps(PlainNumberControl);
|
|
7450
7429
|
var NumberControl_default = NumberControl;
|
|
7451
7430
|
|
|
7452
7431
|
// src/jsonforms/renderers/ObjectControl.tsx
|
|
7453
|
-
var
|
|
7454
|
-
var
|
|
7455
|
-
var
|
|
7432
|
+
var import_react26 = require("@jsonforms/react");
|
|
7433
|
+
var import_core33 = require("@mantine/core");
|
|
7434
|
+
var jsx_dev_runtime41 = require("react/jsx-dev-runtime");
|
|
7456
7435
|
function PlainObjectControl(props) {
|
|
7457
7436
|
const { label, schema, data, handleChange, path, required } = props;
|
|
7458
7437
|
const { formOptions } = useFormOptions();
|
|
7459
|
-
const { renderers, cells } =
|
|
7438
|
+
const { renderers, cells } = import_react26.useJsonForms();
|
|
7460
7439
|
const theme = useRemoraidTheme();
|
|
7461
7440
|
const mt = formOptions.withDescriptions && schema.description && schema.description.length > 0 ? 4 : 0;
|
|
7462
|
-
return /* @__PURE__ */
|
|
7463
|
-
children: /* @__PURE__ */
|
|
7441
|
+
return /* @__PURE__ */ jsx_dev_runtime41.jsxDEV(jsx_dev_runtime41.Fragment, {
|
|
7442
|
+
children: /* @__PURE__ */ jsx_dev_runtime41.jsxDEV(import_core33.Input.Wrapper, {
|
|
7464
7443
|
label: label !== "remoraid-array-item" ? label : null,
|
|
7465
7444
|
description: formOptions.withDescriptions ? schema.description : undefined,
|
|
7466
7445
|
withAsterisk: required,
|
|
7467
|
-
children: schema.properties && Object.keys(schema.properties).length > 0 ? /* @__PURE__ */
|
|
7446
|
+
children: schema.properties && Object.keys(schema.properties).length > 0 ? /* @__PURE__ */ jsx_dev_runtime41.jsxDEV(import_core33.Paper, {
|
|
7468
7447
|
withBorder: true,
|
|
7469
7448
|
bg: "var(--remoraid-transparent-background)",
|
|
7470
7449
|
shadow: "0",
|
|
7471
7450
|
p: formOptions.gutter,
|
|
7472
7451
|
mt,
|
|
7473
|
-
children: /* @__PURE__ */
|
|
7452
|
+
children: /* @__PURE__ */ jsx_dev_runtime41.jsxDEV(import_react26.JsonForms, {
|
|
7474
7453
|
schema: {
|
|
7475
7454
|
...schema,
|
|
7476
7455
|
$schema: undefined
|
|
@@ -7483,7 +7462,7 @@ function PlainObjectControl(props) {
|
|
|
7483
7462
|
},
|
|
7484
7463
|
validationMode: "NoValidation"
|
|
7485
7464
|
}, undefined, false, undefined, this)
|
|
7486
|
-
}, undefined, false, undefined, this) : /* @__PURE__ */
|
|
7465
|
+
}, undefined, false, undefined, this) : /* @__PURE__ */ jsx_dev_runtime41.jsxDEV(AlertMinimal, {
|
|
7487
7466
|
category: "negative" /* Negative */,
|
|
7488
7467
|
title: "No properties specified",
|
|
7489
7468
|
text: "The JSON schema for this object did not specify any properties.",
|
|
@@ -7492,13 +7471,13 @@ function PlainObjectControl(props) {
|
|
|
7492
7471
|
}, undefined, false, undefined, this)
|
|
7493
7472
|
}, undefined, false, undefined, this);
|
|
7494
7473
|
}
|
|
7495
|
-
var ObjectControl =
|
|
7474
|
+
var ObjectControl = import_react26.withJsonFormsControlProps(PlainObjectControl);
|
|
7496
7475
|
var ObjectControl_default = ObjectControl;
|
|
7497
7476
|
|
|
7498
7477
|
// src/jsonforms/renderers/StringSelectControl.tsx
|
|
7499
|
-
var
|
|
7500
|
-
var
|
|
7501
|
-
var
|
|
7478
|
+
var import_react27 = require("@jsonforms/react");
|
|
7479
|
+
var import_core35 = require("@mantine/core");
|
|
7480
|
+
var jsx_dev_runtime42 = require("react/jsx-dev-runtime");
|
|
7502
7481
|
function PlainTimestampControl({
|
|
7503
7482
|
data,
|
|
7504
7483
|
handleChange,
|
|
@@ -7510,8 +7489,8 @@ function PlainTimestampControl({
|
|
|
7510
7489
|
const {
|
|
7511
7490
|
formOptions: { withDescriptions }
|
|
7512
7491
|
} = useFormOptions();
|
|
7513
|
-
return /* @__PURE__ */
|
|
7514
|
-
children: /* @__PURE__ */
|
|
7492
|
+
return /* @__PURE__ */ jsx_dev_runtime42.jsxDEV(jsx_dev_runtime42.Fragment, {
|
|
7493
|
+
children: /* @__PURE__ */ jsx_dev_runtime42.jsxDEV(import_core35.Select, {
|
|
7515
7494
|
label,
|
|
7516
7495
|
data: schema.enum,
|
|
7517
7496
|
value: data,
|
|
@@ -7525,63 +7504,63 @@ function PlainTimestampControl({
|
|
|
7525
7504
|
}, undefined, false, undefined, this)
|
|
7526
7505
|
}, undefined, false, undefined, this);
|
|
7527
7506
|
}
|
|
7528
|
-
var TimestampControl =
|
|
7507
|
+
var TimestampControl = import_react27.withJsonFormsControlProps(PlainTimestampControl);
|
|
7529
7508
|
var StringSelectControl_default = TimestampControl;
|
|
7530
7509
|
|
|
7531
7510
|
// src/jsonforms/renderers/testers/anyOfTester.ts
|
|
7532
|
-
var
|
|
7533
|
-
var tester =
|
|
7511
|
+
var import_core36 = require("@jsonforms/core");
|
|
7512
|
+
var tester = import_core36.rankWith(10, import_core36.and(import_core36.uiTypeIs("Control"), import_core36.isAnyOfControl));
|
|
7534
7513
|
var anyOfTester_default = tester;
|
|
7535
7514
|
|
|
7536
7515
|
// src/jsonforms/renderers/testers/arrayControlTester.ts
|
|
7537
|
-
var
|
|
7538
|
-
var tester2 =
|
|
7516
|
+
var import_core37 = require("@jsonforms/core");
|
|
7517
|
+
var tester2 = import_core37.rankWith(10, import_core37.and(import_core37.uiTypeIs("Control"), import_core37.schemaTypeIs("array")));
|
|
7539
7518
|
var arrayControlTester_default = tester2;
|
|
7540
7519
|
|
|
7541
7520
|
// src/jsonforms/renderers/testers/checkboxControlTester.ts
|
|
7542
|
-
var
|
|
7543
|
-
var tester3 =
|
|
7521
|
+
var import_core38 = require("@jsonforms/core");
|
|
7522
|
+
var tester3 = import_core38.rankWith(10, import_core38.and(import_core38.uiTypeIs("Control"), import_core38.schemaTypeIs("boolean")));
|
|
7544
7523
|
var checkboxControlTester_default = tester3;
|
|
7545
7524
|
|
|
7546
7525
|
// src/jsonforms/renderers/testers/numberControlTester.ts
|
|
7547
|
-
var
|
|
7548
|
-
var tester4 =
|
|
7526
|
+
var import_core39 = require("@jsonforms/core");
|
|
7527
|
+
var tester4 = import_core39.rankWith(8, (a, b, c) => {
|
|
7549
7528
|
if (b.type === "integer") {
|
|
7550
7529
|
return true;
|
|
7551
7530
|
}
|
|
7552
|
-
return
|
|
7531
|
+
return import_core39.and(import_core39.uiTypeIs("Control"), import_core39.or(import_core39.schemaTypeIs("number"), import_core39.schemaTypeIs("integer")))(a, b, c);
|
|
7553
7532
|
});
|
|
7554
7533
|
var numberControlTester_default = tester4;
|
|
7555
7534
|
|
|
7556
7535
|
// src/jsonforms/renderers/testers/objectControlTester.ts
|
|
7557
|
-
var
|
|
7558
|
-
var tester5 =
|
|
7536
|
+
var import_core40 = require("@jsonforms/core");
|
|
7537
|
+
var tester5 = import_core40.rankWith(10, import_core40.and(import_core40.uiTypeIs("Control"), import_core40.schemaTypeIs("object")));
|
|
7559
7538
|
var objectControlTester_default = tester5;
|
|
7560
7539
|
|
|
7561
7540
|
// src/jsonforms/renderers/testers/stringSelectControlTester.ts
|
|
7562
|
-
var
|
|
7563
|
-
var tester6 =
|
|
7541
|
+
var import_core41 = require("@jsonforms/core");
|
|
7542
|
+
var tester6 = import_core41.rankWith(11, import_core41.and(import_core41.uiTypeIs("Control"), import_core41.schemaTypeIs("string"), import_core41.isEnumControl));
|
|
7564
7543
|
var stringSelectControlTester_default = tester6;
|
|
7565
7544
|
|
|
7566
7545
|
// src/jsonforms/renderers/testers/textControlTester.ts
|
|
7567
|
-
var
|
|
7568
|
-
var tester7 =
|
|
7546
|
+
var import_core42 = require("@jsonforms/core");
|
|
7547
|
+
var tester7 = import_core42.rankWith(10, import_core42.and(import_core42.uiTypeIs("Control"), import_core42.schemaTypeIs("string")));
|
|
7569
7548
|
var textControlTester_default = tester7;
|
|
7570
7549
|
|
|
7571
7550
|
// src/jsonforms/renderers/testers/timestampControlTester.ts
|
|
7572
|
-
var
|
|
7573
|
-
var tester8 =
|
|
7551
|
+
var import_core43 = require("@jsonforms/core");
|
|
7552
|
+
var tester8 = import_core43.rankWith(11, import_core43.and(import_core43.uiTypeIs("Control"), import_core43.schemaTypeIs("integer"), import_core43.scopeEndsWith("startTime")));
|
|
7574
7553
|
var timestampControlTester_default = tester8;
|
|
7575
7554
|
|
|
7576
7555
|
// src/jsonforms/renderers/testers/verticalLayoutTester.ts
|
|
7577
|
-
var
|
|
7578
|
-
var tester9 =
|
|
7556
|
+
var import_core44 = require("@jsonforms/core");
|
|
7557
|
+
var tester9 = import_core44.rankWith(2, import_core44.uiTypeIs("VerticalLayout"));
|
|
7579
7558
|
var verticalLayoutTester_default = tester9;
|
|
7580
7559
|
|
|
7581
7560
|
// src/jsonforms/renderers/TextControl.tsx
|
|
7582
|
-
var
|
|
7583
|
-
var
|
|
7584
|
-
var
|
|
7561
|
+
var import_react28 = require("@jsonforms/react");
|
|
7562
|
+
var import_core45 = require("@mantine/core");
|
|
7563
|
+
var jsx_dev_runtime43 = require("react/jsx-dev-runtime");
|
|
7585
7564
|
function PlainTextControl({
|
|
7586
7565
|
data,
|
|
7587
7566
|
handleChange,
|
|
@@ -7593,8 +7572,8 @@ function PlainTextControl({
|
|
|
7593
7572
|
const {
|
|
7594
7573
|
formOptions: { withDescriptions }
|
|
7595
7574
|
} = useFormOptions();
|
|
7596
|
-
return /* @__PURE__ */
|
|
7597
|
-
children: /* @__PURE__ */
|
|
7575
|
+
return /* @__PURE__ */ jsx_dev_runtime43.jsxDEV(jsx_dev_runtime43.Fragment, {
|
|
7576
|
+
children: /* @__PURE__ */ jsx_dev_runtime43.jsxDEV(import_core45.TextInput, {
|
|
7598
7577
|
label,
|
|
7599
7578
|
variant: "default",
|
|
7600
7579
|
placeholder: "",
|
|
@@ -7607,13 +7586,13 @@ function PlainTextControl({
|
|
|
7607
7586
|
}, undefined, false, undefined, this)
|
|
7608
7587
|
}, undefined, false, undefined, this);
|
|
7609
7588
|
}
|
|
7610
|
-
var TextControl =
|
|
7589
|
+
var TextControl = import_react28.withJsonFormsControlProps(PlainTextControl);
|
|
7611
7590
|
var TextControl_default = TextControl;
|
|
7612
7591
|
|
|
7613
7592
|
// src/jsonforms/renderers/TimestampControl.tsx
|
|
7614
|
-
var
|
|
7593
|
+
var import_react29 = require("@jsonforms/react");
|
|
7615
7594
|
var import_dates = require("@mantine/dates");
|
|
7616
|
-
var
|
|
7595
|
+
var jsx_dev_runtime44 = require("react/jsx-dev-runtime");
|
|
7617
7596
|
function PlainTimestampControl2({
|
|
7618
7597
|
data,
|
|
7619
7598
|
handleChange,
|
|
@@ -7625,8 +7604,8 @@ function PlainTimestampControl2({
|
|
|
7625
7604
|
const {
|
|
7626
7605
|
formOptions: { withDescriptions }
|
|
7627
7606
|
} = useFormOptions();
|
|
7628
|
-
return /* @__PURE__ */
|
|
7629
|
-
children: /* @__PURE__ */
|
|
7607
|
+
return /* @__PURE__ */ jsx_dev_runtime44.jsxDEV(jsx_dev_runtime44.Fragment, {
|
|
7608
|
+
children: /* @__PURE__ */ jsx_dev_runtime44.jsxDEV(import_dates.DatePickerInput, {
|
|
7630
7609
|
variant: "default",
|
|
7631
7610
|
label,
|
|
7632
7611
|
placeholder: "Pick a date",
|
|
@@ -7641,35 +7620,35 @@ function PlainTimestampControl2({
|
|
|
7641
7620
|
}, undefined, false, undefined, this)
|
|
7642
7621
|
}, undefined, false, undefined, this);
|
|
7643
7622
|
}
|
|
7644
|
-
var TimestampControl2 =
|
|
7623
|
+
var TimestampControl2 = import_react29.withJsonFormsControlProps(PlainTimestampControl2);
|
|
7645
7624
|
var TimestampControl_default = TimestampControl2;
|
|
7646
7625
|
|
|
7647
7626
|
// src/jsonforms/renderers/VerticalLayout.tsx
|
|
7648
|
-
var
|
|
7649
|
-
var import_react30 = require("@jsonforms/react");
|
|
7627
|
+
var import_react30 = __toESM(require("react"));
|
|
7650
7628
|
var import_react31 = require("@jsonforms/react");
|
|
7651
|
-
var
|
|
7629
|
+
var import_react32 = require("@jsonforms/react");
|
|
7630
|
+
var jsx_dev_runtime45 = require("react/jsx-dev-runtime");
|
|
7652
7631
|
"use client";
|
|
7653
7632
|
var JsonFormsLayout = ({
|
|
7654
7633
|
className,
|
|
7655
7634
|
children,
|
|
7656
7635
|
visible
|
|
7657
7636
|
}) => {
|
|
7658
|
-
return /* @__PURE__ */
|
|
7637
|
+
return /* @__PURE__ */ jsx_dev_runtime45.jsxDEV("div", {
|
|
7659
7638
|
className,
|
|
7660
7639
|
hidden: visible === undefined || visible === null ? false : !visible,
|
|
7661
7640
|
children
|
|
7662
7641
|
}, undefined, false, undefined, this);
|
|
7663
7642
|
};
|
|
7664
7643
|
var renderChildren = (layout, schema, className, path, enabled) => {
|
|
7665
|
-
const { renderers, cells } =
|
|
7644
|
+
const { renderers, cells } = import_react32.useJsonForms();
|
|
7666
7645
|
const { formOptions } = useFormOptions();
|
|
7667
7646
|
const gutter = typeof formOptions.gutter === "string" ? `var(--mantine-spacing-${formOptions.gutter})` : `${formOptions.gutter}px`;
|
|
7668
7647
|
return layout.elements.map((child, index) => {
|
|
7669
|
-
return /* @__PURE__ */
|
|
7648
|
+
return /* @__PURE__ */ jsx_dev_runtime45.jsxDEV("div", {
|
|
7670
7649
|
className,
|
|
7671
7650
|
style: { marginTop: index === 0 ? 0 : gutter },
|
|
7672
|
-
children: /* @__PURE__ */
|
|
7651
|
+
children: /* @__PURE__ */ jsx_dev_runtime45.jsxDEV(import_react32.JsonFormsDispatch, {
|
|
7673
7652
|
renderers,
|
|
7674
7653
|
cells,
|
|
7675
7654
|
uischema: child,
|
|
@@ -7682,11 +7661,11 @@ var renderChildren = (layout, schema, className, path, enabled) => {
|
|
|
7682
7661
|
};
|
|
7683
7662
|
var VerticalLayoutRenderer = (props) => {
|
|
7684
7663
|
const { data: _data, ...otherProps } = props;
|
|
7685
|
-
return /* @__PURE__ */
|
|
7664
|
+
return /* @__PURE__ */ jsx_dev_runtime45.jsxDEV(VerticalLayoutRendererComponent, {
|
|
7686
7665
|
...otherProps
|
|
7687
7666
|
}, undefined, false, undefined, this);
|
|
7688
7667
|
};
|
|
7689
|
-
var VerticalLayoutRendererComponent =
|
|
7668
|
+
var VerticalLayoutRendererComponent = import_react30.default.memo(function VerticalLayoutRendererComponent2({
|
|
7690
7669
|
schema,
|
|
7691
7670
|
uischema,
|
|
7692
7671
|
path,
|
|
@@ -7696,7 +7675,7 @@ var VerticalLayoutRendererComponent = import_react29.default.memo(function Verti
|
|
|
7696
7675
|
const verticalLayout = uischema;
|
|
7697
7676
|
const layoutClassName = "";
|
|
7698
7677
|
const childClassNames = "";
|
|
7699
|
-
return /* @__PURE__ */
|
|
7678
|
+
return /* @__PURE__ */ jsx_dev_runtime45.jsxDEV(JsonFormsLayout, {
|
|
7700
7679
|
className: layoutClassName,
|
|
7701
7680
|
uischema,
|
|
7702
7681
|
schema,
|
|
@@ -7706,7 +7685,7 @@ var VerticalLayoutRendererComponent = import_react29.default.memo(function Verti
|
|
|
7706
7685
|
children: renderChildren(verticalLayout, schema, childClassNames, path, enabled)
|
|
7707
7686
|
}, undefined, false, undefined, this);
|
|
7708
7687
|
});
|
|
7709
|
-
var VerticalLayout =
|
|
7688
|
+
var VerticalLayout = import_react31.withJsonFormsLayoutProps(VerticalLayoutRenderer, false);
|
|
7710
7689
|
var VerticalLayout_default = VerticalLayout;
|
|
7711
7690
|
|
|
7712
7691
|
// src/jsonforms/renderers/index.ts
|