@map-colonies/react-components 3.9.0 → 3.10.3
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/.env +1 -0
- package/.storybook/main.js +2 -5
- package/CHANGELOG.md +66 -0
- package/dist/assets/img/map-marker.gif +0 -0
- package/dist/autocomplete/autocomplete.d.ts +2 -3
- package/dist/autocomplete/autocomplete.js +38 -27
- package/dist/autocomplete/index.d.ts +0 -1
- package/dist/autocomplete/index.js +2 -2
- package/dist/box/box.d.ts +0 -1
- package/dist/box/box.js +3 -2
- package/dist/box/index.d.ts +0 -1
- package/dist/box/index.js +2 -2
- package/dist/cesium-map/data-sources/custom.data-source.d.ts +0 -1
- package/dist/cesium-map/data-sources/custom.data-source.js +3 -2
- package/dist/cesium-map/data-sources/drawings.data-source.d.ts +0 -1
- package/dist/cesium-map/data-sources/drawings.data-source.js +29 -16
- package/dist/cesium-map/data-sources/index.d.ts +0 -1
- package/dist/cesium-map/data-sources/index.js +12 -6
- package/dist/cesium-map/entities/entity.d.ts +0 -1
- package/dist/cesium-map/entities/entity.description.d.ts +0 -1
- package/dist/cesium-map/entities/entity.description.js +5 -3
- package/dist/cesium-map/entities/entity.js +3 -2
- package/dist/cesium-map/entities/graphics/polygon.graphics.d.ts +0 -1
- package/dist/cesium-map/entities/graphics/polygon.graphics.js +3 -2
- package/dist/cesium-map/entities/graphics/polyline.graphics.d.ts +0 -1
- package/dist/cesium-map/entities/graphics/polyline.graphics.js +3 -2
- package/dist/cesium-map/entities/graphics/rectangle.graphics.d.ts +0 -1
- package/dist/cesium-map/entities/graphics/rectangle.graphics.js +3 -2
- package/dist/cesium-map/entities/index.d.ts +0 -1
- package/dist/cesium-map/entities/index.js +14 -8
- package/dist/cesium-map/index.d.ts +0 -1
- package/dist/cesium-map/index.js +17 -11
- package/dist/cesium-map/layers/3d.tileset.d.ts +0 -1
- package/dist/cesium-map/layers/3d.tileset.js +5 -4
- package/dist/cesium-map/layers/3d.tileset.update.d.ts +0 -1
- package/dist/cesium-map/layers/3d.tileset.update.js +0 -1
- package/dist/cesium-map/layers/geojson.layer.d.ts +0 -1
- package/dist/cesium-map/layers/geojson.layer.js +3 -2
- package/dist/cesium-map/layers/imagery.layer.d.ts +0 -1
- package/dist/cesium-map/layers/imagery.layer.js +22 -9
- package/dist/cesium-map/layers/index.d.ts +0 -1
- package/dist/cesium-map/layers/index.js +17 -11
- package/dist/cesium-map/layers/osm.layer.d.ts +0 -1
- package/dist/cesium-map/layers/osm.layer.js +3 -2
- package/dist/cesium-map/layers/wms.layer.d.ts +0 -1
- package/dist/cesium-map/layers/wms.layer.js +3 -2
- package/dist/cesium-map/layers/wmts.layer.d.ts +0 -1
- package/dist/cesium-map/layers/wmts.layer.js +3 -2
- package/dist/cesium-map/layers/xyz.layer.d.ts +0 -1
- package/dist/cesium-map/layers/xyz.layer.js +3 -2
- package/dist/cesium-map/layers-manager.d.ts +0 -1
- package/dist/cesium-map/layers-manager.js +3 -7
- package/dist/cesium-map/map.d.ts +2 -2
- package/dist/cesium-map/map.js +64 -41
- package/dist/cesium-map/map.types.d.ts +0 -1
- package/dist/cesium-map/map.types.js +1 -1
- package/dist/cesium-map/proxied.types.d.ts +0 -1
- package/dist/cesium-map/proxied.types.js +4 -2
- package/dist/cesium-map/settings/base-maps.d.ts +0 -1
- package/dist/cesium-map/settings/base-maps.js +22 -12
- package/dist/cesium-map/settings/scene-modes.d.ts +0 -1
- package/dist/cesium-map/settings/scene-modes.js +17 -4
- package/dist/cesium-map/settings/settings.d.ts +0 -1
- package/dist/cesium-map/settings/settings.js +20 -7
- package/dist/cesium-map/terrain-providers/custom/dummy-quantized-mesh-tile.d.ts +1 -2
- package/dist/cesium-map/terrain-providers/custom/dummy-quantized-mesh-tile.js +1 -1
- package/dist/cesium-map/terrain-providers/custom/quantized-mesh-decoder.d.ts +1 -2
- package/dist/cesium-map/terrain-providers/custom/quantized-mesh-decoder.js +3 -2
- package/dist/cesium-map/terrain-providers/custom/quantized-mesh-terrain-provider.d.ts +0 -1
- package/dist/cesium-map/terrain-providers/custom/quantized-mesh-terrain-provider.js +1 -2
- package/dist/cesium-map/tools/cesium/primitives-conversions.cesium.d.ts +0 -1
- package/dist/cesium-map/tools/cesium/primitives-conversions.cesium.js +17 -4
- package/dist/cesium-map/tools/coordinates-tracker.tool.d.ts +1 -2
- package/dist/cesium-map/tools/coordinates-tracker.tool.js +23 -10
- package/dist/cesium-map/tools/draw/drawHelper.d.ts +0 -1
- package/dist/cesium-map/tools/draw/drawHelper.js +16 -3
- package/dist/cesium-map/tools/geojson/geojson-to-primitive.d.ts +1 -2
- package/dist/cesium-map/tools/geojson/geojson-to-primitive.js +3 -2
- package/dist/cesium-map/tools/geojson/index.d.ts +0 -1
- package/dist/cesium-map/tools/geojson/index.js +12 -6
- package/dist/cesium-map/tools/geojson/point.geojson.d.ts +0 -1
- package/dist/cesium-map/tools/geojson/point.geojson.js +3 -2
- package/dist/cesium-map/tools/geojson/polygon.geojson.d.ts +0 -1
- package/dist/cesium-map/tools/geojson/polygon.geojson.js +3 -2
- package/dist/cesium-map/tools/geojson/rectangle.geojson.d.ts +0 -1
- package/dist/cesium-map/tools/geojson/rectangle.geojson.js +17 -4
- package/dist/cesium-map/tools/inspector.tool.d.ts +4 -0
- package/dist/cesium-map/tools/inspector.tool.js +33 -0
- package/dist/cesium-map/tools/scale-tracker.tool.d.ts +0 -1
- package/dist/cesium-map/tools/scale-tracker.tool.js +19 -6
- package/dist/cesium-map/tools/terranian-height.tool.d.ts +4 -0
- package/dist/cesium-map/tools/terranian-height.tool.js +113 -0
- package/dist/cssbaseline/cssbaseline.d.ts +0 -1
- package/dist/cssbaseline/cssbaseline.js +5 -3
- package/dist/cssbaseline/index.d.ts +0 -1
- package/dist/cssbaseline/index.js +3 -3
- package/dist/date-picker/date-picker.d.ts +0 -1
- package/dist/date-picker/date-picker.js +24 -11
- package/dist/date-picker/index.d.ts +0 -1
- package/dist/date-picker/index.js +11 -5
- package/dist/date-range-picker/date-range-picker.d.ts +0 -1
- package/dist/date-range-picker/date-range-picker.form-control.d.ts +0 -1
- package/dist/date-range-picker/date-range-picker.form-control.js +31 -18
- package/dist/date-range-picker/date-range-picker.js +26 -13
- package/dist/date-range-picker/index.d.ts +0 -1
- package/dist/date-range-picker/index.js +12 -6
- package/dist/file-picker/file-picker.css +62 -0
- package/dist/file-picker/file-picker.d.ts +276 -0
- package/dist/file-picker/file-picker.js +151 -0
- package/dist/file-picker/fs-map.json +1557 -0
- package/dist/file-picker/index.d.ts +2 -0
- package/dist/file-picker/index.js +14 -0
- package/dist/file-picker/localization.d.ts +11 -0
- package/dist/file-picker/localization.js +124 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +23 -16
- package/dist/map-filter-container/container-map.d.ts +0 -1
- package/dist/map-filter-container/container-map.js +3 -2
- package/dist/map-filter-container/index.d.ts +0 -1
- package/dist/map-filter-container/index.js +11 -5
- package/dist/map-filter-container/map-filter-container.d.ts +0 -1
- package/dist/map-filter-container/map-filter-container.js +17 -4
- package/dist/map-filter-container/polygon-selection-ui.d.ts +0 -1
- package/dist/map-filter-container/polygon-selection-ui.js +3 -2
- package/dist/models/defaults.d.ts +0 -1
- package/dist/models/defaults.js +0 -1
- package/dist/models/enums.d.ts +2 -2
- package/dist/models/enums.js +2 -1
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +11 -5
- package/dist/ol-map/feature.d.ts +0 -1
- package/dist/ol-map/feature.js +3 -2
- package/dist/ol-map/index.d.ts +0 -1
- package/dist/ol-map/index.js +16 -10
- package/dist/ol-map/interactions/draw.d.ts +0 -1
- package/dist/ol-map/interactions/draw.js +4 -4
- package/dist/ol-map/interactions/index.d.ts +0 -1
- package/dist/ol-map/interactions/index.js +11 -5
- package/dist/ol-map/layers/index.d.ts +0 -1
- package/dist/ol-map/layers/index.js +13 -7
- package/dist/ol-map/layers/tile-layer.d.ts +0 -1
- package/dist/ol-map/layers/tile-layer.js +19 -5
- package/dist/ol-map/layers/vector-layer.d.ts +0 -1
- package/dist/ol-map/layers/vector-layer.js +19 -5
- package/dist/ol-map/layers/vector-tile-layer.d.ts +0 -1
- package/dist/ol-map/layers/vector-tile-layer.js +19 -5
- package/dist/ol-map/map.d.ts +0 -1
- package/dist/ol-map/map.js +24 -10
- package/dist/ol-map/source/index.d.ts +0 -1
- package/dist/ol-map/source/index.js +16 -10
- package/dist/ol-map/source/mvt.d.ts +0 -1
- package/dist/ol-map/source/mvt.js +7 -4
- package/dist/ol-map/source/osm.d.ts +0 -1
- package/dist/ol-map/source/osm.js +3 -2
- package/dist/ol-map/source/vector-source.d.ts +1 -2
- package/dist/ol-map/source/vector-source.js +19 -5
- package/dist/ol-map/source/wms.d.ts +0 -1
- package/dist/ol-map/source/wms.js +5 -3
- package/dist/ol-map/source/wmts.d.ts +0 -1
- package/dist/ol-map/source/wmts.js +5 -3
- package/dist/ol-map/source/xyz.d.ts +0 -1
- package/dist/ol-map/source/xyz.js +5 -3
- package/dist/ol-map/style.d.ts +0 -1
- package/dist/ol-map/style.js +1 -1
- package/dist/popover/index.d.ts +0 -1
- package/dist/popover/index.js +2 -2
- package/dist/popover/popover.d.ts +0 -1
- package/dist/popover/popover.js +3 -2
- package/dist/smart-table/__mock-data__/smartTableMocks.d.ts +0 -1
- package/dist/smart-table/__mock-data__/smartTableMocks.js +1 -1
- package/dist/smart-table/index.d.ts +0 -1
- package/dist/smart-table/index.js +12 -6
- package/dist/smart-table/smart-table-head.d.ts +0 -1
- package/dist/smart-table/smart-table-head.js +1 -1
- package/dist/smart-table/smart-table-row.d.ts +0 -2
- package/dist/smart-table/smart-table-row.js +18 -8
- package/dist/smart-table/smart-table-types.d.ts +0 -2
- package/dist/smart-table/smart-table-types.js +0 -1
- package/dist/smart-table/smart-table.d.ts +0 -1
- package/dist/smart-table/smart-table.js +15 -3
- package/dist/theme/index.d.ts +0 -1
- package/dist/theme/index.js +11 -5
- package/dist/theme/theme.d.ts +0 -1
- package/dist/theme/theme.js +1 -1
- package/dist/utils/map.d.ts +0 -1
- package/dist/utils/map.js +7 -4
- package/dist/utils/projections.d.ts +0 -1
- package/dist/utils/projections.js +1 -1
- package/dist/utils/story.d.ts +0 -1
- package/dist/utils/story.js +0 -1
- package/package.json +103 -100
- package/public/assets/img/map-marker.gif +0 -0
- package/src/lib/autocomplete/autocomplete.tsx +16 -18
- package/src/lib/cesium-map/map.tsx +22 -12
- package/src/lib/cesium-map/terrain-providers/terrain-provider-heights-tool.stories.tsx +155 -0
- package/src/lib/cesium-map/terrain-providers/terrain-provider.stories.tsx +5 -3
- package/src/lib/cesium-map/tools/coordinates-tracker.tool.tsx +1 -1
- package/src/lib/cesium-map/tools/inspector.tool.tsx +15 -0
- package/src/lib/cesium-map/tools/terranian-height.tool.tsx +167 -0
- package/src/lib/date-range-picker/{stories/DateRangePicker.stories.tsx → date-range-picker.stories.tsx} +5 -5
- package/src/lib/file-picker/file-picker.css +62 -0
- package/src/lib/file-picker/file-picker.stories.tsx +447 -0
- package/src/lib/file-picker/file-picker.tsx +180 -0
- package/src/lib/file-picker/fs-map.json +1557 -0
- package/src/lib/file-picker/index.ts +2 -0
- package/src/lib/file-picker/localization.ts +164 -0
- package/src/lib/index.ts +1 -0
- package/src/lib/models/enums.ts +1 -0
- package/src/lib/smart-table/smart-table-row.spec.tsx +1 -1
- package/tsbuildconfig.json +2 -2
- package/tsconfig.json +2 -1
- package/dist/autocomplete/autocomplete.d.ts.map +0 -1
- package/dist/autocomplete/autocomplete.js.map +0 -1
- package/dist/autocomplete/index.d.ts.map +0 -1
- package/dist/autocomplete/index.js.map +0 -1
- package/dist/box/box.d.ts.map +0 -1
- package/dist/box/box.js.map +0 -1
- package/dist/box/index.d.ts.map +0 -1
- package/dist/box/index.js.map +0 -1
- package/dist/cesium-map/data-sources/custom.data-source.d.ts.map +0 -1
- package/dist/cesium-map/data-sources/custom.data-source.js.map +0 -1
- package/dist/cesium-map/data-sources/drawings.data-source.d.ts.map +0 -1
- package/dist/cesium-map/data-sources/drawings.data-source.js.map +0 -1
- package/dist/cesium-map/data-sources/index.d.ts.map +0 -1
- package/dist/cesium-map/data-sources/index.js.map +0 -1
- package/dist/cesium-map/entities/entity.d.ts.map +0 -1
- package/dist/cesium-map/entities/entity.description.d.ts.map +0 -1
- package/dist/cesium-map/entities/entity.description.js.map +0 -1
- package/dist/cesium-map/entities/entity.js.map +0 -1
- package/dist/cesium-map/entities/graphics/polygon.graphics.d.ts.map +0 -1
- package/dist/cesium-map/entities/graphics/polygon.graphics.js.map +0 -1
- package/dist/cesium-map/entities/graphics/polyline.graphics.d.ts.map +0 -1
- package/dist/cesium-map/entities/graphics/polyline.graphics.js.map +0 -1
- package/dist/cesium-map/entities/graphics/rectangle.graphics.d.ts.map +0 -1
- package/dist/cesium-map/entities/graphics/rectangle.graphics.js.map +0 -1
- package/dist/cesium-map/entities/index.d.ts.map +0 -1
- package/dist/cesium-map/entities/index.js.map +0 -1
- package/dist/cesium-map/index.d.ts.map +0 -1
- package/dist/cesium-map/index.js.map +0 -1
- package/dist/cesium-map/layers/3d.tileset.d.ts.map +0 -1
- package/dist/cesium-map/layers/3d.tileset.js.map +0 -1
- package/dist/cesium-map/layers/3d.tileset.update.d.ts.map +0 -1
- package/dist/cesium-map/layers/3d.tileset.update.js.map +0 -1
- package/dist/cesium-map/layers/geojson.layer.d.ts.map +0 -1
- package/dist/cesium-map/layers/geojson.layer.js.map +0 -1
- package/dist/cesium-map/layers/imagery.layer.d.ts.map +0 -1
- package/dist/cesium-map/layers/imagery.layer.js.map +0 -1
- package/dist/cesium-map/layers/index.d.ts.map +0 -1
- package/dist/cesium-map/layers/index.js.map +0 -1
- package/dist/cesium-map/layers/osm.layer.d.ts.map +0 -1
- package/dist/cesium-map/layers/osm.layer.js.map +0 -1
- package/dist/cesium-map/layers/wms.layer.d.ts.map +0 -1
- package/dist/cesium-map/layers/wms.layer.js.map +0 -1
- package/dist/cesium-map/layers/wmts.layer.d.ts.map +0 -1
- package/dist/cesium-map/layers/wmts.layer.js.map +0 -1
- package/dist/cesium-map/layers/xyz.layer.d.ts.map +0 -1
- package/dist/cesium-map/layers/xyz.layer.js.map +0 -1
- package/dist/cesium-map/layers-manager.d.ts.map +0 -1
- package/dist/cesium-map/layers-manager.js.map +0 -1
- package/dist/cesium-map/map.d.ts.map +0 -1
- package/dist/cesium-map/map.js.map +0 -1
- package/dist/cesium-map/map.types.d.ts.map +0 -1
- package/dist/cesium-map/map.types.js.map +0 -1
- package/dist/cesium-map/proxied.types.d.ts.map +0 -1
- package/dist/cesium-map/proxied.types.js.map +0 -1
- package/dist/cesium-map/settings/base-maps.d.ts.map +0 -1
- package/dist/cesium-map/settings/base-maps.js.map +0 -1
- package/dist/cesium-map/settings/scene-modes.d.ts.map +0 -1
- package/dist/cesium-map/settings/scene-modes.js.map +0 -1
- package/dist/cesium-map/settings/settings.d.ts.map +0 -1
- package/dist/cesium-map/settings/settings.js.map +0 -1
- package/dist/cesium-map/terrain-providers/custom/dummy-quantized-mesh-tile.d.ts.map +0 -1
- package/dist/cesium-map/terrain-providers/custom/dummy-quantized-mesh-tile.js.map +0 -1
- package/dist/cesium-map/terrain-providers/custom/quantized-mesh-decoder.d.ts.map +0 -1
- package/dist/cesium-map/terrain-providers/custom/quantized-mesh-decoder.js.map +0 -1
- package/dist/cesium-map/terrain-providers/custom/quantized-mesh-terrain-provider.d.ts.map +0 -1
- package/dist/cesium-map/terrain-providers/custom/quantized-mesh-terrain-provider.js.map +0 -1
- package/dist/cesium-map/tools/cesium/primitives-conversions.cesium.d.ts.map +0 -1
- package/dist/cesium-map/tools/cesium/primitives-conversions.cesium.js.map +0 -1
- package/dist/cesium-map/tools/coordinates-tracker.tool.d.ts.map +0 -1
- package/dist/cesium-map/tools/coordinates-tracker.tool.js.map +0 -1
- package/dist/cesium-map/tools/draw/drawHelper.d.ts.map +0 -1
- package/dist/cesium-map/tools/draw/drawHelper.js.map +0 -1
- package/dist/cesium-map/tools/geojson/geojson-to-primitive.d.ts.map +0 -1
- package/dist/cesium-map/tools/geojson/geojson-to-primitive.js.map +0 -1
- package/dist/cesium-map/tools/geojson/index.d.ts.map +0 -1
- package/dist/cesium-map/tools/geojson/index.js.map +0 -1
- package/dist/cesium-map/tools/geojson/point.geojson.d.ts.map +0 -1
- package/dist/cesium-map/tools/geojson/point.geojson.js.map +0 -1
- package/dist/cesium-map/tools/geojson/polygon.geojson.d.ts.map +0 -1
- package/dist/cesium-map/tools/geojson/polygon.geojson.js.map +0 -1
- package/dist/cesium-map/tools/geojson/rectangle.geojson.d.ts.map +0 -1
- package/dist/cesium-map/tools/geojson/rectangle.geojson.js.map +0 -1
- package/dist/cesium-map/tools/scale-tracker.tool.d.ts.map +0 -1
- package/dist/cesium-map/tools/scale-tracker.tool.js.map +0 -1
- package/dist/cssbaseline/cssbaseline.d.ts.map +0 -1
- package/dist/cssbaseline/cssbaseline.js.map +0 -1
- package/dist/cssbaseline/index.d.ts.map +0 -1
- package/dist/cssbaseline/index.js.map +0 -1
- package/dist/date-picker/date-picker.d.ts.map +0 -1
- package/dist/date-picker/date-picker.js.map +0 -1
- package/dist/date-picker/index.d.ts.map +0 -1
- package/dist/date-picker/index.js.map +0 -1
- package/dist/date-range-picker/date-range-picker.d.ts.map +0 -1
- package/dist/date-range-picker/date-range-picker.form-control.d.ts.map +0 -1
- package/dist/date-range-picker/date-range-picker.form-control.js.map +0 -1
- package/dist/date-range-picker/date-range-picker.js.map +0 -1
- package/dist/date-range-picker/index.d.ts.map +0 -1
- package/dist/date-range-picker/index.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/map-filter-container/container-map.d.ts.map +0 -1
- package/dist/map-filter-container/container-map.js.map +0 -1
- package/dist/map-filter-container/index.d.ts.map +0 -1
- package/dist/map-filter-container/index.js.map +0 -1
- package/dist/map-filter-container/map-filter-container.d.ts.map +0 -1
- package/dist/map-filter-container/map-filter-container.js.map +0 -1
- package/dist/map-filter-container/polygon-selection-ui.d.ts.map +0 -1
- package/dist/map-filter-container/polygon-selection-ui.js.map +0 -1
- package/dist/models/defaults.d.ts.map +0 -1
- package/dist/models/defaults.js.map +0 -1
- package/dist/models/enums.d.ts.map +0 -1
- package/dist/models/enums.js.map +0 -1
- package/dist/models/index.d.ts.map +0 -1
- package/dist/models/index.js.map +0 -1
- package/dist/ol-map/feature.d.ts.map +0 -1
- package/dist/ol-map/feature.js.map +0 -1
- package/dist/ol-map/index.d.ts.map +0 -1
- package/dist/ol-map/index.js.map +0 -1
- package/dist/ol-map/interactions/draw.d.ts.map +0 -1
- package/dist/ol-map/interactions/draw.js.map +0 -1
- package/dist/ol-map/interactions/index.d.ts.map +0 -1
- package/dist/ol-map/interactions/index.js.map +0 -1
- package/dist/ol-map/layers/index.d.ts.map +0 -1
- package/dist/ol-map/layers/index.js.map +0 -1
- package/dist/ol-map/layers/tile-layer.d.ts.map +0 -1
- package/dist/ol-map/layers/tile-layer.js.map +0 -1
- package/dist/ol-map/layers/vector-layer.d.ts.map +0 -1
- package/dist/ol-map/layers/vector-layer.js.map +0 -1
- package/dist/ol-map/layers/vector-tile-layer.d.ts.map +0 -1
- package/dist/ol-map/layers/vector-tile-layer.js.map +0 -1
- package/dist/ol-map/map.d.ts.map +0 -1
- package/dist/ol-map/map.js.map +0 -1
- package/dist/ol-map/source/index.d.ts.map +0 -1
- package/dist/ol-map/source/index.js.map +0 -1
- package/dist/ol-map/source/mvt.d.ts.map +0 -1
- package/dist/ol-map/source/mvt.js.map +0 -1
- package/dist/ol-map/source/osm.d.ts.map +0 -1
- package/dist/ol-map/source/osm.js.map +0 -1
- package/dist/ol-map/source/vector-source.d.ts.map +0 -1
- package/dist/ol-map/source/vector-source.js.map +0 -1
- package/dist/ol-map/source/wms.d.ts.map +0 -1
- package/dist/ol-map/source/wms.js.map +0 -1
- package/dist/ol-map/source/wmts.d.ts.map +0 -1
- package/dist/ol-map/source/wmts.js.map +0 -1
- package/dist/ol-map/source/xyz.d.ts.map +0 -1
- package/dist/ol-map/source/xyz.js.map +0 -1
- package/dist/ol-map/style.d.ts.map +0 -1
- package/dist/ol-map/style.js.map +0 -1
- package/dist/popover/index.d.ts.map +0 -1
- package/dist/popover/index.js.map +0 -1
- package/dist/popover/popover.d.ts.map +0 -1
- package/dist/popover/popover.js.map +0 -1
- package/dist/smart-table/__mock-data__/smartTableMocks.d.ts.map +0 -1
- package/dist/smart-table/__mock-data__/smartTableMocks.js.map +0 -1
- package/dist/smart-table/index.d.ts.map +0 -1
- package/dist/smart-table/index.js.map +0 -1
- package/dist/smart-table/smart-table-head.d.ts.map +0 -1
- package/dist/smart-table/smart-table-head.js.map +0 -1
- package/dist/smart-table/smart-table-row.d.ts.map +0 -1
- package/dist/smart-table/smart-table-row.js.map +0 -1
- package/dist/smart-table/smart-table-types.d.ts.map +0 -1
- package/dist/smart-table/smart-table-types.js.map +0 -1
- package/dist/smart-table/smart-table.d.ts.map +0 -1
- package/dist/smart-table/smart-table.js.map +0 -1
- package/dist/theme/index.d.ts.map +0 -1
- package/dist/theme/index.js.map +0 -1
- package/dist/theme/theme.d.ts.map +0 -1
- package/dist/theme/theme.js.map +0 -1
- package/dist/utils/map.d.ts.map +0 -1
- package/dist/utils/map.js.map +0 -1
- package/dist/utils/projections.d.ts.map +0 -1
- package/dist/utils/projections.js.map +0 -1
- package/dist/utils/story.d.ts.map +0 -1
- package/dist/utils/story.js.map +0 -1
package/.env
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
SKIP_PREFLIGHT_CHECK = true
|
package/.storybook/main.js
CHANGED
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
stories: [
|
|
3
|
-
'../src/lib/date-range-picker/stories/DateRangePicker.stories.tsx',
|
|
4
|
-
'../src/**/*.stories.tsx',
|
|
5
|
-
],
|
|
2
|
+
stories: ['../src/**/*.stories.tsx'],
|
|
6
3
|
addons: [
|
|
7
4
|
'@storybook/preset-create-react-app',
|
|
8
5
|
'@storybook/addon-storysource',
|
|
9
6
|
'@storybook/addon-actions',
|
|
10
7
|
'@storybook/addon-knobs',
|
|
8
|
+
'@storybook/addon-docs',
|
|
11
9
|
'@storybook/addon-controls',
|
|
12
10
|
'@storybook/addon-links',
|
|
13
|
-
'@storybook/addon-docs',
|
|
14
11
|
'storybook-dark-mode',
|
|
15
12
|
],
|
|
16
13
|
};
|
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,72 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.10.3](https://github.com/MapColonies/shared-components/compare/@map-colonies/react-components@3.10.2...@map-colonies/react-components@3.10.3) (2022-02-22)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* auto complete input bug ([cdb9220](https://github.com/MapColonies/shared-components/commit/cdb9220177e81087b90eacdf05a5f80b04e2ed67))
|
|
12
|
+
* autocomplete prettier ([eff39e8](https://github.com/MapColonies/shared-components/commit/eff39e8e469d6d9ca831be3718204ad58e77d850))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
## [3.10.2](https://github.com/MapColonies/shared-components/compare/@map-colonies/react-components@3.10.1...@map-colonies/react-components@3.10.2) (2022-02-20)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* action data and rtl ([1903ebf](https://github.com/MapColonies/shared-components/commit/1903ebfa600fc5d024bb2df107f5891d5c2160f3))
|
|
24
|
+
* default formatters ([ae7913b](https://github.com/MapColonies/shared-components/commit/ae7913b73af0a5357aa2ef6194724dc93f2b238f))
|
|
25
|
+
* fix ([c1379ad](https://github.com/MapColonies/shared-components/commit/c1379ad0513bb64f67745087719c38ccc8e9bd7a))
|
|
26
|
+
* intl shape ([55b2624](https://github.com/MapColonies/shared-components/commit/55b2624393b28f1b74c24fc2064a0fb14e2b447d))
|
|
27
|
+
* prettier ([2ca12de](https://github.com/MapColonies/shared-components/commit/2ca12deece268225c1cf851a791dc3e7ec7411ef))
|
|
28
|
+
* prettier ([0a22d00](https://github.com/MapColonies/shared-components/commit/0a22d00df8da286792cc86a24519bce59388dfdd))
|
|
29
|
+
* stories hot reload and circular deps ([#117](https://github.com/MapColonies/shared-components/issues/117)) ([284abff](https://github.com/MapColonies/shared-components/commit/284abff1ed4a192e5a7f66d7a0f6e9dd5e2e028b))
|
|
30
|
+
* use native formatters ([ad577cf](https://github.com/MapColonies/shared-components/commit/ad577cf8f890b965ebac3785281f285e99e1c2df))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
## [3.10.1](https://github.com/MapColonies/shared-components/compare/@map-colonies/react-components@3.10.0...@map-colonies/react-components@3.10.1) (2022-02-10)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Bug Fixes
|
|
40
|
+
|
|
41
|
+
* file picker ref formatters ([#116](https://github.com/MapColonies/shared-components/issues/116)) ([1432b6a](https://github.com/MapColonies/shared-components/commit/1432b6a65290d0e170d9e956eddabbe1d909e744))
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
# [3.10.0](https://github.com/MapColonies/shared-components/compare/@map-colonies/react-components@3.8.0...@map-colonies/react-components@3.10.0) (2022-02-09)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
### Bug Fixes
|
|
51
|
+
|
|
52
|
+
* height tool_ pin points from csv ([#114](https://github.com/MapColonies/shared-components/issues/114)) ([3af82b8](https://github.com/MapColonies/shared-components/commit/3af82b88226ea3bd19646e87b9d1add0b13e81e6))
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
### Features
|
|
56
|
+
|
|
57
|
+
* file picker ([#113](https://github.com/MapColonies/shared-components/issues/113)) ([829d275](https://github.com/MapColonies/shared-components/commit/829d275e01a3417912fe82036cabae3a5247cc24))
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
## 3.8.1 (2022-01-13)
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
### Features
|
|
65
|
+
|
|
66
|
+
* dem quantized mesh ([#112](https://github.com/MapColonies/shared-components/issues/112)) ([3cd2010](https://github.com/MapColonies/shared-components/commit/3cd20105a63f2335a5dd3b178eb9d38f9690022c))
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
6
72
|
# [3.8.0](https://github.com/MapColonies/shared-components/compare/@map-colonies/react-components@3.7.4...@map-colonies/react-components@3.8.0) (2021-11-01)
|
|
7
73
|
|
|
8
74
|
|
|
Binary file
|
|
@@ -3,10 +3,10 @@ import './autocomplete.css';
|
|
|
3
3
|
export interface IAutocompleteProps {
|
|
4
4
|
Component: React.ReactElement;
|
|
5
5
|
ComponentProps: Record<string, unknown>;
|
|
6
|
-
defaultValue: string;
|
|
6
|
+
defaultValue: string | undefined;
|
|
7
7
|
disabled: boolean;
|
|
8
8
|
maxOptions: number;
|
|
9
|
-
onBlur: () => void;
|
|
9
|
+
onBlur: (evt: any) => void;
|
|
10
10
|
onChange: (val: string) => void;
|
|
11
11
|
onKeyDown: (evt: any) => void;
|
|
12
12
|
onRequestOptions: (val: string) => void;
|
|
@@ -31,4 +31,3 @@ interface IAutocompleteOptionalProps extends Partial<IAutocompleteProps> {
|
|
|
31
31
|
}
|
|
32
32
|
export declare const AutocompleteWithDefauls: React.FC<IAutocompleteOptionalProps>;
|
|
33
33
|
export default AutocompleteWithDefauls;
|
|
34
|
-
//# sourceMappingURL=autocomplete.d.ts.map
|
|
@@ -10,6 +10,25 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
};
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
16
|
+
}) : (function(o, m, k, k2) {
|
|
17
|
+
if (k2 === undefined) k2 = k;
|
|
18
|
+
o[k2] = m[k];
|
|
19
|
+
}));
|
|
20
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
21
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
22
|
+
}) : function(o, v) {
|
|
23
|
+
o["default"] = v;
|
|
24
|
+
});
|
|
25
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
26
|
+
if (mod && mod.__esModule) return mod;
|
|
27
|
+
var result = {};
|
|
28
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
29
|
+
__setModuleDefault(result, mod);
|
|
30
|
+
return result;
|
|
31
|
+
};
|
|
13
32
|
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
33
|
var t = {};
|
|
15
34
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
@@ -21,17 +40,11 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
40
|
}
|
|
22
41
|
return t;
|
|
23
42
|
};
|
|
24
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
25
|
-
if (mod && mod.__esModule) return mod;
|
|
26
|
-
var result = {};
|
|
27
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
28
|
-
result["default"] = mod;
|
|
29
|
-
return result;
|
|
30
|
-
};
|
|
31
43
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
32
44
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
33
45
|
};
|
|
34
46
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
47
|
+
exports.AutocompleteWithDefauls = void 0;
|
|
35
48
|
/* eslint-disable */
|
|
36
49
|
var react_1 = __importStar(require("react"));
|
|
37
50
|
var textarea_caret_1 = __importDefault(require("textarea-caret"));
|
|
@@ -46,9 +59,10 @@ var KEY_TAB = 9;
|
|
|
46
59
|
var OPTION_LIST_Y_OFFSET = 10;
|
|
47
60
|
var OPTION_LIST_MIN_WIDTH = 100;
|
|
48
61
|
var Autocomplete = function (props) {
|
|
49
|
-
var _a
|
|
50
|
-
var _b = react_1.useState(
|
|
51
|
-
var _c = react_1.useState(
|
|
62
|
+
var _a;
|
|
63
|
+
var _b = react_1.useState((_a = props.defaultValue) !== null && _a !== void 0 ? _a : ''), recentValue = _b[0], setRecentValue = _b[1];
|
|
64
|
+
var _c = react_1.useState(false), enableSpaceRemovers = _c[0], setEnableSpaceRemovers = _c[1];
|
|
65
|
+
var _d = react_1.useState({
|
|
52
66
|
helperVisible: false,
|
|
53
67
|
left: 0,
|
|
54
68
|
right: 0,
|
|
@@ -61,7 +75,7 @@ var Autocomplete = function (props) {
|
|
|
61
75
|
value: '',
|
|
62
76
|
caret: 0,
|
|
63
77
|
width: 'unset',
|
|
64
|
-
}), state =
|
|
78
|
+
}), state = _d[0], setState = _d[1];
|
|
65
79
|
var refInput = react_1.useRef(null);
|
|
66
80
|
react_1.useEffect(function () {
|
|
67
81
|
window.addEventListener('resize', handleResize);
|
|
@@ -74,6 +88,14 @@ var Autocomplete = function (props) {
|
|
|
74
88
|
}
|
|
75
89
|
};
|
|
76
90
|
}, []);
|
|
91
|
+
react_1.useEffect(function () {
|
|
92
|
+
if (typeof props.value !== 'undefined') {
|
|
93
|
+
setRecentValue(props.value);
|
|
94
|
+
}
|
|
95
|
+
if (typeof props.defaultValue !== 'undefined') {
|
|
96
|
+
setRecentValue(props.defaultValue);
|
|
97
|
+
}
|
|
98
|
+
}, [props.value, props.defaultValue]);
|
|
77
99
|
react_1.useEffect(function () {
|
|
78
100
|
var options = props.options;
|
|
79
101
|
var caret = state.caret;
|
|
@@ -408,32 +430,21 @@ var Autocomplete = function (props) {
|
|
|
408
430
|
return (react_1.default.createElement("ul", { className: "react-autocomplete-input", style: __assign(__assign({}, horizontalPosition), { top: top + offsetY, width: width }) }, helperOptions));
|
|
409
431
|
};
|
|
410
432
|
var Component = props.Component, ComponentProps = props.ComponentProps, defaultValue = props.defaultValue, disabled = props.disabled, onBlur = props.onBlur, value = props.value, rest = __rest(props, ["Component", "ComponentProps", "defaultValue", "disabled", "onBlur", "value"]);
|
|
411
|
-
var stateValue = recentValue; //state.value;
|
|
412
433
|
var propagated = Object.assign({}, rest);
|
|
413
434
|
Object.keys(props).forEach(function (k) {
|
|
414
435
|
delete propagated[k];
|
|
415
436
|
});
|
|
416
|
-
var val = '';
|
|
417
|
-
if (stateValue) {
|
|
418
|
-
val = stateValue;
|
|
419
|
-
}
|
|
420
|
-
else if (defaultValue) {
|
|
421
|
-
val = defaultValue;
|
|
422
|
-
}
|
|
423
|
-
else if (value !== undefined) {
|
|
424
|
-
val = value;
|
|
425
|
-
}
|
|
426
437
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
427
|
-
react_1.default.cloneElement(Component, __assign(__assign({ disabled: disabled, onBlur: onBlur, onChange: handleChange, onKeyDown: handleKeyDown, ref: refInput, value:
|
|
438
|
+
react_1.default.cloneElement(Component, __assign(__assign({ disabled: disabled, onBlur: onBlur, onChange: handleChange, onKeyDown: handleKeyDown, ref: refInput, value: recentValue }, propagated), ComponentProps)),
|
|
428
439
|
renderAutocompleteList()));
|
|
429
440
|
};
|
|
430
441
|
var defaultProps = {
|
|
431
442
|
Component: react_1.default.createElement("textarea", null),
|
|
432
443
|
ComponentProps: {},
|
|
433
|
-
defaultValue:
|
|
444
|
+
defaultValue: undefined,
|
|
434
445
|
disabled: false,
|
|
435
446
|
maxOptions: 6,
|
|
436
|
-
onBlur: function () { },
|
|
447
|
+
onBlur: function (evt) { },
|
|
437
448
|
onChange: function (val) { },
|
|
438
449
|
onKeyDown: function (evt) { },
|
|
439
450
|
onRequestOptions: function (val) { },
|
|
@@ -456,12 +467,12 @@ var defaultProps = {
|
|
|
456
467
|
mode: 'assist',
|
|
457
468
|
direction: 'ltr',
|
|
458
469
|
};
|
|
459
|
-
|
|
470
|
+
var AutocompleteWithDefauls = function (props) {
|
|
460
471
|
var compProps = __assign(__assign({}, defaultProps), props);
|
|
461
472
|
if (props.mode === 'autocomplete') {
|
|
462
473
|
compProps = __assign(__assign({}, compProps), { trigger: '', regex: '.', spacer: '' });
|
|
463
474
|
}
|
|
464
475
|
return react_1.default.createElement(Autocomplete, __assign({}, compProps));
|
|
465
476
|
};
|
|
477
|
+
exports.AutocompleteWithDefauls = AutocompleteWithDefauls;
|
|
466
478
|
exports.default = exports.AutocompleteWithDefauls;
|
|
467
|
-
//# sourceMappingURL=autocomplete.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Autocomplete = void 0;
|
|
3
4
|
var autocomplete_1 = require("./autocomplete");
|
|
4
|
-
exports
|
|
5
|
-
//# sourceMappingURL=index.js.map
|
|
5
|
+
Object.defineProperty(exports, "Autocomplete", { enumerable: true, get: function () { return autocomplete_1.AutocompleteWithDefauls; } });
|
package/dist/box/box.d.ts
CHANGED
package/dist/box/box.js
CHANGED
|
@@ -25,10 +25,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
25
25
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
26
|
};
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.McBox = void 0;
|
|
28
29
|
var react_1 = __importDefault(require("react"));
|
|
29
30
|
var core_1 = require("@material-ui/core");
|
|
30
|
-
|
|
31
|
+
var McBox = function (props) {
|
|
31
32
|
var children = props.children, rest = __rest(props, ["children"]);
|
|
32
33
|
return react_1.default.createElement(core_1.Box, __assign({}, rest), children);
|
|
33
34
|
};
|
|
34
|
-
|
|
35
|
+
exports.McBox = McBox;
|
package/dist/box/index.d.ts
CHANGED
package/dist/box/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Box = void 0;
|
|
3
4
|
var box_1 = require("./box");
|
|
4
|
-
exports
|
|
5
|
-
//# sourceMappingURL=index.js.map
|
|
5
|
+
Object.defineProperty(exports, "Box", { enumerable: true, get: function () { return box_1.McBox; } });
|
|
@@ -3,4 +3,3 @@ import { CustomDataSourceProps } from 'resium/dist/types/src/CustomDataSource/Cu
|
|
|
3
3
|
export interface RCesiumCustomDataSourceProps extends CustomDataSourceProps {
|
|
4
4
|
}
|
|
5
5
|
export declare const CesiumCustomDataSource: React.FC<RCesiumCustomDataSourceProps>;
|
|
6
|
-
//# sourceMappingURL=custom.data-source.d.ts.map
|
|
@@ -14,9 +14,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.CesiumCustomDataSource = void 0;
|
|
17
18
|
var react_1 = __importDefault(require("react"));
|
|
18
19
|
var resium_1 = require("resium");
|
|
19
|
-
|
|
20
|
+
var CesiumCustomDataSource = function (props) {
|
|
20
21
|
return react_1.default.createElement(resium_1.CustomDataSource, __assign({}, props));
|
|
21
22
|
};
|
|
22
|
-
|
|
23
|
+
exports.CesiumCustomDataSource = CesiumCustomDataSource;
|
|
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -23,21 +25,32 @@ var __assign = (this && this.__assign) || function () {
|
|
|
23
25
|
};
|
|
24
26
|
return __assign.apply(this, arguments);
|
|
25
27
|
};
|
|
26
|
-
var
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
};
|
|
28
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
29
|
+
if (k2 === undefined) k2 = k;
|
|
30
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
31
|
+
}) : (function(o, m, k, k2) {
|
|
32
|
+
if (k2 === undefined) k2 = k;
|
|
33
|
+
o[k2] = m[k];
|
|
34
|
+
}));
|
|
35
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
36
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
37
|
+
}) : function(o, v) {
|
|
38
|
+
o["default"] = v;
|
|
39
|
+
});
|
|
33
40
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
34
41
|
if (mod && mod.__esModule) return mod;
|
|
35
42
|
var result = {};
|
|
36
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
37
|
-
result
|
|
43
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
44
|
+
__setModuleDefault(result, mod);
|
|
38
45
|
return result;
|
|
39
46
|
};
|
|
47
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
48
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
49
|
+
to[j] = from[i];
|
|
50
|
+
return to;
|
|
51
|
+
};
|
|
40
52
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
|
+
exports.CesiumDrawingsDataSource = exports.CesiumColor = void 0;
|
|
41
54
|
var react_1 = __importStar(require("react"));
|
|
42
55
|
var cesium_1 = require("cesium");
|
|
43
56
|
var models_1 = require("../../models");
|
|
@@ -60,7 +73,7 @@ var CesiumColor = /** @class */ (function (_super) {
|
|
|
60
73
|
return CesiumColor;
|
|
61
74
|
}(cesium_1.Color));
|
|
62
75
|
exports.CesiumColor = CesiumColor;
|
|
63
|
-
|
|
76
|
+
var CesiumDrawingsDataSource = function (props) {
|
|
64
77
|
var drawState = props.drawState, drawingMaterial = props.drawingMaterial, drawingVertexColor = props.drawingVertexColor, material = props.material, hollow = props.hollow, outlineWidth = props.outlineWidth;
|
|
65
78
|
var mapViewer = map_1.useCesiumMap();
|
|
66
79
|
var _a = react_1.useState(), drawHelper = _a[0], setDrawHelper = _a[1];
|
|
@@ -140,9 +153,9 @@ exports.CesiumDrawingsDataSource = function (props) {
|
|
|
140
153
|
if (hollow !== true) {
|
|
141
154
|
switch (drawEntity.type) {
|
|
142
155
|
case models_1.DrawType.BOX:
|
|
143
|
-
return (react_1.default.createElement(rectangle_graphics_1.CesiumRectangleGraphics, { coordinates: coordinates, material:
|
|
156
|
+
return (react_1.default.createElement(rectangle_graphics_1.CesiumRectangleGraphics, { coordinates: coordinates, material: material !== null && material !== void 0 ? material : drawingMaterial }));
|
|
144
157
|
case models_1.DrawType.POLYGON:
|
|
145
|
-
return (react_1.default.createElement(polygon_graphics_1.CesiumPolygonGraphics, { hierarchy: new cesium_1.PolygonHierarchy(coordinates), material:
|
|
158
|
+
return (react_1.default.createElement(polygon_graphics_1.CesiumPolygonGraphics, { hierarchy: new cesium_1.PolygonHierarchy(coordinates), material: material !== null && material !== void 0 ? material : drawingMaterial }));
|
|
146
159
|
default:
|
|
147
160
|
return react_1.default.createElement(react_1.default.Fragment, null);
|
|
148
161
|
}
|
|
@@ -153,14 +166,14 @@ exports.CesiumDrawingsDataSource = function (props) {
|
|
|
153
166
|
coordinates = primitives_conversions_cesium_1.rectangleToPositions(coordinates);
|
|
154
167
|
break;
|
|
155
168
|
case models_1.DrawType.POLYGON:
|
|
156
|
-
coordinates =
|
|
169
|
+
coordinates = __spreadArray(__spreadArray([], coordinates), [
|
|
157
170
|
coordinates[0],
|
|
158
171
|
]);
|
|
159
172
|
break;
|
|
160
173
|
default:
|
|
161
174
|
return react_1.default.createElement(react_1.default.Fragment, null);
|
|
162
175
|
}
|
|
163
|
-
return (react_1.default.createElement(polyline_graphics_1.CesiumPolylineGraphics, { positions: coordinates, width:
|
|
176
|
+
return (react_1.default.createElement(polyline_graphics_1.CesiumPolylineGraphics, { positions: coordinates, width: outlineWidth !== null && outlineWidth !== void 0 ? outlineWidth : 1, material: material !== null && material !== void 0 ? material : drawingMaterial }));
|
|
164
177
|
}
|
|
165
178
|
};
|
|
166
179
|
return (react_1.default.createElement(custom_data_source_1.CesiumCustomDataSource, __assign({}, props), props.drawings.map(function (drawEntity, i) { return (react_1.default.createElement(entity_1.CesiumEntity, { key: drawEntity.id, name: drawEntity.name },
|
|
@@ -171,4 +184,4 @@ exports.CesiumDrawingsDataSource = function (props) {
|
|
|
171
184
|
react_1.default.createElement("p", null, "This is description of drawed entity")),
|
|
172
185
|
renderGraphicsComponent(drawEntity))); })));
|
|
173
186
|
};
|
|
174
|
-
|
|
187
|
+
exports.CesiumDrawingsDataSource = CesiumDrawingsDataSource;
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
}
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
5
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
|
13
|
+
__exportStar(require("./custom.data-source"), exports);
|
|
14
|
+
__exportStar(require("./drawings.data-source"), exports);
|
|
@@ -4,4 +4,3 @@ export interface RCesiumEntityDescriptionProps extends EntityDescriptionProps {
|
|
|
4
4
|
}
|
|
5
5
|
export declare const CesiumEntityDescription: React.FC<RCesiumEntityDescriptionProps>;
|
|
6
6
|
export declare const CesiumEntityStaticDescription: React.FC;
|
|
7
|
-
//# sourceMappingURL=entity.description.d.ts.map
|
|
@@ -14,12 +14,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.CesiumEntityStaticDescription = exports.CesiumEntityDescription = void 0;
|
|
17
18
|
var react_1 = __importDefault(require("react"));
|
|
18
19
|
var resium_1 = require("resium");
|
|
19
|
-
|
|
20
|
+
var CesiumEntityDescription = function (props) {
|
|
20
21
|
return react_1.default.createElement(resium_1.EntityDescription, __assign({}, props));
|
|
21
22
|
};
|
|
22
|
-
exports.
|
|
23
|
+
exports.CesiumEntityDescription = CesiumEntityDescription;
|
|
24
|
+
var CesiumEntityStaticDescription = function (props) {
|
|
23
25
|
return react_1.default.createElement(resium_1.EntityStaticDescription, __assign({}, props));
|
|
24
26
|
};
|
|
25
|
-
|
|
27
|
+
exports.CesiumEntityStaticDescription = CesiumEntityStaticDescription;
|
|
@@ -14,9 +14,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.CesiumEntity = void 0;
|
|
17
18
|
var react_1 = __importDefault(require("react"));
|
|
18
19
|
var resium_1 = require("resium");
|
|
19
|
-
|
|
20
|
+
var CesiumEntity = function (props) {
|
|
20
21
|
return react_1.default.createElement(resium_1.Entity, __assign({}, props));
|
|
21
22
|
};
|
|
22
|
-
|
|
23
|
+
exports.CesiumEntity = CesiumEntity;
|
|
@@ -3,4 +3,3 @@ import { PolygonGraphicsProps } from 'resium/dist/types/src/PolygonGraphics/Poly
|
|
|
3
3
|
export interface RCesiumPolygonGraphicsProps extends PolygonGraphicsProps {
|
|
4
4
|
}
|
|
5
5
|
export declare const CesiumPolygonGraphics: React.FC<RCesiumPolygonGraphicsProps>;
|
|
6
|
-
//# sourceMappingURL=polygon.graphics.d.ts.map
|
|
@@ -14,9 +14,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.CesiumPolygonGraphics = void 0;
|
|
17
18
|
var react_1 = __importDefault(require("react"));
|
|
18
19
|
var resium_1 = require("resium");
|
|
19
|
-
|
|
20
|
+
var CesiumPolygonGraphics = function (props) {
|
|
20
21
|
return react_1.default.createElement(resium_1.PolygonGraphics, __assign({}, props));
|
|
21
22
|
};
|
|
22
|
-
|
|
23
|
+
exports.CesiumPolygonGraphics = CesiumPolygonGraphics;
|
|
@@ -3,4 +3,3 @@ import { PolylineGraphicsProps } from 'resium/dist/types/src/PolylineGraphics/Po
|
|
|
3
3
|
export interface RCesiumPolylineGraphicsProps extends PolylineGraphicsProps {
|
|
4
4
|
}
|
|
5
5
|
export declare const CesiumPolylineGraphics: React.FC<RCesiumPolylineGraphicsProps>;
|
|
6
|
-
//# sourceMappingURL=polyline.graphics.d.ts.map
|
|
@@ -14,9 +14,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.CesiumPolylineGraphics = void 0;
|
|
17
18
|
var react_1 = __importDefault(require("react"));
|
|
18
19
|
var resium_1 = require("resium");
|
|
19
|
-
|
|
20
|
+
var CesiumPolylineGraphics = function (props) {
|
|
20
21
|
return react_1.default.createElement(resium_1.PolylineGraphics, __assign({}, props));
|
|
21
22
|
};
|
|
22
|
-
|
|
23
|
+
exports.CesiumPolylineGraphics = CesiumPolylineGraphics;
|
|
@@ -3,4 +3,3 @@ import { RectangleGraphicsProps } from 'resium/dist/types/src/RectangleGraphics/
|
|
|
3
3
|
export interface RCesiumRectangleGraphicsProps extends RectangleGraphicsProps {
|
|
4
4
|
}
|
|
5
5
|
export declare const CesiumRectangleGraphics: React.FC<RCesiumRectangleGraphicsProps>;
|
|
6
|
-
//# sourceMappingURL=rectangle.graphics.d.ts.map
|
|
@@ -14,9 +14,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.CesiumRectangleGraphics = void 0;
|
|
17
18
|
var react_1 = __importDefault(require("react"));
|
|
18
19
|
var resium_1 = require("resium");
|
|
19
|
-
|
|
20
|
+
var CesiumRectangleGraphics = function (props) {
|
|
20
21
|
return react_1.default.createElement(resium_1.RectangleGraphics, __assign({}, props));
|
|
21
22
|
};
|
|
22
|
-
|
|
23
|
+
exports.CesiumRectangleGraphics = CesiumRectangleGraphics;
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
}
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
5
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
//# sourceMappingURL=index.js.map
|
|
13
|
+
__exportStar(require("./entity"), exports);
|
|
14
|
+
__exportStar(require("./entity.description"), exports);
|
|
15
|
+
__exportStar(require("./graphics/polygon.graphics"), exports);
|
|
16
|
+
__exportStar(require("./graphics/rectangle.graphics"), exports);
|
package/dist/cesium-map/index.js
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
}
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
5
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
//# sourceMappingURL=index.js.map
|
|
13
|
+
__exportStar(require("./map"), exports);
|
|
14
|
+
__exportStar(require("./map.types"), exports);
|
|
15
|
+
__exportStar(require("./layers"), exports);
|
|
16
|
+
__exportStar(require("../utils/projections"), exports);
|
|
17
|
+
__exportStar(require("./entities"), exports);
|
|
18
|
+
__exportStar(require("./data-sources"), exports);
|
|
19
|
+
__exportStar(require("./proxied.types"), exports);
|