@redus/georedus-ui 0.1.0

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.
Files changed (64) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +1 -0
  3. package/dist/DevControls/importViewSpecsFromCsv/index.d.ts +6 -0
  4. package/dist/DevWebWorker/WorkerDemo.d.ts +2 -0
  5. package/dist/DevWebWorker/math.worker.d.ts +1 -0
  6. package/dist/DialogSystem/index.d.ts +4 -0
  7. package/dist/GeoReDUS/GeoReDUS.d.ts +2 -0
  8. package/dist/GeoReDUS/index.d.ts +1 -0
  9. package/dist/GeoReDUS/util.d.ts +6 -0
  10. package/dist/GeoReDUS/viewConfReducer.d.ts +25 -0
  11. package/dist/GeoReDUSLogo/GeoReDUSLogo.d.ts +1 -0
  12. package/dist/GeoReDUSLogo/GeoReDUSLogoSymbol.d.ts +1 -0
  13. package/dist/GeoReDUSLogo/GeoReDUSLogoText.d.ts +1 -0
  14. package/dist/GeoReDUSLogo/index.d.ts +3 -0
  15. package/dist/GeoReDUSWorker/GeoReDUSWorker.d.ts +1 -0
  16. package/dist/GeoReDUSWorker/GeoReDUSWorker.worker.d.ts +1 -0
  17. package/dist/GeoReDUSWorker/index.d.ts +1 -0
  18. package/dist/GeoReDUSWorker/methods/dissolveAreasPreservingIsolated.d.ts +1 -0
  19. package/dist/InputSystem/Inputs/GeoFile/GeoFile.d.ts +1 -0
  20. package/dist/InputSystem/Inputs/GeoFile/setupGdal.d.ts +5 -0
  21. package/dist/InputSystem/index.d.ts +1 -0
  22. package/dist/LeftPanel/LeftPanel.d.ts +10 -0
  23. package/dist/LeftPanel/SharePanel.d.ts +5 -0
  24. package/dist/LeftPanel/index.d.ts +1 -0
  25. package/dist/Markdown/index.d.ts +1 -0
  26. package/dist/ViewControl/CollapsibleContent.d.ts +2 -0
  27. package/dist/ViewControl/ViewConfTabs.d.ts +6 -0
  28. package/dist/ViewControl/ViewControl.d.ts +11 -0
  29. package/dist/ViewControl/index.d.ts +1 -0
  30. package/dist/ViewLayoutPopover/ViewLayoutControl.d.ts +5 -0
  31. package/dist/ViewLayoutPopover/ViewLayoutPopover.d.ts +6 -0
  32. package/dist/ViewLayoutPopover/index.d.ts +1 -0
  33. package/dist/ViewMenu/ViewMenu.d.ts +9 -0
  34. package/dist/ViewMenu/index.d.ts +1 -0
  35. package/dist/index.d.ts +1 -0
  36. package/dist/index.mjs +8314 -0
  37. package/dist/viewSpecs/constants.d.ts +1 -0
  38. package/dist/viewSpecs/index.d.ts +3 -0
  39. package/dist/viewSpecs/parseViewSpec.d.ts +1 -0
  40. package/dist/viewSpecs/presets/cem_censo_2010_2022/index.d.ts +285 -0
  41. package/dist/viewSpecs/presets/cem_escolas_2022/boolean_categorical.d.ts +1 -0
  42. package/dist/viewSpecs/presets/cem_escolas_2022/categorical.d.ts +11 -0
  43. package/dist/viewSpecs/presets/cem_escolas_2022/index.d.ts +1 -0
  44. package/dist/viewSpecs/presets/cem_escolas_2022/numerical_choropleth.d.ts +12 -0
  45. package/dist/viewSpecs/presets/cem_escolas_2022/numerical_size.d.ts +9 -0
  46. package/dist/viewSpecs/presets/cem_saude_2024/boolean_categorical.d.ts +1 -0
  47. package/dist/viewSpecs/presets/cem_saude_2024/categorical.d.ts +12 -0
  48. package/dist/viewSpecs/presets/cem_saude_2024/index.d.ts +1 -0
  49. package/dist/viewSpecs/presets/cem_saude_2024/numerical_choropleth.d.ts +10 -0
  50. package/dist/viewSpecs/presets/cem_saude_2024/numerical_size.d.ts +9 -0
  51. package/dist/viewSpecs/presets/index.d.ts +3 -0
  52. package/dist/viewSpecs/resolveView/customExpr.d.ts +12 -0
  53. package/dist/viewSpecs/resolveView/index.d.ts +1 -0
  54. package/dist/viewSpecs/resolveView/resolveExpr.d.ts +10 -0
  55. package/dist/viewSpecs/resolveView/resolveView.d.ts +12 -0
  56. package/dist/viewSpecs/resolveViewSpecs.d.ts +10 -0
  57. package/dist/viewSpecs/types.d.ts +41 -0
  58. package/dist/viewSpecs/util/BASE_MAP_LAYERS.d.ts +394 -0
  59. package/dist/viewSpecs/util/colorSchemes.d.ts +14 -0
  60. package/dist/viewSpecs/util/downloadResolver.d.ts +9 -0
  61. package/dist/viewSpecs/util/filter.d.ts +4 -0
  62. package/dist/viewSpecs/util/index.d.ts +49 -0
  63. package/dist/viewSpecs/util/setupVariants.d.ts +5 -0
  64. package/package.json +66 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,19 @@
