@axdspub/axiom-ui-forms 0.2.1-alpha.1 → 0.2.1-alpha.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/package.json
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import { Button, TextArea } from '@axdspub/axiom-ui-utilities'
|
2
2
|
import FieldLabel from '@/Form/Components/FieldLabel'
|
3
3
|
import { type IFieldInputProps } from '@/Form/Creator/FormCreatorTypes'
|
4
|
-
import {
|
4
|
+
import { EMapShape, type IMapDrawEvent, type IMap, type IStyleableMapProps } from '@axdspub/axiom-maps'
|
5
5
|
import { type GeoJSON } from 'geojson'
|
6
|
-
import React, { useEffect, useState, type ReactElement } from 'react'
|
6
|
+
import React, { lazy, useEffect, useState, type ReactElement } from 'react'
|
7
7
|
import { TrashIcon, SquareIcon, BorderSolidIcon, DrawingPinFilledIcon } from '@radix-ui/react-icons'
|
8
8
|
|
9
9
|
/*
|
@@ -92,6 +92,10 @@ const calculateCenterFromGeoJSON = (geo: GeoJSON | undefined): { lat: number, lo
|
|
92
92
|
}
|
93
93
|
}
|
94
94
|
|
95
|
+
const AxiomOpenLayersMap = lazy(async () =>
|
96
|
+
await import('@axdspub/axiom-maps').then(module => ({ default: module.AxiomOpenLayersMap }))
|
97
|
+
)
|
98
|
+
|
95
99
|
const GeoJSONInput = ({ field, onChange, value }: IFieldInputProps): ReactElement => {
|
96
100
|
console.log('INITIAL VALUE', value)
|
97
101
|
const initialGeoJSON = value as unknown as GeoJSON
|