@ngis/plugin-ui 0.4.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 (79) hide show
  1. package/LICENSE +13 -0
  2. package/README.md +25 -0
  3. package/dist/index.cjs +71 -0
  4. package/dist/index.d.ts +114 -0
  5. package/dist/index.mjs +69 -0
  6. package/dist/src/api/analysis.d.ts +140 -0
  7. package/dist/src/api/resources.d.ts +530 -0
  8. package/dist/src/api/scenes.d.ts +251 -0
  9. package/dist/src/api/users.d.ts +22 -0
  10. package/dist/src/api/workflows.d.ts +191 -0
  11. package/dist/src/components/plugin-ui/AttributeTable.d.ts +26 -0
  12. package/dist/src/components/plugin-ui/BatchTable.d.ts +47 -0
  13. package/dist/src/components/plugin-ui/ChartCanvas.d.ts +14 -0
  14. package/dist/src/components/plugin-ui/ExtentPicker.d.ts +22 -0
  15. package/dist/src/components/plugin-ui/FieldSelect.d.ts +23 -0
  16. package/dist/src/components/plugin-ui/Flow.d.ts +256 -0
  17. package/dist/src/components/plugin-ui/ModelSelect.d.ts +36 -0
  18. package/dist/src/components/plugin-ui/ParamForm.d.ts +63 -0
  19. package/dist/src/components/plugin-ui/PickerField.d.ts +52 -0
  20. package/dist/src/components/plugin-ui/ResourceSelect.d.ts +37 -0
  21. package/dist/src/components/plugin-ui/ResultActions.d.ts +48 -0
  22. package/dist/src/components/plugin-ui/RunButton.d.ts +49 -0
  23. package/dist/src/components/plugin-ui/StatChart.d.ts +66 -0
  24. package/dist/src/components/plugin-ui/TaskChrome.d.ts +35 -0
  25. package/dist/src/components/plugin-ui/TaskList.d.ts +29 -0
  26. package/dist/src/components/plugin-ui/TaskStatus.d.ts +55 -0
  27. package/dist/src/components/plugin-ui/batch-model.d.ts +442 -0
  28. package/dist/src/components/plugin-ui/flow-inputs.d.ts +61 -0
  29. package/dist/src/components/plugin-ui/flow-model.d.ts +303 -0
  30. package/dist/src/components/plugin-ui/flow-ports.d.ts +155 -0
  31. package/dist/src/components/plugin-ui/param-form-data.d.ts +122 -0
  32. package/dist/src/components/plugin-ui/param-form-model.d.ts +187 -0
  33. package/dist/src/components/plugin-ui/param-widgets.d.ts +88 -0
  34. package/dist/src/components/plugin-ui/picker-data.d.ts +141 -0
  35. package/dist/src/components/plugin-ui/picker-model.d.ts +150 -0
  36. package/dist/src/components/plugin-ui/recipe-model.d.ts +320 -0
  37. package/dist/src/components/plugin-ui/result-data.d.ts +112 -0
  38. package/dist/src/components/plugin-ui/result-model.d.ts +96 -0
  39. package/dist/src/components/plugin-ui/run-data.d.ts +118 -0
  40. package/dist/src/components/plugin-ui/run-model.d.ts +179 -0
  41. package/dist/src/components/plugin-ui/stat-chart-model.d.ts +168 -0
  42. package/dist/src/components/plugin-ui/validation-messages.d.ts +18 -0
  43. package/dist/src/components/plugin-ui/w2-contracts.d.ts +151 -0
  44. package/dist/src/components/plugin-ui/w3-contracts.d.ts +328 -0
  45. package/dist/src/components/plugin-ui/w4-contracts.d.ts +510 -0
  46. package/dist/src/components/ui/button.d.ts +12 -0
  47. package/dist/src/components/ui/checkbox.d.ts +4 -0
  48. package/dist/src/components/ui/column-resize-handle.d.ts +23 -0
  49. package/dist/src/components/ui/dropdown-menu.d.ts +25 -0
  50. package/dist/src/components/ui/input.d.ts +3 -0
  51. package/dist/src/components/ui/label.d.ts +4 -0
  52. package/dist/src/components/ui/popover.d.ts +10 -0
  53. package/dist/src/components/ui/select.d.ts +15 -0
  54. package/dist/src/components/ui/switch.d.ts +6 -0
  55. package/dist/src/domain/map/types.d.ts +128 -0
  56. package/dist/src/features/gis/components/GisAttributeTable.d.ts +56 -0
  57. package/dist/src/features/gis/hooks/useDatasetFeatureWindow.d.ts +51 -0
  58. package/dist/src/lib/api-error.d.ts +81 -0
  59. package/dist/src/lib/api.d.ts +82 -0
  60. package/dist/src/lib/auth-session.d.ts +22 -0
  61. package/dist/src/lib/hooks/useColumnResize.d.ts +57 -0
  62. package/dist/src/lib/raster-color-layer/RasterColorLayer.d.ts +48 -0
  63. package/dist/src/lib/raster-color-layer/TileGrid.d.ts +31 -0
  64. package/dist/src/lib/raster-color-layer/colorRamp.d.ts +18 -0
  65. package/dist/src/lib/raster-color-layer/shaders/raster-color.frag.d.ts +2 -0
  66. package/dist/src/lib/raster-color-layer/shaders/raster-color.vert.d.ts +2 -0
  67. package/dist/src/lib/raster-color-layer/zoomInterpolate.d.ts +2 -0
  68. package/dist/src/lib/utils.d.ts +2 -0
  69. package/dist/src/sdk/facets/types.d.ts +370 -0
  70. package/dist/src/sdk/host-api.d.ts +256 -0
  71. package/dist/src/sdk/map-api.d.ts +288 -0
  72. package/dist/src/sdk/panels.d.ts +130 -0
  73. package/dist/src/types/analysis.d.ts +205 -0
  74. package/dist/src/types/common.d.ts +17 -0
  75. package/dist/src/types/extensions.d.ts +560 -0
  76. package/dist/src/types/gis.d.ts +242 -0
  77. package/dist/src/types/market-social.d.ts +378 -0
  78. package/dist/src/types/workflow.d.ts +83 -0
  79. package/package.json +59 -0
