remoraid 2.19.4 → 2.20.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 +281 -251
- package/dist/core/index.d.ts +153 -133
- package/dist/core/index.js +268 -243
- package/dist/core/styles.css +6 -1
- package/dist/jsonforms/index.cjs +20 -11
- package/dist/jsonforms/index.js +57 -17
- package/dist/server/index.d.ts +45 -6
- package/package.json +3 -2
package/dist/core/styles.css
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
.remoraid-controls {
|
|
22
|
-
z-index:
|
|
22
|
+
z-index: 400;
|
|
23
23
|
cursor: grab;
|
|
24
24
|
&:active {
|
|
25
25
|
cursor: grabbing;
|
|
@@ -28,6 +28,11 @@
|
|
|
28
28
|
display: none;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
+
.remoraid-badge-group {
|
|
32
|
+
&:empty {
|
|
33
|
+
display: none;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
31
36
|
.remoraid-frame-layout {
|
|
32
37
|
--remoraid-frame-layout-content-section-padding-top: var(
|
|
33
38
|
--remoraid-frame-layout-gutter
|
package/dist/jsonforms/index.cjs
CHANGED
|
@@ -259,7 +259,7 @@ function PlainArrayControl(props) {
|
|
|
259
259
|
setIsHoveringDelete(null);
|
|
260
260
|
},
|
|
261
261
|
children: /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(import_icons_react.IconTrash, {
|
|
262
|
-
...theme.
|
|
262
|
+
...theme.componentsProps.icons.medium
|
|
263
263
|
}, undefined, false, undefined, this)
|
|
264
264
|
}, undefined, false, undefined, this)
|
|
265
265
|
}, undefined, false, undefined, this)
|
|
@@ -269,7 +269,7 @@ function PlainArrayControl(props) {
|
|
|
269
269
|
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(import_core2.Button, {
|
|
270
270
|
variant: "default",
|
|
271
271
|
leftSection: /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(import_icons_react.IconPlus, {
|
|
272
|
-
...theme.
|
|
272
|
+
...theme.componentsProps.icons.medium
|
|
273
273
|
}, undefined, false, undefined, this),
|
|
274
274
|
onClick: () => {
|
|
275
275
|
let defaultValue = "";
|
|
@@ -437,44 +437,53 @@ var StringSelectControl_default = TimestampControl;
|
|
|
437
437
|
|
|
438
438
|
// src/jsonforms/renderers/testers/anyOfTester.ts
|
|
439
439
|
var import_core8 = require("@jsonforms/core");
|
|
440
|
-
var
|
|
440
|
+
var tester = import_core8.rankWith(10, import_core8.and(import_core8.uiTypeIs("Control"), import_core8.isAnyOfControl));
|
|
441
|
+
var anyOfTester_default = tester;
|
|
441
442
|
|
|
442
443
|
// src/jsonforms/renderers/testers/arrayControlTester.ts
|
|
443
444
|
var import_core9 = require("@jsonforms/core");
|
|
444
|
-
var
|
|
445
|
+
var tester2 = import_core9.rankWith(10, import_core9.and(import_core9.uiTypeIs("Control"), import_core9.schemaTypeIs("array")));
|
|
446
|
+
var arrayControlTester_default = tester2;
|
|
445
447
|
|
|
446
448
|
// src/jsonforms/renderers/testers/checkboxControlTester.ts
|
|
447
449
|
var import_core10 = require("@jsonforms/core");
|
|
448
|
-
var
|
|
450
|
+
var tester3 = import_core10.rankWith(10, import_core10.and(import_core10.uiTypeIs("Control"), import_core10.schemaTypeIs("boolean")));
|
|
451
|
+
var checkboxControlTester_default = tester3;
|
|
449
452
|
|
|
450
453
|
// src/jsonforms/renderers/testers/numberControlTester.ts
|
|
451
454
|
var import_core11 = require("@jsonforms/core");
|
|
452
|
-
var
|
|
455
|
+
var tester4 = import_core11.rankWith(8, (a, b, c) => {
|
|
453
456
|
if (b.type === "integer") {
|
|
454
457
|
return true;
|
|
455
458
|
}
|
|
456
459
|
return import_core11.and(import_core11.uiTypeIs("Control"), import_core11.or(import_core11.schemaTypeIs("number"), import_core11.schemaTypeIs("integer")))(a, b, c);
|
|
457
460
|
});
|
|
461
|
+
var numberControlTester_default = tester4;
|
|
458
462
|
|
|
459
463
|
// src/jsonforms/renderers/testers/objectControlTester.ts
|
|
460
464
|
var import_core12 = require("@jsonforms/core");
|
|
461
|
-
var
|
|
465
|
+
var tester5 = import_core12.rankWith(10, import_core12.and(import_core12.uiTypeIs("Control"), import_core12.schemaTypeIs("object")));
|
|
466
|
+
var objectControlTester_default = tester5;
|
|
462
467
|
|
|
463
468
|
// src/jsonforms/renderers/testers/stringSelectControlTester.ts
|
|
464
469
|
var import_core13 = require("@jsonforms/core");
|
|
465
|
-
var
|
|
470
|
+
var tester6 = import_core13.rankWith(11, import_core13.and(import_core13.uiTypeIs("Control"), import_core13.schemaTypeIs("string"), import_core13.isEnumControl));
|
|
471
|
+
var stringSelectControlTester_default = tester6;
|
|
466
472
|
|
|
467
473
|
// src/jsonforms/renderers/testers/textControlTester.ts
|
|
468
474
|
var import_core14 = require("@jsonforms/core");
|
|
469
|
-
var
|
|
475
|
+
var tester7 = import_core14.rankWith(10, import_core14.and(import_core14.uiTypeIs("Control"), import_core14.schemaTypeIs("string")));
|
|
476
|
+
var textControlTester_default = tester7;
|
|
470
477
|
|
|
471
478
|
// src/jsonforms/renderers/testers/timestampControlTester.ts
|
|
472
479
|
var import_core15 = require("@jsonforms/core");
|
|
473
|
-
var
|
|
480
|
+
var tester8 = import_core15.rankWith(11, import_core15.and(import_core15.uiTypeIs("Control"), import_core15.schemaTypeIs("integer"), import_core15.scopeEndsWith("startTime")));
|
|
481
|
+
var timestampControlTester_default = tester8;
|
|
474
482
|
|
|
475
483
|
// src/jsonforms/renderers/testers/verticalLayoutTester.ts
|
|
476
484
|
var import_core16 = require("@jsonforms/core");
|
|
477
|
-
var
|
|
485
|
+
var tester9 = import_core16.rankWith(2, import_core16.uiTypeIs("VerticalLayout"));
|
|
486
|
+
var verticalLayoutTester_default = tester9;
|
|
478
487
|
|
|
479
488
|
// src/jsonforms/renderers/TextControl.tsx
|
|
480
489
|
var import_react9 = require("@jsonforms/react");
|
package/dist/jsonforms/index.js
CHANGED
|
@@ -225,7 +225,7 @@ function PlainArrayControl(props) {
|
|
|
225
225
|
setIsHoveringDelete(null);
|
|
226
226
|
},
|
|
227
227
|
children: /* @__PURE__ */ jsxDEV3(IconTrash, {
|
|
228
|
-
...theme.
|
|
228
|
+
...theme.componentsProps.icons.medium
|
|
229
229
|
}, undefined, false, undefined, this)
|
|
230
230
|
}, undefined, false, undefined, this)
|
|
231
231
|
}, undefined, false, undefined, this)
|
|
@@ -235,7 +235,7 @@ function PlainArrayControl(props) {
|
|
|
235
235
|
/* @__PURE__ */ jsxDEV3(Button, {
|
|
236
236
|
variant: "default",
|
|
237
237
|
leftSection: /* @__PURE__ */ jsxDEV3(IconPlus, {
|
|
238
|
-
...theme.
|
|
238
|
+
...theme.componentsProps.icons.medium
|
|
239
239
|
}, undefined, false, undefined, this),
|
|
240
240
|
onClick: () => {
|
|
241
241
|
let defaultValue = "";
|
|
@@ -406,29 +406,60 @@ var TimestampControl = withJsonFormsControlProps6(PlainTimestampControl);
|
|
|
406
406
|
var StringSelectControl_default = TimestampControl;
|
|
407
407
|
|
|
408
408
|
// src/jsonforms/renderers/testers/anyOfTester.ts
|
|
409
|
-
import {
|
|
410
|
-
|
|
409
|
+
import {
|
|
410
|
+
rankWith,
|
|
411
|
+
uiTypeIs,
|
|
412
|
+
and,
|
|
413
|
+
isAnyOfControl
|
|
414
|
+
} from "@jsonforms/core";
|
|
415
|
+
var tester = rankWith(10, and(uiTypeIs("Control"), isAnyOfControl));
|
|
416
|
+
var anyOfTester_default = tester;
|
|
411
417
|
|
|
412
418
|
// src/jsonforms/renderers/testers/arrayControlTester.ts
|
|
413
|
-
import {
|
|
414
|
-
|
|
419
|
+
import {
|
|
420
|
+
rankWith as rankWith2,
|
|
421
|
+
uiTypeIs as uiTypeIs2,
|
|
422
|
+
and as and2,
|
|
423
|
+
schemaTypeIs
|
|
424
|
+
} from "@jsonforms/core";
|
|
425
|
+
var tester2 = rankWith2(10, and2(uiTypeIs2("Control"), schemaTypeIs("array")));
|
|
426
|
+
var arrayControlTester_default = tester2;
|
|
415
427
|
|
|
416
428
|
// src/jsonforms/renderers/testers/checkboxControlTester.ts
|
|
417
|
-
import {
|
|
418
|
-
|
|
429
|
+
import {
|
|
430
|
+
rankWith as rankWith3,
|
|
431
|
+
uiTypeIs as uiTypeIs3,
|
|
432
|
+
and as and3,
|
|
433
|
+
schemaTypeIs as schemaTypeIs2
|
|
434
|
+
} from "@jsonforms/core";
|
|
435
|
+
var tester3 = rankWith3(10, and3(uiTypeIs3("Control"), schemaTypeIs2("boolean")));
|
|
436
|
+
var checkboxControlTester_default = tester3;
|
|
419
437
|
|
|
420
438
|
// src/jsonforms/renderers/testers/numberControlTester.ts
|
|
421
|
-
import {
|
|
422
|
-
|
|
439
|
+
import {
|
|
440
|
+
rankWith as rankWith4,
|
|
441
|
+
uiTypeIs as uiTypeIs4,
|
|
442
|
+
and as and4,
|
|
443
|
+
schemaTypeIs as schemaTypeIs3,
|
|
444
|
+
or
|
|
445
|
+
} from "@jsonforms/core";
|
|
446
|
+
var tester4 = rankWith4(8, (a, b, c) => {
|
|
423
447
|
if (b.type === "integer") {
|
|
424
448
|
return true;
|
|
425
449
|
}
|
|
426
450
|
return and4(uiTypeIs4("Control"), or(schemaTypeIs3("number"), schemaTypeIs3("integer")))(a, b, c);
|
|
427
451
|
});
|
|
452
|
+
var numberControlTester_default = tester4;
|
|
428
453
|
|
|
429
454
|
// src/jsonforms/renderers/testers/objectControlTester.ts
|
|
430
|
-
import {
|
|
431
|
-
|
|
455
|
+
import {
|
|
456
|
+
rankWith as rankWith5,
|
|
457
|
+
uiTypeIs as uiTypeIs5,
|
|
458
|
+
and as and5,
|
|
459
|
+
schemaTypeIs as schemaTypeIs4
|
|
460
|
+
} from "@jsonforms/core";
|
|
461
|
+
var tester5 = rankWith5(10, and5(uiTypeIs5("Control"), schemaTypeIs4("object")));
|
|
462
|
+
var objectControlTester_default = tester5;
|
|
432
463
|
|
|
433
464
|
// src/jsonforms/renderers/testers/stringSelectControlTester.ts
|
|
434
465
|
import {
|
|
@@ -438,11 +469,18 @@ import {
|
|
|
438
469
|
schemaTypeIs as schemaTypeIs5,
|
|
439
470
|
isEnumControl
|
|
440
471
|
} from "@jsonforms/core";
|
|
441
|
-
var
|
|
472
|
+
var tester6 = rankWith6(11, and6(uiTypeIs6("Control"), schemaTypeIs5("string"), isEnumControl));
|
|
473
|
+
var stringSelectControlTester_default = tester6;
|
|
442
474
|
|
|
443
475
|
// src/jsonforms/renderers/testers/textControlTester.ts
|
|
444
|
-
import {
|
|
445
|
-
|
|
476
|
+
import {
|
|
477
|
+
rankWith as rankWith7,
|
|
478
|
+
uiTypeIs as uiTypeIs7,
|
|
479
|
+
and as and7,
|
|
480
|
+
schemaTypeIs as schemaTypeIs6
|
|
481
|
+
} from "@jsonforms/core";
|
|
482
|
+
var tester7 = rankWith7(10, and7(uiTypeIs7("Control"), schemaTypeIs6("string")));
|
|
483
|
+
var textControlTester_default = tester7;
|
|
446
484
|
|
|
447
485
|
// src/jsonforms/renderers/testers/timestampControlTester.ts
|
|
448
486
|
import {
|
|
@@ -452,11 +490,13 @@ import {
|
|
|
452
490
|
schemaTypeIs as schemaTypeIs7,
|
|
453
491
|
scopeEndsWith
|
|
454
492
|
} from "@jsonforms/core";
|
|
455
|
-
var
|
|
493
|
+
var tester8 = rankWith8(11, and8(uiTypeIs8("Control"), schemaTypeIs7("integer"), scopeEndsWith("startTime")));
|
|
494
|
+
var timestampControlTester_default = tester8;
|
|
456
495
|
|
|
457
496
|
// src/jsonforms/renderers/testers/verticalLayoutTester.ts
|
|
458
497
|
import { rankWith as rankWith9, uiTypeIs as uiTypeIs9 } from "@jsonforms/core";
|
|
459
|
-
var
|
|
498
|
+
var tester9 = rankWith9(2, uiTypeIs9("VerticalLayout"));
|
|
499
|
+
var verticalLayoutTester_default = tester9;
|
|
460
500
|
|
|
461
501
|
// src/jsonforms/renderers/TextControl.tsx
|
|
462
502
|
import { withJsonFormsControlProps as withJsonFormsControlProps7 } from "@jsonforms/react";
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,12 +1,51 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AlertProps, TransitionProps } from "@mantine/core";
|
|
2
|
+
import { Icon, IconProps } from "@tabler/icons-react";
|
|
3
|
+
interface AlertMinimalProps {
|
|
4
|
+
category: AlertCategory;
|
|
5
|
+
title?: AlertProps["title"];
|
|
6
|
+
color?: AlertProps["color"];
|
|
7
|
+
onClose?: AlertProps["onClose"];
|
|
8
|
+
text?: string;
|
|
9
|
+
icon?: Icon;
|
|
10
|
+
iconSize?: RemoraidIconSize;
|
|
11
|
+
mounted?: TransitionProps["mounted"];
|
|
12
|
+
componentsProps?: {
|
|
13
|
+
icon?: Partial<IconProps>
|
|
14
|
+
alert?: Partial<AlertProps>
|
|
15
|
+
transition?: Omit<TransitionProps, "mounted">
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
declare enum AlertCategory {
|
|
19
|
+
Negative = "negative",
|
|
20
|
+
Neutral = "neutral",
|
|
21
|
+
Positive = "positive"
|
|
22
|
+
}
|
|
23
|
+
declare enum RemoraidIconSize {
|
|
24
|
+
Tiny = "tiny",
|
|
25
|
+
Small = "small",
|
|
26
|
+
Medium = "medium"
|
|
27
|
+
}
|
|
28
|
+
import { ContainerProps, MantineSize as MantineSize3 } from "@mantine/core";
|
|
29
|
+
interface PageContainerProps {
|
|
30
|
+
p?: MantineSize3 | number;
|
|
31
|
+
hidden?: boolean;
|
|
32
|
+
componentsProps?: {
|
|
33
|
+
container?: ContainerProps
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
declare enum EnvironmentShellVariant {
|
|
37
|
+
Alert = "alert",
|
|
38
|
+
Error = "error",
|
|
39
|
+
Silent = "silent"
|
|
40
|
+
}
|
|
2
41
|
interface EnvironmentShellProps {
|
|
3
|
-
environment: Record<string, string | undefined
|
|
42
|
+
environment: Partial<Record<string, string | undefined>>;
|
|
43
|
+
variant?: EnvironmentShellVariant;
|
|
4
44
|
message?: string;
|
|
5
|
-
|
|
6
|
-
mt?: MantineSize11 | number;
|
|
7
|
-
withContainer?: boolean;
|
|
45
|
+
includeAlertContainer?: boolean;
|
|
8
46
|
componentsProps?: {
|
|
9
|
-
|
|
47
|
+
alert: Partial<AlertMinimalProps>
|
|
48
|
+
alertContainer: Partial<PageContainerProps>
|
|
10
49
|
};
|
|
11
50
|
}
|
|
12
51
|
import { PropsWithChildren as PropsWithChildren23, ReactNode as ReactNode36 } from "react";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "remoraid",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.20.2",
|
|
4
4
|
"author": "Konrad Goldammer",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -76,6 +76,7 @@
|
|
|
76
76
|
"type": "module",
|
|
77
77
|
"dependencies": {
|
|
78
78
|
"clsx": "^2.1.1",
|
|
79
|
-
"lodash": "^4.17.21"
|
|
79
|
+
"lodash": "^4.17.21",
|
|
80
|
+
"type-fest": "^4.41.0"
|
|
80
81
|
}
|
|
81
82
|
}
|