ebta-workflow-prod 4.1.7 → 4.1.9
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/build/activitypack.json +1 -1
- package/build/main.js +6 -6
- package/package.json +2 -2
- package/src/activities/Sample.ts +2 -2
- package/src/elements/CsColorPicker.tsx +38 -29
- package/src/elements/PanovideoPlayer.tsx +772 -145
- package/src/elements/SampleInput.tsx +11 -9
- package/src/elements/SingleAutoCompleteCS.tsx +1 -0
- package/src/elements/Timeline.tsx +9 -2
- package/src/index.ts +1 -1
- package/src/main.ts +2 -0
- package/src/styles/mantine-body-reset.css +9 -0
|
@@ -11,16 +11,16 @@ import { FormElementProps, FormElementRegistration } from "@vertigis/workflow";
|
|
|
11
11
|
* runtime, and passed in as `props`. You can update the properties by using
|
|
12
12
|
* `props.setProperty(key, value)`.
|
|
13
13
|
*/
|
|
14
|
-
interface
|
|
14
|
+
interface sampleInputDEVProps extends FormElementProps<string> {}
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* A Workflow element built using React.
|
|
18
|
-
* @displayName
|
|
19
|
-
* @description
|
|
18
|
+
* @displayName sampleInputDEV
|
|
19
|
+
* @description sampleInputDEV
|
|
20
20
|
* @param props The props that will be provided by the Workflow runtime.
|
|
21
21
|
*/
|
|
22
|
-
function
|
|
23
|
-
const { setValue, value } = props;
|
|
22
|
+
function sampleInputDEV(props: sampleInputDEVProps): React.ReactElement {
|
|
23
|
+
const { setValue, value } = props;0
|
|
24
24
|
return (
|
|
25
25
|
<input
|
|
26
26
|
onChange={(event) => setValue(event.currentTarget.value)}
|
|
@@ -29,10 +29,12 @@ function SampleInput(props: SampleInputProps): React.ReactElement {
|
|
|
29
29
|
);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
const
|
|
33
|
-
component:
|
|
32
|
+
const sampleInputDEVElementRegistration: FormElementRegistration<sampleInputDEVProps> = {
|
|
33
|
+
component: sampleInputDEV,
|
|
34
34
|
getInitialProperties: () => ({ value: "Hello World" }),
|
|
35
|
-
id: "
|
|
35
|
+
id: "sampleInputDEV",
|
|
36
36
|
};
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
|
|
39
|
+
export default sampleInputDEVElementRegistration;
|
|
40
|
+
|
|
@@ -2,7 +2,7 @@ import * as React from "react";
|
|
|
2
2
|
import { FormElementProps, FormElementRegistration } from "@vertigis/workflow";
|
|
3
3
|
import { Timeline as MainTimeLine, Text } from '@mantine/core';
|
|
4
4
|
import { MantineProvider } from '@mantine/core';
|
|
5
|
-
|
|
5
|
+
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* The generic type argument provided to `FormElementProps<T>` controls the type
|
|
@@ -40,8 +40,14 @@ interface TimelineProps extends FormElementProps<string> {
|
|
|
40
40
|
function Timeline(props: TimelineProps): React.ReactElement {
|
|
41
41
|
const { itemDetails, iconSize, lineWidth, active, color, reverseActive } = props;
|
|
42
42
|
iconSize * 0.6
|
|
43
|
+
|
|
44
|
+
const rootRef = React.useRef<HTMLDivElement>(null);
|
|
43
45
|
return (
|
|
44
|
-
|
|
46
|
+
<div ref={rootRef} className="cs-timeline-root">
|
|
47
|
+
<MantineProvider
|
|
48
|
+
cssVariablesSelector=".cs-timeline-root"
|
|
49
|
+
getRootElement={() => rootRef.current ?? undefined}
|
|
50
|
+
>
|
|
45
51
|
<MainTimeLine active={active} bulletSize={iconSize} lineWidth={lineWidth} color={color} reverseActive={reverseActive}>
|
|
46
52
|
|
|
47
53
|
{itemDetails.map((item, index) => {
|
|
@@ -62,6 +68,7 @@ function Timeline(props: TimelineProps): React.ReactElement {
|
|
|
62
68
|
})}
|
|
63
69
|
</MainTimeLine>
|
|
64
70
|
</MantineProvider>
|
|
71
|
+
</div>
|
|
65
72
|
);
|
|
66
73
|
}
|
|
67
74
|
|
package/src/index.ts
CHANGED
|
@@ -39,5 +39,5 @@ export { default as SliceLineActivity } from "./activities/SliceLine";
|
|
|
39
39
|
export { default as GetTaskStatusActivity } from "./activities/GetTaskStatus";
|
|
40
40
|
export { default as DrapGeometryActivity } from "./activities/DrapGeometry";
|
|
41
41
|
export { default as SampleActivity } from "./activities/Sample";
|
|
42
|
-
export { default as
|
|
42
|
+
export { default as sampleInputDEVRegistration } from "./elements/SampleInput";
|
|
43
43
|
|
package/src/main.ts
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
body {
|
|
2
|
+
font-family: inherit !important;
|
|
3
|
+
font-size: inherit !important;
|
|
4
|
+
line-height: inherit !important;
|
|
5
|
+
color: inherit !important;
|
|
6
|
+
background-color: inherit !important;
|
|
7
|
+
-webkit-font-smoothing: initial !important;
|
|
8
|
+
-moz-osx-font-smoothing: initial !important;
|
|
9
|
+
}
|