ebta-workflow-prod 4.0.24 → 4.1.1

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.
@@ -0,0 +1,12 @@
1
+
2
+ import { defineConfig, globalIgnores } from "eslint/config";
3
+ import baseConfig from "@vertigis/workflow-sdk/config/eslint.config.js";
4
+
5
+ export default defineConfig([
6
+ globalIgnores(["**/*.js", "**/*.d.ts"]),
7
+ baseConfig,
8
+ {
9
+ // Add your custom rules or other eslint config overrides here.
10
+ rules: {}
11
+ }
12
+ ]);
package/package.json CHANGED
@@ -1,47 +1,56 @@
1
1
  {
2
- "name": "ebta-workflow-prod",
3
- "private": false,
4
- "version": "4.0.24",
5
- "description": "",
6
- "license": "UNLICENSED",
7
- "author": "",
8
- "scripts": {
9
- "build": "vertigis-workflow-sdk build",
10
- "generate": "vertigis-workflow-sdk generate",
11
- "start": "vertigis-workflow-sdk start"
12
- },
13
- "devDependencies": {
14
- "@vertigis/workflow": "^5.44.0",
15
- "@vertigis/workflow-sdk": "^4.1.0",
16
- "typescript": "^5.7.3"
17
- },
18
- "browserslist": [
19
- "last 2 chrome versions",
20
- "last 2 edge versions",
21
- "last 2 firefox versions",
22
- "last 2 safari versions",
23
- "ie 11"
24
- ],
25
- "dependencies": {
26
- "@arcgis/core": "^4.29.10",
27
- "@fseehawer/react-circular-slider": "^3.2.7",
28
- "@mantine/core": "^7.16.0",
29
- "@mui/icons-material": "^5.17.1",
30
- "@mui/material": "^5.17.1",
31
- "@mui/x-charts": "^7.6.2",
32
- "@turf/turf": "^6.5.0",
33
- "@types/arcgis-js-api": "^4.28.0",
34
- "@vertigis/web": "^5.34.0",
35
- "@xmldom/xmldom": "^0.8.10",
36
- "arcgis-js-api": "^4.30.8",
37
- "axios": "^1.7.7",
38
- "html2canvas": "^1.4.1",
39
- "pannellum-react-update": "^1.0.0",
40
- "pdf-lib": "^1.17.1",
41
- "qrcode": "^1.5.4",
42
- "react-color": "^2.19.3",
43
- "react-color-palette": "^7.3.0",
44
- "react-simple-image-slider": "^2.4.1",
45
- "react-slideshow-image": "^4.3.1"
46
- }
47
- }
2
+ "name": "ebta-workflow-prod",
3
+ "private": false,
4
+ "version": "4.1.1",
5
+ "description": "",
6
+ "license": "UNLICENSED",
7
+ "author": "",
8
+ "scripts": {
9
+ "build": "vertigis-workflow-sdk build",
10
+ "generate": "vertigis-workflow-sdk generate",
11
+ "start": "vertigis-workflow-sdk start"
12
+ },
13
+ "devDependencies": {
14
+ "@types/react": "^19.2.18",
15
+ "@types/react-dom": "^19.2.4",
16
+ "@vertigis/workflow": "^5.52.2",
17
+ "@vertigis/workflow-sdk": "^6.1.1",
18
+ "node-fetch": "^3.3.2",
19
+ "typescript": "^5.4.0"
20
+ },
21
+ "browserslist": [
22
+ "last 2 chrome versions",
23
+ "last 2 edge versions",
24
+ "last 2 firefox versions",
25
+ "last 2 safari versions",
26
+ "ie 11"
27
+ ],
28
+ "dependencies": {
29
+ "@arcgis/core": "^5.1.19",
30
+ "@emotion/react": "^11.14.0",
31
+ "@emotion/styled": "^11.14.1",
32
+ "@fseehawer/react-circular-slider": "^3.2.7",
33
+ "@mantine/core": "^7.16.0",
34
+ "@mantine/hooks": "^9.5.1",
35
+ "@mui/icons-material": "^5.17.1",
36
+ "@mui/base": "5.0.0-beta.70",
37
+ "@mui/material": "^5.17.1",
38
+ "@mui/x-charts": "^7.6.2",
39
+ "@turf/turf": "^6.5.0",
40
+ "@types/arcgis-js-api": "^4.28.0",
41
+ "@vertigis/web": "^5.43.1",
42
+ "@xmldom/xmldom": "^0.8.10",
43
+ "arcgis-js-api": "^4.30.8",
44
+ "axios": "^1.7.7",
45
+ "dayjs": "^1.11.23",
46
+ "html2canvas": "^1.4.1",
47
+ "pannellum-react-update": "^1.0.0",
48
+ "pdf-lib": "^1.17.1",
49
+ "qrcode": "^1.5.4",
50
+ "react-color": "^2.19.3",
51
+ "react-color-palette": "^7.3.0",
52
+ "react-simple-image-slider": "^2.4.1",
53
+ "react-slideshow-image": "^4.3.1"
54
+ },
55
+ "type": "module"
56
+ }
@@ -4,8 +4,8 @@ import Multipoint from "@arcgis/core/geometry/Multipoint";
4
4
  import Polyline from "@arcgis/core/geometry/Polyline";