1
+ # @orioro/template-react
2
+
3
+ ## 0.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - move georedus-related packages to isolated repo
8
+
9
+ ## 0.0.2
10
+
11
+ ### Patch Changes
12
+
13
+ - fix changeset release with yarn
14
+
15
+ ## 0.0.1
16
+
17
+ ### Patch Changes
18
+
19
+ - f26720d: Initialize package version control using changeset
package/README.md ADDED
@@ -0,0 +1 @@
1
+ # Template react lib
@@ -0,0 +1,6 @@
1
+ export function importViewSpecsFromCsv(dialogs: any): Promise<typeof CANCELLED | Record<string, any>[]>;
2
+ export namespace COLLECTION_SCHEMAS {
3
+ export { ibge_malha_br_setor_censitario_2010 };
4
+ export { ibge_malha_br_setor_censitario_2022 };
5
+ }
6
+ import { CANCELLED } from '@orioro/react-ui-core';
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const WorkerDemo: () => React.JSX.Element;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ export function DialogsProvider({ children }: {
2
+ children: any;
3
+ }): import("react").JSX.Element;
4
+ export const useDialogs: () => import("@orioro/react-dialogs").DialogsAPI<import("@orioro/react-dialogs").DialogSpecList>;
@@ -0,0 +1,2 @@
1
+ export function queryKeyHashFnWithFileSupport(queryKey: any): string;
2
+ export function GeoReDUS(props: any): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from "./GeoReDUS";
@@ -0,0 +1,6 @@
1
+ export function getDeviceLocation(options?: {}): Promise<any>;
2
+ export function resolveInitialMunicipioId({ METADATA_API_ENDPOINT, coordinates, defaultCoordinates, }: {
3
+ METADATA_API_ENDPOINT: any;
4
+ coordinates: any;
5
+ defaultCoordinates: any;
6
+ }): Promise<any>;
@@ -0,0 +1,25 @@
1
+ import { ItemList } from '@orioro/react-sortable';
2
+ type ViewConf = {
3
+ id: string;
4
+ [key: string]: any;
5
+ };
6
+ type State = {
7
+ byId: Record<string, ViewConf>;
8
+ layout: ItemList[];
9
+ };
10
+ type Action = {
11
+ type: 'SET_VIEW';
12
+ payload: {
13
+ viewConf: ViewConf;
14
+ layoutIndex?: number;
15
+ };
16
+ } | {
17
+ type: 'DEACTIVATE_VIEW';
18
+ payload: string;
19
+ } | {
20
+ type: 'SET_LAYOUT';
21
+ payload: ItemList[];
22
+ };
23
+ export declare function viewConfReducer(state: State, action: Action): State;
24
+ export declare function viewConfReducerInitialState(initialState: any): State;
25
+ export {};
@@ -0,0 +1 @@
1
+ export function GeoReDUSLogo(): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export function GeoReDUSLogoSymbol(): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export function GeoReDUSLogoText(): import("react").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export * from "./GeoReDUSLogo";
2
+ export * from "./GeoReDUSLogoSymbol";
3
+ export * from "./GeoReDUSLogoText";
@@ -0,0 +1 @@
1
+ export declare const GeoReDUSWorker: import("comlink").Remote<unknown> | null;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export * from './GeoReDUSWorker';
@@ -0,0 +1 @@
1
+ export declare function dissolveAreasPreservingIsolated(geojson: any): import("geojson").FeatureCollection<import("geojson").Point, import("geojson").GeoJsonProperties>;
@@ -0,0 +1 @@
1
+ export function GeoFile(props: any): import("react").JSX.Element;
@@ -0,0 +1,5 @@
1
+ export function setupGdal(): Promise<Gdal>;
2
+ export function ogr2ogr({ src, format }: {
3
+ src: any;
4
+ format: any;
5
+ }): Promise<Blob>;
@@ -0,0 +1 @@
1
+ export function InputProvider(props: any): import("react").JSX.Element;
@@ -0,0 +1,10 @@
1
+ export function LeftPanel({ viewConfState, viewConfDispatch, viewSpecs, resolvedViews, open, onSetOpen, syncedMapsRef, mapContainerRef, }: {
2
+ viewConfState: any;
3
+ viewConfDispatch: any;
4
+ viewSpecs: any;
5
+ resolvedViews: any;
6
+ open: any;
7
+ onSetOpen: any;
8
+ syncedMapsRef: any;
9
+ mapContainerRef: any;
10
+ }): import("react").JSX.Element;
@@ -0,0 +1,5 @@
1
+ export function SharePanel({ syncedMapsRef, mapContainerRef }: {
2
+ syncedMapsRef: any;
3
+ mapContainerRef: any;
4
+ }): React.JSX.Element;
5
+ import React from 'react';
@@ -0,0 +1 @@
1
+ export * from "./LeftPanel";
@@ -0,0 +1 @@
1
+ export function Markdown(props: any): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import * as Collapsible from '@radix-ui/react-collapsible';
2
+ export declare const CollapsibleContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Collapsible.CollapsibleContentProps & import("react").RefAttributes<HTMLDivElement>, never>> & string & Omit<import("react").ForwardRefExoticComponent<Collapsible.CollapsibleContentProps & import("react").RefAttributes<HTMLDivElement>>, keyof import("react").Component<any, {}, any>>;
@@ -0,0 +1,6 @@
1
+ export function ViewConfTabs({ viewSpec, viewConf, resolvedView, onSetView }: {
2
+ viewSpec: any;
3
+ viewConf: any;
4
+ resolvedView: any;
5
+ onSetView: any;
6
+ }): import("react").JSX.Element;
@@ -0,0 +1,11 @@
1
+ export function ViewControl({ textSearch, viewSpec, viewConf, resolvedView, onSetView, onDeactivateView, configurable, path, style, }: {
2
+ textSearch: any;
3
+ viewSpec: any;
4
+ viewConf: any;
5
+ resolvedView: any;
6
+ onSetView: any;
7
+ onDeactivateView: any;
8
+ configurable?: boolean | undefined;
9
+ path?: null | undefined;
10
+ style: any;
11
+ }): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from "./ViewControl";
@@ -0,0 +1,5 @@
1
+ export function ViewLayoutControl({ viewSpecs, viewConfState, viewConfDispatch, }: {
2
+ viewSpecs: any;
3
+ viewConfState: any;
4
+ viewConfDispatch: any;
5
+ }): import("react").JSX.Element;
@@ -0,0 +1,6 @@
1
+ export function ViewLayoutPopover({ viewSpecs, viewConfState, viewConfDispatch, ...props }: {
2
+ [x: string]: any;
3
+ viewSpecs: any;
4
+ viewConfState: any;
5
+ viewConfDispatch: any;
6
+ }): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from "./ViewLayoutPopover";
@@ -0,0 +1,9 @@
1
+ export function ViewMenu({ viewSpecs, viewConfState, resolvedViews, onSetView, onDeactivateView, style, ...props }: {
2
+ [x: string]: any;
3
+ viewSpecs: any;
4
+ viewConfState: any;
5
+ resolvedViews: any;
6
+ onSetView: any;
7
+ onDeactivateView: any;
8
+ style: any;
9
+ }): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from "./ViewMenu";
@@ -0,0 +1 @@
1
+ export * from './GeoReDUS';