ebta-workflow-prod 4.1.8 → 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/package.json
CHANGED
|
@@ -4,9 +4,9 @@ import { FormElementProps, FormElementRegistration } from "@vertigis/workflow";
|
|
|
4
4
|
import { ColorInput, ColorPicker } from '@mantine/core';
|
|
5
5
|
type ColorFormat = "hex" | "rgba" | "rgb" | "hsl" | "hsla";
|
|
6
6
|
|
|
7
|
-
import "@mantine/core/styles.css";
|
|
7
|
+
//import "@mantine/core/styles.css";
|
|
8
8
|
//Causing shrink
|
|
9
|
-
|
|
9
|
+
|
|
10
10
|
import Color from "@arcgis/core/Color";
|
|
11
11
|
|
|
12
12
|
|
|
@@ -49,6 +49,7 @@ function CsColorPickerV2(props: CsColorPickerV2Props): React.ReactElement {
|
|
|
49
49
|
swatchesPerRow,
|
|
50
50
|
componentType
|
|
51
51
|
} = props;
|
|
52
|
+
const rootRef = React.useRef<HTMLDivElement>(null);
|
|
52
53
|
|
|
53
54
|
const handleChange = (color: string) => {
|
|
54
55
|
let esriColor: Color;
|
|
@@ -80,32 +81,40 @@ function CsColorPickerV2(props: CsColorPickerV2Props): React.ReactElement {
|
|
|
80
81
|
};
|
|
81
82
|
|
|
82
83
|
return (
|
|
83
|
-
<
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
84
|
+
<div ref={rootRef} className="cs-color-picker-root">
|
|
85
|
+
<MantineProvider
|
|
86
|
+
withStaticClasses
|
|
87
|
+
withGlobalClasses
|
|
88
|
+
classNamesPrefix="ebta-mantime"
|
|
89
|
+
cssVariablesSelector=".cs-color-picker-root"
|
|
90
|
+
getRootElement={() => rootRef.current ?? undefined}
|
|
91
|
+
>
|
|
92
|
+
{componentType === "ColorInput" ? (
|
|
93
|
+
<ColorInput
|
|
94
|
+
swatches={swatches? swatches : undefined}
|
|
95
|
+
swatchesPerRow={swatches ? swatchesPerRow : undefined}
|
|
96
|
+
value={value}
|
|
97
|
+
size={colorPickerSize}
|
|
98
|
+
onChange={handleChange}
|
|
99
|
+
description={description ? description : undefined}
|
|
100
|
+
placeholder={placeholder ? placeholder : undefined}
|
|
101
|
+
format={colorType}
|
|
102
|
+
defaultValue={defaultValue}
|
|
103
|
+
/>
|
|
104
|
+
) : (
|
|
105
|
+
<ColorPicker
|
|
106
|
+
fullWidth
|
|
107
|
+
size={colorPickerSize}
|
|
108
|
+
swatches={swatches? swatches : undefined}
|
|
109
|
+
swatchesPerRow={swatches ? swatchesPerRow : undefined}
|
|
110
|
+
value={value}
|
|
111
|
+
onChange={handleChange}
|
|
112
|
+
format={colorType}
|
|
113
|
+
defaultValue={defaultValue}
|
|
114
|
+
/>
|
|
115
|
+
)}
|
|
116
|
+
</MantineProvider>
|
|
117
|
+
</div>
|
|
109
118
|
);
|
|
110
119
|
}
|
|
111
120
|
|
|
@@ -777,7 +777,7 @@ video.removeEventListener("progress", onProgress);
|
|
|
777
777
|
</div>
|
|
778
778
|
|
|
779
779
|
<div style={barStyle}>
|
|
780
|
-
<button type="button" style={btnStyle} onClick={togglePlay} title="Play / pause">
|
|
780
|
+
<button type="button" style={btnStyle} onClick={togglePlay} title="Play / pause or 'Space' key">
|
|
781
781
|
{playing ? "⏸" : "▶"}
|
|
782
782
|
</button>
|
|
783
783
|
{/* <button type="button" style={btnStyle} onClick={toggleMute} title="Sound on / off">
|
|
@@ -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/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
|
+
}
|