5
5
  import Polygon from "@arcgis/core/geometry/Polygon";
6
6
  import ElevationLayer from "@arcgis/core/layers/ElevationLayer";
7
- import { Geometry } from "@arcgis/core/geometry";
8
- import { SpatialReference } from "esri/geometry";
7
+ import Geometry from "@arcgis/core/geometry/Geometry";
8
+ import SpatialReference from "@arcgis/core/geometry/SpatialReference";
9
9
 
10
10
 
11
11
  /** An interface that defines the inputs of the activity. */
@@ -57,7 +57,7 @@ export default class DrapGeometryActivity implements IActivityHandler {
57
57
  return result.geometry as Polyline;
58
58
  };
59
59
 
60
- let geometry3D: Geometry;
60
+ let geometry3D:Point | Multipoint | Polyline | Polygon;
61
61
 
62
62
  // Handle different types of geometry
63
63
  if (inputs.inputGeometry instanceof Point) {
@@ -18,14 +18,10 @@ import Box from "@vertigis/web/ui/Box"
18
18
  import Checkbox from "@vertigis/web/ui/Checkbox"
19
19
  import { ThemeProvider } from "@emotion/react";
20
20
  import Typography from '@vertigis/web/ui/Typography';
21
- import { DateRangePicker } from '@mui/x-date-pickers-pro/DateRangePicker';
22
21
  import dayjs, { Dayjs } from 'dayjs';
23
22
  import timezone from 'dayjs/plugin/timezone';
24
23
  import utc from 'dayjs/plugin/utc';
25
24
  import customParseFormat from 'dayjs/plugin/customParseFormat'
26
- import { DemoContainer } from '@mui/x-date-pickers/internals/demo';
27
- import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider';
28
- import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs';
29
25
  import 'dayjs/locale/en-au';
30
26
  import Chip from '@mui/material/Chip';
31
27
  import Button from '@vertigis/web/ui/Button';
@@ -34,8 +30,8 @@ import RadioGroup from '@vertigis/web/ui/RadioGroup';
34
30
  import FormControlLabel from '@vertigis/web/ui/FormControlLabel';
35
31
  import AttributeFilterEasyComp from './modules/AttributeFilterEasyComp';
36
32
  import Stack from '@vertigis/web/ui/Stack';
37
- import Graphic from "esri/Graphic";
38
- const { Search, SearchIconWrapper, StyledInputBase, StyledBadge, LightTooltip, defaultTheme, CustomNumberInput } = AttributeFilterEasyComp;
33
+ import Graphic from "@arcgis/core/Graphic";
34
+ const { Search, SearchIconWrapper, StyledInputBase, StyledBadge, LightTooltip, defaultTheme, CustomNumberInput} = AttributeFilterEasyComp;
39
35
  dayjs.extend(utc);
40
36
  dayjs.extend(timezone);
41
37
  dayjs.extend(customParseFormat);
@@ -1392,42 +1388,30 @@ function AttributeFilter(props: AttributeFilterProps): React.ReactElement {
1392
1388
  {attribute.uniqValue ?
1393
1389
  (<Collapse in={attribute.display} timeout="auto" unmountOnExit>
1394
1390
  {attribute.type && attribute.type == 'date' && (attribute.uniqValue.length > 6) ?
1395
- <Box display="flex" alignItems="center" >
1396
- <LocalizationProvider dateAdapter={AdapterDayjs} >
1397
- <DemoContainer components={['DatePicker', 'DatePicker']} >
1398
- <LocalizationProvider dateAdapter={AdapterDayjs} adapterLocale="en-au">
1399
- <DateRangePicker defaultValue={[dayjs.unix(minDate.current), dayjs.unix(maxDate.current)]} maxDate={dayjs.unix(maxDate.current)} minDate={dayjs.unix(minDate.current)}
1400
- value={[startDate, endDate]}
1401
- onChange={([newstart, newend]) => handleDateRangeChange(newstart || startDate, newend || endDate)}
1402
- sx={{
1403
- // Customize the date text color
1404
- '& .MuiInputBase-input': {
1405
- color: 'var(--accentIconBorder)', // Change text color for the selected date
1406
- },
1407
-
1408
- // Customize the start & end labels
1409
- '& .MuiInputLabel-root': {
1410
- color: 'var(--accentIconBorder)', // Change label color for both start and end dates
1411
- },
1412
-
1413
- // Customize the border color of the input
1414
- '& .MuiOutlinedInput-root': {
1415
- '& fieldset': {
1416
- borderColor: 'var(--accentIconBorder)', // Change border color when the input is not focused
1417
- },
1418
- '&:hover fieldset': {
1419
- borderColor: 'var(--accentIconBorder)', // Change border color on hover
1420
- },
1421
- '&.Mui-focused fieldset': {
1422
- borderColor: 'var(--accentIconBorder)', // Change border color when focused
1423
- },
1424
- },
1425
- }}
1426
-
1427
- />
1428
- </LocalizationProvider>
1429
- </DemoContainer>
1430
- </LocalizationProvider>
1391
+ <Box display="flex" alignItems="center" gap={1}>
1392
+ <input
1393
+ type="date"
1394
+ value={startDate ? startDate.format('YYYY-MM-DD') : ''}
1395
+ min={dayjs.unix(minDate.current).format('YYYY-MM-DD')}
1396
+ max={dayjs.unix(maxDate.current).format('YYYY-MM-DD')}
1397
+ onChange={(event) => {
1398
+ const newStart = event.target.value ? dayjs(event.target.value) : startDate;
1399
+ handleDateRangeChange(newStart, endDate);
1400
+ }}
1401
+ style={{ color: 'var(--accentIconBorder)', border: '1px solid var(--accentIconBorder)', borderRadius: 4, padding: '4px 8px', marginRight: 8 }}
1402
+ />
1403
+ <span>to</span>
1404
+ <input
1405
+ type="date"
1406
+ value={endDate ? endDate.format('YYYY-MM-DD') : ''}
1407
+ min={dayjs.unix(minDate.current).format('YYYY-MM-DD')}
1408
+ max={dayjs.unix(maxDate.current).format('YYYY-MM-DD')}
1409
+ onChange={(event) => {
1410
+ const newEnd = event.target.value ? dayjs(event.target.value) : endDate;
1411
+ handleDateRangeChange(startDate, newEnd);
1412
+ }}
1413
+ style={{ color: 'var(--accentIconBorder)', border: '1px solid var(--accentIconBorder)', borderRadius: 4, padding: '4px 8px', marginLeft: 8 }}
1414
+ />
1431
1415
  </Box>
1432
1416
  :
1433
1417
  ISnumberAttribute && (attribute.uniqValue.length > 6) ?
@@ -2,11 +2,11 @@ import * as React from "react";
2
2
  import { MantineProvider } from '@mantine/core';
3
3
  import { FormElementProps, FormElementRegistration } from "@vertigis/workflow";
4
4
  import { ColorInput, ColorPicker } from '@mantine/core';
5
- import type { ColorFormat } from "@mantine/core/lib/components/ColorPicker/ColorPicker.types";
5
+ type ColorFormat = "hex" | "rgba" | "rgb" | "hsl" | "hsla";
6
6
 
7
7
  import "@mantine/core/styles.css";
8
8
 
9
- import Color from "esri/Color";
9
+ import Color from "@arcgis/core/Color";
10
10
 
11
11
 
12
12
  declare module "@vertigis/workflow" {
@@ -73,7 +73,7 @@ function CsColorPickerV2(props: CsColorPickerV2Props): React.ReactElement {
73
73
  esriColor = new Color(color);
74
74
  }
75
75
 
76
- setProperty("esriColor", esriColor);
76
+ setProperty("esriColor" as any, esriColor);
77
77
  setValue(color);
78
78
  raiseEvent("changed", color);
79
79
  };
@@ -195,7 +195,7 @@ function ItemSearcherDEV(props: ItemSearcherDEVProps): React.ReactElement {
195
195
  const [data, setData] = React.useState<Category[]>(props.itemData);
196
196
  const isFirstRender = React.useRef(true);
197
197
  const preSearchOpenCategories = React.useRef<Set<string>>(new Set());
198
- const loadDataTime = React.useRef<number>();
198
+ const loadDataTime = React.useRef<number | undefined>(undefined);
199
199
  const currentOpenCategories = React.useRef<Set<string>>(new Set());
200
200
  const prevSearchValue = React.useRef<string>('')
201
201
  const [selection, setSelection] = React.useState<{ [key: string]: { [key: string]: Item[] } }>({});
@@ -183,7 +183,7 @@ function ItemSearcher_V2(props: ItemSearcher_V2Props): React.ReactElement {
183
183
  const [filteredData, setFilteredData] = React.useState<Category[]>([]); // New state for filtered data
184
184
  const requestTime = React.useRef<number | null>(null)
185
185
  const [inputValue, setInputValue] = React.useState<string>(searchQuery);
186
- const debounceTimer = React.useRef<ReturnType<typeof setTimeout>>();
186
+ const debounceTimer = React.useRef<ReturnType<typeof setTimeout>>(undefined);
187
187
  const latestOpenCategories = React.useRef<Set<string>>(openCategories);
188
188
 
189
189
 
@@ -5,9 +5,8 @@ import Badge, { BadgeProps } from '@mui/material/Badge';
5
5
  import Tooltip, { TooltipProps, tooltipClasses } from '@mui/material/Tooltip';
6
6
  import { createTheme } from "@mui/material/styles";
7
7
  import {
8
- Unstable_NumberInput as BaseNumberInput,
9
- NumberInputProps,
10
- numberInputClasses,
8
+ Unstable_NumberInput as BaseNumberInput,
9
+ NumberInputProps,
11
10
  } from '@mui/base/Unstable_NumberInput';
12
11
 
13
12
  const Search =styled('div')(({ theme }) => ({
@@ -107,38 +106,8 @@ const StyledButton = styled('button')(
107
106
  color: #FFF;
108
107
  background: var(--accentIconForeground) !important;
109
108
  border-color: var(--accentIconBorder) !important;
110
- }
111
-
112
- &.${numberInputClasses.incrementButton} {
113
- grid-column: 2/3;
114
- grid-row: 1/2;
115
- border-top-left-radius: 4px;
116
- border-top-right-radius: 4px;
117
- border: 1px solid;
118
- border-bottom: 0;
119
- border-color: ${theme.palette.mode === 'dark' ? grey[700] : grey[200]};
120
- background: ${theme.palette.mode === 'dark' ? grey[900] : grey[50]};
121
- color: ${theme.palette.mode === 'dark' ? grey[200] : grey[900]};
122
-
123
- &:hover {
124
- cursor: pointer;
125
- color: #FFF;
126
- background: var(--accentIconForeground) !important;
127
- border-color: var(--accentIconBorder);
128
- }
129
- }
130
-
131
- &.${numberInputClasses.decrementButton} {
132
- grid-column: 2/3;
133
- grid-row: 2/3;
134
- border-bottom-left-radius: 4px;
135
- border-bottom-right-radius: 4px;
136
- border: 1px solid;
137
- border-color: ${theme.palette.mode === 'dark' ? grey[700] : grey[200]};
138
- background: ${theme.palette.mode === 'dark' ? grey[900] : grey[50]};
139
- color: ${theme.palette.mode === 'dark' ? grey[200] : grey[900]};
140
- }
141
-
109
+ };
110
+
142
111
  & .arrow {
143
112
  transform: translateY(-1px);
144
113
  }
@@ -173,31 +142,33 @@ const defaultTheme = createTheme({
173
142
  },
174
143
  });
175
144
 
176
- const CustomNumberInput =React.forwardRef(function CustomNumberInputfunction(
177
- props: NumberInputProps,
178
- ref: React.ForwardedRef<HTMLDivElement>,
145
+ const CustomNumberInput = React.forwardRef(function CustomNumberInput(
146
+ props: NumberInputProps,
147
+ ref: React.ForwardedRef<HTMLDivElement>,
179
148
  ) {
180
- return (
181
- <BaseNumberInput
182
- slots={{
183
- root: StyledInputRoot,
184
- input: StyledInputElement,
185
- incrementButton: StyledButton,
186
- decrementButton: StyledButton,
187
- }}
188
- slotProps={{
189
- incrementButton: {
190
- children: '▴',
191
- },
192
- decrementButton: {
193
- children: '▾',
194
- },
195
- }}
196
- {...props}
197
- ref={ref}
198
- />
199
- );
200
- })
149
+ return (
150
+ <BaseNumberInput
151
+ slots={{
152
+ root: StyledInputRoot,
153
+ input: StyledInputElement,
154
+ incrementButton: StyledButton,
155
+ decrementButton: StyledButton,
156
+ }}
157
+ slotProps={{
158
+ incrementButton: {
159
+ children: 'Increase value',
160
+ 'aria-label': 'Increase value',
161
+ },
162
+ decrementButton: {
163
+ children: 'Decrease value',
164
+ 'aria-label': 'Decrease value',
165
+ },
166
+ }}
167
+ {...props}
168
+ ref={ref}
169
+ />
170
+ );
171
+ });
201
172
 
202
173
  const StyledInputElement = styled('input')(
203
174
  () => `
package/tsconfig.json CHANGED
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "extends": "@vertigis/workflow-sdk/config/tsconfig.json",
3
3
  "compilerOptions": {
4
+ "ignoreDeprecations": "5.0",
5
+ "noImplicitAny": false,
4
6
  "target": "es5",
5
7
  "baseUrl": ".",
6
8
  "suppressImplicitAnyIndexErrors": false,
File without changes