@@ -0,0 +1,83 @@
1
+ export interface WorkflowDagViewPosition {
2
+ x: number;
3
+ y: number;
4
+ }
5
+ export interface WorkflowDagViewport {
6
+ x: number;
7
+ y: number;
8
+ zoom: number;
9
+ }
10
+ export interface WorkflowDagViewNode {
11
+ id?: string | null;
12
+ type?: string | null;
13
+ position?: WorkflowDagViewPosition | null;
14
+ data?: Record<string, unknown> | null;
15
+ [key: string]: unknown;
16
+ }
17
+ export interface WorkflowDagViewEdge {
18
+ id?: string | null;
19
+ source?: string | null;
20
+ target?: string | null;
21
+ sourceHandle?: string | null;
22
+ targetHandle?: string | null;
23
+ [key: string]: unknown;
24
+ }
25
+ export interface WorkflowDagView {
26
+ nodes?: WorkflowDagViewNode[] | Record<string, WorkflowDagViewNode> | null;
27
+ edges?: WorkflowDagViewEdge[] | null;
28
+ viewport?: WorkflowDagViewport | null;
29
+ [key: string]: unknown;
30
+ }
31
+ export interface WorkflowDagScriptPort {
32
+ key: string;
33
+ dataType?: string | null;
34
+ required?: boolean | null;
35
+ }
36
+ export interface WorkflowDagScriptConfig {
37
+ code?: string | null;
38
+ entryFile?: string | null;
39
+ envVars?: Record<string, string> | null;
40
+ inputPorts?: WorkflowDagScriptPort[] | null;
41
+ outputPorts?: WorkflowDagScriptPort[] | null;
42
+ }
43
+ export interface WorkflowDagNode {
44
+ id: string;
45
+ type?: string | null;
46
+ nodeType?: string | null;
47
+ name?: string | null;
48
+ label?: string | null;
49
+ params?: Record<string, unknown> | null;
50
+ inputs?: Record<string, unknown> | null;
51
+ outputs?: Record<string, unknown> | null;
52
+ options?: Record<string, unknown> | null;
53
+ modelToolId?: string | null;
54
+ workflowToolId?: string | null;
55
+ toolType?: string | null;
56
+ toolVersion?: number | string | null;
57
+ inputFileKey?: string | null;
58
+ outputMode?: string | null;
59
+ targetResourceId?: string | null;
60
+ provider?: string | null;
61
+ category?: string | null;
62
+ sourceType?: string | null;
63
+ layerId?: string | null;
64
+ dataType?: string | null;
65
+ script?: WorkflowDagScriptConfig | null;
66
+ data?: Record<string, unknown> | null;
67
+ }
68
+ export interface WorkflowDagEdge {
69
+ id?: string | null;
70
+ from: string;
71
+ to: string;
72
+ fromOutput?: string | null;
73
+ toInput?: string | null;
74
+ fieldMap?: string | null;
75
+ }
76
+ export interface WorkflowDagGraph {
77
+ nodes: WorkflowDagNode[];
78
+ edges: WorkflowDagEdge[];
79
+ }
80
+ export interface WorkflowDagConfig {
81
+ graph: WorkflowDagGraph;
82
+ view: WorkflowDagView;
83
+ }
package/package.json ADDED
@@ -0,0 +1,59 @@
1
+ {
2
+ "name": "@ngis/plugin-ui",
3
+ "version": "0.4.0",
4
+ "description": "Host-connected React components and flow bindings for NeoGIS plugin authors.",
5
+ "license": "Apache-2.0",
6
+ "private": false,
7
+ "type": "module",
8
+ "sideEffects": false,
9
+ "main": "./dist/index.cjs",
10
+ "module": "./dist/index.mjs",
11
+ "types": "./dist/index.d.ts",
12
+ "exports": {
13
+ ".": {
14
+ "types": "./dist/index.d.ts",
15
+ "import": "./dist/index.mjs",
16
+ "require": "./dist/index.cjs"
17
+ }
18
+ },
19
+ "files": [
20
+ "dist"
21
+ ],
22
+ "engines": {
23
+ "node": ">=20"
24
+ },
25
+ "peerDependencies": {
26
+ "@ngis/plugin-sdk": "^0.4.0",
27
+ "react": "^19.0.0"
28
+ },
29
+ "peerDependenciesMeta": {
30
+ "@ngis/plugin-sdk": {
31
+ "optional": true
32
+ },
33
+ "react": {
34
+ "optional": true
35
+ }
36
+ },
37
+ "repository": {
38
+ "type": "git",
39
+ "url": "git+https://github.com/GeoScenarioScripter/NeoGIS-Frontend.git",
40
+ "directory": "packages/plugin-ui"
41
+ },
42
+ "homepage": "https://github.com/GeoScenarioScripter/NeoGIS-Frontend#readme",
43
+ "bugs": {
44
+ "url": "https://github.com/GeoScenarioScripter/NeoGIS-Frontend/issues"
45
+ },
46
+ "keywords": [
47
+ "neogis",
48
+ "gis",
49
+ "plugin",
50
+ "react"
51
+ ],
52
+ "publishConfig": {
53
+ "access": "public"
54
+ },
55
+ "scripts": {
56
+ "build": "node scripts/build.mjs",
57
+ "prepack": "npm run build"
58
+ }
59
+ }