@feltmaps/js-sdk 1.7.0-next.21 → 1.7.0-next.22
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/dist/client.d.cts +2 -2
- package/dist/client.d.ts +2 -2
- package/dist/{controller-BPKMlMAI.d.cts → controller-Bf6iA9-c.d.cts} +136 -127
- package/dist/{controller-BPKMlMAI.d.ts → controller-Bf6iA9-c.d.ts} +136 -127
- package/dist/controller-bundled.d.ts +136 -127
- package/dist/handler.d.cts +1 -1
- package/dist/handler.d.ts +1 -1
- package/package.json +1 -1
- package/handler.d.ts +0 -4229
- package/handler.js +0 -1
- package/types-B241Rd9q.d.ts +0 -7395
|
@@ -5232,7 +5232,7 @@ interface ElementChangeCallbackParams {
|
|
|
5232
5232
|
*
|
|
5233
5233
|
* If the user is editing an existing element, this will be false.
|
|
5234
5234
|
*
|
|
5235
|
-
* For elements that are created
|
|
5235
|
+
* For elements that are created programmatically, this will be false.
|
|
5236
5236
|
*/
|
|
5237
5237
|
isBeingCreated: boolean;
|
|
5238
5238
|
}
|
|
@@ -5359,7 +5359,7 @@ interface ElementsController {
|
|
|
5359
5359
|
* @example
|
|
5360
5360
|
* ```typescript
|
|
5361
5361
|
* const unsubscribe = felt.onElementCreate({
|
|
5362
|
-
* handler: (element) => console.log(element.id),
|
|
5362
|
+
* handler: ({isBeingCreated, element}) => console.log(element.id),
|
|
5363
5363
|
* });
|
|
5364
5364
|
*
|
|
5365
5365
|
* // later on...
|
|
@@ -5370,7 +5370,7 @@ interface ElementsController {
|
|
|
5370
5370
|
/**
|
|
5371
5371
|
* The handler that is called when an element is created.
|
|
5372
5372
|
*
|
|
5373
|
-
* This will fire when elements are created
|
|
5373
|
+
* This will fire when elements are created programmatically, or when the
|
|
5374
5374
|
* user starts creating an element with a drawing tool.
|
|
5375
5375
|
*
|
|
5376
5376
|
* When the user creates an element with a drawing tool, it can begin in
|
|
@@ -5402,7 +5402,7 @@ interface ElementsController {
|
|
|
5402
5402
|
* @event
|
|
5403
5403
|
* @example
|
|
5404
5404
|
* ```typescript
|
|
5405
|
-
* const unsubscribe = felt.
|
|
5405
|
+
* const unsubscribe = felt.onElementCreateEnd({
|
|
5406
5406
|
* handler: (params) => console.log(params),
|
|
5407
5407
|
* });
|
|
5408
5408
|
*
|
|
@@ -5424,7 +5424,7 @@ interface ElementsController {
|
|
|
5424
5424
|
* Adds a listener for when an element changes.
|
|
5425
5425
|
*
|
|
5426
5426
|
* This will fire when an element is being edited, either on the map by the user
|
|
5427
|
-
* or
|
|
5427
|
+
* or programmatically.
|
|
5428
5428
|
*
|
|
5429
5429
|
* Like the {@link ElementsController.onElementCreate | `onElementCreate`} listener, this will fire when an element is
|
|
5430
5430
|
* still being created by a drawing tool.
|
|
@@ -5524,19 +5524,21 @@ interface ElementsController {
|
|
|
5524
5524
|
*/
|
|
5525
5525
|
createElement(element: ElementCreate): Promise<Element>;
|
|
5526
5526
|
/**
|
|
5527
|
-
* Update an element on the map.
|
|
5527
|
+
* Update an element on the map. The element type must be specified.
|
|
5528
5528
|
*
|
|
5529
5529
|
* @example
|
|
5530
5530
|
* ```typescript
|
|
5531
5531
|
* // Update a place element's coordinates
|
|
5532
5532
|
* await felt.updateElement({
|
|
5533
5533
|
* id: "element-1",
|
|
5534
|
+
* type: "Place",
|
|
5534
5535
|
* coordinates: [10, 20]
|
|
5535
5536
|
* });
|
|
5536
5537
|
*
|
|
5537
5538
|
* // Update a polygon's style
|
|
5538
5539
|
* await felt.updateElement({
|
|
5539
5540
|
* id: "element-2",
|
|
5541
|
+
* type: "Polygon",
|
|
5540
5542
|
* color: "#ABC123",
|
|
5541
5543
|
* fillOpacity: 0.5
|
|
5542
5544
|
* });
|
|
@@ -5862,7 +5864,7 @@ interface GeoJsonUrlVectorSource extends zInfer<typeof GeoJsonUrlVectorSourceSch
|
|
|
5862
5864
|
}
|
|
5863
5865
|
/**
|
|
5864
5866
|
* A GeoJSON data source is a layer that is populated from GeoJSON data, such as
|
|
5865
|
-
* from a local file, or
|
|
5867
|
+
* from a local file, or programmatically-created data.
|
|
5866
5868
|
*
|
|
5867
5869
|
* @group Layer sources
|
|
5868
5870
|
*/
|
|
@@ -7892,7 +7894,7 @@ interface LayersController {
|
|
|
7892
7894
|
* // first get the current style
|
|
7893
7895
|
* const oldStyle = (await felt.getLayer("layer-1")).style;
|
|
7894
7896
|
*
|
|
7895
|
-
* felt.setLayerStyle({ id: "layer-1", style: {
|
|
7897
|
+
* await felt.setLayerStyle({ id: "layer-1", style: {
|
|
7896
7898
|
* ...oldStyle,
|
|
7897
7899
|
* paint: {
|
|
7898
7900
|
* ...oldStyle.paint,
|
|
@@ -7974,7 +7976,7 @@ interface LayersController {
|
|
|
7974
7976
|
*
|
|
7975
7977
|
* const layerFromUrl = await felt.createLayersFromGeoJson({
|
|
7976
7978
|
* source: {
|
|
7977
|
-
*
|
|
7979
|
+
* type: "geoJsonUrl",
|
|
7978
7980
|
* url: "https://example.com/parcels.geojson",
|
|
7979
7981
|
* },
|
|
7980
7982
|
* name: "Parcels",
|
|
@@ -8555,15 +8557,18 @@ interface LayersController {
|
|
|
8555
8557
|
* averages, sums, etc. You can focus your calculation on specific areas or subsets
|
|
8556
8558
|
* of your data using boundaries and filters.
|
|
8557
8559
|
*
|
|
8558
|
-
* When
|
|
8559
|
-
*
|
|
8560
|
+
* When you request an aggregation other than count, you must specify an attribute to
|
|
8561
|
+
* aggregate on.
|
|
8560
8562
|
*
|
|
8561
8563
|
* @example
|
|
8562
8564
|
* ```typescript
|
|
8563
8565
|
* // Count all residential buildings
|
|
8564
8566
|
* const residentialCount = await felt.getAggregates({
|
|
8565
8567
|
* layerId: "buildings",
|
|
8566
|
-
* filters: ["type", "eq", "residential"]
|
|
8568
|
+
* filters: ["type", "eq", "residential"],
|
|
8569
|
+
* aggregation: {
|
|
8570
|
+
* methods: ["count"],
|
|
8571
|
+
* }
|
|
8567
8572
|
* });
|
|
8568
8573
|
*
|
|
8569
8574
|
* // Calculate average home value in a specific neighborhood
|
|
@@ -8941,7 +8946,7 @@ interface SelectionController {
|
|
|
8941
8946
|
*/
|
|
8942
8947
|
selectFeature(params: FeatureSelection): Promise<void>;
|
|
8943
8948
|
/**
|
|
8944
|
-
* Clears the current selection
|
|
8949
|
+
* Clears the current selection (elements, features or both)
|
|
8945
8950
|
*
|
|
8946
8951
|
* @example
|
|
8947
8952
|
* ```typescript
|
|
@@ -11462,70 +11467,54 @@ declare const uiPanelSchema: ZodObject<objectUtil.extendShape<objectUtil.extendS
|
|
|
11462
11467
|
}, ...args: unknown[]) => void) | undefined;
|
|
11463
11468
|
}>;
|
|
11464
11469
|
/**
|
|
11465
|
-
*
|
|
11466
|
-
* It can be added to the map by using the {@link UiController.createOrUpdatePanel} method.
|
|
11467
|
-
*
|
|
11468
|
-
* A panel is a container for other UI elements.
|
|
11469
|
-
* It can have a title, a body, a footer as well as a close button.
|
|
11470
|
+
* A UI panel that can be added to the map using {@link UiController.createOrUpdatePanel}.
|
|
11470
11471
|
*
|
|
11471
|
-
*
|
|
11472
|
-
*
|
|
11473
|
-
* The close button is a button rendered in the top right corner of the panel that can be
|
|
11474
|
-
* used to close the panel and is only visible if `onClickClose` is provided.
|
|
11475
|
-
* Usually, you want to call {@link UiController.deletePanel} when the close button is clicked,
|
|
11476
|
-
* e.g. `onClickClose: () => felt.deletePanel("my-panel")`.
|
|
11472
|
+
* Panels are containers for UI elements with title, body, footer, and close button.
|
|
11473
|
+
* Body and footer elements are arranged in vertical stacks.
|
|
11477
11474
|
*
|
|
11478
11475
|
* #### Body
|
|
11479
|
-
*
|
|
11480
|
-
* that it can contain a lot of elements.
|
|
11476
|
+
* Main content area that scrolls when content exceeds available space.
|
|
11481
11477
|
*
|
|
11482
11478
|
* #### Footer
|
|
11483
|
-
*
|
|
11484
|
-
*
|
|
11485
|
-
* @example
|
|
11486
|
-
* #### basic
|
|
11487
|
-
* ```typescript
|
|
11488
|
-
* {
|
|
11489
|
-
* title: "My Panel",
|
|
11490
|
-
* body: [
|
|
11491
|
-
* { type: "Text", text: "Hello" },
|
|
11492
|
-
* ],
|
|
11493
|
-
* }
|
|
11494
|
-
* ```
|
|
11479
|
+
* Sticky bottom section for action buttons (e.g., Save, Cancel).
|
|
11495
11480
|
*
|
|
11496
|
-
*
|
|
11497
|
-
*
|
|
11498
|
-
*
|
|
11499
|
-
* {
|
|
11500
|
-
* id: "my-panel",
|
|
11501
|
-
* title: "My Panel",
|
|
11502
|
-
* onClickClose: () => felt.deletePanel("my-panel"),
|
|
11503
|
-
* }
|
|
11481
|
+
* #### Close Button
|
|
11482
|
+
* Optional close icon in header. When `onClickClose` is provided, you must handle
|
|
11483
|
+
* panel cleanup and removal.
|
|
11504
11484
|
*
|
|
11505
11485
|
* @example
|
|
11506
|
-
* #### form
|
|
11507
11486
|
* ```typescript
|
|
11508
|
-
*
|
|
11509
|
-
*
|
|
11510
|
-
*
|
|
11511
|
-
*
|
|
11512
|
-
*
|
|
11513
|
-
*
|
|
11514
|
-
*
|
|
11515
|
-
*
|
|
11516
|
-
*
|
|
11517
|
-
* type: "
|
|
11518
|
-
*
|
|
11519
|
-
*
|
|
11520
|
-
*
|
|
11521
|
-
*
|
|
11522
|
-
*
|
|
11523
|
-
*
|
|
11524
|
-
*
|
|
11525
|
-
*
|
|
11526
|
-
* }
|
|
11487
|
+
* // 1. Create panel ID
|
|
11488
|
+
* const panelId = await felt.createPanelId();
|
|
11489
|
+
*
|
|
11490
|
+
* // 2. Create panel with close button and footer
|
|
11491
|
+
* await felt.createOrUpdatePanel({
|
|
11492
|
+
* panel: {
|
|
11493
|
+
* id: panelId,
|
|
11494
|
+
* title: "My Panel",
|
|
11495
|
+
* body: [
|
|
11496
|
+
* { type: "Text", content: "Hello, world!" },
|
|
11497
|
+
* { type: "TextInput", label: "Name", placeholder: "Enter your name" }
|
|
11498
|
+
* ],
|
|
11499
|
+
* footer: [
|
|
11500
|
+
* {
|
|
11501
|
+
* type: "ButtonRow",
|
|
11502
|
+
* align: "end",
|
|
11503
|
+
* items: [
|
|
11504
|
+
* { type: "Button", label: "Cancel", onClick: () => handleCancel() },
|
|
11505
|
+
* { type: "Button", label: "Save", onClick: () => handleSave() }
|
|
11506
|
+
* ]
|
|
11507
|
+
* }
|
|
11508
|
+
* ],
|
|
11509
|
+
* onClickClose: (args) => {
|
|
11510
|
+
* // Clean up any state or resources
|
|
11511
|
+
* cleanupResources();
|
|
11512
|
+
* // Close the panel
|
|
11513
|
+
* felt.deletePanel(panelId);
|
|
11514
|
+
* }
|
|
11515
|
+
* }
|
|
11516
|
+
* });
|
|
11527
11517
|
* ```
|
|
11528
|
-
*
|
|
11529
11518
|
*/
|
|
11530
11519
|
interface UIPanel extends UIElementBase, Omit<zInfer<typeof uiPanelSchema>, "onClickClose" | "body" | "footer" | "onCreate" | "onDestroy" | "id"> {
|
|
11531
11520
|
/**
|
|
@@ -14194,10 +14183,10 @@ interface UiController {
|
|
|
14194
14183
|
* ```typescript
|
|
14195
14184
|
* await felt.createActionTrigger({
|
|
14196
14185
|
* actionTrigger: {
|
|
14197
|
-
* id: "
|
|
14198
|
-
* label: "
|
|
14186
|
+
* id: "enablePolygonTool", // optional. Required if you want to update the action trigger later
|
|
14187
|
+
* label: "Draw polygon",
|
|
14199
14188
|
* onTrigger: async () => {
|
|
14200
|
-
*
|
|
14189
|
+
* felt.setTool("polygon");
|
|
14201
14190
|
* },
|
|
14202
14191
|
* disabled: false, // optional, defaults to false
|
|
14203
14192
|
* },
|
|
@@ -14219,8 +14208,8 @@ interface UiController {
|
|
|
14219
14208
|
* @example
|
|
14220
14209
|
* ```typescript
|
|
14221
14210
|
* await felt.updateActionTrigger({
|
|
14222
|
-
* id: "
|
|
14223
|
-
* label: "
|
|
14211
|
+
* id: "enablePolygonTool",
|
|
14212
|
+
* label: "Enable polygon tool", // only label changes
|
|
14224
14213
|
* });
|
|
14225
14214
|
* ```
|
|
14226
14215
|
*/
|
|
@@ -14232,7 +14221,7 @@ interface UiController {
|
|
|
14232
14221
|
*
|
|
14233
14222
|
* @example
|
|
14234
14223
|
* ```typescript
|
|
14235
|
-
* await felt.deleteActionTrigger("
|
|
14224
|
+
* await felt.deleteActionTrigger("enablePolygonTool");
|
|
14236
14225
|
* ```
|
|
14237
14226
|
*/
|
|
14238
14227
|
deleteActionTrigger(id: string): void;
|
|
@@ -14250,66 +14239,72 @@ interface UiController {
|
|
|
14250
14239
|
/**
|
|
14251
14240
|
* Creates or updates a panel.
|
|
14252
14241
|
*
|
|
14253
|
-
* Panels are rendered on map's right sidebar and
|
|
14254
|
-
*
|
|
14255
|
-
* This way it is possible to cover new use cases while keeping the user experience consistent with the rest of Felt.
|
|
14242
|
+
* Panels are rendered on the map's right sidebar and allow you to extend Felt UI
|
|
14243
|
+
* for your own use cases using Felt UI elements (e.g., Text, Button, etc.).
|
|
14256
14244
|
*
|
|
14257
|
-
* A panel is identified by its ID
|
|
14258
|
-
* Custom IDs are not supported
|
|
14245
|
+
* A panel is identified by its ID, which must be created using {@link createPanelId}.
|
|
14246
|
+
* Custom IDs are not supported to prevent conflicts with other panels.
|
|
14259
14247
|
*
|
|
14260
|
-
* Panels have two sections:
|
|
14261
|
-
* - `body` -
|
|
14262
|
-
* - `footer` -
|
|
14248
|
+
* Panels have two main sections:
|
|
14249
|
+
* - `body` - The main content area of the panel, which is scrollable.
|
|
14250
|
+
* - `footer` - A section that sticks to the bottom of the panel, useful for
|
|
14251
|
+
* action buttons like "Submit" or "Cancel".
|
|
14263
14252
|
*
|
|
14264
|
-
*
|
|
14265
|
-
*
|
|
14266
|
-
*
|
|
14253
|
+
* Panel placement is controlled by the `initialPlacement` parameter. By default,
|
|
14254
|
+
* panels are added to the end of the panel stack, but you can specify a different
|
|
14255
|
+
* placement. Note that this placement cannot be changed after the panel is created.
|
|
14267
14256
|
*
|
|
14268
|
-
*
|
|
14269
|
-
*
|
|
14257
|
+
* Element IDs are required for targeted updates and deletions using the other
|
|
14258
|
+
* panel management methods. For complete panel refreshes with this method,
|
|
14259
|
+
* element IDs are optional but recommended for consistency.
|
|
14270
14260
|
*
|
|
14271
|
-
*
|
|
14272
|
-
*
|
|
14273
|
-
*
|
|
14261
|
+
* For dynamic content management, consider these approaches:
|
|
14262
|
+
* - Use this method for complete panel refreshes (replaces all content)
|
|
14263
|
+
* - Use {@link createPanelElements} to add new elements to existing panels
|
|
14264
|
+
* - Use {@link updatePanelElements} to modify specific existing elements
|
|
14265
|
+
* - Use {@link deletePanelElements} to remove specific elements
|
|
14274
14266
|
*
|
|
14275
|
-
* @param args - The arguments for the
|
|
14276
|
-
* @param args.panel - The panel to
|
|
14277
|
-
* @param args.initialPlacement - The placement of the panel when added.
|
|
14278
|
-
*
|
|
14279
|
-
*
|
|
14280
|
-
*
|
|
14281
|
-
*
|
|
14267
|
+
* @param args - The arguments for creating or updating the panel.
|
|
14268
|
+
* @param args.panel - The panel configuration to create or update.
|
|
14269
|
+
* @param args.initialPlacement - The placement of the panel when first added.
|
|
14270
|
+
* Optional. Defaults to `{ at: "end" }`.
|
|
14271
|
+
* - `{ at: "start" }` - Add the panel to the start of the stack.
|
|
14272
|
+
* - `{ at: "end" }` - Add the panel to the end of the stack.
|
|
14273
|
+
* - `{ after: "panel-1" }` - Add the panel after the panel with the id `panel-1`.
|
|
14274
|
+
* - `{ before: "panel-1" }` - Add the panel before the panel with the id `panel-1`.
|
|
14282
14275
|
*
|
|
14283
14276
|
* @example
|
|
14284
14277
|
* ```typescript
|
|
14285
|
-
*
|
|
14278
|
+
* // 1. Create panel ID first (required)
|
|
14279
|
+
* const panelId = await felt.createPanelId();
|
|
14286
14280
|
*
|
|
14281
|
+
* // 2. Define reusable elements
|
|
14282
|
+
* const SELECT = { id: "layer-select", type: "Select", label: "Layer", options: [...] };
|
|
14283
|
+
* const ANALYZE_BTN = { id: "analyze-btn", type: "Button", label: "Analyze", onClick: handleAnalyze };
|
|
14284
|
+
* const STATUS_TEXT = { id: "status-text", type: "Text", content: "" };
|
|
14285
|
+
* const CLEAR_BTN = { id: "clear-btn", type: "Button", label: "Clear", onClick: handleClear };
|
|
14286
|
+
*
|
|
14287
|
+
* // 3. Initial state
|
|
14287
14288
|
* await felt.createOrUpdatePanel({
|
|
14288
|
-
*
|
|
14289
|
-
*
|
|
14290
|
-
*
|
|
14291
|
-
*
|
|
14292
|
-
*
|
|
14293
|
-
*
|
|
14294
|
-
*
|
|
14295
|
-
*
|
|
14296
|
-
*
|
|
14297
|
-
*
|
|
14298
|
-
*
|
|
14299
|
-
*
|
|
14300
|
-
*
|
|
14301
|
-
*
|
|
14302
|
-
*
|
|
14303
|
-
*
|
|
14304
|
-
*
|
|
14305
|
-
*
|
|
14306
|
-
*
|
|
14307
|
-
* label: "Submit",
|
|
14308
|
-
* onClick: () => submitForm(),
|
|
14309
|
-
* },
|
|
14310
|
-
* ],
|
|
14311
|
-
* },
|
|
14312
|
-
* initialPlacement: { at: "start" }, // when added, the panel will be added to the start of the stack
|
|
14289
|
+
* panel: { id: panelId, title: "Data Analyzer", body: [SELECT, ANALYZE_BTN] }
|
|
14290
|
+
* });
|
|
14291
|
+
*
|
|
14292
|
+
* // 4. Loading state (replaces entire panel)
|
|
14293
|
+
* await felt.createOrUpdatePanel({
|
|
14294
|
+
* panel: {
|
|
14295
|
+
* id: panelId,
|
|
14296
|
+
* title: "Data Analyzer",
|
|
14297
|
+
* body: [SELECT, ANALYZE_BTN, { ...STATUS_TEXT, content: "Loading..." }]
|
|
14298
|
+
* }
|
|
14299
|
+
* });
|
|
14300
|
+
*
|
|
14301
|
+
* // 5. Results state (replaces entire panel)
|
|
14302
|
+
* await felt.createOrUpdatePanel({
|
|
14303
|
+
* panel: {
|
|
14304
|
+
* id: panelId,
|
|
14305
|
+
* title: "Data Analyzer",
|
|
14306
|
+
* body: [SELECT, ANALYZE_BTN, { ...STATUS_TEXT, content: "**Results:**\n- Found 150 features" }, CLEAR_BTN]
|
|
14307
|
+
* }
|
|
14313
14308
|
* });
|
|
14314
14309
|
* ```
|
|
14315
14310
|
*/
|
|
@@ -14362,22 +14357,36 @@ interface UiController {
|
|
|
14362
14357
|
*/
|
|
14363
14358
|
createPanelElements(args: CreatePanelElementsParams): Promise<UIPanel>;
|
|
14364
14359
|
/**
|
|
14365
|
-
* Updates an element in a panel.
|
|
14360
|
+
* Updates an existing element in a panel. This method can only update elements that
|
|
14361
|
+
* already exist in the panel and have an ID.
|
|
14366
14362
|
*
|
|
14367
14363
|
* @param args - The arguments for the method.
|
|
14368
14364
|
* @param args.panelId - The id of the panel to update the element in.
|
|
14369
|
-
* @param args.elements - Array of elements to update
|
|
14365
|
+
* @param args.elements - Array of elements to update. Each element must have an `id` and `type`
|
|
14366
|
+
* to identify which existing element to update. The element must already exist in the panel.
|
|
14370
14367
|
*
|
|
14371
14368
|
* @example
|
|
14372
14369
|
* ```typescript
|
|
14370
|
+
* // 1. Create panel with initial elements
|
|
14371
|
+
* const panelId = await felt.createPanelId();
|
|
14372
|
+
* const STATUS_TEXT = { id: "status-text", type: "Text", content: "Ready" };
|
|
14373
|
+
*
|
|
14374
|
+
* await felt.createOrUpdatePanel({
|
|
14375
|
+
* panel: {
|
|
14376
|
+
* id: panelId,
|
|
14377
|
+
* title: "My Panel",
|
|
14378
|
+
* body: [STATUS_TEXT]
|
|
14379
|
+
* }
|
|
14380
|
+
* });
|
|
14381
|
+
*
|
|
14382
|
+
* // 2. Update the existing element
|
|
14373
14383
|
* await felt.updatePanelElements({
|
|
14374
14384
|
* panelId,
|
|
14375
14385
|
* elements: [
|
|
14376
14386
|
* {
|
|
14377
14387
|
* element: {
|
|
14378
|
-
*
|
|
14379
|
-
*
|
|
14380
|
-
* content: "Hello, world!",
|
|
14388
|
+
* ...STATUS_TEXT, // Reuse the same element structure
|
|
14389
|
+
* content: "Updated content" // Only change what needs updating
|
|
14381
14390
|
* },
|
|
14382
14391
|
* },
|
|
14383
14392
|
* ],
|
package/dist/handler.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z, ZodError } from 'zod';
|
|
2
|
-
import { F as FeltController, ci as UnwrapPromise, z as zInfer, c as ElementChangeCallbackParams, f as ElementGroupChangeCallbackParams, E as Element, D as MapInteractionEvent, ap as FilterTernary, $ as LayerChangeCallbackParams, a2 as LayerGroupChangeCallbackParams, a5 as LegendItemChangeCallbackParams, at as LayerFilters, as as LayerBoundaries, aO as EntityNode, bn as ToolType, bl as ToolSettingsChangeEvent, cj as uiActionTriggerSchema, bS as UIPanelElementCreate, ck as UIPanelElementCreateClonable, cl as uiPanelCreateSchema, cm as UIButtonElementCreateClonable, cn as MakeClonableSchema, bD as UITextElementCreate, bJ as UIDividerElementCreate, bM as UITextInputElementCreate, bP as UISelectElementCreate, bG as UIFlexibleSpaceElementCreate, co as UIButtonRowElementCreateClonable, b$ as UICheckboxGroupElementCreate, c2 as UIRadioGroupElementCreate, c5 as UIToggleGroupElementCreate, c8 as UIIframeElementCreate, cg as ViewportState, cp as PromiseOrNot, cq as UnionToIntersection } from './controller-
|
|
2
|
+
import { F as FeltController, ci as UnwrapPromise, z as zInfer, c as ElementChangeCallbackParams, f as ElementGroupChangeCallbackParams, E as Element, D as MapInteractionEvent, ap as FilterTernary, $ as LayerChangeCallbackParams, a2 as LayerGroupChangeCallbackParams, a5 as LegendItemChangeCallbackParams, at as LayerFilters, as as LayerBoundaries, aO as EntityNode, bn as ToolType, bl as ToolSettingsChangeEvent, cj as uiActionTriggerSchema, bS as UIPanelElementCreate, ck as UIPanelElementCreateClonable, cl as uiPanelCreateSchema, cm as UIButtonElementCreateClonable, cn as MakeClonableSchema, bD as UITextElementCreate, bJ as UIDividerElementCreate, bM as UITextInputElementCreate, bP as UISelectElementCreate, bG as UIFlexibleSpaceElementCreate, co as UIButtonRowElementCreateClonable, b$ as UICheckboxGroupElementCreate, c2 as UIRadioGroupElementCreate, c5 as UIToggleGroupElementCreate, c8 as UIIframeElementCreate, cg as ViewportState, cp as PromiseOrNot, cq as UnionToIntersection } from './controller-Bf6iA9-c.cjs';
|
|
3
3
|
|
|
4
4
|
type FeltControllerFunctions = Omit<FeltController, "iframe">;
|
|
5
5
|
type Method<TRequest extends {
|
package/dist/handler.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z, ZodError } from 'zod';
|
|
2
|
-
import { F as FeltController, ci as UnwrapPromise, z as zInfer, c as ElementChangeCallbackParams, f as ElementGroupChangeCallbackParams, E as Element, D as MapInteractionEvent, ap as FilterTernary, $ as LayerChangeCallbackParams, a2 as LayerGroupChangeCallbackParams, a5 as LegendItemChangeCallbackParams, at as LayerFilters, as as LayerBoundaries, aO as EntityNode, bn as ToolType, bl as ToolSettingsChangeEvent, cj as uiActionTriggerSchema, bS as UIPanelElementCreate, ck as UIPanelElementCreateClonable, cl as uiPanelCreateSchema, cm as UIButtonElementCreateClonable, cn as MakeClonableSchema, bD as UITextElementCreate, bJ as UIDividerElementCreate, bM as UITextInputElementCreate, bP as UISelectElementCreate, bG as UIFlexibleSpaceElementCreate, co as UIButtonRowElementCreateClonable, b$ as UICheckboxGroupElementCreate, c2 as UIRadioGroupElementCreate, c5 as UIToggleGroupElementCreate, c8 as UIIframeElementCreate, cg as ViewportState, cp as PromiseOrNot, cq as UnionToIntersection } from './controller-
|
|
2
|
+
import { F as FeltController, ci as UnwrapPromise, z as zInfer, c as ElementChangeCallbackParams, f as ElementGroupChangeCallbackParams, E as Element, D as MapInteractionEvent, ap as FilterTernary, $ as LayerChangeCallbackParams, a2 as LayerGroupChangeCallbackParams, a5 as LegendItemChangeCallbackParams, at as LayerFilters, as as LayerBoundaries, aO as EntityNode, bn as ToolType, bl as ToolSettingsChangeEvent, cj as uiActionTriggerSchema, bS as UIPanelElementCreate, ck as UIPanelElementCreateClonable, cl as uiPanelCreateSchema, cm as UIButtonElementCreateClonable, cn as MakeClonableSchema, bD as UITextElementCreate, bJ as UIDividerElementCreate, bM as UITextInputElementCreate, bP as UISelectElementCreate, bG as UIFlexibleSpaceElementCreate, co as UIButtonRowElementCreateClonable, b$ as UICheckboxGroupElementCreate, c2 as UIRadioGroupElementCreate, c5 as UIToggleGroupElementCreate, c8 as UIIframeElementCreate, cg as ViewportState, cp as PromiseOrNot, cq as UnionToIntersection } from './controller-Bf6iA9-c.js';
|
|
3
3
|
|
|
4
4
|
type FeltControllerFunctions = Omit<FeltController, "iframe">;
|
|
5
5
|
type Method<TRequest extends {
|