@agentic-ui-experience/ui-arcgis 0.0.1-beta.3 → 0.0.1-beta.5
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/README.md +148 -4
- package/dist/ArcGISMapGraphicsController.d.ts +44 -0
- package/dist/ArcGISMapGraphicsController.js +1 -0
- package/dist/ArcGISMapView.d.ts +17 -2
- package/dist/ArcGISMapView.js +1 -1
- package/dist/api.d.ts +549 -0
- package/dist/api.js +1 -1
- package/dist/catalog.d.ts +324 -0
- package/dist/catalog.js +1 -1
- package/dist/controller/api.d.ts +320 -42
- package/dist/controller/api.js +1 -1
- package/dist/controller/createArcGISMapController.js +1 -1
- package/dist/controller/featureFilter.d.ts +425 -0
- package/dist/controller/featureFilter.js +1 -0
- package/dist/controller/featureFilterExpression.d.ts +16 -0
- package/dist/controller/featureFilterExpression.js +1 -0
- package/dist/controller/featureFilterRuntime.d.ts +19 -0
- package/dist/controller/featureFilterRuntime.js +1 -0
- package/dist/controller/featureQuery.d.ts +275 -0
- package/dist/controller/featureQuery.js +1 -0
- package/dist/controller/featureQueryExpression.d.ts +16 -0
- package/dist/controller/featureQueryExpression.js +1 -0
- package/dist/controller/featureQueryRuntime.d.ts +12 -0
- package/dist/controller/featureQueryRuntime.js +1 -0
- package/dist/controller/useArcGISMapController.js +1 -1
- package/dist/graphics.d.ts +38 -0
- package/dist/graphics.js +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1 -1
- package/dist/prompt.js +1 -1
- package/package.json +4 -4
package/dist/api.d.ts
CHANGED
|
@@ -328,6 +328,212 @@ declare const ArcGISMapSourceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
328
328
|
} | undefined;
|
|
329
329
|
basemap?: "arcgis/topographic" | "arcgis/streets" | "arcgis/navigation" | "arcgis/light-gray" | "arcgis/dark-gray" | "arcgis/imagery" | "arcgis/outdoor" | "portal/default" | undefined;
|
|
330
330
|
}>]>;
|
|
331
|
+
export declare const ArcGISMapGraphicStyles: readonly ["primary", "success", "warning", "danger", "neutral"];
|
|
332
|
+
declare const ArcGISMapPositionSchema: z.ZodObject<{
|
|
333
|
+
longitude: z.ZodNumber;
|
|
334
|
+
latitude: z.ZodNumber;
|
|
335
|
+
}, "strict", z.ZodTypeAny, {
|
|
336
|
+
latitude: number;
|
|
337
|
+
longitude: number;
|
|
338
|
+
}, {
|
|
339
|
+
latitude: number;
|
|
340
|
+
longitude: number;
|
|
341
|
+
}>;
|
|
342
|
+
declare const ArcGISMapGeometrySchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
343
|
+
type: z.ZodLiteral<"point">;
|
|
344
|
+
coordinates: z.ZodObject<{
|
|
345
|
+
longitude: z.ZodNumber;
|
|
346
|
+
latitude: z.ZodNumber;
|
|
347
|
+
}, "strict", z.ZodTypeAny, {
|
|
348
|
+
latitude: number;
|
|
349
|
+
longitude: number;
|
|
350
|
+
}, {
|
|
351
|
+
latitude: number;
|
|
352
|
+
longitude: number;
|
|
353
|
+
}>;
|
|
354
|
+
}, "strict", z.ZodTypeAny, {
|
|
355
|
+
type: "point";
|
|
356
|
+
coordinates: {
|
|
357
|
+
latitude: number;
|
|
358
|
+
longitude: number;
|
|
359
|
+
};
|
|
360
|
+
}, {
|
|
361
|
+
type: "point";
|
|
362
|
+
coordinates: {
|
|
363
|
+
latitude: number;
|
|
364
|
+
longitude: number;
|
|
365
|
+
};
|
|
366
|
+
}>, z.ZodObject<{
|
|
367
|
+
type: z.ZodLiteral<"polyline">;
|
|
368
|
+
coordinates: z.ZodArray<z.ZodObject<{
|
|
369
|
+
longitude: z.ZodNumber;
|
|
370
|
+
latitude: z.ZodNumber;
|
|
371
|
+
}, "strict", z.ZodTypeAny, {
|
|
372
|
+
latitude: number;
|
|
373
|
+
longitude: number;
|
|
374
|
+
}, {
|
|
375
|
+
latitude: number;
|
|
376
|
+
longitude: number;
|
|
377
|
+
}>, "many">;
|
|
378
|
+
}, "strict", z.ZodTypeAny, {
|
|
379
|
+
type: "polyline";
|
|
380
|
+
coordinates: {
|
|
381
|
+
latitude: number;
|
|
382
|
+
longitude: number;
|
|
383
|
+
}[];
|
|
384
|
+
}, {
|
|
385
|
+
type: "polyline";
|
|
386
|
+
coordinates: {
|
|
387
|
+
latitude: number;
|
|
388
|
+
longitude: number;
|
|
389
|
+
}[];
|
|
390
|
+
}>, z.ZodObject<{
|
|
391
|
+
type: z.ZodLiteral<"polygon">;
|
|
392
|
+
coordinates: z.ZodArray<z.ZodObject<{
|
|
393
|
+
longitude: z.ZodNumber;
|
|
394
|
+
latitude: z.ZodNumber;
|
|
395
|
+
}, "strict", z.ZodTypeAny, {
|
|
396
|
+
latitude: number;
|
|
397
|
+
longitude: number;
|
|
398
|
+
}, {
|
|
399
|
+
latitude: number;
|
|
400
|
+
longitude: number;
|
|
401
|
+
}>, "many">;
|
|
402
|
+
}, "strict", z.ZodTypeAny, {
|
|
403
|
+
type: "polygon";
|
|
404
|
+
coordinates: {
|
|
405
|
+
latitude: number;
|
|
406
|
+
longitude: number;
|
|
407
|
+
}[];
|
|
408
|
+
}, {
|
|
409
|
+
type: "polygon";
|
|
410
|
+
coordinates: {
|
|
411
|
+
latitude: number;
|
|
412
|
+
longitude: number;
|
|
413
|
+
}[];
|
|
414
|
+
}>]>;
|
|
415
|
+
declare const ArcGISMapGraphicSchema: z.ZodObject<{
|
|
416
|
+
geometry: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
417
|
+
type: z.ZodLiteral<"point">;
|
|
418
|
+
coordinates: z.ZodObject<{
|
|
419
|
+
longitude: z.ZodNumber;
|
|
420
|
+
latitude: z.ZodNumber;
|
|
421
|
+
}, "strict", z.ZodTypeAny, {
|
|
422
|
+
latitude: number;
|
|
423
|
+
longitude: number;
|
|
424
|
+
}, {
|
|
425
|
+
latitude: number;
|
|
426
|
+
longitude: number;
|
|
427
|
+
}>;
|
|
428
|
+
}, "strict", z.ZodTypeAny, {
|
|
429
|
+
type: "point";
|
|
430
|
+
coordinates: {
|
|
431
|
+
latitude: number;
|
|
432
|
+
longitude: number;
|
|
433
|
+
};
|
|
434
|
+
}, {
|
|
435
|
+
type: "point";
|
|
436
|
+
coordinates: {
|
|
437
|
+
latitude: number;
|
|
438
|
+
longitude: number;
|
|
439
|
+
};
|
|
440
|
+
}>, z.ZodObject<{
|
|
441
|
+
type: z.ZodLiteral<"polyline">;
|
|
442
|
+
coordinates: z.ZodArray<z.ZodObject<{
|
|
443
|
+
longitude: z.ZodNumber;
|
|
444
|
+
latitude: z.ZodNumber;
|
|
445
|
+
}, "strict", z.ZodTypeAny, {
|
|
446
|
+
latitude: number;
|
|
447
|
+
longitude: number;
|
|
448
|
+
}, {
|
|
449
|
+
latitude: number;
|
|
450
|
+
longitude: number;
|
|
451
|
+
}>, "many">;
|
|
452
|
+
}, "strict", z.ZodTypeAny, {
|
|
453
|
+
type: "polyline";
|
|
454
|
+
coordinates: {
|
|
455
|
+
latitude: number;
|
|
456
|
+
longitude: number;
|
|
457
|
+
}[];
|
|
458
|
+
}, {
|
|
459
|
+
type: "polyline";
|
|
460
|
+
coordinates: {
|
|
461
|
+
latitude: number;
|
|
462
|
+
longitude: number;
|
|
463
|
+
}[];
|
|
464
|
+
}>, z.ZodObject<{
|
|
465
|
+
type: z.ZodLiteral<"polygon">;
|
|
466
|
+
coordinates: z.ZodArray<z.ZodObject<{
|
|
467
|
+
longitude: z.ZodNumber;
|
|
468
|
+
latitude: z.ZodNumber;
|
|
469
|
+
}, "strict", z.ZodTypeAny, {
|
|
470
|
+
latitude: number;
|
|
471
|
+
longitude: number;
|
|
472
|
+
}, {
|
|
473
|
+
latitude: number;
|
|
474
|
+
longitude: number;
|
|
475
|
+
}>, "many">;
|
|
476
|
+
}, "strict", z.ZodTypeAny, {
|
|
477
|
+
type: "polygon";
|
|
478
|
+
coordinates: {
|
|
479
|
+
latitude: number;
|
|
480
|
+
longitude: number;
|
|
481
|
+
}[];
|
|
482
|
+
}, {
|
|
483
|
+
type: "polygon";
|
|
484
|
+
coordinates: {
|
|
485
|
+
latitude: number;
|
|
486
|
+
longitude: number;
|
|
487
|
+
}[];
|
|
488
|
+
}>]>;
|
|
489
|
+
style: z.ZodOptional<z.ZodEnum<["primary", "success", "warning", "danger", "neutral"]>>;
|
|
490
|
+
}, "strict", z.ZodTypeAny, {
|
|
491
|
+
geometry: {
|
|
492
|
+
type: "point";
|
|
493
|
+
coordinates: {
|
|
494
|
+
latitude: number;
|
|
495
|
+
longitude: number;
|
|
496
|
+
};
|
|
497
|
+
} | {
|
|
498
|
+
type: "polyline";
|
|
499
|
+
coordinates: {
|
|
500
|
+
latitude: number;
|
|
501
|
+
longitude: number;
|
|
502
|
+
}[];
|
|
503
|
+
} | {
|
|
504
|
+
type: "polygon";
|
|
505
|
+
coordinates: {
|
|
506
|
+
latitude: number;
|
|
507
|
+
longitude: number;
|
|
508
|
+
}[];
|
|
509
|
+
};
|
|
510
|
+
style?: "primary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
511
|
+
}, {
|
|
512
|
+
geometry: {
|
|
513
|
+
type: "point";
|
|
514
|
+
coordinates: {
|
|
515
|
+
latitude: number;
|
|
516
|
+
longitude: number;
|
|
517
|
+
};
|
|
518
|
+
} | {
|
|
519
|
+
type: "polyline";
|
|
520
|
+
coordinates: {
|
|
521
|
+
latitude: number;
|
|
522
|
+
longitude: number;
|
|
523
|
+
}[];
|
|
524
|
+
} | {
|
|
525
|
+
type: "polygon";
|
|
526
|
+
coordinates: {
|
|
527
|
+
latitude: number;
|
|
528
|
+
longitude: number;
|
|
529
|
+
}[];
|
|
530
|
+
};
|
|
531
|
+
style?: "primary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
532
|
+
}>;
|
|
533
|
+
export type ArcGISMapPosition = z.infer<typeof ArcGISMapPositionSchema>;
|
|
534
|
+
export type ArcGISMapGeometry = z.infer<typeof ArcGISMapGeometrySchema>;
|
|
535
|
+
export type ArcGISMapGraphicStyle = (typeof ArcGISMapGraphicStyles)[number];
|
|
536
|
+
export type ArcGISMapGraphic = z.infer<typeof ArcGISMapGraphicSchema>;
|
|
331
537
|
export declare const ArcGISMapViewPropsSchema: z.ZodObject<{
|
|
332
538
|
title: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
333
539
|
path: z.ZodString;
|
|
@@ -737,6 +943,124 @@ export declare const ArcGISMapViewPropsSchema: z.ZodObject<{
|
|
|
737
943
|
args: Record<string, any>;
|
|
738
944
|
returnType?: "string" | "number" | "boolean" | "object" | "array" | "void" | "any" | undefined;
|
|
739
945
|
}>]>>;
|
|
946
|
+
graphics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
947
|
+
geometry: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
948
|
+
type: z.ZodLiteral<"point">;
|
|
949
|
+
coordinates: z.ZodObject<{
|
|
950
|
+
longitude: z.ZodNumber;
|
|
951
|
+
latitude: z.ZodNumber;
|
|
952
|
+
}, "strict", z.ZodTypeAny, {
|
|
953
|
+
latitude: number;
|
|
954
|
+
longitude: number;
|
|
955
|
+
}, {
|
|
956
|
+
latitude: number;
|
|
957
|
+
longitude: number;
|
|
958
|
+
}>;
|
|
959
|
+
}, "strict", z.ZodTypeAny, {
|
|
960
|
+
type: "point";
|
|
961
|
+
coordinates: {
|
|
962
|
+
latitude: number;
|
|
963
|
+
longitude: number;
|
|
964
|
+
};
|
|
965
|
+
}, {
|
|
966
|
+
type: "point";
|
|
967
|
+
coordinates: {
|
|
968
|
+
latitude: number;
|
|
969
|
+
longitude: number;
|
|
970
|
+
};
|
|
971
|
+
}>, z.ZodObject<{
|
|
972
|
+
type: z.ZodLiteral<"polyline">;
|
|
973
|
+
coordinates: z.ZodArray<z.ZodObject<{
|
|
974
|
+
longitude: z.ZodNumber;
|
|
975
|
+
latitude: z.ZodNumber;
|
|
976
|
+
}, "strict", z.ZodTypeAny, {
|
|
977
|
+
latitude: number;
|
|
978
|
+
longitude: number;
|
|
979
|
+
}, {
|
|
980
|
+
latitude: number;
|
|
981
|
+
longitude: number;
|
|
982
|
+
}>, "many">;
|
|
983
|
+
}, "strict", z.ZodTypeAny, {
|
|
984
|
+
type: "polyline";
|
|
985
|
+
coordinates: {
|
|
986
|
+
latitude: number;
|
|
987
|
+
longitude: number;
|
|
988
|
+
}[];
|
|
989
|
+
}, {
|
|
990
|
+
type: "polyline";
|
|
991
|
+
coordinates: {
|
|
992
|
+
latitude: number;
|
|
993
|
+
longitude: number;
|
|
994
|
+
}[];
|
|
995
|
+
}>, z.ZodObject<{
|
|
996
|
+
type: z.ZodLiteral<"polygon">;
|
|
997
|
+
coordinates: z.ZodArray<z.ZodObject<{
|
|
998
|
+
longitude: z.ZodNumber;
|
|
999
|
+
latitude: z.ZodNumber;
|
|
1000
|
+
}, "strict", z.ZodTypeAny, {
|
|
1001
|
+
latitude: number;
|
|
1002
|
+
longitude: number;
|
|
1003
|
+
}, {
|
|
1004
|
+
latitude: number;
|
|
1005
|
+
longitude: number;
|
|
1006
|
+
}>, "many">;
|
|
1007
|
+
}, "strict", z.ZodTypeAny, {
|
|
1008
|
+
type: "polygon";
|
|
1009
|
+
coordinates: {
|
|
1010
|
+
latitude: number;
|
|
1011
|
+
longitude: number;
|
|
1012
|
+
}[];
|
|
1013
|
+
}, {
|
|
1014
|
+
type: "polygon";
|
|
1015
|
+
coordinates: {
|
|
1016
|
+
latitude: number;
|
|
1017
|
+
longitude: number;
|
|
1018
|
+
}[];
|
|
1019
|
+
}>]>;
|
|
1020
|
+
style: z.ZodOptional<z.ZodEnum<["primary", "success", "warning", "danger", "neutral"]>>;
|
|
1021
|
+
}, "strict", z.ZodTypeAny, {
|
|
1022
|
+
geometry: {
|
|
1023
|
+
type: "point";
|
|
1024
|
+
coordinates: {
|
|
1025
|
+
latitude: number;
|
|
1026
|
+
longitude: number;
|
|
1027
|
+
};
|
|
1028
|
+
} | {
|
|
1029
|
+
type: "polyline";
|
|
1030
|
+
coordinates: {
|
|
1031
|
+
latitude: number;
|
|
1032
|
+
longitude: number;
|
|
1033
|
+
}[];
|
|
1034
|
+
} | {
|
|
1035
|
+
type: "polygon";
|
|
1036
|
+
coordinates: {
|
|
1037
|
+
latitude: number;
|
|
1038
|
+
longitude: number;
|
|
1039
|
+
}[];
|
|
1040
|
+
};
|
|
1041
|
+
style?: "primary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
1042
|
+
}, {
|
|
1043
|
+
geometry: {
|
|
1044
|
+
type: "point";
|
|
1045
|
+
coordinates: {
|
|
1046
|
+
latitude: number;
|
|
1047
|
+
longitude: number;
|
|
1048
|
+
};
|
|
1049
|
+
} | {
|
|
1050
|
+
type: "polyline";
|
|
1051
|
+
coordinates: {
|
|
1052
|
+
latitude: number;
|
|
1053
|
+
longitude: number;
|
|
1054
|
+
}[];
|
|
1055
|
+
} | {
|
|
1056
|
+
type: "polygon";
|
|
1057
|
+
coordinates: {
|
|
1058
|
+
latitude: number;
|
|
1059
|
+
longitude: number;
|
|
1060
|
+
}[];
|
|
1061
|
+
};
|
|
1062
|
+
style?: "primary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
1063
|
+
}>, "many">>;
|
|
740
1064
|
}, "strict", z.ZodTypeAny, {
|
|
741
1065
|
source: {
|
|
742
1066
|
type: "webmap";
|
|
@@ -832,6 +1156,28 @@ export declare const ArcGISMapViewPropsSchema: z.ZodObject<{
|
|
|
832
1156
|
args: Record<string, any>;
|
|
833
1157
|
returnType: "string" | "number" | "boolean" | "object" | "array" | "void" | "any";
|
|
834
1158
|
} | undefined;
|
|
1159
|
+
graphics?: {
|
|
1160
|
+
geometry: {
|
|
1161
|
+
type: "point";
|
|
1162
|
+
coordinates: {
|
|
1163
|
+
latitude: number;
|
|
1164
|
+
longitude: number;
|
|
1165
|
+
};
|
|
1166
|
+
} | {
|
|
1167
|
+
type: "polyline";
|
|
1168
|
+
coordinates: {
|
|
1169
|
+
latitude: number;
|
|
1170
|
+
longitude: number;
|
|
1171
|
+
}[];
|
|
1172
|
+
} | {
|
|
1173
|
+
type: "polygon";
|
|
1174
|
+
coordinates: {
|
|
1175
|
+
latitude: number;
|
|
1176
|
+
longitude: number;
|
|
1177
|
+
}[];
|
|
1178
|
+
};
|
|
1179
|
+
style?: "primary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
1180
|
+
}[] | undefined;
|
|
835
1181
|
}, {
|
|
836
1182
|
source: {
|
|
837
1183
|
type: "webmap";
|
|
@@ -927,6 +1273,28 @@ export declare const ArcGISMapViewPropsSchema: z.ZodObject<{
|
|
|
927
1273
|
args: Record<string, any>;
|
|
928
1274
|
returnType?: "string" | "number" | "boolean" | "object" | "array" | "void" | "any" | undefined;
|
|
929
1275
|
} | undefined;
|
|
1276
|
+
graphics?: {
|
|
1277
|
+
geometry: {
|
|
1278
|
+
type: "point";
|
|
1279
|
+
coordinates: {
|
|
1280
|
+
latitude: number;
|
|
1281
|
+
longitude: number;
|
|
1282
|
+
};
|
|
1283
|
+
} | {
|
|
1284
|
+
type: "polyline";
|
|
1285
|
+
coordinates: {
|
|
1286
|
+
latitude: number;
|
|
1287
|
+
longitude: number;
|
|
1288
|
+
}[];
|
|
1289
|
+
} | {
|
|
1290
|
+
type: "polygon";
|
|
1291
|
+
coordinates: {
|
|
1292
|
+
latitude: number;
|
|
1293
|
+
longitude: number;
|
|
1294
|
+
}[];
|
|
1295
|
+
};
|
|
1296
|
+
style?: "primary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
1297
|
+
}[] | undefined;
|
|
930
1298
|
}>;
|
|
931
1299
|
export declare const ArcGISMapViewApi: {
|
|
932
1300
|
name: string;
|
|
@@ -1339,6 +1707,124 @@ export declare const ArcGISMapViewApi: {
|
|
|
1339
1707
|
args: Record<string, any>;
|
|
1340
1708
|
returnType?: "string" | "number" | "boolean" | "object" | "array" | "void" | "any" | undefined;
|
|
1341
1709
|
}>]>>;
|
|
1710
|
+
graphics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1711
|
+
geometry: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1712
|
+
type: z.ZodLiteral<"point">;
|
|
1713
|
+
coordinates: z.ZodObject<{
|
|
1714
|
+
longitude: z.ZodNumber;
|
|
1715
|
+
latitude: z.ZodNumber;
|
|
1716
|
+
}, "strict", z.ZodTypeAny, {
|
|
1717
|
+
latitude: number;
|
|
1718
|
+
longitude: number;
|
|
1719
|
+
}, {
|
|
1720
|
+
latitude: number;
|
|
1721
|
+
longitude: number;
|
|
1722
|
+
}>;
|
|
1723
|
+
}, "strict", z.ZodTypeAny, {
|
|
1724
|
+
type: "point";
|
|
1725
|
+
coordinates: {
|
|
1726
|
+
latitude: number;
|
|
1727
|
+
longitude: number;
|
|
1728
|
+
};
|
|
1729
|
+
}, {
|
|
1730
|
+
type: "point";
|
|
1731
|
+
coordinates: {
|
|
1732
|
+
latitude: number;
|
|
1733
|
+
longitude: number;
|
|
1734
|
+
};
|
|
1735
|
+
}>, z.ZodObject<{
|
|
1736
|
+
type: z.ZodLiteral<"polyline">;
|
|
1737
|
+
coordinates: z.ZodArray<z.ZodObject<{
|
|
1738
|
+
longitude: z.ZodNumber;
|
|
1739
|
+
latitude: z.ZodNumber;
|
|
1740
|
+
}, "strict", z.ZodTypeAny, {
|
|
1741
|
+
latitude: number;
|
|
1742
|
+
longitude: number;
|
|
1743
|
+
}, {
|
|
1744
|
+
latitude: number;
|
|
1745
|
+
longitude: number;
|
|
1746
|
+
}>, "many">;
|
|
1747
|
+
}, "strict", z.ZodTypeAny, {
|
|
1748
|
+
type: "polyline";
|
|
1749
|
+
coordinates: {
|
|
1750
|
+
latitude: number;
|
|
1751
|
+
longitude: number;
|
|
1752
|
+
}[];
|
|
1753
|
+
}, {
|
|
1754
|
+
type: "polyline";
|
|
1755
|
+
coordinates: {
|
|
1756
|
+
latitude: number;
|
|
1757
|
+
longitude: number;
|
|
1758
|
+
}[];
|
|
1759
|
+
}>, z.ZodObject<{
|
|
1760
|
+
type: z.ZodLiteral<"polygon">;
|
|
1761
|
+
coordinates: z.ZodArray<z.ZodObject<{
|
|
1762
|
+
longitude: z.ZodNumber;
|
|
1763
|
+
latitude: z.ZodNumber;
|
|
1764
|
+
}, "strict", z.ZodTypeAny, {
|
|
1765
|
+
latitude: number;
|
|
1766
|
+
longitude: number;
|
|
1767
|
+
}, {
|
|
1768
|
+
latitude: number;
|
|
1769
|
+
longitude: number;
|
|
1770
|
+
}>, "many">;
|
|
1771
|
+
}, "strict", z.ZodTypeAny, {
|
|
1772
|
+
type: "polygon";
|
|
1773
|
+
coordinates: {
|
|
1774
|
+
latitude: number;
|
|
1775
|
+
longitude: number;
|
|
1776
|
+
}[];
|
|
1777
|
+
}, {
|
|
1778
|
+
type: "polygon";
|
|
1779
|
+
coordinates: {
|
|
1780
|
+
latitude: number;
|
|
1781
|
+
longitude: number;
|
|
1782
|
+
}[];
|
|
1783
|
+
}>]>;
|
|
1784
|
+
style: z.ZodOptional<z.ZodEnum<["primary", "success", "warning", "danger", "neutral"]>>;
|
|
1785
|
+
}, "strict", z.ZodTypeAny, {
|
|
1786
|
+
geometry: {
|
|
1787
|
+
type: "point";
|
|
1788
|
+
coordinates: {
|
|
1789
|
+
latitude: number;
|
|
1790
|
+
longitude: number;
|
|
1791
|
+
};
|
|
1792
|
+
} | {
|
|
1793
|
+
type: "polyline";
|
|
1794
|
+
coordinates: {
|
|
1795
|
+
latitude: number;
|
|
1796
|
+
longitude: number;
|
|
1797
|
+
}[];
|
|
1798
|
+
} | {
|
|
1799
|
+
type: "polygon";
|
|
1800
|
+
coordinates: {
|
|
1801
|
+
latitude: number;
|
|
1802
|
+
longitude: number;
|
|
1803
|
+
}[];
|
|
1804
|
+
};
|
|
1805
|
+
style?: "primary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
1806
|
+
}, {
|
|
1807
|
+
geometry: {
|
|
1808
|
+
type: "point";
|
|
1809
|
+
coordinates: {
|
|
1810
|
+
latitude: number;
|
|
1811
|
+
longitude: number;
|
|
1812
|
+
};
|
|
1813
|
+
} | {
|
|
1814
|
+
type: "polyline";
|
|
1815
|
+
coordinates: {
|
|
1816
|
+
latitude: number;
|
|
1817
|
+
longitude: number;
|
|
1818
|
+
}[];
|
|
1819
|
+
} | {
|
|
1820
|
+
type: "polygon";
|
|
1821
|
+
coordinates: {
|
|
1822
|
+
latitude: number;
|
|
1823
|
+
longitude: number;
|
|
1824
|
+
}[];
|
|
1825
|
+
};
|
|
1826
|
+
style?: "primary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
1827
|
+
}>, "many">>;
|
|
1342
1828
|
}, "strict", z.ZodTypeAny, {
|
|
1343
1829
|
source: {
|
|
1344
1830
|
type: "webmap";
|
|
@@ -1434,6 +1920,28 @@ export declare const ArcGISMapViewApi: {
|
|
|
1434
1920
|
args: Record<string, any>;
|
|
1435
1921
|
returnType: "string" | "number" | "boolean" | "object" | "array" | "void" | "any";
|
|
1436
1922
|
} | undefined;
|
|
1923
|
+
graphics?: {
|
|
1924
|
+
geometry: {
|
|
1925
|
+
type: "point";
|
|
1926
|
+
coordinates: {
|
|
1927
|
+
latitude: number;
|
|
1928
|
+
longitude: number;
|
|
1929
|
+
};
|
|
1930
|
+
} | {
|
|
1931
|
+
type: "polyline";
|
|
1932
|
+
coordinates: {
|
|
1933
|
+
latitude: number;
|
|
1934
|
+
longitude: number;
|
|
1935
|
+
}[];
|
|
1936
|
+
} | {
|
|
1937
|
+
type: "polygon";
|
|
1938
|
+
coordinates: {
|
|
1939
|
+
latitude: number;
|
|
1940
|
+
longitude: number;
|
|
1941
|
+
}[];
|
|
1942
|
+
};
|
|
1943
|
+
style?: "primary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
1944
|
+
}[] | undefined;
|
|
1437
1945
|
}, {
|
|
1438
1946
|
source: {
|
|
1439
1947
|
type: "webmap";
|
|
@@ -1529,6 +2037,28 @@ export declare const ArcGISMapViewApi: {
|
|
|
1529
2037
|
args: Record<string, any>;
|
|
1530
2038
|
returnType?: "string" | "number" | "boolean" | "object" | "array" | "void" | "any" | undefined;
|
|
1531
2039
|
} | undefined;
|
|
2040
|
+
graphics?: {
|
|
2041
|
+
geometry: {
|
|
2042
|
+
type: "point";
|
|
2043
|
+
coordinates: {
|
|
2044
|
+
latitude: number;
|
|
2045
|
+
longitude: number;
|
|
2046
|
+
};
|
|
2047
|
+
} | {
|
|
2048
|
+
type: "polyline";
|
|
2049
|
+
coordinates: {
|
|
2050
|
+
latitude: number;
|
|
2051
|
+
longitude: number;
|
|
2052
|
+
}[];
|
|
2053
|
+
} | {
|
|
2054
|
+
type: "polygon";
|
|
2055
|
+
coordinates: {
|
|
2056
|
+
latitude: number;
|
|
2057
|
+
longitude: number;
|
|
2058
|
+
}[];
|
|
2059
|
+
};
|
|
2060
|
+
style?: "primary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
2061
|
+
}[] | undefined;
|
|
1532
2062
|
}>;
|
|
1533
2063
|
};
|
|
1534
2064
|
export type ArcGISMapControls = z.infer<typeof ArcGISMapControlsSchema>;
|
|
@@ -1540,6 +2070,24 @@ export interface NormalizedArcGISMapControls {
|
|
|
1540
2070
|
layerList: boolean;
|
|
1541
2071
|
search: boolean;
|
|
1542
2072
|
}
|
|
2073
|
+
export interface NormalizedArcGISMapPosition {
|
|
2074
|
+
longitude: number;
|
|
2075
|
+
latitude: number;
|
|
2076
|
+
}
|
|
2077
|
+
export type NormalizedArcGISMapGeometry = {
|
|
2078
|
+
type: "point";
|
|
2079
|
+
coordinates: NormalizedArcGISMapPosition;
|
|
2080
|
+
} | {
|
|
2081
|
+
type: "polyline";
|
|
2082
|
+
coordinates: NormalizedArcGISMapPosition[];
|
|
2083
|
+
} | {
|
|
2084
|
+
type: "polygon";
|
|
2085
|
+
coordinates: NormalizedArcGISMapPosition[];
|
|
2086
|
+
};
|
|
2087
|
+
export interface NormalizedArcGISMapGraphic {
|
|
2088
|
+
geometry: NormalizedArcGISMapGeometry;
|
|
2089
|
+
style: ArcGISMapGraphicStyle;
|
|
2090
|
+
}
|
|
1543
2091
|
export interface NormalizedArcGISMapViewProps {
|
|
1544
2092
|
title?: string;
|
|
1545
2093
|
description?: string;
|
|
@@ -1558,6 +2106,7 @@ export interface NormalizedArcGISMapViewProps {
|
|
|
1558
2106
|
controls: NormalizedArcGISMapControls;
|
|
1559
2107
|
height: number;
|
|
1560
2108
|
openInArcGIS: boolean;
|
|
2109
|
+
graphics: NormalizedArcGISMapGraphic[];
|
|
1561
2110
|
}
|
|
1562
2111
|
export declare function normalizeArcGISMapViewProps(props: ArcGISMapViewProps): NormalizedArcGISMapViewProps;
|
|
1563
2112
|
export {};
|
package/dist/api.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1a59be=_0x27aa;(function(_0x78ddae,_0x29bf18){const _0x1a5d85=_0x27aa,_0x319d5d=_0x78ddae();while(!![]){try{const _0x1dbc90=-parseInt(_0x1a5d85(0x1df))/0x1*(parseInt(_0x1a5d85(0x1ea))/0x2)+parseInt(_0x1a5d85(0x1f3))/0x3+-parseInt(_0x1a5d85(0x1d0))/0x4*(parseInt(_0x1a5d85(0x1f5))/0x5)+parseInt(_0x1a5d85(0x1d5))/0x6*(parseInt(_0x1a5d85(0x1e3))/0x7)+-parseInt(_0x1a5d85(0x1f4))/0x8+-parseInt(_0x1a5d85(0x1f0))/0x9+parseInt(_0x1a5d85(0x1f2))/0xa;if(_0x1dbc90===_0x29bf18)break;else _0x319d5d['push'](_0x319d5d['shift']());}catch(_0x3d8f7f){_0x319d5d['push'](_0x319d5d['shift']());}}}(_0xe512,0x2ebb7));import{z,CommonSchemas}from'@agentic-ui-experience/ui-runtime';const ArcGISBasemaps=[_0x1a59be(0x1f6),'arcgis/streets','arcgis/navigation','arcgis/light-gray','arcgis/dark-gray',_0x1a59be(0x1ef),'arcgis/outdoor','portal/default'],defaultArcGISBasemap='portal/default',defaultArcGISMapControls={'zoom':!![],'legend':![],'layerList':![],'search':![]},ArcGISBasemapSchema=z[_0x1a59be(0x1f7)](ArcGISBasemaps),ArcGISMapHeightSchema=CommonSchemas[_0x1a59be(0x1e6)]['refine'](_0x28280f=>typeof _0x28280f!=='number'||_0x28280f>=0xb4&&_0x28280f<=0x280,'ArcGISMapView\x20height\x20must\x20be\x20between\x20180\x20and\x20640\x20pixels.'),ArcGISMapControlsSchema=z['object']({'zoom':CommonSchemas[_0x1a59be(0x1eb)]['optional'](),'legend':CommonSchemas['DynamicBoolean']['optional'](),'layerList':CommonSchemas['DynamicBoolean']['optional'](),'search':CommonSchemas['DynamicBoolean'][_0x1a59be(0x1e5)]()})[_0x1a59be(0x1da)](),ArcGISMapSourceSchema=z['discriminatedUnion']('type',[z[_0x1a59be(0x1d8)]({'type':z[_0x1a59be(0x1f1)](_0x1a59be(0x1ce)),'itemId':CommonSchemas['DynamicString']})[_0x1a59be(0x1da)](),z[_0x1a59be(0x1d8)]({'type':z['literal']('basemap'),'basemap':ArcGISBasemapSchema[_0x1a59be(0x1e5)](),'center':z['object']({'latitude':CommonSchemas[_0x1a59be(0x1e6)],'longitude':CommonSchemas['DynamicNumber']})['strict'](),'zoom':CommonSchemas[_0x1a59be(0x1e6)][_0x1a59be(0x1e5)]()})['strict']()]),ArcGISMapGraphicStyles=[_0x1a59be(0x1d9),'success','warning',_0x1a59be(0x1e4),'neutral'],ArcGISMapPositionSchema=z[_0x1a59be(0x1d8)]({'longitude':z['number']()[_0x1a59be(0x1dd)]()['min'](-0xb4)[_0x1a59be(0x1ee)](0xb4),'latitude':z['number']()[_0x1a59be(0x1dd)]()[_0x1a59be(0x1ed)](-0x5a)['max'](0x5a)})[_0x1a59be(0x1da)](),ArcGISMapGeometrySchema=z[_0x1a59be(0x1e0)]('type',[z['object']({'type':z['literal'](_0x1a59be(0x1f8)),'coordinates':ArcGISMapPositionSchema})['strict'](),z['object']({'type':z['literal']('polyline'),'coordinates':z['array'](ArcGISMapPositionSchema)[_0x1a59be(0x1ed)](0x2)})['strict'](),z['object']({'type':z['literal']('polygon'),'coordinates':z['array'](ArcGISMapPositionSchema)['min'](0x3)})['strict']()]),ArcGISMapGraphicSchema=z[_0x1a59be(0x1d8)]({'geometry':ArcGISMapGeometrySchema,'style':z['enum'](ArcGISMapGraphicStyles)['optional']()})['strict'](),ArcGISMapViewPropsSchema=z['object']({'title':CommonSchemas[_0x1a59be(0x1d4)]['optional'](),'description':CommonSchemas[_0x1a59be(0x1d4)]['optional'](),'source':ArcGISMapSourceSchema,'controls':ArcGISMapControlsSchema['optional'](),'height':ArcGISMapHeightSchema['optional'](),'openInArcGIS':CommonSchemas['DynamicBoolean']['optional'](),'graphics':z['array'](ArcGISMapGraphicSchema)[_0x1a59be(0x1ee)](0x32)[_0x1a59be(0x1e5)]()})[_0x1a59be(0x1da)](),ArcGISMapViewApi={'name':_0x1a59be(0x1e7),'schema':ArcGISMapViewPropsSchema};function normalizeArcGISMapPosition(_0x1cc885){const _0x17664a=_0x1a59be;return{'longitude':Number(_0x1cc885[_0x17664a(0x1e9)]),'latitude':Number(_0x1cc885['latitude'])};}function normalizeArcGISMapGraphic(_0xaabe99){const _0x570021=_0x1a59be,_0x105264=_0xaabe99[_0x570021(0x1e1)]['type']===_0x570021(0x1f8)?{'type':'point','coordinates':normalizeArcGISMapPosition(_0xaabe99['geometry']['coordinates'])}:{'type':_0xaabe99[_0x570021(0x1e1)][_0x570021(0x1ec)],'coordinates':_0xaabe99['geometry'][_0x570021(0x1e2)]['map'](normalizeArcGISMapPosition)};return{'geometry':_0x105264,'style':_0xaabe99['style']??'primary'};}function normalizeArcGISMapViewProps(_0x1c15e0){const _0x3f0648=_0x1a59be,_0x22360f={...defaultArcGISMapControls,..._0x1c15e0['controls']},_0x5115e2=Number(_0x1c15e0['height']??0x118);return{'title':typeof _0x1c15e0['title']==='string'?_0x1c15e0[_0x3f0648(0x1d6)]:void 0x0,'description':typeof _0x1c15e0[_0x3f0648(0x1e8)]==='string'?_0x1c15e0[_0x3f0648(0x1e8)]:void 0x0,'source':_0x1c15e0[_0x3f0648(0x1f9)][_0x3f0648(0x1ec)]==='basemap'?{'type':_0x3f0648(0x1d1),'basemap':_0x1c15e0[_0x3f0648(0x1f9)][_0x3f0648(0x1d1)]??defaultArcGISBasemap,'center':{'latitude':Number(_0x1c15e0[_0x3f0648(0x1f9)][_0x3f0648(0x1cf)][_0x3f0648(0x1db)]),'longitude':Number(_0x1c15e0[_0x3f0648(0x1f9)]['center'][_0x3f0648(0x1e9)])},'zoom':_0x1c15e0['source']['zoom']===void 0x0?void 0x0:Number(_0x1c15e0['source'][_0x3f0648(0x1de)])}:{'type':'webmap','itemId':String(_0x1c15e0[_0x3f0648(0x1f9)][_0x3f0648(0x1dc)])},'controls':{'zoom':Boolean(_0x22360f['zoom']),'legend':Boolean(_0x22360f[_0x3f0648(0x1d3)]),'layerList':Boolean(_0x22360f['layerList']),'search':Boolean(_0x22360f[_0x3f0648(0x1d7)])},'height':Number[_0x3f0648(0x1d2)](_0x5115e2)?Math['min'](Math[_0x3f0648(0x1ee)](_0x5115e2,0xb4),0x280):0x118,'openInArcGIS':Boolean(_0x1c15e0['openInArcGIS']??![]),'graphics':(_0x1c15e0['graphics']??[])['map'](normalizeArcGISMapGraphic)};}function _0x27aa(_0x5c6d63,_0x1807d3){_0x5c6d63=_0x5c6d63-0x1ce;const _0xe512e3=_0xe512();let _0x27aa4f=_0xe512e3[_0x5c6d63];return _0x27aa4f;}export{ArcGISBasemaps,ArcGISMapGraphicStyles,ArcGISMapViewApi,ArcGISMapViewPropsSchema,defaultArcGISBasemap,defaultArcGISMapControls,normalizeArcGISMapViewProps};function _0xe512(){const _0x3ad3ae=['isFinite','legend','DynamicString','72wnDOck','title','search','object','primary','strict','latitude','itemId','finite','zoom','58oHDYql','discriminatedUnion','geometry','coordinates','6167pwxDTh','danger','optional','DynamicNumber','ArcGISMapView','description','longitude','9484DPGazS','DynamicBoolean','type','min','max','arcgis/imagery','1342503yOMgnn','literal','7816820iuUgRb','893706UVrheC','2742408huSbwW','515TAFLWb','arcgis/topographic','enum','point','source','webmap','center','5116GKzLUb','basemap'];_0xe512=function(){return _0x3ad3ae;};return _0xe512();}
|